glob: match dangling symlinks
[gnulib.git] / ChangeLog
blob960c56029423655046f5881d3ab9ed5ee27ed171
1 2017-08-31  Paul Eggert  <eggert@cs.ucla.edu>
3         glob: match dangling symlinks
4         This fixes a bug I inadvertently introduced to Gnulib when I
5         merged glibc glob back into gnulib on 2007-10-16.  This fix is
6         inspired by a patch proposed for glibc by Adhemerval Zanella in:
7         https://sourceware.org/ml/libc-alpha/2017-08/msg00446.html
8         * doc/posix-functions/glob.texi: Update list of affected platforms.
9         * lib/glob.c (__lstat64): New macro.
10         (is_dir): New function.
11         (glob, glob_in_dir): Match symlinks even if they are dangling.
12         (link_stat, link_exists_p): Remove.  All uses removed.
13         * lib/glob.in.h (__attribute_noinline__): Remove; no longer used.
14         * m4/glob.m4 (gl_PREREQ_GLOB): Do not check for fstatat.
15         * modules/glob-tests (Depends-on): Add symlink.
16         * tests/test-glob.c: Include errno.h, unistd.h.
17         (BASE): New macro.
18         (main): Test dangling symlinks, if symlinks are supported.
20         glob, backupfile: inode 0 is a valid inode number
21         * doc/posix-functions/readdir.texi (readdir):
22         * doc/posix-headers/dirent.texi (dirent.h):
23         Document more readdir portability issues.
24         * lib/backupfile.c (REAL_DIR_ENTRY): Remove.
25         (numbered_backup): Don’t treat inode 0 any differently from
26         other inode values.
27         * lib/glob.c (struct readdir_result): Remove skip_entry member.
28         (readdir_result_skip_entry, D_INO_TO_RESULT): Remove.
29         All uses removed.
30         * modules/glob (Depends-on): Remove d-ino.
32         glob: simplify symlink detection
33         * lib/glob.c (dirent_type): New type.  Use uint_fast8_t not
34         uint8_t, as C99 does not require uint8_t.
35         (struct readdir_result): Use it.  Do not define skip_entry unless
36         it is needed; this saves a byte on platforms lacking d_ino.
37         (readdir_result_type, readdir_result_skip_entry):
38         New functions, replacing ...
39         (readdir_result_might_be_symlink, readdir_result_might_be_dir):
40         ... these functions, which were removed.  This makes the callers
41         easier to read.  All callers changed.
42         (D_INO_TO_RESULT): Now empty if there is no d_ino.
44 2017-08-30  Pádraig Brady  <P@draigBrady.com>
46         fts-tests: tag as a longrunning-test so not included by default
47         * modules/fts-tests: This test takes about 20s on current systems,
48         and uses about 285M of space on ext4.
50 2017-08-30  Pádraig Brady  <P@draigBrady.com>
52         renameat2: fix compilation on alpine linux
53         * m4/renameat.m4: Check for <linux/fs.h> presence.
54         * lib/renameat2.h: Only include <linux/fs.h> if present.
55         Reported by Assaf Gordon on Alpine Linux.
57 2017-08-24  Paul Eggert  <eggert@cs.ucla.edu>
59         glob: try to port recent changes to MS-Windows
60         Problem reported by Bruno Haible in:
61         http://lists.gnu.org/archive/html/bug-gnulib/2017-08/msg00170.html
62         * lib/glob.c (__glob_pattern_p) [!_LIBC]: Move from here ...
63         * lib/glob.in.h (__glob_pattern_p): ... to here.
65 2017-08-24  Eric Blake  <eblake@redhat.com>
67         warnings: fix compilation with old autoconf
68         * m4/warnings.m4 (gl_UNKNOWN_WARNINGS_ARE_ERRORS(C))
69         (gl_UNKNOWN_WARNINGS_ARE_ERRORS(C++)): Use m4_defun rather than
70         AC_DEFUN.
71         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC(C))
72         (gl_MANYWARN_ALL_GCC(C++)): Likewise.
74 2017-08-24  Bruno Haible  <bruno@clisp.org>
76         glob: Fix compilation error on NetBSD 7.0 and OpenBSD 6.0.
77         * modules/glob (Depends-on): Add c99.
79 2017-08-24  Paul Eggert  <eggert@cs.ucla.edu>
81         glob: fix typo that broke platforms lacking d_ino
82         This typo also hurt performance on GNU/Linux and similar hosts.
83         * lib/glob.c (D_INO_TO_RESULT): Fix typo (reversed ifdef)
84         in previous change.
86 2017-08-23  Paul Eggert  <eggert@cs.ucla.edu>
88         glob: merge from glibc with Zanella glob changes
89         Merge glob from glibc, with changes for glob proposed
90         by Adhemerval Zanella in the thread starting here:
91         https://sourceware.org/ml/libc-alpha/2017-08/msg01079.html
92         plus some fixes for this merge.
93         * lib/glob_internal.h, lib/glob_pattern_p.c, lib/globfree.c:
94         New files, ported from glibc.
95         * lib/glob-libc.h (_Restrict_): Remove.  All uses replaced
96         with __restrict.
97         (__size_t): Remove.  All uses replaced by size_t.
98         (size_t): Define by defining __need_size_t and including <stddef.h>.
99         This should work even in non-glibc platforms, where any name
100         pollution is OK.
101         Use __USE_MISC instead of __USE_BSD || __USE_GNU.
102         (struct stat64): Don’t worry about __GLOB_GNULIB.
103         (glob, globfree, glob_pattern_p): Remove macros for
104         __USE_FILE_OFFSET64 && __GNUC__ < 2 && !defined __GLOB_GNULIB
105         case.  Remove _GL_ARG_NONNULL as GNU behavior is to accept NULL
106         but set errno.
107         * lib/glob.c (_GL_ARG_NONNULL) [!_LIBC]: Remove.  All uses
108         removed since the glibc behavior works on null pointers.
109         Do not include stdio.h; old SunOS is irrelevant now.
110         Do not worry about GLOB_ONLY_P as we now mimic glibc here.
111         Include glob_internal.h.
112         (D_INO_TO_RESULT): Depend on (_LIBC || D_INO_IN_DIRENT), not
113         ((POSIX || WINDOWS32) && !__GNU_LIBRARY__).  The latter probably
114         worked only coincidentally.
115         (attribute_hidden, __attribute_noinline__, __glibc_unlikely):
116         Remove macros; now done in glob.in.h.
117         (size_add_wrapv): Do not use __builtin_add_overflow if __ICC.
118         (glob): Properly initialize glob structure with
119         GLOB_BRACE|GLOB_DOOFFS (bug 20707).
120         Remove old code using SHELL since Bash no longer
121         uses this.
122         (glob, prefix_array): Separate MS code better.
123         (glob, glob_in_dir): Use C99 decls before statements when glibc
124         does.
125         (glob_in_dir): Remove old Amiga and VMS code.
126         (globfree, __glob_pattern_type, __glob_pattern_p): Move to
127         separate files.
128         * lib/glob.in.h (attribute_hidden, __attribute_noinline__)
129         (__glibc_unlikely):
130         Move here from glob.c.
131         (__restrict): New macro here, replacing the _Restrict_ in glob.c.
132         (weak_alias): New macro.
133         (__size_t): Remove.  All uses replaced by size_t.
134         * modules/d-ino (License): Now LGPLv2+, for compatibility with glob.
135         * modules/glob (Files): Add +lib/glob_internal.h,
136         lib/glob_pattern_p.c, lib/globfree.c.
137         (Depends-on): Remove snippet/arg-nonnull.
139 2017-08-22  Paul Eggert  <eggert@cs.ucla.edu>
141         glob: port to clang's Undefined Sanitizer
142         Problem reported by Tim Rühsen in:
143         http://lists.gnu.org/archive/html/bug-gnulib/2017-08/msg00144.html
144         * lib/glob.c (FLEXIBLE_ARRAY_MEMBER) [_LIBC]: Define to empty.
145         (glob_in_dir): Do not rely on undefined behavior in accessing
146         struct members beyond their bounds.  Use a flexible array member
147         instead.
149 2017-08-21  Paul Eggert  <eggert@cs.ucla.edu>
151         vc-list-files: port to Solaris 10
152         * build-aux/vc-list-files: Don't assume test -e works.
154 2017-08-21  Karl Berry  <karl@freefriends.org>
156         * doc/posix-functions/srandom.texi (srandom): typo }.
158 2017-08-20  Paul Eggert  <eggert@cs.ucla.edu>
160         git-version-gen: port to Solaris 10
161         Problem reported by Dagobert Michelsen in:
162         http://lists.gnu.org/archive/html/grep-devel/2017-08/msg00002.html
163         * build-aux/git-version-gen (v_from_git):
164         Use expr instead of shell substitution.
166 2017-08-19  Bruno Haible  <bruno@clisp.org>
168         host-cpu-c-abi: Improve detection of MIPS ABI.
169         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI): For MIPS, test the value of
170         _MIPS_SIM.
172 2017-08-17  Bruno Haible  <bruno@clisp.org>
174         hypot tests: Fix test failure on FreeBSD 11.0/x86.
175         * tests/test-hypot.h (test_function): Declare z as 'volatile'.
177 2017-08-17  Bruno Haible  <bruno@clisp.org>
179         float: Fix LDBL_MIN value on FreeBSD/x86.
180         * lib/float.in.h (LDBL_MIN) [__FreeBSD__]: Add more precision.
182 2017-08-17  Bruno Haible  <bruno@clisp.org>
184         random: Fix test compilation failure on Cygwin 1.5.25.
185         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_INITSTATE,
186         HAVE_DECL_SETSTATE.
187         * m4/random.m4 (gl_FUNC_RANDOM): Test whether initstate and setstate are
188         declared.
189         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_INITSTATE,
190         HAVE_DECL_SETSTATE.
191         * lib/stdlib.in.h (initstate): Declare also if HAVE_DECL_INITSTATE is 0.
192         (setstate): Declare also if HAVE_DECL_SETSTATE is 0.
193         * doc/posix-functions/initstate.texi: Mention the Cygwin 1.5.x problem.
194         * doc/posix-functions/random.texi: Likewise.
195         * doc/posix-functions/setstate.texi: Likewise.
196         * doc/posix-functions/srandom.texi: Likewise.
198 2017-08-16  Bruno Haible  <bruno@clisp.org>
200         stdnoreturn: Fix test compilation failure on Cygwin.
201         * m4/stdnoreturn.m4 (gl_STDNORETURN_H): On Cygwin, use gnulib's
202         <stdnoreturn.h> replacement.
203         * lib/stdnoreturn.in.h (noreturn): Treat Cygwin like MSVC.
204         * doc/posix-headers/stdnoreturn.texi: Mention the Cygwin problem.
206 2017-08-16  Bruno Haible  <bruno@clisp.org>
208         thread: Fix conflict with pthread_sigmask module.
209         * lib/glthread/thread.h (pthread_sigmask): Don't declare it weak if
210         it's defined as a macro.
211         * modules/thread (Depends-on): Add pthread_sigmask.
213 2017-08-16  Paul Eggert  <eggert@cs.ucla.edu>
215         rename: port better to NetBSD
216         * doc/posix-functions/rename.texi (rename): NetBSD 7
217         does not have the link-count bug.
218         * m4/rename.m4 (gl_FUNC_RENAME): Don’t consider NetBSD to be
219         broken merely because rename ("a", "b") removes "a" when the two
220         names are hard links to the same file.
222 2017-08-16  Bruno Haible  <bruno@clisp.org>
224         iconv_open, uni*: Add support for VPATH builds with OpenBSD 'make'.
225         * modules/iconv_open (Makefile.am): In the rules that use gperf, prefix
226         the target file names with '$(srcdir)/'.
227         * modules/unicase/locale-language (Makefile.am): Likewise.
228         * modules/unicase/special-casing (Makefile.am): Likewise.
229         * modules/unictype/bidiclass-byname (Makefile.am): Likewise.
230         * modules/unictype/category-byname (Makefile.am): Likewise.
231         * modules/unictype/combining-class-byname (Makefile.am): Likewise.
232         * modules/unictype/joininggroup-byname (Makefile.am): Likewise.
233         * modules/unictype/joiningtype-byname (Makefile.am): Likewise.
234         * modules/unictype/property-byname (Makefile.am): Likewise.
235         * modules/unictype/scripts (Makefile.am): Likewise.
236         * modules/uninorm/composition (Makefile.am): Likewise.
238 2017-08-16  Bruno Haible  <bruno@clisp.org>
240         nonblocking-socket tests: Fix failure on OpenBSD 6.0.
241         * tests/test-nonblocking-socket.h (SOCKET_DATA_BLOCK_SIZE): Increase
242         value for OpenBSD.
244 2017-08-16  Bruno Haible  <bruno@clisp.org>
246         rename, renameat: Update doc regarding NetBSD.
247         * doc/posix-functions/rename.texi: Clarify that when using
248         -D_XOPEN_SOURCE=500 on NetBSD 7.0, the hard link bug is gone.
249         * doc/posix-functions/renameat.texi: Be more precise about NetBSD
250         version.
252 2017-08-15  Paul Eggert  <eggert@cs.ucla.edu>
254         renameat2: port better to macOS
255         * lib/renameat2.c (renameat2): Use renameatx_np if available.
257         futimens: don’t assume struct timespec layout
258         * m4/futimens.m4 (gl_FUNC_FUTIMENS):
259         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT):
260         * tests/test-fdutimensat.c (main):
261         * tests/test-futimens.h (test_futimens):
262         * tests/test-lutimens.h (test_lutimens):
263         * tests/test-utimens.h (test_utimens):
264         * tests/test-utimensat.c (main):
265         Don’t assume that struct timespec is a two-member structure in
266         tv_sec, tv_nsec order.  Although this is true on all platforms we
267         know about, POSIX does not guarantee it.
269         rename: document+test NetBSD rename
270         Test failure reported by Bruno Haible in:
271         http://lists.gnu.org/archive/html/bug-gnulib/2017-08/msg00104.html
272         This is an area where NetBSD is better-behaved than POSIX,
273         so allow the NetBSD behavior in tests.
274         * doc/posix-functions/rename.texi:
275         * doc/posix-functions/renameat.texi: Document NetBSD behavior.
276         * tests/test-rename.h (test_rename): Allow NetBSD behavior.
278 2017-08-15  Bruno Haible  <bruno@clisp.org>
280         renameat: Ensure declaration in <stdio.h> on NetBSD.
281         * lib/stdio.in.h: Include <unistd,h> also on NetBSD.
282         * doc/posix-functions/renameat.texi: Mention this problem.
284 2017-08-15  Bruno Haible  <bruno@clisp.org>
286         duplocale: Work around NetBSD 7.0 bug.
287         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Test against the NetBSD 7.0 bug.
288         * lib/duplocale.c: Add comment about NetBSD problem.
289         * doc/posix-functions/duplocale.texi: Mention the NetBSD problem.
291 2017-08-15  Bruno Haible  <bruno@clisp.org>
293         duplocale tests: Verify use with *_l functions.
294         * modules/duplocale-tests (configure.ac): Test for uselocale and
295         some *_l functions.
296         * tests/test-duplocale.c (test_with_uselocale): New function, extracted
297         from main.
298         (get_locale_dependent_values_from, test_with_locale_parameter): New
299         functions.
300         (main): Test both test_with_uselocale and test_with_locale_parameter.
302 2017-08-15  Bruno Haible  <bruno@clisp.org>
304         extensions: Enable NetBSD specific extensions.
305         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Define _NETBSD_SOURCE.
307 2017-08-14  Bruno Haible  <bruno@clisp.org>
309         open, openat: Update doc about O_CLOEXEC.
310         * doc/posix-functions/open.texi: More concrete list of platforms.
311         * doc/posix-functions/openat.texi: Likewise.
313 2017-08-14  Paul Eggert  <eggert@cs.ucla.edu>
315         open: support O_CLOEXEC
316         * NEWS, doc/posix-functions/open.texi:
317         * doc/posix-functions/openat.texi: Document this.
318         * lib/fcntl.in.h (O_CLOEXEC): Default to a nonzero value.
319         (GNULIB_defined_O_CLOEXEC): New symbol.
320         * lib/open.c: Include cloexec.h.
321         (open): Support O_CLOEXEC.
322         * lib/openat.c: Include cloexec.h.
323         (rpl_openat): Support O_CLOEXEC.
324         * lib/popen-safer.c: Do not include cloexec.h.
325         (open_noinherit): Remove.
326         (popen_safer): Use O_CLOEXEC instead of set_cloexec_flag.
327         * lib/save-cwd.c: Do not include cloexec.h.
328         (save_cwd): Use O_CLOEXEC instead of set_cloexec_flag.
329         * m4/open-cloexec.m4: New file.
330         * m4/open.m4 (gl_FUNC_OPEN): Require gl_PREPROC_O_CLOEXEC.
331         Replace 'open' if O_CLOEXEC is not present.
332         * m4/openat.m4 (gl_FUNC_OPENAT): Require gl_PREPROC_O_CLOEXEC.
333         Replace 'openat' if O_CLOEXEC is not present.
334         * modules/freopen (Depends-on): Depend on 'open' if replacing freopen.
335         * modules/open (Files): Add m4/open-cloexec.m4.
336         (Depends-on): Depend on cloexec if replacing 'open'.
337         * modules/openat (Files): Add m4/open-cloexec.m4.
338         (Depends-on): Depend on cloexec if replacing openat.
339         * modules/popen-safer (Depends-on): Remove cloexec.
340         * modules/save-cwd (Depends-on): Remove cloexec, and add
341         fd-safer-flag and 'open'.
343 2017-08-13  Paul Eggert  <eggert@cs.ucla.edu>
345         reallocarray: minor fixes
346         * doc/glibc-functions/reallocarray.texi: Update version numbers.
347         * m4/reallocarray.m4 (gl_FUNC_REALLOCARRAY): Don't trust _cv_ contents.
348         * modules/reallocarray (License): Change from GPL to LGPL.
349         * tests/test-reallocarray.c (main): Fix ENOMEM typo.
350         Indent properly and don't use tabs.
352 2017-08-13  Darshit Shah  <darnir@gnu.org>
354         reallocarray: New module
355         reallocarray is a new function in glibc 2.26 to safely allocate an array
356         of memory locations with integer overflow protection.
357         * MODULES.html.sh: Add reallocarray.
358         * doc/glibc-functions/reallocarray.texi: Documentation for reallocarray.
359         * lib/reallocarray.c: New file to implement module reallocarray.
360         * lib/stdlib.in.h: Add function declarations for reallocarray.
361         * m4/reallocarray.m4: New file.
362         * m4/stdlib_h.m4: Declare reallocarray.
363         * modules/reallocarray: New file.
364         * modules/reallocarray-test: New file.
365         * modules/stdlib: Coerce stdlib.h to export reallocarray.
366         * tests/test-reallocarray.c: New test.
368 2017-08-12  Paul Eggert  <eggert@cs.ucla.edu>
370         dirent-safer: fix cloexec race
371         * lib/opendir-safer.c: Include fcntl.h instead of unistd-safer.h.
372         (opendir_safer): Use F_DUPFD_CLOEXEC.
373         * modules/dirent-safer (Depends-on): Add fcntl.  Remove unistd-safer.
374         * tests/test-dirent-safer.c: Do not include unistd-safer.h,
375         as it is no longer a prerequisite.  Use F_DUPFD_CLOEXEC
376         instead of dup_safer.
378         fts: fix cloexec races
379         * lib/fts.c [!_LIBC]: Do not include dirent--.h, unistd--.h, cloexec.h.
380         (opendirat, diropen): Use O_CLOEXEC instead of set_cloexec_flag.
381         (fts_build): Use F_DUPD_CLOEXEC rinstad of set_cloexec_flag.
382         (fd_ring_check): Set cloexec flag on new file descriptors.
383         (fts_build, fd_ring_check): While we’re at it, make sure the
384         resulting file descriptor is not 0, 1, or 2, since that is easy.
386 2017-08-11  Bruno Haible  <bruno@clisp.org>
388         fts tests: Fix link error.
389         Reported by Tom G. Christensen in
390         https://lists.gnu.org/archive/html/bug-gnulib/2017-08/msg00078.html
391         * modules/fts-tests (Makefile.am): Link test-fts against LIBINTL.
393 2017-08-10  Paul Eggert  <eggert@cs.ucla.edu>
395         fts: port recent changes to CentOS 6
396         Problem reported by Tom G. Christensen in:
397         http://lists.gnu.org/archive/html/bug-gnulib/2017-08/msg00064.html
398         * lib/fts.c (fsword): New type.
399         (struct dev_type, filesystem_type): Use it.
400         * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for __fsword_t.
401         Also, check for f_type only if fstatfs and sys/vfs.h work.
403 2017-08-09  Paul Eggert  <eggert@cs.ucla.edu>
405         tempname: do not depend on secure_getenv
406         Excess dependency noted by Eli Zaretskii (Bug#28023#17).
407         * lib/tempname.c (__secure_getenv) [!_LIBC]: Remove; unused.
408         * modules/tempname (Depends-on): Remove secure_getenv.
410 2017-08-08  Paul Eggert  <eggert@cs.ucla.edu>
412         extensions: add _OPENBSD_SOURCE
413         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Define _OPENBSD_SOURCE.
415 2017-08-06  Reuben Thomas  <rrt@sc3d.org>
416             Bruno Haible  <bruno@clisp.org>
418         manywarnings: Add support for C++.
419         * build-aux/g++-warning.spec: New file.
420         * m4/manywarnings-c++.m4: New file.
421         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC(C++)): New macro, that
422         redirects to manywarnings-c++.m4.
423         * modules/manywarnings (Files): Add m4/manywarnings-c++.m4.
425 2017-08-06  Paul Eggert  <eggert@cs.ucla.edu>
427         git-version-gen: another fix for tags with "-"
428         * build-aux/git-version-gen: Improve fix for tags containing "-".
429         Suggested by Markus Armbruster in:
430         http://lists.gnu.org/archive/html/bug-gnulib/2017-08/msg00034.html
432 2017-08-06  Bruno Haible  <bruno@clisp.org>
434         warnings, manywarnings: Add support for multiple languages, not just C.
435         * warnings.m4 (gl_UNKNOWN_WARNINGS_ARE_ERRORS_IMPL): Renamed from
436         gl_UNKNOWN_WARNINGS_ARE_ERRORS.
437         (gl_UNKNOWN_WARNINGS_ARE_ERRORS(C)): New macro.
438         (gl_UNKNOWN_WARNINGS_ARE_ERRORS(C++)): New macro.
439         (gl_UNKNOWN_WARNINGS_ARE_ERRORS): Dispatch to
440         gl_UNKNOWN_WARNINGS_ARE_ERRORS(_AC_LANG).
441         (gl_WARN_ADD): Require the gl_UNKNOWN_WARNINGS_ARE_ERRORS specialization
442         of the current language. If C++ is the current language, modify
443         WARN_CXXFLAGS instead of WARN_CFLAGS.
444         * manywarnings.m4 (gl_MANYWARN_ALL_GCC(C)): New macro, extracted from
445         gl_MANYWARN_ALL_GCC.
446         (gl_MANYWARN_ALL_GCC): Dispatch to gl_MANYWARN_ALL_GCC(_AC_LANG).
448 2017-08-06  Markus Armbruster  <armbru@pond.sub.org>
450         git-version-gen: Fix for tags containing '-'
452         Really old versions of git-describe (before v1.5.0, Feb 2007)
453         don't have the number of commits in their long format output,
454         i.e. where modern 'git describe --abbrev=4 --match="v*"' prints
455         "v0.1-1494-g124b9", they print "v0.1-1494-g124b9".  git-version-gen
456         recognizes both patterns, and normalizes the old format to the new one.
458         Unfortunately, this normalization code gets confused when the tag
459         contains '-'.  Reproducer:
461             $ git-tag -m test v0.2-rc1
462             $ build-aux/git-version-gen .tarball-version; echo
463             build-aux/git-version-gen: WARNING: git rev-list failed
464             UNKNOWN
466         We take exact tag "v0.2-rc1" for the old format, extract the presumed
467         tag "v0.2" from it, then run "git rev-list v0.2..HEAD" to count
468         commits since tha tag.  Fails, because tag "v0.2" does not exist.
470         * git-version-gen: We could perhaps drop support for versions from
471         more than a decade ago.  But tightening the pattern match is easy
472         enough, so do that.  Still breaks when you use version tags ending in
473         something matching -g????, but you arguably get what you deserve then.
475 2017-08-05  Paul Eggert  <eggert@cs.ucla.edu>
477         valgrind-tests: use ls, and cache
478         * m4/valgrind-tests.m4: Test ls, not bash.
479         Problem reported by Reuben Thomas.
480         Also, cache the result so that it can be overridden.
482 2017-08-04  Paul Eggert  <eggert@cs.ucla.edu>
484         manywarnings: port to 64-bit GCC builds of Emacs
485         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Compute max safe
486         object size rather than hardwiring 2147483647.  This is needed to
487         build GNU Emacs, which has one conditional (and used
488         only-in-theory) call to malloc with a literal greater than
489         2147483647.
491 2017-08-04  Bruno Haible  <bruno@clisp.org>
493         Relax the license of some modules with no runtime code.
494         * modules/std-gnu11 (License): Set to 'unlimited'.
495         * modules/c99 (License): Likewise.
496         Reported by Reuben Thomas <rrt@sc3d.org>.
497         * modules/d-ino (License): Set to 'LGPL'.
498         * modules/host-os (License): Likewise.
499         * modules/longlong (License): Likewise.
501 2017-08-03  Paul Eggert  <eggert@cs.ucla.edu>
503         renameat2: port to RHEL 7 + NFS
504         * lib/renameat2.c (renameat2) [SYS_renameat2]:
505         Port to RHEL 7 + NFS.  Problem reported by Ted Zlatanov in:
506         http://lists.gnu.org/archive/html/emacs-devel/2017-08/msg00082.html
508 2017-08-02  Paul Eggert  <eggert@cs.ucla.edu>
510         renameat2: port to non-renameat platforms
511         Problem reported for MSVC-2015 by Gisle Vanem in:
512         http://lists.gnu.org/archive/html/bug-gnulib/2017-08/msg00001.html
513         * lib/renameat2.c [!HAVE_RENAMEAT]: Include <sys/stat.h> here too.
514         (renameat2) [!HAVE_RENAMEAT]: Fix typo in arg passing.
516 2017-08-01  Paul Eggert  <eggert@cs.ucla.edu>
518         manywarnings: port to 32-bit GCC bug
519         Problem reported by Pino Toscano in:
520         http://lists.gnu.org/archive/html/bug-gnulib/2017-07/msg00150.html
521         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Use 2**31 - 1,
522         not 2**63 - 1, to work around the following GCC bug:
523         https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81650
525 2017-07-30  Paul Eggert  <eggert@cs.ucla.edu>
527         backupfile: new function to validate backup suffix
528         * lib/backupfile.c (set_simple_backup_suffix): New function.
529         (backupfile_internal): Use it.
531         canonicalize: fix EOVERFLOW commentary
532         Problem reported by Bruno Haible in:
533         http://lists.gnu.org/archive/html/bug-gnulib/2017-07/msg00147.html
534         * lib/canonicalize.c (canonicalize_filename_mode):
535         * lib/canonicalize-lgpl.c (__realpath): Fix comments.
537         Don't interpret EOVERFLOW to mean nonexistence
538         * lib/fts.c (fts_stat): If lstat fails, report its errno, which
539         may be EOVERFLOW; this is likely more useful than reporting the
540         stat errno.
541         * lib/glob.c (link_stat): Rename from link_exists2_p and
542         return -1/0 instead of 0/1.  Caller changed.
543         * lib/glob.c (link_exists_p):
544         * lib/renameat2.c (rename_noreplace, renameat2):
545         * lib/tempname.c (try_nocreate):
546         If errno == EOVERFLOW then the directory entry exists, so do not
547         act as if it does not exist.
549         backup-rename: new module
550         It is like backupfile, except it avoids some race conditions,
551         and it does not output to stderr or exit.
552         * MODULES.html.sh: Add backup-rename.
553         * lib/backup-find.c, lib/backup-internal.h, lib/backup-rename.c:
554         * modules/backup-rename: New files.
555         * lib/backupfile.c: Turn this into an internals file, which
556         contains code common to backupfile and backup_rename.  Include
557         backupfile-internal.h instead of backupfile.h.  Do not include
558         argmatch.h or xalloc.h: include xalloc-oversized.h.  Include
559         renameat2.h and fcntl.h.
560         (BACKUP_NOMEM): New constant.
561         (numbered_backup): New args BASE_OFFSET and *DIRPP.  Do not exit
562         on memory exhaustion; just return BACKUP_NOMEM.  Caller changed.
563         (backupfile_internal): Rename from find_backup_file_name.
564         Support new arg RENAME.
565         (backup_args, backup_types, get_version, xget_version):
566         Move to lib/backup-find.c.
567         * lib/backupfile.h (backup_file_rename): New decl.
568         * modules/backupfile (Files): Add lib/backup-internal.h,
569         lib/backup-find.c.
570         (Depends-on): Add dirfd, fcntl, renameat2.
571         (lib_SOURCES): Add backup-find.c.
573         renameat2: port better to older Solaris
574         * lib/renameat2.c (renameat2): Set ret_val properly on old Solaris.
575         Add goto to use a label, to silence picky compilers.
577         fts-tests: port to gcc -Wwrite-strings
578         * tests/test-fts.c (base, base_d): New static vars.
579         (argv, remove_tree, main): Use them.
581 2017-07-26  Reuben Thomas  <rrt@sc3d.org>
583         relocatable-lib{,-lgpl}: improve documentation
584         * doc/relocatable-maint.texi: Document use of relocatable-lib{,-lgpl}.
585         Various other updates.
587 2017-07-30  Reuben Thomas  <rrt@sc3d.org>
588             Bruno Haible  <bruno@clisp.org>
590         relocatable-lib{,-lgpl}: add Valgrind suppressions
591         * lib/relocatable.valgrind: New file.
592         * modules/relocatable-lib (Files): Add relocatable.valgrind.
593         * modules/relocatable-lib-lgpl: Likewise.
595 2017-07-26  Reuben Thomas  <rrt@sc3d.org>
597         relocatable: Make the license on the sources the GPL.
598         * lib/relocatable.h, lib/relocatable.c: Change the copyright notice from
599         LGPL, which was a special case so that the relocatable source files
600         could be used without gnulib-tool, to GPL. They can still be used under
601         the LGPL, using the --lgpl option to gnulib-tool.
603 2017-07-30  Bruno Haible  <bruno@clisp.org>
605         host-cpu-c-abi: Detect ILP32 ABI on IA-64 HP-UX.
606         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI): Distinguish ia64-ilp32
607         from ia64. For arm64, test only __aarch64__, as __ARM_64BIT_STATE and
608         __ARM_PCS_AAPCS64 are not reliable indicators: they are not defined on
609         Ubuntu 14.04 (gcc 4.8.4) and Debian 8 (gcc 4.9.2).
611 2017-07-27  Paul Eggert  <eggert@cs.ucla.edu>
613         faccessat: document AT_SYMLINK_NOFOLLOW issue
614         * doc/posix-functions/faccessat.texi: Modernize platform list.
615         Document AT_SYMLINK_NOFOLLOW limitation.
617         renameat2: port to Solaris 10
618         * lib/renameat2.c (rename_noreplace): Use lstat, not faccessat
619         with AT_SYMLINK_NOFOLLOW (which is not portable).
620         (renameat): Undef before using, to avoid endless recursion when
621         the replacement renameat calls renameat2 which calls the
622         replacement renameat.
623         (renameat2): Use lstatat, not faccessat with AT_SYMLINK_NOFOLLOW.
624         * modules/renameat2 (Depends-on): Remove faccessat.
625         * modules/renameat-tests (test_renameat_LDADD):
626         * modules/renameat2-tests (test_renameat2_LDADD):
627         Remove $(LIB_EACCESS).
629         renameat2: new module
630         Although the Linux syscall renameat2 is not in glibc (yet?), it is
631         useful to have access to its RENAME_NOREPLACE flag.
632         * MODULES.html.sh (func_all_modules): Add renameat2.
633         * lib/renameat2.c, lib/renameat2.h, modules/renameat2:
634         * modules/renameat2-tests, tests/test-renameat2.c: New files.
635         * lib/renameat.c (renameat): Move most of the implementation
636         to renameat2, and just call renameat2.
637         * modules/renameat (Files): Remove lib/at-func2.c.
638         (Depends-on): Depend only on renameat2.
639         (Include): Remove <fcntl.h>.
640         * modules/renameat-tests (test_renameat_LDADD): Add $(LIB_EACCESS),
641         since renameat (via renameat2) might use faccessat.
643 2017-07-27  Erik Skultety <eskultet@redhat.com>  (tiny change)
645         vc-list-files: Adjust the script to support git worktrees
646         * build-aux/vc-list-files: Require existence, not directory.
648 2017-07-26  Paul Eggert  <eggert@cs.ucla.edu>
650         doc: bring MODULES.html.sh up to date
651         Somehow a few months ago we stopped updating MODULES.html.sh.
652         I don’t recall explicitly deciding this, so I updated it now.
653         Alternatively I suppose we could remove it.
654         * MODULES.html.sh: Add builtin-expect, c99, ctime, explicit_bzero,
655         localtime, localtime-buffer, noreturn, nstrftime, strftime-fixes,
656         truncate, utime, utime-h, windows-stat-inodes,
657         windows-stat-override, windows-stat-timespec, year2038.  Sort.
659 2017-07-26  Jim Meyering  <meyering@fb.com>
661         fprintftime: fix build-break caused by recent renaming
662         * lib/fprintftime.c: Include "nstrftime.c", not the now-renamed
663         "strftime.c".
664         * modules/fprintftime: Depend directly on nstrftime.
666 2017-07-26  Paul Eggert  <eggert@cs.ucla.edu>
668         regex: work with GCC7's -Werror=implicit-fallthrough=
669         * lib/regex_internal.h (FALLTHROUGH): New macro.
670         * lib/regcomp.c (peek_token_bracket, parse_expression):
671         * lib/regexec.c (check_node_accept): Use it.
673 2017-07-24  Paul Eggert  <eggert@cs.ucla.edu>
675         fts: simplify fts_build
676         * lib/fts.c (fts_build): Simplify, and be lazier about
677         calling leaf_optimization.
679         fts: three levels of leaf optimization
680         * lib/fts.c (enum leaf_optimization): New type with three values.
681         (S_MAGIC_AFS): New macro.  Sort them.
682         (leaf_optimization): Rename from leaf_optimization_applies, and
683         return enum leaf_optimization instead of bool.  All uses changed.
684         Add cases for unknown type and for AFS.
685         (fts_build): Don’t rely on link counts if NO_LEAF_OPTIMIZATION.
687         fts: cache dirent_inode_sort_may_be_useful too
688         * lib/fts.c (struct dev_type): New struct.
689         (DEV_TYPE_HT_INITIAL_SIZE): New constant.
690         (dev_type_hash, dev_type_compare, filesystem_type): New functions.
691         (dirent_inode_sort_may_be_useful, leaf_optimization_applies):
692         Now takes FTSENT const *, not int.  All uses changed.  Use
693         filesystem_type to cache.
694         (link_count_optimize_ok): Remove.  Caller changed to use
695         leaf_optimization_applies, which now uses shared cache.
697         fts: introduce MIN_DIR_NLINK
698         * lib/fts.c (MIN_DIR_NLINK): New constant.
699         Use it instead of 2, whenever we are talking about link counts.
701         fts: nlink_t signedness fixups
702         * lib/fts.c (fts_open): Set rootparent n_dirs_remaining to -1
703         so that root need not be a special case later.
704         (fts_read): Remove now-redundant test for fts_level.
705         Do not assume that nlink_t is signed.
706         (fts_build): Remove useless decrement of nlinks.
707         (fts_stat): Avoid unlikely signed integer overflow later, if
708         nlink_t is signed.
710         fts-tests: new module
711         * modules/fts-tests, tests/test-fts.c: New files.
713 2017-07-23  Bruno Haible  <bruno@clisp.org>
715         Rename module 'strftime' to 'nstrftime'.
716         * m4/nstrftime.m4: Renamed from m4/strftime.m4.
717         * lib/nstrftime.c: Renamed from lib/strftime.c.
718         * modules/nstrftime: Renamed from modules/strftime.
719         (Files, Makefile.am): Update.
720         * tests/test-nstrftime.c: Renamed from tests/test-strftime.c.
721         Fix comment.
722         * modules/nstrftime-tests: Renamed from modules/strftime-tests.
723         (Files, Makefile.am): Update.
724         * modules/strftime: New file, an obsolete indirection.
725         * doc/posix-functions/strftime.texi: Update reference.
726         * config/srclist.txt: Update info.
727         * NEWS: Mention the change.
729 2017-07-21  Tim Rühsen  <tim.ruehsen@gmx.de>
731         malloca: Silence a warning from clang's memory sanitizer.
732         * lib/malloca.c (NO_SANITIZE_MEMORY): New macro.
733         (freea): Use it.
735 2017-07-18  Bruno Haible  <bruno@clisp.org>
737         host-cpu-c-abi: Fix detection of MIPS ABI.
738         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI): For MIPS, really test the
739         ABI, not the CPU instruction set.
741 2017-07-16  Paul Eggert  <eggert@cs.ucla.edu>
743         explicit_bzero: new module
744         The explicit_bzero function has been added to glibc.
745         This module is intended to supports its use in GNU programs.
746         * doc/glibc-functions/explicit_bzero.texi, lib/explicit_bzero.c:
747         * m4/explicit_bzero.m4, modules/explicit_bzero:
748         New files.
749         * doc/gnulib.texi (Glibc string.h): Link to new doc.
750         * lib/string.in.h (explicit_bzero): Declare.
751         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add defaults for it.
752         * modules/string (string.h): Substitute its vars.
754 2017-07-16  Bruno Haible  <bruno@clisp.org>
756         threadlib: Support static linking.
757         * m4/threadlib.m4 (gl_THREADLIB_BODY): When static linking is in use,
758         set gl_cv_have_weak to 'no'.
760 2017-07-16  Bruno Haible  <bruno@clisp.org>
762         unicase/locale-language: Fix link dependencies.
763         * modules/unicase/locale-language (Link): New section.
764         * modules/unicase/locale-language-tests (Makefile.am): Link
765         test-locale-language program with $(LIBTHREAD).
767 2017-07-15  John E. Malmberg  <wb8tyw@gmail.com>
769         sys_socket: Add support for OpenVMS.
770         * lib/sys_socket.in.h [__VMS]: Define CMSG_SPACE, CMSG_LEN.
771         * doc/posix-headers/sys_socket.texi: Mention OpenVMS issues.
773 2017-07-15  John E. Malmberg  <wb8tyw@gmail.com>
775         sys_resource: Add support for OpenVMS.
776         * lib/resource.in.h [__VMS]: Define RUSAGE_SELF, RUSAGE_CHILDREN.
777         * doc/posix-headers/sys_resource.texi: Mention OpenVMS issues.
779 2017-07-15  John E. Malmberg  <wb8tyw@gmail.com>
780             Bruno Haible  <bruno@clisp.org>
782         math: Add support for OpenVMS.
783         * lib/math.in.h [__VMS]: Include <fp.h>.
784         * doc/posix-headers/math.texi: Mention OpenVMS issues.
786 2017-07-15  Bruno Haible  <bruno@clisp.org>
788         getdtablesize: Add minimal support for OpenVMS.
789         Reported by John E. Malmberg <wb8tyw@qsl.net>.
790         * modules/getdtablesize (Description): Fix.
791         * lib/getdtablesize.c: Fix comment.
792         * m4/getdtablesize.m4 (gl_FUNC_GETDTABLESIZE): Don't replace the
793         getdtablesize() function, even though the test fails.
794         * doc/glibc-functions/getdtablesize.texi: Reference SUSv2. Describe
795         limitation on OpenVMS.
797 2017-07-13  Bruno Haible  <bruno@clisp.org>
799         Revisit cross-compilation guesses.
800         * m4/wctype_h.m4 (gl_WCTYPE_H): Add comment.
802 2017-07-13  Bruno Haible  <bruno@clisp.org>
804         Improve cross-compilation guesses for native Windows.
805         * m4/btowc.m4 (gl_FUNC_BTOWC): Add cross-compilation guess for native
806         Windows.
807         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Likewise.
808         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Likewise.
809         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Likewise.
810         * m4/cbrtf.m4 (gl_FUNC_CBRTF_WORKS): Likewise.
811         * m4/cbrtl.m4 (gl_FUNC_CBRTL, gl_FUNC_CBRTL_WORKS): Likewise.
812         * m4/ceil.m4 (gl_FUNC_CEIL): Likewise.
813         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
814         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
815         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
816         * m4/dup.m4 (gl_FUNC_DUP): Likewise.
817         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
818         * m4/exp2.m4 (gl_FUNC_EXP2_WORKS): Likewise.
819         * m4/exp2l.m4 (gl_FUNC_EXP2L): Likewise.
820         * m4/expm1.m4 (gl_FUNC_EXPM1): Likewise.
821         * m4/expm1f.m4 (gl_FUNC_EXPM1F_WORKS): Likewise.
822         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Likewise.
823         * m4/fabsl.m4 (gl_FUNC_FABSL_WORKS): Likewise.
824         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
825         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Likewise.
826         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
827         * m4/floor.m4 (gl_FUNC_FLOOR): Likewise.
828         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
829         * m4/fma.m4 (gl_FUNC_FMA_WORKS): Likewise.
830         * m4/fmaf.m4 (gl_FUNC_FMAF_WORKS): Likewise.
831         * m4/fmal.m4 (gl_FUNC_FMAL_WORKS): Likewise.
832         * m4/fmod.m4 (gl_FUNC_FMOD): Likewise.
833         * m4/fmodf.m4 (gl_FUNC_FMODF): Likewise.
834         * m4/fmodl.m4 (gl_FUNC_FMODL): Likewise.
835         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
836         * m4/frexpf.m4 (gl_FUNC_FREXPF_WORKS): Likewise.
837         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
838         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY_CLOBBER): Likewise.
839         * m4/hypot.m4 (gl_FUNC_HYPOT): Likewise.
840         * m4/hypotf.m4 (gl_FUNC_HYPOTF, gl_FUNC_HYPOTF_WORKS): Likewise.
841         * m4/hypotl.m4 (gl_FUNC_HYPOTL, gl_FUNC_HYPOTL_WORKS): Likewise.
842         * m4/ilogb.m4 (gl_FUNC_ILOGB_WORKS): Likewise.
843         * m4/ilogbf.m4 (gl_FUNC_ILOGBF_WORKS): Likewise.
844         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
845         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
846         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
847         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
848         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
849         * m4/log.m4 (gl_FUNC_LOG, gl_FUNC_LOG_WORKS): Likewise.
850         * m4/logf.m4 (gl_FUNC_LOGF, gl_FUNC_LOGF_WORKS): Likewise.
851         * m4/logl.m4 (gl_FUNC_LOGL_WORKS): Likewise.
852         * m4/log10.m4 (gl_FUNC_LOG10, gl_FUNC_LOG10_WORKS): Likewise.
853         * m4/log10f.m4 (gl_FUNC_LOG10F, gl_FUNC_LOG10F_WORKS): Likewise.
854         * m4/log10l.m4 (gl_FUNC_LOG10L_WORKS): Likewise.
855         * m4/log1p.m4 (gl_FUNC_LOG1P): Likewise.
856         * m4/log1pf.m4 (gl_FUNC_LOG1PF, gl_FUNC_LOG1PF_WORKS): Likewise.
857         * m4/log1pl.m4 (gl_FUNC_LOG1PL): Likewise.
858         * m4/log2.m4 (gl_FUNC_LOG2, gl_FUNC_LOG2_WORKS): Likewise.
859         * m4/log2f.m4 (gl_FUNC_LOG2F, gl_FUNC_LOG2F_WORKS): Likewise.
860         * m4/log2l.m4 (gl_FUNC_LOG2L_WORKS): Likewise.
861         * m4/logb.m4 (gl_FUNC_LOGB_WORKS): Likewise.
862         * m4/logbf.m4 (gl_FUNC_LOGBF_WORKS): Likewise.
863         * m4/logbl.m4 (gl_FUNC_LOGBL_WORKS): Likewise.
864         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Likewise.
865         * m4/mbrtowc.m4 (gl_MBRTOWC_EMPTY_INPUT, gl_MBRTOWC_C_LOCALE): Likewise.
866         * m4/mkdir.m4 (gl_FUNC_MKDIR): Likewise.
867         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Likewise.
868         * m4/mktime.m4 (gl_FUNC_MKTIME_WORKS): Likewise.
869         * m4/modf.m4 (gl_FUNC_MODF): Likewise.
870         * m4/modff.m4 (gl_FUNC_MODFF): Likewise.
871         * m4/modfl.m4 (gl_FUNC_MODFL): Likewise.
872         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
873         * m4/perror.m4 (gl_FUNC_PERROR): Likewise.
874         * m4/popen.m4 (gl_FUNC_POPEN): Likewise.
875         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE,
876         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2,
877         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN): Likewise.
878         * m4/ptsname_r.m4 (gl_PREREQ_PTSNAME_R): Likewise.
879         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
880         * m4/regex.m4 (gl_REGEX): Likewise.
881         * m4/remainder.m4 (gl_FUNC_REMAINDER): Likewise.
882         * m4/remainderf.m4 (gl_FUNC_REMAINDERF,
883         gl_FUNC_REMAINDERF_WORKS): Likewise.
884         * m4/remainderl.m4 (gl_FUNC_REMAINDERL,
885         gl_FUNC_REMAINDERL_WORKS): Likewise.
886         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
887         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
888         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
889         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
890         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
891         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
892         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
893         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
894         * m4/sqrtl.m4 (gl_FUNC_SQRTL_WORKS): Likewise.
895         * m4/stdint.m4 (gl_STDINT_H): Likewise.
896         * m4/strerror.m4 (gl_FUNC_STRERROR_0): Likewise.
897         * m4/strncat.m4 (gl_FUNC_STRNCAT): Likewise.
898         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
899         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
900         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
901         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
902         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
903         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
904         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
905         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
906         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Likewise.
907         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
908         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
909         * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
910         * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
911         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
912         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
913         Likewise.
914         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
915         * m4/chown.m4 (AC_FUNC_CHOWN): Add cross-compilation guess for native
916         Windows. Enable also on Autoconf 2.70.
917         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
918         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
919         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_N,
920         gl_PRINTF_DIRECTIVE_LS, gl_PRINTF_FLAG_LEFTADJUST, gl_PRINTF_FLAG_ZERO,
921         gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
922         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1): Add cross-compilation guess
923         for native Windows.
924         (gl_PRINTF_POSITIONS, gl_PRINTF_FLAG_GROUPING,
925         gl_VSNPRINTF_ZEROSIZE_C99): Add comment.
927 2017-07-13  Bruno Haible  <bruno@clisp.org>
929         Improve cross-compilation guesses for native Windows.
930         * m4/memchr.m4 (gl_FUNC_MEMCHR): Add cross-compilation guess for native
931         Windows.
932         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): Don't use internals of
933         memchr.m4.
934         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Likewise.
936 2017-07-13  Bruno Haible  <bruno@clisp.org>
938         Improve cross-compilation guesses for native Windows.
939         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): Add cross-compilation guess for
940         native Windows.
941         (gl_FUNC_FFLUSH): Update accordingly.
942         * m4/fclose.m4 (gl_FUNC_FCLOSE): Likewise.
943         * m4/fseeko.m4 (gl_FUNC_FFLUSH_STDIN): Likewise.
945 2017-07-11  Bruno Haible  <bruno@clisp.org>
947         More systematic m4 quoting and indentation.
948         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Quote systematically.
949         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
950         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
951         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
952         * m4/host-os.m4 (gl_HOST_OS): Likewise.
953         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H,
954         gl_WINSIZE_IN_PTEM): Likewise.
955         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Likewise.
956         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
957         * m4/pselect.m4 (gl_FUNC_PSELECT): Likewise.
958         * m4/fchownat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Quote systematically.
959         Correct indentation.
960         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
961         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
962         * m4/jm-winsz2.m4 (gl_HEADER_TIOCGWINSZ_NEEDS_SYS_IOCTL): Likewise.
963         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
964         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
965         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
967 2017-07-10  Bruno Haible  <bruno@clisp.org>
969         round, roundf: Avoid compiler warning in configure test.
970         * m4/round.m4 (gl_FUNC_ROUND): Use 'return' instead of exit().
971         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
973 2017-07-10  Bruno Haible  <bruno@clisp.org>
975         getlogin tests: Avoid #ifdefs when sharing code between modules.
976         * modules/getlogin_r-tests (Files): Add tests/test-getlogin.h.
977         * modules/getlogin-tests (Files): Likewise. Remove
978         tests/test-getlogin_r.c.
979         * tests/test-getlogin.h: Extracted from tests/test-getlogin_r.c.
980         * tests/test-getlogin.c: Extracted from tests/test-getlogin_r.c.
981         * tests/test-getlogin_r.c: Include test-getlogin.h. Omit code that tests
982         getlogin().
984 2017-07-10  Paul Eggert  <eggert@cs.ucla.edu>
986         getlogin: don’t assume one name per uid
987         Problem reported by Wolfgang F. Muthmann (Bug#27640).
988         * modules/getlogin-tests (Files): Add tests/test-getlogin_r.c.
989         (ttyname): Remove test.
990         * modules/getlogin_r-tests (ttyname): Remove test.
991         * tests/test-getlogin.c: Replace this near-clone of test-getlogin_r.c
992         with ‘#define TEST_LOGIN’ followed by ‘#include "test-getlogin_r.c"’.
993         * tests/test-getlogin_r.c: If TEST_GETLOGIN is defined, test
994         getlogin rather than getlogin_r.  This avoids code duplication.
995         (main): Use isatty and fstat rather than ttyname and stat.
996         Use getpwnam instead of getpwuid, to be portable to test platforms
997         that have multiple login names for the same uid.
999 2017-07-10  Tim Rühsen  <tim.ruehsen@gmx.de>
1000             Bruno Haible  <bruno@clisp.org>
1002         glob: Fix more memory leaks.
1003         * lib/glob.c (glob): Use 'goto out' in order to free dirname before
1004         returning.
1005         Reported by Tim Rühsen.
1007 2017-07-10  Bruno Haible  <bruno@clisp.org>
1009         Make sure $host and $host_os are defined when used.
1010         * m4/argz.m4 (gl_FUNC_ARGZ): Require AC_CANONICAL_HOST.
1011         * m4/closedir.m4 (gl_FUNC_CLOSEDIR): Likewise.
1012         * m4/csharpexec.m4 (gt_CSHARPEXEC): Likewise.
1013         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
1014         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
1015         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Likewise.
1016         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Likewise.
1017         * m4/opendir.m4 (gl_FUNC_OPENDIR): Likewise.
1018         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
1019         * m4/pselect.m4 (gl_FUNC_PSELECT): Likewise.
1020         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Likewise.
1021         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Likewise.
1022         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
1023         * m4/ceill.m4 (gl_FUNC_CEILL): Require AC_CANONICAL_HOST outside the
1024         m4_ifdef block.
1026 2017-07-09  Bruno Haible  <bruno@clisp.org>
1028         *printf: Fix cross-compilation guess for Solaris.
1029         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): Fix copy-and-paste mistake from
1030         2010-12-21.
1032 2017-07-07  Paul Eggert  <eggert@cs.ucla.edu>
1033             Bruno Haible  <bruno@clisp.org>
1035         vasnprintf: port to macOS 10.13
1036         Problem reported by comex in:
1037         http://lists.gnu.org/archive/html/bug-gnulib/2017-07/msg00056.html
1038         * lib/vasnprintf.c (VASNPRINTF): Don’t use %n on macOS.
1040 2017-07-06  Bruno Haible  <bruno@clisp.org>
1042         imaxdiv tests: Fix logic.
1043         * tests/test-imaxdiv.c (main): Use == instead of =.
1044         Reported by Coverity.
1046 2017-07-06  Bruno Haible  <bruno@clisp.org>
1048         uninorm/filter: Fix use-after-free bug.
1049         * lib/uninorm/uninorm-filter.c (uninorm_filter_write): Maintain
1050         sortbuf == filter->sortbuf invariant.
1051         Reported by Coverity.
1053 2017-07-06  Bruno Haible  <bruno@clisp.org>
1055         glob: Fix more memory leaks.
1056         * lib/glob.c (glob): Free dirname before returning.
1057         Reported by Coverity and Tim Rühsen.
1059 2017-07-06  Paul Eggert  <eggert@cs.ucla.edu>
1061         parse-datetime: fix uninit var bug
1062         Reported by Bruno Haible in:
1063         http://lists.gnu.org/archive/html/bug-gnulib/2017-07/msg00038.html
1064         * lib/parse-datetime.y (parse_datetime2): Do not use
1065         uninitialized.
1067 2017-07-05  Bruno Haible  <bruno@clisp.org>
1069         doc: Update for MSVC 14.
1070         * doc/posix-headers/*.texi: Add info about MSVC 14.
1071         * doc/posix-functions/*.texi: Likewise.
1072         * doc/pastposix-functions/*.texi: Likewise.
1073         * doc/glibc-headers/*.texi: Likewise.
1074         * doc/glibc-functions/*.texi: Likewise.
1076 2017-07-05  Bruno Haible  <bruno@clisp.org>
1078         sched: Fix build failure on native Windows (regression from 2017-06-19).
1079         * m4/sched_h.m4 (gl_SCHED_H): Set HAVE_STRUCT_SCHED_PARAM always.
1081 2017-07-03  John E. Malmberg  <wb8tyw@gmail.com>
1083         stdioext: Port to OpenVMS.
1084         * lib/stdio-impl.h: OpenVMS uses struct _iobuf for FILE information.
1085         * lib/fpending.c (fpending): Remove non-working VMS specific code.
1086         * lib/fbufmode.c (fbufmode): Fix _IOLBF test to use fp_ macro.
1087         * lib/fflush.c (clear_ungetc_buffer): Add OpenVMS to comments.
1088         * lib/fpurge.c (fpurge): Likewise.
1089         * lib/freadable.c (freadable): Likewise.
1090         * lib/freadahead.c (freadahead): Likewise.
1091         * lib/freading.c (freading): Likewise.
1092         * lib/freadptr.c (freadptr): Likewise.
1093         * lib/freadseek.c (freadseek): Likewise.
1094         * lib/fseeko.c (fseeko): Likewise.
1095         * lib/fseterr.c (fseterr): Likewise.
1096         * lib/fwritable.c (fwriteable): Likewise.
1097         * lib/fwriting.c (fwriting): Likewise.
1099 2017-07-01  Benno Schulenberg  <bensberg@telfort.nl>
1101         glob: Declare variables at the very start of their scope.
1102         * lib/glob.c (convert_dirent, convert_dirent64): Give each fragment
1103         its separate scope, so the functions will compile on Haiku.
1105 2017-07-01  Bruno Haible  <bruno@clisp.org>
1107         logbl: Work around a glibc bug on PowerPC64LE.
1108         * m4/logbl.m4 (gl_FUNC_LOGBL_WORKS): Test also negative subnormal
1109         numbers.
1110         * doc/posix-functions/logbl.texi: Update.
1112 2017-06-29  Bruno Haible  <bruno@clisp.org>
1114         stat, fstat: Compile stat-w32.c only on platforms that need it.
1115         Suggested by Paul Eggert.
1116         * modules/stat (configure.ac): Request stat-w32.o only on native
1117         Windows.
1118         * modules/fstat (configure.ac): Likewise.
1120 2017-06-25  Bruno Haible  <bruno@clisp.org>
1122         stat: Improve last change.
1123         * lib/stat-w32.c: Revert last change. Use generic idiom instead.
1125 2017-06-25  Paul Eggert  <eggert@cs.ucla.edu>
1127         stat: port to xlc 12.01
1128         * lib/stat-w32.c: Always include <sys/types.h>.  Otherwise, xlc
1129         12.01 complains "Compilation unit is empty."
1131 2017-06-24  Paul Eggert  <eggert@cs.ucla.edu>
1133         xalloc-oversized: port to icc
1134         * lib/xalloc-oversized.h (xalloc_oversized): Do not use
1135         __builtin_mul_overflow if ICC is defined, as this results in
1136         "undefined reference to `__builtin_mul_overflow'" with icc 17.0.2
1137         20170213.
1139 2017-06-19  Bruno Haible  <bruno@clisp.org>
1141         classpath: Avoid including config.h twice, as it produces warnings.
1142         Reported by John E. Malmberg <wb8tyw@gmail.com>.
1143         * lib/classpath.h: Conditionalize the include of config.h.
1145 2017-06-19  Bruno Haible  <bruno@clisp.org>
1146             John E. Malmberg  <wb8tyw@gmail.com>  (tiny change)
1148         sched: Fix compilation failure on OpenVMS.
1149         * m4/sched_h.m4 (gl_SCHED_H): Require AC_CANONICAL_HOST. On OpenVMS,
1150         test whether <pthread.h> exists and defines struct sched_param.
1151         * lib/sched.in.h: On OpenVMS, include <pthread.h>.
1153 2017-06-17  Paul Eggert  <eggert@cs.ucla.edu>
1155         diffseq: port to GCC 7 with --enable-gcc-warnings
1156         * lib/diffseq.h (diag): Use an if, not an ifdef, for most of the
1157         heuristic check.  This way, GCC 7 with --enable-gcc-warnings does
1158         not complain about big_snake being defined but not used.
1160 2017-06-15  Bruno Haible  <bruno@clisp.org>
1162         gettext-h: Update theoretical condition for use of variable size arrays.
1163         Reported by Paul Eggert.
1164         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Extend comment
1165         to include the theoretical condition for availability of variable size
1166         arrays, if we could trust the value of __STDC_VERSION__.
1168 2017-06-12  Bruno Haible  <bruno@clisp.org>
1170         Relicense some modules under LGPLv2+.
1171         Daiki Ueno's approval is in
1172         https://lists.gnu.org/archive/html/bug-gnulib/2017-06/msg00058.html.
1173         * modules/uniwidth/base (License): Change to LGPLv2+.
1174         * modules/uniwidth/width (License): Likewise.
1176 2017-06-11  Bruno Haible  <bruno@clisp.org>
1178         localename: Fix test failure on DragonFly BSD.
1179         * lib/localename.c (gl_locale_name_thread_unsafe): Treat DragonFly BSD
1180         like FreeBSD.
1182 2017-06-11  Bruno Haible  <bruno@clisp.org>
1184         float: Fix 'float' and 'isinf' failures on DragonFly BSD.
1185         * m4/float_h.m4 (gl_FLOAT_H): Treat DragonFly BSD like FreeBSD.
1186         * lib/float.in.h: Likewise.
1187         * m4/fmal.m4, m4/frexpl.m4, m4/logbl.m4: Update accordingly.
1189 2017-06-11  Bruno Haible  <bruno@clisp.org>
1191         gnulib-tool: Clean up after autotools.
1192         * gnulib-tool (func_create_testdir, func_create_megatestdir): Remove
1193         useless directory left over by the Autotools.
1195 2017-06-11  Paul Eggert  <eggert@cs.ucla.edu>
1197         getopt-posix: port to glibc 2.25.90
1198         Problem reported by Daniel P. Berrange in:
1199         http://lists.gnu.org/archive/html/bug-gnulib/2017-06/msg00003.html
1200         * lib/getopt-pfx-core.h (_GETOPT_CORE_H):
1201         * lib/getopt-pfx-ext.h (_GETOPT_EXT_H):
1202         #undef if __GETOPT_PREFIX is defined.
1204 2017-06-11  Bruno Haible  <bruno@clisp.org>
1206         strtod-obsolete: Fix license.
1207         * modules/strtod-obsolete (License): Change to LGPL.
1209 2017-06-10  Jim Meyering  <meyering@fb.com>
1211         maint: update to work with GCC7's -Werror=implicit-fallthrough=
1212         * lib/savewd.c (FALLTHROUGH): Define.
1213         (savewd_save, savewd_restore): Use this, rather than a comment,
1214         whenever one switch case falls through into the next.
1216 2017-06-08  Bruno Haible  <bruno@clisp.org>
1218         host-cpu-c-abi: Support for aarch64 ILP32 ABI.
1219         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI): Recognize the aarch64 ILP32
1220         ABI. Set HOST_CPU_C_ABI=arm64-ilp32 and define __arm64_ilp32__ in this
1221         case.
1223 2017-06-08  Paul Eggert  <eggert@cs.ucla.edu>
1225         doc: remove robots, add prereqs
1226         * doc/build-automation.texi, doc/gnulib.texi: Mention prereqs for
1227         builds.  Simon's robot site does not seem to be up, so remove
1228         mentions of it for now.
1230 2017-06-08  Bruno Haible  <bruno@clisp.org>
1232         gnulib-tool: Fix bug in func_symlink_if_changed, from 2006-11-13.
1233         * gnulib-tool (func_symlink_target): New function, extracted from
1234         func_symlink.
1235         (func_symlink, func_symlink_if_changed): Use it.
1237 2017-06-08  Bruno Haible  <bruno@clisp.org>
1239         gnulib-tool: Fix bug in func_ln_s, from 2016-01-15.
1240         * gnulib-tool (func_ln_s): Determine cp_src correctly.
1242 2017-06-07  Bruno Haible  <bruno@clisp.org>
1244         canonicalize-lgpl: Avoid conflict with gnulib 'getcwd' module on VMS.
1245         Reported by John E. Malmberg <wb8tyw@gmail.com> in
1246         <https://lists.gnu.org/archive/html/bug-gnulib/2017-06/msg00029.html>.
1247         * lib/canonicalize-lgpl.c (__getcwd): On VMS, when using gnulib's getcwd
1248         override, pass 2 arguments to getcwd, not 3.
1250 2017-06-04  Paul Eggert  <eggert@cs.ucla.edu>
1252         same-inode: port better to VMS 8.2 and later
1253         Problem reported by John E. Malmberg in:
1254         http://lists.gnu.org/archive/html/bug-gnulib/2017-06/msg00005.html
1255         * lib/same-inode.h (SAME_INODE) [__VMS && 80200000 <= __CRTL_VER]:
1256         Use the usual POSIX definition.
1257         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Define _USE_STD_STAT.
1259 2017-06-01  Paul Eggert  <eggert@cs.ucla.edu>
1261         error: fix POSIX violation for va_end
1262         Problem reported by Bruno Haible in:
1263         http://lists.gnu.org/archive/html/bug-gnulib/2017-06/msg00001.html
1264         * lib/error.c (error_tail): Do not call va_end here.
1265         (error, error_at_line): Call it here instead.
1267 2017-05-28  Bruno Haible  <bruno@clisp.org>
1269         c-strtod: Make it usable in C++ mode.
1270         * lib/c-strtod.h: Add 'extern "C"' marker for C++.
1272 2017-05-25  Jim Meyering  <meyering@fb.com>
1274         quotearg: fix compilation failure due to FALLTHROUGH misuse
1275         * lib/quotearg.c (quotearg_buffer_restyled): Revert one FALLTHROUGH
1276         macro back to /* fall through */ comment.  The macro can apply only
1277         to a following case statement.  Reported by Assaf Gordon.
1279 2017-05-25  Paul Eggert  <eggert@cs.ucla.edu>
1281         intprops: port to recent icc
1282         Port to icc (ICC) 17.0.4 20170411, which defines __GNUC__ to be 5
1283         but does not support __builtin_add_overflow etc.
1284         * lib/intprops.h (_GL_HAS_BUILTIN_OVERFLOW) [__ICC]:
1285         Define to 0.
1287 2017-05-23  Karl Berry  <karl@freefriends.org>
1289         * config/srclist.txt (iconv.m4): sync broken, comment out
1290         until (hopefully) the next gettext release.
1292 2017-05-22  Bjarni Ingi Gislason  <bjarniig@rhi.hi.is>
1294         Remove repeated words in comments.
1296 2017-05-22  Bernhard Voelker  <mail@bernhard-voelker.de>
1298         fallthrough: reinstate a FALLTHROUGH instance in quotearg
1299         quotearg.c: Reinstate this instance which is significant
1300         when the if branch is not taken.
1302 2017-05-21  Bruno Haible  <bruno@clisp.org>
1304         gnulib-tool: Add options to create hard links.
1305         * gnulib-tool (func_usage): Document options --hardlink,
1306         --local-hardlink, --more-hardlinks.
1307         (func_symlink): Renamed from func_ln.
1308         (func_symlink_if_changed): Renamed from func_ln_if_changed.
1309         (func_hardlink): New function.
1310         (copymode, lcopymode): New variables.
1311         (symbolic, lsymbolic): Remove variables.
1312         (Options): Implement options --hardlink, --local-hardlink,
1313         --more-hardlinks.
1314         (func_should_link): Renamed from func_should_symlink. Set copyaction.
1315         (func_add_file, func_update_file): Update invocation of
1316         func_should_link. Invoke func_hardlink when appropriate.
1317         (func_import): Update comments.
1318         (func_create_testdir): Update invocation of func_should_link. Invoke
1319         func_hardlink when appropriate.
1320         Finally, invoke 'git update-index --refresh' to mitigate the effects of
1321         the hard links on git.
1323 2017-05-20  Bruno Haible  <bruno@clisp.org>
1325         argp: Simplify bit manipulation.
1326         * lib/argp-parse.c (parser_parse_opt): Use &, |, ~ instead of shifts
1327         on a signed integer type.
1329 2017-05-20  Bruno Haible  <bruno@clisp.org>
1331         Avoid wrong configure results with gcc -fsanitize=address.
1332         This completes the work done on 2016-02-06 on this topic.
1333         * m4/memmem.m4 (gl_FUNC_MEMMEM): Free allocated memory before returning.
1334         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Likewise.
1335         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
1336         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
1337         * m4/fopen.m4 (gl_FUNC_FOPEN): Close allocated FILE streams before
1338         returning.
1339         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): Likewise.
1340         * m4/fpurge.m4 (gl_FUNC_FPURGE): Likewise.
1341         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
1342         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
1343         * m4/signbit.m4 (gl_FLOATTYPE_SIGN_LOCATION): Likewise.
1344         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Likewise.
1345         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Close allocated FILE streams and
1346         free allocated memory before returning.
1347         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
1348         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Close allocated DIR
1349         objects before returning.
1350         * m4/iconv.m4 (AM_ICONV_LINK): Close allocated iconv_t handles before
1351         returning.
1353 2017-05-20  Bruno Haible  <bruno@clisp.org>
1355         gnulib-tool: Don't create hard links between gnulib and its testdirs.
1356         * gnulib-tool (func_create_testdir): Don't invoke 'ln'.
1358 2017-05-20  Bruno Haible  <bruno@clisp.org>
1360         argp, tsearch tests: Fix file list.
1361         * modules/argp-tests (Files): Add tests/macros.h.
1362         * modules/tsearch-tests (Files): Likewise.
1364 2017-05-20  Bruno Haible  <bruno@clisp.org>
1366         getopt-posix tests: Remove redundant include.
1367         * tests/test-getopt.h: Don't include "macros.h". It's already included
1368         by tests/test-getopt-main.h.
1370 2017-05-19  Jim Meyering  <meyering@fb.com>
1372         dfa: two small simplifications
1373         * lib/dfa.c (build_state): Avoid repeating longer expressions.
1375 2017-05-18  Jim Meyering  <meyering@fb.com>
1377         fallthrough: update for GCC 7/8
1378         * lib/quotearg.c (FALLTHROUGH): New macro.
1379         Use it whenever one switch case falls through into the next,
1380         replacing "/* Fall through */" comments.  This exposed one
1381         instance of an unwarranted "fall through" comment: unwarranted
1382         because it preceded a "goto" label not a case statement.
1383         * lib/freopen-safer.c (freopen_safer): Likewise.
1384         * lib/fts.c (leaf_optimization_applies): Likewise.
1385         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Likewise.
1386         * tests/test-getopt_long.h (getopt_long_loop): Likewise.
1387         * tests/test-tsearch.c (mangle_tree): Likewise.  Also include
1388         tests/macros.h for the definition.
1389         * tests/test-argp.c (group1_parser): Likewise.
1390         * tests/test-getopt.h (getopt_loop): Likewise.
1392 2017-05-19  Paul Eggert  <eggert@cs.ucla.edu>
1394         argp: fix shift bug
1395         * lib/argp-parse.c (parser_parse_opt): Rework to avoid undefined
1396         behavior on shift overflow, caught by gcc -fsanitize=undefined.
1398         argp: fix pointer-subtraction bug
1399         * lib/argp-help.c (hol_append): Don’t subtract pointers to
1400         different arrays, as this can run afoul of -fcheck-pointer-bounds.
1401         See the thread containing Bruno Haible’s report in:
1402         http://lists.gnu.org/archive/html/bug-gnulib/2017-05/msg00171.html
1404 2017-05-19  Bruno Haible  <bruno@clisp.org>
1406         printf-posix tests: Avoid test failure with "gcc --coverage".
1407         Reported by Tim Rühsen <tim.ruehsen@gmx.de>.
1408         * tests/test-printf-posix2.c (main): Test a width of 10000000 rather
1409         than 5000000.
1410         * tests/test-fprintf-posix2.c (main): Likewise.
1412 2017-05-19  Paul Eggert  <eggert@cs.ucla.edu>
1414         closeout: don’t close stderr when sanitizing
1415         * NEWS: Document this.
1416         * lib/closeout.c (__has_feature): New macro, if not already defined.
1417         (SANITIZE_ADDRESS): New constant.
1418         (close_stdout): Don’t close stderr if sanitizing addresses.
1420 2017-05-19  Bruno Haible  <bruno@clisp.org>
1422         get-rusage-data tests: Avoid failure on Linux/glibc.
1423         * tests/test-get-rusage-data.c (main): Don't expect a strict increase
1424         on glibc systems.
1426 2017-05-18  Bruno Haible  <bruno@clisp.org>
1428         localename: Include necessary header files on Cygwin.
1429         * lib/localename.c [__CYGWIN__]: Include <langinfo.h>, since this is
1430         where NL_LOCALE_NAME is defined.
1432 2017-05-18  Bruno Haible  <bruno@clisp.org>
1434         gettext: Update macros from gettext git.
1435         * m4/intldir.m4: Require Autoconf >= 2.60.
1436         * m4/progtest.m4: Fix typos in copyright notice.
1438 2017-05-18  Bruno Haible  <bruno@clisp.org>
1440         copy-file tests: Fix link error (regression from 2017-05-01).
1441         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
1442         * modules/copy-file-tests (Makefile.am): Link test-copy-file with
1443         $(LIB_CLOCK_GETTIME).
1445 2017-05-18  Bruno Haible  <bruno@clisp.org>
1447         unicase/special-casing: Fix incompatibility with gperf-3.0.4
1448         (regression from 2017-02-13).
1449         * lib/unicase/special-casing.in.h: Renamed from
1450         lib/unicase/special-casing.h.
1451         * modules/unicase/special-casing (Files): Add
1452         lib/unicase/special-casing.in.h. Remove lib/unicase/special-casing.h.
1453         (Makefile.am): Add rule for generating unicase/special-casing.h.
1454         Update BUILT_SOURCES and MOSTLYCLEANFILES accordingly.
1455         * lib/unicase/special-casing.c: Include "unicase/special-casing.h",
1456         not "special-casing.h".
1457         * lib/unicase/u*.c: Likewise.
1459 2017-05-17  Bruno Haible  <bruno@clisp.org>
1461         README: Don't ask people to read a TeXinfo file.
1462         Reported by Tim Rühsen <tim.ruehsen@gmx.de>.
1463         * README: Tell people how to read the HTML formatted manual.
1465 2017-05-16  Tim Rühsen  <tim.ruehsen@gmx.de>
1467         parse-datetime: Fix memleak
1468         * lib/parse-datetime.y (parse_datetime2): Cleanup on
1469         localtime_rz() failure.
1471 2017-05-16  Bruno Haible  <bruno@clisp.org>
1473         javacomp: Fix handle leak.
1474         Found by Coverity.
1475         * lib/javacomp.c (get_classfile_version): Close fd before returning.
1477 2017-05-16  Bruno Haible  <bruno@clisp.org>
1479         relocate: Make it easier to reclaim allocated memory.
1480         * lib/relocatable.h (relocate2): New declaration/macro.
1481         * lib/relocatable.c (relocate2): New function.
1482         * doc/relocatable-maint.texi (Supporting Relocation): Mention the
1483         relocate2 function.
1484         * lib/localcharset.c (relocate2): Define fallback.
1485         (get_charset_aliases): Invoke relocate2 instead of relocate. Free the
1486         allocated memory.
1487         * lib/javaversion.c (relocate2): Define fallback.
1488         (javaexec_version): Invoke relocate2 instead of relocate. Free the
1489         allocated memory.
1491 2017-05-16  Bruno Haible  <bruno@clisp.org>
1493         relocate: Simplify EMX specific code.
1494         * lib/relocatable.c (relocate): Assume pathname is non-NULL. Use
1495         ISSLASH macro consistently. Avoid dangerous string concatenation idiom.
1497 2017-05-16  Bruno Haible  <bruno@clisp.org>
1499         sigpipe tests: Fix file list.
1500         * modules/sigpipe-tests (Files): Add tests/macros.h.
1502 2017-05-16  Paul Eggert  <eggert@cs.ucla.edu>
1504         manywarnings: update for GCC 7
1505         * build-aux/gcc-warning.spec:
1506         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC):
1507         Add GCC 7 warnings, notably -Wimplicit-fallthrough=5, which
1508         requires a non-comment fallthrough attribute.  This is a bit
1509         cleaner than the comment versions.
1510         * lib/strftime.c, lib/dfa.c, lib/fnmatch.c, lib/mbrtowc.c:
1511         * lib/vasnprintf.c, tests/macros.h (FALLTHROUGH): New macro.
1512         Use it whenever one switch case falls through into the next.
1513         * lib/fnmatch_loop.c, tests/test-mbrtowc.c, tests/test-sigpipe.c:
1514         Use FALLTHROUGH macro.
1516 2017-05-15  Bruno Haible  <bruno@clisp.org>
1518         gnulib-tool: Fix generated code when libtests contains module 'alloca'.
1519         * gnulib-tool (func_emit_tests_Makefile_am): For libtests.a, use
1520         @ALLOCA@, not @LTALLOCA@.
1522 2017-05-15  Bruno Haible  <bruno@clisp.org>
1524         sys_select: Avoid "was expanded before it was required" warning.
1525         * modules/sys_select (configure.ac): Require, not invoke,
1526         gl_HEADER_SYS_SELECT.
1528 2017-05-14  Paul Eggert  <eggert@cs.ucla.edu>
1530         gnulib-tool: improve GNU Make debugging
1531         * gnulib-tool (func_emit_lib_Makefile_am): Omit unnecessary echo.
1532         Report autoconf diagnostics when it fails, in the output makefile.
1534 2017-05-14  Bruno Haible  <bruno@clisp.org>
1536         stat-time tests: Improve comment.
1537         * tests/test-stat-time.c: Add hyperlink, from Paul Eggert.
1539 2017-05-14  Bruno Haible  <bruno@clisp.org>
1541         same-inode: Adapt for windows-stat-inodes.
1542         * lib/same-inode.h: Include <sys/types.h>.
1543         (SAME_INODE) [_GL_WINDOWS_STAT_INODES]: Define specifically.
1544         * modules/same-inode (Depends-on): Add sys_types.
1546 2017-05-14  Bruno Haible  <bruno@clisp.org>
1548         windows-stat-inodes: New module.
1549         * m4/windows-stat-inodes.m4: New file.
1550         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Set WINDOWS_STAT_INODES.
1551         * modules/sys_types (Makefile.am): Substitute WINDOWS_STAT_INODES.
1552         * lib/sys_types.in.h [WINDOWS_STAT_INODES]: Override dev_t and ino_t.
1553         (_GL_WINDOWS_STAT_INODES): New macro.
1554         * lib/stat-w32.c: Set _WIN32_WINNT. Include <string.h>, verify.h.
1555         (GetFileInformationByHandleExFunc): New variable.
1556         (initialize): Initialize it.
1557         (_gl_fstat_by_handle) [_GL_WINDOWS_STAT_INODES]: Initialize st_dev and
1558         st_ino appropriately.
1559         * lib/stat.c (rpl_stat): Use the directory entry based approach only as
1560         a fallback, because it does not provide st_dev and st_ino values.
1561         * modules/fstat (Depends-on): Add 'verify'.
1562         * modules/windows-stat-inodes: New file.
1563         * doc/windows-stat-inodes.texi: New file.
1564         * doc/gnulib.texi: Include it.
1565         * doc/posix-headers/sys_stat.texi: Mention the new module.
1567 2017-05-14  Bruno Haible  <bruno@clisp.org>
1569         stat-time tests: Workaround for native Windows.
1570         * tests/test-stat-time.c: Include <stdio.h>, <time.h>.
1571         (filename_stamp1, filename_testfile, filename_stamp2, filename_stamp3):
1572         New variables.
1573         (initialize_filenames): New function.
1574         (main): Invoke it.
1575         (cleanup, prepare_test): Update.
1577 2017-05-14  Bruno Haible  <bruno@clisp.org>
1579         stat-time: Adapt for windows-stat-timespec.
1580         * lib/stat-time.h (get_stat_birthtime) [_GL_WINDOWS_STAT_TIMESPEC]: Use
1581         entire st_ctim field.
1583 2017-05-13  Jim Meyering  <meyering@fb.com>
1585         maint.mk: update regex to reflect 2013 addition of "assume" to verify.h
1586         * top/maint.mk (sc_prohibit_verify_without_use): Don't reject a source
1587         file that uses the assume macro, claiming that verify.h is unused.
1589 2017-05-13  Bruno Haible  <bruno@clisp.org>
1591         Use symbolic values for _WIN32_WINNT.
1592         * lib/ftruncate.c (_WIN32_WINNT): Use symbolic value _WIN32_WINNT_WIN2K.
1593         * lib/sethostname.c (_WIN32_WINNT): Likewise.
1595 2017-05-13  Bruno Haible  <bruno@clisp.org>
1597         year2038: New module.
1598         * m4/year2038.m4: New file.
1599         * modules/year2038: New file.
1600         * doc/year2038.texi: New file.
1601         * doc/gnulib.texi: Include it.
1603 2017-05-13  Bruno Haible  <bruno@clisp.org>
1605         largefile: Simplify.
1606         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Remove unused definition
1607         of _GL_WINDOWS_64_BIT_ST_SIZE.
1609 2017-05-13  Bruno Haible  <bruno@clisp.org>
1611         largefile: Improve and document.
1612         * m4/largefile.m4 (gl_LARGEFILE): Set WINDOWS_64_BIT_ST_SIZE to 0 if
1613         the mingw headers already define 'stat' appropriately.
1614         * modules/largefile (Description): Clarify.
1615         * doc/largefile.texi: New file.
1616         * doc/gnulib.texi: Include it.
1617         * doc/posix-headers/sys_types.texi: Update.
1619 2017-05-13  Bruno Haible  <bruno@clisp.org>
1621         truncate: New module.
1622         * lib/unistd.in.h (truncate): New declaration.
1623         * lib/truncate.c: New file.
1624         * m4/truncate.m4: New file.
1625         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether 'truncate' is declared.
1626         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_TRUNCATE, HAVE_TRUNCATE,
1627         REPLACE_TRUNCATE.
1628         * modules/unistd (Makefile.am): Substitute GNULIB_TRUNCATE,
1629         HAVE_TRUNCATE, REPLACE_TRUNCATE.
1630         * modules/truncate: New file.
1631         * tests/test-unistd-c++.cc (truncate): Test signature.
1632         * doc/posix-functions/truncate.texi: Mention the new module.
1634         * tests/test-truncate.c: New file.
1635         * modules/truncate-tests: New file.
1637 2017-05-13  Bruno Haible  <bruno@clisp.org>
1639         windows-stat-timespec: New module.
1640         * modules/windows-stat-timespec: New file.
1641         * m4/windows-stat-timespec.m4: New file.
1642         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Set WINDOWS_STAT_TIMESPEC.
1643         * modules/sys_stat (Makefile.am): Substitute WINDOWS_STAT_TIMESPEC.
1644         * lib/sys_stat.in.h (struct stat) [WINDOWS_STAT_TIMESPEC]: Declare with
1645         fields st_atim, st_mtim, st_ctim.
1646         (st_atime, st_mtime, st_ctime): Define as macros.
1647         (_GL_WINDOWS_STAT_TIMESPEC): New macro.
1648         * lib/stat-w32.h (_gl_convert_FILETIME_to_timespec)
1649         [_GL_WINDOWS_STAT_TIMESPEC]: New declaration.
1650         * lib/stat-w32.c (_gl_convert_FILETIME_to_timespec)
1651         [_GL_WINDOWS_STAT_TIMESPEC]: New function.
1652         (_gl_convert_FILETIME_to_POSIX): Adjust coding style.
1653         (_gl_fstat_by_handle): If _GL_WINDOWS_STAT_TIMESPEC, convert the
1654         FILETIME to 'struct timespec', not 'time_t'.
1655         * lib/stat.c (rpl_stat): If _GL_WINDOWS_STAT_TIMESPEC, convert the
1656         FILETIME to 'struct timespec', not 'time_t'.
1657         * lib/stat-time.h (STAT_TIMESPEC): Define also if
1658         _GL_WINDOWS_STAT_TIMESPEC.
1659         * doc/windows-stat-timespec.texi: New file.
1660         * doc/gnulib.texi: Include it.
1662 2017-05-13  Bruno Haible  <bruno@clisp.org>
1664         windows-stat-override: New module.
1665         * lib/sys_stat.in.h (stat) [GNULIB_OVERRIDES_STRUCT_STAT]: Provide own
1666         definition. Define GNULIB_defined_struct_stat.
1667         (fstat, fstatat, lstat, stat) [GNULIB_OVERRIDES_STRUCT_STAT]: Provoke
1668         link error if this symbol is used and the corresponding module is not
1669         in use.
1670         (_stat64, _stat32i64, _stati64, _stat32, _stat64i32): Don't redefine if
1671         GNULIB_OVERRIDES_STRUCT_STAT.
1672         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize
1673         GNULIB_OVERRIDES_STRUCT_STAT.
1674         * modules/sys_stat (Makefile.am): Substitute
1675         GNULIB_OVERRIDES_STRUCT_STAT.
1676         * modules/windows-stat-override: New file.
1678 2017-05-13  Bruno Haible  <bruno@clisp.org>
1680         fstat: Fix module dependency conditions.
1681         * modules/fstat (Depends-on): Fix typo.
1683 2017-05-13  Bruno Haible  <bruno@clisp.org>
1685         stat, fstat: Complete removal of old native Windows code.
1686         * lib/stat.c: Remove old macrology for WINDOWS_NATIVE.
1687         * lib/fstat.c: Likewise.
1688         * lib/stat-w32.c: Likewise.
1690 2017-05-13  Bruno Haible  <bruno@clisp.org>
1692         stat: Complete removal of REPLACE_FUNC_STAT_DIR code.
1693         * lib/stat.c: Remove all REPLACE_FUNC_STAT_DIR code.
1695 2017-05-11  Paul Eggert  <eggert@cs.ucla.edu>
1697         getopt-posix: port to mingw
1698         * lib/getopt.c (flockfile, funlockfile): Define on mingw.
1699         Problem reported by Daniel P. Berrage in:
1700         http://lists.gnu.org/archive/html/bug-gnulib/2017-05/msg00086.html
1702 2017-05-11  Bruno Haible  <bruno@clisp.org>
1704         gettimeofday: Increase precision on mingw.
1705         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Require AC_CANONICAL_HOST.
1706         Set REPLACE_GETTIMEOFDAY to 1 on mingw.
1707         * lib/gettimeofday.c (gettimeofday): On native Windows, use the
1708         GetSystemTimePreciseAsFileTime based implementation always.
1709         * doc/posix-functions/gettimeofday.texi: Mention precision problem on
1710         mingw.
1712 2017-05-11  Bruno Haible  <bruno@clisp.org>
1714         poll: Fix confusion between SOCKETs and FDs on native Windows.
1715         Fix proposed by Daniel P. Berrange <berrange@redhat.com>.
1716         * lib/poll.c [WINDOWS_NATIVE]: Undefine select.
1718 2017-05-11  Bruno Haible  <bruno@clisp.org>
1720         doc: Clarify doc about socket functions on native Windows.
1721         This reworks doc that was added on 2008-09-29.
1722         * doc/posix-functions/select.texi: Fix copy-and-paste mistake and use
1723         clearer wording.
1724         * doc/posix-functions/accept.texi: Use clearer wording.
1725         * doc/posix-functions/bind.texi: Likewise.
1726         * doc/posix-functions/connect.texi: Likewise.
1727         * doc/posix-functions/getpeername.texi: Likewise.
1728         * doc/posix-functions/getsockname.texi: Likewise.
1729         * doc/posix-functions/getsockopt.texi: Likewise.
1730         * doc/posix-functions/ioctl.texi: Likewise.
1731         * doc/posix-functions/listen.texi: Likewise.
1732         * doc/posix-functions/recv.texi: Likewise.
1733         * doc/posix-functions/recvfrom.texi: Likewise.
1734         * doc/posix-functions/send.texi: Likewise.
1735         * doc/posix-functions/sendto.texi: Likewise.
1736         * doc/posix-functions/setsockopt.texi: Likewise.
1737         * doc/posix-functions/shutdown.texi: Likewise.
1738         * doc/posix-functions/socket.texi: Likewise.
1740 2017-05-10  Bruno Haible  <bruno@clisp.org>
1742         poll: Fix link error on native Windows.
1743         * lib/poll.c [WINDOWS_NATIVE]: Undefine recv.
1745 2017-05-10  Bruno Haible  <bruno@clisp.org>
1747         time: Fix missing initialization of HAVE_TIMEZONE_T.
1748         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_TIMEZONE_T
1749         here...
1750         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS): ... not here.
1751         * m4/time_rz.m4 (gl_TIME_RZ): Require gl_HEADER_TIME_H_DEFAULTS, not
1752         gl_HEADER_SYS_TIME_H_DEFAULTS.
1753         * modules/time_rz (Depends-on): Add 'time'. Remove useless quoting.
1754         (configure.ac): Remove useless quoting.
1756 2017-05-10  Bruno Haible  <bruno@clisp.org>
1758         Implement a way to opt out from MSVC support, part 2.
1759         * modules/msvc-inval (Include): Document recommended idiom.
1760         * modules/msvc-nothrow (Include): Likewise.
1762         Implement a way to opt out from MSVC support.
1763         This is useful for Emacs.
1764         * modules/msvc-nothrow (configure.ac): Invoke gl_MODULE_INDICATOR.
1765         * lib/accept4.c: Include <io.h> as an alternative to msvc-nothrow.h.
1766         * lib/error.c: Likewise.
1767         * lib/fcntl.c: Likewise.
1768         * lib/flock.c: Likewise.
1769         * lib/fstat.c: Likewise.
1770         * lib/fsync.c: Likewise.
1771         * lib/ioctl.c: Likewise.
1772         * lib/isapipe.c: Likewise.
1773         * lib/lseek.c: Likewise.
1774         * lib/nonblocking.c: Likewise.
1775         * lib/poll.c: Likewise.
1776         * lib/select.c: Likewise.
1777         * lib/sockets.h: Likewise.
1778         * lib/sockets.c: Likewise.
1779         * lib/stdio-read.c: Likewise.
1780         * lib/stdio-write.c: Likewise.
1781         * lib/utimens.c: Likewise.
1782         * lib/w32sock.h: Likewise.
1783         * lib/w32spawn.h: Likewise.
1784         * tests/test-cloexec.c: Likewise.
1785         * tests/test-dup-safer.c: Likewise.
1786         * tests/test-dup2.c: Likewise.
1787         * tests/test-dup3.c: Likewise.
1788         * tests/test-fcntl.c: Likewise.
1789         * tests/test-pipe.c: Likewise.
1790         * tests/test-pipe2.c: Likewise.
1791         * lib/ftruncate.c: Likewise.
1792         (chsize_nothrow): Renamed from chsize.
1793         * lib/msvc-nothrow.c: Don't include msvc-inval.h if
1794         HAVE_MSVC_INVALID_PARAMETER_HANDLER is not defined.
1795         * lib/close.c: Likewise.
1796         * lib/dup.c: Likewise.
1797         * lib/fclose.c: Likewise.
1798         * lib/raise.c: Likewise.
1799         * tests/test-fgetc.c: Likewise.
1800         * tests/test-fputc.c: Likewise.
1801         * tests/test-fread.c: Likewise.
1802         * tests/test-fwrite.c: Likewise.
1803         * lib/getdtablesize.c: Likewise.
1804         (_setmaxstdio_nothrow): Renamed from _setmaxstdio.
1805         * lib/isatty.c: Don't include msvc-inval.h if
1806         HAVE_MSVC_INVALID_PARAMETER_HANDLER is not defined.
1807         Include <io.h> as an alternative to msvc-nothrow.h.
1808         * lib/read.c: Likewise.
1809         * lib/write.c: Likewise.
1810         * lib/dup2.c: Likewise.
1811         (dup2_nothrow): New function.
1812         (ms_windows_dup2): Use it.
1813         * m4/close.m4 (gl_FUNC_CLOSE): Invoke gl_MSVC_INVAL and test
1814         HAVE_MSVC_INVALID_PARAMETER_HANDLER only if gl_MSVC_INVAL is defined.
1815         * m4/dup.m4 (gl_FUNC_DUP): Likewise.
1816         * m4/fdopen.m4 (gl_FUNC_FDOPEN): Likewise.
1817         * m4/raise.m4 (gl_FUNC_RAISE): Likewise.
1818         * m4/read.m4 (gl_FUNC_READ): Likewise.
1819         * m4/write.m4 (gl_FUNC_WRITE): Likewise.
1820         * doc/windows-without-msvc.texi: New file.
1821         * doc/gnulib.texi (Native Windows Support without MSVC Support): New
1822         section.
1824 2017-05-10  Bruno Haible  <bruno@clisp.org>
1826         wait-process: Adjust native Windows support.
1827         * lib/wait-process.c: Use the usual condition for recognizing a native
1828         Windows platform.
1830 2017-05-10  Bruno Haible  <bruno@clisp.org>
1832         doc: New chapter "Native Windows Support".
1833         * doc/gnulib.texi (Native Windows Support): New chapter.
1834         * doc/windows-libtool.texi: Small wording changes.
1835         * doc/windows-sockets.texi: Small wording and formatting changes.
1837 2017-05-10  Bruno Haible  <bruno@clisp.org>
1839         doc: Move section "Library version handling".
1840         * doc/gnulib.texi: Move section "Library version handling"
1841         from chapter "Miscellaneous Notes" to chapter "Particular Modules".
1843 2017-05-10  Bruno Haible  <bruno@clisp.org>
1845         doc: Move section "Running self-tests under valgrind".
1846         * doc/gnulib.texi: Move section "Running self-tests under valgrind"
1847         from chapter "Particular Modules" to chapter "Miscellaneous Notes".
1849 2017-05-10  Bruno Haible  <bruno@clisp.org>
1851         doc: New chapter "Build Infrastructure Modules".
1852         * doc/gnulib.texi (Build Infrastructure Modules): New chapter.
1854 2017-05-10  Bruno Haible  <bruno@clisp.org>
1856         Prepare for reordering sections in the manual.
1857         * doc/gnulib.texi: Move several sections to separate files. Include
1858         these files.
1859         * doc/out-of-memory.texi: New file, extracted from doc/gnulib.texi.
1860         * doc/obsolete.texi: Likewise.
1861         * doc/extra-tests.texi: Likewise.
1862         * doc/transversal.texi: Likewise.
1863         * doc/namespace.texi: Likewise.
1864         * doc/check-version.texi: Likewise.
1865         * doc/windows-sockets.texi: Likewise.
1866         * doc/windows-libtool.texi: Likewise.
1867         * doc/licenses-texi.texi: Likewise.
1868         * doc/build-automation.texi: Likewise.
1869         * doc/c-locale.texi: Likewise.
1871 2017-05-10  Bruno Haible  <bruno@clisp.org>
1873         Fix instructions how to update manual on www.gnu.org.
1874         * doc/README: Add -I option, so that texi2dvi finds texinfo.tex.
1876 2017-05-09  Bruno Haible  <bruno@clisp.org>
1878         tzset: Expand comment about TZ problem on native Windows.
1879         * lib/tzset.c (tzset): Elaborate comment, based on explanations by
1880         Paul Eggert.
1881         * lib/ctime.c (rpl_ctime): Likewise.
1882         * lib/localtime.c (rpl_localtime): Likewise.
1883         * lib/mktime.c (mktime): Likewise.
1884         * lib/strftime-fixes.c (rpl_strftime): Likewise.
1885         * lib/wcsftime.c (rpl_wcsftime): Likewise.
1887 2017-05-08  Paul Eggert  <eggert@cs.ucla.edu>
1889         intprops: don’t depend on ‘verify’
1890         Problem reported by Ævar Arnfjörð Bjarmason in:
1891         http://lists.gnu.org/archive/html/bug-gnulib/2017-05/msg00054.html
1892         * lib/intprops.h: Do not include verify.h, and move compile-time
1893         checks from here ...
1894         * tests/test-intprops.c (main): ... to here, if they’re not here
1895         already.  Check widths of other standard integer types.
1896         * modules/intprops (Depends-on): Remove ‘verify’.
1898 2017-05-07  Bruno Haible  <bruno@clisp.org>
1900         utimens: On native Windows, support 100ns resolution also if fd < 0.
1901         * lib/utime.in.h: Include <time.h>.
1902         (_gl_utimens_windows): New declaration.
1903         * lib/utime.c (_gl_utimens_windows): New function, based on utime.
1904         (utime): Invoke it.
1905         * lib/utimens.c (fdutimens): On native Windows, call _gl_utimens_windows
1906         instead of utime.
1907         * modules/utime (Depends-on): Add 'time'.
1909 2017-05-07  Bruno Haible  <bruno@clisp.org>
1911         utimens: Improve error code on native Windows.
1912         * lib/utimens.c (fdutimens): If fd was not opened with O_RDWR, fail with
1913         error code EACCES, not EINVAL.
1915 2017-05-07  Bruno Haible  <bruno@clisp.org>
1917         utime: Handle more Windows error codes.
1918         * lib/utime.c (utime): Handle ERROR_BAD_NETPATH.
1919         Based on explanations by Billy O'Neal.
1921 2017-05-05  Bruno Haible  <bruno@clisp.org>
1923         crypto/rijndael: Fix "strict-aliasing rules" warnings, alignment issues.
1924         * lib/rijndael-api-fst.c (rijndaelBlockEncrypt): Declare 'block' as a
1925         union.
1926         (rijndaelPadEncrypt, rijndaelBlockDecrypt): Likewise.
1927         (rijndaelPadDecrypt): Likewise. Use local variable 'iv' to cache the
1928         value of cipher->IV.
1930 2017-05-05  Bruno Haible  <bruno@clisp.org>
1932         wctype-h-c++-tests: Update.
1933         * tests/test-wctype-h-c++.cc: Reorder to match lib/wchar.in.h.
1935 2017-05-05  Bruno Haible  <bruno@clisp.org>
1937         wchar-c++-tests: Update.
1938         * tests/test-wchar-c++.cc (wcsftime): Declare, missing since 2017-04-30.
1940 2017-05-05  Bruno Haible  <bruno@clisp.org>
1942         utime-h-c++-tests: New module.
1943         * tests/test-utime-h-c++.cc: New file.
1944         (utime): Declare, missing since 2017-04-30.
1945         * modules/utime-h-c++-tests: New file.
1947 2017-05-05  Bruno Haible  <bruno@clisp.org>
1949         unistd-c++-tests: Update.
1950         * tests/test-unistd-c++.cc (isatty): Declare, missing since 2012-01-03.
1951         (read): Declare, missing since 2011-04-15.
1952         (sethostname): Declare, missing since 2011-12-03.
1954 2017-05-05  Bruno Haible  <bruno@clisp.org>
1956         time-c++-tests: Update.
1957         * tests/test-time-c++.cc (tzset): Declare, missing since 2017-05-01.
1958         (localtime, gmtime): Declare, missing since 2017-04-30.
1959         (ctime): Declare, missing since 2017-04-30.
1960         (strftime): Declare, missing since 2017-04-30.
1961         (tzalloc, tzfree, localtime_rz, mktime_z): Declare, missing since
1962         2015-07-24.
1964 2017-05-05  Bruno Haible  <bruno@clisp.org>
1966         sys_resource-c++-tests: New module.
1967         * tests/test-sys_resource-c++.cc: New file.
1968         (getrusage): Declare, missing since 2012-04-13.
1969         * modules/sys_resource-c++-tests: New file.
1971 2017-05-05  Bruno Haible  <bruno@clisp.org>
1973         strings-c++-tests: New module.
1974         * tests/test-strings-c++.cc: New file.
1975         (ffs): Declare, missing since 2011-07-12.
1976         * modules/strings-c++-tests: New file.
1978 2017-05-05  Bruno Haible  <bruno@clisp.org>
1980         string-c++-tests: Update.
1981         * tests/test-string-c++.cc (ffsl): Declare, missing since 2011-07-15.
1982         (ffsll): Declare, missing since 2011-07-15.
1984 2017-05-05  Bruno Haible  <bruno@clisp.org>
1986         stdlib-c++-tests: Update.
1987         * tests/test-stdlib-c++.cc (posix_openpt): Declare, missing since
1988         2011-10-18.
1989         (ptsname_r): Declare, missing since 2011-11-07.
1990         (qsort_r): Declare, missing since 2014-08-29.
1991         (random, srandom, initstate, setstate): Declare, missing since
1992         2012-01-14.
1993         (secure_getenv): Declare, missing since 2013-02-05.
1995 2017-05-05  Bruno Haible  <bruno@clisp.org>
1997         stdio-c++-tests: Update.
1998         * tests/test-stdio-c++.cc (pclose): Declare, missing since 2011-09-18.
2000 2017-05-05  Bruno Haible  <bruno@clisp.org>
2002         signal-h-c++-tests: Update.
2003         * tests/test-signal-h-c++.cc (raise): Remove redundant declaration.
2005 2017-05-05  Bruno Haible  <bruno@clisp.org>
2007         math-c++-tests: Update.
2008         * tests/test-math-c++.cc (fmaf): Declare, missing since 2011-10-17.
2009         (fma): Declare, missing since 2011-10-17.
2010         (fmal): Declare, missing since 2011-10-17.
2012 2017-05-05  Bruno Haible  <bruno@clisp.org>
2014         locale-c++-tests: Update.
2015         * tests/test-locale-c++.cc (localeconv): Declare, missing since
2016         2012-03-25.
2018 2017-05-05  Bruno Haible  <bruno@clisp.org>
2020         inttypes-c++-tests: New module.
2021         * tests/test-inttypes-c++.cc: New file.
2022         (strtoimax): Declare, missing since 2012-01-05.
2023         (strtoumax): Declare, missing since 2012-01-05.
2024         * modules/inttypes-c++-tests: New file.
2026 2017-05-05  Bruno Haible  <bruno@clisp.org>
2028         dirent-c++-tests: Update.
2029         * tests/test-dirent-c++.cc (readdir): Declare, missing since 2011-09-13.
2030         (rewinddir): Declare, missing since 2011-09-13.
2031         (dirfd): Declare, missing since 2010-03-08.
2033 2017-05-04  Bruno Haible  <bruno@clisp.org>
2035         argp: Fix mistake in 2017-04-23 commit.
2036         * lib/argp-help.c (__argp_failure): If GNULIB_STRERROR_R_POSIX is set,
2037         assume that strerror_r returns 'int', not 'char *'.
2039 2017-05-04  Reuben Thomas  <rrt@sc3d.org>
2041         argp: Fix typo.
2042         * lib/argp-help.c (argp_doc): Fix spelling mistake in comment.
2044 2017-05-02  Paul Eggert  <eggert@cs.ucla.edu>
2046         utimens: port to Emacs + MS-Windows
2047         Skip the new MS-Windows-specific code if Emacs.
2048         * lib/utimens.c [EMACS_CONFIGUATION]:
2049         Avoid new MS-Windows-specific code.
2050         (USE_SETFILETIME): New macro.
2051         (fdutimens): Use it.
2053 2017-05-01  Paul Eggert  <eggert@cs.ucla.edu>
2055         tzset: update doc for TZ problems on MS-Windows
2056         * doc/posix-functions/ctime.texi,  doc/posix-functions/daylight.texi:
2057         * doc/posix-functions/localtime.texi, doc/posix-functions/mktime.texi:
2058         * doc/posix-functions/strftime.texi, doc/posix-functions/timezone.texi:
2059         * doc/posix-functions/tzname.texi, doc/posix-functions/tzset.texi:
2060         * doc/posix-functions/wcsftime.texi:
2061         Mention some issues with TZ under MS-Windows.
2063 2017-05-01  Bruno Haible  <bruno@clisp.org>
2065         copy-file: Fix build error on mingw.
2066         * modules/copy-file (Depends-on): Add 'close'.
2068 2017-05-01  Bruno Haible  <bruno@clisp.org>
2070         tzset: Work around TZ problem on native Windows.
2071         * m4/tzset.m4 (gl_FUNC_TZSET): Require AC_CANONICAL_HOST. On native
2072         Windows, set REPLACE_TZSET to 1.
2073         * lib/tzset.c (tzset): On native Windows, fix TZ if necessary, and
2074         invoke '_tzset' instead of 'tzset'.
2075         * doc/posix-functions/tzset.texi: Mention the native Windows workaround.
2077         * modules/time_rz (Depends-on): Add tzset.
2078         * lib/time_rz.c (tzset): Remove fallback definition.
2079         * m4/time_rz.m4 (gl_TIME_RZ): Don't test for tzset.
2081 2017-05-01  Bruno Haible  <bruno@clisp.org>
2083         mktime: Fix dependencies.
2084         * modules/mktime (Depends-on): Add 'time'.
2086 2017-05-01  Bruno Haible  <bruno@clisp.org>
2088         New module 'localtime-buffer', split off from module 'gettimeofday'.
2089         * lib/localtime-buffer.h: New file.
2090         * lib/localtime-buffer.c: New file, extracted from lib/gettimeofday.c.
2091         * lib/time.in.h (tzset): New declaration.
2092         (localtime, gmtime): Don't test GNULIB_GETTIMEOFDAY.
2093         * lib/tzset.c: New file, extracted from lib/gettimeofday.c.
2094         * lib/gettimeofday.c: Include localtime-buffer.h. Remove code that was
2095         moved to lib/localtime-buffer.c or lib/tzset.c.
2096         * m4/localtime-buffer.m4: New file.
2097         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_TZSET,
2098         HAVE_TZSET, REPLACE_TZSET.
2099         * m4/tzset.m4 (gl_FUNC_TZSET): Move code from m4/gettimeofday.m4 to
2100         here, with modifications. Set HAVE_TZSET, REPLACE_TZSET. Invoke
2101         gl_LOCALTIME_BUFFER_NEEDED.
2102         (gl_FUNC_TZSET_CLOBBER): Don't require gl_HEADER_SYS_TIME_H; not needed
2103         since 2007-01-18.
2104         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Remove code that deals with
2105         tzset.
2106         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Require gl_LOCALTIME_BUFFER_DEFAULTS.
2107         Invoke gl_LOCALTIME_BUFFER_NEEDED instead of
2108         gl_GETTIMEOFDAY_REPLACE_LOCALTIME.
2109         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Remove macro.
2110         * modules/localtime-buffer: New file.
2111         * modules/time (Depends-on): Remove 'gettimeofday'.
2112         (Makefile.am): Substitute GNULIB_TZSET, HAVE_TZSET,
2113         REPLACE_TZSET. Don't substitute GNULIB_GETTIMEOFDAY.
2114         * modules/tzset (Description): Enable hyperlink to POSIX spec.
2115         (Files): Add lib/tzset.c.
2116         (Depends-on): Remove gettimeofday. Add localtime-buffer, time.
2117         (configure.ac): Arrange to conditionally compile lib/tzset.c. Invoke
2118         gl_TIME_MODULE_INDICATOR.
2119         * modules/gettimeofday (Depends-on): Add localtime-buffer.
2121 2017-05-01  Bruno Haible  <bruno@clisp.org>
2123         copy-file: Preserve sub-second time stamps.
2124         * lib/copy-file.c: Include stat-time.h, utimens.h instead of <utime.h>.
2125         (qcopy_file_preserving): Use 'struct timespec' and utimens() to
2126         transport the time stamps from the original file to the destination
2127         file.
2128         * m4/copy-file.m4 (gl_COPY_FILE): Don't test for utime, utimes.
2129         * modules/copy-file (Depends-on): Add stat-time, utimns instead of
2130         utime-h.
2132 2017-05-01  Bruno Haible  <bruno@clisp.org>
2134         wctype-t: Fix problems if <wchar.h> gets included after <wctype.h>.
2135         * lib/wctype.in.h: Include not only <ctype.h> but also <wchar.h>. Do so
2136         also on MSVC.
2137         Reported by Eli Zaretskii <eliz@gnu.org>.
2139 2017-05-01  Bruno Haible  <bruno@clisp.org>
2141         wchar: Fix compilation error with the original mingw.org mingw.
2142         * lib/wchar.in.h (rpl_wint_t): If <crtdefs.h> does not exist, include
2143         <stddef.h> instead.
2144         * m4/wint_t.m4 (gl_TYPE_WINT_T_PREREQ): New macro, extracted from
2145         gl_WCTYPE_H.
2146         * m4/wctype_h.m4 (gl_WCTYPE_H): Don't set HAVE_CRTDEFS_H here; require
2147         gl_TYPE_WINT_T_PREREQ instead.
2148         * m4/wchar_h.m4 (gl_WCHAR_H): Require gl_TYPE_WINT_T_PREREQ.
2149         * modules/wchar (Makefile.am): Substitute HAVE_CRTDEFS_H.
2150         Reported by Eli Zaretskii <eliz@gnu.org>.
2152 2017-04-30  Bruno Haible  <bruno@clisp.org>
2154         utimecmp: Add support for native Windows.
2155         * lib/utimecmp.c (SYSCALL_RESOLUTION): Set to 100 on native Windows.
2157 2017-04-30  Bruno Haible  <bruno@clisp.org>
2159         utimens: Add support for native Windows.
2160         * lib/utimens.c: Include <windows.h>, msvc-nothrow.h.
2161         (fdutimens): Provide a native Windows implementation, like utime.c with
2162         added tv_nsec support.
2163         * modules/utimens (Depends-on): Add msvc-nothrow, utime.
2164         Suggested by Tim Rühsen <tim.ruehsen@gmx.de>.
2166 2017-04-30  Bruno Haible  <bruno@clisp.org>
2168         wcsftime: New module.
2169         * lib/wchar.in.h (wcsftime): New declaration.
2170         * lib/wcsftime.c: New file.
2171         * m4/wcsftime.m4: New file.
2172         * m4/wchar_h.m4 (gl_WCHAR_H): Test for wcsftime declaration.
2173         (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_WCSFTIME,
2174         HAVE_WCSFTIME, REPLACE_WCSFTIME.
2175         * modules/wchar (Makefile.am): Substitute GNULIB_WCSFTIME,
2176         HAVE_WCSFTIME, REPLACE_WCSFTIME.
2177         * modules/wcsftime: New file.
2178         * doc/posix-functions/wcsftime.texi: Mention the new module.
2180 2017-04-30  Bruno Haible  <bruno@clisp.org>
2182         strftime-fixes: New module.
2183         * lib/time.in.h (strftime): New declaration.
2184         * lib/strftime-fixes.c: New file.
2185         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Inline gl_FUNC_STRFTIME macro.
2186         (gl_FUNC_STRFTIME): Remove macro.
2187         * m4/strftime-fixes.m4: New file.
2188         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_STRFTIME,
2189         REPLACE_STRFTIME.
2190         * modules/time (Makefile.am): Substitute GNULIB_STRFTIME,
2191         REPLACE_STRFTIME.
2192         * modules/strftime-fixes: New file.
2193         * doc/posix-functions/strftime.texi: Mention the new module.
2195 2017-04-30  Bruno Haible  <bruno@clisp.org>
2197         mktime: Work around TZ problem on native Windows.
2198         * lib/mktime.c: Add #ifs to make the algorithmic workaround independent
2199         from the native Windows workaround.
2200         * m4/mktime.m4 (gl_FUNC_MKTIME_WORKS): New macro, extracted from
2201         gl_FUNC_MKTIME. If guessing, set gl_cv_func_working_mktime to
2202         'guessing no'.
2203         (gl_FUNC_MKTIME): Require it. Require AC_CANONICAL_HOST.
2204         Set REPLACE_MKTIME to 1 on native Windows. Define NEED_MKTIME_WORKING,
2205         NEED_MKTIME_WINDOWS.
2206         (gl_FUNC_MKTIME_INTERNAL): Require gl_FUNC_MKTIME_WORKS, not
2207         gl_FUNC_MKTIME. Set WANT_MKTIME_INTERNAL, not REPLACE_MKTIME. Define
2208         NEED_MKTIME_INTERNAL.
2209         * m4/timegm.m4 (gl_FUNC_TIMEGM): Require gl_FUNC_MKTIME_WORKS, not
2210         gl_FUNC_MKTIME. Cope with 'guessing yes' value.
2211         * modules/mktime-internal (configure.ac): Test WANT_MKTIME_INTERNAL,
2212         not REPLACE_MKTIME.
2213         * doc/posix-functions/mktime.texi: Mention the native Windows
2214         workaround.
2216 2017-04-30  Bruno Haible  <bruno@clisp.org>
2218         localtime: New module.
2219         * lib/time.in.h (localtime): Declare also if requested by module
2220         'localtime'.
2221         * lib/localtime.c: New file.
2222         * m4/localtime.m4: New file.
2223         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_LOCALTIME.
2224         * modules/time (Makefile.am): Substitute GNULIB_LOCALTIME.
2225         * modules/localtime: New file.
2226         * doc/posix-functions/localtime.texi: Mention the new module.
2228 2017-04-30  Bruno Haible  <bruno@clisp.org>
2230         ctime: New module.
2231         * lib/time.in.h (ctime): New declaration.
2232         * lib/ctime.c: New file.
2233         * m4/ctime.m4: New file.
2234         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_CTIME,
2235         REPLACE_CTIME.
2236         * modules/time (Makefile.am): Substitute GNULIB_CTIME, REPLACE_CTIME.
2237         * modules/ctime: New file.
2238         * doc/posix-functions/ctime.texi: Mention the new module.
2240 2017-04-30  Bruno Haible  <bruno@clisp.org>
2242         gettimeofday: Provide higher resolution on native Windows.
2243         * lib/gettimeofday.c: Don't include <sys/timeb.h>.
2244         (GetSystemTimePreciseAsFileTimeFuncType): New variable.
2245         (initialize): Initialize it.
2246         (gettimeofday) [WINDOWS_NATIVE]: Use it, and convert from FILETIME to
2247         'struct timeval'. Don't use _ftime().
2248         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): Don't test for
2249         <sys/timeb.h> and _ftime.
2251 2017-04-30  Bruno Haible  <bruno@clisp.org>
2253         Document the problem with the Cygwin environment variable TZ.
2254         * doc/posix-functions/tzset.texi: Add note about TZ.
2255         * doc/posix-functions/ctime.texi: Likewise.
2256         * doc/posix-functions/localtime.texi: Likewise.
2257         * doc/posix-functions/mktime.texi: Likewise.
2258         * doc/posix-functions/strftime.texi: Likewise.
2259         * doc/posix-functions/wcsftime.texi: Likewise.
2260         * doc/pastposix-functions/ftime.texi: Likewise.
2262 2017-04-30  Bruno Haible  <bruno@clisp.org>
2264         utime-tests: New module.
2265         * tests/test-utime.c: New file, based on tests/test-utimens.h.
2266         * tests/test-utimens-common.h: Include <sys/stat.h>.
2267         * modules/utime-tests: New file.
2269 2017-04-29  Bruno Haible  <bruno@clisp.org>
2271         utime: New module.
2272         * lib/utime.in.h: Add comment for snippets.
2273         (utime): New declaration.
2274         * lib/utime.c: New file.
2275         * m4/utime.m4: New file.
2276         * m4/utime_h.m4 (gl_UTIME_H): Test for utime declaration.
2277         (gl_UTIME_H_DEFAULTS): Initialize GNULIB_UTIME, HAVE_UTIME,
2278         REPLACE_UTIME.
2279         * modules/utime-h (Depends-on): Add snippets.
2280         (Makefile.am): Substitute GNULIB_UTIME, HAVE_UTIME, REPLACE_UTIME.
2281         Insert snippets.
2282         * modules/utime: New file.
2283         * doc/posix-functions/utime.texi: Mention the new module.
2285 2017-04-29  Bruno Haible  <bruno@clisp.org>
2287         utime-h: Modernize handling of 'struct utimbuf'.
2288         * lib/utime.in.h: Include next <utime.h> if it exists.
2289         (utimbuf): Define to _utimbuf on native Windows.
2290         * m4/utime_h.m4 (gl_UTIME_H): Check for prerequisites of include_next.
2291         Set UTIME_H on native Windows.
2292         (gl_UTIME_MODULE_INDICATOR, gl_HEADER_UTIME_H_DEFAULTS): New macros.
2293         * modules/utime-h (Depends-on): Add include_next.
2294         (Makefile.am): Substitute also HAVE_UTIME_H, INCLUDE_NEXT,
2295         PRAGMA_SYSTEM_HEADER, PRAGMA_COLUMNS, NEXT_UTIME_H.
2297         * lib/utimens.c (utimbuf): Remove fallback definition.
2298         * m4/utimens.m4 (gl_UTIMENS): Don't require
2299         gl_CHECK_TYPE_STRUCT_UTIMBUF.
2300         * m4/utimbuf.m4: Remove file.
2301         * modules/utimens (Files): Remove m4/utimbuf.m4.
2303 2017-04-29  Bruno Haible  <bruno@clisp.org>
2305         Make use of module 'utime-h'.
2306         * modules/copy-file (Depends-on): Add utime-h.
2307         * lib/copy-file.c: Assume that <utime.h> exists.
2308         * m4/copy-file.m4 (gl_COPY_FILE): Don't test for <utime.h>.
2310         * modules/utimens (Depends-on): Add utime-h.
2311         * lib/utimens.c: Assume that <utime.h> exists.
2313 2017-04-29  Bruno Haible  <bruno@clisp.org>
2315         utime-h: New module.
2316         * m4/utime_h.m4: New file.
2317         * lib/utime.in.h: New file.
2318         * modules/utime-h: New file.
2319         * doc/posix-headers/utime.texi: Mention the new module.
2321         * tests/test-utime-h.c: New file.
2322         * modules/utime-h-tests: New file.
2324 2017-04-30  Bruno Haible  <bruno@clisp.org>
2326         Fix a few typos.
2327         * m4/fstat.m4 (gl_FUNC_FSTAT): Require AC_CANONICAL_HOST.
2328         * m4/stat.m4 (gl_FUNC_STAT): Fix comment.
2329         * doc/posix-functions/fstat.texi: Fix a plural typo.
2330         * doc/posix-functions/stat.texi: Likewise.
2331         * m4/include_next.m4: Update comments.
2333 2017-04-29  Bruno Haible  <bruno@clisp.org>
2335         error: Fix mistake in 2017-04-23 commit.
2336         * lib/error.c (print_errno_message): If GNULIB_STRERROR_R_POSIX is set,
2337         assume that strerror_r returns 'int', not 'char *'.
2339 2017-04-29  Bruno Haible  <bruno@clisp.org>
2341         stat: Fix time_t values and other problems on native Windows platforms.
2342         * doc/posix-functions/stat.texi: Mention the problem with the Microsoft
2343         implementations of stat().
2344         * lib/stat.c: Include filename.h instead of dosname.h. Include
2345         malloca.h, stat-w32.h.
2346         (is_unc_root): New function.
2347         (rpl_stat): New implementation for native Windows. Remove
2348         REPLACE_FUNC_STAT_DIR code.
2349         * m4/stat.m4 (gl_FUNC_STAT): On native Windows, set REPLACE_STAT always.
2350         Don't define REPLACE_FUNC_STAT_DIR.
2351         (gl_PREREQ_STAT): Require gl_HEADER_SYS_STAT_H.
2352         * modules/stat (Files): Add lib/stat-w32.h, lib/stat-w32.c.
2353         (Depends-on): Remove dosname. Add filename, malloca.
2354         (configure.ac): Also compile lib/stat-w32.c.
2356 2017-04-29  Bruno Haible  <bruno@clisp.org>
2358         fstat: Fix time_t values on native Windows platforms.
2359         * doc/posix-functions/fstat.texi: Mention the problem with st_*time.
2360         * lib/stat-w32.h: New file.
2361         * lib/stat-w32.c: New file.
2362         * lib/fstat.c: Don't include msvc-inval.h. Include msvc-nothrow.h,
2363         stat-w32.h instead.
2364         (fstat_nothrow): Remove function.
2365         (rpl_fstat): Implement by means of _gl_fstat_by_handle.
2366         * m4/fstat.m4 (gl_FUNC_FSTAT): On native Windows, set REPLACE_FSTAT
2367         always.
2368         (gl_PREREQ_FSTAT): Require gl_HEADER_SYS_STAT_H.
2369         * modules/fstat (Files): Add lib/stat-w32.h, lib/stat-w32.c.
2370         (Depends-on): Remove msvc-inval. Add pathmax, msvc-nothrow.
2371         (configure.ac): Also compile lib/stat-w32.c.
2373 2017-04-29  Paul Eggert  <eggert@cs.ucla.edu>
2375         getopt: port to Solaris 10 with circa-1997 glibc getopt.h
2376         Problem reported by Assaf Gordon and Gavin Smith in:
2377         http://lists.gnu.org/archive/html/bug-gnulib/2017-04/msg00157.html
2378         * lib/getopt-pfx-ext.h (_getopt_internal) [__GETOPT_PREFIX]:
2379         #define this, too.
2381 2017-04-29  Bruno Haible  <bruno@clisp.org>
2383         strerror_r-posix: Fixes for MSVC 14.
2384         * lib/strerror_r.c: Include <stdarg.h>.
2385         (strerror_r): Provide error messages for errno values 100...140.
2386         * doc/posix-functions/strerror_r.texi: Mention the MSVC 14 problem.
2388 2017-04-28  Bruno Haible  <bruno@clisp.org>
2390         noreturn: New module.
2391         * lib/noreturn.h: New file.
2392         * modules/noreturn: New file.
2393         * tests/test-noreturn.c: New file.
2394         * modules/noreturn-tests: New file.
2395         * tests/test-noreturn-c++.cc: New file.
2396         * modules/noreturn-c++-tests: New file.
2398 2017-04-27  Bruno Haible  <bruno@clisp.org>
2400         wctype-h: Fix compilation error with the original mingw.org mingw.
2401         * m4/wctype_h.m4 (gl_WCTYPE_H): Test for <crtdefs.h>. Set
2402         HAVE_CRTDEFS_H.
2403         * modules/wctype-h (Makefile.am): Substitute HAVE_CRTDEFS_H.
2404         * lib/wctype.in.h (rpl_wint_t): If <crtdefs.h> does not exist, include
2405         <stddef.h> instead.
2406         Reported and proposed by Eli Zaretskii <eliz@gnu.org>.
2408 2017-04-26  Pádraig Brady  <P@draigBrady.com>
2410         nap.h: Fix compilation on non windows platforms
2411         * tests/nap.h: Move misplaced endif.
2413 2017-04-26  Pádraig Brady  <P@draigBrady.com>
2414         and Paul Eggert  <eggert@cs.ucla.edu>
2416         time_rz: fix heap buffer overflow vulnerability
2417         Reported and analyzed at https://bugzilla.redhat.com/CVE-2017-7476
2418         * lib/time_rz.c (save_abbr): Rearrange the calculation determining
2419         whether there is enough buffer space available, thus avoiding
2420         the problematic promotion of signed to unsigned causing an invalid
2421         comparison when zone_copy is more than ABBR_SIZE_MIN bytes beyond
2422         the start of the buffer.
2423         * tests/test-parse-datetime.c (main): Add a test case written by
2424         Paul Eggert, which overwrites enough of the heap so that
2425         standard glibc will fail with "free(): invalid pointer"
2426         without the patch applied.
2428 2017-04-26  Paul Eggert  <eggert@cs.ucla.edu>
2430         xalloc: add missing integer overflow check
2431         * lib/xalloc.h (x2nrealloc): Also check for multiplication
2432         overflow when P is null.
2434 2017-04-25  Paul Eggert  <eggert@cs.ucla.edu>
2436         parse-datetime: make it standalone
2437         * lib/parse-datetime.y: Include <stdarg.h>, for va_start etc.
2438         (_GL_ATTRIBUTE_FORMAT): New macro.
2439         These are needed to get './gnulib-tool --test parse-datetime' to work.
2441 2017-04-23  Bruno Haible  <bruno@clisp.org>
2443         nap.h: Port to native Windows.
2444         * tests/nap.h (nap_get_stat): Renamed from get_stat. Remove argument fd;
2445         use nap_fd instead. On native Windows, close and reopen nap_fd.
2446         (nap_works): Don't compare the ctimes, because on native Windows, these
2447         are the creation times.
2448         (nap): Update.
2450 2017-04-23  Bruno Haible  <bruno@clisp.org>
2452         nap.h: Fix logic.
2453         * tests/nap.h (nap): Avoid signed integer overflow in loop.
2455 2017-04-23  Bruno Haible  <bruno@clisp.org>
2457         Fix conflict between strerror_r-posix module and AC_FUNC_STRERROR_R.
2458         * modules/strerror_r-posix (configure.ac): Invoke gl_MODULE_INDICATOR.
2459         * lib/error.c: Test GNULIB_STRERROR_R_POSIX before testing
2460         HAVE_DECL_STRERROR_R, HAVE_STRERROR_R, or STRERROR_R_CHAR_P.
2461         * lib/argp-help.c (__argp_failure): Likewise.
2463 2017-04-23  Bruno Haible  <bruno@clisp.org>
2465         strerror_r-posix: Revert commits from 2016-10-16,2016-11-04,2016-11-14.
2466         * m4/strerror_r.m4: Revert changes since 2016-10-16.
2467         * lib/strerror_r.c: Likewise.
2469 2017-04-23  Paul Eggert  <eggert@cs.ucla.edu>
2471         Target a C99 subset, not a C89 subset
2472         For many years Gnulib has targeted C89 and has resisted using C99
2473         features, as some Gnulib-using programs still wanted to target
2474         C89.  As this no longer seems to be the case, relax the porting
2475         requirements to allow some C99 features.  This is merely a change
2476         to the documentation, to give other Gnulib developers a chance to
2477         weigh in on the topic.
2478         * doc/extern-inline.texi (extern inline):
2479         * doc/gnulib-readme.texi (Portability guidelines):
2480         * doc/gnulib-tool.texi (Initial import):
2481         * doc/gnulib.texi (Header files):
2482         Modernize to talk about C99 and C11 instead of C89 and C99.
2483         * doc/gnulib-readme.texi (Portability guidelines):
2484         Now a section, not merely a subsection, so that it
2485         can be split up.  Modernize a bit.
2486         (C language versions, C99 features assumed)
2487         (C99 features avoided):
2488         New sections.
2490 2017-04-23  Bruno Haible  <bruno@clisp.org>
2492         doc: New section "Modules that modify the way other modules work".
2493         * doc/gnulib.texi (Modules that modify the way other modules work): New
2494         section.
2496 2017-04-23  Bruno Haible  <bruno@clisp.org>
2498         stat-time: Update comments.
2499         * lib/stat-time.h: Fix reference regarding st_ctime on Windows.
2500         * tests/test-utimens-common.h: Add reference regarding st_ctime on
2501         Windows.
2503 2017-04-01  Bruno Haible  <bruno@clisp.org>
2505         glob: Fix more memory leaks.
2506         * lib/glob.c (glob): Free allocated memory before returning.
2507         Reported by Coverity via Tim Rühsen.
2509 2017-04-22  Paul Eggert  <eggert@cs.ucla.edu>
2511         poll: improve fast check for out-of-range NFD
2512         * lib/poll.c: Do not include intprops.h.
2513         (poll): Compare NFD to INT_MAX, not to TYPE_MAXIMUM (nfds_t) / 2.
2514         * modules/poll (Depends-on): Remove intprops.
2516         ftoastr: cite a newer paper
2517         * lib/ftoastr.c (FTOASTR): In comment, cite Andrysco et al. 2016
2518         instead of Loitsch 2010.
2520 2017-04-22  Bruno Haible  <bruno@clisp.org>
2522         poll: Enable argument check also in the Windows implementation.
2523         * lib/poll.c (poll) [WINDOWS_NATIVE]: Check value of nfd correctly.
2524         Reported by Paul Eggert.
2526 2017-04-22  Bruno Haible  <bruno@clisp.org>
2528         getlogin_r: Work around bug in Mac OS X 10.12.
2529         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Test also against the Mac OS X
2530         bug.
2531         * lib/getlogin_r.c (getlogin_r): When getlogin_r returns a string of the
2532         given size minus 1, call getlogin_r a second time, on a larger buffer.
2533         * modules/getlogin_r (Depends-on): Add malloca.
2534         * doc/posix-functions/getlogin_r.texi: Mention the Mac OS X bug.
2536 2017-04-22  Paul Eggert  <eggert@cs.ucla.edu>
2538         parse-datetime: fix %z and prefer signed int
2539         %z problem reported by Pádraig Brady in:
2540         http://lists.gnu.org/archive/html/bug-gnulib/2017-04/msg00103.html
2541         While fixing it, I decided to prefer signed ints to size_t, as
2542         they are less error-prone (e.g., ubsan catches overflow).
2543         * lib/parse-datetime.y (textint, parser_control, lookup_word, yylex)
2544         (parse_datetime2): Prefer ptrdiff_t to size_t for sizes and object
2545         counts, since signed integers make for better debugging.
2546         (date): Don’t assume %z works in printf formats.
2547         (debug_strfdatetime, debug_strfdate, debug_strftime): Use int for
2548         sizes of buffers known to be small, e.g., because we’re using snprintf.
2549         (parse_datetime2): Simplify call to debug_mktime_not_ok.
2551 2017-04-22  Bruno Haible  <bruno@clisp.org>
2553         *printf: Work around rounding bug on Mac OS X.
2554         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Test for Mac OS X 10.12 bug.
2555         * doc/posix-functions/*printf.texi: Mention the rounding bugs of
2556         Mac OS X and FreeBSD.
2557         * doc/glibc-functions/*printf.texi: Likewise.
2559 2017-04-22  Bruno Haible  <bruno@clisp.org>
2561         vasnprintf tests: Avoid warnings.
2562         * tests/test-vasnprintf-posix3.c (test_function, my_asnprintf,
2563         test_vasnprintf, test_asnprintf): Don't define if there's nothing to
2564         test.
2566 2017-04-22  Bruno Haible  <bruno@clisp.org>
2568         sys_file tests: Avoid warning.
2569         * tests/test-sys_file.c (main): Add a default clause to the switch
2570         statement.
2572 2017-04-22  Bruno Haible  <bruno@clisp.org>
2574         sethostname: Update doc.
2575         * doc/glibc-functions/sethostname.texi: Mention differing prototype on
2576         Mac OS X.
2578 2017-04-22  Bruno Haible  <bruno@clisp.org>
2580         quotearg tests: Avoid warnings.
2581         * tests/test-quotearg.c: Don't include test-quotearg.h if ENABLE_NLS is
2582         false.
2584 2017-04-22  Bruno Haible  <bruno@clisp.org>
2586         poll: Enable argument check.
2587         * lib/poll.c: Include intprops.h.
2588         (poll): Check value of nfd correctly.
2589         * modules/poll (Depends-on): Add intprops.
2591 2017-04-22  Bruno Haible  <bruno@clisp.org>
2593         get-rusage-data: Avoid warnings on Mac OS X.
2594         * lib/get-rusage-data.c: On Mac OS X, don't define
2595         get_rusage_data_via_setrlimit nor get_rusage_data_via_iterator.
2596         (get_rusage_data) [Mac OS X]: Just return 0.
2598 2017-04-22  Bruno Haible  <bruno@clisp.org>
2600         xbinary-io: Fix build error.
2601         * modules/xbinary-io (Depends-on): Add gettext-h.
2602         * lib/xbinary-io.c: Include gettext.h and define _().
2603         Reported by Gisle Vanem <gisle.vanem@gmail.com> in
2604         <https://lists.gnu.org/archive/html/bug-gnulib/2017-04/msg00089.html>.
2606 2017-04-22  Paul Eggert  <eggert@cs.ucla.edu>
2608         parse-datetime: overflow and debug cleanups
2609         This long patch was triggered by this bug report from Ruediger Meier:
2610         http://lists.gnu.org/archive/html/bug-gnulib/2017-04/msg00028.html
2611         I fixed the bug he noted, then found some others nearby, and then
2612         still others.  Oh my goodness, there were a lot of bugs.  I cleaned
2613         up some of the code to follow GNU standards while I was at it.
2614         * lib/parse-datetime.y (ISDIGIT): Remove; all callers changed to
2615         use c_isdigit.
2616         (EPOCH_YEAR): Remove; unused.
2617         (TM_YEAR_BASE): Now an enum rather than a macro.
2618         (HOUR, debug_strfdatetime): Multiply hour by 3600, not 60, to get
2619         time zone offset, since timezones now are in terms of seconds and
2620         not minutes.
2621         (long_time_t): Remove.  All uses replaced by time_t or intmax_t as
2622         appropriate.  Verify that intmax_t is wide enough.
2623         (time_overflow, time_zone_str): New functions, used to deal
2624         more reliably with overflow.
2625         (dbg_printf): Add printf attribute, to help catch integer width errors.
2626         (textint, relative_time, parser_control, time_zone_hhmm, set_hhmmss)
2627         (%union, to_hour, yylex, parse_datetime2):
2628         Use intmax_t instead of long int and/or long_time_t.
2629         All uses changed.
2630         (DBGBUFSIZE): Move earlier.
2631         (relative_time, set_hhmmss, parser_control):
2632         Just use int for nanoseconds and for time zones; that’s wide enough.
2633         (parser_control): Use bool for members like year_seen that can
2634         be booleans instead of counters.  All uses changed.
2635         Remove debug_default_input_timezone; no longer needed.
2636         All uses removed.
2637         (apply_relative_time): Return a bool overflow flag.
2638         All uses changed to check for overflow.
2639         (apply_relative_time, zone, date, relunit, relunit_snumber)
2640         (signed_seconds, unsigned_seconds, yylex, parse_datetime2):
2641         Check for integer overflow portably.
2642         (str_days): Use just int for N, as it’s wide enough.
2643         Prefer 2D char arrays to arrays of char * when it looks like
2644         2D is a win on typical platforms.
2645         Prefer snprintf to strncpy/strncat, for simplicity;
2646         all buffers are smaller than INT_MAX so this is safe.
2647         (TIME_ZONE_BUFSiZE, TM_YEAR_BUFSIZE): New constants.
2648         (debug_print_current_time): Don’t assume tv_nsec is of type long,
2649         as this is not true on x32.  Output "." before any nanoseconds.
2650         (debug_print_current_time, parse_datetime2):
2651         Output local zones using a more-consistent format.
2652         (debug_print_current_time, date, parse_datetime2):
2653         (main) [TEST]:
2654         Don’t assume time_t is the same width as long.
2655         (print_rel_part): New function, replacing ...
2656         (PRINT_REL_PART): ... this macro, which was removed.  All uses changed.
2657         (debug_print_relative_time): Use bool for boolean.
2658         (local_zone): dsts_seen now counts only tDST instances.
2659         (date): Fix printf of size_t to use %z.  Do not assume numeric
2660         tokens have negative values merely because the context suggests
2661         a syntax with "-" separating tokens.
2662         (time_zone_hhmm): Return bool success indicator, which checks for
2663         overflow.  Store result into PC->time_zone instead.  All callers
2664         changed.
2665         (tm_year_str): New function.  Return a bool success indicator and
2666         store the result into a buffer.  All callers changed.  Output the
2667         numerically correct string even if adding 1900 to the year would
2668         overflow.
2669         (to_tm_year): New function, replacing the old to_year.  All
2670         callers changed.
2671         (tm_diff): Sync with glibc.
2672         (lookup_word): Use to_uchar instead of doing it by hand.
2673         (TZBUFSIZE): Now local to the only function that needs it.
2674         (debug_strfdatetime): Simplify now that time zones are int seconds.
2675         (debug_strfdate): Work even if tm_year + 1900 would overflow.
2676         (get_effective_timezone): Remove.  All uses removed.
2677         (parse_datetime2): Use fprintf in pieces instead of snprintfing
2678         to a fixed-size buffer.  Don’t assume that gmtime succeeds iff
2679         localtime succeeds.  Use tm_gmtoff if available.  Simplify how
2680         ‘goto fail;’ works in conjunction with the ‘ok’ flag.
2681         * m4/parse-datetime.m4 (gl_PARSE_DATETIME): Don’t define
2682         TIME_T_FITS_IN_LONG_INT, as it is no longer needed.
2683         * modules/parse-datetime (Depends-on): Add inttypes.
2685 2017-04-21  Bruno Haible  <bruno@clisp.org>
2687         gettext-h: Avoid -Wundef warning.
2688         * lib/gettext.h: Test the value of ENABLE_NLS only if it is defined.
2689         Reported by Tim Rühsen <tim.ruehsen@gmx.de> in
2690         <https://lists.gnu.org/archive/html/bug-gnulib/2017-04/msg00022.html>.
2692 2017-04-05  Tim Rühsen  <tim.ruehsen@gmx.de>
2694         error: Avoid "function declaration isn't a prototype" warning.
2695         * lib/error.c (strerror_r): Turn K&R C prototype to an ANSI C prototype.
2697 2017-04-21  Bruno Haible  <bruno@clisp.org>
2699         vasnprintf: Fix for MSVC 14.
2700         * lib/vasnprintf.c (USE_MSVC__SNPRINTF): New macro.
2701         Everywhere, use !HAVE_SNPRINTF_RETVAL_C99 || USE_MSVC__SNPRINTF instead
2702         of !HAVE_SNPRINTF_RETVAL_C99.
2704 2017-04-21  Bruno Haible  <bruno@clisp.org>
2706         mbrtowc tests: Fix test failures on MSVC 14.
2707         * tests/test-mbrtowc-w32.c (test_one_locale): Accept MSVC's conversion
2708         behaviour for invalid input.
2710 2017-04-21  Bruno Haible  <bruno@clisp.org>
2712         mbsinit: Fix for MSVC 14.
2713         * lib/mbsinit.c (mbsinit): If GNULIB_defined_mbstate_t, provide an
2714         implementation that is in sync with mbrtowc.c. On other platforms, use
2715         an adequate ad-hoc implementation.
2717 2017-04-21  Bruno Haible  <bruno@clisp.org>
2719         Fix test-mbrtowc5.sh failure on native Windows.
2720         * lib/setlocale.c (setlocale_unixlike): Accept "POSIX" as an alias for
2721         "C".
2723 2017-04-21  Bruno Haible  <bruno@clisp.org>
2725         Avoid accidental use of native Windows APIs on Cygwin.
2726         * lib/getaddrinfo.c (WINDOWS_NATIVE): Don't define on Cygwin.
2727         * lib/localcharset.c (WINDOWS_NATIVE): Likewise.
2728         * lib/localename.c (WINDOWS_NATIVE): Likewise.
2730 2017-04-20  Bruno Haible  <bruno@clisp.org>
2732         Remove red warnings from the generated MODULES.html.
2733         * modules/fcntl (Description): Disambiguate function references.
2734         * modules/getcwd-lgpl (Description): Likewise.
2735         * modules/hostent (Description): Likewise.
2736         * modules/servent (Description): Likewise.
2737         * modules/tempname (Description): Likewise.
2739 2017-04-20  Bruno Haible  <bruno@clisp.org>
2741         verify tests: Fix spurious failure with parallel make.
2742         * gnulib-tool (func_emit_tests_Makefile_am): Emit initialization of
2743         EXTRA_PROGRAMS.
2744         * tests/test-verify.sh: Build test-verify-try.o, not test-verify.o.
2745         * tests/test-verify-try.c: New file.
2746         * modules/verify-tests (Files): Add it.
2747         (EXTRA_PROGRAMS): Add test-verify-try.
2748         (MOSTLYCLEANFILES): Update accordingly.
2749         Reported by Adam James Stewart <ajstewart@anl.gov>.
2751 2017-04-18  Bruno Haible  <bruno@clisp.org>
2753         vma-iter: Fix compilation error on Solaris 7.
2754         * lib/vma-iter.c (vma_iterate): Treat missing MAP_ANONYMOUS on Solaris
2755         like on IRIX, OSF/1.
2756         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
2758 2017-04-18  Bruno Haible  <bruno@clisp.org>
2760         vma-iter: Fix conflict with module 'largefile' on 32-bit Solaris 9.
2761         * modules/vma-iter (configure.ac): Test whether <sys/procfs.h> can be
2762         included.
2763         * lib/vma-iter.c: On Solaris, test HAVE_SYS_PROCFS_H before including
2764         <sys/procfs.h>.
2765         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Don't define on Solaris when
2766         <sys/procfs.h> cannot be included.
2767         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
2769 2017-04-18  Bruno Haible  <bruno@clisp.org>
2771         getopt-gnu: Add comments.
2772         * m4/getopt.m4 (gl_FUNC_GETOPT_GNU): Add comments.
2773         * modules/getopt-gnu (configure.ac): Likewise.
2775 2017-04-16  Paul Eggert  <eggert@cs.ucla.edu>
2777         regex: port better to Solaris 10
2778         Solaris 10 <locale.h> includes <libintl.h>, which #defines
2779         gettext, and this causes a double #define.
2780         Problem reported by Gavin Smith in:
2781         http://lists.gnu.org/archive/html/bug-gnulib/2017-04/msg00056.html
2782         * lib/regex_internal.h (gettext): #undef before #defining.
2784 2017-04-15  Paul Eggert  <eggert@Penguin.CS.UCLA.EDU>
2786         intprops: improve comments
2787         * lib/intprops.h: Improve and shorten commentary.
2788         For the record, if we ever run into a pedantic compiler that
2789         behaves differently from GCC when converting an out-of-range value
2790         to a signed integer, we can work around the problem with something
2791         like the following code, where UCT is the signed counterpart of T
2792         (UCT is sometimes narrower than UT) and all callers are changed
2793         accordingly:
2794         #if __SUNPRO_C <= 0x5120
2795         # define _GL_INT_OP_WRAPV_VIA_UNSIGNED(a, b, op, uct, ut, t) \
2796            ((t) ((ut) (a) op (ut) (b)))
2797         #else
2798         # define _GL_INT_OP_WRAPV_VIA_UNSIGNED(a, b, op, uct, ut, t) \
2799            (TYPE_MINIMUM (t) <= (uct) ((ut) (a) op (ut) (b)) \
2800             ? ((t) (uct) (((ut) (a) op (ut) (b)) - TYPE_MINIMUM (t)) \
2801                + TYPE_MINIMUM (t)) \
2802             : (t) (uct) ((ut) (a) op (ut) (b)))
2803         #endif
2805 2017-04-14  Paul Eggert  <eggert@Penguin.CS.UCLA.EDU>
2807         intprops: try to avoid tickling similar bugs
2808         * lib/intprops.h (_GL_INT_OP_CALC): Document that UT no longer
2809         needs to be the same width as T; it can be wider.
2810         Change callers so that UT is at least as wide as unsigned int,
2811         as I suspect that this is less likely to run into compiler bugs.
2813         intprops: port to Oracle Studio 12.3 x86
2814         Problem reported by Gavin Smith in:
2815         http://lists.gnu.org/archive/html/bug-gnulib/2017-04/msg00049.html
2816         * lib/intprops.h (_GL_INT_OP_WRAPV_VIA_UNSIGNED):
2817         Convert unsigned to signed via the usual rather than the standard way,
2818         to avoid a compiler bug in Oracle Studio 12.3 x86.
2820 2017-04-08  Paul Eggert  <eggert@cs.ucla.edu>
2822         getopt: prefer - to _ in new file names
2823         * lib/getopt-cdefs.in.h: Rename from lib/getopt_cdefs.in.h.
2824         * lib/getopt-core.h: Rename from lib/getopt_core.h.
2825         * lib/getopt-ext.h: Rename from lib/getopt_ext.h.
2826         * lib/getopt-pfx-core.h: Rename from lib/getopt_pfx_core.h.
2827         * lib/getopt-pfx-ext.h: Rename from lib/getopt_pfx_ext.h.
2828         All uses changed.
2830         getopt: port recent getopt changes to macOS
2831         Problem reported by Harald Maier (Bug#26398).
2832         The macOS C compiler uses __nonnull for its own purposes and that
2833         clashes with glibc's __nonnull.
2834         * lib/getopt.in.h: Add comment for _GL_ARG_NONNULL snippet.
2835         * lib/getopt_cdefs.in.h (__nonnull): Remove.
2836         * lib/getopt_core.h (getopt):
2837         * lib/getopt_ext.h (getopt_long, getopt_long_only):
2838         Use _GL_ARG_NONNULL, not __nonnull.
2839         * lib/unistd.in.h: Move snippet hooks to before where the getopt
2840         .h files are included, so that _GL_ARG_NONNULL is defined in time.
2841         * modules/getopt-posix (Depends-on): Add snippet/arg-nonnull.
2842         (getopt.h): Interpolate _GL_ARG_NONNULL snippet.
2844 2017-04-06  Paul Eggert  <eggert@cs.ucla.edu>
2846         getopt-gnu: omit some duplicate code
2847         * m4/getopt.m4 (gl_FUNC_GETOPT_GNU): Don’t require
2848         gl_FUNC_GETOPT_POSIX, as the configure.ac code generated by
2849         gnulib-tool already does this.
2850         * modules/getopt-gnu (configure.ac): Omit code duplicated from
2851         getopt-posix, which we depend on.
2853         getopt-posix: use angle-bracket include
2854         * lib/getopt1.c: Include <config.h>, not "config.h".
2856 2017-04-06  Zack Weinberg  <zackw@panix.com>
2858         getopt: annotate files with relationship to glibc
2860         As the final act in this patchset, adjust the message at the top of
2861         each file to indicate which files are synced with glibc.  (This has
2862         already been done for most of the headers.)
2864         * lib/getopt.c, lib/getopt1.c, lib/getopt_int.h:
2865         Mention in top-of-file boilerplate that these files are shared
2866         between glibc and gnulib.
2869         getopt: split up getopt.in.h and eliminate __need_getopt
2871         Over in glibc, all of the __need macros are being phased out in favor
2872         of small headers that declare only the necessary components, as this
2873         is much simpler and less prone to bugs.  As getopt is shared with
2874         glibc, gnulib needs to do the same for __need_getopt.
2876         __need_getopt is misnamed; what it really means is "we want only the
2877         getopt features specified in POSIX, not the GNU extensions".  glibc
2878         placed the "meat" of getopt.h into getopt_core.h and getopt_ext.h;
2879         these files can be shared verbatim with gnulib.  The portability
2880         wrapper, on the other hand, they have renounced altogether; glibc's
2881         getopt.h will no longer be shared with gnulib at all.  In exchange,
2882         certain glibc-specific quirks (having to do with __posix_getopt) no
2883         longer need appear in gnulib's headers at all.
2885         This patch merges getopt_core.h and getopt_ext.h from glibc, and
2886         splits up the current gnulib-side portability wrapper into three
2887         additional headers: getopt_pfx_core.h and getopt_pfx_ext.h handle
2888         __GETOPT_PREFIX for their respective headers, getopt_cdefs.in.h
2889         handles things like __BEGIN_DECLS and __THROW, and getopt.in.h and
2890         unistd.in.h just use them.  All new files are clearly marked with
2891         whether they are shared with glibc.
2893         * lib/getopt.in.h: Eliminate __need_getopt.  Break up into ...
2894         * lib/getopt_core.h, lib/getopt_ext.h: ... these new files shared
2895         with glibc, and ...
2896         * lib/getopt_cdefs.in.h, lib/getopt_pfx_core.h
2897         * lib/getopt_pfx_ext.h: ... these new files not shared with glibc.
2898         * lib/unistd.in.h: Include getopt_cdefs.h and getopt_pfx_core.h,
2899         instead of defining __need_getopt and including the full getopt.h.
2901         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): Check for sys/cdefs.h.
2902         Define substitution variables GETOPT_CDEFS_H and HAVE_SYS_CDEFS_H.
2903         * modules/getopt-posix (Files): Add new headers and sort list.
2904         (Depends-on): No longer need snippet/arg-nonnull.
2905         (Makefile.am): Generate getopt_cdefs.h.
2908         getopt: better handling of ambiguous options
2910         glibc's getopt uses alloca to construct a linked list of possibilities
2911         for an "ambiguous" long option.  In gnulib, malloc should be used
2912         instead.  Providing for both cases complicates things a fair bit.
2914         This patch rewrites ambiguous-option handling to use a boolean vector
2915         instead of a linked list.  There is then only one allocation that
2916         might need freeing; in glibc it can honor __libc_use_alloca as usual,
2917         and in gnulib we define __libc_use_alloca to always be false, so we
2918         don't need ifdefs in the middle of the function.  This should also be
2919         slightly more efficient in the normal case of long options being fully
2920         spelled out -- I think most people aren't even aware they _can_
2921         sometimes abbreviate long options.
2923         One interesting consequence is that the list of possibilities is now
2924         printed in exactly the order they appear in the list of long options,
2925         instead of the first possibility being shuffled to the end.
2927         (The patch looks bigger than it really is because there's a fair bit
2928         of reindentation and code rearrangement.)
2930         * lib/getopt.c: When used standalone, define __libc_use_alloca
2931         as always false and alloca to abort if called.
2932         (process_long_option): Rewrite handling of ambiguous long options
2933         to use a single boolean vector, not a linked list; use
2934         __libc_use_alloca to decide whether to allocate this using alloca.
2937         getopt: refactor long-option handling
2939         There were two copies of the bulk of the code to handle long options.
2940         Now there is only one.
2942         This change temporarily removes the logic to avoid using alloca when
2943         standalone; the next patch in the series will restore it.
2945         * lib/getopt.c (process_long_option): New function split out
2946         from _getopt_internal_r.
2947         (_getopt_internal_r): Replace both copies of the long-option
2948         processing code with calls to process_long_option.
2951         getopt: tidy up _getopt_initialize a bit
2953         _getopt_data.__posixly_correct is completely redundant to
2954         _getopt_data.__ordering, and some work that logically belongs in
2955         _getopt_initialize was being done by _getopt_internal_r, making the
2956         code harder to understand.
2958         As a side effect, getenv will no longer be called if the first
2959         character of the options string is '+' or '-', which is probably a
2960         Good Thing.  (Perhaps we should have a flag character that
2961         specifically asks for the permutation behavior?)
2963         * lib/getopt_int.h (_getopt_data): Remove __posixly_correct field.
2964         * lib/getopt.c (_getopt_internal_r): Move some initialization code...
2965         (_getopt_initialize): ...here. Don't set d->__posixly_correct.
2968         getopt: merge from glibc: repetition reduction
2970         The definitions of the entry point functions 'getopt' and
2971         '__posix_getopt' can be made substantially less repetitive with a
2972         helper macro.
2974         While I was merging the const-correctness changes from gnulib into
2975         glibc I noticed there are still some unnecessary casts in
2976         _getopt_internal_r.
2978         * lib/getopt.c (getopt, __posix_getopt): Eliminate repetition with
2979         a macro.  Consistently cast 'argv' to 'char **' when calling
2980         _getopt_internal.
2981         (_getopt_internal_r): Remove unnecessary casts when calling exchange.
2984         getopt: clean up error reporting
2986         getopt can print a whole bunch of error messages, and when used
2987         standalone (from gnulib) it uses fprintf to do that.  But fprintf is a
2988         cancellation point and getopt isn't, and also applying fprintf to a
2989         stream in wide-character mode is not allowed.  So every single error
2990         reporting case has an #ifdef _LIBC block in which it calls internal
2991         libc functions instead.  The counterpart patch series in glibc makes
2992         it possible to simplify all of that down to a set of #defines at the
2993         top of the file; core code is written as if it is safe to just call
2994         fprintf, flockfile, and funlockfile.  (One caveat: it's *not* safe to
2995         call any *other* stdio functions.)
2997         * lib/getopt.c: When _LIBC is defined, define fprintf to
2998         __fxprintf_nocancel, flockfile to _IO_flockfile, and funlockfile
2999         to _IO_funlockfile.  When neither _LIBC nor
3000         _POSIX_THREAD_SAFE_FUNCTIONS is defined, define flockfile and
3001         funlockfile as no-ops.
3002         (_getopt_internal_r): Remove all internal #ifdef _LIBC blocks; the
3003         standalone error-printing code can now be used for libc as well.
3004         Add an flockfile/funlockfile pair around one case where the error
3005         message is printed in several chunks.  Don't use fputc.
3008         getopt: fix fencepost error in ambiguous-W-option handling
3010         getopt_long contains an undocumented (AFAICT) feature in which, if you
3011         put "W;" in the short-options list, then '-W foo' and '-Wfoo' are
3012         treated as equivalent to '--foo'.  This is implemented with a partial
3013         second copy of the code for handling long options, and that code
3014         increments optind one too many times when recovering from an ambiguous
3015         abbreviated option, which can cause the main loop to walk past the end
3016         of argv and crash.
3018         I discovered this while writing a test case that tries to exercise all
3019         of getopt's error reporting paths; I wouldn't be surprised to learn
3020         that this feature is never used by real applications.
3022         * lib/getopt.c (_getopt_internal_r): Don't increment
3023         d->optind a second time when reporting ambiguous -W options.
3026         getopt: clean up getopt.c and getopt1.c file headers
3028         In getopt.c, there is no need to include wchar.h at all, and it is
3029         safe nowadays to assume that stdlib.h does declare getenv (several
3030         other gnulib modules make this assumption).
3032         In getopt1.c, the #ifdef _LIBC block at the top can be simplified
3033         by using "" inclusions consistently, and there is no actual need to
3034         include stdlib.h (except in the #ifdef TEST block, where it should be
3035         unconditional), nor to provide a backup definition of NULL at all.
3037         * lib/getopt1.c: Simplify #ifdeffage at top of file.
3038         Move inclusion of stdlib.h to #ifdef TEST block and make
3039         unconditional.  Do not define NULL.
3040         * lib/getopt.c: Don't include wchar.h. No need to declare getenv.
3041         * m4/getopt.m4 (gl_PREREQ_GETENV): Delete.
3042         * modules/getopt-gnu, modules/getopt-posix: Don't call
3043         gl_PREREQ_GETENV.
3046         getopt: harmonize comments with glibc
3048         The comments explaining how the behavior of 'getopt' varies depending
3049         on whether it's the standalone version and whether there are special
3050         characters at the beginning of the options string were inconsistent
3051         between gnulib and glibc, and also out of sync with the code.
3053         * lib/getopt.c, lib/getopt_int.h: Harmonize comments with glibc.
3056         getopt: remove USE_NONOPTION_FLAGS
3058         getopt includes code to parse an environment variable named
3059         _XXX_GNU_nonoption_argv_flags_ (where XXX is the current process's PID
3060         in decimal); but all of it has been #ifdefed out since 2001, with no
3061         official way to turn it back on.
3063         According to commentary in glibc's config.h.in, bash version 2.0
3064         set this environment variable to indicate argv elements that were
3065         the result of glob expansion and therefore should not be treated
3066         as options, but the feature was "disabled later" because "it
3067         caused problems".  According to bash's CHANGES file, "later" was
3068         release 2.01; it gives no more detail about what the problems
3069         were.
3071         Version 2.0 of bash was released on the last day of 1996, and version
3072         2.01 in June of 1997.  Twenty years later, I think it is safe to
3073         assume that this environment variable isn't coming back.
3075         * lib/getopt_int.h: Remove all #ifdef USE_NONOPTION_FLAGS blocks.
3076         * lib/getopt.c: Likewise. Also remove SWAP_FLAGS and the
3077         __libc_argc and __libc_argv externs, which were only used by
3078         #ifdef USE_NONOPTION_FLAGS blocks.
3081         getopt: tabify, in preparation for merge with glibc
3083         glibc sticks to the GNU default of indenting with a mix of
3084         8-column tabs and spaces; make the gnulib copy match.
3086         getopt.h is not included because it is *not* going to be merged in its
3087         present form.
3089         * getopt.c, getopt1.c, getopt_int.h: Tabify.
3091 2017-04-02  Bruno Haible  <bruno@clisp.org>
3093         relocatable-lib-lgpl: Fix link error (regression from 2011-06-16).
3094         * modules/relocatable-lib-lgpl (configure.ac): Add AC_LIBOBJ invocation,
3095         like it was done in modules/relocatable-lib on 2011-05-21 and in
3096         modules/relocatable-prog on 2011-08-15.
3097         Reported by Reuben Thomas <rrt@sc3d.org>.
3099 2017-03-31  Bruno Haible  <bruno@clisp.org>
3101         glob: Fix invalid free() call.
3102         * lib/glob.c (glob): Reset malloc_home_dir when assigning a pointer to
3103         static storage to home_dir.
3104         Reported by Coverity via Tim Rühsen.
3106 2017-03-31  Bruno Haible  <bruno@clisp.org>
3108         glob: Fix memory leaks.
3109         * lib/glob.c (glob): Free allocated memory before returning.
3110         Reported by Coverity via Tim Rühsen.
3112 2017-03-31  Bruno Haible  <bruno@clisp.org>
3114         md5, sha1, sha256, sha512: Add comments regarding correctness.
3115         * lib/md5.h (buflen): Add comments regarding range.
3116         * lib/sha1.h (buflen): Likewise.
3117         * lib/sha256.h (buflen): Likewise.
3118         * lib/sha512.h (buflen): Likewise.
3119         * lib/md5.c (md5_process_bytes): Add comment why memmove is not needed.
3120         * lib/sha1.c (sha1_process_bytes): Likewise.
3121         * lib/sha256.c (sha256_process_bytes): Likewise.
3122         * lib/sha512.c (sha512_process_bytes): Likewise.
3123         Reported by Coverity via Tim Rühsen.
3125 2017-03-22  Paul Eggert  <eggert@cs.ucla.edu>
3127         getopt: merge from glibc
3128         This does not change anything substantial; it merely simplifies
3129         hypothetical merges back to glibc.
3130         * lib/getopt.c, lib/getopt.in.h, lib/getopt1.c, lib/getopt_int.h:
3131         Change copyright notice to match what is in glibc.
3132         * lib/getopt.c: Reorder includes to match glibc.  Remove uses of
3133         USE_IN_LIBIO.  Remove 'register'.  In __LIBC code, use
3134         __open_memstream rather than open_memstream and __glibc_likely
3135         instead of __builtin_expect.
3136         * lib/getopt.in.h (__posix_getopt) [!__GETOPT_PREFIX]: New decl.
3138 2017-03-21  Paul Eggert  <eggert@cs.ucla.edu>
3140         dfa: make [0-9] faster in non-C locales
3141         Problem reported by John P. Linderman (Bug#26193).
3142         * lib/dfa.c (parse_bracket_exp): Remove redundant assignment.
3143         If both ends of the range are ASCII digits, do not worry about
3144         multi-character collating sequences and the like.  Be consistent
3145         about using isalpha as a precondition for setbit_case_fold_c.
3147 2017-03-19  Bruno Haible  <bruno@clisp.org>
3149         lock: Fix compilation error with HP-UX IA64 cc.
3150         * lib/glthread/lock.h (pthread_rwlockattr_setkind_np): Don't declare
3151         weak on non-glibc platforms.
3153 2017-03-19  Paul Eggert  <eggert@cs.ucla.edu>
3155         stdalign: tweak version# and test for HP-UX IA64
3156         Problems reported by Bruno Haible in:
3157         http://lists.gnu.org/archive/html/bug-gnulib/2017-03/msg00078.html
3158         * lib/stdalign.in.h (_Alignas):
3159         * m4/stdalign.m4 (gl_STDALIGN_H):
3160         Use octal, not decimal, for __HP_cc version.  Perhaps HP formerly
3161         used octal (as that is how they document it), but it is decimal in
3162         practice now and the ancient implementations no longer matter.
3163         * tests/test-stdalign.c (main) [__HP_cc && __ia64]: Skip test.
3165 2017-03-19  Bruno Haible  <bruno@clisp.org>
3167         vma-iter: Add support for Solaris.
3168         * lib/vma-iter.c (vma_iterate): On Solaris, use the /proc filesystem
3169         approach.
3170         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on Solaris.
3171         * lib/get-rusage-as.c: Update comment about Solaris.
3172         * lib/get-rusage-data.c: Likewise.
3174 2017-03-19  Bruno Haible  <bruno@clisp.org>
3176         vma-iter: Prefer HP-UX specific API on HP-UX.
3177         * lib/vma-iter.c (vma_iterate): Move HP-UX specific implementation up.
3178         * lib/vma-iter.h: Update.
3179         Just in case HP-UX ever implements mquery().
3181 2017-03-18  Paul Eggert  <eggert@cs.ucla.edu>
3183         stdalign: restore previous behavior for HP-UX IA64
3184         See Bruno Haible's email in:
3185         http://lists.gnu.org/archive/html/bug-gnulib/2017-03/msg00066.html
3186         which cites p 150 of a manual saying that 'aligned' works on Itanium.
3187         * lib/stdalign.in.h (_Alignas):
3188         Assume the '061200' applies to Itanium, not to PA-RISC.
3189         * m4/stdalign.m4 (gl_STDALIGN_H): Adjust to match stdalign.in.h.
3191 2017-03-17  Bruno Haible  <bruno@clisp.org>
3193         stat-time, timespec: Support use of the header files in C++ mode.
3194         * lib/stat-time.h: Add "C" linkage declaration.
3195         * lib/timespec.h: Likewise.
3197 2017-03-17  Bruno Haible  <bruno@clisp.org>
3199         stdalign: Make it work with HP-UX cc.
3200         * lib/stdalign.in.h (_Alignas): Don't define for HP-UX cc.
3201         * m4/stdalign.m4 (gl_STDALIGN_H): No need to enable the extra test
3202         for HP-UX cc.
3204 2017-03-17  Paul Eggert  <eggert@cs.ucla.edu>
3206         flexmember: try to detect HP-UX 11.31 cc bug
3207         Problem reported by Bruno Haible in:
3208         http://lists.gnu.org/archive/html/bug-gnulib/2017-03/msg00066.html
3209         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
3210         Attempt to detect bug in HP-UX 11.31 cc.
3212 2017-03-16  Bruno Haible  <bruno@clisp.org>
3214         stdint: Fix test compilation failure with HP-UX 11 cc.
3215         * lib/stdint.in.h (_STDINT_MIN): Remove macro.
3216         (_STDINT_UNSIGNED_MIN, _STDINT_SIGNED_MIN): New macros.
3217         (PTRDIFF_MIN, SIG_ATOMIC_MIN, WCHAR_MIN, WINT_MIN): Define using
3218         _STDINT_UNSIGNED_MIN, _STDINT_SIGNED_MIN.
3220 2017-03-14  Bruno Haible  <bruno@clisp.org>
3222         gnulib-tool: Don't produce a tests directory with only snippet .h files.
3223         * gnulib-tool (func_modules_transitive_closure_separately): If
3224         testsrelated_modules ends up with no "real" modules, aside from
3225         modules with applicability 'all', set it to empty.
3227 2017-03-14  Bruno Haible  <bruno@clisp.org>
3229         vma-iter: Add support for HP-UX.
3230         * modules/vma-iter (configure.ac): Check for 'pstat_getprocvm'.
3231         * lib/vma-iter.c (vma_iterate): On HP-UX, use pstat_getprocvm().
3232         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on HP-UX.
3233         * lib/get-rusage-as.c: Update comment about HP-UX.
3234         * lib/get-rusage-data.c: Likewise.
3235         (get_rusage_data): Use get_rusage_data_via_setrlimit.
3237 2017-03-14  Bruno Haible  <bruno@clisp.org>
3239         limits-h: Make it work with HP-UX cc.
3240         * lib/limits.in.h (LLONG_MIN, LLONG_MAX, ULLONG_MAX): Define if not
3241         defined.
3243 2017-03-14  Bruno Haible  <bruno@clisp.org>
3245         Fix test failures on DragonFlyBSD.
3246         * tests/test-localeconv.c (main): Treat DragonFlyBSD like FreeBSD.
3247         * tests/test-select.h (test_bad_fd): Likewise.
3248         * tests/test-get-rusage-data.c (main): Treat DragonFlyBSD like OpenBSD.
3250 2017-03-14  Bruno Haible  <bruno@clisp.org>
3252         freadahead: Silence warning on DragonFlyBSD.
3253         * lib/freadahead.c (__sreadahead): Declare ourselves.
3255 2017-03-14  Bruno Haible  <bruno@clisp.org>
3257         vma-iter: Add comment about AIX.
3258         * lib/vma-iter.c: Add comment about why this module is not implemented
3259         on AIX.
3261 2017-03-14  Paul Eggert  <eggert@cs.ucla.edu>
3263         snippets: move unadjusted snippet sources to lib
3264         Problem reported by Michal Privoznik in:
3265         http://lists.gnu.org/archive/html/bug-gnulib/2017-03/msg00039.html
3266         * lib/_Noreturn.h: Rename from build-aux/snippet/_Noreturn.h.
3267         * lib/arg-nonnull.h: Rename from build-aux/snippet/arg-nonnull.h.
3268         * lib/c++defs.h: Rename from build-aux/snippet/c++defs.h.
3269         * lib/unused-parameter.h: Rename from
3270         build-aux/snippet/unused-parameter.h.
3271         * lib/warn-on-use.h: Rename from build-aux/snippet/warn-on-use.h.
3272         * modules/snippet/_Noreturn (Files:, _NORETURN_H):
3273         * modules/snippet/arg-nonnull (Files:, ARG_NONNULL_H):
3274         * modules/snippet/c++defs (Files:, CXXDEFS_H):
3275         * modules/snippet/unused-parameter (Files:, UNUSED_PARAMETER_H):
3276         * modules/snippet/warn-on-use (Files: WARN_ON_USE_H):
3277         Adjust to file renamings.
3279 2017-03-14  Mathieu Lirzin  <mthl@gnu.org>
3281         gnulib-tool: don't automatically distribute files from top/
3282         * gnulib-tool (func_get_automake_snippet_unconditional): To be able to
3283         not distribute top/README-release by default, don't distribute files
3284         from top/ unconditionally.
3285         * modules/gnumakefile (Makefile.am): Distribute top/GNUmakefile.
3286         * modules/maintainer-makefile (Makefile.am): Distribute top/maint.mk.
3288 2017-03-14  Paul Eggert  <eggert@cs.ucla.edu>
3290         gnulib-tool: fix typo in comment output
3291         * gnulib-tool (func_import): Fix typo with previous change.
3293         snippets: work around GNU Make 3.82 VPATH
3294         When using 'gnulib-tool --gnu-make' on Emacs, and building
3295         the resulting tarball on Solaris 10 which bundles GNU Make 3.82,
3296         an out-of-source (VPATH) build failed because the sans-copyright
3297         snippet file was not built before the file that used it.
3298         Presumably this is some sort of VPATH thing.  Work around the
3299         problem by using the original snippet, i.e., don’t bother to
3300         remove its copyright notice.
3301         * modules/snippet/_Noreturn, modules/snippet/link-warning:
3302         Don’t assume Automake in comments.  Omit long-incorrect comment.
3303         * modules/snippet/arg-nonnull (BUILT_SOURCES, arg-nonnull.h)
3304         (MOSTLYCLEANFILES):
3305         * modules/snippet/c++defs (BUILT_SOURCES, c++defs.h)
3306         (MOSTLYCLEANFILES):
3307         * modules/snippet/unused-parameter (BUILT_SOURCES, unused-parameter.h)
3308         (MOSTLYCLEANFILES):
3309         * modules/snippet/warn-on-use (BUILT_SOURCES, warn-on-use.h)
3310         (MOSTLYCLEANFILES):
3311         Remove.
3312         * modules/snippet/arg-nonnull (ARG_NONNULL_H):
3313         * modules/snippet/c++defs (CXXDEFS_H):
3314         * modules/snippet/unused-parameter (UNUSED_PARAMETER_H):
3315         * modules/snippet/warn-on-use (WARN_ON_USE_H):
3316         Don’t bother to remove the copyright notice; just use the
3317         original snippet as-is.
3319 2017-03-13  Paul Eggert  <eggert@cs.ucla.edu>
3321         gnulib-tool: minor --gnu-make fixups
3322         * gnulib-tool (func_emit_lib_Makefile_am):
3323         Remove useless code that was a blind alley during implementation.
3324         Problem reported by Thien-Thi Nguyen in:
3325         http://lists.gnu.org/archive/html/bug-gnulib/2017-03/msg00029.html
3326         (func_import): Note the "--gnu-make" option in the output comment.
3328 2017-03-12  Paul Eggert  <eggert@cs.ucla.edu>
3330         gnulib-tool: new option --gnu-make
3331         This is for applications like GNU Emacs that use GNU Make
3332         features instead of Automake.
3333         * doc/gnulib-tool.texi (Initial import): Mention --gnu-make.
3334         * doc/gnulib.texi (Unit test modules, Build robot for gnulib):
3335         Do not assume Automake.
3336         * gnulib-tool (func_determine_path_separator)
3337         (func_modules_transitive_closure, func_update_file)
3338         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
3339         (func_import): Add support for --gnu-make.
3341 2017-03-11  Paul Eggert  <eggert@cs.ucla.edu>
3343         gnulib-common.m4: avoid aclocal.m4 bloat
3344         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB):
3345         Hide AM_PROG_AR from aclocal, so that aclocal does not
3346         install irrelevant macro definitions into aclocal.m4.
3348 2017-03-10  Bruno Haible  <bruno@clisp.org>
3350         vma-iter: Let callers know about error.
3351         * lib/vma-iter.h (vma_iterate): Return 'int', not 'void'.
3352         * lib/vma-iter.c (vma_iterate): Return -1 in case of error.
3354 2017-03-05  Bruno Haible  <bruno@clisp.org>
3356         Fix value of LD for 64-bit compilers on AIX.
3357         * m4/lib-ld.m4 (AC_LIB_PROG_LD): For 64-bit compilers on AIX
3358         ("gcc -maix64" and "xlc -q64"), add option -b64 to $LD.
3360 2017-03-04  Paul Eggert  <eggert@cs.ucla.edu>
3362         dtotimespec: simplify
3363         * lib/dtotimespec.c (dtotimespec): Simplify.
3365 2017-03-04  Bruno Haible  <bruno@clisp.org>
3367         test-calloc-gnu: Reenable test also for GCC 7.
3368         * tests/test-calloc-gnu.c (eight): New function.
3369         (main): Don't skip test; use eight() instead.
3371 2017-03-04  Jim Meyering  <meyering@fb.com>
3373         test-calloc-gnu: port to GCC7
3374         * tests/test-calloc-gnu.c (main) [__GNUC__ >= 7]: Skip a test
3375         that attempts to calloc more than SIZE_MAX bytes, because GCC7
3376         and newer would detect that at compilation time.
3378 2017-03-04  Bruno Haible  <bruno@clisp.org>
3380         tests: Avoid compiler warning about uses of null_ptr.
3381         * tests/null-ptr.h: New file.
3382         * tests/test-canonicalize.c: Include null-ptr.h.
3383         (null_ptr): Remove function.
3384         * tests/test-canonicalize-lgpl.c: Likewise.
3385         * tests/test-memmem.c: Likewise.
3386         * tests/test-ptsname_r.c: Likewise.
3387         * modules/canonicalize-tests (Files): Add tests/null-ptr.h.
3388         * modules/canonicalize-lgpl-tests: Likewise.
3389         * modules/memmem-tests: Likewise.
3390         * modules/ptsname_r-tests: Likewise.
3391         Reported by Jim Meyering.
3393 2017-03-03  Bruno Haible  <bruno@clisp.org>
3395         doc: Mention Mac OS X deficiencies regarding semaphores.
3396         * doc/posix-functions/sem_init.texi: Mention status on Mac OS X.
3397         * doc/posix-functions/sem_destroy.texi: Likewise.
3398         * doc/posix-functions/sem_getvalue.texi: Likewise.
3400 2017-03-03  Bruno Haible  <bruno@clisp.org>
3402         lock tests: Fix test failure on Mac OS X (regression from 2017-01-05).
3403         Reported by Assaf Gordon <assafgordon@gmail.com> via
3404         Pádraig Brady <P@draigBrady.com>.
3405         * tests/test-lock.c: On Mac OS X, use named semaphores, not unnamed
3406         semaphores.
3407         (USE_NAMED_SEMAPHORE, USE_UNNAMED_SEMAPHORE): New macros.
3408         (atomic_int_semaphore): New macro.
3410 2017-02-28  Bruno Haible  <bruno@clisp.org>
3412         perror tests: Tweak for z/OS.
3413         Reported by Daniel Richard G. <skunk@iskunk.org>.
3414         * tests/test-perror.sh: Don't fail z/OS style perror output.
3416 2017-02-26  Bruno Haible  <bruno@clisp.org>
3418         nproc: Refactor large function.
3419         * lib/nproc.c (num_processors_ignoring_omp): New function, extracted
3420         from num_processors.
3421         (num_processors): In this function, only deal with OMP.
3423 2017-02-26  Pádraig Brady  <P@draigBrady.com>
3425         nproc: adjust handling of OpenMP environment variables
3426         to match the return value from omp_get_num_threads(), i.e.:
3427          - honor OMP_THREAD_LIMIT without OMP_NUM_THREADS
3428          - Treat 0 as an invalid value and ignore
3429         Also remove the call to omp_get_num_threads() because
3430         it's ineffective without the omp pragmas in place.
3431         * lib/nproc.c (parse_omp_threads): Return 0 if specified,
3432         so that it can be ignored.
3433         (num_processors): Honor OMP_THREAD_LIMIT even without
3434         OMP_NUM_THREADS being set.  Also fix a typo in the environment
3435         variable being checked, from the previous recent commit.
3437 2017-02-26  Pádraig Brady  <P@draigBrady.com>
3439         nproc: support nested OMP_NUM_THREADS, and OMP_THREAD_LIMIT
3440         * lib/nproc.c (parse_omp_threads): A new function refactored
3441         from num_processors() to support parsing both of the
3442         above environment variables.
3443         (num_processors): Prefer using omp_get_num_threads() with [_OPENMP]
3444         to accurately reflect the current OpenMP nesting level.
3445         Also support the OMP_THREAD_LIMIT environment variable
3446         to limit the max value determined from OMP_NUM_THREADS.
3447         * modules/nproc: Depend on minmax header.
3448         Suggested by Oliver Heimlich.
3450 2017-02-25  Bruno Haible  <bruno@clisp.org>
3452         maintainer-makefile: Fix AC_PROG_SED with autoconf cache.
3453         * m4/gnulib-common.m4 (AC_PROG_SED): Fix AC_CACHE_CHECK invocation.
3455 2017-02-24  Paul Eggert  <eggert@cs.ucla.edu>
3457         ftoastr: port to -Wdouble-promotion
3458         Work around -Wdouble-promotion false alarm in recent GCCs.
3459         * lib/ftoastr.c (PROMOTED_FLOAT): New macro.
3460         (ftoastr_snprintf, FTOASTR): Use it.
3462 2017-02-21  Bruno Haible  <bruno@clisp.org>
3464         lock tests: Fix build failure on GNU/Hurd (regression from 2017-01-05).
3465         Reported by Rene Saavedra <rennes@openmailbox.org> in
3466         https://debbugs.gnu.org/cgi/bugreport.cgi?bug=25821 via Paul Eggert.
3467         * lib/glthread/lock.h: On glibc systems without
3468         PTHREAD_RWLOCK_WRITER_NONRECURSIVE_INITIALIZER_NP, use the fallback
3469         implementation of rwlocks.
3470         * lib/glthread/lock.c: Likewise.
3472 2017-02-20  Bruno Haible  <bruno@clisp.org>
3474         lock tests: Fix build failure on z/OS.
3475         Reported by Daniel Richard G. <skunk@iskunk.org>.
3476         * modules/lock-tests (configure.ac): Test for <semaphore.h>.
3477         * tests/test-lock.c (USE_SEMAPHORE): Don't set if <semaphore.h> does not
3478         exist.
3480 2017-02-19  Bruno Haible  <bruno@clisp.org>
3482         havelib: Prefer the search path of /usr/bin/gcc over the one of $CC.
3483         This helps when CC=clang.
3484         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Prefer the search path
3485         of /usr/bin/gcc.
3487         havelib: Support overriding the result of AC_LIB_PREPARE_MULTILIB.
3488         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Use AC_CACHE_CHECK.
3490 2017-02-19  Bruno Haible  <bruno@clisp.org>
3492         gnulib-tool: Avoid conflict of havelib-tests with --single-configure.
3493         * gnulib_tool (func_create_testdir): Avoid havelib-tests when
3494         --with-tests --single-configure is specified.
3496 2017-02-16  Tim Rühsen  <tim.ruehsen@gmx.de>
3498         users.txt: Update links, use HTTPS where possible
3499         * users.txt: Updated to HTTPS where possible,
3500         fixed some links to new locations.
3502 2017-02-16  Bruno Haible  <bruno@clisp.org>
3504         xbinary-io: Fix inlining.
3505         * lib/xbinary-io.c: Set XBINARY_IO_INLINE, not XSETMODE_INLINE.
3507 2017-02-16  Paul Eggert  <eggert@cs.ucla.edu>
3509         xbinary-io: rename from xsetmode
3510         This patch is taken from suggestions by Bruno Haible in:
3511         http://lists.gnu.org/archive/html/bug-gnulib/2017-02/msg00060.html
3512         http://lists.gnu.org/archive/html/bug-gnulib/2017-02/msg00061.html
3513         * lib/binary-io.c (__gl_setmode_check): Set errno to EINVAL,
3514         not ENOTTY, when it is an inappropriate device.
3515         * lib/binary-io.h (SET_BINARY): Resurrect.
3516         * lib/xbinary-io.c: Rename from lib/xsetmode.c.
3517         (xset_binary_mode_error): Rename from xsetmode_error.
3518         * lib/xbinary-io.h: Rename from lib/xsetmode.h.
3519         (xset_binary_mode): Rename from xsetmode.
3520         All uses changed.
3521         * modules/xbinary-io: Rename from modules/xsetmode.
3522         Update file names.
3523         * tests/test-binary-io.sh (tmpfiles): Remove no-longer-used file name.
3524         * NEWS: Update to match revised behavior.
3526 2017-02-15  Paul Eggert  <eggert@cs.ucla.edu>
3528         tests: Adjust to recent SET_BINARY change
3529         * tests/test-binary-io.c (main):
3530         * tests/test-binary-io.sh: Remove test for SET_BINARY.
3531         * tests/test-closein.c, tests/test-fflush2.c, tests/test-ftell.c:
3532         * tests/test-ftello.c, tests/test-nonblocking-pipe-child.c:
3533         * tests/test-yesno.c: Use set_binary_mode, not SET_BINARY.
3535         xsetmode: new module
3536         This is to fix a problem noted by Eric Blake.
3537         Code was using xfreopen to change files to binary mode, but this
3538         fails for stdout when in append mode.  Such code should use
3539         xsetmode instead.
3540         * NEWS: Document incompatible changes to binary-io module.
3541         * lib/binary-io.c (__gl_setmode_check) [__DJGPP__ || __EMX__]:
3542         New function.
3543         * lib/binary-io.h (__gl_setmode): Rename from set_binary_mode.
3544         (set_binary_mode): New function, which also checks for tty.
3545         * lib/xsetmode.c, lib/xsetmode.h, modules/xsetmode: New files.
3547 2017-02-14  Paul Eggert  <eggert@cs.ucla.edu>
3549         headers: fix begin-end typos
3550         * lib/mbfile.h, lib/se-selinux.in.h: Fix typos by replacing
3551         _GL_INLINE_HEADER_BEGIN with _GL_INLINE_HEADER_END.
3553         selinux-h: port to PGI 16.10
3554         * lib/se-selinux.in.h: Don't assume that include_next skips over
3555         duplicate -I DIR options.
3557         argp: port to PGI 16.10
3558         * lib/argp-pin.c (dummy): Declare as needed to make file nonempty.
3560 2017-02-13  Darshit Shah  <darnir@gnu.org>
3562         unicase: Update function protoype to match definition.
3563         * lib/unicase/special-casing.h (gl_unicase_special_lookup): Gperf 3.1
3564         uses 'size_t' as the datatype for the 'len' parameter in the functions
3565         it generates. Update the prototype specified here to match the newly
3566         generated function.
3568 2017-02-12  Bruno Haible  <bruno@clisp.org>
3570         times test: Avoid gcc warnings on Linux/x32.
3571         * tests/test-times.c (main): Really cast printf arguments from clock_t
3572         to 'long int'.
3574 2017-02-12  Paul Eggert  <eggert@cs.ucla.edu>
3576         glob: port better to emscripten
3577         Problem reported by Bruno Haible in:
3578         http://lists.gnu.org/archive/html/bug-gnulib/2017-02/msg00031.html
3579         * lib/glob.c (glob): Don't assume HAVE_GETPWNAM_R || _LIBC.
3581 2017-02-11  Bruno Haible  <bruno@clisp.org>
3583         host-cpu-c-abi: Support for 64-bit AIX, 32-bit armhf on arm64, hppa64.
3584         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI): Define also HOST_CPU.
3585         For the x32 ABI on x86_64, set HOST_CPU_C_ABI to 'x86_64-x32' and define
3586         both __x86_64__ and __x86_64_x32__. For the ELFv2 ABI on powerpc64,
3587         define both __powerpc64__ and __powerpc64_elfv2__. Recognize 64-bit
3588         compilation on AIX. Recognize 32-bit compilation on arm64/Linux.
3589         Distinguish hppa64 from hppa.
3591 2017-02-10  Bruno Haible  <bruno@clisp.org>
3593         search: Don't assume that tsearch() exists if 'VISIT' is defined.
3594         * m4/search_h.m4 (gl_SEARCH_H): Determine HAVE_TYPE_VISIT.
3595         * modules/search (Makefile.am): Substitute HAVE_TYPE_VISIT.
3596         * lib/search.in.h (VISIT): Define if HAVE_TYPE_VISIT is 0.
3598 2017-02-09  Bruno Haible  <bruno@clisp.org>
3600         doc: Don't mention obsolete AC_LIBTOOL_WIN32_DLL macro.
3601         * doc/gnulib.texi (Libtool and Windows): Recommend
3602         LT_INIT([win32-dll]) instead of AC_LIBTOOL_WIN32_DLL.
3603         Reported by Reuben Thomas <rrt@sc3d.org>.
3605 2017-02-08  Paul Eggert  <eggert@cs.ucla.edu>
3607         stddef-tests: port to SIZE_MAX <= INT_MAX
3608         * tests/test-stddef.c: Include <limits.h>, for INT_MAX.
3609         Do not assume that INT_MAX < SIZE_MAX.
3611 2017-02-01  Bruno Haible  <bruno@clisp.org>
3613         lock tests: Fix link error.
3614         * modules/lock-tests (test_rwlock1_LDADD): Add @YIELD_LIB@.
3615         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
3617 2017-01-31  Bruno Haible  <bruno@clisp.org>
3619         lock: Fix link error (regression from 2017-01-05).
3620         * lib/glthread/lock.h [USE_POSIX_THREADS_WEAK]: Declare also
3621         pthread_rwlockattr_init, pthread_rwlockattr_setkind_np,
3622         pthread_rwlockattr_destroy weak.
3623         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
3625 2017-01-30  Paul Eggert  <eggert@cs.ucla.edu>
3627         Port to PGI 16.10 x86-64
3628         This patch fixes one real bug in gl_anylinked_list2.h, along with
3629         some minor glitches that are not bugs.  It does not silence PGI’s
3630         thousands of bogus warnings when compiling test-intprops.c.
3631         Fortunately, the warnings do not cause a failure.
3632         * lib/c-ctype.h (_C_CTYPE_LOWER_A_THRU_F_N, _C_CTYPE_LOWER_N):
3633         Rename parameter to avoid PGI warning about ‘#define f(n) 'n'’.
3634         My goodness, PGI goes back a long ways - this predates C89!
3635         * lib/gl_anylinked_list2.h (ASYNCSAFE): Fix bug caught by PGI.
3636         For example, ASYNCSAFE (const void *) should expand to
3637         ‘const void *volatile’, not to ‘volatile const void *’.
3638         * lib/spawn.in.h (POSIX_SPAWN_USEVFORK): Don't define if already defined.
3639         * lib/verify.h (verify) [!__GNUC__]:
3640         Use shorter albeit meaningless string to bypass silly compiler limits.
3641         * tests/infinity.h (Infinityf, Infinityd, Infinityl) [__PGI]:
3642         * tests/nan.h (NaNf, NaNd, NaNl):
3643         Use static functions to avoid misguided compiler diagnostics.
3644         Is there some reason we don’t use static functions on all platforms?
3646 2017-01-20  Paul Eggert  <eggert@cs.ucla.edu>
3648         parse-datetime: handle timezones reentrantly
3649         This API change was prompted by a report by Pádraig Brady in:
3650         https://bug.debian.org/851934#10
3651         To help fix the bug, make parse_datetime2 more reentrant.
3652         * NEWS: Document this incompatible change.
3653         * lib/parse-datetime.h, lib/parse-datetime.y (parse_datetime2):
3654         Add two arguments, the timezone and the timezone name.
3655         All callers changed.  If TZ="..." is specified, use it for
3656         calculating defaults.
3657         * lib/parse-datetime.y: Don't include xalloc.h or use xmalloc, as
3658         this code should be usable in a library.
3659         (mktime_ok, get_effective_timezone):
3660         Accept timezone arg too.  All callers changed.
3661         (get_tz): Remove.
3662         (get_effective_timezone): Check for failures.
3664 2017-01-20  Eric Blake  <eblake@redhat.com>
3666         localename: port to cygwin 2.6
3667         * lib/localename.c (gl_locale_name_thread_unsafe): Add clause for
3668         Cygwin.
3669         * modules/localename (Depends-on): Add extensions, since
3670         NL_LOCALE_NAME() is not visible without it.
3672 2017-01-17  Pádraig Brady  <P@draigBrady.com>
3674         parse-datetime: fix dependence on AC_PROG_SED
3675         * modules/parse-datetime: Use `sed` directly like all other modules.
3676         Reported by J William Piggott
3678 2017-01-16  Paul Eggert  <eggert@cs.ucla.edu>
3680         intprops: update doc URLs
3681         * doc/intprops.texi (Integer Range Overflow): Update URLs.
3683 2017-01-16  Bruno Haible  <bruno@clisp.org>
3685         host-cpu-c-abi: Add support for armhf, arm64, x32, s390x.
3686         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI): Require gl_C_ASM. On x86_64
3687         systems, distinguish x86_64 and x32. On arm systems, distinguish arm,
3688         armhf, arm64, and no longer distinguish arm and armel. On s390x systems,
3689         distinguish s390 and s390x.
3690         * modules/host-cpu-c-abi (Files): Add m4/asm-underscore.m4.
3691         * NEWS: Mention the change regarding 'armel'.
3693 2017-01-15  Paul Eggert  <eggert@cs.ucla.edu>
3695         localeinfo: case_folded_counterparts and WEOF
3696         * NEWS: Document this.
3697         * lib/localeinfo.c (case_folded_counterparts):
3698         First arg is now wint_t, not wchar_t.  This generalizes the
3699         function to also work on WEOF, where it returns 0.
3701         dfa: port to gcc -fsanitize=undefined
3702         * lib/dfa.c (copy): Don’t pass NULL with size 0 to memcpy,
3703         as this runs afoul of gcc -fsanitize=undefined.
3705 2017-01-14  Paul Eggert  <eggert@cs.ucla.edu>
3707         strftime: %z is -00 if unknown
3708         * lib/strftime.c (DO_TZ_OFFSET): Omit arg 'negative'; it's now
3709         the caller's responsibility to set 'negative_number'.  All uses changed.
3710         (__strftime_internal): Put '-' before a zero UTC offset if the time
3711         zone abbreviation starts with "-", which is the recently-introduced
3712         tzdb convention for an unknown UTC offset that is arbitrarily set to 0.
3713         * tests/test-strftime.c: Test for this.
3715 2017-01-10  Paul Eggert  <eggert@cs.ucla.edu>
3717         dfa: port to older GCC
3718         Problem reported by Assaf Gordon in:
3719         http://lists.gnu.org/archive/html/bug-gnulib/2017-01/msg00103.html
3720         * modules/c99: New module.  This merely attempts to use the latest
3721         C version, which should be enough to solve this particular problem.
3722         The idea is to document which Gnulib modules assume C99 or later.
3723         * modules/dfa (Depends-on): Add it.
3725 2017-01-10  Bruno Haible  <bruno@clisp.org>
3727         Update DEPENDENCIES.
3728         * DEPENDENCIES: List only https URLs. Update recommended version for
3729         autoconf, automake, gperf.
3731 2017-01-10  Jim Meyering  <meyering@fb.com>
3733         maint.mk: enforce spelling of "timestamp" (i.e., no space)
3734         * top/maint.mk (prohibit_undesirable_word_seq_RE_): Also
3735         disallow /\btime\s+stamps?\b/.  Prefer "timestamp".
3737 2017-01-10  Paul Eggert  <eggert@cs.ucla.edu>
3739         dfa: minor simplification with emptyset
3740         * lib/dfa.c (build_state): Simplify by using emptyset.
3742 2017-01-09  Paul Eggert  <eggert@cs.ucla.edu>
3744         dfa: shrink constraints from 4 bits to 3
3745         * lib/dfa.c (newline_constraint, letter_constraint)
3746         (other_constraint, prev_newline_dependent)
3747         (prev_letter_dependent, NO_CONSTRAINT, BEGLINE_CONSTRAINT)
3748         (ENDLINE_CONSTRAINT, BEGWORD_CONSTRAINT, ENDWORD_CONSTRAINT)
3749         (LIMWORD_CONSTRAINT, NOTLIMWORD_CONSTRAINT):
3750         Constraints need only 3 bits, not 4.  Using smaller integers
3751         shrinks the code a bit and makes grep a tad faster on x86-64.
3753         dfa: omit unnecessary ptrdiff_t check
3754         * lib/dfa.c (alloc_position_set): Do not worry about ptrdiff_t
3755         overflow, since xnmalloc does that now.
3757         dfa: omit unnecessary allocation
3758         * lib/dfa.c (dfaanalyze): Do not allocate follow set, since
3759         an all-zero follow set works just fine.
3761         dfa: omit unused local
3762         * lib/dfa.c (build_state): Fix up recent change.
3764         maint: remove stray .texi files
3765         Although these were superseded by other files like
3766         doc/posix-functions/ctime.texi, the old files were not removed.
3767         * doc/ctime.texi, doc/inet_ntoa.texi: Remove.
3769 2017-01-08  Paul Eggert  <eggert@cs.ucla.edu>
3771         getprogname: fix port to IRIX
3772         * lib/getprogname.c (getprogname) [__sgi]:
3773         Don't dump core if malloc returns NULL.
3775         dfa: fix reallocation bug when matching newlines
3776         Problem reported for sed by S. Gilles (Bug#25390).
3777         * lib/dfa.c (realloc_trans_if_necessary): Move earlier.
3778         (dfastate): Reallocate before moving any newline transition ...
3779         (build_state): ... instead of reallocating here, where it is too late.
3781 2017-01-07  Tim Rühsen  <tim.ruehsen@gmx.de>  (tiny change)
3783         Avoid -Wundef warning about undefined WINDOWS_SOCKETS.
3784         * lib/sockets.h: Test if WINDOWS_SOCKETS is defined.
3786 2017-01-07  Tim Rühsen  <tim.ruehsen@gmx.de>  (tiny change)
3788         Avoid -Wundef warning about undefined __USE_FILE_OFFSET64.
3789         * lib/glob-libc.h: Test if __USE_FILE_OFFSET64 is defined.
3791 2017-01-07  Bruno Haible  <bruno@clisp.org>
3793         stdioext: Port to Minix 3.2 and newer.
3794         * lib/stdio-impl.h: Treat __minix like the newest NetBSD.
3795         * lib/fseeko.c (fseeko): Likewise.
3796         Reported by Nelson Beebe via Paul Eggert.
3798 2017-01-06  Paul Eggert  <eggert@cs.ucla.edu>
3800         getprogname: port to IRIX
3801         * lib/getprogname.c (getprogname): Port to IRIX.
3802         Based on an idea by Bastien Roucariès at:
3803         http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00096.html
3804         via code from Bruno Haible at:
3805         https://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00249.html
3807         localename-tests: port to NetBSD 7
3808         Problem reported by Nelson H. F. Beebe.
3809         * tests/test-localename.c:
3810         Test newlocale and uselocale only if both exist.
3812         glob, intprops, xalloc: work around Clang bug
3813         Work around LLVM bug 16404, which is still not fixed.
3814         https://llvm.org/bugs/show_bug.cgi?id=16404
3815         Problem reported by Nelson H. F. Beebe.
3816         * lib/glob.c, lib/intprops.h, lib/xalloc-oversized.h (__has_builtin):
3817         Remove.
3818         * lib/glob.c (size_add_wrapv):
3819         * lib/intprops.h (_GL_HAS_BUILTIN_OVERFLOW, _GL_HAS_BUILTIN_OVERFLOW_P):
3820         * lib/xalloc-oversized.h (xalloc_oversized):
3821         Do not use overflow builtins if Clang.
3823         dfa: fix 'return' typo
3824         Problem reported by Nelson H. F. Beebe.
3825         * lib/dfa.c (merge): Fix typo that Sun compilers rejected.
3827 2017-01-05  Pádraig Brady  <P@draigBrady.com>
3829         parse-datetime: fix generated paths for coverage files
3830         * modules/parse-datetime: Adjust the paths for parse-datetime.y
3831         within parse-datetime.c, so that gcc generates appropriate .gcno
3832         files, allowing lcov to proceed without error.  Previously it
3833         would error trying to find "lib/lib/parse-datetime.y".
3835 2017-01-05  Pádraig Brady  <P@draigBrady.com>
3837         maint.mk: support parallel execution of coverage
3838         * top/maint.mk (coverage): Run dependencies serially,
3839         thus supporting parallel processing of each one,
3840         particularly build-coverage, which builds and runs tests.
3842 2017-01-05  Bruno Haible  <bruno@clisp.org>
3844         lock tests: Prefer semaphore over mutex.
3845         * tests/test-lock.c (USE_SEMAPHORE): New constant.
3846         (struct atomic_int, init_atomic_int, get_atomic_int_value,
3847         set_atomic_int_value) [USE_SEMAPHORE]: Define using a POSIX semaphore.
3848         Suggested by Torvald Riegel <triegel@redhat.com>.
3850 2017-01-05  Bruno Haible  <bruno@clisp.org>
3852         lock: Provide guarantee to avoid writer starvation for rwlocks.
3853         The rationale is: 1) Read-preferring read-write locks are prone to
3854         writer starvation if the number of reader threads multiplied by the
3855         percentage of time they have the lock held is too high. 2) Write-
3856         preferring read-write locks are the only reliable way to avoid this.
3857         3) There have been reports of 'test-lock' hanging on glibc systems
3858         http://lists.gnu.org/archive/html/bug-gnulib/2017-01/msg00009.html,
3859         and glibc indeed implements read-preferring rwlocks by default, see
3860         http://man7.org/linux/man-pages/man3/pthread_rwlockattr_setkind_np.3.html
3861         and https://sourceware.org/bugzilla/show_bug.cgi?id=13701 .
3862         * m4/pthread_rwlock_rdlock.m4: New file.
3863         * m4/lock.m4 (gl_LOCK): Invoke gl_PTHREAD_RWLOCK_RDLOCK_PREFER_WRITER.
3864         * lib/glthread/lock.h [USE_POSIX_THREADS]: Test
3865         HAVE_PTHREAD_RWLOCK_RDLOCK_PREFER_WRITER. Use a different implementation
3866         of rwlock initialization on glibc systems without
3867         HAVE_PTHREAD_RWLOCK_RDLOCK_PREFER_WRITER. Use a different implementation
3868         of rwlocks altogether on non-glibc systems without
3869         HAVE_PTHREAD_RWLOCK_RDLOCK_PREFER_WRITER.
3870         [USE_PTH_THREADS]: Use a different implementation of rwlocks altogether.
3871         * lib/glthread/lock.c [USE_POSIX_THREADS]
3872         (glthread_rwlock_init_for_glibc): New function.
3873         [USE_POSIX_THREADS] (glthread_rwlock_rdlock_multithreaded): Update
3874         comment.
3875         [USE_PTH_THREADS]: New implementation of rwlocks.
3876         [USE_WINDOWS_THREADS] (glthread_rwlock_rdlock_func): Prefer writers over
3877         readers.
3878         * modules/lock (Files): Add m4/pthread_rwlock_rdlock.m4.
3879         (Depends-on): Add 'extensions'.
3880         * tests/test-rwlock1.c: New file.
3881         * lock-tests (Files): Add it.
3882         (Depends-on): Add usleep.
3883         (Makefile.am): Add test-rwlock1 to the tests.
3885 2017-01-05  Bruno Haible  <bruno@clisp.org>
3887         thread: Fix pth port.
3888         * lib/glthread/thread.h (pth_init): Declare weak.
3889         (glthread_create, glthread_sigmask, glthread_join, gl_thread_self,
3890         gl_thread_exit): Make sure Pth is initialized before invoking any Pth
3891         function.
3893 2017-01-04  Assaf Gordon  <assafgordon@gmail.com>
3895         parse-datetime: fix debug message on lone year number
3896         Input dates such as
3897           date -d "Apr 11 22:59:00 2011"
3898         are parsed as date (Apr 11, with default year 2016), then time, then a
3899         number (2011). Based on the combination of previously seen tokens,
3900         'digits_to_date_time' determines 2011 to be a year value.
3901         This fixes the debug messages to correctly show the updated year.
3902         Before:
3903             $ date --debug -d 'Apr 11 22:59:00 2011'
3904             date: parsed date part: (Y-M-D) 2016-04-11
3905             date: parsed time part: 22:59:00
3906             date: parsed number part: today/this/now
3907         After:
3908             $ ./src/date --debug -d 'Apr 11 22:59:00 2011'
3909             date: parsed date part: (Y-M-D) 2016-04-11
3910             date: parsed time part: 22:59:00
3911             date: parsed number part: year: 2011
3912         * lib/parse-datetime.y (struct parser_control): Add 'year_seen',
3913         'debug_year_seen' member fields.
3914         (digits_to_date_time): Update 'year_seen' as needed.
3915         (debug_print_current_time): Inform about year updates.
3916         (parse_datetime2): Initialize year_seen,debug_year_seen member fields.
3918         parse-datetime: fix local timezone debug messages
3919         "Local timezones" are strings that affect only DST relative to the
3920         default timezone. The debug messages in parse-datetime.y printed
3921         wrong information when encountering local timezones.
3922         Examples:
3923         Here EET/EEST are time zones ('zone' token, with values +02:00/+03:00):
3924              TZ=Asia/Tokyo ./src/date --debug -d '2011-12-11 EET'
3925              TZ=Asia/Tokyo ./src/date --debug -d '2011-06-11 EEST'
3926         When the default timezone relates to the zone strings, EET/EEST are
3927         parsed as local timezones (tLOCAL_ZONE), and only change the DST
3928         value (0/1, respectively):
3929              TZ=Europe/Helsinki ./src/date --debug -d '2011-12-11 EET'
3930              TZ=Europe/Helsinki ./src/date --debug -d '2011-06-11 EEST'
3931         * lib/parse-datetime.y (debug_print_current_time): If local timezone
3932         was seen, inform about DST change, don't print actual timezone.
3933         (debug_strfdatetime): If local timezone was seen, use default timezone
3934         (and adjust as needed) instead of using incorrect timezone.
3935         (parse_datetime2): Use correct time-zone source string, and adjust
3936         default timezone as needed.
3938         parse-datetime: add debug warning about DST changes
3939         Incorrect date arithmetic due to daylight saving time (DST) are a
3940         common (false) bug report in coreutils.
3941         Detect two such cases and print a warning:
3942         1. year/month/day adjustments (performed on 'struct tm'),
3943            where 'mktime' returns a different isdst value.
3944         2. hour/minute/seconds/ns adjustments (performed on 'time_t'),
3945            where the result of 'localtime(3)' on the value will return a
3946            different isdst value.
3947         Note: DST changes could be harmless or unnoticeable.
3948         Examples (with 'TZ=America/New_York'):
3949         Unnoticeable: result is 2016-Dec-14
3950            $ date -d '2016-06-15 EDT + 6 months' +%b
3951            Dec
3952         Unnoticeable: result is 2016-Dec-15 11:00:00
3953            $ date -d '2016-06-15 12:00:00 EDT + 6 months' +%F
3954            2016-12-15
3955         This is unexpected:
3956            $ date -d '2016-06-01 EDT + 6 months' +%F
3957            2016-11-30
3958         The new debug warnings will show:
3959            $ ./src/date --debug -d '2016-06-01 EDT + 6 months' +%F
3960            ...
3961            date: warning: daylight saving time changed after date adjustment
3962            ...
3963         * lib/parse-datetime.y (parse_datetime2): Detect DST changes, and
3964         print an appropriate warning message.
3966         parse-datetime: add debug warning about date arithmetic
3967         Date arithmetic are done directly on the fields of 'struct tm',
3968         which can result in invalid dates. Normalization with 'mktime(3)'
3969         will then produce a different date - which might cause unexpected
3970         results.
3971         Examples:
3972           '2016-10-31 - 1 month' => 2016-09-31 normalized to 2016-10-01.
3973           '2016-02-29 + 1 year'  => 2017-02-29 normalized to 2017-03-01.
3974         Note that date normalization is not inherently wrong and not rejected,
3975         as it has legitimate uses:
3976           '2016-12-29 + 5 days' => 2016-12-34 noramlized to 2017-01-03.
3977         If the user asked to adjust months but 'mday' changed,
3978         or user asked to adjust years but 'month' changed - warn about it.
3979             $ ./src/date --debug -d '2016-10-31 - 1 month'
3980             ...
3981             date: warning: when adding relative months/years, \
3982                            it is recommended to specify the 15th of the month
3983             ...
3984             date: warning: month/year adjustment resulted in shifted dates:
3985             date:      adjusted Y M D: 2016 09 31
3986             date:    normalized Y M D: 2010 10 01
3987             ...
3988         * lib/parse-datetime.y (parse_datetime2): Detect such cases and print
3989         a warning message. Improve recommendation of when to use 15 of the
3990         month or noon for date arithmetic.
3992         parse-datetime: fix debug message of relative part after timezone
3993         Relative part (e.g '+8 days') after a timezone string was not
3994         reported (was only reported after a timezone number). Due to the
3995         parser's structure, timezone strings with numbers were handled
3996         separately.
3997         before:
3998              # Timezone number + relative part: OK
3999              $ ./src/date --debug +%F -d '2013-10-30 00:00:00 +00:00 -8 days'
4000              ...
4001              date: parsed relative part: -8 day(s)
4002              # Timezone string + relative part: missing
4003              $ ./src/date --debug +%F -d '2013-10-30 00:00:00 UTC -8 days'
4004              [ missing message ]
4005         After: messages are printed in both cases.
4006         * lib/parse-datetime.y ('zone' token): Call debug_print_relative_time.
4008         parse-datetime: fix incorrect debug message on lone number
4009         A lone number is an absolute value, not a relative time part.
4010         before:
4011            $ date --debug -d '20130101'
4012            date: parsed number part: today/this/now
4013         After:
4014            $ ./src/date --debug -d '20130101'
4015            date: parsed number part: (Y-M-D) 2013-01-01
4016         * lib/parse-datetime.y ('item'/'number' tokens): Call
4017         'debug_print_current_time' instead of 'debug_print_relative_time'.
4019 2017-01-02  Paul Eggert  <eggert@cs.ucla.edu>
4021         doc: modernize for C11 etc.
4022         * doc/gnulib-readme.texi (Portability guidelines): Modernize a bit
4023         for C11, MinGW, etc.  This responds to Paul Smith's question in:
4024         http://lists.gnu.org/archive/html/bug-gnulib/2017-01/msg00014.html
4026         dfa: prefer functions to FETCH_WC macro
4027         * lib/dfa.c (FETCH_WC): Remove, replacing with ...
4028         (fetch_wc, bracket_fetch_wc): ... new functions.  These store the
4029         wint_t result into DFA->lex.wctok instead of to a separate arg.
4030         All callers changed.  Move more local decls closer to where
4031         they're used.
4033         dfa: narrow more local var scopes
4034         * lib/dfa.c: Move more local decls to be more local.
4036         dfa: remove duplicate assignment
4037         Problem reported by Bruno Haible in:
4038         http://lists.gnu.org/archive/html/bug-gnulib/2017-01/msg00007.html
4039         * lib/dfa.c (parse_bracket_exp): Simplify.
4041 2017-01-01  Paul Eggert  <eggert@cs.ucla.edu>
4043         dfa: simplify constraint-dependency checking
4044         * lib/dfa.c (prev_newline_constraint, prev_letter_constraint)
4045         (prev_other_constraint): Remove.
4046         (prev_newline_dependent, prev_letter_dependent):
4047         Simplify, to avoid an unnecessary bitwise AND operation.
4049         dfa: prefer functions and constants to macros
4050         * lib/dfa.c: Prefer constants to macros where either will do.
4051         (streq, isasciidigit, newline_constraint)
4052         (letter_constraint, other_constraint, succeeds_in_context)
4053         (prev_newline_constraint, prev_letter_constraint)
4054         (prev_other_constraint, prev_newline_dependent)
4055         (prev_letter_dependent, accepting, accepts_in_context):
4056         Now static functions instead of function-like macros.
4057         Use lower-case names accordingly.  All uses changed.
4059         dfa: narrow more local var scopes
4060         * lib/dfa.c: Move some more local decls down to nearer where
4061         they're needed.
4063 2016-12-31  Jim Meyering  <meyering@fb.com>
4065         dfa: narrow the scope of many local variables
4066         * lib/dfa.c: Now that we are no longer constrained to c89, move
4067         declarations of many variables (often indices) "down" into the
4068         scope(s) where used or to the point of definition.  This is a
4069         no-semantic-change diff.
4071 2017-01-01  Paul Eggert  <eggert@cs.ucla.edu>
4073         version-etc: new year
4074         * build-aux/gendocs.sh (version):
4075         * doc/gendocs_template:
4076         * doc/gendocs_template_min:
4077         * doc/gnulib.texi:
4078         * lib/version-etc.c (COPYRIGHT_YEAR):
4079         Update copyright dates by hand in templates and the like.
4080         * all files: Run 'make update-copyright'.
4082 2016-12-31  Eric Blake  <eblake@redhat.com>
4084         do-release-commit-and-tag: avoid shell syntax error
4085         * build-aux/do-release-commit-and-tag (curr_br): $branch can
4086         contain spaces when rebasing.
4088         maint.mk: hoist gnulib_dir definition earlier
4089         * top/maint.mk (gnulib_dir): Move near top of file.
4091 2016-12-31  Jim Meyering  <meyering@fb.com>
4093         maint.mk: do not always evaluate intprops-related shell
4094         * top/maint.mk (_intprops_names): Change := to just "=" to avoid
4095         using gnulib_dir undefined (gnulib_dir is defined later in the
4096         file, which will be fixed separately), and besides, there is no
4097         need to incur the cost of this shell invocation for every single
4098         use of this .mk file.  Reported by Eric Blake in
4099         https://lists.gnu.org/archive/html/bug-gnulib/2016-12/msg00137.html
4101 2016-12-30  Jim Meyering  <meyering@fb.com>
4103         maint.mk: improve sc_prohibit_intprops_without_use
4104         * top/maint.mk (_intprops_names): Don't hard-code the list of
4105         symbol names.  Instead, derive it on the fly.
4107 2016-12-30  Paul Eggert  <eggert@cs.ucla.edu>
4109         dfa: shorten sbit, success
4110         * lib/dfa.c (struct regex_syntax.sbit):
4111         (struct dfa.success): Use char, not int, for array elements, since
4112         they are all in the range 0..7.
4114         dfa: simplify multibyte_prop etc.
4115         This follows up on a change made when dfa.c was in grep, namely grep
4116         commit c797046c7c13c2647182b919a79a4c5b4ecf82b1
4117         dated 2015-08-12 07:35:03 -0700, which removed unused multibyte support.
4118         That earlier simplification allows for some more simplification
4119         and trimming down here.
4120         * lib/dfa.c (struct mb_char_classes): New member nchars_alloc.
4121         (struct lexer_state): New mamber brack.
4122         (struct dfa, addtok_mb): multibyte_prop elements are now char, not int,
4123         since they must be in the range 0..3 now.
4124         Remove members mbcsets, nmbcsets, mbcsets_alloc, since
4125         the brack member now supersedes them.
4126         (parse_bracket_exp): Update dfa->lex.brack instead of dfa->mbcsets.
4127         (addtok): Use dfa->lex.brack instead of dfa->mbcsets.
4128         (dfaparse): Remove unnecessary initializations of already-0 storage.
4129         (free_mbdata): Free d->lex.brack.chars instead of d->mbcsets.
4130         (dfassbuild): No need to clear sup->mbcsets.
4132         dfa: minor performance tweak
4133         * lib/dfa.c (setbit_wc): Test < 0, not == EOF.
4135         dfa: wrap charclass inside a struct
4136         On my platform (gcc Ubuntu 5.4.0-6ubuntu1~16.04.4 x86-64,
4137         en_US.utf8 locale) this makes 'grep -Fi -f list.txt list.txt >out'
4138         about 5% faster, where list.txt is generated by 'aspell dump
4139         master | head -n 100000 >list.txt'.  See Bug#22239.
4140         * lib/dfa.c (charclass): Wrap inside a struct.  All uses changed.
4141         (CHARCLASS_INIT, tstbit, setbit, clrbit, zeroset, fillset, notset)
4142         (equal, emptyset, charclass_index, setbit_wc, setbit_case_fold_c):
4143         Adjust to this, e.g., by using charclass * rather than charclass.
4144         All callers changed as needed.
4145         (copyset): Remove.  All uses changed to simple assignment.
4146         (parse_bracket_exp): Use zeroset instead of memset.
4148 2016-12-30  Jim Meyering  <meyering@fb.com>
4150         maint.mk: update list of intprops.h symbol names
4151         * top/maint.mk (_intprops_names): Regenerate the list of symbol names.
4152         This avoids a false failure of the sc_prohibit_intprops_without_use
4153         rule in grep.
4155 2016-12-29  Eric Blake  <eblake@redhat.com>
4157         getopt: fix parallel test failure
4158         * tests/test-getopt-posix.c (TEST_GETOPT_TMP_NAME): Set name.
4159         * tests/test-getopt-gnu.c (TEST_GETOPT_TMP_NAME): Likewise.
4160         * tests/test-getopt-main.h (main): Use different file names
4161         in case test-getopt-gnu and test-getopt-posix run in parallel.
4163 2016-12-29  Paul Eggert  <eggert@cs.ucla.edu>
4165         xalloc: x2nrealloc check for ptrdiff_t overflow
4166         * lib/xalloc.h (x2nrealloc): Check for ptrdiff_t overflow, too.
4167         * modules/xalloc, modules/xvasprintf (Depends-on): Add stdint.
4169 2016-12-24  Bruno Haible  <bruno@clisp.org>
4171         lock test: Fix performance problem on multi-core machines.
4172         * tests/test-lock.c (USE_VOLATILE): New macro.
4173         (struct atomic_int): New type.
4174         (init_atomic_int, get_atomic_int_value, set_atomic_int_value): New
4175         functions.
4176         (lock_checker_done, rwlock_checker_done, reclock_checker_done): Define
4177         as 'struct atomic_int'.
4178         (lock_checker_thread, test_lock, rwlock_checker_thread, test_rwlock,
4179         reclock_checker_thread, test_recursive_lock): Use the new functions.
4180         Reported by Eric Blake in
4181         https://www.redhat.com/archives/libvir-list/2012-March/msg00854.html
4182         and by Pádraig Brady in
4183         http://lists.gnu.org/archive/html/bug-gnulib/2016-12/msg00117.html.
4185 2016-12-19  Bruno Haible  <bruno@clisp.org>
4187         vma-iter: Fix endless loop on 64-bit Windows.
4188         * lib/vma-iter.c (vma_iterate): On Windows, use 'uintptr_t' instead of
4189         'unsigned long'.
4191 2016-12-19  Bruno Haible  <bruno@clisp.org>
4193         stdint: Fix WINT_MAX to match the gnulib provided wint_t on minw.
4194         * m4/wint_t.m4 (gt_TYPE_WINT_T): Define GNULIB_OVERRIDES_WINT_T here.
4195         * m4/stdint.m4 (gl_STDINT_H): Don't define GNULIB_OVERRIDES_WINT_T.
4196         Invoke gt_TYPE_WINT_T instead.
4197         (gl_STDINT_TYPE_PROPERTIES): Test GNULIB_OVERRIDES_WINT_T.
4198         * modules/stdint (Files): Add m4/wint_t.m4.
4199         * modules/wchar (Makefile.am): Substitute GNULIB_OVERRIDES_WINT_T.
4200         * modules/wctype-h (Makefile.am): Likewise.
4201         * lib/wchar.in.h (wint_t): Override if GNULIB_OVERRIDES_WINT_T is set,
4202         not only on MSVC.
4203         * lib/wctype.in.h (wint_t): Likewise.
4205 2016-12-19  Paul Eggert  <eggert@cs.ucla.edu>
4207         getopt-posix-tests: fix Makefile typo
4208         * modules/getopt-posix-tests (test_getopt_posix_LDADD):
4209         Fix typo: the last ‘_’ was missing in the name.
4210         I suspect that the typo explains this build failure:
4211         https://buildfarm.opencsw.org/buildbot/builders/ggrep-solaris10-sparc/builds/39
4212         although I can’t reproduce the problem on Solaris 10 sparc.
4214 2016-12-18  Paul Eggert  <eggert@cs.ucla.edu>
4216         dfa: improve worst-case 'replace' performance
4217         See my note in Bug#22357#71.
4218         * lib/dfa.c (insert, delete): Rework to avoid duplicate test.
4219         (merge_constrained): New function, which is like
4220         the old 'merge' function, except with a new argument C2.
4221         Simplify the body by avoiding the need for different sections
4222         of code depending on whether one input is exhausted.
4223         (merge): Use the new function.
4224         (delete): Return the constraint of the deleted position,
4225         not the entire position.  Caller changed.
4226         (replace): Change from O(N*(N + log N)) to O(N log N) algorithm.
4228 2016-12-18  Norihiro Tanaka  <noritnk@kcn.ne.jp>
4230         dfa: performance improvement for removal of epsilon closure
4231         See Bug#22357#32.
4232         * lib/dfa.c (delete): Use binary search to find deleted index.
4233         (replace): New function.  It replaces a position with the followed set.
4234         (epsclosure): Replace it with a new algorithm.  Update caller.
4236 2016-12-18  Bruno Haible  <bruno@clisp.org>
4238         Split tests for getopt-posix and getopt-gnu.
4239         * tests/test-getopt-posix.c: New file.
4240         * tests/test-getopt-gnu.c: New file, with code from test-getopt.c.
4241         * tests/test-getopt-main.h: Renamed from tests/test-getopt.c. Remove
4242         stuff moved to test-getopt-gnu.c. Test TEST_GETOPT_GNU instead of
4243         GNULIB_TEST_GETOPT_GNU.
4244         * modules/getopt-posix-tests (Files): Add test-getopt-posix.c,
4245         test-getopt-main.h. Remove test-getopt.c, test-getopt_long.h.
4246         (Makefile.am): Test test-getopt-posix instead of test-getopt.
4247         * modules/getopt-gnu-tests: New file.
4248         * modules/getopt-gnu (configure.ac): Don't define GNULIB_TEST_GETOPT_GNU.
4250 2016-12-18  Bruno Haible  <bruno@clisp.org>
4252         posix-modules: Add options for specific platforms.
4253         * posix-modules (func_usage): Document options --for-mingw, --for-msvc.
4254         (exclude_for_mingw, exclude_for_msvc, exclude): New variables.
4255         Invoke func_tmpdir. Filter out the excludes.
4257 2016-12-18  Bruno Haible  <bruno@clisp.org>
4259         getopt: Fix link error for users of getopt() in <unistd.h>.
4260         * lib/getopt.in.h (getopt etc.): Do the macro definitions also when
4261         __need_getopt is defined. Undefine all macros before defining them.
4262         * modules/getopt (Include): Clarify that including <unistd.h> is also
4263         OK.
4264         * tests/test-getopt.c: Add comment.
4266 2016-12-17  Bruno Haible  <bruno@clisp.org>
4268         getaddrinfo tests: Avoid compilation error on MSVC.
4269         * tests/test-getaddrinfo.c: Don't check the prototypes of freeaddrinfo,
4270         getaddrinfo on native Windows.
4272 2016-12-17  Bruno Haible  <bruno@clisp.org>
4274         getlogin, getlogin_r: Fix link errors on MSVC.
4275         * m4/getlogin.m4 (gl_LIB_GETLOGIN): New macro.
4276         * modules/getlogin (configure.ac): Require gl_LIB_GETLOGIN.
4277         (Link): New section.
4278         * modules/getlogin_r (Files): Add m4/getlogin.m4.
4279         (configure.ac): Require gl_LIB_GETLOGIN.
4280         (Link): New section.
4281         * NEWS: Mention the new link requirements.
4282         * modules/getlogin-tests (test_getlogin_LDADD): New variable.
4283         * modules/getlogin_r-tests (test_getlogin_r_LDADD): New variable.
4285 2016-12-17  Bruno Haible  <bruno@clisp.org>
4287         Un-deprecate the 'progname' module.
4288         * NEWS: Describe the appropriate use-cases of 'progname' versus
4289         'getprogname'. Based on discussion summary at
4290         http://lists.gnu.org/archive/html/bug-gnulib/2016-10/msg00105.html
4292 2016-12-17  Bruno Haible  <bruno@clisp.org>
4294         Reorganize NEWS a bit.
4295         * NEWS: Move some not so important changes away from section
4296         "Important Notes".
4298 2016-12-17  Bruno Haible  <bruno@clisp.org>
4300         tanhf: Avoid redefinition error on MSVC.
4301         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_TANHF.
4302         * m4/tanhf.m4 (gl_FUNC_TANHF): Set REPLACE_TANHF to 1 if the function
4303         may be defined as an inline function.
4304         * modules/math (Makefile.am): Substitute REPLACE_TANHF.
4305         * lib/math.in.h (tanhf): Override if REPLACE_TANHF is 1.
4307 2016-12-17  Bruno Haible  <bruno@clisp.org>
4309         tanf: Avoid redefinition error on MSVC.
4310         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_TANF.
4311         * m4/tanf.m4 (gl_FUNC_TANF): Set REPLACE_TANF to 1 if the function
4312         may be defined as an inline function.
4313         * modules/math (Makefile.am): Substitute REPLACE_TANF.
4314         * lib/math.in.h (tanf): Override if REPLACE_TANF is 1.
4316 2016-12-17  Bruno Haible  <bruno@clisp.org>
4318         sqrtf: Avoid redefinition error on MSVC.
4319         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_SQRTF.
4320         * m4/sqrtf.m4 (gl_FUNC_SQRTF): Set REPLACE_SQRTF to 1 if the function
4321         may be defined as an inline function.
4322         * modules/math (Makefile.am): Substitute REPLACE_SQRTF.
4323         * lib/math.in.h (sqrtf): Override if REPLACE_SQRTF is 1.
4325 2016-12-17  Bruno Haible  <bruno@clisp.org>
4327         sinhf: Avoid redefinition error on MSVC.
4328         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_SINHF.
4329         * m4/sinhf.m4 (gl_FUNC_SINHF): Set REPLACE_SINHF to 1 if the function
4330         may be defined as an inline function.
4331         * modules/math (Makefile.am): Substitute REPLACE_SINHF.
4332         * lib/math.in.h (sinhf): Override if REPLACE_SINHF is 1.
4334 2016-12-17  Bruno Haible  <bruno@clisp.org>
4336         sinf: Avoid redefinition error on MSVC.
4337         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_SINF.
4338         * m4/sinf.m4 (gl_FUNC_SINF): Set REPLACE_SINF to 1 if the function
4339         may be defined as an inline function.
4340         * modules/math (Makefile.am): Substitute REPLACE_SINF.
4341         * lib/math.in.h (sinf): Override if REPLACE_SINF is 1.
4343 2016-12-17  Bruno Haible  <bruno@clisp.org>
4345         logf: Avoid redefinition error on MSVC.
4346         * m4/logf.m4 (gl_FUNC_LOGF): Set REPLACE_LOGF to 1 if the function
4347         may be defined as an inline function.
4349 2016-12-17  Bruno Haible  <bruno@clisp.org>
4351         log10l: Avoid redefinition error on MSVC.
4352         * m4/log10l.m4 (gl_FUNC_LOG10L): Set REPLACE_LOG10L to 1 if the function
4353         may be defined as an inline function.
4355 2016-12-17  Bruno Haible  <bruno@clisp.org>
4357         log10f: Avoid redefinition error on MSVC.
4358         * m4/log10f.m4 (gl_FUNC_LOG10F): Set REPLACE_LOG10F to 1 if the function
4359         may be defined as an inline function.
4361 2016-12-17  Bruno Haible  <bruno@clisp.org>
4363         hypotl: Avoid redefinition error on MSVC.
4364         * m4/hypotl.m4 (gl_FUNC_HYPOTL): Set REPLACE_HYPOTL to 1 if the function
4365         may be defined as an inline function.
4367 2016-12-17  Bruno Haible  <bruno@clisp.org>
4369         hypotf: Avoid redefinition error on MSVC.
4370         * m4/hypotf.m4 (gl_FUNC_HYPOTF): Set REPLACE_HYPOTF to 1 if the function
4371         may be defined as an inline function.
4373 2016-12-17  Bruno Haible  <bruno@clisp.org>
4375         fmodl: Avoid redefinition error on MSVC.
4376         * m4/fmodl.m4 (gl_FUNC_FMODL): Set REPLACE_FMODL to 1 if the function
4377         may be defined as an inline function.
4379 2016-12-17  Bruno Haible  <bruno@clisp.org>
4381         fmodf: Avoid redefinition error on MSVC.
4382         * m4/fmodf.m4 (gl_FUNC_FMODF): Set REPLACE_FMODF to 1 if the function
4383         may be defined as an inline function.
4385 2016-12-17  Bruno Haible  <bruno@clisp.org>
4387         expf: Avoid redefinition error on MSVC.
4388         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_EXPF.
4389         * m4/expf.m4 (gl_FUNC_EXPF): Set REPLACE_EXPF to 1 if the function
4390         may be defined as an inline function.
4391         * modules/math (Makefile.am): Substitute REPLACE_EXPF.
4392         * lib/math.in.h (expf): Override if REPLACE_EXPF is 1.
4394 2016-12-17  Bruno Haible  <bruno@clisp.org>
4396         coshf: Avoid redefinition error on MSVC.
4397         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_COSHF.
4398         * m4/coshf.m4 (gl_FUNC_COSHF): Set REPLACE_COSHF to 1 if the function
4399         may be defined as an inline function.
4400         * modules/math (Makefile.am): Substitute REPLACE_COSHF.
4401         * lib/math.in.h (coshf): Override if REPLACE_COSHF is 1.
4403 2016-12-17  Bruno Haible  <bruno@clisp.org>
4405         cosf: Avoid redefinition error on MSVC.
4406         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_COSF.
4407         * m4/cosf.m4 (gl_FUNC_COSF): Set REPLACE_COSF to 1 if the function
4408         may be defined as an inline function.
4409         * modules/math (Makefile.am): Substitute REPLACE_COSF.
4410         * lib/math.in.h (cosf): Override if REPLACE_COSF is 1.
4412 2016-12-17  Bruno Haible  <bruno@clisp.org>
4414         atan2f: Avoid redefinition error on MSVC.
4415         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_ATAN2F.
4416         * m4/atan2f.m4 (gl_FUNC_ATAN2F): Set REPLACE_ATAN2F to 1 if the function
4417         may be defined as an inline function.
4418         * modules/math (Makefile.am): Substitute REPLACE_ATAN2F.
4419         * lib/math.in.h (atan2f): Override if REPLACE_ATAN2F is 1.
4421 2016-12-17  Bruno Haible  <bruno@clisp.org>
4423         atanf: Avoid redefinition error on MSVC.
4424         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_ATANF.
4425         * m4/atanf.m4 (gl_FUNC_ATANF): Set REPLACE_ATANF to 1 if the function
4426         may be defined as an inline function.
4427         * modules/math (Makefile.am): Substitute REPLACE_ATANF.
4428         * lib/math.in.h (atanf): Override if REPLACE_ATANF is 1.
4430 2016-12-17  Bruno Haible  <bruno@clisp.org>
4432         asinf: Avoid redefinition error on MSVC.
4433         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_ASINF.
4434         * m4/asinf.m4 (gl_FUNC_ASINF): Set REPLACE_ASINF to 1 if the function
4435         may be defined as an inline function.
4436         * modules/math (Makefile.am): Substitute REPLACE_ASINF.
4437         * lib/math.in.h (asinf): Override if REPLACE_ASINF is 1.
4439 2016-12-17  Bruno Haible  <bruno@clisp.org>
4441         acosf: Avoid redefinition error on MSVC.
4442         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_ACOSF.
4443         * m4/acosf.m4 (gl_FUNC_ACOSF): Set REPLACE_ACOSF to 1 if the function
4444         may be defined as an inline function.
4445         * modules/math (Makefile.am): Substitute REPLACE_ACOSF.
4446         * lib/math.in.h (acosf): Override if REPLACE_ACOSF is 1.
4448 2016-12-17  Bruno Haible  <bruno@clisp.org>
4450         Avoid redefinition errors on MSVC.
4451         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): Set REPLACE_SNPRINTF to 1 if
4452         the function may be defined as an inline function.
4453         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): Set REPLACE_VSNPRINTF to 1 if
4454         the function may be defined as an inline function.
4456 2016-12-17  Bruno Haible  <bruno@clisp.org>
4458         Avoid redefinition errors on MSVC.
4459         * lib/stdio.in.h: Include <stdlib.h> and <io.h> when necessary.
4460         * lib/unistd.in.h: Include <stdio.h> when necessary.
4462 2016-12-17  Bruno Haible  <bruno@clisp.org>
4464         stdint: Fix WINT_MAX to match the gnulib provided wint_t on MSVC.
4465         * m4/stdint.m4 (gl_STDINT_H): Define GNULIB_OVERRIDES_WINT_T.
4466         * modules/stdint (Makefile.am): Substitute GNULIB_OVERRIDES_WINT_T.
4467         * lib/stdint.in.h [GNULIB_OVERRIDES_WINT_T]: Redefine WINT_MIN and
4468         WINT_MAX.
4470 2016-12-17  Bruno Haible  <bruno@clisp.org>
4472         Avoid autoconf warning.
4473         * modules/frexpl (configure.ac): Require, not invoke, gl_FUNC_FREXPL.
4474         * modules/frexp (configure.ac): Require, not invoke, gl_FUNC_FREXP.
4476 2016-12-17  Bruno Haible  <bruno@clisp.org>
4478         fpending: Revert workaround against Emacs bug.
4479         * lib/stdio-impl.h [__MINGW32__]: Revert conditional.
4480         The Emacs bug is fixed by Eli Zaretskii in
4481         http://lists.gnu.org/archive/html/emacs-devel/2016-12/msg00715.html
4483 2016-12-17  Bruno Haible  <bruno@clisp.org>
4485         getlogin_r tests: Port to mingw.
4486         * tests/test-getlogin_r.c: Don't include <pwd.h> on native Windows. Fixes
4487         regression introduced on 2014-05-19.
4489 2016-12-17  Bruno Haible  <bruno@clisp.org>
4491         getlogin: Port to newer mingw.
4492         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_DECL_GETLOGIN.
4493         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Set HAVE_DECL_GETLOGIN.
4494         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETLOGIN, not
4495         HAVE_GETLOGIN.
4496         * lib/unistd.in.h (getlogin): Test HAVE_DECL_GETLOGIN, not
4497         HAVE_GETLOGIN.
4498         * doc/posix-functions/getlogin.texi: Mention the issue.
4499         * tests/test-getlogin.c: Don't include <pwd.h> on native Windows. Fixes
4500         regression introduced on 2014-05-14.
4502 2016-12-16  Paul Eggert  <eggert@cs.ucla.edu>
4504         builtin-expect: improve port to IBM XL C
4505         Problem reported for z/OS by Daniel Richard G. in:
4506         http://lists.gnu.org/archive/html/bug-gnulib/2016-12/msg00079.html
4507         * m4/builtin-expect.m4 (gl___BUILTIN_EXPECT):
4508         Test for <builtins.h> directly.
4510         builtin-expect: port to IBM XL C
4511         Problem reported for z/OS by Daniel Richard G. in:
4512         http://lists.gnu.org/archive/html/bug-gnulib/2016-12/msg00074.html
4513         * m4/builtin-expect.m4 (gl___BUILTIN_EXPECT):
4514         Also allow __builtin_expect defined via a standard include file.
4516         regex: fix dependency
4517         Problem reported by Bruno Haible in:
4518         http://lists.gnu.org/archive/html/bug-gnulib/2016-12/msg00073.html
4519         * modules/regex: Depend on builtin-expect.
4521         builtin-expect: new module
4522         Fix fnmatch to use it.
4523         Problem reported for z/OS by Daniel Richard G.
4524         * lib/fnmatch.c (__builtin_expect):
4525         * lib/glob.c (__builtin_expect):
4526         * lib/grantpt.c (__builtin_expect) [!_LIBC]:
4527         * lib/memmem.c (__builtin_expect) [!_LIBC]:
4528         * lib/scandir.c (__builtin_expect):
4529         * lib/strstr.c (__builtin_expect) [!_LIBC]:
4530         Remove macro; config.h now does this.
4531         * lib/gl_anytreehash_list1.h (add_to_bucket):
4532         * lib/regex_internal.h (BE):
4533         Assume __builtin_expect.
4534         * m4/builtin-expect.m4, modules/builtin-expect: New files.
4535         * modules/avltreehash-list, modules/fnmatch, modules/glob:
4536         * modules/grantpt, modules/memmem-simple, modules/rbtreehash-list:
4537         * modules/scandir, modules/strstr-simple:
4538         Depend on builtin-expect.
4540 2016-12-15  Bruno Haible  <bruno@clisp.org>
4542         init.sh: Add possibility to not delete temporary files.
4543         * tests/init.sh (remove_tmp_): If the environment variable KEEP is set
4544         to yes, don't erase the temporary directory.
4546 2016-12-16  Paul Eggert  <eggert@cs.ucla.edu>
4548         regex: fix integer-overflow bug in never-used code
4549         Problem reported by Clément Pit–Claudel in:
4550         http://lists.gnu.org/archive/html/emacs-devel/2016-12/msg00654.html
4551         * lib/regex_internal.h: Include intprops.h.
4552         * lib/regexec.c (re_search_2_stub): Use it to avoid undefined
4553         behavior on integer overflow.
4554         * modules/regex (Depends-on): Add intprops.
4556         fpending: fix port to MinGW on Emacs
4557         * lib/stdio-impl.h [__MINGW32__]: Do not include errno.h.
4558         Problem reported by Eli Zaretskii in:
4559         http://lists.gnu.org/archive/html/emacs-devel/2016-12/msg00642.html
4560         Is Plan 9 still a valid porting target, anyway?
4562 2016-12-15  Paul Eggert  <eggert@cs.ucla.edu>
4564         safe-alloc: use xalloc-oversized
4565         * lib/safe-alloc.c: Include xalloc-oversized.h.
4566         (safe_alloc_oversized): Remove.  All uses changed to xalloc_oversized.
4567         * modules/safe-alloc (Depends-on): Add xalloc-oversized.
4569         xalloc: do not exceed PTRDIFF_MAX
4570         * lib/xmalloc.c (xcalloc) [HAVE_GNU_CALLOC]: Do not omit
4571         xalloc_oversized check, since objects larger than PTRDIFF_MAX
4572         bytes have pointer-subtraction problems.
4574         malloca: do not exceed PTRDIFF_MAX
4575         * lib/malloca.h: Include xalloc-oversized.
4576         (nmalloca): Use xalloc_oversized instead of rolling our own.
4577         * modules/malloca (Depends-on):
4578         * modules/relocatable-prog-wrapper (Depends-on):
4579         Add xalloc-oversized.
4581         quotearg: pacify GCC better
4582         * modules/quotearg (Depends-on): Add minmax, stdint.
4583         * lib/quotearg.c: Include minmax.h, stdint.h.
4584         (nslots): Now int, as there seems little point to going to extra
4585         work merely to support the INT_MAX slot, which nobody ever uses.
4586         (quotearg_n_options): Redo size-overflow checks to pacify GCC
4587         and to catch (mostly-theoretical) ptrdiff_t problems too.
4588         This can be done via one comparison.
4590 2016-12-14  Paul Eggert  <eggert@cs.ucla.edu>
4592         xalloc-oversized: check for PTRDIFF_MAX too
4593         This avoids undefined behavior when subtracting pointers to
4594         objects containing more than PTRDIFF_MAX bytes.
4595         * lib/xalloc-oversized.h (__xalloc_oversized, xalloc_oversized):
4596         Also return 1 if the result would exceed PTRDIFF_MAX>
4597         * modules/xalloc-oversized (Depends-on):
4598         Add stdint.
4600         dfa: fix glitches in previous commit
4601         Sorry, I don't know how I managed to commit the wrong version.
4602         * lib/dfa.c (MIN): Move up.
4603         (xpalloc): Now static.
4605         dfa: fix some unlikely integer overflows
4606         I found these while reviewing the recent Coverity-related fix.
4607         This patch changes part of dfa.c to prefer ptrdiff_t instead of
4608         size_t for object counts.  Using ptrdiff_t is the style typically
4609         used in Emacs; although it wastes a sign bit as sizes can never be
4610         negative, it makes -fsanitize=undefined more likely to catch
4611         integer overflows in index calculation, and nowadays the upside is
4612         typically more important than the downside.  Although perhaps the
4613         rest of dfa.c should be changed to prefer ptrdiff_t as well (much
4614         of dfa.c already does, since it uses state_num which is signed),
4615         that is a bigger change and is not needed to fix the bugs I found.
4616         * lib/dfa.c: Include stdint.h and intprops.h.
4617         (TOKEN_MAX): New macro.
4618         (position_set, struct mb_char_classes, struct dfa, maybe_realloc)
4619         (charclass_index, parse_bracket_exp, addtok, insert, merge)
4620         (realloc_trans_if_necessary, free_mbdata):
4621         Use ptrdiff_t instead of size_t for object counts related to xpalloc.
4622         This is safe because xpalloc checks that the sizes do not exceed
4623         either SIZE_MAX or PTRDIFF_MAX.
4624         (xpalloc): New function, mostly taken from Emacs.
4625         (maybe_realloc, copy, realloc_trans_if_necessary): Use it.
4626         (maybe_realloc): Add NITEMS_MAX to signature.  All callers changed.
4627         (charclass_index): Check for integer overflow in computing
4628         charclass index; it must not exceed TOKEN_MAX - CSET, as CSET is
4629         added to it later.
4630         (alloc_position_set): Check for integer overflow.  On typical
4631         platforms this check has zero overhead, since the constant
4632         expression is false.
4633         (realloc_trans_if_necessary):
4634         Remove assertion, which I hope Coverity no longer needs.
4636         * modules/dfa (Depends-on): Add intprops, stdint.
4638 2016-12-12  Jim Meyering  <meyering@fb.com>
4640         dfa: add an assertion to avoid coverity false positive
4641         * lib/dfa.c (realloc_trans_if_necessary): Otherwise, coverity
4642         warned that "newalloc1 - 2" could overflow.
4644 2016-12-13   Arnold D. Robbins  <arnold@skeeve.com>
4646         dfa: remove DFA_CASE_FOLD flag in favor of RE_ICASE
4647         * dfa.h (DFA_CASE_FOLD): Remove.
4648         * dfa.c (dfasyntax): Set dfa->syntax.case_fold based on RE_ICASE.
4650 2016-12-13  John W. Eaton  <gnu@jweaton.org>
4652         link: fix test to declare use of rename()
4653         * m4/link.m4 (gl_FUNC_LINK): Include <stdio.h> needed with
4654         -Werror=implicit-function-declaration
4656 2016-12-12  Bruno Haible  <bruno@clisp.org>
4658         fpending: Port to native Windows with MSVC.
4659         * lib/fpending.c: Include stdio-impl.h.
4660         (__fpending): Include all known implementations. Err out if it's not
4661         ported.
4662         * m4/fpending.m4 (gl_PREREQ_FPENDING): Remove macro.
4663         * modules/fpending (Files): Add lib/stdio-impl.h.
4664         (configure.ac): Don't invoke gl_PREREQ_FPENDING.
4666 2016-12-12  Bruno Haible  <bruno@clisp.org>
4668         stdioext: Port to native Windows with MSVC.
4669         * lib/stdio-impl.h (WINDOWS_OPAQUE_FILE): New macro.
4670         (struct _gl_real_FILE): New type.
4671         (fp_, _IOREAD, _IOWRT, _IORW, _IOEOF, _IOERR): New macros, for native
4672         Windows.
4673         * lib/fbufmode.c (fbufmode): Add code for native Windows.
4674         * lib/fflush.c (clear_ungetc_buffer): Treat native Windows like the
4675         other SystemV derived implementations.
4676         * lib/fpurge.c (fpurge): Likewise.
4677         * lib/freadable.c (freadable): Likewise.
4678         * lib/freadahead.c (freadahead): Likewise.
4679         * lib/freading.c (freading): Likewise.
4680         * lib/freadptr.c (freadptr): Likewise.
4681         * lib/freadseek.c (freadptrinc): Likewise.
4682         * lib/fseeko.c (fseeko): Likewise.
4683         * lib/fseterr.c (fseterr): Likewise.
4684         * lib/fwritable.c (fwritable): Likewise.
4685         * lib/fwriting.c (fwriting): Likewise.
4686         Reported by Gisle Vanem <gvanem@yahoo.no>.
4688 2016-12-11  Jim Meyering  <meyering@fb.com>
4690         non-recursive-gnulib-prefix-hack.m4: remove leading "(" in case stmt
4691         * m4/non-recursive-gnulib-prefix-hack.m4: That leading "(" happens
4692         to work with most shells, but not with the one provided by many
4693         Solaris 10 systems, so running configure with such a /bin/sh evokes
4694         e.g., "./configure: syntax error at line 33602: `(' unexpected".
4695         Reported by Assaf Gordon in
4696         https://lists.gnu.org/archive/html/sed-devel/2016-12/msg00002.html
4698 2016-12-10  Bruno Haible  <bruno@clisp.org>
4700         threadlib: Optimize out runtime test on Solaris >= 10.
4701         * m4/threadlib.m4 (gl_THREADLIB_BODY): Don't set
4702         PTHREAD_IN_USE_DETECTION_HARD if configuring on Solaris 10 or newer.
4703         Reported by Peter Felecan at <https://savannah.gnu.org/bugs/?32087>.
4705 2016-12-10  Bruno Haible  <bruno@clisp.org>
4707         stdint: Update doc about Solaris 9.
4708         * doc/posix-headers/stdint.texi: Add info about Solaris 9.
4710 2016-12-09  Bruno Haible  <bruno@clisp.org>
4712         c-ctype tests: Fix link error on Solaris 9.
4713         * modules/c-ctype-tests (Depends-on): Add 'isblank'.
4714         Reported at <https://savannah.gnu.org/bugs/?46827>.
4716 2016-12-09  Paul Eggert  <eggert@cs.ucla.edu>
4718         dfa: fix performance bug that recomputes trans
4719         * lib/dfa.c (build_state): Fix performance bug introduced in Nov
4720         25 on-demand changes.  The bug caused build_state to reset all
4721         d->trans elements to -2 even when d->trans was already non-null.
4722         Use C99 style decls after statements in this function.
4724         same-inode: port to MinGW
4725         Here st_ino is always 0, so change the definition of SAME_INODE so
4726         that 1 means the two files are the same, 0 with st_ino != 0 means
4727         they differ, and 0 with st_ino == 0 means we don’t know.  Problem
4728         reported by Bruno Haible (Bug#25146).
4729         * doc/posix-headers/sys_stat.texi (sys/stat.h): Update.
4730         * lib/same-inode.h (SAME_INODE): Return 0 on MinGW.
4732 2016-12-04  Bruno Haible  <bruno@clisp.org>
4734         javacomp: Support Java 7 and 8.
4735         * m4/javacomp.m4 (gt_JAVACOMP): Accept source-version 1.7, 1.8 and
4736         target-version 1.7, 1.8.
4738 2016-12-02  Daiki Ueno  <ueno@gnu.org>
4740         * gnulib-tool (func_import): Relax the regex used for "LGPLv3+ or
4741         GPLv2" rewriting.
4743 2016-12-02  Nikos Mavrogiannopoulos  <nmav@gnutls.org>
4745         * gnulib-tool (func_import): Adhere to the license guideline when
4746         rewriting the license text to "LGPLv3+ or GPLv2":
4747         https://www.gnu.org/prep/maintain/maintain.html#Licensing-of-GNU-Packages
4749 2016-12-02  Bruno Haible  <bruno@clisp.org>
4751         localcharset: Avoid theoretical buffer overrun.
4752         * lib/localcharset.c (locale_charset) [WINDOWS_NATIVE]: Don't use the
4753         return value from setlocale if it would lead to a buffer overrun.
4755 2016-12-01  Bruno Haible  <bruno@clisp.org>
4757         Relicense some modules under LGPLv2+.
4758         Kevin Cernekee's approval is in
4759         http://lists.gnu.org/archive/html/bug-gnulib/2016-11/msg00090.html.
4760         * modules/fseterr (License): Change to LGPLv2+.
4761         * modules/mbchar (License): Likewise.
4762         * modules/mbiter (License): Likewise.
4763         * modules/mbsnlen (License): Likewise.
4764         * modules/wcwidth (License): Likewise.
4766 2016-12-01  KO Myung-Hun  <komh78@gmail.com>
4768         scandir: Fix _D_ALLOC_NAMLEN() on OS/2 kLIBC
4769         * lib/scandir.c (_D_ALLOC_NAMLEN): Consider the fields after d_name on
4770         OS/2 kLIBC.
4772 2016-12-01  KO Myung-Hun  <komh78@gmail.com>
4774         alphasort, scandir: Port to OS/2 kLIBC
4775         * lib/alphasort.c (alphasort): Implement according to OS/2 kLIBC
4776         declaration.
4777         * lib/scandir.c (scandir): Add declaration for OS/2 kLIBC.
4779 2016-12-01  KO Myung-Hun  <komh78@gmail.com>
4781         relocatable: Fix that /@unixroot prefix is not working on OS/2 kLIBC
4782         * lib/relocatable.c (relocate): Do not touch pathname if it is started
4783         with '/@unixroot'.
4785 2016-12-01  KO Myung-Hun  <komh78@gmail.com>
4787         sys_socket: typedef sa_family_t correctly on OS/2 kLIBC
4788         * lib/sys_socket.in.h (sa_family_t): Typedef to unsigned char on
4789         OS/2 kLIBC unless TCPV40HDRS is defined.
4791 2016-11-29  Jim Meyering  <meyering@fb.com>
4793         dfa: avoid new infinite loop
4794         This would infloop: echo cx | LC_ALL=C grep -E 'c\b[x ]'
4795         * lib/dfa.c (dfastate): When constructing a new state table, we could
4796         initially declare that we had found a match, and later find that
4797         constraints eliminate that possibility, yet continue to use the
4798         now stale "matched" indicator.  That would lead to an infinite loop.
4799         The solution is to update "matched" when necessary.
4800         Introduced by commit v0.1-983-g403adf1.
4802 2016-11-27  Norihiro Tanaka  <noritnk@kcn.ne.jp>
4804         dfa: avoid match middle in multibyte character
4805         * lib/dfa.c (transit_state): If fails in matching single byte characters
4806         on a state including period expression in non-UTF8 multibyte locales,
4807         skip trailing bytes.
4808         (dfa_supported): Revert previous change.
4810 2016-11-27  Jim Meyering  <meyering@fb.com>
4812         dfa: avoid false match in non-UTF8 multibyte locales
4813         * lib/dfa.c (dfa_supported): Treat any non-UTF8 multibyte locale
4814         as "not supported" so that callers will resort to using regex-based
4815         matcher.  This will surely hurt performance, but correctness trumps
4816         performance here, and the affected locales are less and less relevant,
4817         these days.  See grep's bug report https://bugs.gnu.org/24975.
4819 2016-11-27  Mike Frysinger  <vapier@gentoo.org>
4821         ptsname_r: leverage AC_HEADER_MAJOR to provide major()
4822         * lib/ptsname_r.c: Include the appropriate headers.
4823         [__sun]: Delete sys/sysmacros.h include.
4824         [_AIX || __osf__]: Likewise.
4825         * m4/ptsname_r.m4 (gl_FUNC_PTSNAME_R): Depend on AC_HEADER_MAJOR.
4827 2016-11-27  Pádraig Brady  <P@draigBrady.com>
4829         md4,md5,sha*: allow _STRING_INLINE_unaligned enable unaligned operation
4830         * lib/md4.c (md4_process_bytes): The existing define is made internal
4831         in recent versions of glibc, so also use this new public define.
4832         * lib/md5.c (md5_process_bytes): Likewise.
4833         * lib/sha1.c (sha1_process_bytes): Likewise.
4834         * lib/sha256.c (sha256_process_bytes): Likewise.
4835         * lib/sha512.c (sha512_process_bytes): Likewise.
4837 2016-11-27  Pádraig Brady  <P@draigBrady.com>
4839         maint: use a more standard return from mbrtowc test
4840         * m4/mbrtowc.m4 (gl_MBRTOWC_C_LOCALE): Don't return 1
4841         from the test program as this often indicates an
4842         unhandled case in the test program.
4843         (gl_MBRTOWC_INCOMPLETE_STATE): Likewise.
4844         (gl_MBRTOWC_SANITYCHECK): Likewise.
4845         (gl_MBRTOWC_NULL_ARG2): Likewise.
4846         (gl_MBRTOWC_NUL_RETVAL): Likewise.
4848 2016-11-26  Paul Eggert  <eggert@cs.ucla.edu>
4850         freopen: work around glibc bug with closed fd
4851         Work around glibc bug#15589, where freopen mishandles the case
4852         where stdin etc. are already closed.
4853         * doc/posix-functions/freopen.texi (freopen): Document the bug.
4854         * lib/freopen.c (_GL_ALREADY_INCLUDING_STDIO_H): Define this
4855         instead of __need_FILE, as the latter does not work with glibc.
4856         Include <fcntl.h>, for open flags.
4857         (rpl_freopen): Work around glibc bug.
4858         * m4/freopen.m4 (gl_FUNC_FREOPEN): Check for bug.
4859         * modules/freopen (Depends-on): Add fcntl-h.
4860         * tests/test-freopen.c (main): Test for bug.
4862 2016-11-25  Paul Eggert  <eggert@cs.ucla.edu>
4864         fnmatch: fix typo introduced on 2016-08-17
4865         This fixes the port to non-GCC compilers that lack __builtin_expect.
4866         * lib/fnmatch.c (__builtin_expect): Change A&&B to !A||B.
4868         dfa: simplify with new function fillset
4869         * lib/dfa.c (fillset): New function.
4870         Use it for clarity when applicable.
4872         dfa: fix glitches with on-demand states
4873         Also, adjust commentary to better match new code.
4874         Some of these glitches predate the recent change.
4875         * lib/dfa.c (dfaanalyze): Clear trcount here, so that it counts
4876         only non-initial states.
4877         (dfastate): Rename locals to better match new roles.
4878         Move them into nested scopes if this is easy.
4879         Omit unnecessary calls to zeroset.
4880         Simplify test for whether to throw in the positions of state 0.
4881         Omit C99-ism (decl after statement) since Gawk still wants C89.
4882         (build_state): Omit unnecessary test and assignment.
4883         Fix some confusion that counted transition tables inaccurately
4884         and could cause a memory leak.
4885         (dfaexec_main): Redo to make it clearer to the compiler that
4886         -1 and -2 are the only negative state numbers here.
4888 2016-11-25  Norihiro Tanaka  <noritnk@kcn.ne.jp>
4890         dfa: addition of new state on demand
4891         * src/dfa.c (dfastate): Add argument UC, the current input character.
4892         Fill only a group including the character in transition table.
4893         (realloc_trans_if_necessary): Add the dummy state which means that a
4894         transition table is assigned but the next state is not assigned.
4895         (build_state): Return the next state.  All callers updated.
4896         (transit_state_singlebyte): If we get the dummy state,
4897         fill the transition table.
4898         (dfaexec_main): Handle the dummy state.
4899         (free_mbdata, dfafree): Consider the dummy state.
4901 2016-11-24  Daiki Ueno  <ueno@gnu.org>
4903         srclist: sync with released gettext
4904         * config/srclist.txt: Set "release" option to the files under
4905         $GETTEXT.
4907 2016-11-24  Daiki Ueno  <ueno@gnu.org>
4909         srclist: add "release" option
4910         * config/srclist.txt: Change the format so that the first column
4911         of each line points to the top-level directory of the source
4912         archive.
4913         * config/srclist-update: Accept "release" option that checks files
4914         from the most recently tagged revision in the source archive.
4916 2016-11-21  Bruno Haible  <bruno@clisp.org>
4918         snippet/c++defs: Simplify _GL_CXXALIAS_* macros.
4919         * build-aux/snippet/c++defs.h [__cplusplus && GNULIB_NAMESPACE]
4920         (_GL_CXXALIAS_RPL_1, _GL_CXXALIAS_RPL_CAST_1,
4921         _GL_CXXALIAS_SYS, _GL_CXXALIAS_SYS_CAST, _GL_CXXALIAS_SYS_CAST2):
4922         Inline and remove member function 'rpl ()' of the wrapper struct.
4924 2016-11-20  Paul Eggert  <eggert@cs.ucla.edu>
4926         dfa: fix logic typo
4927         Problem reported by Stephane Chazelas (Bug#24973).
4928         * lib/dfa.c (using_simple_locale): Fix typo that caused some
4929         non-simple locales like fr_FR to be treated as simple.
4931 2016-11-20  Jim Meyering  <meyering@fb.com>
4933         fix test driver leaks: exclude, malloc, realloc
4934         * tests/test-exclude.c (main): Fix trivial leak.
4935         * tests/test-malloc-gnu.c (main): Likewise.
4936         * tests/test-realloc-gnu.c (main): Likewise.
4937         With these changes, grep's tests are now leak free.
4938         I.e., running them with ASAN elicits no failure:
4939           make CFLAGS='-O0 -ggdb3' AM_CFLAGS=-fsanitize=address \
4940             AM_LDFLAGS='-fsanitize=address -static-libasan' check
4942 2016-11-11  Bruno Haible  <bruno@clisp.org>
4944         libunistring: Relicense under dual "LGPLv3+ or GPLv2" license.
4945         * modules/libunistring: (License): Change from LGPL to
4946         "LGPLv3+ or GPLv2".
4947         * modules/libunistring-optional: Likewise.
4948         * modules/unicase/*: Likewise.
4949         * modules/uniconv/*: Likewise.
4950         * modules/unictype/*: Likewise.
4951         * modules/unigbrk/*: Likewise.
4952         * modules/unilbrk/*: Likewise.
4953         * modules/uniname/*: Likewise.
4954         * modules/uninorm/*: Likewise.
4955         * modules/unistdio/*: Likewise.
4956         * modules/unistr/*: Likewise.
4957         * modules/uniwbrk/*: Likewise.
4958         * modules/uniwidth/*: Likewise.
4960 2016-11-12  Bruno Haible  <bruno@clisp.org>
4962         Relicense some modules under LGPLv2+.
4963         Paul Eggert's approval is in
4964         http://lists.gnu.org/archive/html/bug-gnulib/2016-11/msg00037.html.
4965         Eric Blake's approval is in
4966         http://lists.gnu.org/archive/html/bug-gnulib/2016-11/msg00042.html.
4967         Ludovic Courtès's approval is in
4968         http://lists.gnu.org/archive/html/bug-gnulib/2016-11/msg00038.html.
4969         * modules/isnand-nolibm (License): Change to LGPLv2+.
4970         * modules/isnanf-nolibm (License): Likewise.
4971         * modules/isnanl-nolibm (License): Likewise.
4973 2016-11-19  Bruno Haible  <bruno@clisp.org>
4975         Relicense some modules under LGPLv2+.
4976         lib/float+.h is already under LGPLv2+ since 2007-07-13, per
4977         modules/vasnprintf.
4978         Paolo Bonzini's approval for lib/frexp.c and lib/frexpl.c is in
4979         http://lists.gnu.org/archive/html/bug-gnulib/2016-11/msg00074.html.
4980         All other significant changes to the files in lib/ of these modules
4981         are from me.
4982         * modules/memcmp2 (License): Change to LGPLv2+.
4983         * modules/amemxfrm (License): Likewise.
4984         * modules/fpieee (License): Likewise.
4985         * modules/fpucw (License): Likewise.
4986         * modules/frexp-nolibm (License): Likewise.
4987         * modules/frexpl-nolibm (License): Likewise.
4988         * modules/printf-frexp (License): Likewise.
4989         * modules/printf-frexpl (License): Likewise.
4990         * modules/printf-safe (License): Likewise.
4991         * modules/signbit (License): Likewise.
4993 2016-11-17  Bruno Haible  <bruno@clisp.org>
4995         Enable Unicode decoder safety unconditionally.
4996         * lib/unistr.in.h (u32_mbtouc_unsafe): Assume CONFIG_UNICODE_SAFETY.
4997         * lib/unistr/u8-mblen.c (u8_mblen): Likewise.
4998         * lib/unistr/u8-mbtouc-unsafe.c (u8_mbtouc_unsafe): Likewise.
4999         * lib/unistr/u8-mbtouc-unsafe-aux.c (u8_mbtouc_unsafe_aux): Likewise.
5000         * lib/unistr/u8-prev.c (u8_prev): Likewise.
5001         * lib/unistr/u8-strmblen.c (u8_strmblen): Likewise.
5002         * lib/unistr/u8-strmbtouc.c (u8_strmbtouc): Likewise.
5003         * lib/unistr/u16-mblen.c (u16_mblen): Likewise.
5004         * lib/unistr/u16-mbtouc-unsafe.c (u16_mbtouc_unsafe): Likewise.
5005         * lib/unistr/u16-mbtouc-unsafe-aux.c (u16_mbtouc_unsafe_aux): Likewise.
5006         * lib/unistr/u16-prev.c (u16_prev): Likewise.
5007         * lib/unistr/u16-strmblen.c (u16_strmblen): Likewise.
5008         * lib/unistr/u16-strmbtouc.c (u16_strmbtouc): Likewise.
5009         * lib/unistr/u32-mblen.c (u32_mblen): Likewise.
5010         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Likewise.
5011         * lib/unistr/u32-prev.c (u32_prev): Likewise.
5012         * lib/unistr/u32-next.c (u32_next): Likewise.
5013         * lib/unistr/u32-strmblen.c (u32_strmblen): Likewise.
5014         * lib/unistr/u32-strmbtouc.c (u32_strmbtouc): Likewise.
5015         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
5016         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
5017         * tests/unistr/test-u16-prev.c (check_invalid): Enable the
5018         CONFIG_UNICODE_SAFETY tests unconditionally.
5019         * tests/unistr/test-u32-mblen.c (main): Likewise.
5020         * tests/unistr/test-u32-mbtouc.h (test_function): Likewise.
5021         * tests/unistr/test-u32-prev.c (check_invalid): Likewise.
5022         * tests/unistr/test-u32-next.c (main): Likewise.
5023         * tests/unistr/test-u32-strmblen.c (main): Likewise.
5024         * tests/unistr/test-u32-strmbtouc.c (main): Likewise.
5025         * tests/unistr/test-u32-mbtouc.c (FULL_SAFETY): Remove macro.
5026         * lib/unistr/u8-check.c (u8_check): Remove old dead code.
5027         * lib/unistr/u8-mbtouc.c (u8_mbtouc): Likewise.
5028         * lib/unistr/u8-mbtouc-aux.c (u8_mbtouc_aux): Likewise.
5029         * lib/unistr/u8-mbtoucr.c (u8_mbtoucr): Likewise.
5030         * lib/unistr/u8-uctomb.c (u8_uctomb): Likewise.
5031         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Likewise.
5032         * lib/unistr/u16-check.c (u16_check): Update comment.
5033         * NEWS: Mention the changes that callers should be aware of.
5035 2016-11-19  Bruno Haible  <bruno@clisp.org>
5037         relocatable-prog-wrapper: Fix breakage on Cygwin.
5038         * modules/relocatable-prog-wrapper (Files): Add lib/stat.c, lib/lstat.c.
5039         (Depends-on): Remove intprops.
5040         * lib/relocwrapper.c: Update dependency tree.
5041         (strerror): Undefine.
5042         * build-aux/install-reloc (func_create_wrapper): Do not compile
5043         strerror.c and strerror-override.c. Erase stat.o and lstat.o.
5045 2016-11-19  Bruno Haible  <bruno@clisp.org>
5047         strerror: Make it compile in C++ mode.
5048         * lib/strerror.c (strerror): Ignore the return value of memcpy().
5050 2016-11-15  Pedro Alves  <palves@redhat.com>
5052         sys_time: add gnulib::timeval for C++
5053         * lib/sys_time.in.h [__cplusplus && defined GNULIB_NAMESPACE]:
5054         Define "timeval" in the GNULIB_NAMESPACE namespace, and #undef any
5055         timeval macro.
5057 2016-11-14  Pedro Alves  <palves@redhat.com>
5059         snippet/c++defs: fix real-floating arg functions in C++ mode
5060         Also, define isfinite, isinf, isnan, signbit in the gnulib
5061         namespace instead of in the global namespace.
5062         * build-aux/snippet/c++defs.h (_GL_BEGIN_NAMESPACE)
5063         (_GL_END_NAMESPACE): New.
5064         * lib/math.in.h (_GL_MATH_CXX_REAL_FLOATING_DECL_2): Use them.
5065         (isfinite, isinf, isnan, signbit) [__cplusplus &&
5066         GNULIB_NAMESPACE]: Define them in the GNULIB_NAMESPACE namespace
5067         instead of in the global namespace.
5068         * tests/test-math-c++.cc: Check that the isfinite, isinf, isnan,
5069         signbit overloads exist in the GNULIB_NAMESPACE namespace, instead
5070         of in the global namespace.
5072 2016-11-13  Jim Meyering  <meyering@fb.com>
5074         strftime: don't use __THROW
5075         Each use of __THROW would provoke this from gcc-7-to-be:
5077           lib/strftime.c:371:1: warning: '__leaf__' attribute has no effect \
5078             on unit local functions [-Wattributes]
5079           static int iso_week_days (int, int) __THROW;
5080           ^~~~~~
5081         * lib/strftime.c (__THROW): Don't define.
5082         Remove each use of __THROW.
5083         * lib/strftime.c (memcpy_lowcase, memcpy_uppcase): Remove __THROW.
5084         (tm_diff, iso_week_days, __strftime_internal): Likewise.
5086 2016-11-14  Paul Eggert  <eggert@union>
5088         obstack: port to gcc -fcheck-pointer-bounds
5089         Problem found by 'make check' failure on bleeding-edge coreutils
5090         on an MPX-enabled CPU (Intel Core i3-7100U) running GCC (Ubuntu
5091         6.2.0-5ubuntu12), configured via "./configure
5092         --enable-gcc-warnings CFLAGS='-mmpx -fcheck-pointer-bounds -g3
5093         -O2' LDFLAGS='-static-libmpx -static-libmpxwrappers'".
5094         * lib/obstack.h (__FLEXIBLE_ARRAY_MEMBER):
5095         New macro, copied from fts_.h.
5096         (struct _obstack_chunk.contents): Use it.
5098 2016-11-14  Eric Blake  <eblake@redhat.com>
5100         strerror_r-posix: Another fix, for HAVE_DECL_STRERROR_R on mingw.
5101         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R, gl_FUNC_STRERROR_R_WORKS):
5102         Avoid _ONCE variants, which may supply a conflicting AC_DEFINE().
5104 2016-11-14  Pádraig Brady  <P@draigBrady.com>
5106         strptime: fix compile error in recent change
5107         * lib/strptime.c (__strptime_internal): Fix ported code.
5109 2016-11-11  Bruno Haible  <bruno@clisp.org>
5111         gnulib-tool: Support for the dual "LGPLv3+ or GPLv2" license.
5112         * gnulib-tool (--lgpl): Accept value 3orGPLv2.
5113         (func_import): Extend determination of license_incompatibilities.
5114         (func_create_testdir): Extend table of license compatibility. Handle
5115         also the licenses GPLv3+, GPL, LGPLv3+.
5117 2016-11-12  Paul Eggert  <eggert@cs.ucla.edu>
5119         strftime: tune %q
5120         * lib/strftime.c (__strftime_internal): Assume tp->tm_mon is in range.
5122         Merge strftime.c changes from glibc
5123         This incorporates:
5124         2007-10-16 [BZ #5184] Add tzset_called argument
5125         2008-06-13 [BZ #6612] pass reference to tzset_called around
5126         2009-10-30 Implement Burmese language locale for Myanmar
5127         2010-01-09 Add support for XPG7 testing
5128         2015-09-26 [BZ #18985] out of range data to strftime() causes a segfault
5129         2015-10-20 Convert miscellaneous function definitions to prototype style
5130         * lib/strftime.c: Copy glibc license, since gnulib-tool rewrites
5131         it anyway and this lessens the difference between gnulib and glibc.
5132         (USE_IN_EXTENDED_LOCALE_MODEL) [_LIBC]: Define.
5133         (__THROW): Define if standard headers do not.
5134         (LOCALE_PARAM): Rename from LOCALE_PARAM_PROTO.  All uses changed.
5135         (memcpy_locase, memcpy_uppcase, tm_diff, __strftime_internal):
5136         Declare with __THROW.
5137         (__strftime_internal): Rename from strftime_case_. Add arg for
5138         whether tzset is called.  All uses changed.  Call tzset at most
5139         once.  Allow %OC, for Burmese.
5140         (a_wkday, f_wkday, a_month, f_month) [_NL_CURRENT]:
5141         Don't assume values are in range.
5143 2016-11-12  Eric Blake  <eblake@redhat.com>
5145         strerror_r-posix: Fix override of AC_FUNC_STRERROR_R
5146         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): New override.
5147         (gl_FUNC_STRERROR_R): Don't reuse AC_DEFINE() with a potentially
5148         different value.
5150 2006-11-12  Pedro Alves  <palves@redhat.com>
5152         Fix gnulib C++ namespace support and std::frexp
5153         * lib/math.in.h (frexp): Use _GL_CXXALIASWARN1 instead of
5154         _GL_CXXALIASWARN.
5156 2006-11-12  Pedro Alves  <palves@redhat.com>
5158         GNULIB_NAMESPACE::func need not pull in rpl_func
5159         * build-aux/snippet/c++defs.h [__cplusplus && GNULIB_NAMESPACE]
5160         (_GL_CXXALIAS_RPL_1, _GL_CXXALIAS_RPL_CAST_1, _GL_CXXALIAS_SYS)
5161         (_GL_CXXALIAS_SYS_CAST, _GL_CXXALIAS_SYS_CAST2): Define a wrapper
5162         struct instead of a function pointer.
5164 2016-11-09  Frediano Ziglio  <fziglio@redhat.com>
5166         manywarnings: fix -Wno-missing-field-initializers detection
5167         * m4/manywarnings.m4: Fix -Wno-missing-field-initializers detection
5168         to be independent of -Wunused-variable.  I.E. ensure the latter
5169         warning doesn't occur so that detection of the former is accurate.
5171 2016-11-05  Pádraig Brady  <pbrady@fb.com>
5173         strftime,strptime: support %q to represent the quarter
5174         * lib/strftime.c (strftime_case_): Add %q case.
5175         * lib/strptime.c (__strptime_internal): Likewise.
5176         * tests/test-strftime.c (quarter_test): A new test case.
5178 2016-11-03  Eric Blake  <eblake@redhat.com>
5180         bootstrap: Fix get_version() for AIX 5.3
5181         * build-aux/bootstrap (get_version): Factor out sed script, since
5182         indented comments choke AIX 5.3 sed.
5183         Reported-by: Michael Felt <aixtools@gmail.com>
5185 2016-11-03  Paul Eggert  <eggert@cs.ucla.edu>
5187         intprops: port to older XL C
5188         Problem reported by Alexander Samoilov in:
5189         http://lists.gnu.org/archive/html/bug-gnulib/2016-10/msg00166.html
5190         http://savannah.nongnu.org/bugs/?49448
5191         * lib/intprops.h (_GL_HAVE___TYPEOF__) [__IBM__TYPEOF__]:
5192         Define to 1 only for XL C 12.1 or later, since this bug
5193         occurs in XL C for AIX 6.0 but not in 12.1.
5195 2016-11-02  Pádraig Brady  <P@draigBrady.com>
5197         backupfile: initialize default suffix within the implementation
5198         * lib/backupfile.c (find_backup_file_name): Initialize the
5199         global variable here, to simplify usage, and to only call
5200         getenv() when needed.
5202 2016-11-01  Paul Eggert  <eggert@cs.ucla.edu>
5204         futimens: remove FIXME for old Linux kernels
5205         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Belatedy do a "simplify
5206         this in 2012" FIXME, like that for utimensat.
5208         utimensat: remove FIXME for old Linux kernels
5209         * lib/utimensat.c (rpl_utimensat): Update FIXME comment.
5210         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Belatedy do a "simplify
5211         this in 2012" FIXME, by assuming the file system bug is absent
5212         unless demonstrated to be present.  We no longer need to worry
5213         about Linux kernel 2.6.32 when building with newer kernels.
5215 2016-10-16  Bruno Haible  <bruno@clisp.org>
5217         qsort_r: Fix macrology for platforms that lack the function.
5218         * m4/stdlib_h.m4 (gl_STDLIB_H): Check for qsort_r.
5219         (gl_STDLIB_H_DEFAULTS): Initialize HAVE_QSORT_R.
5220         * modules/stdlib (Makefile.am): Substitute HAVE_QSORT_R.
5221         * lib/stdlib.in.h (qsort_r): Provide declaration if the function does
5222         not exist.
5223         * m4/qsort_r.m4 (gl_FUNC_QSORT_R): Use AC_CHECK_FUNCS to test whether
5224         the function exists.
5225         * modules/qsort_r: Add comments.
5227 2016-10-26  Paul Eggert  <eggert@cs.ucla.edu>
5229         sys_types: fix Texinfo typos
5230         * doc/glibc-functions/gnu_dev_major.texi:
5231         * doc/glibc-functions/gnu_dev_makedev.texi:
5232         * doc/glibc-functions/gnu_dev_minor.texi: Fix typos.
5234 2016-10-26  John David Anglin  <dave.anglin@bell.net>
5236         getprogname: port to HP-UX
5237         See Bug#24805.
5238         * lib/getprogname.c (getprogname) [__hpux]: Port.
5239         * tests/test-getprogname.c (STREQ) [__hpux]:
5240         Special-case for HP-UX limitations on program name length.
5242 2016-10-20  Bruno Haible  <bruno@clisp.org>
5244         Update doc about target platforms.
5245         * doc/gnulib-intro.texi (Target Platforms): Update list.
5247 2016-10-15  Bruno Haible  <bruno@clisp.org>
5249         opendir, readdir, closedir: Relicense under LGPLv2+.
5250         * modules/opendir (License): Change to LGPLv2+.
5251         * modules/readdir (License): Likewise.
5252         * modules/closedir (License): Likewise.
5254 2016-10-16  Bruno Haible  <bruno@clisp.org>
5256         Fix conflict between strerror_r-posix module and AC_FUNC_STRERROR_R.
5257         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Override the values set by the
5258         AC_FUNC_STRERROR_R macro. Define HAVE_DECL_STRERROR_R_ORIG.
5259         * lib/strerror_r.c: Use HAVE_DECL_STRERROR_R_ORIG instead of
5260         HAVE_DECL_STRERROR_R.
5262 2016-10-16  Bruno Haible  <bruno@clisp.org>
5264         Make the 'argp' module work without the 'error' module.
5265         * m4/argp.m4 (gl_ARGP): Require AC_FUNC_STRERROR_R.
5267 2016-10-25  Paul Eggert  <eggert@cs.ucla.edu>
5269         diffseq: restore TOO_EXPENSIVE heuristic
5270         * lib/diffseq.h: Problem with diffutils reported by Andreas Schwab
5271         (Bug#24715).  The simplest solution is to restore the
5272         TOO_EXPENSIVE heuristic that I added to GNU diff in 1993, while
5273         using a higher threshold to avoid Bug#16848 on smaller files.
5274         * lib/diffseq.h (struct context): Restore member too_expensive.
5275         (struct partition): Restore members lo_minimal, hi_minimal.
5276         (diag, compareseq): Restore arg find_minimal.  All uses changed.
5277         (diag): Restore the TOO_EXPENSIVE heuristic that I added back in
5278         1993 to make 'diff' run faster (but not as well) on large inputs,
5279         but use a threshold of 4096 instead of the old 256.
5280         * lib/fstrcmp.c (strcmp_bounded):
5281         * lib/git-merge-changelog.c (compute_differences):
5282         Adjust to diffseq.h changes.
5284 2016-10-22  Bruno Haible  <bruno@clisp.org>
5286         iconv: Avoid compilation error when bootstrapping GNU libiconv.
5287         * m4/iconv.m4 (AM_ICONV): When the system does not have an iconv()
5288         declaration yet, define ICONV_CONST to empty.
5290 2016-10-15  Bruno Haible  <bruno@clisp.org>
5292         Avoid gnulib-tool warnings about the dependencies of 'parse-datetime'.
5293         * gnulib-tool (func_get_license): Special-case the 'parse-datetime'
5294         module.
5296 2016-10-16  Bruno Haible  <bruno@clisp.org>
5298         system-quote tests: Avoid compiler warning on AIX.
5299         * tests/test-system-quote-child.c (fopen): Redefine like the system's
5300         <stdio.h> does.
5302 2016-10-16  Bruno Haible  <bruno@clisp.org>
5304         Fix some "gcc -Wall" warnings.
5305         * tests/test-ffsl.c (main): Use variable x, not i.
5306         * tests/test-posix_spawn3.c (parent_main): Consider the return value of
5307         freopen.
5308         * tests/test-sethostname1.c (main): Explicitly ignore the return value
5309         of sethostname.
5311 2016-10-16  Bruno Haible  <bruno@clisp.org>
5313         gnulib-tool: Make --create-testdir on all modules work again.
5314         * gnulib-tool (func_create_testdir): Don't include the
5315         non-recursive-gnulib-prefix-hack module.
5317 2016-10-21  Daiki Ueno  <ueno@gnu.org>
5319         libunistring: change the maintainer to 'all'
5320         * modules/gen-uni-tables, modules/libunistring:
5321         * modules/ucs4-utf16, modules/ucs4-utf8, modules/unicodeio:
5322         * modules/unitypes, modules/utf16-ucs4, modules/utf16-ucs4-unsafe:
5323         * modules/utf8-ucs4, modules/utf8-ucs4-unsafe:
5324         * modules/unicase/*, modules/uniconv/*, modules/unictype/*:
5325         * modules/unilbrk/*, modules/uniname/*, modules/uninorm/*:
5326         * modules/unistdio/*, modules/unistr/*, modules/uniwbrk/*:
5327         * modules/uniwidth/*: Change the maintainer to 'all'.
5329 2016-10-16  Bruno Haible  <bruno@clisp.org>
5331         Simplify "configure: checking ..." messages.
5332         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use AC_MSG_CHECKING instead of
5333         AC_MSG_NOTICE.
5334         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Likewise.
5336 2016-10-20  Paul Eggert  <eggert@cs.ucla.edu>
5338         quotearg-tests: pacify gcc -Wall
5339         Problem reported by Bruno Haible in:
5340         http://lists.gnu.org/archive/html/bug-gnulib/2016-10/msg00066.html
5341         * tests/test-quotearg-simple.c (use_quote_double_quotes): Move here ...
5342         * tests/test-quotearg.h: ... from here.
5344 2016-10-20  Pádraig Brady  <P@draigBrady.com>
5346         canonicalize-lgpl: fix for missing SIZE_MAX on older systems
5347         * lib/canonicalize-lgpl.c [SIZE_MAX]: Define if needed.
5348         Needed on Centos <= 4.
5350 2016-10-20  Jim Meyering  <meyering@fb.com>
5352         printf.m4: fix a bug in detecting printf %j support
5353         * m4/printf.m4 (gl_PRINTF_SIZES_C99): Fail any system for which
5354         uintmax_t is defined in neither stdint.h nor inttypes.h.
5355         Before, this macro might have mistakenly set
5356         gl_cv_func_printf_sizes_c99=yes on such a system.
5357         Spotted by Zev Weiss.
5359 2016-10-19  Paul Eggert  <eggert@cs.ucla.edu>
5361         sched: substitute HAVE_SYS_CDEFS_H too
5362         Problem reported by Tom G. Christensen in:
5363         http://lists.gnu.org/archive/html/bug-gnulib/2016-10/msg00084.html
5364         * m4/sched_h.m4 (gl_SCHED_H): Set and substitute HAVE_SYS_CDEFS_H.
5365         * modules/sched (Depends-on): Substitute HAVE_SYS_CDEFS_H.
5367 2016-10-19  Pádraig Brady  <P@draigBrady.com>
5369         quotearg: never write beyond the returned length
5370         * lib/quotearg.c (quotearg_buffer_restyled): Switch to a read-only
5371         scan of the string when we initially encounter a single quote when
5372         shell quoting, so that if we then switch to a more concise quoting method
5373         we will not have written beyond that returned length.
5374         This is significant for sh-quote, which has separate routines
5375         to determine the length and do the actual quoting.
5376         * tests/test-quotearg.h: Reinstate the buffer bounds checking
5377         now that we never write more than the returned length.
5379 2016-10-18  Bruno Haible  <bruno@clisp.org>
5381         getprogname tests: Avoid failure in packages that use libtool.
5382         * tests/test-getprogname.c (main): Strip "lt-" prefix.
5383         Based on a patch by Jim Meyering.
5385 2016-10-16  Bruno Haible  <bruno@clisp.org>
5387         getprogname: Fix test failure on Cygwin. Comments.
5388         * lib/getprogname.h: Add comments.
5389         * lib/getprogname.c: Add comments. Fix #elif indentation.
5390         * tests/test-getprogname.c (main): On Cygwin, expect a result without
5391         ".exe" suffix.
5393 2016-10-16  Bruno Haible  <bruno@clisp.org>
5395         Make sure the libunistring detection rejects older versions with a
5396         known bug.
5397         * modules/unistr/u8-strtok (configure.ac): Bump required version.
5398         * modules/unistr/u16-strtok (configure.ac): Likewise.
5399         * modules/unistr/u32-strtok (configure.ac): Likewise.
5401 2016-10-18  Bruno Haible  <bruno@clisp.org>
5403         sh-quote, system-quote: revert regression of unit test.
5404         * tests/test-sh-quote.c (check_one): Do detect buffer overruns.
5405         * tests/test-system-quote-main.c (check_one): Likewise.
5407 2016-10-16  Pádraig Brady  <P@draigBrady.com>
5409         quotearg: fix stale tests
5410         * tests/test-quotearg.c [locale_results]: Add the missing str7
5411         entries to the expected results.
5412         * tests/test-system-quote-main.c (check_one): Don't enforce that we
5413         don't write beyond the returned length, since that's no longer the
5414         case if we switch to a more concise quoting style.
5415         * tests/test-sh-quote.c (check_one): Likewise.
5416         (main): Adjust for the new more concise quoting style.
5417         Reported by Bruno Haible.
5419 2016-10-16  Jim Meyering  <meyering@fb.com>
5421         non-recursive-gnulib-prefix-hack: fix inconsequential typo
5422         * m4/non-recursive-gnulib-prefix-hack.m4: Change a hard-coded "lib"
5423         to "$1".  This macro is always invoked with $1 == lib.
5424         Spotted by Bruno Haible
5426 2016-10-16  Bruno Haible  <bruno@clisp.org>
5428         Fix a test crash.
5429         * tests/test-duplocale.c (main): Skip the test if the 'newlocale' call
5430         fails.
5432 2016-10-16  Pádraig Brady  <P@draigBrady.com>
5434         test-limits-h: suppress -Woverlength-strings
5435         * tests/test-limits-h.c [__GNUC__]: Ignore -Woverlength-strings.
5437 2016-10-15  Bruno Haible  <bruno@clisp.org>
5439         gettime, timespec, utimens: Relicense under LGPL.
5440         * modules/gettime (License): Change to LGPL.
5441         * modules/timespec (License): Likewise.
5442         * modules/utimens (License): Likewise.
5444 2016-10-14  Bruno Haible  <bruno@clisp.org>
5445             Pádraig Brady  <P@draigBrady.com>
5447         canonicalize-lgpl: Support the case path_max > INT_MAX.
5448         * lib/canonicalize-lgpl.c (__realpath): Declare n as ssize_t, not int.
5449         Fix overflow check, for platforms where 'size_t' is larger than 'long'.
5451 2016-10-13  Jim Meyering  <meyering@fb.com>
5453         getprogname: IBM z/OS: avoid NULL-dereference
5454         * lib/getprogname.c (getprogname) [__MVS__]: Don't dereference NULL
5455         upon strdup failure.
5457 2016-10-12  Jim Meyering  <meyering@fb.com>
5459         test-stdint: use _GL_VERIFY rather than "verify" for some tests
5460         * tests/test-stdint.c (verify_width): Implement with _GL_VERIFY
5461         and an abbreviated diagnostic rather than verify with the full one,
5462         because the full-length strings would evoke warnings from gcc with
5463         -Woverlength-strings.
5465 2016-10-13  Paul Eggert  <eggert@cs.ucla.edu>
5467         stdint: port SIZE_MAX to glibc s390
5468         Problem reported by Eric Blake in:
5469         http://lists.gnu.org/archive/html/bug-gnulib/2016-10/msg00031.html
5470         * doc/posix-headers/stdint.texi (stdint.h): Document the fix.
5471         * m4/stdint.m4 (gl_STDINT_H): Check that SIZE_MAX has the
5472         correct type, if possible.
5474 2016-10-13  Daniel Richard G.  <skunk@iSKUNK.ORG>
5476         getprogname: port to IBM z/OS
5477         * lib/getprogname.c (getprogname): Use w_getpsent() to get the name.
5479 2016-10-11  Jim Meyering  <meyering@fb.com>
5481         maint: remove stray space after "." in AC_DEFINE comment.
5482         * m4/st_dm_mode.m4 (AC_STRUCT_ST_DM_MODE): Remove space-after-".".
5483         * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
5485 2016-10-05  Jim Meyering  <meyering@fb.com>
5487         long-options: avoid new GCC 7 warning from -Wimplicit-fallthrough
5488         * lib/long-options.c (parse_long_options): Add a break statement
5489         to avoid this new warning/failure:
5490         $ CFLAGS='-O -Werror=implicit-fallthrough' ./gnulib-tool \
5491           --create-testdir --dir=/t/x --with-tests --test long-options
5492         ../../gllib/long-options.c: In function 'parse_long_options':
5493         ../../gllib/long-options.c:66:12: error: this statement may \
5494           fall through [-Werror=implicit-fallthrough]
5495                    (*usage_func) (EXIT_SUCCESS);
5496                    ~^~~~~~~~~~~~~~~~~~~~~~~~~~~
5498 2016-10-05  Jim Meyering  <meyering@fb.com>
5500         utimecmp: avoid new GCC 7 warning from -Wbool-operation
5501         Testing this module would fail when using GCC 7 like this:
5502         $ CFLAGS='-O -Werror=bool-operation' ./gnulib-tool --create-testdir \
5503           --dir=/tmp/x --with-tests --test utimecmp
5504         ../../gllib/utimecmp.c: In function ‘utimecmp’:
5505         ../../gllib/utimecmp.c:291:36: error: ‘~’ on a boolean expression \
5506           [-Werror=bool-operation]
5507                          time_t s = src_s & ~ (res == 2 * BILLION);
5508                                             ^
5509         ../../gllib/utimecmp.c:370:16: error: ‘~’ on a boolean expression \
5510           [-Werror=bool-operation]
5511                src_s &= ~ (res == 2 * BILLION);
5512                         ^
5513         * lib/utimecmp.c (utimecmp): Do not apply "~" to a boolean.
5514         Instead, make it explicit that we intend to apply it to 0 or 1.
5516 2016-10-10  Norihiro Tanaka  <noritnk@kcn.ne.jp>
5518         dfa: save memory for states
5519         * src/dfa (dfaexec_main): Beginning of dfa execution, release caches of
5520         states if dfa has a lot of caches.
5522 2016-10-10  Eli Zaretskii  <eliz@gnu.org>
5524         wchar, wctype-h: fix for MinGW 3.22.2
5525         * lib/wchar.in.h [__MINGW32__]: Add one more condition for
5526         special invocation, to fix issues with MinGW 3.22.2 wchar.h
5527         when included from <string.h>.
5528         * lib/wctype.in.h [__MINGW32__]: Add special invocation
5529         convention for MinGW 3.22.2, to solve issues with their
5530         wctype.h when included from <ctype.h>.
5532 2016-10-05  Jim Meyering  <meyering@fb.com>
5534         long-options: avoid new GCC 7 warning from -Wimplicit-fallthrough
5535         * lib/long-options.c (parse_long_options): Add a break statement
5536         to avoid this new warning/failure:
5537         $ CFLAGS='-O -Werror=implicit-fallthrough' ./gnulib-tool \
5538           --create-testdir --dir=/t/x --with-tests --test long-options
5539         ../../gllib/long-options.c: In function ‘parse_long_options’:
5540         ../../gllib/long-options.c:66:12: error: this statement may \
5541           fall through [-Werror=implicit-fallthrough]
5542                    (*usage_func) (EXIT_SUCCESS);
5543                    ~^~~~~~~~~~~~~~~~~~~~~~~~~~~
5545         utimecmp: avoid new GCC 7 warning from -Wbool-operation
5546         Testing this module would fail when using GCC 7 like this:
5547         $ CFLAGS='-O -Werror=bool-operation' ./gnulib-tool --create-testdir \
5548           --dir=/tmp/x --with-tests --test utimecmp
5549         ../../gllib/utimecmp.c: In function ‘utimecmp’:
5550         ../../gllib/utimecmp.c:291:36: error: ‘~’ on a boolean expression \
5551           [-Werror=bool-operation]
5552                          time_t s = src_s & ~ (res == 2 * BILLION);
5553                                             ^
5554         ../../gllib/utimecmp.c:370:16: error: ‘~’ on a boolean expression \
5555           [-Werror=bool-operation]
5556                src_s &= ~ (res == 2 * BILLION);
5557                         ^
5558         * lib/utimecmp.c (utimecmp): Do not apply "~" to a boolean.
5559         Instead, make it explicit that we intend to apply it to 0 or 1.
5561 2016-10-03  Pádraig Brady  <P@draigBrady.com>
5563         quotearg: minimize shell quoting using double quotes
5564         * lib/quotearg.c (quotearg_buffer_restyled): If an ASCII single
5565         quote in encountered then use double quotes (c style quoting)
5566         when possible, as it simplifies the quoting.
5567         * tests/test-quotearg-simple.c: Add test cases.
5568         * tests/test-quotearg.h (use_quotearg_buffer): Adjust to account
5569         for the fact we now may write beyond the returned length.
5571 2016-10-02  Jim Meyering  <meyering@fb.com>
5573         vasnprintf.c: avoid spurious warning from GCC 7
5574         The presence of cpp directives renders this "FALLTHROUGH" comment
5575         ineffective, so does not suppress the -Wimplicit-fallthrough warning
5576         from GCC 7 built from git on 2016-10-02.
5577         * lib/vasnprintf.c (VASNPRINTF): Move comment down past two cpp
5578         directives, so that it takes effect once again.  This is clearly
5579         not a proper change, and I will revert it once this bug is fixed:
5580         https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77817
5582 2016-10-01  Jim Meyering  <meyering@fb.com>
5584         getprogname: correct the test for a __progname variable
5585         * m4/getprogname.m4 (gl_FUNC_GETPROGNAME): Use AC_CACHE_CHECK
5586         and AC_LINK_IFELSE to check for a global __progname.  If found,
5587         define HAVE_VAR___PROGNAME.
5588         * lib/getprogname.c (getprogname): Reflect the new name of the
5589         feature- checked preprocessor symbol:
5590         s/HAVE_DECL___PROGNAME/HAVE_VAR___PROGNAME/
5592 2016-09-28  Jim Meyering  <meyering@fb.com>
5594         u8-uctomb-aux.c: build: placate GCC 7's new -Wimplicit-fallthrough
5595         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Mark each end of
5596         fall-through case with a /* fallthrough */ comment.
5598         dfa: build: avoid warning from GCC 7's new -Wimplicit-fallthrough
5599         * lib/dfa.c (dfassbuild): Mark the end of this case with a
5600         /* fallthrough */ comment.
5602         getprogname: avoid __progname vs program_invocation_short_name pitfall
5603         I.e., don't let the OpenBSD 5.1 fix induce failure when using newer
5604         glibc.  Would have caused failure with Fedora 25's glibc-2.24-3, but
5605         not with Fedora 24's glibc-2.23.1-10.
5606         * lib/getprogname.c (__progname): Move this declaration down...
5607         (getprogname): ... into the #elif block where used, and make it
5608         explicitly "extern".
5610         getprogname: port to OpenBSD 5.1
5611         * lib/getprogname.c (__progname) [HAVE_DECL___PROGNAME]: Declare.
5612         (getprogname) [HAVE_DECL___PROGNAME]: Return __progname or "?".
5613         * modules/getprogname (configure.ac): Move most of this code...
5614         * m4/getprogname.m4 (gl_FUNC_GETPROGNAME): ... to this function,
5615         increment serial number, and add a test for __progname.
5616         https://bugs.gnu.org/24562
5617         Reported by Nelson H. F. Beebe.
5619 2016-09-24  Paul Eggert  <eggert@cs.ucla.edu>
5621         sched: port to GCC 6.2.1 on macOS Sierra
5622         Problem reported by Denis Davydov in:
5623         http://lists.gnu.org/archive/html/bug-gnulib/2016-09/msg00056.html
5624         * lib/sched.in.h [HAVE_SYS_CDEFS_H]:
5625         Include <sys/cdefs.h> before <sched.h>.
5626         * m4/nproc.m4 (gl_PREREQ_NPROC): Include errno.h before sched.h,
5627         so that we needn’t worry about the sched.h include bug here.
5628         * m4/sched_h.m4 (gl_SCHED_H): Check for sys/cdefs.h,
5629         and include it before <sched.h> if it exists, when
5630         checking for <sched.h>.
5632         tests/init.sh: port Alpine fix to AIX 7.1
5633         * tests/init.sh (compare_): When attempting to use diff -U3,
5634         prefer diff -u to -U3 to -c to plain diff.  Do not insist on
5635         diff -u not outputting a space after leading '+', as the users
5636         of 'compare' should not be that picky about its output format.
5637         In the AIX 7.1 case, return with diff exit status (or with 2 if
5638         trouble), instead of some random nonzero exit status.
5639         * tests/test-init.sh (test_compare): Remove space after leading
5640         '+', so that AIX 7.1 'diff' passes the test.
5642 2016-09-22  Paul Eggert  <eggert@cs.ucla.edu>
5644         nl_langinfo: pacify GCC
5645         * lib/nl_langinfo.c (ctype_codeset): Remove unused local.
5646         (rpl_nl_langinfo): Cast string literals to char *, to pacify GCC.
5648         stdint: also set GL_GENERATE_LIMITS_H
5649         Problem reported by Jim Meyering in:
5650         http://lists.gnu.org/archive/html/bug-gnulib/2016-09/msg00052.html
5651         * m4/stdint.m4 (gl_STDINT_H): Also redo the AM_CONDITIONAL.
5653         limits-h, stdint: Don't assume extensions, fix typo
5654         * m4/limits-h.m4 (gl_LIMITS_H):
5655         * m4/stdint.m4 (gl_STDINT_H):
5656         Don't assume AC_USE_SYSTEM_EXTENSIONS.
5657         * m4/stdint.m4 (gl_STDINT_H): Fix typo in setting of LIMITS_H,
5658         reported by Jim Meyering in:
5659         http://lists.gnu.org/archive/html/bug-gnulib/2016-09/msg00050.html
5661 2016-09-21  Jim Meyering  <meyering@fb.com>
5663         getprogname: port to AIX
5664         * lib/getprogname.c (getprogname) [_AIX]: Use getpid, getprocs64
5665         and strdup to obtain a short program name string.  Using code from
5666         Bruno Haible and an idea from Bastien ROUCARIÈS, in
5667         https://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00249.html
5668         Assaf Gordon reported that this new file would fail to compile on
5669         AIX-7.1 32bit.
5671 2016-09-16  Paul Eggert  <eggert@cs.ucla.edu>
5673         extensions: fix typo in comment
5674         * m4/extensions.m4: Sync from Autoconf master.
5676         stdint: support new _WIDTH macros
5677         * doc/posix-headers/stdint.texi: Document this.
5678         * lib/stdint.in.h: Add support for INTMAX_WIDTH. etc.
5679         * m4/stdint.m4 (gl_STDINT_H): Require gl_LIMITS_H.  Check for
5680         support for INTMAX_WIDTH, etc. as well as for support for just C99.
5681         * modules/stdint (Depends-on): Add limits-h.
5682         (Makefile.am): Substitute HAVE_C99_STDINT_H.
5683         * modules/stdint-tests (Depends-on): Add extensions, so that
5684         INTMAX_MAX etc. are defined.
5685         * tests/test-stdint.c: Verify the new macros.
5687         limits-h: new module
5688         This adds ISO/IEC TS 18661-1:2014 support to limits.h.
5689         * MODULES.html.sh: Add limits-h,and move size_max to stdint section.
5690         * doc/posix-headers/limits.texi: Document new module.
5691         * lib/limits.in.h, m4/limits-h.m4, modules/limits-h:
5692         * modules/limit-h-tests, tests/test-limits-h.c: New files.
5694         stdio: don't redefine __USE_MINGW_ANSI_STDIO
5695         * m4/stdio_h.m4 (gl_STDIO_H): Don't define __USE_MINGW_ANSI_STDIO
5696         if it is already defined.  Apparently GNU Emacs relies on this.  See:
5697         http://lists.gnu.org/archive/html/emacs-devel/2016-09/msg00416.html
5699 2016-09-15  Eric Blake  <eblake@redhat.com>
5701         sys_types: avoid glibc 2.25 warnings about major()
5702         * m4/sys_types_h.m4 (AC_HEADER_MAJOR): Replace broken version in
5703         older autoconf.
5704         * doc/posix-headers/sys_types.texi (sys/types.h): Document fix.
5705         * doc/glibc-functions/gnu_dev_major.texi (gnu_dev_major): Likewise.
5706         * doc/glibc-functions/gnu_dev_makedev.texi (gnu_dev_makedev): Likewise.
5707         * doc/glibc-functions/gnu_dev_minor.texi (gnu_dev_minor): Likewise.
5709         mountlist: include sysmacros.h for glibc
5710         * m4/mountlist.m4 (gl_PREREQ_MOUTLIST_EXTRA): Include
5711         AC_HEADER_MAJOR.
5712         * lib/mountlist.c (includes): Use correct headers.
5714 2016-09-15  Paul Eggert  <eggert@cs.ucla.edu>
5716         extensions: port to more ISO C TSes
5717         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Sync from Autoconf
5718         master, to add support for more recent ISO C TRs and TSes.
5720 2016-09-13  Paul Eggert  <eggert@cs.ucla.edu>
5722         intprops: new macro TYPE_WIDTH
5723         * lib/intprops.h (TYPE_WIDTH): New macro.
5724         (TYPE_MAXIMUM, _GL_SIGNED_INT_MAXIMUM, INT_STRLEN_BOUND):
5725         * lib/ftoastr.h (_GL_FLOAT_DIG_BITS_BOUND):
5726         * lib/parse-datetime.y (parse_datetime2):
5727         Use it.
5729         extensions: port to recent ISO C TRs
5730         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS):
5731         Sync from Autoconf master, to add support for recent ISO C TRs.
5732         * m4/stdio_h.m4 (gl_STDIO_H): Define __USE_MINGW_ANSI_STDIO here,
5733         since AC_USE_SYSTEM_EXTENSIONS no longer does that as
5734         the MinGW option is not an extension.
5736 2016-09-11  Paul Eggert  <eggert@cs.ucla.edu>
5738         dfa: port to Solaris 9
5739         Problems reported by Tom G. Christensen in:
5740         http://lists.gnu.org/archive/html/bug-gnulib/2016-09/msg00031.html
5741         * modules/dfa (Depends-on): Add isblank.
5742         * modules/dfa-tests (dfa_match_aux_LDADD):
5743         Rename from test_stat_LDADD, to fix typo.
5744         * tests/dfa-match.sh: Don't require 'timeout'; use it if available.
5746 2016-09-10  Jim Meyering  <meyering@fb.com>
5748         strverscmp: avoid link failure on OS X
5749         * lib/strverscmp.c [!weak_alias]: Define __strverscmp to strverscmp.
5750         Reported by Assaf Gordon in https://bugs.gnu.org/24256#26
5752 2016-08-16  Jim Meyering  <meyering@fb.com>
5754         dfa: new module, importing grep's DFA matcher
5755         Since grep's DFA matcher is now being used by two gnulib-enabled
5756         projects, grep and sed, it makes sense to version-control its
5757         sources and unit tests in one place: here.
5758         * modules/dfa: New module.
5759         * modules/dfa-tests: New file.
5760         * lib/dfa.c: New file, from grep.
5761         * lib/dfa.h: Likewise.
5762         * lib/localeinfo.c: Likewise.
5763         * lib/localeinfo.h: Likewise.
5764         * tests/dfa-match-aux.c: Likewise.
5765         * tests/dfa-invalid-char-class.sh: Likewise.
5766         * tests/dfa-match.sh: Likewise, with minor changes.
5767         * MODULES.html.sh (Misc): Add "dfa" to this list.
5769 2016-09-09  Jim Meyering  <meyering@fb.com>
5771         getprogname-tests: don't depend on assert-h
5772         * modules/getprogname-tests (Depends-on): Remove assert-h.
5773         It was not needed, and in fact would cause build failure for
5774         coreutils on some systems.  Reported by Assaf Gordon in https:
5775         //lists.gnu.org/archive/html/coreutils/2016-09/msg00016.html
5777 2016-09-07  Jim Meyering  <meyering@fb.com>
5779         getprogname-tests: work also when EXEEXT is nonempty
5780         * modules/getprogname-tests (Makefile.am): Define EXEEXT.
5781         * tests/test-getprogname.c (main): Use it.
5782         Suggested by Gisle Vanem.
5784 2016-09-07  Gisle Vanem  <gvanem@yahoo.no>
5786         getprogname: fix errors in previous change
5787         * lib/getprogname.c (getprogname) [HAVE_GETEXECNAME]:
5788         s/program_invocation_name/base/
5789         [HAVE_DECL___ARGV]: Handle NULL __argv or __argv[0].
5791 2016-09-08  Pádraig Brady  <P@draigBrady.com>
5793         parse-datetime: restrict debug output to input string
5794         * lib/parse-datetime.y (parse_datetime2): If we parse
5795         all of the input but determine it's invalid, ensure
5796         we don't output the now invalid input pointer.
5797         This issue was seen with `date -d 'now +1'`.
5799 2016-09-07  Paul Eggert  <eggert@cs.ucla.edu>
5801         flexmember: new macro FLEXALIGNOF
5802         * lib/flexmember.h: Include <stddef.h>, for offsetof.
5803         (FLEXALIGNOF): Rename from _GL_XALLOC_ALIGNOF, as Emacs can use
5804         this macro.  Update comments.
5806 2016-09-07  Jim Meyering  <meyering@fb.com>
5808         getprogname: port to systems with __argv (mingw, msvc)
5809         * lib/getprogname.c (getprogname): Include "dirname.h" and use
5810         last_component: more general than open coding it with hard-coded "/".
5811         * lib/getprogname.h (getprogname): Prefer "char const *" consistently.
5812         * modules/getprogname (Depends-on): Add dirname-lgpl.
5813         (configure.ac): Check for __argv in <stdlib.h>.
5814         * modules/getprogname-tests: New file.
5815         * tests/test-getprogname.c: New file.
5816         Suggested by Gisle Vanem in
5817         https://lists.gnu.org/archive/html/bug-gnulib/2016-09/msg00014.html
5819 2016-09-07  Paul Eggert  <eggert@cs.ucla.edu>
5821         flexmember: port better to GCC + valgrind
5822         With a char[] flexible array member in a struct with nontrivial
5823         alignment, GCC-generated code can access past the end of the
5824         array, because GCC assumes there are padding bytes to get the
5825         struct aligned.  So the common idiom of malloc (offsetof (struct
5826         s, m), n) does not properly allocate an n-byte trailing member, as
5827         malloc’s argument should be the next multiple of alignof (struct s).
5828         See GCC Bug#66661: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66661
5829         Although C11 apparently permits this GCC optimization (i.e., there
5830         was a bug in Gnulib not in GCC), possibly this is a defect in C11.
5831         See the thread containing:
5832         https://gcc.gnu.org/ml/gcc-patches/2016-09/msg00317.html
5833         * lib/flexmember.h: New file.
5834         * lib/fnmatch.c, lib/fts.c, lib/glob.c, lib/idcache.c:
5835         * lib/localename.c, lib/time_rz.c:
5836         Include flexmember.h.
5837         * lib/fnmatch_loop.c (struct patternlist):
5838         * lib/localename.c (struct hash_node):
5839         Use FLEXIBLE_ARRAY_MEMBER.
5840         * lib/fnmatch_loop.c (EXT):
5841         * lib/fts.c (fts_alloc):
5842         * lib/glob.c (glob_in_dir):
5843         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
5844         * lib/localename.c (gl_lock_define_initialized):
5845         * lib/time_rz.c (tzalloc):
5846         Use FLEXSIZEOF instead of offsetof.
5847         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
5848         Check that the size of the struct can be taken.
5849         * modules/flexmember (Files): Add lib/flexmember.h.
5850         * modules/fnmatch, modules/glob, modules/localename (Depends-on):
5851         Add flexmember.
5853 2016-09-06  Paul Eggert  <eggert@cs.ucla.edu>
5855         getprogname: port to Solaris 10
5856         * lib/getprogname.c: Include stdlib.h, for getexecname decl.
5857         (getprogname) [HAVE_GETEXECNAME]: Use that, for Solaris 10.
5858         * m4/getprogname.m4 (gl_FUNC_GETPROGNAME): Check for getexecname.
5860         stdalign: correct mistake in alignof doc
5861         Problem reported by Joseph Myers in:
5862         https://gcc.gnu.org/ml/gcc-patches/2016-09/msg00340.html
5863         * doc/posix-headers/stdalign.texi: Do not imply that C11 prohibits
5864         alignof(S) where S is a structure containing a flexible array
5865         member.  The Gnulib substitute does not support this, but C11 does.
5867 2016-08-18  Pino Toscano  <ptoscano@redhat.com>
5869         main.mk: remove sc_program_name, since there is no more need to
5870         use set_program_name in tools (getprogname is enough for most
5871         of the cases).
5872         * cfg.mk (local-checks-to-skip): Remove sc_program_name.
5873         * top/maint.mk (sc_program_name): Remove.
5875 2016-08-18  Pino Toscano  <ptoscano@redhat.com>
5877         Port tests away from progname, since modules that need the
5878         program name already depend on getprogname.
5879         * modules/acl-tests (Depends-on): Remove progname.
5880         * modules/argmatch (Depends-on): Likewise.
5881         * modules/argmatch-tests (Depends-on): Likewise.
5882         * modules/argp-tests (Depends-on): Likewise.
5883         * modules/argp-version-etc-tests (Depends-on): Likewise.
5884         * modules/array-list-tests (Depends-on): Likewise.
5885         * modules/array-oset-tests (Depends-on): Likewise.
5886         * modules/avltree-list-tests (Depends-on): Likewise.
5887         * modules/avltree-oset-tests (Depends-on): Likewise.
5888         * modules/avltreehash-list-tests (Depends-on): Likewise.
5889         * modules/carray-list-tests (Depends-on): Likewise.
5890         * modules/copy-file-tests (Depends-on): Likewise.
5891         * modules/exclude-tests (Depends-on): Likewise.
5892         * modules/fchownat-tests (Depends-on): Likewise.
5893         * modules/fdopendir-tests (Depends-on): Likewise.
5894         * modules/filenamecat-tests (Depends-on): Likewise.
5895         * modules/fstatat-tests (Depends-on): Likewise.
5896         * modules/fstrcmp-tests (Depends-on): Likewise.
5897         * modules/linked-list-tests (Depends-on): Likewise.
5898         * modules/linkedhash-list-tests (Depends-on): Likewise.
5899         * modules/mkdirat-tests (Depends-on): Likewise.
5900         * modules/nonblocking-pipe-tests (Depends-on): Likewise.
5901         * modules/nonblocking-socket-tests (Depends-on): Likewise.
5902         * modules/obstack-printf-tests (Depends-on): Likewise.
5903         * modules/openat-tests (Depends-on): Likewise.
5904         * modules/parse-datetime-tests (Depends-on): Likewise.
5905         * modules/pipe-filter-gi-tests (Depends-on): Likewise.
5906         * modules/pipe-filter-ii-tests (Depends-on): Likewise.
5907         * modules/quotearg-simple-tests (Depends-on): Likewise.
5908         * modules/quotearg-tests (Depends-on): Likewise.
5909         * modules/rbtree-list-tests (Depends-on): Likewise.
5910         * modules/rbtree-oset-tests (Depends-on): Likewise.
5911         * modules/rbtreehash-list-tests (Depends-on): Likewise.
5912         * modules/spawn-pipe-tests (Depends-on): Likewise.
5913         * modules/system-quote-tests (Depends-on): Likewise.
5914         * modules/uniname/uniname-tests (Depends-on): Likewise.
5915         * modules/uninorm/nfc-tests (Depends-on): Likewise.
5916         * modules/uninorm/nfd-tests (Depends-on): Likewise.
5917         * modules/uninorm/nfkc-tests (Depends-on): Likewise.
5918         * modules/uninorm/nfkd-tests (Depends-on): Likewise.
5919         * modules/unistdio/u16-vsnprintf-tests (Depends-on): Likewise.
5920         * modules/unistdio/u16-vsprintf-tests (Depends-on): Likewise.
5921         * modules/unistdio/u32-vsnprintf-tests (Depends-on): Likewise.
5922         * modules/unistdio/u32-vsprintf-tests (Depends-on): Likewise.
5923         * modules/unistdio/u8-vsnprintf-tests (Depends-on): Likewise.
5924         * modules/unistdio/u8-vsprintf-tests (Depends-on): Likewise.
5925         * modules/unistdio/ulc-vsnprintf-tests (Depends-on): Likewise.
5926         * modules/unistdio/ulc-vsprintf-tests (Depends-on): Likewise.
5927         * modules/unlinkat-tests (Depends-on): Likewise.
5928         * modules/version-etc-tests (Depends-on): Likewise.
5929         * modules/xalloc-die-tests (Depends-on): Likewise.
5930         * modules/xmemdup0-tests (Depends-on): Likewise.
5931         * modules/xprintf-posix-tests (Depends-on): Likewise.
5932         * modules/xvasprintf-tests (Depends-on): Likewise.
5933         * tests/test-argmatch.c: Do not include progname.h.
5934         (main) Stop calling set_program_name.
5935         * tests/test-argp-version-etc.c: Likewise.
5936         * tests/test-argp.c: Likewise.
5937         * tests/test-argv-iter.c: Likewise.
5938         * tests/test-array_list.c: Likewise.
5939         * tests/test-array_oset.c: Likewise.
5940         * tests/test-avltree_list.c: Likewise.
5941         * tests/test-avltree_oset.c: Likewise.
5942         * tests/test-avltreehash_list.c: Likewise.
5943         * tests/test-carray_list.c: Likewise.
5944         * tests/test-copy-acl.c: Likewise.
5945         * tests/test-copy-file.c: Likewise.
5946         * tests/test-exclude.c: Likewise.
5947         * tests/test-fchownat.c: Likewise.
5948         * tests/test-fdopendir.c: Likewise.
5949         * tests/test-filenamecat.c: Likewise.
5950         * tests/test-fstatat.c: Likewise.
5951         * tests/test-fstrcmp.c: Likewise.
5952         * tests/test-linked_list.c: Likewise.
5953         * tests/test-linkedhash_list.c: Likewise.
5954         * tests/test-mkdirat.c: Likewise.
5955         * tests/test-nonblocking-pipe-main.c: Likewise.
5956         * tests/test-nonblocking-socket-main.c: Likewise.
5957         * tests/test-obstack-printf.c: Likewise.
5958         * tests/test-openat.c: Likewise.
5959         * tests/test-parse-datetime.c: Likewise.
5960         * tests/test-pipe-filter-gi1.c: Likewise.
5961         * tests/test-pipe-filter-gi2-main.c: Likewise.
5962         * tests/test-pipe-filter-ii1.c: Likewise.
5963         * tests/test-pipe-filter-ii2-main.c: Likewise.
5964         * tests/test-quotearg-simple.c: Likewise.
5965         * tests/test-quotearg.c: Likewise.
5966         * tests/test-rbtree_list.c: Likewise.
5967         * tests/test-rbtree_oset.c: Likewise.
5968         * tests/test-rbtreehash_list.c: Likewise.
5969         * tests/test-sameacls.c: Likewise.
5970         * tests/test-set-mode-acl.c: Likewise.
5971         * tests/test-spawn-pipe-main.c: Likewise.
5972         * tests/test-system-quote-main.c: Likewise.
5973         * tests/test-unlinkat.c: Likewise.
5974         * tests/test-version-etc.c: Likewise.
5975         * tests/test-xalloc-die.c: Likewise.
5976         * tests/test-xfprintf-posix.c: Likewise.
5977         * tests/test-xmemdup0.c: Likewise.
5978         * tests/test-xprintf-posix.c: Likewise.
5979         * tests/test-xvasprintf.c: Likewise.
5980         * tests/uniname/test-uninames.c: Likewise.
5981         * tests/uninorm/test-u32-nfc-big.c: Likewise.
5982         * tests/uninorm/test-u32-nfd-big.c: Likewise.
5983         * tests/uninorm/test-u32-nfkc-big.c: Likewise.
5984         * tests/uninorm/test-u32-nfkd-big.c: Likewise.
5985         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
5986         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
5987         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
5988         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
5989         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
5990         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
5991         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
5992         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
5993         * tests/test-c-stack.c: (program_name): Do not define.
5994         (main): Do not set program_name.
5995         * tests/test-closein.c: Likewise.
5996         * tests/test-xstrtol.c: Likewise.
5997         * tests/test-yesno.c: Likewise.
5999 2016-08-18  Pino Toscano  <ptoscano@redhat.com>
6001         Port modules to use getprogname explicitly, instead of requiring
6002         progname to be used (or program_name to be provided).
6003         * lib/argmatch.c: Do not include progname.h.
6004         [TEST] (program_name): Do not define.
6005         [TEST] (main): Call getprogname instead of using program_name.
6006         * lib/c-stack.c: Do not include progname.h.
6007         (program_name): Do not define.
6008         (die): Call getprogname instead of using program_name.
6009         * lib/chdir-long.c: Do not include progname.h.
6010         [TEST_CHDIR] (main): Do not set program_name.
6011         * lib/error.c [!_LIBC]: Include progname.h.
6012         [!_LIBC] (program_name): Define using getprogname.
6013         * lib/euidaccess.c: Do not include progname.h.
6014         [TEST] (main): Do not set program_name.
6015         * lib/git-merge-changelog.c: Include getprogname.h instead of
6016         progname.h.
6017         (usage): Call getprogname instead of using program_name.
6018         (main): Likewise.  Stop calling set_program_name.
6019         * lib/group-member.c: Do not include progname.h.
6020         [TEST] (main): Do not set program_name.
6021         * modules/argmatch (Depends-on): Add getprogname.
6022         * modules/c-stack (Depends-on): Likewise.
6023         * modules/error (Depends-on): Likewise.
6024         * modules/git-merge-changelog (Depends-on): Likewise.
6025         Also remove progname.
6027 2016-09-05  Pino Toscano  <ptoscano@redhat.com>
6029         * NEWS: Document the deprecation of the 'progname' module.
6031 2016-08-18  Pino Toscano  <ptoscano@redhat.com>
6033         getprogname: new module
6034         This provides a LGPL module for getting the name of the current
6035         program, using the same API found on *BSD systems.
6036         * lib/getprogname.c, lib/getprogname.h, m4/getprogname.m4:
6037         * modules/getprogname: New files.
6038         * MODULES.html.sh (Misc): Add getprogname.
6040 2016-09-02  Jim Meyering  <meyering@fb.com>
6042         manywarnings: add -fno-common
6043         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add -fno-common
6044         to the list.  Quoting the manual, "Compiling with -fno-common is
6045         useful on targets for which it provides better performance, or if
6046         you wish to verify that the program will work on other systems that
6047         always treat uninitialized variable declarations this way [putting
6048         it in the data section]."  If diffutils had been using this sooner,
6049         it would have prevented this duplicate declaration issue:
6050         http://git.sv.gnu.org/cgit/diffutils.git/commit/?id=v3.4-10-gc2dc91f
6052 2016-08-31  Simon Josefsson  <simon@josefsson.org>
6054         parse-datetime: Fix typo.
6055         * lib/parse-datetime.y (parse_datetime2): Fix typo.
6057 2016-08-30  Paul Eggert  <eggert@cs.ucla.edu>
6059         intprops: tune INT_NEGATE_OVERFLOW for GCC 5 and 6
6060         * lib/intprops.h (INT_NEGATE_OVERFLOW): Tune for platforms like
6061         GCC 5 and 6 that have __builtin_sub_overflow but not
6062         __builtin_sub_overflow_p.  With the recent changes, these
6063         platforms are a tiny bit faster with the INT_NEGATE_RANGE_OVERFLOW
6064         implementation than with INT_SUBTRACT_OVERFLOW implementation,
6065         since the former needs just one runtime comparison whereas the
6066         latter needs two.
6068         strverscmp: sync with glibc
6069         Although this doesn't exactly synchronize with glibc
6070         byte-for-byte, it makes the code behave the same as glibc.
6071         * lib/strverscmp.c (S_I, S_F, S_Z): Now masks, not powers of 2.
6072         (ISDIGIT): Remove, as glibc is sticking with isdigit, and the
6073         difference shouldn't matter in practical use.  All uses changed
6074         back to isdigit.
6075         (__strverscmp, strverscmp): Use new glibc method for weak aliases.
6076         (next_state): Now unsigned char array; redo elements.
6077         (result_type): Now signed char array; redo elements.
6078         (__strverscmp): Fix glibc bug 9913 by using new states.
6079         * tests/test-strverscmp.c (main): Test glibc bug 9913.
6081 2016-08-29  Jim Meyering  <meyering@fb.com>
6083         xalloc-oversized.h: port __builtin_mul_overflow change to GCC 6.2.0
6084         * lib/xalloc-oversized.h: Port this change to GCC 6.2.0, too,
6085         similarly to how it was done to intprops.h.
6087 2016-08-29  Paul Eggert  <eggert@cs.ucla.edu>
6089         intprops.h: port recent changes to GCC 6.2.0
6090         * lib/intprops.h (__has_builtin): Move earlier.
6091         (_GL_HAS_BUILTIN_OVERFLOW): Rename from
6092         _GL_HAS_BUILTIN_OVERFLOW_WITH_NULL and don't worry about whether
6093         the last argument can be null.  All uses changed.
6094         (_GL_HAS_BUILTIN_OVERFLOW_P): Also test __has_builtin.
6095         (_GL_ADD_OVERFLOW, _GL_SUBTRACT_OVERFLOW, _GL_MULTIPLY_OVERFLOW):
6096         Don't try to use 3rd arg null, as this doesn't work on GCC 6.2.0
6097         and it's not clear which GCC versions it works for.
6098         (_GL_INT_OP_WRAPV): Use _GL_HAS_BUILTIN_OVERFLOW instead of
6099         its definiens.
6101         intprops.h: use __typeof__ with GCC 7
6102         * lib/intprops.h (_GL_ADD_OVERFLOW, _GL_SUBTRACT_OVERFLOW)
6103         (_GL_MULTIPLY_OVERFLOW): Use __typeof__ as in the GCC manual.
6104         This avoids computing the expression's value (which might overflow!).
6106 2016-08-29  Jim Meyering  <meyering@fb.com>
6108         intprops.h, xalloc-oversized.h: work with gcc 7
6109         In gcc 6, __builtin_add_overflow, __builtin_sub_overflow and
6110         __builtin_mul_overflow each accept a NULL pointer as the third
6111         argument.  However in gcc 7, that is no longer accepted.
6112         Instead, one must use the "_p"-suffixed names, with which, the
6113         third parameter is no longer a pointer.
6114         * lib/intprops.h (_GL_HAS_BUILTIN_OVERFLOW_WITH_NULL): Correct
6115         the definition: not true for gcc 7 and subsequent.
6116         (_GL_HAS_BUILTIN_OVERFLOW_P): Define.
6117         (_GL_ADD_OVERFLOW, _GL_SUBTRACT_OVERFLOW, _GL_MULTIPLY_OVERFLOW):
6118         Provide new definitions for gcc 7 and subsequent.
6119         * lib/xalloc-oversized.h (xalloc_oversized): Provide a definition
6120         that works with gcc-7.
6122         intprops.h: fix missing-backslash problems
6123         * lib/intprops.h (_GL_ADD_OVERFLOW): Add backslash.
6124         (_GL_SUBTRACT_OVERFLOW,_GL_MULTIPLY_OVERFLOW): Likewise.
6126 2016-08-24  Paul Eggert  <eggert@cs.ucla.edu>
6128         intprops: fix paren typo on old platforms
6129         Problem reported by John E. Malmberg in: https://bugs.gnu.org/24300#13
6130         * lib/intprops.h (_GL_INT_OP_WRAPV_LONGISH)
6131         [__GNUC__ < 5 && !__has_builtin (__builtin_add_overflow)
6132         && (__STDC_VERSION__ < 201112 || _GL__GENERIC_BOGUS)
6133         && !defined LLONG_MAX]:
6134         Remove stray paren.
6136         intprops: port to OpenVMS
6137         Problem reported by John E. Malmberg in: https://bugs.gnu.org/24300
6138         * doc/posix-headers/limits.texi: Document the problem.
6139         * lib/intprops.h (LLONG_MAX, LLONG_MIN) [__INT64_MAX]:
6140         Define if not already defined.
6142 2016-08-19  Assaf Gordon  <assafgordon@gmail.com>
6144         parse-datetime: improve debug implementation
6145         Follow-up to commit 12ad79069 ("add optional debug printing").
6146         Improve parse-datetime's debug implementation: remove macros,
6147         replace global debug flag variable with a function parameter,
6148         use nstrftime for formatting.
6149         See: https://lists.gnu.org/archive/html/bug-gnulib/2016-08/msg00021.html
6150         * lib/parse-datetime.h: (parse_datetime_debug): Remove global extern.
6151         (parse_datetime2): New function, accepts 'flags' parameter, supporting
6152         debug flag. Existing interface 'parse_datetime' left unmodified.
6153         * lib/parse-datetime.c: (parse_datetime_debug): Remove global variable.
6154         (struct parser_control): add 'parse_datetime_debug' member variable.
6155         (parse_datetime): Call new function 'parse_datetime2' without debug.
6156         (parse_datetime2): Adapted from previous 'parse_datetime', initialize
6157         pc.parse_datetime_debug variable as needed.
6158         (to_year): Accept new flags parameter, instead of using global variable.
6159         (debug_print_current_time,debug_print_relative_time,debug_mktime_not_ok):
6160         use struct 'debug' variable instead of global variable.
6161         (DEBUG,DEBUG_PRINT_CURRENT_TIME,DEBUG_PRINT_RELATIVE_TIME,
6162         DEBUG_MKTIME_NOT_OK,PROGRESS,PROGRESS0): Remove macros. Call
6163         correspnding functions directly instead of using macros.
6164         * modules/parse-datetime: Add gnulib's strftime module.
6166 2016-08-19  Daniel Richard G.  <skunk@iSKUNK.ORG>
6168         c-strcase-tests: port to EBCDIC
6169         * tests/test-c-strncasecmp.c: Allow two c_strncasecmp calls
6170         which assume ASCII encoding semantics to run only in ASCII
6171         mode, as they fail in EBCDIC.
6173         sigpipe-tests: fix typo
6174         * tests/test-sigpipe.sh: C, not B.
6176 2016-08-18  Paul Eggert  <eggert@cs.ucla.edu>
6178         canonicalize-lgpl: fix errno after malloca fails
6179         This fixes a typo I recently introduced.  Suggested by Bruno Haible in:
6180         http://lists.gnu.org/archive/html/bug-gnulib/2016-08/msg00039.html
6181         * lib/canonicalize-lgpl.c (__realpath):
6182         Don't assume malloca sets errno on failure.
6184 2016-08-17  Paul Eggert  <eggert@cs.ucla.edu>
6186         strtod: port errno handling to z/OS
6187         * lib/strtod.c (strtod): Save and restore errno more reliably.
6189 2016-08-17  Daniel Richard G.  <skunk@iSKUNK.ORG>
6191         strtod: port to z/OS
6192         * lib/strtod.c (strtod): Address a couple quirks in the z/OS
6193         implementation.
6195 2016-08-17  Paul Eggert  <eggert@cs.ucla.edu>
6197         strtod: port to z/OS
6198         * lib/strtod.c (strtod): Address a couple quirks in the z/OS
6199         implementation.
6201         regex, string: rename to avoid '__string'
6202         * lib/regex.h, lib/string.in.h: Do not use the identifier
6203         '__string', as it is effectively reserved by string.h on z/OS.
6205         c-strcase-tests, wcwidth-tests: depend on c-ctype
6206         * modules/c-strcase-tests, modules/wcwidth-tests (Depends-on):
6207         Add c-ctype.
6209 2016-08-17  Daniel Richard G.  <skunk@iSKUNK.ORG>
6211         thread: port to z/OS
6212         * lib/glthread/thread.c, lib/glthread/thread.h:
6213         Rudimentary gl_thread support for z/OS.
6215         maint: port tests to z/OS errno behavior
6216         * tests/test-nonblocking-reader.h:
6217         * tests/test-nonblocking-writer.h:
6218         Accommodate z/OS errno code preferences. (I believe this should
6219         still be within spec; IBM is good at following the letter if not
6220         the spirit of such things.)
6222         maint: preprocessor changes to support z/OS
6223         * lib/alloca.in.h, lib/fnmatch.c, lib/get-rusage-as.c:
6224         * lib/glob.c, lib/math.in.h, lib/ptsname_r.c:
6225         * tests/infinity.h, tests/nan.h, tests/test-canonicalize-lgpl.c:
6226         * tests/test-nonblocking-pipe.h:
6228         fclose, strstr-simple, wchar: port to z/OS
6229         * m4/fclose.m4, m4/strstr.m4, m4/wchar_h.m4:
6230         Changes to the Autoconf M4 code to support z/OS.  Note that
6231         fclose() is broken in a different way on z/OS than it is on other
6232         systems, thus the special-case in fclose.m4.
6234         iconv_open-utf-tests, iconv-tests: port to EBCDIC
6235         * tests/test-iconv-utf.c, tests/test-iconv.c:
6236         Added appropriately conditional #pragmas so that the test strings
6237         in test-iconv-utf.c are correctly interpreted in ASCII instead of
6238         EBCDIC (i.e. 'J' == 0x4A and not 0xD1). This issue could be
6239         addressed in a more portable way by simply rewriting all the ASCII
6240         literal characters as octal escapes, but then you would lose the
6241         partial readability that the strings have now. Also, iconv_open()
6242         on z/OS does not recognize "ISO-8859-1", but "ISO8859-1" works.
6244         c-strcase-tests, wcwidth-tests: port to EBCDIC
6245         * tests/test-c-strcasecmp.c: Include c-ctype.h.
6246         (main) [!C_CTYPE_ASCII]: Skip tests that assume ASCII.
6247         * tests/test-wcwidth.c: Likewise.
6249 2016-08-17  Paul Eggert  <eggert@cs.ucla.edu>
6251         stdbool: don't require _Bool for C++
6252         Problem reported by David Seifert in:
6253         http://lists.gnu.org/archive/html/bug-gnulib/2016-06/msg00005.html
6254         * NEWS, doc/posix-headers/stdbool.texi (stdbool.h): Document this.
6255         * m4/stdbool.m4 (AC_CHECK_HEADER_STDBOOL): Make the check
6256         more-forgiving for C++, in that it requires only 'bool'.  Be a bit
6257         stricter about checking that bool and _Bool are compatible in C.
6259 2016-08-16  Paul Eggert  <eggert@cs.ucla.edu>
6261         getdelim: remove dependency on realloc-posix
6262         * lib/canonicalize-lgpl.c (alloc_failed)
6263         [!FUNC_REALPATH_WORKS || defined _LIBC]: New function,
6264         (__realpath) [!FUNC_REALPATH_WORKS || defined _LIBC]: Use it.
6265         Use __set_errno where needed, for consistency.
6266         * lib/getdelim.c (alloc_failed): New function.
6267         (getdelim): Use it.
6269 2016-08-09  Assaf Gordon  <assafgordon@gmail.com>
6271         parse-datetime: add optional debug printing
6272         Print parsing information, warnings, and errors to stderr.
6273         * lib/parse-datetime.h (parse_datetimte_debug): New global variable.
6274         * lib/parse-datetime.y:
6275         (DEBUG_*):  Macros calling debug functions if debugging is enabled.
6276         (PROGRESS*): Same as DEBUG, for progress reporting.
6277         (dbg_printf): Print message to stderr, with 'date' prefix.
6278         (struct parser_control): Add 'debug_*_seen' variables.
6279         (str_days): Converts day ordinal/number to string (e.g. 'last wed').
6280         (debug_print_current_time, debug_print_relateive_time): Prints the
6281         current/relative date/time value of parser_control.
6282         (YACC parser syntax): Print parsed parts with DEBUG_* macros.
6283         (to_year): Warn about 2-digit year parsing.
6284         (yylex):   Warn about unrecognized words.
6285         (get_effective_timezone): Returns current timezone in minutes.
6286         (debug_strf{time,date,datetime}): Convert 'struct tm' to string as
6287         clearly and unambigiously as possible.
6288         (debug_mktime_not_ok): Print detailed information about failed
6289         date/time values.
6290         (parse_datetime): Add DEBUG messages for failures, warnings. Add
6291         PROGRESS messages for status messages.
6292         * modules/parse-datetime: Add 'timegm', 'gettext-h' dependencies.
6294 2016-08-06  Jim Meyering  <meyering@fb.com>
6296         tests/init.sh: exclude dash with bad "local" semantics
6297         * tests/init.sh (gl_shell_test_script_): Add a function to
6298         eliminate a shell like "dash" (unlike bash, zsh) that has
6299         surprising/risky "local var='...'" semantics.  Inspired by
6300         the problem and discussion in https://bugs.gnu.org/24116#11.
6302 2016-08-02  Ján Tomko  <jtomko@redhat.com>
6304         maint.mk: expand the prohibit_doubled_word regex
6305         This check has a static list of words that are checked for
6306         repetitions.  Expand it before running the perl script to
6307         avoid using expensive captures.  This decreases the cost
6308         for libvirt from 1.66s to 0.66s.
6309         * top/maint.mk (prohibit_doubled_word_expanded_): Define.
6310         (sc_prohibit_doubled_word): Use it.
6312 2016-07-26  Ján Tomko  <jtomko@redhat.com>
6314         useless-if-before-free: skip non-matching lines early
6315         * build-aux/useless-if-before-free: First match each line with the
6316         simple/quick /\bif\b/ and reject if there is no match. This often
6317         saves the cost of the much more involved regular expression.
6318         For libvirt, this decreases the cost from 1.44s to 1.02s.
6320 2016-07-26  Ján Tomko  <jtomko@redhat.com>
6322         maint.mk: speed up sc_po_check
6323         sc_po_check would skip files based on their names, or on the
6324         existence of files with derived names. Rewrite it to use perl
6325         instead of shell to make the check faster.
6326         * top/maint.mk (perl_translatable_files_list_): Define.
6327         (sc_po_check): Use it.
6329 2016-07-30  Ján Tomko  <jtomko@redhat.com>
6331         maint.mk: speed up require_config_h_first
6332         Instead of spawning three processes per file,
6333         rewrite the check in perl and run it once for all the files.
6334         * top/maint.mk (perl_config_h_first_): Define.
6335         (sc_require_config_h_first): Use it in place of shell code.
6337 2016-07-26  Ján Tomko  <jtomko@redhat.com>
6339         maint.mk: speed up sc_po_check
6340         sc_po_check would skip files based on their names, or on the
6341         existence of files with derived names. Rewrite it to use perl
6342         instead of shell to make the check faster.
6343         * top/maint.mk (perl_translatable_files_list_): Define.
6344         (sc_po_check): Use it.
6346 2016-07-15  Paul Eggert  <eggert@cs.ucla.edu>
6348         obstack: pacify GCC 6 with -Wnull-dereference
6349         Problem reported by Assaf Gordon in:
6350         http://lists.gnu.org/archive/html/bug-gnulib/2016-07/msg00028.html
6351         * lib/obstack.c, lib/obstack.h (obstack_alloc_failed_handler):
6352         Declare with __attribute_noreturn__.
6353         * lib/obstack.h (__attribute_noreturn__): New macro.
6355 2016-07-13  Eric Blake  <eblake@redhat.com>
6357         doc: mention glibc, OS X, Cygwin [S]SIZE_MAX buglet
6358         * doc/posix-headers/stdint.texi (stdint.h): Document the bugs.
6359         * doc/posix-headers/limits.texi (limits.h): Document the bugs.
6361 2016-07-13  Paul Eggert  <eggert@cs.ucla.edu>
6363         doc: mention glibc SSIZE_MAX buglet
6364         * doc/posix-headers/limits.texi (limits.h): Document the bug.
6366 2016-07-04  Martin Kletzander  <mkletzan@redhat.com>
6368         printf-posix: Fix mingw build
6369         Commit 54615b95ff238e235e806855efc46a9abad09f2e changed the regular
6370         expression for detecting C symbol prefixes but forgot to qoute square
6371         brackets in the command line arguments for grep.  That way when
6372         building with mingw the condition was false although it ought to be
6373         true instead.  In particular scenarios this led to the following
6374         compile error:
6376             Cannot export rpl_printf: symbol not found
6377             Cannot export rpl_scanf: symbol not found
6378             collect2: error: ld returned 1 exit status
6380         Fix this by properly quoting square brackets.
6382 2016-07-03  Paul Eggert  <eggert@cs.ucla.edu>
6384         mktime: call tzset as per POSIX
6385         Problem reported by Ludovic Courtès in:
6386         http://lists.gnu.org/archive/html/bug-gnulib/2016-06/msg00068.html
6387         * lib/mktime.c (mktime) [!_LIBC && HAVE_TZSET]: Call tzset.
6388         * m4/mktime.m4 (gl_FUNC_MKTIME): Check for tzset.
6390 2016-06-26  Pádraig Brady  <P@draigBrady.com>
6392         fts: handle readdir() errors
6393         * lib/fts.c (fts_build): readdir(3) returns NULL when finished,
6394         but also upon error when it will also set errno.  Therefore
6395         flag the error case from readdir().  We treat the case where
6396         no items are read the same as if the dir can't be accessed,
6397         i.e. by setting fts_errno to FTS_DNR.
6399 2016-06-24  Paul Eggert  <eggert@cs.ucla.edu>
6401         intprops: port better to GCC 7
6402         GCC 7 __builtin_add_overflow supports a new usage form, where the
6403         last argument is a null pointer, and which merely returns 1 if an
6404         overflow would occur.  This is a constant expression if all
6405         arguments are constants, and should generate faster code when code
6406         needs to be generated.
6407         * lib/intprops.h (_GL_HAS_BUILTIN_OVERFLOW_WITH_NULL): New macro.
6408         (_GL_ADD_OVERFLOW, _GL_SUBTRACT_OVERFLOW, _GL_MULTIPLY_OVERFLOW):
6409         Use builtin operations if available.
6410         (INT_NEGATE_OVERFLOW): Prefer INT_SUBTRACT_OVERFLOW if builtin
6411         operations are available, as it's almost surely faster.
6413 2016-06-23  Paul Eggert  <eggert@cs.ucla.edu>
6415         intprops-test: port to GCC 6
6416         * tests/test-intprops.c: Ignore -Woverflow if any GCC version,
6417         since the bug is not fixed in GCC 6.1.
6419 2016-06-13  Paul Eggert  <eggert@cs.ucla.edu>
6421         xalloc-oversized: port to GCC 7; fewer warnings
6422         GCC 7 will have a better way to deal with integer overflow.
6423         Plus, fix a warnings problem reported by Tim Ruehsen in:
6424         http://lists.gnu.org/archive/html/bug-gnulib/2016-06/msg00022.html
6425         * lib/xalloc-oversized.h (__xalloc_oversized): New macro.
6426         (xalloc_oversized): Use plain __builtin_mul_overflow if GCC 7 or later.
6427         For GCC 5, use __xalloc_oversized if both args are constants,
6428         or if pedantic.
6430 2016-06-08  Paul Eggert  <eggert@cs.ucla.edu>
6432         regex: port to Sun C
6433         Reported by Daiki Ueno.
6434         * lib/regcomp.c (regcomp, regerror): Use _Restrict_, not
6435         __restrict, in prototype.  This fixes a problem I introduced in
6436         the 2016-02-19 merge from glibc.
6438 2016-05-31  Paul Eggert  <eggert@cs.ucla.edu>
6440         stdbool: Restore __bool_true_false_are_defined check
6441         * m4/stdbool.m4 (AC_CHECK_HEADER_STDBOOL):
6442         __bool_true_false_are_defined is still defined, even with C++11.
6444 2016-05-31  David Seifert  <soap@gentoo.org>  (tiny change)
6446         stdbool: Port AC_CHECK_HEADER_STDBOOL to C++11
6447         * m4/stdbool.m4 (AC_CHECK_HEADER_STDBOOL): Port to C++11.
6449 2016-05-30  Paul Eggert  <eggert@cs.ucla.edu>
6451         Use GCC_LINT, not lint
6452         FreeBSD and Cygwin #define _Noreturn to empty if 'lint' is defined.
6453         Problem reported by Ken Brown in: http://bugs.gnu.org/23640
6454         * doc/posix-headers/stdnoreturn.texi (stdnoreturn.h):
6455         Document problem with lint and _Noreturn.
6456         * lib/diffseq.h (IF_LINT, IF_LINT2):
6457         * lib/fts.c (sccsid):
6458         * lib/getndelim2.c (IF_LINT):
6459         * lib/gl_anylinked_list2.h (gl_linked_iterator)
6460         (gl_linked_iterator_from_to):
6461         * lib/gl_anytree_list2.h (gl_tree_iterator)
6462         (gl_tree_iterator_from_to):
6463         * lib/gl_anytree_oset.h (gl_tree_iterator):
6464         * lib/gl_array_list.c (gl_array_iterator)
6465         (gl_array_iterator_from_to):
6466         * lib/gl_array_oset.c (gl_array_iterator):
6467         * lib/gl_carray_list.c (gl_carray_iterator)
6468         (gl_carray_iterator_from_to):
6469         * lib/idcache.c:
6470         * lib/inet_ntop.c (IF_LINT):
6471         * lib/regcomp.c (build_charclass_op, create_tree):
6472         * lib/regex_internal.c (re_acquire_state)
6473         (re_acquire_state_context):
6474         * lib/trigl.c (rcsid):
6475         * lib/trim.c (IF_LINT):
6476         * lib/vasnprintf.c (IF_LINT):
6477         * lib/verify.h (assume):
6478         Treat GCC_LINT like lint.
6480 2016-05-29  Bruno Haible  <bruno@clisp.org>
6482         secure_getenv: Port to many more platforms.
6483         * m4/secure_getenv.m4 (gl_PREREQ_SECURE_GETENV): Also check for get*id
6484         functions.
6485         * lib/secure_getenv.c (secure_getenv): Add alternate implementations
6486         for non-BSD Unix platforms and for native Windows.
6487         * doc/glibc-functions/secure_getenv.texi: Remove known issue.
6488         Prompted by a request from Nikos Mavrogiannopoulos.
6490 2016-05-27  Eric Blake  <eblake@redhat.com>
6492         canonicalize: Fix broken probe for realpath.
6493         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Fix regression
6494         in logic introduced in 54615b95.
6496 2016-05-26  Eric Blake  <eblake@redhat.com>
6498         unsetenv: relax to LGPLv2+
6499         * modules/unsetenv (License): Match setenv license.
6501 2016-05-20  Ludovic Courtès  <ludo@gnu.org>
6503         gendocs.sh: Set default TOP_NODE_UP_URL in HTML output.
6504         Suggested by Gavin Smith <gavinsmith0123@gmail.com>.
6505         Reported by myglc2 <myglc2@gmail.com> in <http://bugs.gnu.org/22651>.
6506         * build-aux/gendocs.sh (MANUAL_TITLE, PACKAGE, EMAIL)
6507         (commonarg, dirargs, dirs, infoarg, generate_ascii)
6508         (generate_html, generate_info, generate_tex, outdir)
6509         (source_extra, split, srcfile, texarg): Move above 'version'.
6510         (htmlarg): Likewise, and add "-c TOP_NODE_UP_URL=/manual".
6512 2016-05-17  Paul Eggert  <eggert@cs.ucla.edu>
6514         manywarnings: update for GCC 6.1
6515         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC):
6516         Add GCC 6.1 options that apply to C.
6517         * build-aux/gcc-warning.spec: Add GCC 6.1 options that
6518         do not apply to C, are obsolescent, etc.
6520 2016-05-12  Paul Eggert  <eggert@cs.ucla.edu>
6522         glob: size_t overflow checks
6523         * lib/glob.c (__has_builtin): New macro.
6524         (size_add_wrapv, glob_use_alloca): New static functions.
6525         (glob, glob_in_dir): Check for size_t overflow in several places,
6526         and fix some size_t checks that were not quite right.
6528         glob: don't assume INT_MAX < SIZE_MAX
6529         * lib/glob.c (glob): Prefer SIZE_MAX to ~((size_t) 0), as the
6530         latter is not portable to (probably theoretical) hosts where
6531         SIZE_MAX <= INT_MAX.
6533 2016-05-09  Bruno Haible  <bruno@clisp.org>
6535         Fix undefined behaviour in gettext.h.
6536         * lib/gettext.h (dcpgettext_expr, dcnpgettext_expr): Avoid accessing a
6537         pointer's value after the storage it points to has been freed.
6538         Reported by Michael Pyne in https://savannah.gnu.org/bugs/?47847.
6539         Spotted by Coverity.
6541 2016-05-08  Paul Eggert  <eggert@cs.ucla.edu>
6543         git-version-gen: avoid undefined shift
6544         Problem reported by Mosè Giordano in:
6545         http://lists.gnu.org/archive/html/bug-gnulib/2016-05/msg00012.html
6546         * build-aux/git-version-gen: Avoid undefined behavior if invoked
6547         with --prefix or --fallback but without a later argument.  While
6548         we're at it, omit unnecessary quotes.
6550 2016-05-04  Paul Eggert  <eggert@cs.ucla.edu>
6552         glob: merge glibc changes into lib/glob.c
6553         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c,
6554         dated 2016-05-04 12:09:35 2016 +0200.  Here are the changes:
6555         2016-05-04 CVE-2016-1234: glob: Do not copy d_name field of
6556           struct dirent [BZ #19779]
6557         2016-04-29 glob: Simplify the interface for the GLOB_ALTDIRFUNC
6558           callback gl_readdir
6559         2015-10-20 Convert miscellaneous function definitions to prototype style
6560         2015-10-20 Convert 113 more function definitions to prototype style
6561           (files with assertions)
6562         2015-06-12 Fix getlogin_r namespace (bug 18527).
6563         2014-02-10 Use glibc_likely instead __builtin_expect.
6564         2013-10-20 When glob pattern contains a trailing slash match only
6565           directories. Fixes bug 10278.
6566         2013-09-04 glob: silence -Wattribute warnings
6567         2013-06-07 Avoid use of "register" as optimization hint.
6568         2012-09-25 Use size_t instead of int for internal variables in glob
6569           (bug 14621)
6570         2011-07-20 Check for overflows in expressions
6571         2011-05-28 Remove unused variable
6572         2011-05-22 Add a few more alloca size checks
6573         2010-03-27 Whitespace fixes
6574         2010-03-27 Fix one more issue with the glob patch
6575         2010-03-24 Fix glob with empty pattern
6576         2008-05-27 Remove useless more "if" tests before "free"
6577         * modules/glob (Depends-on): Add stdint.
6579 2016-05-01  Paul Eggert  <eggert@cs.ucla.edu>
6581         mktime: port to stricter signed overflow checking
6582         * lib/mktime.c: Omit 'pragma GCC optimize ("wrapv")'.
6583         (long_int): Require width for INT_MAX * 3 * (seconds per year),
6584         instead of merely for INT_MAX * 2.  In practice platforms that
6585         do the latter also do the former.
6586         (TIME_T_MIN, TIME_T_MAX, TIME_T_MIDPOINT, SHR): Remove.
6587         (shr): New static function, replacing SHR.  All uses changed.
6588         (mktime_min, mktime_max): New constants, replacing TIME_T_MIN
6589         and TIME_T_MAX.  All uses changed.
6590         (ydhms_diff, guess_time_tm, ranged_convert, __mktime_internal):
6591         Use long_int, not time_t.
6592         (long_int_avg): New static function, replacing time_t_avg.
6593         All uses changed.  Round toward positive infinity, as that
6594         generates slightly better code.
6595         (time_t_add_ok, time_t_int_add_ok): Remove.  All uses replaced
6596         by INT_ADD_WRAPV.
6597         (guess_time_tm): Accept time, not a pointer to it.  All uses changed.
6598         (convert_time): New static function.
6599         (ranged_convert): Use it
6600         (ranged_convert): Check for *T out of [mktime_min, mktime_max] range.
6601         Use simpler test for loop exit.
6602         (__mktime_internal): Store negative of guessed offset, to simplify
6603         overflow checking.  Remove no-longer-needed test for small time_t
6604         overflows.
6606         mktime: speed up DEBUG_MKTIME benchmarks
6607         Call tzset just once, at the start, rather than for every test
6608         case.  This lets us measure the CPU cost of mktime as opposed to
6609         that of tzset.  This is relevant when TZ is not set and glibc is
6610         being used.  This speeds up tests by a factor of 40 on my Fedora
6611         23 x86-64 platform.
6612         * lib/mktime.c (main) [DEBUG_MKTIME]: Call localtime at the start,
6613         to call tzset and as a sanity check.  Later on, use localtime_r
6614         instead of localtime.
6616         mktime: resurrect DEBUG_MKTIME testing
6617         * lib/mktime.c [DEBUG_MKTIME]: Do not include <config.h>.
6618         Include <string.h>, for strcmp.
6620         mktime: simplify DEBUG_MKTIME
6621         * lib/mktime.c (DEBUG_MKTIME): Define to 0 if not defined.
6622         Simplify later usage accordingly.
6624         Port mktime_internal offset to unsigned time_t
6625         This avoids some assumptions about wraparound arithmetic on
6626         signed integer overflow.
6627         * lib/mktime-internal.h (mktime_offset_t): New type.
6628         (mktime_internal): Use it in decl.
6629         * lib/mktime.c, lib/timegm.c (mktime_offset_t) [_LIBC]: New type.
6631         * lib/mktime.c (__mktime_internal, localtime_offset):
6632         * lib/timegm.c (timegm): Use it.
6633         * m4/mktime.m4 (gl_TIME_T_IS_SIGNED): New macro.
6634         (gl_FUNC_MKTIME): Require it.
6636 2016-04-27  Paul Eggert  <eggert@cs.ucla.edu>
6638         xstrtol: prohibit monstrosities like "1bB"
6639         Problem reported by Young Mo Kang in: http://bugs.gnu.org/23388
6640         * lib/xstrtol.c (__xstrtol): Allow trailing second suffixes like
6641         "B" only if the first suffix needs a base.
6642         * tests/test-xstrtol.sh: Test this.
6644 2016-04-21  Pádraig Brady  <P@draigBrady.com>
6646         xstrtod: reinstate setting of *result upon ERANGE
6647         * lib/xstrtod.c (XSTRTOD): The user may decide to use
6648         the returned limits upon ERANGE, so allow and document that.
6650 2016-04-20  Tino Calancha  <f92capac@gmail.com>  (tiny change)
6652         xstrtod: modify *result only if no errors
6653         * lib/xstrtod.c (XSTRTOD).
6655 2016-04-19  Paul Eggert  <eggert@cs.ucla.edu>
6657         btowc: document problems in C locale
6658         * doc/posix-functions/btowc.texi (btowc): Mention incompatibility
6659         with mbrtowc.  See: http://bugs.gnu.org/23269#32
6661 2016-04-13  Paul Eggert  <eggert@cs.ucla.edu>
6663         mktime: improve integer overflow checking
6664         * lib/mktime.c: Include stdbool.h, intprops.h, verify.h.
6665         (WRAPV): Remove; no longer needed.
6666         (verify): Remove.  Replace all uses with call to verify.h 'verify'.
6667         (TYPE_IS_INTEGER, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
6668         Remove.  Use intprops.h defns instead.
6669         (leapyear, isdst_differ, time_t_add_ok, time_t_int_ok):
6670         Use bool for Boolean, for clarity.
6671         (time_t_add_ok, time_t_int_add_ok): Use INT_ADD_WRAPV to
6672         detect integer overflow.
6673         * modules/mktime (Depends-on): Add intprops, stdbool, verify.
6675         intprops: check two's complement assumption
6676         Suggested by Eric Blake in:
6677         http://lists.gnu.org/archive/html/bug-gnulib/2016-04/msg00016.html
6678         * lib/intprops.h: Include <verify.h>.  Verify that signed char,
6679         short, int, long, and (if available) long long are two's complement.
6680         * modules/intprops (Depends-on): Add 'verify'.
6682         intprops, mktime, strtol: assume two's complement
6683         These macros were not portable to every conforming C11 ones'
6684         complement platform.  It's not worth the hassle of porting to some
6685         platforms that use ones' complement or signed magnitude, as such
6686         platforms are almost purely theoretical nowadays and porting even
6687         to some of them makes the code harder to review for little
6688         practical benefit.  Problem reported by Florian Weimer in:
6689         https://sourceware.org/ml/libc-alpha/2016-04/msg00295.html
6690         * lib/intprops.h (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT)
6691         (TYPE_SIGNED_MAGNITUDE, _GL_INT_TWOS_COMPLEMENT):
6692         * lib/mktime.c (TYPE_TWOS_COMPLEMENT):
6693         * lib/strtol.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT)
6694         (TYPE_SIGNED_MAGNITUDE):
6695         Remove.  All uses rewritten to assume two's complement, which is
6696         all we can reasonably test nowadays anyway.
6697         * top/maint.mk (_intprops_names): Remove the removed macros.
6699 2016-04-11  Paul Eggert  <eggert@cs.ucla.edu>
6701         stdint: port to strict C11 left shift
6702         * lib/stdint.in.h (_STDINT_MIN, _STDINT_MAX):
6703         Pacify clang -Wshift-negative-value, which should be an issue only
6704         on clang setups where stdint.h does not conform to C11 or to C++11.
6705         Problem reported by Philipp Stephani in: http://bugs.gnu.org/23261
6707 2016-04-09  Paul Eggert  <eggert@penguin.cs.ucla.edu>
6709         mbrtowc: work around glibc bug#19932
6710         Fix mbrtowc so that it never returns -1 in the C locale,
6711         as this conflicts with a future version of POSIX
6712         http://austingroupbugs.net/view.php?id=663#c2738
6713         and causes problems with GNU grep: http://bugs.gnu.org/23234
6714         See glibc bug 19932:
6715         https://sourceware.org/bugzilla/show_bug.cgi?id=19932
6716         * doc/posix-functions/mbrlen.texi (mbrlen):
6717         * doc/posix-functions/mbrtowc.texi (mbrtowc):
6718         Document the glibc bug.
6719         * lib/mbrtowc.c [C_LOCALE_MAYBE_EILSEQ]:
6720         Include hard-locale.h, locale.h.
6721         (rpl_mbrtowc): Work around the C_LOCALE_MAYBE_EILSEQ bug,
6722         if the bug is possible.
6723         * m4/mbrtowc.m4 (gl_MBRTOWC_C_LOCALE): New macro.
6724         (gl_FUNC_MBRTOWC): Use it, and define C_LOCALE_MAYBE_EILSEQ as needed.
6725         * modules/hard-locale (License): Now LGPLv2+, for mbrtowc.
6726         * modules/mbrtowc (Depends-on): Add hard-locale.
6727         * modules/mbrtowc-tests (Files, TESTS): Add tests/test-mbrtowc5.sh.
6728         * tests/test-mbrtowc.c (main): Test for bug fix if arg is '5'.
6729         * tests/test-mbrtowc5.sh: New file.
6731 2016-04-03  Pedro Alves  <palves@redhat.com>
6733         stdint: detect good enough pre-C++11 stdint.h in C++ mode
6734         When gnulib is configured in C++ mode for a system with a working C99
6735         implementation of stdint.h that predates C++11, gnulib ends up
6736         substituting stdint.h anyway.  This works on most targets, but on e.g.,
6737         64-bit MinGW, it doesn't, as gnulib's substitute assumes LP64, while
6738         MinGW is LLP64.  Instead of trying to detect the right types, detect
6739         good-enough-pre-C++11 stdint.h and in such case define
6740         __STDC_CONSTANT_MACROS/__STDC_LIMIT_MACROS in config.h.
6741         * m4/stdint.m4 (gl_STDINT_H): Always define __STDC_CONSTANT_MACROS
6742         / __STDC_LIMIT_MACROS while checking whether the system stdint.h
6743         conforms to C99.  If it does, check whether it hides symbols
6744         behind the __STDC_{CONSTANT|LIMIT}_MACROS macros.  Then if it
6745         does, define those macros in config.h.
6747 2016-04-03  Paul Eggert  <eggert@cs.ucla.edu>
6749         argp: merge changes from glibc
6750         Among other things, this should fix problems found by a Coverity
6751         scan and reported by Andrei Borzenkov:
6752         http://lists.gnu.org/archive/html/bug-gnulib/2016-01/msg00015.html
6753         http://lists.gnu.org/archive/html/bug-gnulib/2016-01/msg00016.html
6754         * lib/argp-ba.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h:
6755         * lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h:
6756         * lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c:
6757         * lib/argp.h:
6758         Merge changes from glibc.
6759         * tests/test-argp-2.sh: Adjust to match new behavior.
6761 2016-04-01  Paul Eggert  <eggert@cs.ucla.edu>
6763         stddef: support configuring with g++
6764         Problem reported by Ángel González in:
6765         http://lists.gnu.org/archive/html/bug-gnulib/2016-04/msg00003.html
6766         * lib/stddef.in.h (_GL_STDDEF_ALIGNAS, max_align_t):
6767         Do not define if _GCC_MAX_ALIGN_T is defined.
6769 2016-03-25  Paul Eggert  <eggert@cs.ucla.edu>
6771         test-framework-sh: minor cleanups
6772         * tests/init.sh (testdir_prefix_): Output a trailing newline,
6773         since strictly speaking POSIX requires this.
6774         (setup_): Do not use the variable 'fail', as that makes the
6775         trace output harder to read ('fail' is typically used by
6776         tests to mean the test failed).  Treat // portably.
6777         Check that new directory is not merely a sibling of the tmp dir.
6778         Avoid unnecessary invocation of tr.
6780         test-framework-sh: revert port to NetBSD 7.0
6781         It was a false alarm; I misinterpreted Assaf Gordon's report.
6782         * tests/init.sh (testdir_prefix_, pfx_, template_length_):
6783         Restore.
6784         (test_dir_): Adjust to mktempd_ change.
6785         (mktempd_): Restore 2nd arg.  Use -t again.
6786         (base_template_, template_, nx_): Resurrect old code.
6788         Port better to Alpine Linux
6789         Its diff implementation does not support -c, but does support -U3.
6790         Problem reported by Assaf Gordon in: http://bugs.gnu.org/23107#13
6791         * tests/init.sh (diff_opt_): New var.
6792         (compare_): Prefer diff -U3 to diff -c to plain diff.
6794 2016-03-24  Paul Eggert  <eggert@cs.ucla.edu>
6796         test-framework-sh: port to NetBSD 7.0
6797         Problem reported by Assaf Gordon in: http://bugs.gnu.org/23107#13
6798         * tests/init.sh (testdir_prefix_, pfx_, template_length_):
6799         Remove.  All uses removed.
6800         (test_dir_): Adjust to mktempd_ change.
6801         (mktempd_): Omit 2nd arg.  Stop using -t, as it is not portable.
6802         (base_template_, template_, nx_): Simplify by hardcoding.
6804 2016-03-22  Paul Eggert  <eggert@cs.ucla.edu>
6806         gitlog-to-changelog: suppress ignored chatter
6807         * build-aux/gitlog-to-changelog: Do not warn about skipping
6808         an SHA if it would have been ignored anyway.
6810 2016-03-22  Geert Janssens  <janssens-geert@telenet.be>
6812         setlocale: add "sv" to Windows language table
6813         * lib/setlocale.c (language_table) [W32]: Add "sv".
6814         Reported in <https://savannah.gnu.org/bugs/?44588>.
6816 2016-03-21  Paul Eggert  <eggert@cs.ucla.edu>
6818         sys_select: port to new Cygwin
6819         Problem reported by Ken Brown in:
6820         https://lists.gnu.org/archive/html/bug-gnulib/2016-03/msg00054.html
6821         * lib/sys_select.in.h [__CYGWIN__]: Avoid "unknown type name"
6822         diagnostics.
6824 2016-03-17  Jim Meyering  <meyering@fb.com>
6826         test-userspec.c: do not trigger gcc's new -Wmisleading-indentation
6827         * tests/test-userspec.c (main): Remove unnecessary braces and fix
6828         misleading indentation. Here is the diagnostic gcc-6.0-to-be issued:
6829           test-userspec.c:176:9: error: statement is indented as if it were \
6830             guarded by... [-Werror=misleading-indentation]
6831                    {
6832                    ^
6833           test-userspec.c:173:7: note: ...this 'if' clause, but it is not
6834                  if (!diag && !T[i].result)
6835                  ^~
6837 2016-03-15  Paul Eggert  <eggert@cs.ucla.edu>
6839         time_rz: port to clang -Wunused-const-variable
6840         * lib/time_rz.c (TZ): Remove.  All uses removed.
6842         std-gnu11: improve clang support
6843         * m4/std-gnu11.m4: Sync with autoconf, incorporating:
6844         2016-03-15 Also try clang
6845         2016-03-15 Port C11 and C++11 testing to clang
6847         select: port more to Intel 2016.1.150 compiler
6848         Problem reported by Balázs Hajgató in:
6849         http://lists.gnu.org/archive/html/bug-gnulib/2016-03/msg00036.html
6850         * m4/select.m4 (gl_FUNC_SELECT): Require AC_C_RESTRICT.
6852 2016-03-14  Paul Eggert  <eggert@cs.ucla.edu>
6854         select: try to port to 2016.1.150 compiler
6855         Problem reported by Balázs Hajgató in:
6856         http://lists.gnu.org/archive/html/bug-gnulib/2016-03/msg00026.html
6857         * lib/sys_select.in.h (select): Use 'restrict' on arguments where
6858         POSIX specifies 'restrict'.
6860 2016-03-13  Paul Eggert  <eggert@cs.ucla.edu>
6862         localename-tests: memory allocation fixes
6863         * tests/test-localename.c (test_locale_name)
6864         (test_locale_name_thread): Don't call freelocale on a locale
6865         that was the base of a successful newlocale, as that
6866         results in a double free.  Problem reported by Assaf Gordon.
6867         (test_locale_name_thread): Free saved names after use, to pacify
6868         gcc -fsanitize=address.
6870 2016-03-08  Paul Eggert  <eggert@cs.ucla.edu>
6872         intprops: make .h file license match module
6873         * lib/intprops.h: Change the license wording to match glibc format.
6874         This is what is in modules/intprops anyway.  See:
6875         https://sourceware.org/bugzilla/show_bug.cgi?id=19738#c8
6877 2016-03-08  Eric Blake  <eblake@redhat.com>
6879         acl: fix missing return on Cygwin
6880         * lib/set-permissions.c (set_acls) [HAVE_FACL && GETACL]: Don't
6881         fall off end of function. Fixes http://bugs.gnu.org/22949
6883 2016-03-05  Bruno Haible  <bruno@clisp.org>
6885         extern-inline: port to PGI CC
6886         * m4/extern-inline.m4 (gl_EXTERN_INLINE): For PGI CC, don't use the
6887         keyword 'inline'.
6888         Reported by Adam James Stewart in:
6889         http://lists.gnu.org/archive/html/bug-gnulib/2016-03/msg00006.html
6891 2016-02-20  Paul Eggert  <eggert@cs.ucla.edu>
6893         signbit: port back to pre-C++11 GCC
6894         * lib/math.in.h (signbit): Do previous change only if
6895         __cplusplus < 201103.  See Jonathan Wakely in:
6896         https://lists.fedoraproject.org/archives/list/devel@lists.fedoraproject.org/message/UY3VX3W7XEXYTUKHG5BALU4ACUD7ZLGE/
6898 2016-02-19  Kamil Dudka  <kdudka@redhat.com>
6900         mountlist: recognize autofs-mounted remote file systems, too
6901         Originally reported at: https://bugzilla.redhat.com/1309247
6902         * lib/mountlist.c (ME_REMOTE): Return true if a file system is named
6903         "-hosts" because it is used by autofs to mount remote file systems.
6905 2016-02-19  Paul Eggert  <eggert@cs.ucla.edu>
6907         signbit: port to C++ with GCC 6
6908         * lib/math.in.h (signbit) [__cplusplus]:
6909         Do not replace with GCC builtin.  Reported by Orion Poplawski in:
6910         http://lists.gnu.org/archive/html/bug-gnulib/2016-02/msg00005.html
6912         * lib/regex_internal.h (IDX_MAX) [_REGEX_LARGE_OFFSETS]: Now SSIZE_MAX.
6914         regex: make it closer to libc
6915         Make Idx a signed type, rather than possibly unsigned.
6916         The unsignedness was not really buying us anything, since the code
6917         overflows for other reasons before getting to PTRDIFF_MAX.  Making
6918         it signed allows us to use -1 and -2 with abandon, like libc does,
6919         thus lessening the number of differences between gnulib and libc.
6920         Also, it should help avoid gratuitous warnings like the one
6921         reported by Nelson H. F. Beebe in: http://bugs.gnu.org/22702
6922         * lib/regex.h (__re_idx_t): Remove.  All uses changed to regoff_t.
6925         regex: merge patches from libc
6927         2015-10-21  Joseph Myers  <joseph@codesourcery.com>
6928         2015-10-20  Joseph Myers  <joseph@codesourcery.com>
6929         Convert miscellaneous function definitions to prototype style.
6930         * lib/regcomp.c (re_compile_pattern, re_set_syntax)
6931         (re_compile_fastmap, regcomp, regerror, regfree, re_comp):
6932         * lib/regexec.c (regexec, re_match, re_search, re_match_2, re_search_2)
6933         (re_search_2_stub, re_search_stub, re_set_registers, re_exec)
6934         (re_search_internal):
6935         Convert to prototype-style function definition.
6936         Use internal_function for internal functions.
6938 2016-02-10  Paul Eggert  <eggert@cs.ucla.edu>
6940         stdalign: port to older HP and IBM cc
6941         * lib/stdalign.in.h (_Alignas): Port better to older HP and IBM
6942         C compilers, by checking their version numbers.  These version
6943         numbers appear in MariaDB and in Qt code that dates way back and
6944         that conditiionally uses the 'aligned' attribute.
6946 2016-02-09  Paul Eggert  <eggert@cs.ucla.edu>
6948         stdalign: port to clang 3.7.0
6949         Problem reported by Herbert J. Skuhra in:
6950         http://lists.gnu.org/archive/html/emacs-devel/2016-02/msg00476.html
6951         * lib/stdalign.in.h (alignas): Fix typo that prevented 'alignas'
6952         from being defined on clang 3.7.0, which has a buggy stdalign.h.  See:
6953         https://llvm.org/bugs/show_bug.cgi?id=26547
6955 2016-02-08  Paul Eggert  <eggert@cs.ucla.edu>
6957         readdir_r: now obsolescent
6958         * doc/posix-functions/readdir_r.texi (readdir_r): Now obsolescent.
6959         * lib/mountlist.c (read_file_system_list): Add a FIXME.
6961 2016-02-06  Paul Eggert  <eggert@cs.ucla.edu>
6963         misc: port better to gcc -fsanitize=address
6964         Without these patches, ./configure CFLAGS='-fsanitize=address'
6965         would compute incorrect values.  This patch fixes some (but not all)
6966         test failures with recent glibc, with this configuration.
6967         * m4/acl.m4 (gl_ACL_GET_FILE):
6968         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF):
6969         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS):
6970         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO):
6971         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE):
6972         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
6973         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
6974         * m4/getgroups.m4 (gl_FUNC_GETGROUPS):
6975         * m4/getline.m4 (gl_FUNC_GETLINE):
6976         * m4/malloc.m4 (_AC_FUNC_MALLOC_IF):
6977         * m4/realloc.m4 (_AC_FUNC_REALLOC_IF):
6978         * m4/regex.m4 (gl_REGEX):
6979         * m4/strndup.m4 (gl_FUNC_STRNDUP):
6980         * tests/test-calloc-gnu.c (main):
6981         * tests/test-duplocale.c (main):
6982         * tests/test-getgroups.c (main):
6983         * tests/test-getline.c (main):
6984         * tests/test-inttostr.c (main):
6985         * tests/test-localename.c (test_locale_name)
6986         (test_locale_name_thread, test_locale_name_environ)
6987         (test_locale_name_default):
6988         * tests/test-regex.c (main):
6989         * tests/test-setlocale1.c (main):
6990         * tests/test-stat.h (test_stat_func):
6991         Free heap-allocated storage before exiting.
6992         * m4/asm-underscore.m4 (gl_ASM_SYMBOL_PREFIX):
6993         Don't match *_foo symbols inserted by AddressSanitizer.
6994         * tests/test-regex.c, tests/test-stat.c: Include stdlib.h, for 'free'.
6996 2016-02-02  Jim Meyering  <meyering@fb.com>
6998         verify-tests: also remove stray test-verify.Tpo
6999         * modules/verify-tests (Makefile.am): Arrange for "make clean"
7000         to remove the test-verify.Tpo file that is left behind by
7001         the automake-generated rule upon compilation failure.
7002         Otherwise, that .Tpo file would cause a failed "make distcheck"
7003         at least for grep.
7005 2016-02-02  Paul Eggert  <eggert@cs.ucla.edu>
7007         std-gnu11: new module
7008         This makes it easier for applications to prefer C11 and C++11
7009         to older variants, when compiling C and C++ code.
7010         Unlike most m4/*.m4 files, m4/std-gnu11.m4 is GPLed, as it copies
7011         a nontrivial chunk of GPLed Autoconf source code.
7012         * COPYING: Mention the m4/*.m4 copyright situation.
7013         * MODULES.html.sh (std-gnu11): New module.
7014         * m4/std-gnu11.m4, modules/std-gnu11: New files.
7016 2016-01-25  Paul Eggert  <eggert@cs.ucla.edu>
7018         get-permissions, strftime: fix grammar in comments
7019         * lib/get-permissions.c, lib/strftime.c: Merge into the comments
7020         some grammar fixes Alan Mackenzie made to GNU Emacs.
7022 2016-01-25  Daiki Ueno  <ueno@gnu.org>
7024         gettext: mark as obsolete
7025         Suggested by Paul Eggert in:
7026         https://lists.gnu.org/archive/html/bug-gnulib/2016-01/msg00101.html
7027         * modules/gettext (Status): Mark as obsolete.
7028         (Notice): Suggest to use 'gettext-h' instead.
7029         * modules/gettext-h (Description): Suggest GNU gettext, instead of
7030         the 'gettext' module.
7032 2016-01-24  Paul Eggert  <eggert@cs.ucla.edu>
7034         gnulib-tool: don't give up on ln -s so easily
7035         * gnulib-tool (func_ln_s): Don't give up on a later ln -s merely
7036         because an earlier one failed.  The targets could be on different
7037         file systems.  Problem reported by KO Myung-Hun in:
7038         http://lists.gnu.org/archive/html/bug-gnulib/2016-01/msg00081.html
7040         closedir: fix OS/2-related typos
7041         Problem reported by KO Myung-Hun in:
7042         http://lists.gnu.org/archive/html/bug-gnulib/2016-01/msg00107.html
7043         * m4/closedir.m4 (gl_FUNC_CLOSEDIR): Fix a couple of typos
7044         in the last couple of changes.
7046 2016-01-24  KO Myung-Hun  <komh78@gmail.com>
7048         openat_proc_name: fix that last '/' is overwritten on OS/2 kLIBC
7049         * lib/openat-proc.c (openat_proc_name): Increase dirlen by 1 after
7050         copying a directory.
7052 2016-01-24  Paul Eggert  <eggert@cs.ucla.edu>
7054         regex: treat [x] as x if x is a unibyte encoding error
7055         Problem reported by Aharon Robbins in:
7056         http://lists.gnu.org/archive/html/bug-gnulib/2016-01/msg00091.html
7057         * lib/regcomp.c (parse_byte) [!_LIBC && RE_ENABLE_I18N]: New function.
7058         (build_range_exp) [!_LIBC && RE_ENABLE_I18N]: Use it.
7060         closedir, dirfd, opendir: port to OpenSolaris 5.10
7061         * m4/closedir.m4 (gl_FUNC_CLOSEDIR):
7062         * m4/dirfd.m4 (gl_FUNC_DIRFD):
7063         * m4/opendir.m4 (gl_FUNC_OPENDIR):
7064         Don't use ${word##pat} substitution, as it doesn't work in
7065         OpenSolaris 5.10 /bin/sh.  Problem reported by Assaf Gordon in:
7066         http://bugs.gnu.org/22443#11
7068 2016-01-23  Paul Eggert  <eggert@cs.ucla.edu>
7070         bootstrap: use American spelling
7071         * build-aux/bootstrap: Honor American spelling.
7073 2016-01-22  Karl Berry  <karl@freefriends.org>
7075         * doc/posix-functions/localtime.texi,
7076         * doc/posix-functions/localtime_r.texi: @item needed for @itemize text.
7078 2016-01-21  Bruno Haible  <bruno@clisp.org>
7080         hash-pjw-bare: fix comment
7081         * lib/hash-pjw-bare.h (hash_pjw_bare): Fix comment.
7083         wcwidth: Replace also on OpenBSD 5.8
7084         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check the value of wcwidth(0xFF1A).
7085         * doc/posix-functions/wcwidth.texi: Update.
7087 2016-01-20  Pádraig Brady  <P@draigBrady.com>
7089         gnu-web-doc-update: fix addition of new files
7090         If there were already added (emnpty) dirs,
7091         then cvs aborts the add with the message:
7092           cvs [add aborted]: there is a version in <./dirname> already
7093         * build-aux/gnu-web-doc-update: Add directories separately
7094         to the addition of files, to avoid the above issue
7095         impacting the addition of files.
7097 2016-01-19  Daiki Ueno  <ueno@gnu.org>
7099         utimens-tests: avoid pulling gettext .m4 files
7100         Although this is not the right fix to the original problem:
7101         http://lists.gnu.org/archive/html/bug-gnulib/2013-01/msg00086.html
7102         it makes it possible again for consumer projects to use arbitrary
7103         version of gettext, through the steps described at:
7104         http://www.gnu.org/software/gnulib/manual/html_node/gettextize-and-autopoint.html
7105         See here for details:
7106         https://lists.gnu.org/archive/html/bug-gnulib/2016-01/msg00079.html
7107         * modules/futimens-tests (Depends-on): Add 'gettext-h' in place of
7108         'gettext'.
7109         * modules/utimens-tests (Depends-on): Add 'gettext-h' in place of
7110         'gettext'.
7112 2016-01-18  Paul Eggert  <eggert@cs.ucla.edu>
7114         regex: pacify static checkers
7115         Problem and draft fix reported by Aharon Robbins in:
7116         http://lists.gnu.org/archive/html/bug-gnulib/2016-01/msg00082.html
7117         * lib/regcomp.c (build_charclass_op, create_tree) [lint]:
7118         Clear memory to pacify static checkers.
7120         regex: fix [ diagnostic
7121         Problem and fix reported by Aharon Robbins in:
7122         http://lists.gnu.org/archive/html/bug-gnulib/2016-01/msg00082.html
7123         * lib/regcomp.c (REG_EBRACK_IDX): Fix misleading diagnostic about [.
7125         regex: fix memory leaks
7126         Problem and draft fix reported by Aharon Robbins in:
7127         http://lists.gnu.org/archive/html/bug-gnulib/2016-01/msg00082.html
7128         * lib/regcomp.c (build_range_exp, build_charclass_op)
7129         * lib/regex_internal.c (re_dfa_add_node):
7130         Fix memory leak on failure.
7132 2016-01-18  Pádraig Brady  <P@draigBrady.com>
7134         fts: don't unconditionally use leaf optimization for NFS
7135         NFS st_nlink are not accurate on all implementations,
7136         leading to aborts() if that assumption is made.
7137         See <https://bugzilla.redhat.com/1299169>
7138         * lib/fts.c (leaf_optimization_applies): Remove NFS from
7139         the white list, and document the issue.
7141 2016-01-15  Paul Eggert  <eggert@cs.ucla.edu>
7142             KO Myung-Hun  <komh@chollian.net>
7144         gnulib-tool: don't assume ln -s works
7145         * gnulib-tool (func_ln_s): New function.
7146         (func_ln): Use it.
7148 2016-01-15  KO Myung-Hun  <komh@chollian.net>
7150         utimes: detect utimes() correctly on OS/2 kLIBC
7151         utimes() of OS/2 kLIBC has some limitations.
7152         1. OS/2 itself supports a file date since 1980 year in local time.
7153         2. OS/2 itself supports only even seconds for a file time.
7154         3. utimes() of OS/2 kLIBC does not work on an opened file.
7155         * m4/utimes.m4: Detect utimes() correctly on OS/2 kLIBC.
7156         * doc/posix-functions/utimes.texi: Document the above limitations of
7157         utimes() on OS/2 kLIBC.
7159 2016-01-15  Paul Eggert  <eggert@cs.ucla.edu>
7160             KO Myung-Hun  <komh@chollian.net>
7162         openat_proc_name: port to OS/2 kLIBC
7163         OS/2 kLIBC provides a function to retrive a path from a fd. Use it
7164         instead of /proc/self/fd.
7165         * lib/openat-proc.c (openat_proc_name):
7166         Don't assume file name length is less than INT_MAX.
7167         Port to OS/2 kLIBC with __libc_Back_ioFHToPath().
7169 2016-01-14  KO Myung-Hun  <komh@chollian.net>
7171         stdint: check _INTPTR_T_DECLARED for intptr_t etc.
7172         OS/2 kLIBC's stdint.h defines _INTPTR_T_DECLARED and needs its own
7173         definitions of intptr_t and uintptr_t (which use int and unsigned)
7174         to avoid clashes with declarations of system functions like sbrk.
7175         * lib/stdint.in.h (intptr_t, uintptr_t): Check
7176         _INTPTR_T_DECLARED before defining them.
7178         opendir, closedir, dirfd, fdopendir: port to OS/2 kLIBC
7179         * lib/closedir.c (closedir): Unregister fd if closedir() succeeds.
7180         * lib/dirent.in.h (_gl_register_dirp_fd, _gl_unregister_dirp_fd):
7181         Declare on kLIBC.
7182         * lib/dirfd.c (struct dirp_fd_list): New. Structures to keep track of
7183         fd associated with dirp.
7184         (_gl_register_dirp_fd): New. Register fd associated with dirp to
7185         dirp_fd_list.
7186         (_gl_unregister_dirp_fd): New. Unregister fd with closing it.
7187         (dirfd): Implemented for kLIBC.
7188         * lib/fdopendir.c (fdopendir): Implemented for kLIBC.
7189         * lib/opendir.c (opendir): New. Register fd and dirp pair if open()
7190         succeeds.
7191         * m4/closedir.m4 (gl_FUNC_CLOSEDIR): Replace if OS/2.
7192         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
7193         (REPLACE_DIRFD): Define to 1 if replaced.
7194         * m4/opendir.m4 (gl_FUNC_OPENDIR): Likewise.
7195         * modules/closedir (Depends-on): Add dirfd.
7196         * modules/dirfd (Depends-on): Add 'test $REPLACE_DIRFD = 1' to errno
7197         condition.
7198         (configure.ac): Add dirfd to LIBOBJS if $REPLACE_DIRFD = 1 as well.
7199         * modules/opendir (Depends-on): Add dirfd.
7201         dup, dup2, fcntl: support a directory fd on OS/2 kLIBC
7202         On OS/2 kLIBC, dup(), dup2() and fcntl() do not work on a directory fd.
7203         * lib/dup.c (dup_nothrow): New.
7204         * lib/dup2.c (klibc_dup2dirfd): New. dup2() for a directory fd.
7205         (klibc_dup2): New.
7206         * lib/fcntl.c (klibc_fcntl): New.
7207         * m4/dup.m4 (gl_FUNC_DUP): Check if dup() works on a directory fd.
7208         * m4/dup2.m4 (gl_FUNC_DUP2): Check if dup2() works on a directory fd.
7209         * m4/fcntl.m4 (gl_FUNC_FCNTL): Check if F_DUPFD works on a directory
7210         fd.
7212         pipe_filter_ii_execute: port to OS/2 kLIBC
7213         Pipes on kLIBC do not support O_NONBLOCK like Win32.
7214         * lib/pipe-filter-ii.c (start_wrapper, _beginthreadex, CloseHandle,
7215         WaiForSingleObject, WaitForMultipleObjects): New on OS/2 kLIBC.
7216         Reuse Win32 code on OS/2 kLIBC.
7217         * lib/spawn-pipe.c: Reuse Win32 code on OS/2 kLIBC.
7218         * lib/w32spawn.h: Do not include windows.h on OS/2 kLIBC.
7220         wchar: fix "conflicting types" error for __wcwidth on OS/2 kLIBC
7221         On OS/2 kLIBC, wcwidth is a macro that expands to the name of a
7222         static inline function.  The implementation of wcwidth in wcwidth.c
7223         causes a "conflicting types" error.
7224         * lib/wchar.in.h: Undefine wcwidth on OS/2 kLIBC.
7226         w32spawn: clear SHELL_SPECIAL_CHARS and SHELL_SPACE_CHAR on OS/2 kLIBC
7227         spawn() on OS/2 kLIBC is not silly like one on Windows
7228         * libc/w32spawn.h (SHELL_SPECIAL_CHARS, SHELL_SPACE_CHAR): Set both to
7229         empty string on OS/2 kLIBC.
7231         pipe-filter-aux: undefine HAVE_SELECT on KLIBC
7232         On OS/2 kLIBC, select() works only on sockets.
7233         * lib/pipe-filter-aux.h (HAVE_SELECT): Undefine on OS/2 kLIBC.
7235         binary-io: don't put fd in binary mode if it is a console on EMX
7236         * lib/binary-io.h (SET_BINARY): Don't put fd in binary mode if it is
7237         a console on EMX.
7239 2016-01-15  Pádraig Brady  <P@draigBrady.com>
7241         doc: mention unfixed issues with unsupported localtime() values
7242         * doc/posix-functions/localtime.texi: Mention that FreeBSD 10
7243         returns nonsense for localtime(2^56).
7244         * doc/posix-functions/localtime_r.texi: Likewise.
7246 2016-01-14  Pádraig Brady  <P@draigBrady.com>
7248         doc: mention setlocale() issues on OpenBSD
7249         * doc/posix-functions/setlocale.texi: Mention setlocale(LC_ALL,"")
7250         never fails, and the need to check categories individually.
7252 2016-01-14  Pádraig Brady  <P@draigBrady.com>
7254         sig2str: list all signals on FreeBSD >= 7
7255         FreeBSD >= 7 is contravening POSIX by not defining NSIG
7256         to the maximal statically defined signal value.
7257         It does define _SIG_MAXSIG though, so base SIGNUM_BOUND on that.
7258         * lib/sig2str.h (SIGNUM_BOUND): Define to (_SIG_MAXSIG - 2)
7259         where available, even when NSIG is defined.
7261 2016-01-13  Paul Eggert  <eggert@cs.ucla.edu>
7263         acl-permissions: port to USE_ACL==0 platforms
7264         I ran into this problem when building bleeding-edge GNU Emacs
7265         with gcc -fsanitize=address on Fedora 23.  On this platform
7266         the ACL library does not pass the 'configure' test and Emacs
7267         then does not build due in part to what appear to be typos in the
7268         ACL part of Gnulib.
7269         * lib/acl-internal.c (free_permission_context):
7270         * lib/acl-internal.h (struct permission_context):
7271         Test whether USE_ACL is nonzero, not whether it is defined.
7273 2016-01-12  Martin Sebor  <msebor@redhat.com>
7275         mktime: rename macro to avoid glibc clash
7276         * lib/mktime.c [DEBUG] (DEBUG): Rename to DEBUG_MKTIME.  See:
7277         https://sourceware.org/ml/libc-alpha/2016-01/msg00267.html
7279 2016-01-12  Paul Eggert  <eggert@cs.ucla.edu>
7281         Port "$@" to OpenIndiana ksh93
7282         In http://lists.gnu.org/archive/html/bug-autoconf/2015-12/msg00000.html
7283         Pavel Raiskup reports that ${1+"$@"} runs afoul of a bug in /bin/sh
7284         (derived from ksh 93t+ 2010-03-05).  ${1+"$@"} works around an ancient
7285         bug long-dead shells, so remove the workaround.
7286         * build-aux/announce-gen, build-aux/do-release-commit-and-tag:
7287         * build-aux/gitlog-to-changelog, build-aux/gnu-web-doc-update:
7288         * build-aux/prefix-gnulib-mk, build-aux/update-copyright:
7289         * build-aux/useless-if-before-free, tests/test-update-copyright.sh:
7290         Use "$@" instead of ${1+"$@"}.
7292         Port Universal Time settings to strict POSIX
7293         * build-aux/announce-gen, build-aux/bootstrap:
7294         * build-aux/do-release-commit-and-tag, build-aux/git-version-gen:
7295         * build-aux/gitlog-to-changelog, build-aux/gnu-web-doc-update:
7296         * build-aux/gnupload, build-aux/mkinstalldirs:
7297         * build-aux/move-if-change, build-aux/prefix-gnulib-mk:
7298         * build-aux/update-copyright, build-aux/useless-if-before-free:
7299         * build-aux/vc-list-files, tests/test-strftime.c:
7300         Use TZ="UTC0", not TZ="UTC".  Either works on GNU platforms,
7301         but POSIX says the behavior of TZ="UTC" is undefined.
7303 2016-01-02  Paul Eggert  <eggert@cs.ucla.edu>
7305         msvc-inval: fix problem with unset shell var
7306         Problem reported by Karl Berry in:
7307         http://lists.gnu.org/archive/html/bug-gnulib/2016-01/msg00004.html
7308         * modules/msvc-inval (Depends-on):
7309         AC_REQUIRE gl_MSVC_INVAL instead of merely calling it.
7310         * modules/msvc-nothrow (Depends-on): Likewise for gl_MSVC_NOTHROW.
7312 2016-01-01  Pádraig Brady  <P@draigBrady.com>
7314         tests: for compare_(), use cmp -s where available
7315         * tests/init.sh (compare_): Only fall back to cmp without
7316         the POSIX defined -s option, where this is not available.
7318 2016-01-01  Paul Eggert  <eggert@cs.ucla.edu>
7320         version-etc: new year
7321         * build-aux/gendocs.sh (version):
7322         * doc/gendocs_template:
7323         * doc/gendocs_template_min:
7324         * doc/gnulib.texi:
7325         * lib/version-etc.c (COPYRIGHT_YEAR):
7326         Update copyright dates by hand in templates and the like.
7327         * all files: Run 'make update-copyright'.
7329 2015-12-31  Paul Eggert  <eggert@cs.ucla.edu>
7331         human: fix output buffer overrun by 1
7332         * lib/human.c (human_readable): Fix off-by-one typo in buffer
7333         calculation that could lead to a one-byte buffer overrun.
7335 2015-12-28  Daiki Ueno  <ueno@gnu.org>
7337         maint: fix operator precedence in mbrtowc test
7338         This is a fix for test breakage introduced by commit 45228d96; the
7339         equality expression must be parenthesized when negated with '!',
7340         otherwise we always get:
7342           test-mbrtowc.c:49: assertion 'ret == (size_t)(-2)' failed
7344         * m4/mbrtowc.m4 (gl_MBRTOWC_EMPTY_INPUT): Negate the entire expression.
7345         * m4/mbrlen.m4 (gl_MBRLEN_EMPTY_INPUT): Likewise.
7347 2015-12-23  James Youngman  <jay@gnu.org>
7349         regexprops-generic: update from regex.h
7350         * doc/regexprops-generic.texi: update by running the regexprops binary
7351         from findutils (the command line is 'regexprops "Regular Expressions"
7352         generic').  The recent (ish) change (5a5a9388) to regex.h aligning
7353         gnulib with GNU grep had made this document out-of-date.
7355 2015-12-23  Pádraig Brady  <P@draigBrady.com>
7357         strftime-tests: avoid false failure on OS X
7358         * tests/test-strftime.c (struct localtime_rz_test): Add an
7359         ahistorical member which is used to warn rather than fail
7360         when tm_isdst isn't set for such entries.  This is the case for
7361         "1970-01-01 13:00:00 +1300 (NZDT)" on Darwin 13/14 at least.
7363 2015-12-20  Kamil Dudka  <kdudka@redhat.com>
7365         fts: ensure leaf optimization is used for NFS
7366         NFS provides usable dirent.d_type but not necessarily for all entries
7367         of large directories.  See <https://bugzilla.redhat.com/1252549>
7368         * lib/fts.c (leaf_optimization_applies): Append NFS on the white list.
7370 2015-12-20  Pádraig Brady  <P@draigBrady.com>
7372         fts: enable leaf optimization for XFS
7373         XFS provides usable dirent.d_type only for DT_DIR,
7374         but the noleaf optimization still applies.
7375         * lib/fts.c (leaf_optimization_applies): Add XFS to the white list.
7377 2015-12-17  Paul Eggert  <eggert@cs.ucla.edu>
7379         intprops: comment fix
7380         * lib/intprops.h: Fix comment.  Reported by Pádraig Brady in:
7381         http://lists.gnu.org/archive/html/bug-gnulib/2015-12/msg00013.html
7383         intprops-test: work around GCC bug 68971
7384         Problem reported by Pádraig Brady in:
7385         http://lists.gnu.org/archive/html/bug-gnulib/2015-12/msg00011.html
7386         * tests/test-intprops.c: Ignore -Woverflow in GCC 6 and earlier.
7387         (main): Add a case that better tests 64-bit long in this area.
7389 2015-12-09  Pavel Raiskup  <praiskup@redhat.com>
7391         gnulib-tool: allow multiple --local-dir usage
7392         * gnulib-tool: Use --local-dir to construct compound
7393         $local_gnulib_path path instead of $local_gnulib_dir.  Determine
7394         PATH_SEPARATOR early.
7395         (local_gnulib_dir): Rename into $local_gnulib_path everywhere.
7396         (func_gnulib_dir): Cut out PATH_SEPARATOR detection code into
7397         func_determine_path_separator because that needs to be detected
7398         earlier now.
7399         (func_determine_path_separator): New function.
7400         (func_path_foreach, func_path_foreach_inner): New functions.
7401         (func_path_prepend, func_path_append): Likewise.
7402         (func_lookup_local_file, func_lookup_local_file_cb): Likewise.
7403         (func_lookup_file, func_all_modules): Use new functions to work
7404         with local_gnulib_path.
7405         (func_modules_in_dir, func_exists_module): New callbacks for
7406         func_path_foreach.
7407         (func_exists_module, func_get_tests_module): Likewise.
7408         (func_is_local_file, func_should_symlink): New helper methods.
7409         (func_add_file, func_update_file): Use new func_should_symlink
7410         instead, DRY.
7411         (func_reconstruct_cached_local_gnulib_path): New helper.
7412         (func_reconstruct_cached_dir): New callback.
7413         (func_import): The cached_local_gnulib_dir renamed to
7414         cached_local_gnulib_path similarly to local_gnulib_dir.
7415         Use new func_reconstruct_cached_local_gnulib_path.
7416         (func_count_relative_local_gnulib_path): New sub-method.
7417         (func_create_testdir): Use func_should_symlink, DRY.
7418         (func_create_megatestdir): Use new functions to work with
7419         local_gnulib_path correctly.
7420         (func_append_local_dir): New helper.
7422 2015-12-08  Pádraig Brady  <P@draigBrady.com>
7424         fix freadptr to work with ungetc on all uClibc configs
7425         Reported at https://bugs.busybox.net/show_bug.cgi?id=4099
7426         where GNU coreutils cut(1) generates invalid output on uClibc
7427         when __UCLIBC_HAS_STDIO_GETC_MACRO__ is not defined.
7428         * lib/freadptr.c (freadptr): Return NULL if there are
7429         ungotten chars.  In this case freadseek() will iterate
7430         again to process the ungotten character.
7432 2015-11-13  Paul Eggert  <eggert@cs.ucla.edu>
7434         xalloc-oversized: improve performance with GCC 5
7435         * lib/xalloc-oversized.h (xalloc_oversized):
7436         Improve performance with GCC 5 by using __builtin_mul_overflow.
7438 2015-11-10  Paul Eggert  <eggert@cs.ucla.edu>
7440         intprops: new public macro EXPR_SIGNED
7441         Emacs can use this macro, so make it public.
7442         * doc/intprops.texi (Arithmetic Type Properties): Rename from
7443         'Integer Type Determination', since some of these macros apply
7444         to non-integer types.  Clarify what kinds of constant expressions
7445         these macros return.  Say when the arguments can be non-integers.
7446         Mention newly published macro EXPR_SIGNED.
7447         * lib/intprops.h (EXPR_SIGNED): Rename from _GL_INT_SIGNED, to
7448         make it public.  All uses changed.
7450         intprops: fix typo in clang port
7451         * lib/intprops.h (_GL_INT_OP_WRAPV): Fix misspelling of
7452         '__builtin_add_overflow' that is not caught by compiler.
7454 2015-11-05  Paul Eggert  <eggert@cs.ucla.edu>
7456         test-timespec: fix typo in previous change
7457         * tests/test-timespec.c (main): Fix typo that reduced test quality.
7459         timespec-sub: fix overflow bug; add tests
7460         * lib/timespec-add.c (timespec_add):
7461         * lib/timespec-sub.c (timespec_sub):
7462         Work even if time_t is narrower than int (a theoretical
7463         possibility).  Redo code for a bit more clarity.
7464         * lib/timespec-sub.c (timespec_sub):
7465         Fix off-by-2 bug if a.tv_sec == TYPE_MINIMUM (time_t) and 0 < b.tv_sec.
7466         * modules/timespec-tests, tests/test-timespec.c: New files.
7468         intprops-test: suppress -Woverlength-strings
7469         Problem reported by Pádraig Brady in:
7470         http://lists.gnu.org/archive/html/bug-gnulib/2015-11/msg00008.html
7471         It is not worth the hassle to port this test to compilers that
7472         cannot handle long strings in diagnostics.
7473         * tests/test-intprops.c [__GNUC__]: Ignore -Woverlength-strings.
7475 2015-11-03  Pádraig Brady  <P@draigBrady.com>
7477         quotearg: add quotearg_n_style_colon()
7478         This quotes with default options of the specified style,
7479         but with quoting enabled for instances of ':'.
7480         * lib/quotearg.h (quotearg_n_style_colon): Description and declaration.
7481         * lib/quotearg.c (quotearg_n_style_colon): New function implementation.
7483 2015-11-04  Paul Eggert  <eggert@cs.ucla.edu>
7485         intprops: revise _WRAPV macros, revert _OVERFLOW
7486         The incompatible changes to the _OVERFLOW macros were too much of
7487         a hassle in practice, so revert them.  Instead, change the new
7488         _WRAPV macros to make them closer in behavior to GCC 5's new
7489         builtin_add_overflow etc. functions.  No other software was using
7490         these newly-added macros yet, so this should be OK.
7491         * NEWS: Revert previous change, since the incompatible change
7492         has been reverted, and nobody used the incompatible version.
7493         * doc/intprops.texi (Wraparound Arithmetic, Integer Type Overflow):
7494         Document revised behavior.
7495         (Integer Range Overflow): Adjust example to match above revisions.
7496         * lib/intprops.h (INT_ADD_OVERFLOW, INT_SUBTRACT_OVERFLOW)
7497         (INT_MULTIPLY_OVERFLOW): Revert previous change, so that
7498         these can be used in integer constant expressions again.
7499         (INT_CONST_ADD_OVERFLOW, INT_CONST_SUBTRACT_OVERFLOW)
7500         (INT_CONST_MULTIPLY_OVERFLOW): Remove, as these are no longer
7501         needed.
7502         (INT_CONST_ADD_WRAPV, INT_CONST_SUBTRACT_WRAPV)
7503         (INT_NEGATE_WRAPV, INT_CONST_MULTIPLY_WRAPV, INT_DIVIDE_WRAPV)
7504         (INT_REMAINDER_WRAPV, INT_LEFT_SHIFT_WRAPV):
7505         Remove, as they did not seem that useful.
7506         (INT_ADD_WRAPV, INT_SUBTRACT_WRAPV, INT_MULTIPLY_WRAPV)
7507         (_GL_INT_OP_WRAPV, _GL_INT_OP_WRAPV_LONGISH)
7508         (_GL_INT_OP_WRAPV_VIA_UNSIGNED):
7509         Support new semantics.
7510         (__has_builtin): New macro, if not alreay defined.
7511         (_GL__GENERIC_BOGUS, _GL_INT_OP_CALC, _GL_INT_OP_CALC1): New macros.
7512         * tests/test-intprops.c (INT_CONST_DIVIDE_OVERFLOW)
7513         (INT_CONST_REMAINDER_OVERFLOW, INT_CONST_LEFT_SHIFT_OVERFLOW)
7514         (INT_CONST_DIVIDE_WRAPV, INT_CONST_REMAINDER_WRAPV)
7515         (INT_CONST_LEFT_SHIFT_WRAPV): Remove.
7516         (CHECK_SBINOP, CHECK_SSUM, CHECK_SUM1, CHECK_SSUM1)
7517         (CHECK_SDIFFERENCE, CHECK_SPRODUCT, CHECK_PRODUCT1, CHECK_SPRODUCT1):
7518         New macros.
7519         (CHECK_BINOP, CHECK_UNOP, main, CHECK_SUM): Test new behavior.
7521 2015-11-03  Jim Meyering  <meyering@fb.com>
7523         intprops: add parentheses for when OP has precedence lower than "-"
7524         * lib/intprops.h (_GL_INT_OP_WRAPV_VIA_UNSIGNED): In "a OP b - c",
7525         "a OP b" must be parenthesized for when OP is like "<<", which has
7526         lower precedence than the following "-". Reported by Pádraig Brady.
7528 2015-11-03  Pádraig Brady  <P@draigBrady.com>
7530         quotearg: constify get_quoting_style parameters
7531         * lib/quotearg.h (get_quoting_style): Mark parameter as const.
7532         * lib/quotearg.c (get_quoting_style): Likewise.
7534 2015-11-02  Pádraig Brady  <P@draigBrady.com>
7536         quotearg: add support for $'' shell escaping
7537         * lib/quotearg.h: Add "shell-escape" and "shell-escape-always"
7538         items and descriptions.
7539         * lib/quotearg.c (quotearg_buffer_restyled): Add support for the
7540         above types by quoting like "shell", but using $'...' syntax
7541         for non printable characters, which should provide unambiguous
7542         printable output for any input.
7543         * tests/test-quotearg-simple.c: Update accordingly.
7545 2015-11-02  Pádraig Brady  <P@draigBrady.com>
7547         maint: use a more standard return from mbrtowc test
7548         * m4/mbrtowc.m4 (gl_MBRTOWC_EMPTY_INPUT): Don't return 1
7549         from the test program as this is non standard and often
7550         indicates an unhandled case in the test program.
7551         * m4/mbrlen.m4 (gl_MBRLEN_EMPTY_INPUT): Likewise.
7553 2015-10-30  Paul Eggert  <eggert@cs.ucla.edu>
7555         intprops: add WRAPV and const flavors for GCC 5
7556         If available, use GCC 5's builtin functions for efficient integer
7557         overflow checking.  Also, add macros like INT_ADD_WRAPV efficently
7558         and safely compute the low-order bits of the correct answer.
7559         A downside of these efficient functions is that they cannot be
7560         used in constant expressions, so add macros like INT_CONST_ADD_OVERFLOW
7561         and INT_CONST_ADD_WRAPV that can be used even in constant expressions.
7562         * NEWS: Document the incompatible changes to INT_ADD_OVERFLOW etc.
7563         * doc/intprops.texi (Integer Properties, Integer Type Overflow):
7564         Document the changes.
7565         (Wraparound Arithmetic): New section.
7566         (Integer Range Overflow):
7567         Put this subsection last, since it's least useful.
7568         * lib/intprops.h (INT_CONST_ADD_OVERFLOW)
7569         (INT_CONST_SUBTRACT_OVERFLOW, INT_CONST_MULTIPLY_OVERFLOW):
7570         New macros, with the meaning that INT_ADD_OVERFLOW etc. used to have.
7571         (INT_CONST_ADD_WRAPV, INT_CONST_SUBTRACT_WRAPV)
7572         (INT_NEGATE_WRAPV, INT_CONST_MULTIPLY_WRAPV, INT_DIVIDE_WRAPV)
7573         (INT_REMAINDER_WRAPV, _GL_INT_OP_WRAPV, _GL_EXPR_CAST)
7574         (_GL_INT_OP_WRAPV_LONGISH, INT_ADD_WRAPV, INT_SUBTRACT_WRAPV)
7575         (INT_MULTIPLY_WRAPV, _GL_OP_OVERFLOW, _GL_OP_WRAPV, _GL_OP_WRAPV_GENSYM):
7576         New macros.
7577         (INT_ADD_OVERFLOW, INT_SUBTRACT_OVERFLOW, INT_MULTIPLY_OVERFLOW):
7578         Generate calls to GCC builtins if available, for speed.
7579         * tests/test-intprops.c (INT_CONST_DIVIDE_OVERFLOW)
7580         (INT_CONST_REMAINDER_OVERFLOW, INT_CONST_LEFT_SHIFT_OVERFLOW)
7581         (INT_CONST_DIVIDE_WRAPV, INT_CONST_REMAINDER_WRAPV)
7582         (INT_CONST_LEFT_SHIFT_WRAPV): New macros.
7583         (main, CHECK_BINOP, CHECK_UNOP, CHECK_SUM, CHECK_PRODUCT)
7584         (CHECK_QUOTIENT, CHECK_REMAINDER):
7585         Test WRAPV and CONST flavors (when available) too.
7587 2015-10-30  Pádraig Brady  <P@draigBrady.com>
7589         doc: use extended timezone format in iso-8601 example
7590         * doc/parse-datetime.texi: The standard states that extended format
7591         is to be used consistently throughout.
7592         Note that lib/parse-datetime.y can handle either tz format.
7594 2015-10-25  Paul Eggert  <eggert@cs.ucla.edu>
7596         stdalign: port to Sun C 5.9
7597         * doc/posix-headers/stdalign.texi: Document this.
7598         * lib/stdalign.in.h (_Alignas): Sun C 5.9 also supports
7599         __attribute__ ((__aligned__ (...))).
7601 2015-10-20  Paul Eggert  <eggert@cs.ucla.edu>
7603         time_rz: fix comment about tzalloc
7604         * lib/time_rz.c (tzalloc): Fix comment.
7606 2015-10-18  Paul Eggert  <eggert@cs.ucla.edu>
7608         stdalign: work around pre-4.9 GCC x86 bug
7609         * lib/stdalign.in.h (_Alignof): Work around bug in pre-4.9 GCC on
7610         x86, when -std=gnu11 is used.  Problem reported by Jim Meyering in:
7611         http://lists.gnu.org/archive/html/bug-gnulib/2015-10/msg00038.html
7613 2015-10-18  Pádraig Brady  <P@draigBrady.com>
7615         maint.mk: sc_tight_scope: remove extraneous expressions
7616         * top/maint.mk (tight_scope): This is not really required since
7617         commit 3ef58f46 as sed_wrap ensures we don't get an empty expression
7618         that matches all nm entries.  But it does remove extraneous entries
7619         that may be confusing or cause issue in future maintenance.
7621 2015-10-18  Paul Eggert  <eggert@cs.ucla.edu>
7623         time_rz: return NULL if localtime_r fails
7624         * lib/time_rz.c (localtime_rz): Return NULL if localtime_r fails,
7625         while still attempting to pacify bleeding-edge GCC.
7627         fts: port to C11 alignof
7628         * doc/posix-headers/stdalign.texi (stdalign.h):
7629         Document the C11 restriction.
7630         * lib/fts.c: Include stddef.h, for max_align_t.
7631         (fts_alloc): Align using max_align_t, not FTSENT.
7632         * modules/fts (Depends-on): Add stddef.
7634 2015-10-18  Jim Meyering  <meyering@fb.com>
7636         time_rz: avoid warning from bleeding-edge gcc's -Wnonnull
7637         Compiling with gcc version 6.0.0 20151017 (experimental) (GCC), I
7638         would see this:
7640         lib/time_rz.c: In function 'localtime_rz':
7641         lib/time_rz.c:292:15: error: nonnull argument 'tm' compared to NULL \
7642           [-Werror=nonnull]
7643                    if (tm && !save_abbr (tz, tm))
7644                        ^
7646         That was complaining about "tm" because it is a parameter that was
7647         declared with the __nonnull__ attribute.
7648         * lib/time_rz.c (localtime_rz): Don't bother setting "tm" to the
7649         result of localtime_r.
7651 2015-10-17  Jim Meyering  <meyering@fb.com>
7653         maint.mk: _gl_TS_function_match: fix "extern" name extracting regexp
7654         * top/maint.mk (_gl_TS_function_match): This heuristic extern-function-
7655         name-extraction regexp mistakenly used \S+, and would mistakenly
7656         extract "*F" from "extern int *F()" rather than the desired "F".
7657         Use \w+ instead.
7659 2015-10-17  Jim Meyering  <meyering@fb.com>
7661         maint.mk: sc_tight_scope: factor and support OS X
7662         * top/maint.mk (_gl_tight_scope): Address three issues:
7663         - factor out four instances of code that wraps a string in "^...$"
7664         - allow nm-reported symbol names to have an optional leading "_"
7665         - add "main" to the list of ignored variable names, because on os x,
7666         "main" has nm-reported type "S" in the variable-checking section.
7668 2015-10-16  Dmitry Smirnov  <onlyjob@member.fsf.org>
7670         safe-alloc-tests: fix typo in license header
7671         * tests/test-safe-alloc.c: Mention LGPL 2.1, not 3.1
7673 2015-10-15  Simon Reinhardt  <simon@keinstein.org>
7675         copy-file: fix mem leak in error case
7676         * lib/copy-file.c (qcopy_file_preserving): Free the 32KiB buffer
7677         upon error opening or performing I/O to the src and dest files.
7679 2015-10-15  Mike Frysinger  <vapier@chromium.org>
7681         localename: control langinfo.h inclusion
7682         This header is only used to work around buggy behavior in old
7683         versions of glibc, so do not include it all the time.  Otherwise
7684         we get build failures on systems that do not provide langinfo.h.
7685         * lib/localename.c: Wrap langinfo.h include with same ifdefs used
7686         in the source later on.
7687         The patch was originally submitted to gettext as:
7688         https://lists.gnu.org/archive/html/bug-gettext/2015-10/msg00011.html
7690 2015-10-13  Paul Eggert  <eggert@cs.ucla.edu>
7692         binary-io, math, pthread, sys_socket, u64, unistd: port to strict C
7693         * lib/binary-io.c, lib/math.c, lib/pthread.c, lib/sys_socket.c:
7694         * lib/u64.c, lib/unistd.c:
7695         Append 'typedef int dummy;', to pacify compilers that are picky
7696         about empty translation units.
7698 2015-10-12  Pino Toscano  <ptoscano@redhat.com>
7700         accept4-tests: fix to avoid non portable flags
7701         * tests/test-accept4.c (main): Pass only SOCK_* flags to accept4(),
7702         as they are the only documented ones, and passing others may trigger
7703         EINVAL (seen on FreeBSD 10.1-RELEASE).
7704         * doc/glibc-functions/accept4.texi: Mention that we don't provide
7705         the SOCK_CLOEXEC or SOCK_NONBLOCK defines.
7707 2015-10-06  Pavel Raiskup  <praiskup@redhat.com>
7709         gnulib-tool: fix tests of 'extensions' module
7710         This complements f8fe25fab60e3c687a124 commit.
7711         * gnulib-tool (func_emit_pre_early_macros): New function, it wraps
7712         emitting of initial gl_EARLY macros.
7713         (func_import, func_create_testdir): All dumps of gl_PROG_AR_RANLIB
7714         replaced with func_emit_pre_early_macros call.
7716 2015-10-06  Paul Eggert  <eggert@cs.ucla.edu>
7718         unicase/locale-language: fix typo in utf-8 cookie
7719         * lib/unicase/locale-languages.gperf: Fix gperf input file format.
7720         Problem reported by Zbigniew Jędrzejewski-Szmek.
7722 2015-10-02  Paul Eggert  <eggert@cs.ucla.edu>
7724         xalloc: do not worry about GCC 5 warning on 32 bit
7725         * lib/xalloc.h: Revert previous change.
7726         I found a better way to fix this in coreutils.
7728 2015-10-02  Pádraig Brady  <P@draigBrady.com>
7730         xalloc: avoid GCC 5.1 warning on 32 bit
7731         * lib/xalloc.h: Disable -Wstrict-overflow for uses of
7732         xalloc_oversized(), which was seen to give this warning
7733         on GCC 5.1 on 32 bit: "assuming signed overflow does not occur
7734         when simplifying conditional".
7736 2015-10-02  Daiki Ueno  <ueno@gnu.org>
7738         uniname/uniname-tests: avoid compiler warnings
7739         * tests/uniname/test-uninames.c (fill_names, fill_aliases): Remove
7740         unused local variables.
7741         (test_alias_lookup): Fix alias name display in failure cases.
7743 2015-09-26  Paul Eggert  <eggert@cs.ucla.edu>
7745         c-ctype: do not worry about EBCDIC + char signed
7746         Drop support for EBCDIC with char being signed, as this breaks too
7747         many programs.  Problem reported by Ben Pfaff in:
7748         http://lists.gnu.org/archive/html/bug-gnulib/2015-09/msg00053.html
7749         * lib/c-ctype.h: Verify that we are not using EBCDIC with
7750         char being signed.
7751         (_C_CTYPE_LOWER_A_THRU_F_N): New macro.
7752         (_C_CTYPE_LOWER_N, _C_CTYPE_A_THRU_F): Use it.
7753         (_C_CTYPE_DIGIT, _C_CTYPE_LOWER, _C_CTYPE_PUNCT, _C_CTYPE_UPPER):
7754         (c_isascii, c_isgraph, c_isprint, c_ispunct, c_tolower, c_toupper):
7755         * tests/test-c-ctype.c (test_all):
7756         Simplify by assuming standard char values cannot be negative.
7757         * tests/test-c-ctype.c (NCHARS, to_char): Remove; all uses removed.
7759 2015-09-25  Paul Eggert  <eggert@cs.ucla.edu>
7761         c-ctype: port better to z/OS EBCDIC
7762         Problems reported by Daniel Richard G. in:
7763         http://lists.gnu.org/archive/html/bug-gnulib/2015-09/msg00050.html
7764         * lib/c-ctype.h (_C_CTYPE_CNTRL): Rewrite in terms of
7765         the C standard escapes and _C_CTYPE_OTHER_CNTRL.
7766         (_C_CTYPE_OTHER_CNTRL): New macro.
7767         * tests/test-c-ctype.c (test_all): Test from CHAR_MIN, not
7768         from SCHAR_MIN, as the functions are defined only from values
7769         promoted from char or from unsigned char, not necessarily from
7770         signed char.
7772 2015-09-25  Pavel Raiskup  <praiskup@redhat.com>
7774         gnulib-common.m4: fix gl_PROG_AR_RANLIB/AM_PROG_AR clash
7776         The gl_PROG_AR_RANLIB (it is always called by gl_EARLY) sets AR
7777         and ARFLAGS variables.  Doing this unconditionally could break
7778         later Automake's AM_PROG_AR invocation (at least it's
7779         AC_CHECK_TOOLS call to detect correct 'ar' binary).
7781         Original purpose of the gl_PROG_AR_RANLIB was only to handle the
7782         Amsterdam Compiler Kit, so make the previous code to have effects
7783         only on ACK, and rather automatically call the Automake's
7784         AM_PROG_AR as soon as possible to decide other cases.
7786         References:
7787         http://lists.gnu.org/archive/html/bug-gnulib/2015-07/msg00001.html
7789         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): AC_BEFORE AM_PROG_AR.
7790         Set the AR/ARFLAGS to ACK defaults OR call AM_PROG_AR.  If neither
7791         is possible, keep setting AR/ARFLAGS to reasonable defaults.
7792         * gnulib-tool (func_import): Put the gl_USE_SYSTEM_EXTENSIONS
7793         right before gl_PROG_AR_RANLIB into gnulib-comp.m4 (if the
7794         'extensions' module is used.
7795         * modules/extensions (configure.ac-early): Remove as this snippet
7796         is added to gnulib-comp.m4 earlier anyway.
7798 2015-09-25  Paul Eggert  <eggert@cs.ucla.edu>
7800         sockets: MS Windows initalization fixes
7801         Problem reported by Test User in:
7802         http://lists.gnu.org/archive/html/help-shishi/2015-09/msg00001.html
7803         * lib/sockets.h (SOCKETS_1_0, SOCKETS_2_0, SOCKETS_2_1):
7804         Correct the endianness.
7805         * lib/sockets.c (gl_sockets_startup): Return 2 on any version
7806         number mismatch, not just on <.  Cleanup before any such failure.
7808 2015-09-25  Mats Erik Andersson  <gnu@gisladisker.se>
7810         gc: fix detection of installed libgcrypt version
7811         * m4/gc.m4: Use AM_PATH_LIBCRYPT to test for libcrypt versions
7812         at least as recent as 1.4.4.  The previously used macro is not
7813         available now, since modules were removed in version 1.6.0.
7815 2015-09-25  Paul Eggert  <eggert@cs.ucla.edu>
7817         c-ctype: rewrite to use inline functions
7818         This simplifies maintenance, since it makes for just one
7819         implementation of each function, letting the compiler have the fun
7820         of optimization.  In practice this works well nowadays with GCC.
7821         E.g., c_isascii might need only three instructions even though the
7822         source code lists every ASCII character individually in a large
7823         switch statement.
7824         Also, fix some z/OS porting bugs reported by Daniel Richard G. in:
7825         http://lists.gnu.org/archive/html/bug-gnulib/2015-09/msg00037.html
7826         * NEWS: Document the API change.
7827         * lib/c-ctype.c: Drastically simplify, since this now just expands
7828         inline functions.
7829         * lib/c-ctype.h: Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
7830         (C_CTYPE_INLINE): New macro.
7831         (C_CTYPE_CONSECUTIVE_DIGITS, C_CTYPE_CONSECUTIVE_LOWERCASE)
7832         (C_CTYPE_CONSECUTIVE_UPPERCASE): Remove.
7833         Verify that either ASCII or EBCDIC is being used.
7834         (_C_CTYPE_SIGNED_EBCDIC, _C_CTYPE_CNTRL, _C_CTYPE_A_THRU_F_N)
7835         (_C_CTYPE_DIGIT_N, _C_CTYPE_LOWER_N, _C_CTYPE_UPPER_N)
7836         (_C_CTYPE_CASES, _C_CTYPE_A_THRU_F, _C_CTYPE_DIGIT, _C_CTYPE_LOWER)
7837         (_C_CTYPE_UPPER, _C_CTYPE_PUNCT_PLAIN):
7838         New private macros.
7839         (_C_CTYPE_CNTRL): In EBCDIC, '\x07' is a control, not '\xff'.
7840         (c_isalnum, c_isalpha, c_isascii, c_isblank, c_iscntrl, c_isdigit)
7841         (c_isgraph, c_islower, c_isprint, c_ispunct, c_isspace, c_isupper)
7842         (c_isxdigit, c_tolower, c_toupper): Now inline functions.
7843         (c_tolower, c_toupper): When converting, return the unsigned char,
7844         as that is what z/OS does.
7845         * lib/c-strcaseeq.h (CASEEQ): Simplify in the light of the removal
7846         of some c-ctype.h macros.
7847         * modules/c-ctype (Depends-on): Add extern-inline; remove verify.
7848         * tests/test-c-ctype.c (test_all): Fix test for c_toupper and
7849         c_tolower promotion to be compatible with z/OS.
7851 2015-09-24  Pavel Raiskup  <praiskup@redhat.com>
7853         gitlog-to-changelog: trim only trailing whitespaces
7854         This is fix for --format regression introduced by commit
7855         2b93079a5d1baa4d;  it caused that --format='%s%n%n%b%n' (see the
7856         doubled %n string) had no effect anymore.  This format
7857         specification has been used e.g. by GNU paxuitils (commit
7858         edfd8bcc3).
7860         * build-aux/gitlog-to-changelog (main): Stop squashing multiple
7861         newlines in commmit messages.
7863 2015-09-23  Paul Eggert  <eggert@cs.ucla.edu>
7865         Test that c_iscntrl agrees with iscntrl, etc.
7866         Suggested by Daniel Richard G. in:
7867         http://lists.gnu.org/archive/html/bug-gnulib/2015-09/msg00034.html
7868         * modules/c-ctype-tests (Depends-on): Add ctype.
7869         * tests/test-c-ctype.c: Include <ctype.h>.
7870         (NCHARS): New constant.
7871         (test_agree_with_C_locale): New function.
7872         (main): Use it.
7873         (test_all): Use named constants.
7875         c-ctype: improve c_isascii testing
7876         * tests/test-c-ctype.c (test_all): Port c_isascii test to EBCDIC.
7877         Add a test to count the number of ASCII characters.
7879 2015-09-22  Paul Eggert  <eggert@cs.ucla.edu>
7881         savewd: remove SAVEWD_CHDIR_READABLE
7882         It was problematic in the light of file systems that ignore umask.
7883         Problem reported by Sebastian Unger in: http://bugs.gnu.org/21534
7884         * NEWS: Document this.
7885         * lib/mkancesdirs.c (mkancesdirs): MAKE_DIR now returns 0 if
7886         successful, -1 (setting errno) on failure, rather than something
7887         more complicated than that.
7888         * lib/mkdir-p.c (make_dir_parents):
7889         Do not use SAVEWD_CHDIR_READABLE.
7890         * lib/savewd.c (savewd_chdir):
7891         Remove support for SAVEWD_CHDIR_READABLE.
7892         * lib/savewd.h (SAVEWD_CHDIR_READABLE): Remove.
7894         c-ctype: port better to EBCDIC
7895         Problems reported by Daniel Richard G. in
7896         http://lists.gnu.org/archive/html/bug-gnulib/2015-09/msg00020.html
7897         * lib/c-ctype.c: Include <limits.h>, for CHAR_MIN and CHAR_MAX.
7898         Include "verify.h".
7899         (C_CTYPE_ASCII, C_CTYPE_CONSECUTIVE_DIGITS)
7900         (C_CTYPE_CONSECUTIVE_LOWERCASE, C_CTYPE_CONSECUTIVE_UPPERCASE):
7901         Define as enum constants with value false, if not defined, so that
7902         code can use 'if' instead of 'ifdef'.  Using 'if' helps make the
7903         code more portable, as both branches of the 'if' are compiled on
7904         all platforms.
7905         (C_CTYPE_EBCDIC): New constant.
7906         Verify that the character set is either ASCII or EBCDIC.
7907         (to_char): New static function.
7908         (c_isascii, c_iscntrl):
7909         Assume standard control-character assignments for EBCDIC.
7910         (c_isalnum, c_isalpha, c_isdigit, c_islower, c_isgraph, c_isprint)
7911         (c_ispunct, c_isupper, c_isxdigit, c_tolower, c_toupper):
7912         Rewrite to use 'if' instead of 'ifdef'.
7913         Use to_char if non-ASCII.  Prefer <= to >=.
7914         Prefer true and false to 1 and 0, for booleans.
7915         (c_iscntrl): Use 'if', not 'ifdef'.
7916         * modules/c-ctype (Depends-on): Add verify.
7917         * tests/test-c-ctype.c: Include <limits.h>, for CHAR_MIN
7918         (to_char): New function.
7919         (test_all): Port to EBCDIC.  Add some more tests, e.g., for c_ispunct.
7921 2015-09-21  Pádraig Brady  <P@draigBrady.com>
7923         nanosleep: fix return code for interrupted replacement
7924         * lib/nanosleep.c (nanosleep): In the replaced nanosleep, ensure
7925         that we return -1 in the case the call is interrupted by a signal,
7926         rather than the current value of 1.
7927         Diagnosed and tested by Daniel Richard G.
7929 2015-09-19  Paul Eggert  <eggert@cs.ucla.edu>
7931         Diagnose ERE '()|\1'
7932         Problem reported by Hanno Böck in: http://bugs.gnu.org/21513
7933         * lib/regcomp.c (parse_reg_exp): While parsing alternatives, keep
7934         track of the set of previously-completed subexpressions available
7935         before the first alternative, and restore this set just before
7936         parsing each subsequent alternative.  This lets us diagnose the
7937         invalid back-reference in the ERE '()|\1'.
7939         regex: merge patches from libc
7941         2015-09-08  Joseph Myers  <joseph@codesourcery.com>
7942         Move bits/libc-lock.h and bits/libc-lockP.h out of bits/ (bug 14912).
7943         * lib/regex_internal.h:
7944         Include <libc-lock.h> instead of <bits/libc-lock.h>.
7946         2015-06-09  Joseph Myers  <joseph@codesourcery.com>
7947         Fix regcomp wcscoll, wcscmp namespace (bug 18497).
7948         * lib/regcomp.c (build_range_exp): Call __wcscoll instead of
7949         wcscoll.
7950         * lib/regexec.c (check_node_accept_bytes): Likewise.
7952         2015-06-05  Joseph Myers  <joseph@codesourcery.com>
7953         Fix regex wcrtomb namespace (bug 18496).
7954         * lib/regex_internal.c (build_wcs_upper_buffer): Call __wcrtomb
7955         instead of wcrtomb.
7957         2015-06-05  Joseph Myers  <joseph@codesourcery.com>
7958         Fix regex wctype namespace (bug 18495).
7959         * lib/regcomp.c (re_compile_fastmap_iter): Call __towlower
7960         instead of towlower.
7961         * lib/regex_internal.c (build_wcs_upper_buffer): Call __iswlower
7962         instead of iswlower.  Call __towupper instead of towupper.
7963         * lib/regex_internal.h (IS_WIDE_WORD_CHAR): Call __iswalnum
7964         instead of iswalnum.
7966         2015-01-07  Chris Metcalf  <cmetcalf@ezchip.com>
7967         * lib/regcomp.c (parse_bracket_exp): Initialize type to
7968         COLL_SYM in a couple of places to avoid uninitialized variable
7969         wanings on tilegx gcc 4.8.2.
7971         2014-11-24  Siddhesh Poyarekar  <siddhesh@redhat.com>
7972         * lib/regex_internal.h: Remove NOT_IN_libc.
7974         2014-11-17  Andreas Schwab  <schwab@suse.de>
7975         * lib/regex_internal.h: Don't include <locale/elem-hash.h>.
7977         2014-09-11  Roland McGrath  <roland@hack.frob.com>
7978         Move findidx nested functions to top-level.
7979         * lib/regcomp.c [_LIBC]: #include <locale/weight.h>.
7980         (build_equiv_class) [_LIBC]: Don't #include it inside the function.
7981         Pass new arguments to findidx.
7982         * lib/regexec.c [RE_ENABLE_I18N] [_LIBC]: #include <locale/weight.h>.
7983         [RE_ENABLE_I18N] (check_node_accept_bytes) [_LIBC]:
7984         Don't #include it inside the function.  Pass new arguments to findidx.
7985         * lib/regex_internal.h:
7986         [!NOT_IN_libc] [_LIBC]: #include <locale/weight.h>.
7987         (re_string_elem_size_at): Don't #include it inside the function.
7988         Pass new arguments to findidx.
7990         2014-08-01  Siddhesh Poyarekar  <siddhesh@redhat.com>
7991         Check if DEBUG is defined in regex_internal.c
7992         * lib/regex_internal.c: Check if DEBUG is defined and is set.
7994 2015-09-08   Assaf Gordon  <assafgordon@gmail.com>
7996         ceill: detect buggy OpenBSD implementation
7997         * m4/ceill.m4 (gl_FUNC_CEILL): Detect buggy openBSD implementation
7998         which returns zero for small values.  Discussed here:
7999         http://lists.gnu.org/archive/html/bug-gnulib/2015-08/msg00010.html
8001 2015-09-08  Dave Chiluk  <chiluk@canonical.com>
8003         mountlist: add me_mntroot field on Linux machines
8004         * lib/mountlist.c (read_file_system_list): Populate me_mntroot in
8005         mount_entry so Linux machines based on /proc/self/mountinfo can
8006         distinguish between bind mounts and original mounts.  In reality bind
8007         mounts aren't treated differently than mountroot=/ mounts by the
8008         kernel, but the user often wants these bind mounts distinguished.
8009         * lib/mountlist.h (struct mount_entry): Add me_mntroot element.
8010         More details at https://pad.lv/1432871
8012 2015-09-08  Christian Egli  <christian.egli@sbs.ch>
8014         doc: Describe to use multiple instances of gnulib
8015         * doc/gnulib-tool.texi: Add a section to the manual outlining how two
8016         instances of gnulib with different modules can be used, for example one
8017         for a lib and another one for associated tools.
8019 2015-09-01  Pádraig Brady  <P@draigBrady.com>
8021         base32: mark function as __attribute__ const
8022         * lib/base32.h (isbase32): Mark __attribute__ const as
8023         suggested by GCC, and consistent with the base64 module.
8025 2015-08-20  Daiki Ueno  <ueno@gnu.org>
8027         gnulib-tool: don't transform binary files with sed
8028         * gnulib-tool (func_add_or_update): Don't apply sed_transform_* to
8029         .mo and .class files.
8030         Reported by Denis Denisov.
8032 2015-08-10  Daiki Ueno  <ueno@gnu.org>
8034         gperf: respect silent rules
8035         * modules/gperf (Makefile.am): Define V_GPERF, V_GPERF_, and
8036         V_GPERF_0 for silent rules.
8037         * modules/iconv_open (Makefile.am): Use V_GPERF.
8038         * modules/unicase/locale-language (Makefile.am): Likewise.
8039         * modules/unicase/special-casing (Makefile.am): Likewise.
8040         * modules/unictype/category-byname (Makefile.am): Likewise.
8041         * modules/unictype/combining-class-byname (Makefile.am): Likewise.
8042         * modules/unictype/joininggroup-byname (Makefile.am): Likewise.
8043         * modules/unictype/joiningtype-byname (Makefile.am): Likewise.
8044         * modules/unictype/property-byname (Makefile.am): Likewise.
8045         * modules/unictype/scripts (Makefile.am): Likewise.
8046         * modules/uninorm/composition (Makefile.am): Likewise.
8048 2015-08-03  Paul Eggert  <eggert@cs.ucla.edu>
8050         Improve port of stdalign to C++11
8051         Problem reported by Sundaram in:
8052         http://lists.gnu.org/archive/html/bug-gnulib/2015-08/msg00003.html
8053         * lib/stdalign.in.h (alignof, alignas): Don't define if C++11 or newer.
8054         (__alignas_is_defined): Define if C++11 or newer.
8056 2015-08-01  Assaf Gordon  <assafgordon@gmail.com>  (tiny change)
8058         pmccabe2html: fix gawk regex escaping
8059         * build-aux/pmccabe2html: Add one more backslash to properly
8060         escape the gsub replacement value.  Fixes this error:
8061         gawk: ./build-aux/pmccabe2html:425: \
8062         warning: escape sequence `\&' treated as plain `&'
8064 2015-07-29  Paul Eggert  <eggert@cs.ucla.edu>
8066         time_rz: port to pedantic memcpy
8067         * lib/time_rz.c (tzalloc): Pacify pedantic memcpy implementations
8068         that reject memcpy (..., NULL, 0).
8070 2015-07-27  Paul Eggert  <eggert@cs.ucla.edu>
8072         time_rz: port better to MinGW
8073         Don't change tzname, as this makes MinGW dump core (Bug#21020).
8074         Instead, store the tzname copy in the struct tm_zone object.
8075         Problem reported by Eli Zaretskii in: http://bugs.gnu.org/21020#48
8076         * lib/strftime.c [!_LIBC]:
8077         * lib/time_rz.c: Include time-internal.h.
8078         * lib/strftime.c (strftime_case_) [!HAVE_TM_ZONE]: Infer the zone
8079         name from *TZ rather than from TZNAME, doable because *TZ now has
8080         a tzname_copy member.
8081         * lib/time-internal.h: New file, with contents taken from
8082         lib/time_rz.c.  It's separate because strftime.c now accesses
8083         struct tm_zone members.
8084         (struct tm_zone) [HAVE_TZNAME && !HAVE_TM_ZONE]:
8085         New member tzname_copy.
8086         * lib/time_rz.c (struct tm_zone): Move to time-internal.h.
8087         (tzalloc) [HAVE_TZNAME && !HAVE_TM_ZONE]:
8088         Initialize tzname_copy member.
8089         (save_abbr) [HAVE_TZNAME && !HAVE_TM_ZONE]: Save abbreviation
8090         in tzname_copy member.
8091         (revert_tz) [HAVE_TZNAME]: Remove no-longer-needed tzname saving.
8092         (restore_tzname): Remove; no longer needed.  All calls removed.
8093         * modules/time_rz (Files): Add lib/time-internal.h.
8095         time: port __need_time_t to MinGW
8096         * lib/time.in.h (__need_time_t): Do not treat specially on MinGW.
8097         Fix reported by Eli Zaretskii in: http://bugs.gnu.org/21020#36
8099 2015-07-25  Paul Eggert  <eggert@cs.ucla.edu>
8101         strftime: fix newly-introduced bug on Solaris
8102         * lib/strftime.c (strftime_case_): Set the local variable 'zone'
8103         consistently at the start, rather than doing some of the setup at
8104         the start and some in the %Z format spec.  This is cleaner, and
8105         works better with time_rz on platforms like Solaris where struct
8106         tm lacks a tm_zone member, as when !HAVE_TM_GMTOFF %z's calls to
8107         mktime_z and localtime_rz can mess up the tzname cache.
8109         test-strftime: test for Solaris bug
8110         * modules/strftime-tests (Depends-on): Add strerror.
8111         * tests/test-strftime.c: Include <errno.h>.
8112         (posixtm_test): New function, containing the old 'main'.
8113         (struct tzalloc_test, struct localtime_rz_test): New types.
8114         (TZ, LT): New static vars.
8115         (tzalloc_test): New function.
8116         (main): Rewrite in terms of posixtm_test and tzalloc_test.
8118         time_rz: port to Solaris etc.
8119         Works around a tzname problem on platforms like Solaris that have
8120         tzname but not tm_zone, by setting tzname at the appropriate time
8121         and restoring it later.
8122         * lib/time_rz.c (tzname_address, tzname_value) [HAVE_TZNAME]:
8123         New static vars.
8124         (save_abbr) [HAVE_TZNAME]: Set them.
8125         (revert_tz) [HAVE_TZNAME]: Clear or use them.
8126         (restore_tzname): New function.
8127         (localtime_rz, mktime_z): Use it.
8129         time_rz: now LGPL
8130         * modules/time_rz (License): Now LGPL, because strftime depends on it.
8132         time_rz: make a constant 'const'
8133         * lib/time_rz.c (local_tz): Now const.
8135         time_rz: fix off-by-one typo
8136         * lib/time_rz.c (extend_abbrs): Fix off-by-one typo.
8138 2015-07-23  Paul Eggert  <eggert@cs.ucla.edu>
8140         fprintftime, strftime: use timezone_t args
8141         * NEWS: Document the change.
8142         * lib/fprintftime.h (fprintftime):
8143         * lib/strftime.c (extra_args) [my_strftime]:
8144         * lib/strftime.h (nstrftime):
8145         Time zone arg is now of type timezone_t, not int.
8146         * lib/strftime.c (mktime_z) [_LIBC]: New macro.
8147         (__gmtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: Remove; no longer used.
8148         (my_strftime) [emacs && !my_strftime]:
8149         (emacs_strftimeu) [emacs && !FPRINTFTIME]:
8150         Remove; Emacs doesn't need this any more.
8151         (HAVE_TZSET) [my_strftime]: Unset, since we no longer want
8152         fprintftime and nstrftime to call tzset.
8153         (ut) [!my_strftime]: Remove, replacing with ...
8154         (tz) [!my_stftime]: ... this new macro.  All uses changed.
8155         (strftime_case_): Use localtime_rz and mktime_z instead
8156         of localtime_r and mktime.
8157         * modules/fprintftime (Depends-on): Add time_rz.
8158         * modules/strftime (Depends-on): Add time_rz.  Remove time_r.
8159         * tests/test-strftime.c (main): Adjust to new nstrftime API.
8161         time_rz: new module
8162         * MODULES.html.sh: Add time_rz.
8163         * lib/time_rz.c, m4/time_rz.m4, modules/time_rz: New files.
8164         * lib/time.in.h (timezone_t, tzalloc, tzfree, localtime_rz, mktime_z):
8165         New decls if _GNU_SOURCE && @GNULIB_TIME_RZ@ && ! @HAVE_TIMEZONE_T@.
8166         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS):
8167         New var HAVE_TIMEZONE_T (default 0).
8168         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS):
8169         New var GNULIB_TIME_RZ (default 0).
8170         * modules/time (time.h): Substitute the new vars.
8172         flexmember: license is now unlimited
8173         * modules/flexmember (License): Change to unlimited,
8174         since its only source file gives an unlimited license.
8176 2015-07-15  Eric Blake  <eblake@redhat.com>
8178         maint: update copyright paper procedures
8179         * config/srclist.txt: Drop outdated files.
8180         * doc/Copyright/conditions.txt: Update to latest.
8181         * doc/Copyright/assign.changes.manual: Delete.
8182         * doc/Copyright/assign.future.manual: Likewise.
8183         * doc/Copyright/assign.manual: Likewise.
8184         * doc/Copyright/assign.translation.manual: Likewise.
8185         * doc/Copyright/disclaim.changes.manual: Likewise.
8186         * doc/Copyright/disclaim.manual: Likewise.
8187         * doc/Copyright/disclaim.program: Likewise.
8189 2015-07-07  Daiki Ueno  <ueno@gnu.org>
8191         localename: fix link error on Illumos
8192         Illumos defines __sun, but does not have getlocalename_l nor the
8193         equivalent.  This partially reverts commit 387c214.
8194         * m4/localename.m4 (gl_LOCALENAME): Check if getlocalename_l is
8195         available, as well as uselocale.
8196         * lib/localename.c [HAVE_USELOCALE && __sun]: Don't fallback to
8197         use getlocalename_l if it is not available.
8199 2015-07-07  Daiki Ueno  <ueno@gnu.org>
8201         unistr/uN-strtok-tests: avoid a trivial leak
8202         * tests/unistr/test-u-strtok.h (test_u_strtok): Untabify.  Free
8203         input and delim after the multibyte delimiter tests.
8205 2015-07-04  Paul Eggert  <eggert@cs.ucla.edu>
8207         file-has-acl, acl-permissions: fix HP-UX typos
8208         Problem reported by John David Anglin in: http://bugs.gnu.org/20979
8209         * lib/file-has-acl.c (file_has_acl):
8210         * lib/set-permissions.c (context_acl_from_mode)
8211         (context_aclv_from_mode, set_acls):
8212         Fix some obvious typos when HAVE_GETCL /* HP-UX */.
8213         They were introduced by the recent ACL changes.
8215         regex: match current GNU grep behavior
8216         These symbols have not matched GNU grep behavior for quite some time.
8217         Fix prompted by Balazs Kezes bug report at: http://bugs.gnu.org/20974
8218         * lib/regex.h (RE_SYNTAX_GREP, RE_SYNTAX_EGREP):
8219         Change to match current GNU behavior.
8220         Simplify by expressing it as differences from POSIX BREs and EREs.
8221         (RE_SYNTAX_POSIX_EGREP): No longer differs from GNU behavior.
8223 2015-07-03  Jim Meyering  <meyering@fb.com>
8225         set-permissions.c: adjust acl_from_mode's cpp guard
8226         * lib/set-permissions.c (acl_from_mode): Guard with #ifdef
8227         directives identical to those guarding the sole use.
8228         Otherwise, on some systems, we'd get a warning about
8229         the function being defined but not used.
8230         Also, filter through cppi to correct misleading indentation
8231         of cpp directives.
8233 2015-07-03  Pádraig Brady  <P@draigBrady.com>
8235         tests: restrict shells to those that support 'local'
8236         The local keyword is very widely supported and used
8237         in tests in coreutils and grep at least.  Therefore
8238         restrict to testing with shells that support it.
8239         This mainly excludes /bin/sh on Solaris.
8240         * tests/init.sh (gl_shell_test_script_): Add a test for 'local'.
8242 2015-07-03  Seiya Kawashima  <skawashima@uchicago.edu>  (tiny change)
8243         and Daiki Ueno  <ueno@gnu.org>
8245         unistr/uN-strtok: handle multibyte delimiters
8246         Previously, uN_strtok moved PTR to the next unit to the token end.
8247         When DELIM contained a multibyte character, the new position could
8248         be a middle of a multibyte character.
8249         * lib/unistr/u-strtok.h (FUNC): Place PTR at the next character
8250         after the token.
8251         * lib/unistr/u8-strtok.c (U_STRMBLEN): New macro.
8252         * lib/unistr/u16-strtok.c (U_STRMBLEN): New macro.
8253         * lib/unistr/u32-strtok.c (U_STRMBLEN): New macro.
8254         * modules/unistr/u8-strtok (Depends-on): Depend on
8255         unistr/u8-strmblen.
8256         * modules/unistr/u16-strtok (Depends-on): Depend on
8257         unistr/u16-strmblen.
8258         * modules/unistr/u32-strtok (Depends-on): Depend on
8259         unistr/u32-strmblen.
8260         * tests/unistr/test-u-strtok.h: New file.
8261         * tests/unistr/test-u8-strtok.c: New file.
8262         * tests/unistr/test-u16-strtok.c: New file.
8263         * tests/unistr/test-u32-strtok.c: New file.
8264         * modules/unistr/u8-strtok-tests: New file.
8265         * modules/unistr/u32-strtok-tests: New file.
8266         * modules/unistr/u16-strtok-tests: New file.
8268 2015-07-02  Friedrich Haubensak  <hsk@fli-leibniz.de>
8270         update-copyright: fix test failure with perl >= 5.22 (trivial)
8271         * build-aux/update-copyright: Escape a literal left curly bracket,
8272         required with perl >= 5.22
8274 2015-07-02  Daiki Ueno  <ueno@gnu.org>
8276         u{16,32}-strstr-tests: relax timeout condition
8277         On slower platforms (e.g., Solaris 10/SPARC), u{16,32}-strstr
8278         tests can take longer than 5 seconds to complete.
8279         Reported by Dagobert Michelsen in:
8280         https://lists.gnu.org/archive/html/bug-libunistring/2015-06/msg00006.html
8281         * tests/unistr/test-u16-strstr.c (main): Increase timeout from 5
8282         seconds to 10 seconds.
8283         * tests/unistr/test-u32-strstr.c (main): Likewise.
8285 2015-07-01  Pavel Raiskup  <praiskup@redhat.com>
8287         gnulib-common.m4: change the ARFLAGS default to 'cr'
8288         In some GNU/Linux distributions people started to compile 'ar'
8289         binary with --enable-deterministic-archives (binutils project).
8290         That, however, in combination with previous autotools long time
8291         working default AR{_,}FLAGS=cru causes warnings on such
8292         installations:
8293         ar: `u' modifier ignored since `D' is the default (see `U')
8294         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Set ARFLAGS='cr' if not
8295         set already.
8297 2015-07-01  Pavel Raiskup  <praiskup@redhat.com>
8299         selinux-h: avoid double free after *getfilecon()
8300         Originally reported by Ben Shelton on bug-tar:
8301         http://lists.gnu.org/archive/html/bug-tar/2015-04/msg00009.html
8302         * lib/getfilecon.c (map_to_failure): Set the already freed '*con'
8303         pointer to NULL.  Man getfilecon(3) says that any non-NULL '*con'
8304         param should be freed by freecon(3) (regardless the return value).
8306 2015-07-01  Pavel Fedin  <p.fedin@samsung.com>
8308         fix pty related tests issues on Windows (trivial)
8309         * lib/grantpt.c (grantpt): grantpt.c seems to be never used on Windows,
8310         however it's still present in tests/ subdirectory of the final project.
8311         Therefore avoid it to pass `make check`.
8312         * tests/test-openpty.c (main): Windows has no PTYs and gnulib's openpty()
8313         will just return -ENOSYS, so avoid this non applicable test allowing
8314         the build to proceed.
8316 2015-07-01  Pádraig Brady  <P@draigBrady.com>
8318         acl: fix definition of acl_from_mode on FreeBSD
8319         This was causing basic coreutils copy operations to fail
8320         with ENOTSUP or ENOENT error messages.
8321         * lib/acl-internal.h (acl_from_mode): Only define when
8322         ! defined HAVE_ACL_FROM_TEXT.  That allows the version
8323         of acl_from_mode() defined in lib/set-permissions.c to
8324         be used on FreeBSD at least.
8325         * lib/set-permissions.c: Fix up comment spelling,
8326         and a redundant variable assignment; noticed in passing.
8328 2015-06-30  Pádraig Brady  <P@draigBrady.com>
8330         readutmp: port to FreeBSD >= 9
8331         * lib/readutmp.h: Map utmpxname() to setutxdb().
8332         With that coreutils who(1) and pinky(1) tests pass.
8334 2015-06-30  Paul Eggert  <eggert@cs.ucla.edu>
8336         mgetgroups: port to strict OS X
8337         The previous fix wasn't working, so use a bigger hammer (Bug#20923).
8338         * lib/mgetgroups.c: Ignore -Wpointer-sign diagnostics.
8339         (getgrouplist_gids) [HAVE_GETGROUPLIST]: Remove.  All uses removed.
8340         * m4/mgetgroups.m4 (gl_MGETGROUPS): Revert recent changes.
8342 2015-06-29  Paul Eggert  <eggert@cs.ucla.edu>
8344         mgetgroups: port to strict OS X
8345         * doc/glibc-functions/getgrouplist.texi (getgrouplist):
8346         Document the getgrouplist problem.
8347         * lib/mgetgroups.c (getgrouplist_gids) [HAVE_GETGROUPLIST]:
8348         New macro.
8349         (mgetgroups): Use it.
8350         * m4/mgetgroups.m4 (gl_MGETGROUPS):
8351         Check for OS X signature for getgrouplist.
8353 2015-06-29  Jim Meyering  <meyering@fb.com>
8355         linkat: fix invalid definition of LINKAT_SYMLINK_NOTSUP on OS X
8356         It started like this when building coreutils' latest on OS X,
8357         invoking ./configure with a nonempty --cache=.cache:
8359           lib/linkat.c:46:42: error: operator '||' has no right operand
8360           lib/linkat.c: In function 'rpl_linkat':
8361           lib/linkat.c:330:27: error: #if with no expression
8363         Here's linkat.c's line 46:
8365           #if !HAVE_LINKAT || LINKAT_SYMLINK_NOTSUP
8367         Here's some context:
8369           $ grep linkat_nofoll .cache
8370           gl_cv_func_linkat_nofollow=${gl_cv_func_linkat_nofollow=no}
8371           $ grep LINKAT_SYM lib/config.h
8372           #define LINKAT_SYMLINK_NOTSUP
8374         The problem is that m4/linkat.m4's gl_FUNC_LINKAT
8375         uses AC_CACHE_CHECK to set LINKAT_SYMLINK_NOTSUP,
8376         but that violates a tenet of AC_CACHE_CHECK: it must
8377         have no side effect other than setting its cache variable.
8379         What happens is that when the cache is set, we'd skip the
8380         code in that AC_CACHE_CHECK call, and leave LINKAT_SYMLINK_NOTSUP
8381         defined to whatever value it happened to have in configure's
8382         environment.  In my case, it was not defined, so this later code:
8384           AC_DEFINE_UNQUOTED([LINKAT_SYMLINK_NOTSUP], [$LINKAT_SYMLINK_NOTSUP],
8385             [Define to 1 if linkat can create hardlinks to symlinks])
8387         would emit code with an empty RHS.
8389         * m4/linkat.m4 (gl_FUNC_LINKAT): Move the setting of
8390         $LINKAT_SYMLINK_NOTSUP out of the AC_CACHE_CHECK code block.
8392 2015-06-28  Jim Meyering  <meyering@fb.com>
8394         mountlist: avoid an unused-label warning on OS X
8395         * lib/mountlist.c (read_file_system_list) [MOUNTED_GETMNTINFO]:
8396         Building on OS X, I saw a warning about the "free_then_fail" label
8397         being unused.  Give it the _GL_UNUSED_LABEL attribute.
8399         error.c: correct printf-style format: %d -> %u
8400         * lib/error.c (error_at_line): Correct __fxprintf format to use %u,
8401         rather than %d, to match the type of "line_number", unsigned int.
8403 2015-06-25  Pádraig Brady  <P@draigBrady.com>
8405         fts: avoid reading beyond the heap allocation
8406         GCC 5.1.1 with -O2 and -fsanitize=address reports
8407         a read of size 4 from a heap object of size 3 is indeed invalid,
8408         though this may be due to incorrect padding assumptions by GCC, see:
8409         https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66661
8410         * lib/fts.c (fts_alloc): Increase allocation to alignof(FTSENT).
8411         * modules/fts: Depend on stdalign.
8413 2015-06-24  Pádraig Brady  <P@draigBrady.com>
8415         savedir: avoid undefined behavior in qsort call
8416         GCC 5.1.1 -fsanitize=undefined with glibc 2.21 is returning:
8417         "runtime error: null pointer passed as argument 1,
8418          which is declared to never be null"
8419         * lib/savedir.c (streamsavedir): Avoid the call with no entries.
8421 2015-06-24  Pádraig Brady  <P@draigBrady.com>
8423         userspec: avoid undefined behavior in gettext call
8424         GCC 5.1.1 -fsanitize=undefined with glibc 2.21 is returning:
8425         "runtime error: null pointer passed as argument 2,
8426          which is declared to never be null"
8427         * lib/userspec.c (parse_with_separator): Avoid passing NULL to gettext()
8429 2015-06-20  Glenn Morris  <rgm@gnu.org>
8431         gitlog-to-changelog: improve gitmerge.el commits
8432         Let the Emacs ChangeLog generation process exclude "skipped"
8433         messages from merge commits (Bug#20717).
8434         * build-aux/gitlog-to-changelog: Handle gitmerge.el skipped commits.
8436 2015-06-20  Paul Eggert  <eggert@cs.ucla.edu>
8438         wchar: fix MinGW compilation warnings
8439         This lets Texinfo compile cleanly.  See Eli Zaretskii in:
8440         http://lists.gnu.org/archive/html/bug-gnulib/2015-06/msg00050.html
8441         * lib/wchar.in.h: Do not use special invocation convention on MinGW.
8443 2015-06-20  Daiki Ueno  <ueno@gnu.org>
8445         uniname/uniname-tests: use pristine data files
8446         For copyright and maintenance reasons, use the data files from UCD
8447         without modification.
8448         * tests/uniname/test-uninames.c (FIELDLEN): Remove.
8449         (getfield): Remove.
8450         (aliases_count): New global variable.
8451         (fill_names): Skip comments and empty lines in the input.  Don't
8452         use getfield.
8453         (fill_aliases): Likewise.
8454         (main): Change the expected command line arguments to:
8455         NAMES... ["--" ALIASES...].
8456         * tests/uniname/test-uninames.sh: Adjust to the change in
8457         test-uninames.c.
8458         * tests/uniname/UnicodeDataNames.txt: Remove.
8459         * tests/uniname/UnicodeData.txt: New file, from Unicode 8.0.0.
8460         * tests/uniname/NameAliases.txt: Use the pristine copy of the data
8461         file from Unicode 8.0.0.
8463 2015-06-19  Pádraig Brady  <P@draigBrady.com>
8465         linked-list, linkedhash-list: avoid compiler warnings
8466         * lib/gl_anytree_list2.h: Add _GL_ATTRIBUTE_PURE to avoid
8467         -Werror=suggest-attribute=pure (from GCC 5.1.1).
8469 2015-06-19  Daiki Ueno  <ueno@gnu.org>
8471         libunistring: bump minimum version to 0.9.6
8472         * all modules depending on updated Unicode data: Regenerate.
8473         The modules are listed by a script that does:
8474         - for each file listed by: git show --oneline --name-only 705f4efc
8475           - deduce the containing modules, based on "Files:"
8476         - deduce the modules which depend on the containing modules, based
8477           on "Depends-on:"
8479 2015-06-18  Daiki Ueno  <ueno@gnu.org>
8481         uniname/uniname: update to Unicode 8.0.0
8482         * lib/uniname/uninames.h: Regenerate.
8483         * tests/uniname/NameAliases.txt: Update from Unicode 8.0.0.
8484         * tests/uniname/UnicodeDataNames.txt: Update from Unicode 8.0.0.
8486 2015-06-18  Daiki Ueno  <ueno@gnu.org>
8488         libunistring: update to Unicode 8.0.0
8489         * lib/gen-uni-tables.c (SIZEOF): New macro.
8490         (output_numeric): Increase the maximum number of fractions from
8491         128 to 160.  Increase the level3 value width from 7 bits to 8
8492         bits.  Use SIZEOF instead of a hard-coded integer.
8493         (output_blocks): Decrease the cut-off threshold from 0x30000 to
8494         0x28000.
8495         (fill_blocks): Increase the maximum number of blocks from 256 to
8496         384.  Use SIZEOF instead of a hard-coded integer.
8497         (get_lbp): Adjust to new characters added in Unicode 8.0.0.
8498         * lib/unictype/numeric.c (uc_numeric_value): Adjust the level3
8499         value width.
8500         * lib/unilbrk/lbrktables.c (unilbrk_table): Implement LBP21b and
8501         a new case added to LBP22.
8502         * lib/uniwidth/width.c (nonspacing_table_data): Add U+08E3,
8503         U+A69E, U+FE2E..U+FE2F, U+111CA..U+111CC, U+11300,
8504         U+115DC..U+115DD, U+1171D..U+1171F, U+11722..U+11725,
8505         U+11727..U+1172B, U+1DA00..U+1DA36, U+1DA3B..U+1DA6C, U+1DA75,
8506         U+1DA84, U+1DA9B..U+1DA9F, and U+1DAA1..U+1DAAF.
8507         * tests/uniwidth/test-uc_width2.sh: Same updates as in
8508         lib/uniwidth/width.c.
8509         * all generated files under lib/uni* and tests/uni*: Regenerate.
8511 2015-06-16  Pádraig Brady  <P@draigBrady.com>
8513         gnu-web-doc-update: add --mirror to remove stale files
8514         * build-aux/gnu-web-doc-update: Add a --mirror option to remove
8515         out of date files from the CVS server.  Since this is usually
8516         appropriate, a prompt is given when the option is not specified,
8517         along with the `cvs remove` command that would be run.
8519 2015-06-06  Paul Eggert  <eggert@cs.ucla.edu>
8521         acl-permissions: pacify -Wsuggest-attribute=const
8522         Problem reported by Masanari Iida in: http://bugs.gnu.org/20753
8523         * lib/acl-internal.h (free_permission_context):
8524         Declare with attribute const if ! (defined USE_ACL &&
8525         (HAVE_ACL_GET_FILE || defined GETACL)).
8527         fsync: document AIX misbehavior
8528         * doc/posix-functions/fsync.texi (fsync):
8529         Document failure on AIX with read-only file descriptor.
8531 2015-06-05  Jonathan Perkin  <jperkin@joyent.com>  (tiny change)
8533         stdio: Don't redefine gets when using C++
8534         * lib/stdio.in.h (gets): Disable warning on C++.
8536 2015-06-05  Paul Eggert  <eggert@cs.ucla.edu>
8538         acl-permissions: port to AIX, C89 HP-UX
8539         Problems reported by Michael Felt.
8540         * lib/file-has-acl.c (file_has_acl) [HAVE_STATACL]:
8541         * lib/get-permissions.c (get_permissions) [USE_ACL && HAVE_STATACL]:
8542         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]:
8543         * lib/set-permissions.c (set_acls) [HAVE_ACLX_GET && ACL_AIX_WIP]:
8544         Add cast for AIX, whose system calls are declared to accept
8545         char * even though the arguments are really char const *.
8546         * lib/get-permissions.c (get_permissions):
8547         If USE_ACL && HAVE_GETACL /* HP-UX */, don't assume C99.
8548         If USE_ACL && HAVE_STATACL /* older AIX */, add missing decl
8549         that broke a build.
8550         * lib/mountlist.c (read_file_system_list) [MOUNTED_VMOUNT]:
8551         Rework types to pacify xlc.
8553 2015-06-03  Pádraig Brady  <P@draigBrady.com>
8555         vasprintf-posix: avoid compiling vasnprintf where possible
8556         * modules/vasprintf-posix: Avoid compiling the large vasnprintf
8557         module where not required.  For example on a GNU/Linux system
8558         when gnulib-tool is run with the --conditional-dependencies option.
8560 2015-06-02  Pádraig Brady  <P@draigBrady.com>
8562         file-has-acl: fix build on Mac OS X 10
8563         This reverts commit f1b37e3a which doesn't work on Mac OS X >= 10.4
8564         which has an incompatible 6 parameter getxattr() call.
8565         * doc/glibc-functions/getxattr.texi: Mention the divergent getxattr()
8566         call on Mac OS X >= 10.4.
8567         * doc/glibc-functions/fgetxattr.texi: Likewise.
8568         * lib/file-has-acl.c: Revert to more complete combined check.
8569         * m4/acl.m4 (gl_FILE_HAS_ACL): Likewise.
8570         Reported by Jack Howarth.
8572 2015-06-02  Pádraig Brady  <P@draigBrady.com>
8574         prefix-gnulib-mk: remove no longer needed special case
8575         * build-aux/prefix-gnulib-mk (prefix): Since commit e3704b9c,
8576         continued lib_SOURCES lines are no longer present,
8577         so special case handling of such entries is not required.
8579 2015-06-01  Pádraig Brady  <P@draigBrady.com>
8581         acl: don't depend on the deprecated qacl module
8582         * modules/acl (Depends-on): Use q{copy,set}-acl instead.
8584 2015-06-01  Pádraig Brady  <P@draigBrady.com>
8586         gnulib-tool: concatenate lib_SOURCES to a single line
8587         * gnulib-tool: Refactor the line merging sed logic,
8588         and use that to output a single lib_SOURCES line for each module.
8589         gnulib using projects often postprocess this output to prepend
8590         subdir paths to each item, and having a single line simplifies this
8591         processing allowing better decoupling from the gnulib-tool output.
8593 2015-06-01  Pavel Fedin  <p.fedin@samsung.com>
8595         pthread_sigmask: discount system version if a simple macro (trivial)
8596         MinGW64 has: #define pthread_sigmask(H, S1, S2) 0
8597         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Call the
8598         function to ensure it's available.
8600 2015-05-31  Pádraig Brady  <P@draigBrady.com>
8602         readlinkat: avoid OS X 10.10 trailing slash bug
8603         * doc/posix-functions/readlink.texi: Mention that OS X 10.10
8604         has this bug.
8605         * doc/posix-functions/readlinkat.texi: Likewise.  Also mention
8606         that OS X 10.10 has this function.
8607         * lib/readlinkat.c (rpl_readlinkat): Handle the trailing slash bug,
8608         as done for readlink().
8609         * m4/readlinkat.m4 (gl_FUNC_READLINKAT): Check for the readlink()
8610         trailing slash bug, and assume readlinkat() has the same issue.
8611         Also fix a typo where $gl_cv_decl_readlink_works was tested,
8612         rather than the correct $gl_cv_decl_readlinkat_works.
8614 2015-05-29  Andreas Gruenbacher  <andreas.gruenbacher@gmail.com>
8616         acl-permissions: Fix build on Mac OS X and older AIX (Bug#20681)
8617         * lib/set-permissions.c (set_acls): Fix more errors introduced in the acl
8618         module rewrite.
8620         acl-permissions: Fix build on Solaris and Cygwin
8621         Reported by Tom G. Christensen <tgc@jupiterrise.com>:
8622         * lib/set-permissions.c (set_acls): The count, entries, ace_count, and
8623         ace_entries variables have moved into struct permission_context but
8624         they were still accessed as local variables here.
8626 2015-05-29  Pádraig Brady  <P@draigBrady.com>
8628         linkat: avoid OS X 10.10 trailing slash with symlink bug
8629         On Darwin 14.3.0 linkat(,"path1",,"dangling_symlink/",)
8630         causes the symlink to be dereferenced, and if it points
8631         to a non existent file, that file will be created as
8632         a hard link to "path1".
8633         This fixes a test failure in test-linkat.c.
8634         * m4/linkat.m4 (gl_FUNC_LINKAT): Augment the test with
8635         this case.  The existing workaround in linkat.c for
8636         trailing slash issues, suffices for this case.
8637         * doc/posix-functions/linkat.texi: Add OS X 10.10 to
8638         the list of platforms with trailing slash issues.
8640 2015-05-28  Pádraig Brady  <P@draigBrady.com>
8642         unlinkat: handle ignoring of ".." on Darwin 14
8643         * lib/unlinkat.c: unlinkat() has the same bug as unlink()
8644         on Mac OS X 10.10, where it ignores paths with a trailing "..",
8645         so handle in the same manner.
8646         * m4/unlinkat.m4: Comment on this Darwin issue.
8647         * doc/posix-functions/unlink.texi: Update the latest version
8648         where the issue was seen.
8649         * doc/posix-functions/unlinkat.texi: Mention this issue.
8650         Fixes a test failure in test-unlinkat.c.
8652 2015-05-27  Paul Eggert  <eggert@cs.ucla.edu>
8654         qacl: split into qcopy-acl and qset-acl
8655         Emacs needs the former, but not the latter.
8656         * modules/acl-permissions: New file, containing most of the old qacl.
8657         * modules/file-has-acl (Depends-on): Depend on acl-permissions, not qacl.
8658         * modules/qacl: Now merely depends on qcopy-acl and qset-acl.
8659         * modules/qcopy-acl, modules/qset-acl: New files.
8660         * MODULES.html.sh (File system functions):
8661         Mention the new modules, and mention qacl while we're at it.
8663 2015-05-27  Glenn Morris  <rgm@gnu.org>
8665         gitlog-to-changelog: new option --ignore-line
8666         (This patch is imported from the GNU Emacs master.)
8667         This option ignores individual commit lines matching a pattern.
8668         * build-aux/gitlog-to-changelog: Add --ignore-line option.
8670 2015-05-27  Andreas Gruenbacher  <agruenba@redhat.com>
8672         qacl: Reimplement qset_acl and qcopy_acl (Bug#20666)
8673         Implement get_permissions and set_permissions primitives for getting all
8674         the permissions of a file, storing them, and later setting them. (In the
8675         minimal case, the permissions consist only of a file mode.) Reimplement
8676         qset_acl and qcopy_acl based on these new primitives: this avoids code
8677         duplication and makes error handling more consistent.
8678         The Solaris and Cygwin code still uses duplicate code paths for setting
8679         a file mode while making sure that no acls exist and setting an explicit
8680         acl; this is no worse than before, but could be cleaned up.  The AIX
8681         code still doesn't read ACLs, it only makes sure that acls don't get in
8682         the way when setting a file mode.
8683         * lib/acl-internal.h (struct permission_context): New data structure.
8684         (get_permissions, set_permissions, free_permission_context): Declare.
8685         * lib/acl-internal.c (free_permission_context): New helper function.
8686         * lib/get-permissions.c (get_permissions): New helper function split off
8687         from qcopy_acl.
8688         * lib/set-permissions.c: (set_acls_from_mode): On Solaris, Cygwin, and
8689         AIX, set a file's permissions based only on a file mode.
8690         (acl_from_mode, context_acl_from_mode, context_aclv_from_mode): All
8691         other platforms construct a temporary acl from the file mode and set
8692         that acl in the same way as setting an acl read from the source file.
8693         This should help avoid code duplication and inconsistent / buggy
8694         behavior.
8695         (set_acls): New helper function Split off from qcopy_acl.
8696         (chmod_or_fchmod): Moved here from qset-acl.c.
8697         (set_permissions): New helper function.
8698         * lib/qcopy-acl.c (qcopy_acl): Rewrite using get_permissions and
8699         set_permissions.
8700         * lib/qset-acl.c (qset_acl): Rewrite using set_permissions.
8701         * modules/qacl: Add get-permissions.c and set-permissions.c.
8703         file-has-acl: Split feature tests again (Bug#20667)
8704         * lib/file-has-acl.c: Instead of testing for
8705         XATTR_NAME_POSIX_ACL_ACCESS and XATTR_NAME_POSIX_ACL_DEFAULT,
8706         define them when needed.
8707         * m4/acl.m4 (gl_FILE_HAS_ACL): With that, Paul's
8708         GETXATTR_WITH_POSIX_ACLS change shouldn't be needed anymore.
8710 2015-05-27  Pádraig Brady  <P@draigBrady.com>
8712         string: fix build failure on BSD/OSX with FORTIFY_SOURCE
8713         This avoids a conflict with "FORTIFY_SOURCE" variants
8714         of the string functions when they're replaced on NetBSD-6.0.1
8715         and Darwin-14.3.0 at least.
8716         * lib/string.in.h: Avoid including our "lib/string.h" while
8717         including the system <string.h>.
8719 2015-05-26  Eric Blake  <eblake@redhat.com>
8721         stdio: limit __gnu_printf__ witness to gcc 4.4+
8722         * lib/error.h (_GL_ATTRIBUTE_SPEC_PRINTF): Move gcc version probe...
8723         * m4/stdio_h.m4 (gl_STDIO_H): ...here.
8725         error: use correct printf attributes on mingw
8726         * lib/stdio.in.h (_GL_ATTRIBUTE_SPEC_PRINTF): New define.
8728         inttypes: force correct mingw PRIdMAX even without <stdio.h>
8729         * modules/inttypes (Depends-on): Require extensions, so that mingw
8730         always uses GNU style inttypes.
8731         * lib/inttypes.in.h: On mingw, include <stdio.h>.
8733         stdio: fix probe on mingw under gcc 5.1
8734         * m4/stdio_h.m4 (gl_STDIO_H): Change to compile test, to work
8735         around new gcc preprocessor rules.
8737 2015-05-07  Glenn Morris  <rgm@gnu.org>
8739         gitlog-to-changelog: parse "Tiny-change"
8740         * build-aux/gitlog-to-changelog: Treat "Tiny-change" like
8741         "Copyright-paperwork-exempt".  (Bug#20324)
8743 2015-05-06  Pádraig Brady  <P@draigBrady.com>
8745         doc: document glibc posix_fallocate() issues
8746         * doc/posix-functions/posix_fallocate.texi: Mention the
8747         glibc efficiency problems and issues with NFS.
8749 2015-05-05  Karl Berry  <karl@freefriends.org>
8751         * build-aux/gendocs.sh (usage): document new css default
8752         for HTML (--htmlarg).
8754 2015-04-29  Paul Eggert  <eggert@cs.ucla.edu>
8756         extern-inline: no need for workaround in GCC 5.1
8757         * doc/extern-inline.texi (extern inline):
8758         * m4/extern-inline.m4 (gl_EXTERN_INLINE):
8759         GCC bugs 54113 and 63877 are fixed in GCC 5.1, so don't work
8760         around these bugs in GCC 5.1 and later.  Maybe in a decade or
8761         two we can remove these workarounds.
8763 2015-04-28  Pádraig Brady  <P@draigBrady.com>
8765         eealloc, pagealign_alloc, xalloc: avoid clang warnings
8766         Avoid [-Wunknown-attributes] warnings like:
8767         warning: unknown attribute '__alloc_size__' ignored
8768         * lib/xalloc.h: Don't use the __alloc_size__  attribute
8769         with clang, as support has been fully removed as of clang 3.5:
8770         https://github.com/llvm-mirror/clang/commit/c047507a
8771         * lib/eealloc.h: Likewise.
8772         * lib/pagealign_alloc.h: Likewise.
8774 2015-04-27  Paul Eggert  <eggert@cs.ucla.edu>
8776         tests: pacify GCC 5.1's stricter printf checking
8777         * tests/test-dirname.c (main):
8778         * tests/test-getaddrinfo.c (simple):
8779         * tests/test-getlogin.c (main):
8780         * tests/test-getndelim2.c (main):
8781         * tests/test-inttostr.c (CK):
8782         * tests/test-md5.c (main):
8783         * tests/test-read-file.c (main):
8784         * tests/test-sha1.c (main):
8785         Fix mismatches between printf format and value signedness.
8786         * tests/test-inttostr.c (FMT, CAST_VAL, V_min, V_max):
8787         Remove, as CAST_VAL always returned a value of type uintmax_t.
8789         fts: port to GCC 5.1 with --enable-gcc-warnings
8790         Without this fix, GCC 5.1 (correctly) warns about a subscript
8791         error on the fts_name component of FTSENT.  It's actually a
8792         flexible member, so define it that way on C99 or later hosts.
8793         * lib/fts.c (fts_alloc): Use offsetof, not sizeof, for a
8794         structure that now has a flexible array member.
8795         * lib/fts_.h (__FLEXIBLE_ARRAY_MEMBER): New macro.
8796         (FTSENT): fts_name is now flexible on C99-or-later platforms.
8797         * modules/fts (Depends-on): Add flexmember.
8799 2015-04-26  Paul Eggert  <eggert@cs.ucla.edu>
8801         file-has-acl: port to CentOS 6
8802         Problem reported by Tom G. Christensen in:
8803         http://lists.gnu.org/archive/html/bug-gnulib/2015-04/msg00074.html
8804         * lib/file-has-acl.c: Use GETXATTR_WITH_POSIX_ACLS instead of a
8805         combination of HAVE_SYS_XATTR_H, HAVE_LINUX_XATTR_H, and
8806         HAVE_GETXATTR.
8807         * m4/acl.m4 (gl_FILE_HAS_ACL): Test fot the entire combination of
8808         linux/xattr.h, sys/xattr.h, getxattr, XATTR_NAME_POSIX_ACL_ACCESS,
8809         and XATTR_NAME_POSIX_ACL_DEFAULT, since that's what
8810         file-has-acl.c actually needs.
8812 2015-04-26  Pádraig Brady  <P@draigBrady.com>
8814         file-has-acl: always return false when ACLs aren't supported
8815         * lib/file-has-acl.c (file_has_acl): Consistent with other paths,
8816         change the GNU/Linux getxattr path, to transform "not supported"
8817         errors to a false return rather than an error.  This is handled
8818         within file_has_acl() due to the platform specific tests to
8819         determine if ACLs are not supported.
8821 2015-04-25  Paul Eggert  <eggert@cs.ucla.edu>
8823         gettext: propagate po/Makefile.in.in too
8824         * build-aux/po/Makefile.in.in: Copy from latest gettext.
8825         * config/srclist.txt: In build-aux/po, copy Makefile.in.in and
8826         remove-potcdate.sin from $GETTEXT.  This fixes a version mismatch
8827         between Makefile.in.in and the gettext-runtime m4 files.
8829 2015-04-24  Paul Eggert  <eggert@cs.ucla.edu>
8831         file-has-acl: new module, split from acl
8832         And add a new module file-has-acl-tests to match.
8833         I ran into a problem with the recent changes to the acl module,
8834         as they introduced a typo 'test use_xattrs = 0' into 'configure'.
8835         When using the fixed version with Emacs, I discovered that
8836         file-has-acl wasn't separated out well enough for Emacs (e.g., it
8837         had multiple libraries, but needed only one), so I fixed that too.
8838         * NEWS: Document this incompatible change.
8839         * modules/file-has-acl, modules/file-has-acl-tests: New files.
8840         * m4/acl.m4 (gl_FUNC_ACL_ARG): New macro, split from gl_FUNC_ACL.
8841         Initialize gl_need_lib_has_acl.
8842         (gl_FUNC_ACL): Require it.
8843         Simplify use of 'test'.  Set LIB_HAS_ACL if gl_need_lib_has_acl.
8844         Move the file-has-acl.c-relevant stuff to ...
8845         (gl_FILE_HAS_ACL): ... this new macro.  Rewrite to fix 'test
8846         use_xattrs = 0' typo, and omit some needless work.  Set
8847         gl_need_lib_has_acl=1 if we'll need LIB_HAS_ACL to be set
8848         when gl_FUNC_ACL is called.
8849         * modules/acl (Files, lib_SOURCES): Remove lib/file-has-acl.c.
8850         (Link): Remove $(LIB_HAS_ACL).
8851         * modules/acl-tests (Files, Depends-on, configure.ac, TESTS)
8852         (check_PROGRAMS): Move stuff relevant to file-has-acl to
8853         modules/file-has-acl-tests.
8854         (test_file_has_acl_LDADD): Move to modules/file-has-acl-tests.
8856         manywarnings: add GCC 5.1 warnings
8857         * build-aux/gcc-warning.spec: Add -Wabi=, -Warray-bounds,
8858         -Warray-bounds=, -Wc++14-compat, -Wc90-c99-compat,
8859         -Wc99-c11-compat, -Wshadow-ivar, -Wsized-deallocation,
8860         -Wsuggest-override, -Wuse-without-only.  Change
8861         -Wnormalized=... operands to match 5.1.
8862         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add -Wbool-compare,
8863         -Wchkp, -Wdesignated-init, -Wdiscarded-array-qualifiers,
8864         -Wdiscarded-qualifiers, -Wformat-signedness,
8865         -Wincompatible-pointer-types, -Wint-conversion,
8866         -Wlogical-not-parentheses, -Wmemset-transposed-args, -Wodr,
8867         -Wshift-count-negative, -Wshift-count-overflow,
8868         -Wsizeof-array-argument, -Wsuggest-final-methods,
8869         -Wsuggest-final-types, -Wswitch-bool.  Remove -Warray-bounds,
8870         and add -Warray-bounds=2 as a special case.
8872 2015-04-21  Simon Josefsson  <simon@josefsson.org>
8874         doc: update FDL template to match FDL examples.
8875         * doc/alloca-opt.texi:
8876         * doc/alloca.texi:
8877         * doc/c-ctype.texi:
8878         * doc/c-strcase.texi:
8879         * doc/c-strcaseeq.texi:
8880         * doc/c-strcasestr.texi:
8881         * doc/c-strstr.texi:
8882         * doc/c-strtod.texi:
8883         * doc/c-strtold.texi:
8884         * doc/ctime.texi:
8885         * doc/error.texi:
8886         * doc/gcd.texi:
8887         * doc/gnulib-tool.texi:
8888         * doc/inet_ntoa.texi:
8889         * doc/intprops.texi:
8890         * doc/lib-symbol-visibility.texi:
8891         * doc/maintain.texi:
8892         * doc/parse-datetime.texi:
8893         * doc/quote.texi:
8894         * doc/regexprops-generic.texi:
8895         * doc/standards.texi: Remove spurious 'with' in FDL license
8896         template.
8898 2015-04-21  Paul Eggert  <eggert@cs.ucla.edu>
8900         lstat: fix cross-compilation 'ln -s' problem
8901         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK):
8902         Have the test program call 'symlink' rather than a separate
8903         script run 'ln -s'; this is more likely to work in
8904         cross-compilation environments.  Reported by Pavel Fedin in:
8905         http://lists.gnu.org/archive/html/bug-gnulib/2015-04/msg00060.html
8907 2015-04-16  Ludovic Courtès  <ludo@gnu.org>
8909         gendocs.sh: default to a common CSS style sheet for HTML output
8910         * build-aux/gendocs.sh (htmlarg): Change default value.
8912 2015-04-15  Mats Erik Andersson  <gnu@gisladisker.se>
8914         gnulib-tool: output bold attribute more portably
8915         * gnulib-tool (func_show_module_list): Change hexadecimal
8916         numbers to octal in BOLD_ON and BOLD_OFF.  The use of hex
8917         encoded numbers as arguments to `printf' is not portable,
8918         and is not claimed by POSIX.  This is the case with FreeBSD.
8920 2015-04-15  Andreas Gruenbacher  <andreas.gruenbacher@gmail.com>
8922         qacl: Simplify HP-UX acl_nontrivial check
8923         * lib/acl-internal.c: Remove struct stat parameter from HP-UX's version of
8924         acl_nontrivial. Check if the acl has at most three entries instead (it must
8925         have exactly three entries according to the HP-UX documentation). Ignore
8926         uids and gids as long as an entry is either for a user (i.e., the owner),
8927         a group (i.e., the owning group), or others.
8928         * lib/acl-internal.h: Change HP-UX's acl_nontrivial prototype.
8929         * lib/qcopy-acl.c (qcopy_acl): With that, we no longer need to stat the file.
8931 2015-04-15  Andreas Gruenbacher   <andreas.gruenbacher@gmail.com>
8933         acl: On Linux, check for acls without libacl
8934         On Linux, use the getxattr syscall instead of the acl_extended_file libacl
8935         library function to check for the presence of acls, avoiding a library.
8936         * lib/file-has-acl.c: Include xattr headers if we have them.
8937         (file_has_acl): On Linux, use getxattr().
8938         * m4/acl.m4 (gl_FUNC_ACL): Define LIB_HAS_ACL as the libraries to link with for
8939         file_has_acl(). Check for xattr headers and getxattr().
8941 2015-04-14  Ángel González  <keisial@gmail.com>
8943         tempname: avoid unused parameter warnings (trivial)
8944         * lib/tempname.c (try_dir): Tag with __GL_UNUSED.
8945         (try_nocreate): Likewise.
8947 2015-04-14  HIRAMATSU Yoshifumi  <hiramatu@boreas.dti.ne.jp>
8949         fseeko: fix build failure on NetBSD >= 6 (trivial)
8950         * lib/fseeko.c (feeko): NetBSD 6 changed the definition of _offset
8951         from 'fpos_t struct' to __off_t, which is a typedef of __int64_t.
8953 2015-04-09  Paul Eggert  <eggert@cs.ucla.edu>
8955         gitlog-to-changelog: port to MS-Windows
8956         * build-aux/gitlog-to-changelog (git_dir_option):
8957         Use strftime with "%Y-%m-%d", not "%F", to avoid a bug in
8958         MS-Windows Perl.  Reported by Eli Zaretskii in:
8959         http://lists.gnu.org/archive/html/emacs-devel/2015-04/msg00504.html
8961 2015-04-07  Karl Berry  <karl@gnu.org>
8963         gendocs: new option --tex for passing args to texi2dvi.
8964         * build-aux/gendocs.sh: new option --tex, default -t @finalout.
8965         (TEXI2DVI): cut to just command name.
8966         (usage): mention new option, and update copyright.
8967         <generate_tex>: use it.
8969 2015-04-07  Karl Berry  <karl@gnu.org>
8971         * config/srclistvars.sh (GETTEXT): new definition.
8972         * config/srclist.txt: use it for gettext .m4 files.
8973         Thread starting at http://lists.gnu.org/archive/html/bug-gnulib/201
8974         and confirmed at http://lists.gnu.org/archive/html/bug-gnulib/2015-02/msg00146.html
8975         and continuing into April.
8977 2015-04-07  Daiki Ueno  <ueno@gnu.org>
8979         uniname/uniname-tests: fix failure due to alias
8980         Reported by Jack Howarth in:
8981         <https://lists.gnu.org/archive/html/bug-libunistring/2015-04/msg00000.html>.
8982         * tests/uniname/test-uninames.c (name_has_alias): New function.
8983         (test_inverse_lookup): Exclude character name with valid alias,
8984         from randomly generated character names.
8985         (main): Fill unicode_aliases before calling test functions.
8987 2015-04-03  Giuseppe Scrivano  <gscrivan@redhat.com>
8989         hash: remove deprecated hash_insert0 function
8990         * lib/hash.h (hash_insert0): Remove deprecated function.
8991         * lib/hash.c (hash_insert0): Likewise.
8993 2015-04-02  Pádraig Brady  <P@draigBrady.com>
8995         mountlist: remove dependency on libmount
8996         * lib/mountlist.c (read_file_system_list): Parse /proc/self/mountinfo
8997         directly, rather than depending on libmount, which has many
8998         dependencies due to its dependence on libselinux, as detailed at:
8999         http://lists.gnu.org/archive/html/bug-gnulib/2015-01/msg00063.html
9000         Note we restrict this to __linux__ as that's probably where this
9001         interface will remain.  If ever porting, it would be best
9002         to first pull the makedev() wrapper from coreutils to a gnulib module.
9003         Note also we don't add a getline dependency to the mountlist module,
9004         as all Linux versions are sufficient.
9006 2015-04-02  Paul Eggert  <eggert@cs.ucla.edu>
9008         stddef: port to pre-C11 GCC on x86
9009         On this platform, max_align_t should have an alignment of 8 even
9010         though the storage alignments of double, long, etc. max out at 4.
9011         Inspired by a comment of Andreas Schwab's here:
9012         https://sourceware.org/ml/libc-alpha/2015-04/msg00017.html
9013         * lib/stddef.in.h (_GL_STDDEF_ALIGNAS) [!HAVE_MAX_ALIGN_T]: New macro.
9014         (max_align_t) [!HAVE_MAX_ALIGN_T]: Use it.
9015         * tests/test-stddef.c: Test __alignof__ too, if available.
9017 2015-03-24  Pádraig Brady  <P@draigBrady.com>
9019         quotearg-simple-tests: add missing gl_FUNC_MMAP_ANON dependency
9020         * modules/quotearg-simple-tests: Reference m4/mmap-anon.m4
9022 2015-03-24  Tobias Stoeckmann  <tobias@stoeckmann.org>
9024         yesno: make EOL optional in ENABLE_NLS case also (trival)
9025         * lib/yesno.c (yesno): Check for EOL before replacing.
9026         * tests/test-yesno.sh: Add a test case (test along with gettext).
9028 2015-03-22  Paul Eggert  <eggert@cs.ucla.edu>
9030         fdopendir-tests: test it does not close its arg
9031         * tests/test-fdopendir.c (main): Test that fdopendir does not
9032         close its argument.  From a suggestion by David Grayson in:
9033         http://lists.gnu.org/archive/html/bug-gnulib/2015-03/msg00039.html
9035 2015-03-20  Paul Eggert  <eggert@cs.ucla.edu>
9037         gitlog-to-changelog: trim trailing white space
9038         * build-aux/gitlog-to-changelog (main):
9039         Trim trailing white space from commit message lines.
9040         This is helpful for processing the GNU Emacs repository,
9041         which dates back to 1985 and contains a lot of such lines.
9043         gitlog-to-changelog: new option --ignore-matching
9044         * build-aux/gitlog-to-changelog (usage, git_dir_option, main):
9045         Support new option --ignore-matching=PAT, which ignores all
9046         commit messages whose first line matches PAT.
9048 2015-03-19  Paul Eggert  <eggert@cs.ucla.edu>
9050         fdopendir: port better to MinGW
9051         * lib/fdopendir.c (fd_clone_opendir) [REPLACE_FCHDIR]:
9052         Use 'dup' if dirfd fails.  Suggested by Eli Zaretskii in:
9053         http://lists.gnu.org/archive/html/bug-gnulib/2015-03/msg00033.html
9054         * modules/fdopendir (Depends-on): Add dirfd.
9056 2015-03-18  Paul Eggert  <eggert@cs.ucla.edu>
9058         fdopendir: fix typo in comment
9059         * lib/fdopendir.c (fdopendir_with_dup): REPLACE_FCHDIR was misspelled.
9061 2015-03-09  Eric Blake  <eblake@redhat.com>
9063         error: document all entry points provided
9064         * doc/glibc-functions/error_print_progname.texi
9065         (error_print_progname): Mention the error module.
9066         * doc/glibc-functions/error_at_line.texi (error_at_line):
9067         Likewise.
9068         * doc/glibc-functions/error_message_count.texi
9069         (error_message_count): Likewise.
9070         * doc/glibc-functions/error_one_per_line.texi
9071         (error_one_per_line): Likewise.
9073 2015-03-03  Paul Eggert  <eggert@cs.ucla.edu>
9075         vasnprintf: pacify clang 3.5.0
9076         Problem reported by Werner Lemberg in:
9077         http://lists.gnu.org/archive/html/bug-gnulib/2015-03/msg00000.html
9078         * lib/vasnprintf.c (VASNPRINTF): Omit casts that clang objects to.
9079         The casts aren't needed, since the characters in question are ASCII.
9081 2015-02-24  Paul Eggert  <eggert@cs.ucla.edu>
9083         glob, etc.: port to MSVC v18 on MS-Windows 8.1
9084         * lib/dirent--.h (GNULIB_defined_opendir):
9085         * lib/dirent.in.h (GNULIB_defined_opendir)
9086         (GNULIB_defined_closedir):
9087         * lib/getcwd.c, lib/glob.c, lib/mountlist.c (opendir, closedir):
9088         #undef only if Gnulib defined it.
9090         poll: port to MSVC v18 on MS-Windows 8.1
9091         Problem reported by Gisle Vanem in:
9092         http://lists.gnu.org/archive/html/bug-gnulib/2015-02/msg00139.html
9093         * lib/poll.c: Always include <sys/select.h> and <sys/socket.h>.
9094         * modules/poll (Depends-on) [!HAVE_POLL || REPLACE_POLL]:
9095         Add sys_socket.
9097 2015-02-24  Pádraig Brady  <P@draigBrady.com>
9099         tests: support stderr verification with returns_()
9100         * tests/init.sh (returns_): Disable tracing for this wrapper
9101         function, so that stderr of the wrapped command is unchanged,
9102         allowing for verification of the contents.
9104 2015-02-24  Pavel Hrdina  <phrdina@redhat.com>
9106         passfd: avoid valgrind uninitalised data warning
9107         * lib/passfd.c (sendfd): Reset the msg_controllen of msghdr,
9108         to include just the fd we've initialized, rather than including
9109         the extra space used for alignment.
9111 2015-02-23  Paul Eggert  <eggert@cs.ucla.edu>
9113         uniwbrk/u32-wordbreaks-tests: fix copyright
9114         * tests/uniwbrk/test-uc-wordbreaks.c: Fix copyright date.
9116         dup2: doc and test for Android bug
9117         Reported by Kevin Cernekee in:
9118         http://lists.gnu.org/archive/html/bug-gnulib/2015-02/msg00125.html
9119         * doc/posix-functions/dup2.texi (dup2): Document the bug.
9120         * m4/dup2.m4 (gl_FUNC_DUP2): Test for the bug.
9122 2015-02-23  Kevin Cernekee  <cernekee@google.com>
9124         Replace dup2() on Android
9125         * m4/dup2.m4 (gl_FUNC_DUP2): Android implements dup2() using dup3().
9126         Since dup3(fd, fd) fails but dup2(fd, fd) should pass, test-dup2
9127         fails.  Using rpl_dup2() fixes this because it has an explicit test
9128         for this condition.
9130 2015-02-22  Paul Eggert  <eggert@cs.ucla.edu>
9132         Android doesn't define RLIM_SAVED_*
9133         Portability problem reported by Kevin Cernekee in:
9134         http://lists.gnu.org/archive/html/bug-gnulib/2015-02/msg00122.html
9135         * doc/posix-headers/sys_resource.texi (sys/resource.h):
9136         Mention the portability problem.
9137         * lib/getdtablesize.c (RLIM_SAVED_CUR, RLIM_SAVED_MAX):
9138         Define if not defined.
9139         * m4/dup2.m4 (gl_FUNC_DUP2):
9140         * m4/fcntl.m4 (gl_FUNC_FCNTL):
9141         Likewise.
9143 2015-02-21  Paul Eggert  <eggert@cs.ucla.edu>
9145         vasnprintf-posix-tests: use consistent test
9146         * tests/test-vasnprintf-posix.c (test_function):
9147         Use "<" in assert instead of "<=", for consistency with other tests.
9149 2015-02-20  Paul Eggert  <eggert@cs.ucla.edu>
9151         printf, isinf, etc.: noncanonical != NaN
9152         Do not require that isinf, printf, etc. treat noncanonical
9153         values as NaNs.  Instead, require only that they do not crash.
9154         Problem reported by Joseph Myers in:
9155         https://sourceware.org/ml/libc-alpha/2015-02/msg00244.html
9156         * doc/posix-functions/dprintf.texi (dprintf):
9157         * doc/posix-functions/fprintf.texi (fprintf):
9158         * doc/posix-functions/isfinite.texi (isfinite):
9159         * doc/posix-functions/isinf.texi (isinf):
9160         * doc/posix-functions/isnan.texi (isnan):
9161         * doc/posix-functions/printf.texi (printf):
9162         * doc/posix-functions/snprintf.texi (snprintf):
9163         * doc/posix-functions/sprintf.texi (sprintf):
9164         * doc/posix-functions/vdprintf.texi (vdprintf):
9165         * doc/posix-functions/vfprintf.texi (vfprintf):
9166         * doc/posix-functions/vprintf.texi (vprintf):
9167         * doc/posix-functions/vsnprintf.texi (vsnprintf):
9168         * doc/posix-functions/vsprintf.texi (vsprintf):
9169         Document this.
9170         * m4/isfinite.m4 (gl_ISFINITEL_WORKS):
9171         * m4/isinf.m4 (gl_ISINFL_WORKS):
9172         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS):
9173         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE):
9174         * tests/test-isfinite.c (test_isfinitel):
9175         * tests/test-isinf.c (test_isinfl):
9176         * tests/test-isnan.c (test_long_double):
9177         * tests/test-isnanl.h (main):
9178         * tests/test-snprintf-posix.h (test_function):
9179         * tests/test-sprintf-posix.h (test_function):
9180         * tests/test-vasnprintf-posix.c (test_function):
9181         * tests/test-vasprintf-posix.c (test_function):
9182 o       Test only that noncanonical values do not cause crashes, not that
9183         they are treated as NaNs.  In some cases this means a larger
9184         output buffer is needed.
9186 2015-02-20  Jaroslav Skarvada  <jskarvad@redhat.com>
9188         fts: remove redundant close() (trivial)
9189         * lib/fts.c (fts_read): Remove redundant call to close().
9190         Spotted by coverity.
9192 2015-02-20  Paul Eggert  <eggert@cs.ucla.edu>
9194         getdtablesize: port better for Android
9195         Problem reported by Kevin Cernekee in:
9196         http://lists.gnu.org/archive/html/bug-gnulib/2015-02/msg00112.html
9197         * doc/glibc-functions/getdtablesize.texi (getdtablesize): Mention bug.
9198         * lib/getdtablesize.c (getdtablesize): Don't fall back on _SC_OPEN_MAX.
9199         Instead, just use getrlimit, taking care to avoid Cygwin bug.
9201         poll: fixes for large fds
9202         * lib/poll.c (poll): Don't check directly for NFD too large.
9203         Don't rely on undefined behavior in FD_SET when an arg exceeds
9204         FD_SETSIZE.  Always set revents afterwards, even if to zero.
9205         * tests/test-poll.c (poll1): Set revents to -1 instead of 0,
9206         as that makes the test a bit stricter.
9208 2015-02-19  Kevin Cernekee  <cernekee@google.com>
9210         fcntl: Fix cross compiling
9211         * m4/fcntl.m4 (gl_FUNC_FCNTL): Assign the guessed result to the
9212         correct variable name (gl_cv_func_fcntl_f_dupfd_works).
9214 2015-02-18  Paul Eggert  <eggert@cs.ucla.edu>
9216         dup2, fcntl: cross-compile better for Android
9217         Problem reported by Kevin Cernekee in:
9218         http://lists.gnu.org/archive/html/bug-gnulib/2015-02/msg00109.html
9219         * m4/dup2.m4 (gl_FUNC_DUP2): Don't guess no when cross-compiling
9220         for a Linux kernel.  That kernel bug was fixed on 2009-05-11, and
9221         there's little need to cross-compile for older kernels nowadays.
9222         * m4/fcntl.m4 (gl_FUNC_FCNTL): When cross-compiling, guess no only
9223         for systems where the bug is known to occur (AIX, Cygwin, Haiku).
9225 2015-02-18  Pádraig Brady  <P@draigBrady.com>
9227         getopt: don't crash on memory exhaustion
9228         * lib/getopt.c (_getopt_internal_r): Use degraded diagnostics on
9229         memory exhaustion.  In the _LIBC case we use alloca() as is
9230         already done in glibc, so we don't need to consider the separate
9231         error path in that awkward case.  Also fix a memory leak when
9232         ambiguous options are present.
9233         Reported by Tobias Stoeckmann
9235 2015-02-17  Mike Miller  <mtmiller@ieee.org>
9237         tempname: allow compilation with C++ (trivial)
9238         * lib/tempname.h [C++]: Specify extern "C" linkage.
9239         * lib/tempname.h (try_tempname):
9240         * lib/tempname.c (__try_tempname, __gen_tempname):
9241         Rename 'try' to 'tryfunc'.
9243 2015-02-17  Paul Eggert  <eggert@cs.ucla.edu>
9245         dup2, fcntl: port to AIX
9246         * m4/dup2.m4 (gl_FUNC_DUP2):
9247         * m4/fcntl.m4 (gl_FUNC_FCNTL):
9248         Prefer getrusage (RLIM_NOFILE ...)/rlim_cur to sysconf (_SC_OPEN_MAX).
9249         The former works on AIX 7.1 but the latter does not.
9250         Also, this may work better with Android; see:
9251         http://lists.gnu.org/archive/html/bug-gnulib/2015-02/msg00100.html
9253 2015-02-16  Paul Eggert  <eggert@cs.ucla.edu>
9255         getdtablesize, dup2, fcntl: port to Android
9256         Problem reported by Kevin Cernekee in:
9257         http://lists.gnu.org/archive/html/bug-gnulib/2015-02/msg00092.html
9258         * doc/glibc-functions/getdtablesize.texi (getdtablesize):
9259         Mention that getdtablesize doesn't work on Android.
9260         * lib/getdtablesize.c: Use getrlimit substitute only if
9261         getdtablesize is declared.  This should suffice for Cygwin
9262         while not breaking Android.
9263         * m4/dup2.m4 (gl_FUNC_DUP2):
9264         * m4/fcntl.m4 (gl_FUNC_FCNTL):
9265         Prefer sysconf (_SC_OPEN_MAX) to getdtablesize, as the former is
9266         standardized but the latter is not, and sysconf works on Android.
9267         * m4/getdtablesize.m4 (gl_FUNC_GETDTABLESIZE):
9268         Also check that getdtablesize is declared.
9269         This removes the need for a special case for Android.
9271 2015-02-16  Kevin Cernekee  <cernekee@google.com>
9273         localename: Implement gl_locale_name_thread_unsafe for Android
9274         * lib/localename.c: Android API level >= 21 supports two hardcoded
9275         locales: C (POSIX) and C.UTF-8.  Distinguish them by checking
9276         the internal __locale_t struct.
9278 2015-02-16  Kamil Dudka  <kdudka@redhat.com>
9280         fts: avoid crash when a cycle is added while traversing
9281         This could be triggered by auto-mounting a recursive bind mount.
9282         Reported by Michael Chapman in: https://bugzilla.redhat.com/1188498
9283         * lib/fts.c (fts_read): Avoid removing the original hash table item
9284         when leaving a directory that caused a cycle, and preserve the FTS_DC
9285         flag.
9287 2015-02-16  Daiki Ueno  <ueno@gnu.org>
9289         uniname/uniname: support character alias
9290         * lib/uniname/gen-uninames.lisp (main): New argument ALIASFILE.
9291         Generate one-way mapping from aliases to codepoints in the
9292         generated tables.  Special case variation selectors to reduce
9293         table size.
9294         * lib/uniname/uniname.c (unicode_character_name): Special case
9295         variation selectors.
9296         (unicode_name_character): Special case variation selectors and
9297         their aliases.
9298         * lib/uniname/uninames.h: Regenerate.
9299         * tests/uniname/NameAliases.txt: New file, taken from UCD 7.0.0.
9300         * modules/uniname/uniname-tests (Files): Add
9301         tests/uniname/NameAliases.txt.
9302         * tests/uniname/test-uninames.c: Mark as static.
9303         (ALIASLEN): Define.
9304         (struct unicode_alias): New struct.
9305         (unicode_aliases): New variable.
9306         (fill_aliases): New function.
9307         (test_alias_lookup): New test function.
9308         (main): Run the 'test_alias_lookup' test if the second argument is
9309         given.
9310         * tests/uniname/test-uninames.sh: Supply NameAliases.txt as the
9311         second argument.
9313 2015-02-11  Kevin Cernekee  <cernekee@google.com>
9315         Fix FILE struct compatibility with Android API level >= 21
9316         * lib/stdio-impl.h: Test explicitly for __ANDROID__ instead of
9317         __sferror.  Recent versions of Bionic's stdio.h no longer define
9318         __sferror.
9319         * lib/fbufmode.c: Likewise.
9320         * lib/fflush.c: Likewise.
9321         * lib/fpurge.c: Likewise.
9322         * lib/freadable.c: Likewise.
9323         * lib/freadahead.c: Likewise.
9324         * lib/freading.c: Likewise.
9325         * lib/freadptr.c: Likewise.
9326         * lib/freadseek.c: Likewise.
9327         * lib/fseeko.c: Likewise.
9328         * lib/fseterr.c: Likewise.
9329         * lib/fwritable.c: Likewise.
9331         Assume unbroken ungetc() on Android
9332         * m4/ungetc.m4: Add Android case to host OS check.  The ungetc()
9333         test case passed when running on an Android host, and the code
9334         hasn't really changed since 2009.
9336         getdtablesize: Fix Android build
9337         * m4/getdtablesize.m4: Add Android case to host OS check.  Recent NDK
9338         versions have this symbol in the .so library (at least 32-bit
9339         platforms) but are missing the declaration in the header file,
9340         causing the m4 logic to guess incorrectly.
9342         localename: Fix Android build
9343         * modules/localename (Depends-on): Add langinfo.
9345         getugroups: Fix Android build
9346         * lib/getugroups.c: Don't reference unsupported {get,set,end}grent
9347         functions.
9349         euidaccess: Fix Android build
9350         * modules/euidaccess (Depends-on): Add fcntl-h to ensure that
9351         AT_EACCESS gets declared.
9353         linkat_nofollow: Add fallback case for cross compiling
9354         * m4/linkat.m4: Guess no for Darwin, yes otherwise.
9356         net_if: Handle content-free <net/if.h> system headers
9357         * m4/net_if_h.m4: Check to make sure <net/if.h> actually defines
9358         struct if_nameindex.  If not, enable the replacement header.
9360         signal_h: Fix Android build
9361         * lib/signal.in.h: Add Android to the list of platforms that declare
9362         pthread_sigmask() in <pthread.h> instead of <signal.h>.
9364         duplocale: Fix Android build of duplocale-tests
9365         * modules/duplocale-tests (Depends-on): Add langinfo, as the header
9366         is included by test-duplocale.c (but not by duplocale.c).
9367         * modules/duplocale-tests (configure.ac): Check for monetary.h.
9368         * tests/test-duplocale.c: Skip test if monetary.h is absent.
9369         * doc/posix-headers/monetary.texi: Add Android to the list of
9370         platforms missing monetary.h.
9372 2015-02-11  Pádraig Brady  <P@draigBrady.com>
9374         tests: avoid recent -Werror=unused-variable regression in test-locale
9375         * tests/test-locale.c (main): Reference the variable to avoid the
9376         "unused variable" warning.
9378 2015-02-11  Pádraig Brady  <P@draigBrady.com>
9380         maint: various whitespace cleanups in tempname
9381         * lib/tempname.c: Normalize spacing and line length.
9382         * lib/tempname.h: Likewise.
9383         * modules/tempname: Likewise.
9385 2015-02-11  Pádraig Brady  <P@draigBrady.com>
9387         tests: provide returns_() to simplify exit status checking
9388         * tests/init.sh (returns_): A new function for use in tests,
9389         to allow for easier checking of return values, where you expect
9390         a command to exit with failure status.  By checking for a particular
9391         exit code, you don't hide any crashes for example.
9393 2015-02-11  Pádraig Brady  <P@draigBrady.com>
9395         mountlist: only use libmount when specified
9396         There are currently many shared libs dependencies introduced by
9397         libmount with associated runtime and virt mem overhead.
9398         Therefore don't enable by default.
9399         * m4/ls-mntd-fs.m4: Use --with-libmount to enable at build time.
9401 2015-02-08  Daiki Ueno  <ueno@gnu.org>
9403         uniname/unimame-tests: don't link with -lunistring
9404         * modules/uniname/uniname-tests (Makefile.am): Don't link against
9405         $(LIBUNISTRING).  Document the rationale why we need to
9406         conditionalize the test.
9408 2015-02-07  Paul Eggert  <eggert@cs.ucla.edu>
9410         fstrcmp: don't assume strlen < INT_MAX
9411         * lib/fstrcmp.c: Include stddef.h and stdint.h.
9412         (uintptr_t): Remove, as we're now assuming stdint.
9413         (OFFSET, EXTRA_CONTEXT_FIELDS, fstrcmp_bounded):
9414         Prefer ptrdiff_t to int when the value could exceed INT_MAX
9415         if the input string is long.
9416         (fstrcmp_bounded): Check for size-calculation overflow.  Prefer
9417         uintptr_t to size_t when the underlying value is a pointer casted
9418         to an unsigned integer.  Avoid unnecessary 'buffer != NULL' test.
9419         * modules/fstrcmp (Depends-on): Add stdint.
9421         diffseq: prefer ptrdiff_t to ssize_t
9422         * lib/diffseq.h: In commentary, prefer ptrdiff_t to ssize_t.
9423         ptrdiff_t is the natural type for signed indexes.
9424         On a few older platforms, ssize_t is narrower than size_t.
9426         xalloc: fix typo that suppressed warnings
9427         * lib/xalloc.h: Add missing _GL_INLINE_HEADER_END.
9428         This typo, introduced a couple of years ago, mistakenly suppressed
9429         some -Wsuggest-attribute=const, -Wmissing-prototypes, and
9430         -Wmissing-declarations warnings.
9432         full-read: fix license notice typo
9433         * lib/full-read.h: Remove a stray line in the license notice.
9434         Reported by Sam Ellis in: http://bugs.gnu.org/19808
9436         crypto/gc: fix a -Wswitch warning
9437         Reported by Bruce Korb in:
9438         http://lists.gnu.org/archive/html/bug-gnulib/2015-02/msg00046.html
9439         * lib/gc-gnulib.c (gc_hash_open): Fail faster if MODE is nonzero.
9441 2015-02-03  Pádraig Brady  <P@draigBrady.com>
9443         gnulib-tool: fix handling of patch(1) diagnostics
9444         * gnulib-tool: Send diagnostics from patch(1) to stderr,
9445         as otherwise gnulib-tool will reparse that output and attempt
9446         to lookup modules.
9448 2015-02-03  Pádraig Brady  <P@draigBrady.com>
9450         bootstrap: exit immediately upon gnulib-tool failure
9451         * build-aux/bootstrap: Exit immediately if gnulib-tool fails.
9452         This was noticed when gnulib-tool exited early due to failure
9453         to apply a patch in coreutils at http://hydra.nixos.org/eval/1172233,
9454         but various confusing errors were then given as the build proceeded.
9456 2015-02-02  Andreas Gruenbacher  <agruen@gnu.org>
9458         symlinkat: include all required header files
9459         * lib/symlinkat.c (HAVE_SYMLINK_AT): Add <sys/stat.h> for fstatat(),
9460         and string.h for strlen(), required at least on OS X 10.10 (Yosemite).
9461         Reported at https://savannah.gnu.org/bugs/index.php?44151
9462         and by Jack Howarth.
9464 2015-01-29  Pádraig Brady  <P@draigBrady.com>
9466         localename: support Solaris 12 and illumos
9467         * lib/localename.c (gl_locale_name_thread_unsafe): call
9468         getlocalename_l() on newer __sun platforms.
9469         Reported by Alexander Pyhalov.
9470         Fix suggested by Rich Burridge.
9472 2015-01-29  Alexander Pyhalov  <alp@rsu.ru>
9474         locale: fix tests on illumos (trivial)
9475         * tests/test-locale.c: LC_GLOBAL_LOCALE is a function call on illumos,
9476         so move from global scope to main().
9478 2015-01-24  Daiki Ueno  <ueno@gnu.org>
9480         unictype: avoid undefined left-shift behavior
9481         * lib/unictype/bidi_of.c (uc_bidi_class): Building libunistring with
9482         gcc's -fsanitize=shift and running its tests triggered:
9483           unictype/bidi_of.c:43:60: runtime error: left shift of 40167 by 16 \
9484             places cannot be represented in type 'int'
9485         Cast LHS to 'unsigned int' after integer promotion.
9486         * lib/unictype/categ_of.c (lookup_withtable): Likewise.
9487         * lib/unictype/joininggroup_of.c (uc_joining_group): Likewise.
9489 2015-01-20  Daiki Ueno  <ueno@gnu.org>
9491         libunistring: bump version of unitypes dependants
9492         Due to the header file search order, all the headers which depend
9493         on unitypes.h need to be generated, when the preinstalled
9494         libunistring is older.
9495         * modules/unicase/base (configure.ac): Bump minimum version to
9496         0.9.4.
9497         * modules/uniconv/base (configure.ac): Likewise.
9498         * modules/unilbrk/base (configure.ac): Likewise.
9499         * modules/uninorm/base (configure.ac): Likewise.
9500         * modules/unistdio/base (configure.ac): Likewise.
9501         * modules/unistr/base (configure.ac): Likewise.
9502         * modules/uniwbrk/base (configure.ac): Likewise.
9503         * modules/uniwidth/base (configure.ac): Likewise.
9505 2015-01-20  Daiki Ueno  <ueno@gnu.org>
9507         unictype/category-none: fix link with libunistring
9508         Since _UC_CATEGORY_NONE is not a public symbol, it will be
9509         prefixed with "libstring_" when compiled as part of libunistring.
9510         To avoid undefined symbol at link time, increase the minimum
9511         version when the dependant modules are updated.
9512         * modules/unictype/category-none (configure.ac): Bump minimum
9513         version to 0.9.5.
9515 2015-01-20  Daiki Ueno  <ueno@gnu.org>
9517         unitypes: fix build with installed libunistring
9518         The minimum version has not bumped after _UC_ATTRIBUTE_CONST and
9519         _UC_ATTRIBUTE_PURE were added to unitypes.in.h.
9520         * modules/unitypes (configure.ac): Bump minimum version to 0.9.4.
9522 2015-01-15  Paul Eggert  <eggert@cs.ucla.edu>
9524         time: port to MinGW32 3.21
9525         Problem reported by Eli Zaretskii in:
9526         http://lists.gnu.org/archive/html/bug-gnulib/2015-01/msg00042.html
9527         * lib/time.in.h:
9528         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC):
9529         * modules/time (Depends-on):
9530         Fall back on unistd.h if the other include files don't define
9531         struct timespec.
9533         update-copyright: apply to self
9534         * build-aux/update-copyright: Fix copyright date.  How ironic!
9536 2015-01-15  Daiki Ueno  <ueno@gnu.org>
9538         libunistring: update to Unicode 7.0.0
9539         * lib/unictype/joininggroup_byname.gperf: Add Straight Waw and
9540         Manichaean names.
9541         * lib/unictype/joininggroup_name.h: Likewise.
9542         * lib/unictype.in.h (UC_JOINING_GROUP_STRAIGHT_WAW)
9543         (UC_JOINING_GROUP_MANICHAEAN_ALEPH): New enumeration values.
9544         * lib/gen-uni-tables.c (UC_JOINING_GROUP_STRAIGHT_WAW)
9545         (UC_JOINING_GROUP_MANICHAEAN_*): New enumeration values.
9546         (fill_arabicshaping, joining_group_as_c_identifier): Support those
9547         enum values.
9548         (is_property_alphabetic): Accept newly added characters to
9549         cuneiform numeric signs.
9550         (is_property_default_ignorable_code_point): Reject U+0605.
9551         (FIELDLEN): Increase from 120 to 160.
9552         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0605,
9553         U+08FF, U+0C00, U+0C81, U+0D01, U+1AB0..U+1ABE, U+1BAC..U+1BAD,
9554         U+1CF8..U+1CF9, U+1DE7..U+1DF5, U+A9E5, U+AA7C, U+FE27..U+FE2D,
9555         U+102E0, U+10376..U+1037A, U+10AE5..U+10AE6, U+1107F, U+11173,
9556         U+1122F..U+11231, U+11234, U+11236..U+11237, U+112DF,
9557         U+112E3..U+112EA, U+11301, U+1133C, U+11340, U+11366..U+1136C,
9558         U+11370..U+11374, U+114B3..U+114B8, U+114BA, U+114BF..U+114C0,
9559         U+114C2..U+114C3, U+115B2..U+115B5, U+115BC..U+115C0,
9560         U+11633..U+1163A, U+1163D, U+1163F..U+11640, U+16AF0..U+16AF4,
9561         U+16B30..U+16B36, U+1BC9D..U+1BC9E, U+1BCA0..U+1BCA3, and
9562         U+1E8D0..U+1E8D6.
9563         (uc_width): Adjust nonspacing_table_ind boundary from 240 to 248.
9564         * tests/uniwidth/test-uc_width2.sh: Same updates as in
9565         lib/uniwidth/width.c.
9566         * all generated files under lib/uni* and tests/uni*: Regenerate.
9568 2015-01-14  Daiki Ueno  <ueno@gnu.org>
9570         libunistring: update to Unicode 6.3.0
9571         * lib/uniwbrk.in.h (WBP_DQ, WBP_SQ, WBP_HL): New enumeration values.
9572         * lib/uniwbrk/u-wordbreaks.h (FUNC): Support WB7a, WB7b, and WB7c.
9573         Update WB5, WB6, WB7, WB9, WB11, WB12, WB13a, and WB13b.
9574         * lib/uniwbrk/wbrktable.h (uniwbrk_table): Adjust table size.
9575         * lib/uniwbrk/wbrktable.c (uniwbrk_table): Support rule WB7a.
9576         Update WB5, WB9, WB10, WB13a, and WB13b.
9577         * tests/uniwbrk/test-uc-wordbreaks.c
9578         (wordbreakproperty_to_string): Support WBP_DQ, WBP_SQ, and WBP_HL.
9579         * lib/gen-uni-tables.c (UC_BIDI_LRI, UC_BIDI_RLI, UC_BIDI_FSI)
9580         (UC_BIDI_PDI): New enumeration values.
9581         (bidi_category_byname): Support those enum values.
9582         (is_WBP_MIDNUMLET): Exclude 0x0027 (SINGLE QUOTE), which is now a
9583         dedicated property assigned.
9584         (is_property_case_ignorable): Check 0x0027.
9585         (WBP_DQ, WBP_SQ, WBP_HL): New enumeration values.
9586         (get_wbp, debug_output_wbp, fill_org_wbp, debug_output_org_wbp)
9587         (output_wbp): Support those enum values.
9588         * lib/unictype.in.h (UC_BIDI_LRI, UC_BIDI_RLI, UC_BIDI_FSI)
9589         (UC_BIDI_PDI): New enumeration values.
9590         * lib/unictype/bidi_byname.gperf: Add those property names.
9591         * lib/uniwidth/width.c (nonspacing_table_data): Add U+061C,
9592         U+180E, U+1A1B, and U+2066..U+2069.
9593         * tests/uniwidth/test-uc_width2.sh: Same updates as in
9594         lib/uniwidth/width.c.
9595         * all generated files under lib/uni* and tests/uni*: Regenerate.
9597 2015-01-14  Daiki Ueno  <ueno@gnu.org>
9599         libunistring: update to Unicode 6.2.0
9600         * lib/unilbrk/lbrktables.h (LBP_RI): New enumeration value.
9601         (unilbrk_table): Adjust table size.
9602         * lib/unilbrk/lbrktables.c (unilbrk_table): Add a row and column
9603         for LBP_RI.
9604         * lib/uniwbrk.in.h (WBP_RI): New enumeration value.
9605         * lib/uniwbrk/u-wordbreaks.h (FUNC): Support rule WB13c.
9606         Normalize table index skipping ignored properties.
9607         * lib/uniwbrk/wbrktable.c (uniwbrk_table): Support WBP_RI.  Remove
9608         WBP_EXTEND and WBP_FORMAT, which are now computed without using
9609         the table.
9610         * lib/uniwbrk/wbrktable.h: Adjust table size.
9611         * lib/unigbrk.in.h (GBP_RI): New enumeration value.
9612         * lib/unigbrk/uc-is-grapheme-break.c (UC_IS_GRAPHEME_BREAK):
9613         Support rule GB8a.
9614         (UC_GRAPHEME_BREAKS_FOR, gb_table): Support GBP_RI.
9615         * tests/unigbrk/test-uc-is-grapheme-break.c
9616         (graphemebreakproperty_to_string): Support GBP_RI.
9617         * tests/uniwbrk/test-uc-wordbreaks.c
9618         (wordbreakproperty_to_string): Support WBP_RI.
9619         * lib/gen-uni-tables.c (LBP_RI): New enumeration value.
9620         (get_lbp, debug_output_lbp, fill_org_lbp, debug_output_org_lbp)
9621         (output_lbp): Support LBP_RI.  Adjust some characters changed from
9622         LBP_AL to LBP_ID.
9623         (output_lbp): Support LBP_RI.
9624         (WBP_RI): New enumeration value.
9625         (debug_output_wbp, fill_org_wbp, debug_output_org_wbp)
9626         (output_wbp): Support WBP_RI.
9627         (GBP_RI): New enumeration value.
9628         (output_gbp_test, fill_org_gbp): Support GBP_RI.
9629         * all generated files under lib/uni* and tests/uni*: Regenerate.
9631 2015-01-14  Daiki Ueno  <ueno@gnu.org>
9633         libunistring: update to Unicode 6.1.0
9634         * lib/gen-uni-tables.c (output_joining_group): Switch to
9635         3-level table to accommodate joining groups defined with higher
9636         codepoint value.  Since there are only 88 groups defined in
9637         Unicode 7.0.0, use 7-bit packed format for level3 entries.
9638         (get_lbp): Update for Unicode 6.1.0.
9639         * lib/unictype/joininggroup_of.c (uc_joining_group): Adjust to use
9640         3-level table.
9641         * lib/unictype/joininggroup_byname.gperf: Add Rohingya Yeh
9642         joining group name.
9643         * lib/unictype/joininggroup_name.h: Likewise.
9644         * lib/unilbrk/lbrktables.h (LBP_HL): New enumeration value.
9645         (unilbrk_table): Adjust table size.
9646         * lib/unilbrk/lbrktables.c (unilbrk_table): Add a row and column
9647         for LBP_HL.
9648         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0604,
9649         U+08E4..U+08FE, U+1BAB, U+1CF4, U+A674..U+A67B, U+A69F,
9650         U+AAEC..U+AAED, U+AAF6, U+11100..U+11102, U+11127..U+1112B,
9651         U+1112D..U+11134, U+11180..U+11181, U+111B6..U+111BE, U+116AB,
9652         U+116AD, U+116B0..U+116B5, U+116B7, U+16F8F..U+16F92.  Remove
9653         U+302E..U+302F.
9654         * tests/uniwidth/test-uc_width2.sh: Same updates as in
9655         lib/uniwidth/width.c.
9656         * all generated files under lib/uni* and tests/uni*: Regenerate.
9657         * modules/uni*/* (configure.ac): Bump minimum version to 0.9.5.
9659 2015-01-15  Daiki Ueno  <ueno@gnu.org>
9661         uniwbrk/u32-wordbreaks-tests: add conformance test
9662         * modules/uniwbrk/u32-wordbreaks-tests (Files): Add
9663         tests/uniwbrk/test-uc-wordbreaks.c,
9664         tests/uniwbrk/test-uc-wordbreaks.sh, and
9665         tests/uniwbrk/WordBreakTest.txt.
9666         (Makefile.am): Add uniwbrk/test-uc-wordbreaks.sh to $(TESTS), add
9667         test-uc-wordbreaks to $(check_PROGRAMS), and define
9668         test_uc_wordbreaks_SOURCES and test_uc_wordbreaks_LDADD.
9669         * tests/uniwbrk/test-uc-wordbreaks.sh: New file.
9670         * tests/uniwbrk/test-uc-wordbreaks.c: New file.
9672 2015-01-15  Daiki Ueno  <ueno@gnu.org>
9674         uniwbrk: ignore Extended/Format characters at BOL not BOS
9675         * lib/uniwbrk/u-wordbreaks.h (FUNC): Ignore Extend and Format
9676         characters if the previous character property is one of
9677         WBP_NEWLINE, WBP_CR, and WBP_LF.
9679 2015-01-11  Jim Meyering  <meyering@fb.com>
9681         test-strstr.c: avoid a trivial leak
9682         * tests/test-strstr.c (main): Free haystack.
9684         update-copyright: recognize groff's \(co marker
9685         * build-aux/update-copyright (circle_c_re): Also accept
9686         uses of \(co, as found in gzip.1.
9688 2015-01-08  Pádraig Brady  <P@draigBrady.com>
9690         maint.mk: fix compatibility with OS X nm
9691         * top/maint.mk (_gl_tight_scope): Use the -g option to
9692         show exported items rather than the -e option which is
9693         ignored on all platforms except OS X where it gives an error.
9694         Reported by Assaf Gordon.
9696 2015-01-07  KO Myung-Hun  <komh@chollian.net>
9698         localcharset: improve charset detection on OS/2
9699         Use system codepage when appropriate.  Map OS/2 codepages to
9700         GNU canonical charset names if possible.
9701         * lib/config.charset: Don't output aliases if "$os" is os2*.
9702         * lib/localcharset.c (get_charset_aliases) [OS2]: Hardcode the
9703         result for OS/2.
9704         (locale_charset) [OS2]: Use system codepage if codeset is omitted
9705         from the locale name which is neither "C" nor "POSIX".
9707 2015-01-06  Paul Eggert  <eggert@cs.ucla.edu>
9709         count-leading-zeros: use 64-bit intrinsics on 32-bit Windows
9710         This reverts the last patch but one, as it shouldn't be needed now
9711         that the typo is fixed.
9712         * lib/count-leading-zeros.h (count_leading_zeros_ll):
9713         * lib/count-trailing-zeros.h:
9714         * lib/count-one-bits.h:
9715         Go back to using 64-bit intrinsics.
9717         count-leading-zeros: fix pragma typos
9718         * lib/count-leading-zeros.h (_BitScanReverse, _BitScanReverse64):
9719         Fix typos in declaration of intrinsics when _MSC_VER.
9721 2015-01-06  Pádraig Brady  <P@draigBrady.com>
9723         count-leading-zeros: avoid 64-bit intrinsics on 32-bit Windows
9724         * lib/count-leading-zeros.h (count_leading_zeros_ll): Use 32 bit
9725         intrinsics in this case.
9726         * lib/count-trailing-zeros.h: Likewise.
9727         * lib/count-one-bits.h: Likewise.
9729 2015-01-06  Daiki Ueno  <ueno@gnu.org>
9731         uniname/uniname: update to Unicode 7.0.0
9732         To accommodate new characters added since Unicode 5.1.0, this
9733         changes the internal representation of codepoint ranges.
9734         Previously, we grouped codepoint ranges by manually assigned 4-bit
9735         tag, which only allowed 16 groups.  This removes the limitation by
9736         switching to binary search on a table.  For the detail rationale
9737         and the benchmark results, see:
9738         https://lists.gnu.org/archive/html/bug-libunistring/2014-06/msg00001.html
9739         * lib/uniname/gen-uninames.lisp (unicode-char): Rename CODE member
9740         to INDEX, as it no longer represents a codepoint.
9741         (range): New struct.
9742         (main): Switch to intervals list from a bit-pattern based
9743         classification.
9744         * lib/uniname/uninames.h: Regenerate.
9745         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 7.0.0.
9746         * modules/uniname/base (configure.ac): Bump minimum version to
9747         0.9.5.
9748         * modules/uniname/uniname (configure.ac): Bump minimum version to
9749         0.9.5.
9751 2015-01-05  Eric Blake  <eblake@redhat.com>
9753         doc: update INSTALL from autoconf
9754         * doc/install.texi: Resync from autoconf.
9755         * doc/INSTALL: Reflect recent autoconf update.
9756         * doc/INSTALL.ISO: Likewise.
9757         * doc/INSTALL.UTF-8: Likewise.
9759         stdio: fix use of PRIdMAX on modern mingw
9760         * m4/stdio_h.m4 (gl_STDIO_H): Probe for printf flavor via inttypes.
9761         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM): Use result
9762         to work with modern mingw.
9764 2015-01-05  Daniel P. Berrange  <berrange@redhat.com>  (tiny change)
9766         pthread: detect git mingw builds with only partial pollution
9767         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for additional
9768         pollution, as seen temporarily in Fedora 21.
9770 2015-01-04  Paul Eggert  <eggert@cs.ucla.edu>
9772         lib-symbol-versions: cache script check
9773         * m4/ld-version-script.m4 (gl_LD_VERSION_SCRIPT):
9774         Cache the check for linker version scripts.
9775         From a suggestion by Christophe Curis in:
9776         http://lists.gnu.org/archive/html/bug-gnulib/2015-01/msg00011.html
9778 2015-01-04  Benno Schulenberg  <bensberg@justemail.net>
9780         maint: fix grammar nits in propername (trivial change)
9781         * lib/propername.h: Remove a mistaken comma and a duplicate "from",
9782         and use an adequate verb and tense.
9784 2015-01-02  Ludovic Courtès  <ludo@gnu.org>
9786         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
9787         * module/gendocs: Add 'doc/gendocs_template_min'.
9789         * build-aux/gendocs.sh: Change email addresses and upstream URLs
9790         from to Gnulib's.
9791         (scripturl, templateurl): Adjust accordingly.
9793 2015-01-01  Paul Eggert  <eggert@cs.ucla.edu>
9795         gendocs: copyright date and version fix
9796         Reported by Karl Berry in:
9797         http://lists.gnu.org/archive/html/bug-gnulib/2015-01/msg00002.html
9798         * build-aux/gendocs.sh, doc/gendocs_template, doc/gendocs_template_min:
9799         Fix copyright date.
9800         * build-aux/gendocs.sh (scriptversion): Update.
9802 2015-01-01  Karl Berry  <karl@gnu.org>
9804         * doc/install.texi,
9805         * build-aux/mdate-sh,
9806         * build-aux/depcomp,
9807         * build-aux/config.guess,
9808         * build-aux/config.sub,
9809         * build-aux/ar-lib,
9810         * build-aux/compile: revert copyright updates (some from last
9811         year) in slaved files.
9813 2015-01-01  Paul Eggert  <eggert@cs.ucla.edu>
9815         version-etc: new year
9816         * doc/gnulib.texi:
9817         * lib/version-etc.c (COPYRIGHT_YEAR): Update copyright date.
9818         * all files: Run 'make update-copyright'.
9820 2014-12-30  Pádraig Brady  <P@draigBrady.com>
9822         xstrtol: ensure errno is reset
9823         Since commit 3bf75404, on 26-09-1998, errno may not have been reset.
9824         Noticed with a spurious coreutils test failure on Darwin 14.0.0.
9826         * lib/xstrtol.c (__xstrtol): Always reset errno before returning.
9828 2014-12-28  Paul Eggert  <eggert@cs.ucla.edu>
9830         utimens: fix dependency typo
9831         * modules/utimens (Depends-on): Remove 'assure'.
9832         This bug was introduced in the recent 'assure' patch.
9834 2014-12-22  Eric Blake  <eblake@redhat.com>
9836         docs: mention why libgen.h is bad
9837         * doc/posix-headers/libgen.texi (libgen.h): Refer to dirname module.
9839 2014-12-20  Paul Eggert  <eggert@cs.ucla.edu>
9841         assure: new module
9842         This works better than 'assert' when compiling with -DNDEBUG,
9843         as it avoids some compiler diagnostics in that case.
9844         Reported by Norihiro Tanaka in:
9845         http://lists.gnu.org/archive/html/bug-gnulib/2014-12/msg00215.html
9846         * MODULES.html.sh (func_all_modules): Add 'assure'.
9847         * lib/assure.h, modules/assure: New files.
9848         * lib/chdir-long.c, lib/cycle-check.c, lib/fchdir.c, lib/fts.c:
9849         * lib/poll.c, lib/savewd.c, lib/xstrtol.c:
9850         Prefer 'assure' to 'assert'.
9851         * lib/utimens.c: Stop using 'assert'; it wasn't helpful.
9852         * modules/chdir-long, modules/cycle-check, modules/fchdir:
9853         * modules/poll, modules/savewd, modules/utimens, modules/xstrtol:
9854         Depend on 'assure'.
9856 2014-12-16  Paul Eggert  <eggert@cs.ucla.edu>
9858         stdalign: port better to HP compilers
9859         * m4/stdalign.m4 (gl_STDALIGN_H): Try the test if __HP_cc or
9860         __HP_aCC are nonzero, to be consistent with the 2014-01-20 patch.
9862         stdalign: work around Apple GCC 4.0 bug
9863         Reported by David Fang in:
9864         http://lists.gnu.org/archive/html/bug-gnulib/2014-12/msg00194.html
9865         * lib/stdalign.in.h (_Alignas):
9866         * m4/stdalign.m4 (gl_STDALIGN_H):
9867         Do not use aligned attribute with GCC 4.0 on Apple.
9869 2014-12-16  Pádraig Brady  <P@draigBrady.com>
9871         getcwd: fix test failure on OS X 10.9
9872         * m4/getcwd-path-max.m4: Avoid the replacement if it
9873         won't be effective due to the PATH_MAX limitation of lstat().
9874         (gl_cv_func_getcwd_path_max): Adjust to indicate this case.
9875         * m4/getcwd.m4 (gl_FUNC_GETCWD): Define HAVE_GETCWD_SHORTER
9876         for this case for use in tests, and also exclude this
9877         case when setting REPLACE_GETCWD.
9878         * tests/test-getcwd.c (test_long_name): Restrict the
9879         tested path length so that lstat() will not be passed
9880         a path greater than PATH_MAX.
9881         Also key a test condition on HAVE_OPENAT_SUPPORT rather
9882         than AT_FDCWD, since the latter is set unconditionally
9883         since Sep 2009 in commit 52c658e9.
9885 2014-12-14  Tim Rühsen  <tim.ruehsen@gmx.de>
9887         parse-datetime: avoid a compiler warning with byacc (trivial)
9888         * lib/parse-datetime.y (yylex): Use the same prototype in the
9889         function definition as the declaration, to avoid a -Wstrict-prototypes
9890         warning seen when using byacc.
9892 2014-12-12  Daiki Ueno  <ueno@gnu.org>
9894         unicase/locale-language-tests: fix LOCALE_FR test
9895         * tests/unicase/test-locale-language.sh: Really use $LOCALE_FR for
9896         a French locale with traditional encoding.
9897         Reported by umerqayam in:
9898         http://lists.gnu.org/archive/html/bug-libunistring/2014-12/msg00000.html
9900 2014-12-12  Paul Eggert  <eggert@cs.ucla.edu>
9902         stddef: support C11's max_align_t
9903         * doc/posix-headers/stddef.texi (stddef.h): Document max_align_t.
9904         * lib/stddef.in.h (_@GUARD_PREFIX@_STDDEF_H) [__need_wint_t]:
9905         Do not undef, as that might cause max_align_t to be defined twice.
9906         Instead, change use to check for _GL_STDDEF_WINT_T too.
9907         (max_align_t) [!HAVE_MAX_ALIGN_T]: New decl.
9908         * m4/stddef_h.m4 (gl_STDDEF_H, gl_STDDEF_H_DEFAULTS):
9909         Check for max_align_t.
9910         * modules/stddef (stddef.h): Substitute HAVE_MAX_ALIGN_T.
9911         * modules/stddef-tests (Depends-on): Add stdalign.
9912         * tests/test-stddef.c: Test max_align_t.
9914 2014-12-11  Daiki Ueno  <ueno@gnu.org>
9916         unistd: fix iOS check conditional
9917         On Mac OS X 10.8, the TARGET_* macros are unconditonally defined
9918         as 0 or 1 in <TargetConditionals.h>, and the previous check always
9919         yielded true on non-iOS environment.
9920         * lib/unistd.in.h (environ) [__APPLE__]: Check the values of
9921         TARGET_OS_IPHONE and TARGET_IPHONE_SIMULATOR, instead of whether
9922         they are defined.
9924 2014-12-09  Paul Eggert  <eggert@cs.ucla.edu>
9926         posixtm: avoid compiler warning in a better way
9927         * lib/posixtm.c (IF_LINT): Remove.
9928         (year, posix_time_parse):
9929         Return true (not 0) if successful.  All callers changed.
9930         (posix_time_parse): Simplify to pacify GCC without need for IF_LINT.
9932 2014-12-08  KO Myung-Hun  <komh78@gmail.com>
9934         * lib/relocatable.c (relocate): Prepend $UNIXROOT to pathname if it is
9935         started with '/' on EMX.
9937 2014-12-08  KO Myung-Hun  <komh78@gmail.com>
9939         freopen: workaround freopen() on OS/2 kLIBC
9940         * lib/freopen.c (rpl_freopen): Workaround.
9941         * m4/freopen.m4: Add os2* case.
9943         get_shared_library_fullname: port to EMX
9944         * lib/relocatable.c: Define strcmp and strncmp to stricmp and strnicmp
9945         on EMX, respectively.
9946         (_DLL_InitTerm): New on EMX.
9947         (get_shared_library_fullname): Implement on EMX.
9949         find_executable: port to EMX
9950         * lib/progreloc.c (find_executable): Implement on EMX.
9952         sched: check struct sched_param in spawn.h as well
9953         * lib/sched.in.h: Include spawn.h on kLIBC.
9954         * lib/sched_h.m4: Check struct sched_param in spawn.h as well.
9956 2014-12-08  Martin Kletzander  <mkletzan@redhat.com>  (tiny change)
9958         bootstrap: Allow perl modules in $buildreq
9959         * build-aux/bootstrap: Add case for perl modules.
9961 2014-12-08  Pádraig Brady  <P@draigBrady.com>
9963         apply _GL_ATTRIBUTE_PURE to some inline functions
9964         clang 3.4.2 flagged these inline functions as pure
9965         * lib/savewd.h (savewd_errno): Set _GL_ATTRIBUTE_PURE.
9966         * lib/sig-handler.h (get_handler): Likewise.
9967         * lib/stat-time.h (get_stat_{a,c,m,birth}time{,_ns}): Likewise.
9968         * lib/timespec.h (timespec_cmp, timespec_sign): Likewise.
9970 2014-12-06  Pádraig Brady  <P@draigBrady.com>
9972         vasnprintf: fix potential use after free
9973         * lib/vasnprintf.c (VASNPRINTF): Fix free-memory read,
9974         flagged by clang-analyzer 3.4.2.
9976 2014-12-05  Pádraig Brady  <P@draigBrady.com>
9978         filevercmp, posixtm: avoid compiler warnings with -O3
9979         * lib/filevercmp.h (filevercmp): Tag with _GL_ATTRIBUTE_PURE
9980         * lib/posixtm.c: (IF_LINT): Define.
9981         (posix_time_parse): Use it to void a "may be used uninitialized"
9982         warning, seen only with -O3.
9984 2014-12-05  Bruno Haible  <bruno@clisp.org>
9986         Fix LDBL80_WORDS macro on big endian platforms.
9987         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Add missing parenthesis in
9988         LDBL80_WORDS macro.
9989         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
9990         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
9991         * tests/test-isfinite.c (test_isfinitel): Likewise.
9992         * tests/test-isinf.c (test_isinfl): Likewise.
9993         * tests/test-isnan.c (test_long_double): Likewise.
9994         * tests/test-isnanl.h (main): Likewise.
9995         * tests/test-snprintf-posix.h (LDBL80_WORDS): Add missing parenthesis.
9996         * tests/test-sprintf-posix.h (LDBL80_WORDS): Likewise.
9997         * tests/test-vasnprintf-posix.c (LDBL80_WORDS): Likewise.
9998         * tests/test-vasprintf-posix.c (LDBL80_WORDS): Likewise.
9999         Reported by Pádraig Brady.
10001 2014-12-02  KO Myung-Hun  <komh78@gmail.com>
10003         git-version-gen: do not print new line characters
10004         * build-aux/git-version-gen: Use printf instead of echo and tr.
10006         gnulib-tool: recognize x:* as an absolute path
10007         * gnulib-tool (func_gnulib_dir): Add ?:* case.
10008         (func_relconcat): Likewise.
10010 2014-12-02  Andrei Borzenkov  <arvidjaar@gmail.com>
10012         argp: avoid extraneous translation and mem leak with empty pre doc
10013         * lib/argp-help.c (argp_doc): Never translate the empty string,
10014         when "\v" is the first or last character of the string, as that
10015         has a reserved meaning to return the header info from a po file.
10016         This also fixes a small memory leak in the !post case.
10017         The issue can be seen with this command for example:
10018         LC_MESSAGES=en_US grub2-mknetdir --help
10020 2014-11-27  Daiki Ueno  <ueno@gnu.org>
10022         uniname/uniname-tests: skip if system's libunistring is used
10023         * modules/uniname/uniname-tests (Makefile.am): Skip test if
10024         uniname/uniname module is not compiled.
10026 2014-11-27  Pádraig Brady  <P@draigBrady.com>
10028         printf: fix configure check on big endian systems
10029         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Add missing bracket.
10031 2014-11-22  Daiki Ueno  <ueno@gnu.org>
10033         pipe-filter-gi, pipe-filter-ii: port to AIX
10034         On AIX 7.1, 'select' is defined as static and cannot be referred
10035         to from inline function.
10036         * lib/pipe-filter-aux.h (nointr_select): Remove, manually expand
10037         the definition...
10038         * lib/pipe-filter-gi.c (filter_loop): ...here, and...
10039         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): ...here.
10041 2014-11-20  Paul Eggert  <eggert@cs.ucla.edu>
10043         gitlog-to-changelog: add --until
10044         * build-aux/gitlog-to-changelog: Support new --until option.
10045         Need described by Eli Zaretskii in: http://bugs.gnu.org/19113
10047 2014-11-14  Paul Eggert  <eggert@cs.ucla.edu>
10049         extern-inline: update commentary about GCC bugs
10050         * m4/extern-inline.m4: Add another GCC bug number to comments.
10052 2014-11-13  Daiki Ueno  <ueno@gnu.org>
10054         gen-uni-tables: untabify
10055         * lib/gen-uni-tables.c: Untabify.
10057 2014-11-13  Daiki Ueno  <ueno@gnu.org>
10059         gen-uni-tables: check out-of-range values added to 3-level tables
10060         * lib/gen-uni-tables.c (output_category, output_bidi_category)
10061         (output_joining_type, output_ident_category): Check out-of-range
10062         values added to 3-level tables.
10064 2014-11-13  Daiki Ueno  <ueno@gnu.org>
10066         gen-uni-tables: utilize 'assert'
10067         * lib/gen-uni-tables.c: Include <assert.h>.
10068         (output_category, output_combclass, output_decimal_digit_test)
10069         (output_decimal_digit, output_digit_test, output_digit)
10070         (output_numeric, get_mirror_value, fill_properties)
10071         (fill_property30, is_property_alphabetic)
10072         (is_property_default_ignorable_code_point)
10073         (is_property_uppercase, is_property_lowercase)
10074         (is_property_cased, is_property_case_ignorable)
10075         (is_property_changes_when_lowercased, is_property_iso_control)
10076         (is_property_math, fill_arabicshaping, output_joining_group)
10077         (fill_scripts, fill_blocks, output_lbp, fill_org_wbp)
10078         (output_wbp, fill_org_gbp, get_decomposition)
10079         (output_decomposition, fill_composition_exclusions)
10080         (debug_output_composition_tables, output_composition_tables)
10081         (redistribute_casefolding_rules, output_casing_rules): Use
10082         'assert (EXPR);' instead of 'if (!EXPR) abort ();' for better error
10083         reporting.
10085 2014-11-13  Daiki Ueno  <ueno@gnu.org>
10087         gen-uni-tables: cosmetic improvements
10088         * lib/gen-uni-tables.c: Escape newlines in the Emacs file local
10089         variables specification.
10090         (is_outdigit): Remove unused function.
10092 2014-11-12  Jeroen Roovers  <jer@gentoo.org>  (tiny change)
10094         fcntl-h-tests: port to PA-RISC GNU/Linux
10095         * tests/test-fcntl-h.c (main): Check O_SYNC is different from O_DSYNC.
10097 2014-11-10  Paul Eggert  <eggert@cs.ucla.edu>
10099         fts: port to C89
10100         Problem reported for MSVC 16 by Gisle Vanem in:
10101         http://lists.gnu.org/archive/html/bug-gnulib/2014-11/msg00027.html
10102         * lib/fts.c (fts_build): Avoid declaration before statement.
10104 2014-11-06  Paul Eggert  <eggert@cs.ucla.edu>
10106         unistd: port to iOS
10107         Problem reported by André Klitzing in:
10108         http://lists.gnu.org/archive/html/bug-gnulib/2014-11/msg00013.html
10109         * lib/unistd.in.h (environ): Do not include crt_externs.h on iOS.
10111 2014-11-05  Paul Eggert  <eggert@cs.ucla.edu>
10113         obstack: do not reject malloc-style obstack_chunkfun, obstack_freefun
10114         Problem reported by Alan Modra in:
10115         http://lists.gnu.org/archive/html/bug-gnulib/2014-11/msg00007.html
10116         * lib/obstack.h (obstack_chunkfun, obstack_freefun):
10117         Always cast the function arg, reverting this part of the previous
10118         change.
10120 2014-11-04  Paul Eggert  <eggert@cs.ucla.edu>
10122         obstack: avoid potentially-nonportable function casts
10123         * lib/obstack.c (CALL_CHUNKFUN, CALL_FREEFUN):
10124         Remove, replacing with ...
10125         (call_chunkfun, call_freefun): New static functions.
10126         All uses changed.  Avoid potentially-nonportable casts.
10127         (chunkfun_type, freefun_type): Remove typedefs; no longer used.
10128         (_obstack_begin_worker): Omit last two args, since they
10129         rely on potentially-nonportable casts.  All callers changed.
10130         * lib/obstack.h (_OBSTACK_CAST): New macro.
10131         Use it everywhere the old API used a potentially-nonportable cast.
10132         The new API doesn't cast.
10133         (struct obstack): Use unions rather than requiring
10134         potentially-nonportable casts.
10135         (obstack_chunkfun, obstack_freefun): Return void.
10137 2014-11-03  Alan Modra  <amodra@gmail.com>
10139         obstack: fix macro return values
10140         * lib/obstack.h (obstack_next_free): Return void *.
10141         (obstack_1grow_fast, obstack_blank_fast): Return void.
10142         For __GNUC__ macros:
10143         (obstack_1grow, obstack_blank): Remove now unnecessary (void) 0.
10144         For !__GNUC__ macros:
10145         (obstack_make_room, obstack_grow, obstack_grow0)
10146         (obstack_ptr_grow_fast, obstack_int_grow_fast): Return void.
10148 2014-11-03  Paul Eggert  <eggert@cs.ucla.edu>
10150         obstack: do not assume system-supplied obstack is size_t safe
10151         * m4/obstack.m4: New file.
10152         * modules/obstack (Files): Add it.
10154         obstack: port to platforms that #define __alignof__
10155         * lib/obstack.c: Include <alignof.h> if !defined __alignof__,
10156         not if !_LIBC.  We don't know of any platforms that #define
10157         __alignof__, but it might be useful in tests.  Conversely,
10158         glibc assumes GCC.
10160 2014-11-03  Pádraig Brady  <P@draigBrady.com>
10162         linkat: don't unconditionally replace on GNU/Linux
10163         * m4/linkat.m4 (gl_FUNC_LINKAT): The compile check for AT_SYMLINK_FOLLOW
10164         was redundant for a few reasons.  It was present to support compiling
10165         on new systems but running on the old narrow window of Linux 2.6.1[67].
10166         It setup and cleaned up test files which weren't actually used.
10167         On non __linux__ it compile tested AT_SYMLINK_FOLLOW, but that is
10168         implicit in the following check.
10170 2014-11-03  Pádraig Brady  <P@draigBrady.com>
10172         linkat: wrap to handle symlinks on OS X 10.10
10173         * m4/linkat.m4 (gl_FUNC_LINKAT): linkat() is available on Yosemite
10174         but not usable because it doesn't support creating hardlinks
10175         to symlinks.  Therefore add a generic test for this capability
10176         and fallback to our emulation if linkat() fails with ENOTSUP.
10178 2014-11-02  Paul Eggert  <eggert@cs.ucla.edu>
10180         open, openat: document nonstandard FreeBSD, NetBSD O_NOFOLLOW errno
10181         * doc/posix-functions/open.texi (open):
10182         * doc/posix-functions/openat.texi (openat):
10183         Document that these functions do not set errno to ELOOP when
10184         a symlink is opened with O_NOFOLLOW.
10186 2014-10-31  Paul Eggert  <eggert@cs.ucla.edu>
10188         obstack: add NEWS entry for recent incompatible changes
10189         * NEWS: Describe recent changes.
10191 2014-10-30  Pádraig Brady  <P@draigBrady.com>
10193         mountlist: don't use libmount to decide on dummy/remote
10194         * lib/mountlist.c (read_file_system_list): Don't use the libmount
10195         routines to determine whether a file system is dummy or remote,
10196         as they're not currently compatible.  For example the remoteness
10197         is determined on file system type (for which the list seems incomplete),
10198         rather than simply checking for a ':' in the device name.
10199         Also libmount currently determines that 'tmpfs' is a dummy file system
10200         even though it has associated storage.
10202 2014-10-29  Paul Eggert  <eggert@cs.ucla.edu>
10204         obstack: prefer __alignof__ to alignof
10205         This is for portability to pre-4.7 GCC when compiling glibc.
10206         See Joseph S. Myers in:
10207         http://sourceware.org/ml/libc-alpha/2014-10/msg00703.html
10208         * lib/obstack.c (__alignof__) [!_LIBC && !__GNUC__]:
10209         New macro, defined by including and using <alignof.h>.
10210         (MAX): New macro.
10211         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Redefine in terms of these.
10212         Do not use enums as they are not portable to some broken compilers.
10213         * modules/obstack (Depends-on): Depend on alignof, not stdalign.
10215         obstack: prefer alignof to calculating alignments by hand
10216         * lib/obstack.c: Include <stdalign.h>.
10217         (struct fooalign): Remove.
10218         (DEFAULT_ALIGNMENT): Use alignof rather than the old offsetof hack.
10219         * modules/obstack (Depends-on): Add stdalign.
10221 2014-10-28  Paul Eggert  <eggert@cs.ucla.edu>
10223         obstack: use size_t alignments and check for overflow
10224         * lib/obstack.c, lib/obstack.h (_obstack_begin, _obstack_begin_1):
10225         * lib/obstack.c (_obstack_begin_worker, _obstack_newchunk):
10226         * lib/obstack.h (struct obstack.alignment_mask):
10227         Use _OBSTACK_SIZE_T, not int, for alignments.
10228         * lib/obstack.c (_obstack_newchunk): Fail if the size calculation
10229         overflows, e.g., when adding the alignment.
10231 2014-10-29  Alan Modra  <amodra@gmail.com>
10233         obstack: 64-bit obstack support, part 3
10234         This finally enables full 64-bit obstack support.  The glibc
10235         shared library specific code is removed from obstack.c too, and
10236         the error handling code conditionally compiled under control of
10237         another macro, _OBSTACK_NO_ERROR_HANDLER.
10238         * lib/obstack.h: Include string.h earlier.
10239         (_OBSTACK_INTERFACE_VERSION): Define.
10240         (_OBSTACK_SIZE_T, _CHUNK_SIZE_T): Define as size_t for version 2.
10241         * lib/obstack.c: Don't include shlib-compat.h.
10242         (OBSTACK_INTERFACE_VERSION): Delete.
10243         (_OBSTACK_ELIDE_CODE): Rename from ELIDE_CODE.  Define when version 1
10244         glibc code is compatible with version 2.  Don't include stdio.h for
10245         __GNU_LIBRARY.
10246         (obstack_exit_failure, print_and_abort, obstack_alloc_failed_handler):
10247         Omit when _OBSTACK_NO_ERROR_HANDLER defined.  Include stdio.h here.
10248         (_obstack_compat, _obstack, _obstack_newchunk, obstack_free): Delete
10249         glibc shared library specific source.
10251         obstack: 64-bit obstack support, part 2
10252         This gets us 4G obstack support, without changing ABI
10253         compatibility, apart from possibly introducing some
10254         signed/unsigned comparison warnings in code that uses obstack.h.
10255         a) Replace "int" size parameters, return values, and macro local vars
10256            with _OBSTACK_SIZE_T, an "unsigned int" for now.
10257         b) Make obstack.chunk_size a _CHUNK_SIZE_T, an "unsigned long" for now.
10258         c) Make all obstack macros checking available room use obstack_room.
10259            "next_free + desired > chunk_limit" may wrap the lhs for chunks
10260            allocated near the top of memory.
10261         d) Use unsigned comparisons, and macro locals to support >2G on 32-bit.
10262         * lib/obstack.h (_OBSTACK_SIZE_T): Define.  Use throughout
10263         in place of "int" size parameters, return values and local vars.
10264         (_CHUNK_SIZE_T): Define.
10265         (struct obstack): Make chunk_size a _CHUNK_SIZE_T.  Make temp
10266         union use an _OBSTACK_SIZE_T integer type.
10267         For __GNUC__ versions of the following macros...
10268         (obstack_room): Rename local var.
10269         (obstack_make_room): Use obstack_room.
10270         (obstack_grow, obstack_grow0, obstack_1grow, obstack_ptr_grow,
10271         obstack_int_grow, obstack_blank): Likewise.
10272         (obstack_finish): Use unsigned comparison when comparing aligned
10273         next_free against chunk_limit.
10274         (obstack_free): Cast OBJ to remove possible const qualifier.
10275         For !__GNUC__ versions of the following macros...
10276         (obstack_make_room): Use obstack_room.
10277         (obstack_grow, obstack_grow0, obstack_1grow, obstack_ptr_grow,
10278         obstack_int_grow, obstack_blank): Likewise.
10279         (obstack_finish): Use unsigned comparision when comparing aligned
10280         next_free against chunk_limit.
10281         (obstack_free): Use temp.p and same comparisons as __GNUC__ version.
10282         * lib/obstack.c (_obstack_begin_worker): Make "size" parameter
10283         _OBSTACK_SIZE_T.
10284         (_obstack_begin, _obstack_begin_1): Likewise.
10285         (_obstack_newchunk): Likewise for length parameter.  Use size_t locals.
10286         (_obstack_memory_used): Return and use _OBSTACK_SIZE_T local.
10288         obstack: 64-bit obstack support, part 1
10289         a) Correct calls to alloc function, to use a size_t arg.  "long" is
10290            just wrong on targets like x86_64-mingw64 where "long" is 32 bits
10291            and "size_t" 64 bits.
10292         b) Consolidate _obstack_begin and _obstack_begin1 code.
10293         * lib/obstack.h (struct obstack <chunkfun>): Correct prototype to
10294         use "size_t" rather than "long".
10295         (_obstack_begin, _obstack_begin1): Likewise.
10296         (obstack_init, obstack_begin, obstack_specify_allocation_with_arg,
10297         obstack_chunkfun): Update alloc function casts.
10298         * lib/obstack.c (CALL_CHUNKFUN): Update chunkfun cast.
10299         (chunkfun_type, freefun_type): New typdefs.
10300         (_obstack_begin_worker): Split out from ..
10301         (_obstack_begin, _obstack_begin_1): ..here.
10303         obstack: tidy part 2
10304         a) Don't be concerned about "not polluting the namespace with stddef.h
10305            symbols" in obstack.h, since gnulib string.h includes stddef.h
10306            anyway, and it seems unlikely that anyone would care.
10307         b) Don't roll our own slow memcpy in _obstack_newchunk.
10308         c) Rename obstack_free to _obstack_free.  This makes the naming
10309            consistent with other obstack functions and obviates the need for
10310            __obstack_free.  Ancient obstack.c defined both obstack_free and
10311            _obstack_free.  We continue to do that for _LIBC via an alias.
10312         d) Miscellaneous macro fixes.  The expression used to test for gcc-2.8
10313            is clever, but nowadays gcc warns on undefined macros.  You'll get
10314            an undefined macro warning if simulating an old gcc with -U__GNUC__
10315            -U__GNUC_MINOR__ -D__GNUC__=1.
10316         * lib/obstack.h: Include stddef.h unconditionally.  Formatting fixes.
10317         (PTR_INT_TYPE): Delete, replace with ptrdiff_t.
10318         (__obstack_free): Delete, update refs.
10319         (_obstack_free): Rename from obstack_free.
10320         (__extension__): Avoid undefined macro warning for __GNUC_MINOR__.
10321         (obstack_object_size, obstack_room): Parenthesise !__GNUC__ versions.
10322         * lib/obstack.c: Don't include stddef.h.
10323         (COPYING_UNIT): Delete.
10324         (_obstack_begin): Formatting fix.
10325         (_obstack_newchunk): Use memcpy to move existing object to new chunk.
10326         (_obstack_free): Rename from __obstack_free, update alias.  Move
10327         undef of obstack_free to where it is needed.
10329         obstack: tidy part 1
10330         a) Rename temp fields.  temp.tempint and temp.tempptr just looks ugly
10331            to me, and result in overlong lines after later patches.
10332         b) Move error handling code, to avoid a forward declaration and to
10333            simplify later patches in this series.
10334         * lib/obstack.h (struct obstack <temp>): Rename fields of union
10335         and update all uses.
10336         * lib/obstack.c: Include stdlib.h earlier.
10337         (obstack_exit_failure, obstack_alloc_failed_handler): Move later
10338         in file.
10339         (print_and_abort): Remove now redundant forward declaration.
10341 2014-10-24  Paul Eggert  <eggert@cs.ucla.edu>
10343         socketlib, sockets, sys_socket: Use AC_REQUIRE to pacify autoconf.
10344         Without this change, in bleeding-edge fileutils Autoconf complains
10345         that gl_SOCKETLIB etc. are AC_REQUIREd after being invoked.
10346         * modules/socketlib (configure.ac): AC_REQUIRE gl_SOCKETLIB.
10347         * modules/sockets (configure.ac): AC_REQUIRE gl_SOCKETS.
10348         * modules/sys_socket (configure.ac): AC_REQUIRE gl_HEADER_SYS_SOCKET.
10350 2014-10-24  Daiki Ueno  <ueno@gnu.org>
10352         iconv: avoid false detection of non-working iconv
10353         The INBUF arguments of iconv can be either 'const char **'
10354         or 'char **'.  If CC is g++, the difference causes a compile error
10355         and thus leads to a false detection of non-working iconv.
10356         Reported by Eli Zaretskii and Werner LEMBERG in:
10357         <https://lists.gnu.org/archive/html/bug-gnulib/2014-10/msg00023.html>.
10358         * m4/iconv.m4 (AM_ICONV_LINK): Try all possible argument types of
10359         iconv.  Bump serial number.
10361 2014-10-23  Pádraig Brady  <P@draigBrady.com>
10363         bootstrap: print more diagnostics for missing programs
10364         * build-aux/bootstrap: only suppress stderr when checking for
10365         alternative program names.  This supports programs issuing non
10366         standard error messages.
10368 2014-10-23  Pádraig Brady  <P@draigBrady.com>
10370         bootstrap: only update the gnulib submodule
10371         * build-aux/bootstrap: Restrict the "submodule update" command
10372         to the gnulib path.
10374 2014-10-18  Paul Eggert  <eggert@cs.ucla.edu>
10376         symlinkat: port to AIX 7.1
10377         * doc/posix-functions/symlinkat.texi (symlinkat):
10378         Mention AIX porting problem.
10379         * lib/symlinkat.c: Always include errno.h.
10380         (rpl_symlinkat) [HAVE_SYMLINKAT]: New function.
10381         * lib/unistd.in.h (symlinkat): Add replacement machinery.
10382         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Check symlinkat behavior.
10383         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_SYMLINKAT.
10384         * modules/symlinkat (Depends-on): Add fstatat if REPLACE_SYMLINKAT.
10385         (configure.ac): Also compile replacement if REPLACE_SYMLINKAT.
10386         * modules/unistd (unistd.h): Substitute REPLACE_SYMLINKAT.
10388         readlinkat: port to AIX 7.1
10389         * doc/posix-functions/readlink.texi (readlink):
10390         * doc/posix-functions/readlinkat.texi (readlinkat):
10391         Mention AIX porting problem.
10392         * lib/readlinkat.c (rpl_readlinkat) [HAVE_READLINKAT]:
10393         New function.
10394         * lib/unistd.in.h (readlinkat): Add replacement machinery.
10395         * m4/readlinkat.m4 (gl_FUNC_READLINKAT): Check readlinkat signature.
10396         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_READLINKAT.
10397         * modules/readlinkat (configure.ac): Also compile replacement
10398         if REPLACE_READLINKAT.
10399         * modules/unistd (unistd.h): Substitute REPLACE_READLINKAT.
10401 2014-10-12  Karl Berry  <karl@gnu.org>
10403         * doc/posix-functions/dirname.texi: remove spurious {.
10405 2014-09-28  Ben Pfaff  <blp@cs.stanford.edu>
10407         basename, dirname: Improve documentation.
10408         * doc/posix-functions/basename.texi: Mention dirname module and
10409         base_name() function.
10410         * doc/posix-functions/dirname.texi: Mention dir_name() and
10411         mdir_name() functions.
10412         Suggested by Werner LEMBERG <wl@gnu.org>.
10414 2014-09-24  Jim Meyering  <meyering@fb.com>
10416         exclude: declare exclude_patopts static
10417         * lib/exclude.c (exclude_patopts): Declare static,
10418         to avoid triggering a -Wmissing-prototypes warning.
10419         The alternative (declaring it in the .h file) would
10420         require publicizing the private "struct patopts".
10422 2014-09-21  Werner Lemberg  <wl@gnu.org>
10424         dirname: support compilation with C++
10425         * lib/dirname.h: Add necessary C linkage declarations.
10427 2014-09-16  Paul Eggert  <eggert@cs.ucla.edu>
10429         qsort_r: include <config.h>
10430         Problem reported by Tom G. Christensen in:
10431         http://lists.gnu.org/archive/html/bug-gnulib/2014-09/msg00071.html
10432         * lib/qsort.c [!_LIBC]: Include <config.h> first.
10434 2014-09-16  Dylan Cali  <calid1984@gmail.com>
10436         avltree-list: avoid compiler warnings (trivial)
10437         * lib/gl_anytree_list2.h: Add _GL_ATTRIBUTE_PURE to avoid
10438         -Werror=suggest-attribute=pure.
10439         * lib/gl_array_list.c: Likewise.
10440         * lib/gl_avltree_list.c (gl_avltree_list_check_invariants): Add extern
10441         declaration to avoid -Werror=missing-prototypes.  This is not added
10442         to a header as only exported for tests.  Add (void) to the
10443         check_invariants() call to indicate we're discarding the result
10444         in this context which avoids -Werror=unused-value.  Note we don't
10445         use ignore_value here to avoid a dependency as we know we'll not
10446         be adding __attribute__((warn_unused_result)) to check_invariants().
10447         Add _GL_ATTRIBUTE_CONST to avoid -Werror=suggest-attribute=const.
10449 2014-09-15  Paul Eggert  <eggert@cs.ucla.edu>
10451         qsort_r: new module, for GNU-style qsort_r
10452         * m4/qsort_r.m4: New file.  Forgot to add this earlier.
10454 2014-09-15  Werner LEMBERG  <wl@gnu.org>
10456         strerror_r-posix: support compilation with C++
10457         * lib/strerror_r.c: Add necessary C linkage declarations.
10459 2014-09-11  Johannes Zarl  <johannes.zarl@jku.at>
10461         fcntl-h: fix compilation with Intel C++ compiler (trivial)
10462         * lib/fcntl.in.h: ICC has the same issue as GCC <= 4.2.
10464 2014-09-09  Fridolin Pokorny  <fpokorny@redhat.com>
10466         mountlist: use /proc/self/mountinfo when available
10467         Use libmount to propagate device IDs provided by Linux in
10468         /proc/self/mountinfo.  This will give more accurate output when
10469         using df in chroot'ed environments as the device IDs are not
10470         determined by stat() which may be inaccurate within the chroot.
10471         * lib/mountlist.c (read_file_system_list): Use the libmount routines
10472         from util-linux to parse "/proc/self/mountinfo" or fall back to
10473         standard getmntent() processing.
10474         * m4/ls-mntd-fs.m4: Check for libmount only when 1-argument
10475         getmntent() is used, as is the case on GNU/Linux.
10477 2014-09-07  Eric Wong  <normalperson@yhbt.net>
10479         users.txt: add cmogstored
10480         cmogstored has used gnulib since the beginning in 2012 to support
10481         GNU/Linux, FreeBSD, and GNU/kFreeBSD.
10483 2014-09-05  Mathieu Anquetin  <mathieu@anquetin.eu>
10485         Trivial change.
10486         * gnulib-tool: Use same options as build-aux/bootstrap to download
10487         PO files.
10489 2014-09-05  Mathieu Anquetin  <mathieu@anquetin.eu>
10491         Trivial change.
10492         * gnulib-tool: Fallback to wget when rsync of PO files fails.
10494 2014-09-04  Eric Blake  <eblake@redhat.com>
10496         maintainer-makefile: add syntax check for useless ';;'
10497         * top/maint.mk (sc_prohibit_double_semicolon): New rule.
10499 2014-09-04  Paul Eggert  <eggert@cs.ucla.edu>
10501         pthread, pthread_sigmask, threadlib: port to Ubuntu 14.04
10502         Problem reported by Assaf Gordon in:
10503         http://lists.gnu.org/archive/html/bug-gnulib/2014-09/msg00023.html
10504         Apparently Ubuntu is doing some fancy link-time optimization
10505         that doesn't work with -lpthread but does work with -pthread.
10506         Work around the bug by preferring -pthread to -lpthread.
10507         * m4/pthread.m4 (gl_PTHREAD_CHECK):
10508         * m4/threadlib.m4 (gl_THREADLIB_BODY): Prefer -pthread to -lpthread.
10509         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
10510         Treat -pthread like -lpthread.
10512 2014-09-04  Eric Blake  <eblake@redhat.com>
10514         error: drop spurious semicolon
10515         * lib/error.c (__error_at_line): Fix ';;'.
10517 2014-09-02  Paul Eggert  <eggert@cs.ucla.edu>
10519         gnulib-common.m4: port to GCC 4.2.1 and Sun Studio 12 C++
10520         * m4/gnulib-common.m4 (AC_C_RESTRICT):
10521         Override AC_C_RESTRICT unconditionally.
10522         Update from autoconf, incorporating:
10523         2014-09-02 autoconf: port 'restrict' to GCC 4.2.1
10524         2009-01-28 Fix AC_C_RESTRICT for Sun Studio 12 C++.
10526 2014-09-01  Paul Eggert  <eggert@cs.ucla.edu>
10528         manywarnings: add GCC 4.9 warnings
10529         Also, make it easier to maintain this in the future.
10530         * build-aux/gcc-warning.spec: Add -Wabi-tag,
10531         -Wconditionally-supported, -Wdelete-incomplete,
10532         -Winherited-variadic-ctor, -Wvirtual-move-assign, -Wzerotrip.
10533         Remove duplicates.  Use tabs uniformly, as that's what 'cut' wants.
10534         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add -Wdate-time,
10535         -Wopenmp-simd.  Use -fdiagnostics-show-option and -funit-at-a-time
10536         only for older GCC versions that need them.  Handle
10537         -Wnormalized=nfc specially, so that the 'comm' command used
10538         for maintenance doesn't get confused.
10540 2014-08-31  Paul Eggert  <eggert@cs.ucla.edu>
10542         vasnprintf: fix bugs in width computation
10543         * lib/vasnprintf.c (VASNPRINTF):
10544         Rework previous change, which introduced a bug,
10545         to avoid the warning in a different way.
10546         Avoid undefined behavior if the width arg is less than -INT_MAX.
10547         Avoid unnecessary use of HAS_WIDTH local.
10549 2014-08-31  Thien-Thi Nguyen  <ttn@gnu.org>  (tiny change)
10551         vasnprintf: Avoid signed/unsigned comparison warning.
10552         * lib/vasnprintf.c (VASNPRINTF): To calculate padding,
10553         compare end addr of generated string w/ maximum end addr.
10555 2013-08-30  Mats Erik Andersson  <gnu@gisladisker.se>  (tiny change)
10557         parse-datetime: Avoid pointer difference.
10558         * lib/parse-datetime.y (yylex): Compare pointer to end of buffer,
10559         instead of calculating difference of pointers.  This removes an
10560         annoying warning, devoid of any use.
10562 2014-08-29  Paul Eggert  <eggert@cs.ucla.edu>
10564         qsort_r: new module, for GNU-style qsort_r
10565         This works even on FreeBSD, which has an incompatible qsort_r API.
10566         * MODULES.html.sh: Add it.
10567         * doc/glibc-functions/qsort_r.texi: It's now supported.
10568         * lib/qsort.c: New file, taken from glibc with minor changes
10569         inside "#ifndef _LIBC" and with an unnecessary "#include <alloca.h>"
10570         removed.
10571         * lib/qsort_r.c: New file, compiled only on FreeBSD.
10572         * lib/stdlib.in.h (qsort_r): Declare in the usual way.
10573         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS):
10574         * modules/qsort_r, modules/qsort_r-tests: New files.
10575         * modules/stdlib (Makefile): Set up its defaults.
10576         * tests/test-qsort_r.c: New file.
10578 2014-08-08  Paul Eggert  <eggert@cs.ucla.edu>
10580         vla: new module
10581         GNU RCS can use this, mostly for documentation I expect.  See:
10582         http://lists.gnu.org/archive/html/bug-gnulib/2014-08/msg00025.html
10583         * MODULES.html.sh: Add vla.
10584         * lib/vla.h, modules/vla: New files.
10586 2014-08-07  Daiki Ueno  <ueno@gnu.org>
10588         localename: make gl_locale_name_thread really thread-safe on Windows
10589         * lib/localename.c [WINDOWS_NATIVE && !IN_LIBINTL]: Include
10590         "glthread/lock.h".
10591         (get_lcid_lock) [WINDOWS_NATIVE]: New variable.
10592         (get_lcid) [WINDOWS_NATIVE]: Lock while looking for an LCID.
10594 2014-08-07  Paul Eggert  <eggert@cs.ucla.edu>
10596         getpass: don't assume struct termios
10597         Problem report and trivial fix by Jonas 'Sortie' Termansen in:
10598         http://lists.gnu.org/archive/html/bug-gnulib/2014-08/msg00015.html
10599         * lib/getpass.c (getpass): Port to systems lacking struct termios.
10601         getdtablesize: fall back on sysconf (_SC_OPEN_MAX)
10602         Problem reported by Jonas 'Sortie' Termansen in:
10603         http://lists.gnu.org/archive/html/bug-gnulib/2014-08/msg00023.html
10604         * lib/getdtablesize.c (getdtablesize) [_SC_OPEN_MAX]:
10605         Implement via sysconf for platforms that lack getdtablesize.
10607         vararrays: modernize AC_C_VARARRAYS for C11
10608         This backports a change I recently made to Autoconf.
10609         * m4/vararrays.m4 (AC_C_VARARRAYS): Define __STDC_NO_VLA__ if
10610         VLAs are not supported, as this is what C11 does.  The old macro
10611         HAVE_C_VARARRAYS is still defined if they are supported, but is
10612         now obsolescent.  Also, check for VLA bug in GCC 3.4.3.
10614 2014-08-07  Alessandro Degano  <degano@cern.ch>  (tiny change)
10616         relocatable-prog-wrapper: port gettext to OS X 10.8 + GCC 4.8.1
10617         * build-aux/install-reloc (func_create_wrapper): Also wrap
10618         strerror-override, stat, stat.
10620 2014-08-05  Paul Eggert  <eggert@cs.ucla.edu>
10622         sys_select: fix FD_ZERO problem on Solaris 10
10623         * lib/sys_select.in.h: Fix Solaris 10 bug where "#include
10624         <sys/time.h>" followed by "#include <sys/select.h>" caused FD_ZERO
10625         to expand to an expression that invoked memset without necessarily
10626         including <string.h>.  The problem was that the first include
10627         defined _SYS_TIME_H, causing the second include to short-circuit.
10628         Fix a similar problem with <sys/types.h> followed by <sys/select.h>.
10629         Also, fix what appears to be a cut-and-paste typo, by replacing
10630         _GL_SYS_SELECT_H_REDIRECT_FROM_SYS_TIME_H with
10631         _GL_SYS_SELECT_H_REDIRECT_FROM_SYS_TYPES_H.
10633         accept: document Solaris 10 type glitch
10634         * doc/posix-functions/accept.texi (accept): Mention that
10635         Solaris 10 'accept' takes void * last arg, not socklen_t *.
10637 2014-08-04  Paul Eggert  <eggert@cs.ucla.edu>
10639         extern-inline: port to FreeBSD, DragonFly
10640         * m4/extern-inline.m4 (gl_EXTERN_INLINE): Also assume the bug
10641         is present if either __DragonFly__ or __FreeBSD__ is defined.
10642         FreeBSD problem reported by Andrey Borzenkov in:
10643         http://lists.gnu.org/archive/html/bug-gnulib/2014-07/msg00104.html
10644         Also, worry about __APPLE__ only if __MACH__ is also defined,
10645         as this is more consistent with the rest of gnulib.
10646         (_GL_EXTERN_INLINE_STDHEADER_BUG): Rename this internal macro from
10647         _GL_EXTERN_INLINE_APPLE_BUG, since the bug is not limited to Apple.
10649 2014-08-01  Siddhesh Poyarekar  <siddhesh@redhat.com>
10651         regex: Make #if/#ifdef usage consistent for DEBUG
10652         * lib/regex_internal.c: Use "#if defined DEBUG && DEBUG" instead
10653         of the inconsistent usage of #if and #ifdef as that works with
10654         both Glibc and Gnulib's style.
10656 2014-07-31  Eric Blake  <eblake@redhat.com>
10658         openat-die: use _Noreturn markup
10659         * modules/openat-die (Depends-on): Add snippet/_Noreturn.
10660         * lib/openat-die.c (openat_save_fail, openat_restore_fail): Mark
10661         _Noreturn.
10663 2014-07-30  Eric Blake  <eblake@redhat.com>
10665         test-open: port to cygwin, which lacks Fortify
10666         * tests/test-open.h (ALWAYS_INLINE): New macro.
10667         (__always_inline): Don't abuse internal symbol on non-glibc.
10669 2014-07-19  Eli Zaretskii  <eliz@gnu.org>
10671         localename: Enforce declarations before statements.
10672         * localename.c (gl_locale_name_thread): Declare 'lcid' before the
10673         first statement.
10675 2014-07-18  Jim Meyering  <meyering@fb.com>
10677         test-userspec: don't look up numeric user names
10678         * tests/test-userspec.c: I found a system for which getpwnam("0")
10679         returned a pointer to a non-root user's entry, and that made the
10680         test fail.
10681         (T): Prefix each numeric input with "+", to inhibit lookup.
10683 2014-07-15  Eli Zaretskii  <eliz@gnu.org>
10685         localcharset, localename: MS-Windows support for non-default locales
10686         * lib/localcharset.c (locale_charset) [WINDOWS_NATIVE]: Before
10687         falling back on the default system codepage, try extracting
10688         the codepage from what 'setlocale' returns.  This allows to
10689         take into account changes of the codeset due to non-default
10690         locale set by a previous call to 'setlocale'.
10691         * lib/localename.c (LOCALE_NAME_MAX_LENGTH) [WINDOWS_NATIVE]:
10692         Define if not already defined.
10693         (enum_locales_fn, get_lcid) [WINDOWS_NATIVE]: New functions.
10694         (gl_locale_name_thread) [WINDOWS_NATIVE]: Produce the
10695         current locale by calling 'setlocale', then converting the
10696         locale name into LCID by calling 'get_lcid'.  This allows to
10697         take into account changes in the current locale from the
10698         default one, in contrast to GetThreadLocale.
10700 2014-07-14  Daiki Ueno  <ueno@gnu.org>
10702         announce-gen: avoid failure when Digest::SHA is installed
10703         When Digest::SHA is available, Digest::SHA1 is not loaded and thus
10704         Digest::SHA1->new in print_checksums fails.
10705         * build-aux/announce-gen (digest_classes): New associative array
10706         for available message digest implementations.
10707         (print_locations): Use it.
10709 2014-07-13  Pádraig Brady  <P@draigBrady.com>
10711         gettext: revert "update macros to version 0.19"
10712         This reverts commit 9b9370ca, as it currently requires that
10713         developers of any project that explicitly uses the gettext module
10714         or implicitly uses it through the utimens-tests or
10715         futimens-tests modules, use gettext >= 0.19.
10716         However there are some stability and availablity issues with
10717         that version at present.  We can reinstate this soon, when stability
10718         is addressed and packages are more readily available.
10720 2014-07-12  Jim Meyering  <meyering@fb.com>
10722         regex: don't deref NULL upon heap allocation failure
10723         * lib/regcomp.c (parse_dup_op): Handle duplicate_tree
10724         failure in one more place.
10725         To trigger the segfault, configure grep -with-included-regex,
10726         build it, and run these commands:
10727         ( ulimit -v 300000; echo a|src/grep -E a+++++++++++++++++++++ )
10728         I discovered this while replying to a private report from
10729         Jens Schleusener about excessive memory consumption by grep
10730         when using a regular expression like the one above.
10732 2014-07-11  Paul Eggert  <eggert@cs.ucla.edu>
10734         regex: fix memory leak in compiler
10735         Fix by Andreas Schwab in:
10736         https://sourceware.org/ml/libc-alpha/2014-06/msg00503.html
10737         * lib/regcomp.c (parse_reg_exp): Deallocate partially
10738         constructed tree before returning error.
10740 2014-07-10  Assaf Gordon  <assafgordon@gmail.com>
10742         announce-gen: avoid perl warnings
10743         * build-aux/announce-gen: add two minor checks to avoid
10744         "use of uninitialized value" warnings when command-line parameters are
10745         missing.
10747 2014-07-10  Assaf Gordon  <assafgordon@gmail.com>
10749         localename: avoid -Wsuggest-attribute={const,pure} warnings
10750         * lib/localename.c (string_has): Tag internal function as pure.
10751         * lib/localename.h (gl_locale_name_default): Tag extern declaration
10752         as const when appropriate.
10754 2014-07-10  Eli Zaretskii  <eliz@gnu.org>
10756         nl_langinfo: Fix last change.
10757         * lib/nl_langinfo.c (includes): Drop redundant include.
10759 2014-07-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
10761         error: Fix -Wundef warnings in glibc
10762         * lib/error.c [_LIBC]: Define default macros for
10763         glibc.
10764         (print_errno_message) [defined HAVE_STRERROR_R || _LIBC]:
10765         Check _LIBC before STRERROR_R_CHAR_P.
10767         error: Sync from glibc master
10768         * lib/error.c [_LIBC]: Remove INTUSE usage.
10769         (error_tail): Remove unused macro ALLOCA_LIMIT.
10770         Fix potential buffer overflow.  Fix potential NULL dereference
10771         in strcmp.
10773 2014-07-09  Pavel Hrdina  <phrdina@redhat.com> (tiny change)
10775         nl_langinfo: fix build under mingw
10776         * lib/nl_langinfo.c (includes): Pick up <windows.h> for GetACP().
10778 2014-07-09  Andrew D Warshall  <warshall@99main.com>
10780         mountlist: do not classify a bind-mounted dir entry as "dummy"
10781         * m4/ls-mntd-fs.m4: Check for hasmntopt() on platforms with
10782         1-argument getmntent() (instead of assuming absence).
10784 2014-07-08  Eric Blake  <eblake@redhat.com>
10786         maint.mk: less syntax-check noise when SIGPIPE is ignored
10787         * top/maint.mk (_sc_header_without_use)
10788         (sc_require_config_h_first): Parse full list.
10790 2014-07-07  Eli Zaretskii  <eliz@gnu.org>
10791             Paul Eggert  <eggert@cs.ucla.edu>
10793         nl_langinfo: CODESET on MS-Windows and more items from localeconv
10794         * lib/langinfo.in.h (DECIMAL_POINT, THOUSANDS_SEP, GROUPING)
10795         (CURRENCY_SYMBOL, INT_CURR_SYMBOL, MON_DECIMAL_POINT)
10796         (MON_THOUSANDS_SEP, MON_GROUPING, POSITIVE_SIGN, NEGATIVE_SIGN)
10797         (FRAC_DIGITS, INT_FRAC_DIGITS, P_CS_PRECEDES, N_CS_PRECEDES)
10798         (P_SEP_BY_SPACE, N_SEP_BY_SPACE, P_SIGN_POSN, N_SIGN_POSN): Define.
10799         * lib/nl_langinfo.c: Include <locale.h> and <string.h> early.
10800         Include <stdio.h> if Microsoft Windows.
10801         Include <time.h> if !REPLACE_NL_LANGINFO.
10802         (ctype_codeset): New function, taken from rpl_nl_langinfo,
10803         and with improvements for Microsoft Windows.
10804         (rpl_nl_langinfo): Use it.
10805         (nl_langinfo) [!REPLACE_NL_LANGINFO]: Likewise.
10806         Compute the values of RADIXCHAR, THOUSEP, GROUPING, CRNCYSTR,
10807         INT_CURR_SYMBOL, MON_DECIMAL_POINT, MON_THOUSANDS_SEP,
10808         MON_GROUPING, POSITIVE_SIGN, NEGATIVE_SIGN, FRAC_DIGITS,
10809         INT_FRAC_DIGITS, P_CS_PRECEDES, N_CS_PRECEDES, P_SEP_BY_SPACE,
10810         N_SEP_BY_SPACE, P_SIGN_POSN, and N_SIGN_POSN from the
10811         corresponding values returned by 'localeconv'.  Compute the values
10812         of AM_STR, PM_STR, DAY_n, ABDAY_n, MON_n, and ABMON_n by calling
10813         'strftime' with a suitable struct tm value.
10815 2014-07-05  Paul Eggert  <eggert@cs.ucla.edu>
10817         Bruno Haible has stepped down as maintainer.
10818         See Karl Berry in:
10819         http://lists.gnu.org/archive/html/bug-gnulib/2014-07/msg00004.html
10820         Daiki Ueno has volunteered to maintain libunistring; see:
10821         http://lists.gnu.org/archive/html/bug-gnulib/2014-07/msg00005.html
10822         * modules/gen-uni-tables, modules/libunistring:
10823         * modules/libunistring-optional, modules/ucs4-utf16, modules/ucs4-utf8:
10824         * modules/unicase/base, modules/unicase/cased:
10825         * modules/unicase/empty-prefix-context:
10826         * modules/unicase/empty-suffix-context, modules/unicase/ignorable:
10827         * modules/unicase/locale-language, modules/unicase/special-casing:
10828         * modules/unicase/tocasefold, modules/unicase/tolower:
10829         * modules/unicase/totitle, modules/unicase/toupper:
10830         * modules/unicase/u16-casecmp, modules/unicase/u16-casecoll:
10831         * modules/unicase/u16-casefold, modules/unicase/u16-casemap:
10832         * modules/unicase/u16-casexfrm, modules/unicase/u16-ct-casefold:
10833         * modules/unicase/u16-ct-tolower, modules/unicase/u16-ct-totitle:
10834         * modules/unicase/u16-ct-toupper, modules/unicase/u16-is-cased:
10835         * modules/unicase/u16-is-casefolded, modules/unicase/u16-is-invariant:
10836         * modules/unicase/u16-is-lowercase, modules/unicase/u16-is-titlecase:
10837         * modules/unicase/u16-is-uppercase, modules/unicase/u16-prefix-context:
10838         * modules/unicase/u16-suffix-context, modules/unicase/u16-tolower:
10839         * modules/unicase/u16-totitle, modules/unicase/u16-toupper:
10840         * modules/unicase/u32-casecmp, modules/unicase/u32-casecoll:
10841         * modules/unicase/u32-casefold, modules/unicase/u32-casemap:
10842         * modules/unicase/u32-casexfrm, modules/unicase/u32-ct-casefold:
10843         * modules/unicase/u32-ct-tolower, modules/unicase/u32-ct-totitle:
10844         * modules/unicase/u32-ct-toupper, modules/unicase/u32-is-cased:
10845         * modules/unicase/u32-is-casefolded, modules/unicase/u32-is-invariant:
10846         * modules/unicase/u32-is-lowercase, modules/unicase/u32-is-titlecase:
10847         * modules/unicase/u32-is-uppercase, modules/unicase/u32-prefix-context:
10848         * modules/unicase/u32-suffix-context, modules/unicase/u32-tolower:
10849         * modules/unicase/u32-totitle, modules/unicase/u32-toupper:
10850         * modules/unicase/u8-casecmp, modules/unicase/u8-casecoll:
10851         * modules/unicase/u8-casefold, modules/unicase/u8-casemap:
10852         * modules/unicase/u8-casexfrm, modules/unicase/u8-ct-casefold:
10853         * modules/unicase/u8-ct-tolower, modules/unicase/u8-ct-totitle:
10854         * modules/unicase/u8-ct-toupper, modules/unicase/u8-is-cased:
10855         * modules/unicase/u8-is-casefolded, modules/unicase/u8-is-invariant:
10856         * modules/unicase/u8-is-lowercase, modules/unicase/u8-is-titlecase:
10857         * modules/unicase/u8-is-uppercase, modules/unicase/u8-prefix-context:
10858         * modules/unicase/u8-suffix-context, modules/unicase/u8-tolower:
10859         * modules/unicase/u8-totitle, modules/unicase/u8-toupper:
10860         * modules/unicase/ulc-casecmp, modules/unicase/ulc-casecoll:
10861         * modules/unicase/ulc-casexfrm, modules/unicodeio:
10862         * modules/uniconv/base, modules/uniconv/u16-conv-from-enc:
10863         * modules/uniconv/u16-conv-to-enc:
10864         * modules/uniconv/u16-strconv-from-enc:
10865         * modules/uniconv/u16-strconv-from-locale:
10866         * modules/uniconv/u16-strconv-to-enc:
10867         * modules/uniconv/u16-strconv-to-locale:
10868         * modules/uniconv/u32-conv-from-enc, modules/uniconv/u32-conv-to-enc:
10869         * modules/uniconv/u32-strconv-from-enc:
10870         * modules/uniconv/u32-strconv-from-locale:
10871         * modules/uniconv/u32-strconv-to-enc:
10872         * modules/uniconv/u32-strconv-to-locale:
10873         * modules/uniconv/u8-conv-from-enc, modules/uniconv/u8-conv-to-enc:
10874         * modules/uniconv/u8-strconv-from-enc:
10875         * modules/uniconv/u8-strconv-from-locale:
10876         * modules/uniconv/u8-strconv-to-enc:
10877         * modules/uniconv/u8-strconv-to-locale, modules/unictype/base:
10878         * modules/unictype/bidicategory-all:
10879         * modules/unictype/bidicategory-byname:
10880         * modules/unictype/bidicategory-name, modules/unictype/bidicategory-of:
10881         * modules/unictype/bidicategory-test, modules/unictype/bidiclass-all:
10882         * modules/unictype/bidiclass-byname:
10883         * modules/unictype/bidiclass-longname, modules/unictype/bidiclass-name:
10884         * modules/unictype/bidiclass-of, modules/unictype/bidiclass-test:
10885         * modules/unictype/block-all, modules/unictype/block-list:
10886         * modules/unictype/block-of, modules/unictype/block-test:
10887         * modules/unictype/category-C, modules/unictype/category-Cc:
10888         * modules/unictype/category-Cf, modules/unictype/category-Cn:
10889         * modules/unictype/category-Co, modules/unictype/category-Cs:
10890         * modules/unictype/category-L, modules/unictype/category-LC:
10891         * modules/unictype/category-Ll, modules/unictype/category-Lm:
10892         * modules/unictype/category-Lo, modules/unictype/category-Lt:
10893         * modules/unictype/category-Lu, modules/unictype/category-M:
10894         * modules/unictype/category-Mc, modules/unictype/category-Me:
10895         * modules/unictype/category-Mn, modules/unictype/category-N:
10896         * modules/unictype/category-Nd, modules/unictype/category-Nl:
10897         * modules/unictype/category-No, modules/unictype/category-P:
10898         * modules/unictype/category-Pc, modules/unictype/category-Pd:
10899         * modules/unictype/category-Pe, modules/unictype/category-Pf:
10900         * modules/unictype/category-Pi, modules/unictype/category-Po:
10901         * modules/unictype/category-Ps, modules/unictype/category-S:
10902         * modules/unictype/category-Sc, modules/unictype/category-Sk:
10903         * modules/unictype/category-Sm, modules/unictype/category-So:
10904         * modules/unictype/category-Z, modules/unictype/category-Zl:
10905         * modules/unictype/category-Zp, modules/unictype/category-Zs:
10906         * modules/unictype/category-all, modules/unictype/category-and:
10907         * modules/unictype/category-and-not, modules/unictype/category-byname:
10908         * modules/unictype/category-longname, modules/unictype/category-name:
10909         * modules/unictype/category-none, modules/unictype/category-of:
10910         * modules/unictype/category-or, modules/unictype/category-test:
10911         * modules/unictype/category-test-withtable:
10912         * modules/unictype/combining-class:
10913         * modules/unictype/combining-class-all:
10914         * modules/unictype/combining-class-byname:
10915         * modules/unictype/combining-class-longname:
10916         * modules/unictype/combining-class-name, modules/unictype/ctype-alnum:
10917         * modules/unictype/ctype-alpha, modules/unictype/ctype-blank:
10918         * modules/unictype/ctype-cntrl, modules/unictype/ctype-digit:
10919         * modules/unictype/ctype-graph, modules/unictype/ctype-lower:
10920         * modules/unictype/ctype-print, modules/unictype/ctype-punct:
10921         * modules/unictype/ctype-space, modules/unictype/ctype-upper:
10922         * modules/unictype/ctype-xdigit, modules/unictype/decimal-digit:
10923         * modules/unictype/digit, modules/unictype/joininggroup-all:
10924         * modules/unictype/joininggroup-byname:
10925         * modules/unictype/joininggroup-name, modules/unictype/joininggroup-of:
10926         * modules/unictype/joiningtype-all:
10927         * modules/unictype/joiningtype-byname:
10928         * modules/unictype/joiningtype-longname:
10929         * modules/unictype/joiningtype-name, modules/unictype/joiningtype-of:
10930         * modules/unictype/mirror, modules/unictype/numeric:
10931         * modules/unictype/property-all, modules/unictype/property-alphabetic:
10932         * modules/unictype/property-ascii-hex-digit:
10933         * modules/unictype/property-bidi-arabic-digit:
10934         * modules/unictype/property-bidi-arabic-right-to-left:
10935         * modules/unictype/property-bidi-block-separator:
10936         * modules/unictype/property-bidi-boundary-neutral:
10937         * modules/unictype/property-bidi-common-separator:
10938         * modules/unictype/property-bidi-control:
10939         * modules/unictype/property-bidi-embedding-or-override:
10940         * modules/unictype/property-bidi-eur-num-separator:
10941         * modules/unictype/property-bidi-eur-num-terminator:
10942         * modules/unictype/property-bidi-european-digit:
10943         * modules/unictype/property-bidi-hebrew-right-to-left:
10944         * modules/unictype/property-bidi-left-to-right:
10945         * modules/unictype/property-bidi-non-spacing-mark:
10946         * modules/unictype/property-bidi-other-neutral:
10947         * modules/unictype/property-bidi-pdf:
10948         * modules/unictype/property-bidi-segment-separator:
10949         * modules/unictype/property-bidi-whitespace:
10950         * modules/unictype/property-byname:
10951         * modules/unictype/property-case-ignorable:
10952         * modules/unictype/property-cased:
10953         * modules/unictype/property-changes-when-casefolded:
10954         * modules/unictype/property-changes-when-casemapped:
10955         * modules/unictype/property-changes-when-lowercased:
10956         * modules/unictype/property-changes-when-titlecased:
10957         * modules/unictype/property-changes-when-uppercased:
10958         * modules/unictype/property-combining:
10959         * modules/unictype/property-composite:
10960         * modules/unictype/property-currency-symbol:
10961         * modules/unictype/property-dash:
10962         * modules/unictype/property-decimal-digit:
10963         * modules/unictype/property-default-ignorable-code-point:
10964         * modules/unictype/property-deprecated:
10965         * modules/unictype/property-diacritic:
10966         * modules/unictype/property-extender:
10967         * modules/unictype/property-format-control:
10968         * modules/unictype/property-grapheme-base:
10969         * modules/unictype/property-grapheme-extend:
10970         * modules/unictype/property-grapheme-link:
10971         * modules/unictype/property-hex-digit:
10972         * modules/unictype/property-hyphen:
10973         * modules/unictype/property-id-continue:
10974         * modules/unictype/property-id-start:
10975         * modules/unictype/property-ideographic:
10976         * modules/unictype/property-ids-binary-operator:
10977         * modules/unictype/property-ids-trinary-operator:
10978         * modules/unictype/property-ignorable-control:
10979         * modules/unictype/property-iso-control:
10980         * modules/unictype/property-join-control:
10981         * modules/unictype/property-left-of-pair:
10982         * modules/unictype/property-line-separator:
10983         * modules/unictype/property-logical-order-exception:
10984         * modules/unictype/property-lowercase, modules/unictype/property-math:
10985         * modules/unictype/property-non-break:
10986         * modules/unictype/property-not-a-character:
10987         * modules/unictype/property-numeric:
10988         * modules/unictype/property-other-alphabetic:
10989         * modules/unictype/property-other-default-ignorable-code-point:
10990         * modules/unictype/property-other-grapheme-extend:
10991         * modules/unictype/property-other-id-continue:
10992         * modules/unictype/property-other-id-start:
10993         * modules/unictype/property-other-lowercase:
10994         * modules/unictype/property-other-math:
10995         * modules/unictype/property-other-uppercase:
10996         * modules/unictype/property-paired-punctuation:
10997         * modules/unictype/property-paragraph-separator:
10998         * modules/unictype/property-pattern-syntax:
10999         * modules/unictype/property-pattern-white-space:
11000         * modules/unictype/property-private-use:
11001         * modules/unictype/property-punctuation:
11002         * modules/unictype/property-quotation-mark:
11003         * modules/unictype/property-radical:
11004         * modules/unictype/property-sentence-terminal:
11005         * modules/unictype/property-soft-dotted:
11006         * modules/unictype/property-space:
11007         * modules/unictype/property-terminal-punctuation:
11008         * modules/unictype/property-test, modules/unictype/property-titlecase:
11009         * modules/unictype/property-unassigned-code-value:
11010         * modules/unictype/property-unified-ideograph:
11011         * modules/unictype/property-uppercase:
11012         * modules/unictype/property-variation-selector:
11013         * modules/unictype/property-white-space:
11014         * modules/unictype/property-xid-continue:
11015         * modules/unictype/property-xid-start:
11016         * modules/unictype/property-zero-width, modules/unictype/scripts:
11017         * modules/unictype/scripts-all, modules/unictype/syntax-c-ident:
11018         * modules/unictype/syntax-c-whitespace:
11019         * modules/unictype/syntax-java-ident:
11020         * modules/unictype/syntax-java-whitespace, modules/unigbrk/base:
11021         * modules/unigbrk/u16-grapheme-breaks:
11022         * modules/unigbrk/u16-grapheme-next, modules/unigbrk/u16-grapheme-prev:
11023         * modules/unigbrk/u32-grapheme-breaks:
11024         * modules/unigbrk/u32-grapheme-next, modules/unigbrk/u32-grapheme-prev:
11025         * modules/unigbrk/u8-grapheme-breaks, modules/unigbrk/u8-grapheme-next:
11026         * modules/unigbrk/u8-grapheme-prev, modules/unigbrk/uc-gbrk-prop:
11027         * modules/unigbrk/uc-is-grapheme-break:
11028         * modules/unigbrk/ulc-grapheme-breaks, modules/unilbrk/base:
11029         * modules/unilbrk/tables, modules/unilbrk/u16-possible-linebreaks:
11030         * modules/unilbrk/u16-width-linebreaks:
11031         * modules/unilbrk/u32-possible-linebreaks:
11032         * modules/unilbrk/u32-width-linebreaks:
11033         * modules/unilbrk/u8-possible-linebreaks:
11034         * modules/unilbrk/u8-width-linebreaks, modules/unilbrk/ulc-common:
11035         * modules/unilbrk/ulc-possible-linebreaks:
11036         * modules/unilbrk/ulc-width-linebreaks, modules/uniname/base:
11037         * modules/uniname/uniname, modules/uninorm/base:
11038         * modules/uninorm/canonical-decomposition:
11039         * modules/uninorm/compat-decomposition, modules/uninorm/composition:
11040         * modules/uninorm/decompose-internal, modules/uninorm/decomposing-form:
11041         * modules/uninorm/decomposition, modules/uninorm/decomposition-table:
11042         * modules/uninorm/filter, modules/uninorm/nfc, modules/uninorm/nfd:
11043         * modules/uninorm/nfkc, modules/uninorm/nfkd:
11044         * modules/uninorm/u16-normalize, modules/uninorm/u16-normcmp:
11045         * modules/uninorm/u16-normcoll, modules/uninorm/u16-normxfrm:
11046         * modules/uninorm/u32-normalize, modules/uninorm/u32-normcmp:
11047         * modules/uninorm/u32-normcoll, modules/uninorm/u32-normxfrm:
11048         * modules/uninorm/u8-normalize, modules/uninorm/u8-normcmp:
11049         * modules/uninorm/u8-normcoll, modules/uninorm/u8-normxfrm:
11050         * modules/unistdio/base, modules/unistdio/u-printf-args:
11051         * modules/unistdio/u16-asnprintf, modules/unistdio/u16-asprintf:
11052         * modules/unistdio/u16-printf-parse, modules/unistdio/u16-snprintf:
11053         * modules/unistdio/u16-sprintf, modules/unistdio/u16-u16-asnprintf:
11054         * modules/unistdio/u16-u16-asprintf, modules/unistdio/u16-u16-snprintf:
11055         * modules/unistdio/u16-u16-sprintf:
11056         * modules/unistdio/u16-u16-vasnprintf:
11057         * modules/unistdio/u16-u16-vasprintf:
11058         * modules/unistdio/u16-u16-vsnprintf:
11059         * modules/unistdio/u16-u16-vsprintf, modules/unistdio/u16-vasnprintf:
11060         * modules/unistdio/u16-vasprintf, modules/unistdio/u16-vsnprintf:
11061         * modules/unistdio/u16-vsprintf, modules/unistdio/u32-asnprintf:
11062         * modules/unistdio/u32-asprintf, modules/unistdio/u32-printf-parse:
11063         * modules/unistdio/u32-snprintf, modules/unistdio/u32-sprintf:
11064         * modules/unistdio/u32-u32-asnprintf:
11065         * modules/unistdio/u32-u32-asprintf, modules/unistdio/u32-u32-snprintf:
11066         * modules/unistdio/u32-u32-sprintf:
11067         * modules/unistdio/u32-u32-vasnprintf:
11068         * modules/unistdio/u32-u32-vasprintf:
11069         * modules/unistdio/u32-u32-vsnprintf:
11070         * modules/unistdio/u32-u32-vsprintf, modules/unistdio/u32-vasnprintf:
11071         * modules/unistdio/u32-vasprintf, modules/unistdio/u32-vsnprintf:
11072         * modules/unistdio/u32-vsprintf, modules/unistdio/u8-asnprintf:
11073         * modules/unistdio/u8-asprintf, modules/unistdio/u8-printf-parse:
11074         * modules/unistdio/u8-snprintf, modules/unistdio/u8-sprintf:
11075         * modules/unistdio/u8-u8-asnprintf, modules/unistdio/u8-u8-asprintf:
11076         * modules/unistdio/u8-u8-snprintf, modules/unistdio/u8-u8-sprintf:
11077         * modules/unistdio/u8-u8-vasnprintf, modules/unistdio/u8-u8-vasprintf:
11078         * modules/unistdio/u8-u8-vsnprintf, modules/unistdio/u8-u8-vsprintf:
11079         * modules/unistdio/u8-vasnprintf, modules/unistdio/u8-vasprintf:
11080         * modules/unistdio/u8-vsnprintf, modules/unistdio/u8-vsprintf:
11081         * modules/unistdio/ulc-asnprintf, modules/unistdio/ulc-asprintf:
11082         * modules/unistdio/ulc-fprintf, modules/unistdio/ulc-printf-parse:
11083         * modules/unistdio/ulc-snprintf, modules/unistdio/ulc-sprintf:
11084         * modules/unistdio/ulc-vasnprintf, modules/unistdio/ulc-vasprintf:
11085         * modules/unistdio/ulc-vfprintf, modules/unistdio/ulc-vsnprintf:
11086         * modules/unistdio/ulc-vsprintf, modules/unistr/base:
11087         * modules/unistr/u16-check, modules/unistr/u16-chr:
11088         * modules/unistr/u16-cmp, modules/unistr/u16-cmp2:
11089         * modules/unistr/u16-cpy, modules/unistr/u16-cpy-alloc:
11090         * modules/unistr/u16-endswith, modules/unistr/u16-mblen:
11091         * modules/unistr/u16-mbsnlen, modules/unistr/u16-mbtouc:
11092         * modules/unistr/u16-mbtouc-unsafe, modules/unistr/u16-mbtoucr:
11093         * modules/unistr/u16-move, modules/unistr/u16-next:
11094         * modules/unistr/u16-prev, modules/unistr/u16-set:
11095         * modules/unistr/u16-startswith, modules/unistr/u16-stpcpy:
11096         * modules/unistr/u16-stpncpy, modules/unistr/u16-strcat:
11097         * modules/unistr/u16-strchr, modules/unistr/u16-strcmp:
11098         * modules/unistr/u16-strcoll, modules/unistr/u16-strcpy:
11099         * modules/unistr/u16-strcspn, modules/unistr/u16-strdup:
11100         * modules/unistr/u16-strlen, modules/unistr/u16-strmblen:
11101         * modules/unistr/u16-strmbtouc, modules/unistr/u16-strncat:
11102         * modules/unistr/u16-strncmp, modules/unistr/u16-strncpy:
11103         * modules/unistr/u16-strnlen, modules/unistr/u16-strpbrk:
11104         * modules/unistr/u16-strrchr, modules/unistr/u16-strspn:
11105         * modules/unistr/u16-strstr, modules/unistr/u16-strtok:
11106         * modules/unistr/u16-to-u32, modules/unistr/u16-to-u8:
11107         * modules/unistr/u16-uctomb, modules/unistr/u32-check:
11108         * modules/unistr/u32-chr, modules/unistr/u32-cmp:
11109         * modules/unistr/u32-cmp2, modules/unistr/u32-cpy:
11110         * modules/unistr/u32-cpy-alloc, modules/unistr/u32-endswith:
11111         * modules/unistr/u32-mblen, modules/unistr/u32-mbsnlen:
11112         * modules/unistr/u32-mbtouc, modules/unistr/u32-mbtouc-unsafe:
11113         * modules/unistr/u32-mbtoucr, modules/unistr/u32-move:
11114         * modules/unistr/u32-next, modules/unistr/u32-prev:
11115         * modules/unistr/u32-set, modules/unistr/u32-startswith:
11116         * modules/unistr/u32-stpcpy, modules/unistr/u32-stpncpy:
11117         * modules/unistr/u32-strcat, modules/unistr/u32-strchr:
11118         * modules/unistr/u32-strcmp, modules/unistr/u32-strcoll:
11119         * modules/unistr/u32-strcpy, modules/unistr/u32-strcspn:
11120         * modules/unistr/u32-strdup, modules/unistr/u32-strlen:
11121         * modules/unistr/u32-strmblen, modules/unistr/u32-strmbtouc:
11122         * modules/unistr/u32-strncat, modules/unistr/u32-strncmp:
11123         * modules/unistr/u32-strncpy, modules/unistr/u32-strnlen:
11124         * modules/unistr/u32-strpbrk, modules/unistr/u32-strrchr:
11125         * modules/unistr/u32-strspn, modules/unistr/u32-strstr:
11126         * modules/unistr/u32-strtok, modules/unistr/u32-to-u16:
11127         * modules/unistr/u32-to-u8, modules/unistr/u32-uctomb:
11128         * modules/unistr/u8-check, modules/unistr/u8-chr:
11129         * modules/unistr/u8-cmp, modules/unistr/u8-cmp2, modules/unistr/u8-cpy:
11130         * modules/unistr/u8-cpy-alloc, modules/unistr/u8-endswith:
11131         * modules/unistr/u8-mblen, modules/unistr/u8-mbsnlen:
11132         * modules/unistr/u8-mbtouc, modules/unistr/u8-mbtouc-unsafe:
11133         * modules/unistr/u8-mbtoucr, modules/unistr/u8-move:
11134         * modules/unistr/u8-next, modules/unistr/u8-prev:
11135         * modules/unistr/u8-set, modules/unistr/u8-startswith:
11136         * modules/unistr/u8-stpcpy, modules/unistr/u8-stpncpy:
11137         * modules/unistr/u8-strcat, modules/unistr/u8-strchr:
11138         * modules/unistr/u8-strcmp, modules/unistr/u8-strcoll:
11139         * modules/unistr/u8-strcpy, modules/unistr/u8-strcspn:
11140         * modules/unistr/u8-strdup, modules/unistr/u8-strlen:
11141         * modules/unistr/u8-strmblen, modules/unistr/u8-strmbtouc:
11142         * modules/unistr/u8-strncat, modules/unistr/u8-strncmp:
11143         * modules/unistr/u8-strncpy, modules/unistr/u8-strnlen:
11144         * modules/unistr/u8-strpbrk, modules/unistr/u8-strrchr:
11145         * modules/unistr/u8-strspn, modules/unistr/u8-strstr:
11146         * modules/unistr/u8-strtok, modules/unistr/u8-to-u16:
11147         * modules/unistr/u8-to-u32, modules/unistr/u8-uctomb, modules/unitypes:
11148         * modules/uniwbrk/base, modules/uniwbrk/table:
11149         * modules/uniwbrk/u16-wordbreaks, modules/uniwbrk/u32-wordbreaks:
11150         * modules/uniwbrk/u8-wordbreaks, modules/uniwbrk/ulc-wordbreaks:
11151         * modules/uniwbrk/wordbreak-property, modules/uniwidth/base:
11152         * modules/uniwidth/u16-strwidth, modules/uniwidth/u16-width:
11153         * modules/uniwidth/u32-strwidth, modules/uniwidth/u32-width:
11154         * modules/uniwidth/u8-strwidth, modules/uniwidth/u8-width:
11155         * modules/uniwidth/width, modules/utf16-ucs4:
11156         * modules/utf16-ucs4-unsafe, modules/utf8-ucs4:
11157         * modules/utf8-ucs4-unsafe:
11158         Change maintainer from Bruno Haible to Daiki Ueno.
11159         This is my guess at the libunistring modules; please feel free
11160         to fix if I guessed incorrectly.
11161         * modules/accept4, modules/acl, modules/acos, modules/acosf:
11162         * modules/alignof, modules/amemxfrm, modules/ansi-c++-opt:
11163         * modules/areadlink, modules/array-list, modules/array-mergesort:
11164         * modules/array-oset, modules/asin, modules/asinf, modules/astrxfrm:
11165         * modules/atan, modules/atan2, modules/atan2f, modules/atanf:
11166         * modules/avltree-list, modules/avltree-oset, modules/avltreehash-list:
11167         * modules/binary-io, modules/bison-i18n, modules/btowc:
11168         * modules/c-ctype, modules/c-strcase, modules/c-strcaseeq:
11169         * modules/c-strcasestr, modules/c-strstr, modules/calloc-posix:
11170         * modules/canonicalize-lgpl, modules/careadlinkat, modules/carray-list:
11171         * modules/cbrt, modules/cbrt-ieee, modules/cbrtf, modules/cbrtf-ieee:
11172         * modules/cbrtl, modules/cbrtl-ieee, modules/ceil, modules/ceil-ieee:
11173         * modules/ceilf, modules/ceilf-ieee, modules/ceill, modules/ceill-ieee:
11174         * modules/chdir, modules/classpath, modules/clean-temp, modules/close:
11175         * modules/closedir, modules/concat-filename, modules/copy-file:
11176         * modules/copysign, modules/copysignf, modules/copysignl, modules/cos:
11177         * modules/cosf, modules/cosh, modules/coshf, modules/csharpcomp:
11178         * modules/csharpcomp-script, modules/csharpexec:
11179         * modules/csharpexec-script, modules/ctype, modules/diffseq:
11180         * modules/dprintf, modules/dprintf-posix, modules/dup:
11181         * modules/dup2-obsolete, modules/dup3, modules/duplocale:
11182         * modules/eealloc, modules/environ, modules/erf, modules/erfc:
11183         * modules/errno, modules/execute, modules/exp, modules/exp-ieee:
11184         * modules/exp2, modules/exp2-ieee, modules/exp2f, modules/exp2f-ieee:
11185         * modules/exp2l, modules/exp2l-ieee, modules/expf, modules/expf-ieee:
11186         * modules/expl, modules/expl-ieee, modules/expm1, modules/expm1-ieee:
11187         * modules/expm1f, modules/expm1f-ieee, modules/expm1l:
11188         * modules/expm1l-ieee, modules/fabs, modules/fabs-ieee, modules/fabsf:
11189         * modules/fabsf-ieee, modules/fabsl, modules/fabsl-ieee:
11190         * modules/fatal-signal, modules/fbufmode, modules/fchdir:
11191         * modules/fclose, modules/fd-hook, modules/fdopen, modules/filename:
11192         * modules/findprog, modules/findprog-lgpl, modules/floor:
11193         * modules/floor-ieee, modules/floorf, modules/floorf-ieee:
11194         * modules/floorl, modules/floorl-ieee, modules/fma, modules/fma-ieee:
11195         * modules/fmaf, modules/fmaf-ieee, modules/fmal, modules/fmal-ieee:
11196         * modules/fmod, modules/fmod-ieee, modules/fmodf, modules/fmodf-ieee:
11197         * modules/fmodl, modules/fmodl-ieee, modules/fopen, modules/fpieee:
11198         * modules/fprintf-posix, modules/fpucw, modules/fpurge:
11199         * modules/freadable, modules/freadahead, modules/freadptr:
11200         * modules/freadseek, modules/freopen, modules/frexp:
11201         * modules/frexp-ieee, modules/frexp-nolibm, modules/frexpf:
11202         * modules/frexpf-ieee, modules/frexpl, modules/frexpl-ieee:
11203         * modules/frexpl-nolibm, modules/fseek, modules/fseeko:
11204         * modules/fseterr, modules/fstat, modules/fstrcmp, modules/ftell:
11205         * modules/ftello, modules/full-read, modules/full-write:
11206         * modules/fwritable, modules/fwriteerror, modules/gcd:
11207         * modules/get-rusage-as, modules/get-rusage-data:
11208         * modules/getdtablesize, modules/getrusage, modules/gettext:
11209         * modules/gettext-h, modules/git-merge-changelog, modules/gperf:
11210         * modules/grantpt, modules/havelib, modules/host-cpu-c-abi:
11211         * modules/hostent, modules/hypot, modules/hypot-ieee, modules/hypotf:
11212         * modules/hypotf-ieee, modules/hypotl, modules/hypotl-ieee:
11213         * modules/iconv, modules/iconv-h, modules/iconv_open:
11214         * modules/iconv_open-utf, modules/idpriv-drop, modules/idpriv-droptemp:
11215         * modules/ilogb, modules/ilogbf, modules/ilogbl, modules/imaxabs:
11216         * modules/imaxdiv, modules/integer_length, modules/integer_length_l:
11217         * modules/integer_length_ll, modules/ioctl, modules/isatty:
11218         * modules/isblank, modules/isnand, modules/isnand-nolibm:
11219         * modules/isnanf, modules/isnanf-nolibm, modules/isnanl:
11220         * modules/isnanl-nolibm, modules/iswblank, modules/iswctype:
11221         * modules/j0, modules/j1, modules/javacomp, modules/javacomp-script:
11222         * modules/javaexec, modules/javaexec-script, modules/javaversion:
11223         * modules/jn, modules/langinfo, modules/ldd, modules/ldexp:
11224         * modules/ldexp-ieee, modules/ldexpf, modules/ldexpf-ieee:
11225         * modules/ldexpl, modules/ldexpl-ieee, modules/lgamma:
11226         * modules/lib-symbol-visibility, modules/libsigsegv:
11227         * modules/linked-list, modules/linkedhash-list, modules/list:
11228         * modules/localcharset, modules/locale, modules/localeconv:
11229         * modules/localename, modules/lock, modules/log, modules/log-ieee:
11230         * modules/log10, modules/log10-ieee, modules/log10f:
11231         * modules/log10f-ieee, modules/log10l, modules/log10l-ieee:
11232         * modules/log1p, modules/log1p-ieee, modules/log1pf:
11233         * modules/log1pf-ieee, modules/log1pl, modules/log1pl-ieee:
11234         * modules/log2, modules/log2-ieee, modules/log2f, modules/log2f-ieee:
11235         * modules/log2l, modules/log2l-ieee, modules/logb, modules/logb-ieee:
11236         * modules/logbf, modules/logbf-ieee, modules/logbl, modules/logbl-ieee:
11237         * modules/logf, modules/logf-ieee, modules/login_tty:
11238         * modules/logl-ieee, modules/malloc-posix, modules/malloca:
11239         * modules/mbchar, modules/mbfile, modules/mbiter, modules/mbmemcasecmp:
11240         * modules/mbmemcasecoll, modules/mbrlen, modules/mbrtowc:
11241         * modules/mbscasecmp, modules/mbscasestr, modules/mbschr:
11242         * modules/mbscspn, modules/mbsinit, modules/mbslen:
11243         * modules/mbsncasecmp, modules/mbsnlen, modules/mbsnrtowcs:
11244         * modules/mbspbrk, modules/mbspcasecmp, modules/mbsrchr:
11245         * modules/mbsrtowcs, modules/mbssep, modules/mbsspn, modules/mbsstr:
11246         * modules/mbstok_r, modules/mbswidth, modules/mbtowc, modules/mbuiter:
11247         * modules/memchr-obsolete, modules/memcmp2, modules/minmax:
11248         * modules/mkdtemp, modules/mkostemp, modules/mktime-internal:
11249         * modules/modf, modules/modf-ieee, modules/modff, modules/modff-ieee:
11250         * modules/modfl, modules/modfl-ieee, modules/msvc-inval:
11251         * modules/msvc-nothrow, modules/multiarch, modules/nextafter:
11252         * modules/nl_langinfo, modules/no-c++, modules/nocrash:
11253         * modules/nonblocking, modules/open, modules/opendir, modules/openmp:
11254         * modules/oset, modules/pclose, modules/pipe, modules/pipe-filter-gi:
11255         * modules/pipe-filter-ii, modules/pipe2, modules/poll-h:
11256         * modules/posix_spawn, modules/posix_spawn-internal:
11257         * modules/posix_spawn_file_actions_addclose:
11258         * modules/posix_spawn_file_actions_adddup2:
11259         * modules/posix_spawn_file_actions_addopen:
11260         * modules/posix_spawn_file_actions_destroy:
11261         * modules/posix_spawn_file_actions_init:
11262         * modules/posix_spawnattr_destroy, modules/posix_spawnattr_getflags:
11263         * modules/posix_spawnattr_getpgroup:
11264         * modules/posix_spawnattr_getschedparam:
11265         * modules/posix_spawnattr_getschedpolicy:
11266         * modules/posix_spawnattr_getsigdefault:
11267         * modules/posix_spawnattr_getsigmask, modules/posix_spawnattr_init:
11268         * modules/posix_spawnattr_setflags, modules/posix_spawnattr_setpgroup:
11269         * modules/posix_spawnattr_setschedparam:
11270         * modules/posix_spawnattr_setschedpolicy:
11271         * modules/posix_spawnattr_setsigdefault:
11272         * modules/posix_spawnattr_setsigmask, modules/posix_spawnp:
11273         * modules/pow, modules/powf, modules/printf-frexp:
11274         * modules/printf-frexpl, modules/printf-posix, modules/printf-safe:
11275         * modules/progname, modules/propername, modules/pselect:
11276         * modules/pthread_sigmask, modules/ptsname, modules/ptsname_r:
11277         * modules/qacl, modules/quotearg-simple, modules/raise, modules/random:
11278         * modules/rbtree-list, modules/rbtree-oset, modules/rbtreehash-list:
11279         * modules/read, modules/readdir, modules/readlink:
11280         * modules/realloc-posix, modules/regex-quote, modules/relocatable-lib:
11281         * modules/relocatable-lib-lgpl, modules/relocatable-perl:
11282         * modules/relocatable-prog, modules/relocatable-prog-wrapper:
11283         * modules/relocatable-script, modules/remainder:
11284         * modules/remainder-ieee, modules/remainderf, modules/remainderf-ieee:
11285         * modules/remainderl, modules/remainderl-ieee, modules/rewinddir:
11286         * modules/rint, modules/rint-ieee, modules/rintf, modules/rintf-ieee:
11287         * modules/rintl, modules/rintl-ieee, modules/round-ieee:
11288         * modules/roundf-ieee, modules/roundl-ieee, modules/safe-read:
11289         * modules/safe-write, modules/sched, modules/servent, modules/setenv:
11290         * modules/setlocale, modules/sh-quote, modules/shutdown:
11291         * modules/signal, modules/signbit, modules/sigpipe:
11292         * modules/sigpipe-die, modules/sigprocmask, modules/sin, modules/sinf:
11293         * modules/sinh, modules/sinhf, modules/size_max, modules/sleep:
11294         * modules/snippet/arg-nonnull, modules/snippet/c++defs:
11295         * modules/snippet/link-warning, modules/snippet/unused-parameter:
11296         * modules/snprintf, modules/snprintf-posix, modules/spawn:
11297         * modules/spawn-pipe, modules/sprintf-posix, modules/sqrt:
11298         * modules/sqrt-ieee, modules/sqrtf, modules/sqrtf-ieee:
11299         * modules/sqrtl-ieee, modules/stdalign, modules/stdarg:
11300         * modules/stdbool, modules/stpcpy, modules/stpncpy, modules/strcase:
11301         * modules/strcasestr, modules/strcasestr-simple, modules/strcspn:
11302         * modules/streq, modules/strerror_r-posix, modules/striconv:
11303         * modules/striconveh, modules/striconveha, modules/strncat:
11304         * modules/strnlen1, modules/strpbrk, modules/strtod-obsolete:
11305         * modules/sublist, modules/sys_resource, modules/sys_utsname:
11306         * modules/sys_wait, modules/system-posix, modules/system-quote:
11307         * modules/tan, modules/tanf, modules/tanh, modules/tanhf:
11308         * modules/tcgetsid, modules/termios, modules/threadlib, modules/tls:
11309         * modules/tmpdir, modules/towctrans, modules/trunc, modules/trunc-ieee:
11310         * modules/truncf, modules/truncf-ieee, modules/truncl:
11311         * modules/truncl-ieee, modules/ttyname_r, modules/uname:
11312         * modules/unlockpt, modules/unsetenv, modules/vasnprintf:
11313         * modules/vasnprintf-posix, modules/vasprintf, modules/vasprintf-posix:
11314         * modules/vdprintf, modules/vdprintf-posix, modules/vfprintf-posix:
11315         * modules/vfscanf, modules/vma-iter, modules/vprintf-posix:
11316         * modules/vscanf, modules/vsnprintf-posix, modules/vsprintf-posix:
11317         * modules/wait-process, modules/waitpid, modules/wcpcpy:
11318         * modules/wcpncpy, modules/wcrtomb, modules/wcscasecmp, modules/wcscat:
11319         * modules/wcschr, modules/wcscmp, modules/wcscoll, modules/wcscpy:
11320         * modules/wcscspn, modules/wcsdup, modules/wcslen, modules/wcsncasecmp:
11321         * modules/wcsncat, modules/wcsncmp, modules/wcsncpy, modules/wcsnlen:
11322         * modules/wcsnrtombs, modules/wcspbrk, modules/wcsrchr:
11323         * modules/wcsrtombs, modules/wcsspn, modules/wcsstr, modules/wcstok:
11324         * modules/wcswidth, modules/wcsxfrm, modules/wctob, modules/wctomb:
11325         * modules/wctrans, modules/wctype, modules/wcwidth, modules/wmemchr:
11326         * modules/wmemcmp, modules/wmemcpy, modules/wmemmove, modules/wmemset:
11327         * modules/write, modules/xconcat-filename, modules/xlist:
11328         * modules/xmalloca, modules/xoset, modules/xprintf-posix:
11329         * modules/xreadlink, modules/xsetenv, modules/xsize, modules/xstriconv:
11330         * modules/xstriconveh, modules/xsublist, modules/xvasprintf-posix:
11331         * modules/y0, modules/y1, modules/yn:
11332         Remove Bruno Haible as maintainer; if he's the sole maintainer,
11333         change the maintainer to 'all'.  Let's hope someone volunteers.
11335 2014-06-27  Paul Eggert  <eggert@cs.ucla.edu>
11337         mktime: merge #if/#ifdef usage from glibc
11338         * lib/mktime.c: Use "#if defined DEBUG && DEBUG", not "#if DEBUG",
11339         as that works with both Glibc's and Gnulib's style.
11340         See thread starting at Siddhesh Poyarekar's bug report at:
11341         http://lists.gnu.org/archive/html/bug-gnulib/2014-06/msg00102.html
11343 2014-06-20  Alfred M. Szmidt  <ams@gnu.org>
11345         git-version-gen: improve option descriptions
11346         * build-aux/git-version-gen: Mention that --prefix and --fallback
11347         have a mandatory argument.
11349 2014-06-19  Paul Eggert  <eggert@penguin.cs.ucla.edu>
11351         regex: fix memory leak in compiler
11352         Fix by Andreas Schwab in:
11353         https://sourceware.org/ml/libc-alpha/2014-06/msg00462.html
11354         * lib/regcomp.c (parse_expression): Deallocate partially
11355         constructed tree before returning error.
11357         regex: merge patch from libc
11358         2014-02-12  Joseph Myers  <joseph@codesourcery.com>
11359         Combine __USE_BSD and __USE_SVID into __USE_MISC.
11360         * lib/regex.h [__USE_BSD]: Change condition to [__USE_MISC].
11362 2014-06-17  Paul Eggert  <eggert@cs.ucla.edu>
11364         acl: port to gcc -Wredundant-decls
11365         From a request by Dmitry Antipov in:
11366         http://lists.gnu.org/archive/html/emacs-devel/2014-06/msg00263.html
11367         * lib/acl.h (_GL_ACL_H): New macro.  Protect entire contents with
11368         "#ifndef _GL_ACL_H".
11370 2014-06-11  Bruce Korb  <bkorb@gnu.org>
11371         Jim Meyering  <meyering@fb.com>
11373         parse-duration: eliminate 68-year duration limit
11374         * lib/parse-duration.c: Include "intprops.h".
11375         (TIME_MAX): Rename to MAX_DURATION and define to
11376         TYPE_MAXIMUM(time_t).
11377         * modules/parse-duration (Depends-on): Add intprops.
11378         Reported by Jonas 'Sortie' Termansen.
11380 2014-06-14  Paul Eggert  <eggert@cs.ucla.edu>
11382         pthread: don't assume AC_CANONICAL_HOST, port better to Solaris, etc.
11383         * modules/pthread (Depends-on): Add 'extensions', as it defines
11384         _POSIX_PTHREAD_SEMANTICS, which is needed on Solaris.
11385         (configure.ac-early): New section.
11386         * m4/pthread.m4 (gl_PTHREAD_CHECK): Revert previous change, as
11387         it is no longer needed.
11389 2014-06-14  Pádraig Brady  <P@draigBrady.com>
11391         pthread: define thread-safe macros on some platforms
11392         * m4/pthread.m4 (gl_PTHREAD_CHECK): Define macros needed
11393         for thread-safe operation on some platforms.
11395 2014-06-13  Paul Eggert  <eggert@cs.ucla.edu>
11397         regex: don't be multithreaded if USE_UNLOCKED_IO.
11398         Problem reported by Michael Felt in: http://bugs.gnu.org/17773
11399         * lib/regex_internal.h: Do not use multithreaded version if
11400         USE_UNLOCKED_IO is defined.  This is a hack, but it works
11401         around a porting bug with coreutils 8.22 on AIX 7.1.
11403 2014-06-11  Daiki Ueno  <ueno@gnu.org>
11405         gettext: update macros to version 0.19
11406         * m4/intl.m4, m4/po.m4: Update from gettext-0.19.  In particular,
11407         depend on gl_EXTERN_INLINE and drop support for older Bison
11408         versions.
11410 2014-06-10  Pádraig Brady  <P@draigBrady.com>
11412         select,poll: fix console handle check on windows 8
11413         lib/poll.c (IsConsoleHandle): Change from testing the lower
11414         2 bits of the handle to the more expensive but accurate syscall.
11415         lib/select.c: Likewise.
11417 2014-06-10  Eli Zaretskii  <eliz@gnu.org>
11419         select: fix waiting on anonymous pipes on MS-Windows
11420         * lib/select.c (rpl_select): Fall back to polling when select()
11421         indicates there is nothing to check, while due to the timeout not
11422         expiring, activity is indicated on one of the handles.
11423         Also clear the TIMEOUT argument if the timer does expire.
11425 2014-06-10  Eli Zaretskii  <eliz@gnu.org>
11427         times: fix to return non constant value on MS-Windows
11428         * lib/times.c (times): Don't use the process creation time,
11429         rather clock() which on windows returns the number of
11430         clock ticks since the process started.
11432 2014-06-09  Michael Goffioul  <michael.goffioul@gmail.com>
11434         isatty: fix to work on windows 8
11435         * lib/isatty.c (IsConsoleHandle): Change from testing the lower
11436         2 bits of the handle to the more expensive but accurate syscall.
11438 2014-06-07  Paul Eggert  <eggert@cs.ucla.edu>
11440         maint: fix typo in fdl.texi
11441         * doc/fdl.texi: Fix typo (missing '@').
11442         Somehow this was in fdl.texi but not fdl-1.3.texi.
11444 2014-06-06  Ben Walton  <bdwalton@gmail.com>
11446         mountlist: avoid hasmntopt const type warning on solaris
11447         * lib/mountlist.c: Solaris defines the OPT param of hasmntopt()
11448         with char * instead of const char *.  Passing the constant string
11449         "ignore" generates a compiler warning.  For Solaris cast MNT_IGNORE
11450         to avoid the warning.
11452 2014-06-04  Eric Blake  <eblake@redhat.com>
11454         maintainer-makefile: delete obsolete code
11455         * top/maint.mk (build_aux): Drop old code, as threatened.
11457         maintainer-makefile: avoid spurious error messages
11458         * top/maint.mk (syntax-check): Guard definition and use of
11459         $(shell) by whether Makefile is present.
11461 2014-06-03  Ben Walton  <bdwalton@gmail.com>
11463         rename: avoid unused-but-set-variable compiler warning
11464         * lib/rename.c (rpl_rename):  In the non-Win32 variant of rpl_rename,
11465         it is possible that dst_exists may be set but not used.  Mark it with
11466         the unused attribute to avoid compiler warnings.
11468 2014-06-02  Ben Walton  <bdwalton@gmail.com>
11470         rename: mark a label as potentially unused
11471         * lib/rename.c (rpl_rename): Avoid compiler warnings seen on Solaris,
11472         by marking the out label as potentially unused.
11473         * m4/gnulib-common.m4: Mention the need for the trailing ; for C++.
11475 2014-06-01  Paul Eggert  <eggert@cs.ucla.edu>
11477         gnulib-common.m4: Fix typo in _GL_UNUSED_LABEL.
11478         * m4/gnulib-common.m4 (_GL_UNUSED_LABEL): Omit trailing semicolon.
11480 2014-06-02  Ben Walton  <bdwalton@gmail.com>
11482         acl: apply pure attribute to two functions
11483         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial):
11484         Mark as "pure" as flagged by gcc 4.9 on Solaris 10.
11486 2014-06-01  Pádraig Brady  <P@draigBrady.com>
11488         gnulib-common.m4: add _GL_UNUSED_LABEL
11489         * m4/gnulib-common.m4: Add _GL_UNUSED_LABEL which is similar to
11490         _GL_UNUSED, but handles g++ < 4.5 not supporting this syntax.
11492 2014-05-31  Paul Eggert  <eggert@cs.ucla.edu>
11494         dup2, fcntl, fcntl-h: port to AIX 7.1
11495         This fixes some porting problems discovered when testing the latest
11496         grep snapshot on AIX 7.1.  I don't think if fixes any bugs
11497         in grep but it could be important for other applications.
11498         * doc/posix-functions/dup2.texi:
11499         * doc/posix-functions/fcntl.texi:
11500         * doc/posix-headers/fcntl.texi:
11501         Document AIX bugs.
11502         * lib/fcntl.in.h (O_CLOEXEC, O_NOFOLLOW, O_TTY_INIT) [_AIX]:
11503         Define to 0 if outside 'int' range.
11504         * m4/dup2.m4 (gl_FUNC_DUP2):
11505         * m4/fcntl.m4 (gl_FUNC_FCNTL):
11506         Check for getdtablesize.  If it's available, test a value just
11507         outside its range instead of testing 1000000.  When cross-compiling,
11508         guess that AIX will fail this improved test.
11510 2014-05-30  Paul Eggert  <eggert@cs.ucla.edu>
11512         printf, config.rpath: Port to FreeBSD 10.
11513         Problem reported by Tijl Coosemans in:
11514         http://lists.gnu.org/archive/html/bug-gnulib/2014-05/msg00078.html
11515         * build-aux/config.rpath (hardcode_libdir_flag_spec)
11516         (hardcode_direct): Simplify FreeBSD configuration.
11517         (library_names_spec): Don't mishandle FreeBSD 10+.
11518         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE)
11519         (gl_PRINTF_INFINITE_LONG_DOUBLE, gl_PRINTF_DIRECTIVE_F)
11520         (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99)
11521         (gl_SNPRINTF_DIRECTIVE_N, gl_VSNPRINTF_ZEROSIZE_C99):
11522         Don't mishandle FreeBSD 10+ when cross-compiling.
11524         ftoastr: work around compiler bug in IBM xlc 12.1
11525         * lib/ftoastr.h (_GL_FLT_PREC_BOUND, _GL_DBL_PREC_BOUND)
11526         (_GL_LDBL_PREC_BOUND): Make these macros, not enums, to work
11527         around a compiler bug in IBM xlc 12.1.0.0: it complains
11528         '"ftoastr.c", line 80.37: 1506-045 (S) Undeclared identifier
11529         _GL_FLT_PREC_BOUND.'
11531 2014-05-30  Kieran Colford  <colfordk@gmail.com>
11533         valgrind-tests: fixed misleading help message
11534         * m4/valgrind-tests.m4: The help message generated by configure
11535         implied that valgrind was disabled by default, which it wasn't.
11536         Adjusted the help message using s/enable/disable/ to clarify.
11538 2014-05-30  Ulrich Weigand  <uweigand@de.ibm.com>
11540         isfinite, isinf, isnan tests: fix for little-endian PowerPC
11541         * tests/test-isfinite.c (test_isfinitel): Only manipulate the
11542         first double of a PowerPC "double double" pair.
11543         * tests/test-isinf.c (test_isinfl): Likewise.
11544         * tests/test-isnan.c (test_long_double): Likewise.
11545         * tests/test-isnanl.h (main): Likewise.
11546         * tests/test-signbit.c (test_signbitl): Likewise.
11548 2014-05-29  Paul Eggert  <eggert@cs.ucla.edu>
11550         exclude-tests: port to AIX 7.1
11551         * modules/exclude-tests (test_exclude_LDADD): Add $(LIBTHREAD).
11552         Needed on AIX 7.1 with xlc V12.1, otherwise it won't link because
11553         the regex code uses locks.
11555 2014-05-28  Paul Eggert  <eggert@cs.ucla.edu>
11557         pthread_sigmask, timer-time: use gl_THREADLIB only if needed
11558         Without this fix, Emacs would sometimes call sigprocmask instead
11559         of pthread_sigmask, which is a no-no in multithreaded applications.
11560         Problem reported by Jorgen Schaefer in <http://bugs.gnu.org/17561>.
11561         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
11562         Suppress check for pthread_sigmask working without -lpthread if
11563         the application always links with -lpthread.  Do not link with
11564         $LIBMULTITHREAD if gl_THREADLIB is not defined.
11565         * m4/timer_time.m4 (gl_TIMER_TIME):
11566         Require gl_THREADLIB only if it is defined.  Do not append
11567         $LIBMULTITHREAD to LIB_TIMER_TIME if gl_THREADLIB is not defined.
11569 2014-05-27  Sylvain Beucler  <beuc@beuc.net>.
11571         gnulib-tool: wget translations using --no-verbose rather than --quiet
11572         This allows the user to see error messages if any (--quiet hides them)
11573         * gnulib-tool: Invoke wget with --no-verbose, rather than --quiet.
11575 2014-05-27  Sylvain Beucler  <beuc@beuc.net>
11577         gnulib-tool: adjust translation wget to avoid a https redirection
11578         Context: http://translationproject.org/latest/gnulib redirects to
11579            https://translationproject.org/latest/gnulib/
11580         Rationale: if the user falls back to wget, she doesn't have rsync and
11581         is probably in a minimal build environment, where packages such as
11582         'ca-certificates' are missing as well, resulting in a failed (and
11583         difficult to detect since ignored) translation initial fetch.
11584         Consequently let's avoid https if possible, and add the missing
11585         trailing slash.  This also avoids an unnecessary 302 redirection.
11586         * gnulib-tool: Add trailing slash to gnulib URL.
11588 2014-05-22  Pádraig Brady  <P@draigBrady.com>
11590         getlogin_r-tests: check return value rather than errno
11591         * tests/test-getlogin_r.c (main): As per POSIX we should be
11592         verifying the return value from getlogin_r() rather than errno.
11594 2014-05-22  Pádraig Brady  <P@draigBrady.com>
11596         getlogin_r-tests: fix various issues in recent change
11597         * tests/test-getlogin_r.c: Include required headers that were
11598         missed in recent commit eec20b4e.
11599         Also consistently check the errno rather than the return value from
11600         getlogin_r as POSIX only specifies that non zero is returned on error.
11601         * modules/getlogin_r-tests (configure.ac): Add the check for ttyname().
11603 2014-05-21  Paul Eggert  <eggert@cs.ucla.edu>
11605         fchdir: port 'open' and 'close' redefinitions to AIX 7.1
11606         * lib/chown.c, lib/clean-temp.c, lib/copy-file.c, lib/execute.c:
11607         * lib/fsusage.c, lib/gc-gnulib.c, lib/javacomp.c, lib/mountlist.c:
11608         * lib/openat-proc.c, lib/pagealign_alloc.c, lib/progreloc.c:
11609         * lib/spawn-pipe.c:
11610         Do not #undef 'open' and 'close'.  AIX 7 does '#define open open64'
11611         and then 'int open64(const char *, int, ...);', which means the
11612         declaration for 'open' gets lost if we later '#undef open'.
11613         Discovered while building grep pretest 2.18.151-1c770 on AIX 7.1,
11614         where the compilation reported the non-fatal error "In function
11615         'openat_proc_name' ... warning: implicit declaration of function
11616         'open'".  In this case the error is relatively harmless, but in
11617         other cases it might not be so minor.
11619 2014-05-20  Paul Eggert  <eggert@cs.ucla.edu>
11621         xalloc: don't potentially generate invalid code for xmemdup calls
11622         * lib/xalloc.h (xmemdup): Do not mark with _GL_ATTRIBUTE_ALLOC, as
11623         this function can initialize the newly-allocated storage with new
11624         pointers, which means this function is not malloc-like.  See:
11625         https://gcc.gnu.org/bugzilla/show_bug.cgi?id=56955
11627 2014-05-19  Pádraig Brady  <P@draigBrady.com>
11629         getlogin_r-tests: avoid false failure under sudo/ssh etc.
11630         * tests/test-getlogin_r.c (main): Sync up with test-getlogin.c
11631         changes from commit 97249cf29 to not depend on environment variables.
11633 2014-05-18  Pádraig Brady  <P@draigBrady.com>
11635         getlogin-tests: avoid false failure under cron
11636         * tests/test-getlogin.c (main): Avoid verifying errnos from ttyname()
11637         since that's not what's under test.  Centos 6 was seen to return
11638         EINVAL for ttyname() when run from cron.
11640 2014-05-16  Jim Meyering  <meyering@fb.com>
11642         mbrtowc.m4: fix a comment typo
11643         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Fix typo s/2/-2/ in
11644         emitted documentation string.
11646 2014-05-16  Paul Eggert  <eggert@cs.ucla.edu>
11648         mbrlen, mbrtowc: fix bug with empty input
11649         * lib/mbrtowc.c (rpl_mbrtowc) [MBRTOWC_EMPTY_INPUT_BUG]: Fix the bug.
11650         * m4/mbrlen.m4 (gl_MBRLEN_EMPTY_INPUT): New macro.  It's not used,
11651         so this is mainly for documentation.
11652         * m4/mbrtowc.m4 (gl_MBRTOWC_EMPTY_INPUT): New macro.
11653         (gl_FUNC_MBRTOWC): Use it.
11654         * tests/test-mbrtowc.c (main): Test for the bug.
11656 2014-05-15  Paul Eggert  <eggert@cs.ucla.edu>
11658         doc: document mbrtowc and mbrlen problem with empty input
11659         * doc/posix-functions/mbrlen.texi (mbrlen):
11660         * doc/posix-functions/mbrtowc.texi (mbrtowc):
11661         Document portability problem when the input string is empty.  See:
11662         https://sourceware.org/bugzilla/show_bug.cgi?id=16950
11664         doc: document exec* = spawn+exit bug with non-Cygwin Windows platforms
11665         Problem reported by Eli Zaretskii in:
11666         http://lists.gnu.org/archive/html/bug-grep/2014-05/msg00118.html
11667         * doc/posix-functions/execl.texi (execl):
11668         * doc/posix-functions/execle.texi (execle):
11669         * doc/posix-functions/execlp.texi (execlp):
11670         * doc/posix-functions/execv.texi (execv):
11671         * doc/posix-functions/execve.texi (execve):
11672         * doc/posix-functions/execvp.texi (execvp):
11673         Mention spawn+exit problem on non-Cygwin Windows platforms.
11675 2014-05-14  Guilherme de Almeida Suckevicz  <guito.linux@gmail.com>
11677         getlogin-tests: avoid false failure under sudo/ssh etc.
11678         * modules/getlogin-tests (configure.ac): Check for ttyname().
11679         * tests/test-getlogin.c (main): Don't depend on environment variables
11680         to correlate with getlogin(), since sudo and ssh etc. can tamper
11681         with the LOGNAME and USER env vars.  Instead lookup the name from
11682         the uid associated with the stdin tty.
11684 2014-05-11  Paul Eggert  <eggert@cs.ucla.edu>
11686         mbsstr, quotearg, xstrtol: pacify IRIX 6.5 cc
11687         These were found when building the latest grep snapshot on IRIX 6.5.
11688         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Break "a=b=c;" into
11689         "b=c; a=b;", since IRIX 6.5 cc complains about the former if b is
11690         never used later.
11691         * lib/quotearg.c (quoting_options_from_style):
11692         * lib/xstrtol.c (__xstrtol):
11693         Use enum instead of 0, to pacify IRIX 6.5 cc.
11695 2014-04-18  Pádraig Brady  <P@draigBrady.com>
11697         gitlog-to-changelog: revert inclusion of git-log-fix file
11698         * build-aux/git-log-fix: Delete dummy file.
11699         * modules/gitlog-to-changelog: Don't reference (overwrite)
11700         the project specific git-log-fix file.
11702 2014-04-18  Assaf Gordon  <agordon@wi.mit.edu>
11704         maint.mk: Relax the copyright check to cater for non FSF projects
11705         * top/maint.mk (sc_copyright_check): Relax the check for $PACKAGE.texi
11706         to not require the "Free" suffix after the copyright years.
11708 2014-04-18  Natanael Copa  <ncopa@alpinelinux.org>
11710         physmem: use sysinfo on linux-gnu if _SC_PHYS_PAGES unavailable
11711         * lib/physmem.c (physmem_total): Some systems like musl libc don't yet
11712         support _SC_PHYS_PAGES.  Use the linux syscall sysinfo as fallback
11713         if _SC_PHYS_PAGES or _SC_PAGESIZE fails.
11714         (physmem_available): Likewise for _SC_AVPHYS_PAGES.
11716 2014-04-18  Paul Eggert  <eggert@cs.ucla.edu>
11718         exclude: port to strict C99
11719         Strict C does not allow converting a function pointer to void *
11720         and vice versa.  Pass a pointer to a function pointer instead.
11721         * lib/exclude.c (add_exclude_file):
11722         Pass the address of the function pointer.
11723         (call_addfn): And deference the address here, to match.
11725 2014-04-17  Paul Eggert  <eggert@cs.ucla.edu>
11727         regex: do not depend on malloc-gnu
11728         * modules/regex (Depends-on): Remove malloc-gnu.
11729         It's no longer needed, because of the 2012-12-29 patch
11730         "regex: port to hosts where malloc (0) == NULL".
11731         Reported by Nathan Kennedy in:
11732         http://lists.gnu.org/archive/html/bug-gnulib/2014-04/msg00026.html
11734 2014-04-16  Assaf Gordon  <agordon@wi.mit.edu>
11736         expl: avoid incorrect expl(small_value) on OpenBSD 5.4
11737         * m4/expl.m4 (gl_FUNC_EXPL): Add a check for this condition.
11738         * doc/posix-functions/expl.texi: Mention the workaround.
11740 2014-04-12  Paul Eggert  <eggert@cs.ucla.edu>
11742         xalloc: allow x2nrealloc (P, PN, S) where P && !*PN
11743         * lib/xalloc.h (x2nrealloc): Extend slightly, to allow the current
11744         size to be zero even when the pointer is nonnull.  This
11745         accommodates the use case where P is malloc (0) and *PN is 0 on a
11746         host where malloc (0) yields nonnull.
11748 2014-04-09  Eric Blake  <eblake@redhat.com>
11750         fts: avoid unnecessary strlen calls
11751         * lib/fts.c (_D_EXACT_NAMLEN): Restore definition when needed.
11753 2014-04-09  Paul Eggert  <eggert@cs.ucla.edu>
11755         fts: avoid unnecessary strlen calls
11756         * lib/fts.c (fts_build): Go back to using _D_EXECT_NAMLEN
11757         when that can be faster than strlen.
11759 2014-03-26  Bernhard Voelker  <mail@bernhard-voelker.de>
11761         fts: avoid unnecessary strlen calls
11762         * lib/fts.c (_D_EXACT_NAMLEN): Remove macro.
11763         (fts_build): Store the length of the dp->d_name entry in a local variable
11764         instead of calling strlen() several times via the above, removed macro.
11765         For 'rm -rf some-dir' with e.g. 1M directory entries, this speeds up the
11766         run by ~4%, yet this reduces the execution time by about a third if run
11767         via "ltrace -c rm -rf some-dir".
11769 2014-03-27  Paul Eggert  <eggert@cs.ucla.edu>
11771         obstack: Remove ancient NeXTSTEP gcc support conditional
11772         This change will ease merging with glibc.  The "#if ... __NEXT__"
11773         causes a warning with -Wundef which glibc now enables by default.
11774         Problem reported by Will Newton in
11775         <http://lists.gnu.org/archive/html/bug-gnulib/2014-03/msg00032.html>.
11776         glibc <sys/cdefs.h> now uses __extension__ for GCC 2.8 or later,
11777         so go with that.
11778         * lib/obstack.h (__extension__):
11780 2014-03-27  Paul Eggert  <eggert@cs.ucla.edu>
11782         obstack: merge with glibc changes
11783         * lib/obstack.c, lib/obstack.h: Merge from glibc.
11784         This is mostly indenting and commentary changes.
11785         Instances of 'register' have been removed.
11787 2014-03-26  Bernhard Voelker  <mail@bernhard-voelker.de>
11789         strftime: wrap macros in "do {...} while(0)"
11790         * lib/strftime.c (DO_NUMBER): Wrap multi-statement code block of
11791         this macro in "do {...} while(0)" to prevent false use as a
11792         single statement, e.g., in an un-braced "{}" else-block.
11793         (DO_SIGNED_NUMBER, DO_TZ_OFFSET, DO_NUMBER_SPACEPAD): Likewise.
11794         (strftime_case_): Remove 'else' after 'goto' - which was the
11795         only non-fatal, un-braced use of one of the above macros.
11796         Spotted by coverity (NESTING_INDENT_MISMATCH).
11798 2014-03-26  Bernhard Voelker  <mail@bernhard-voelker.de>
11800         modechange: avoid memory leaks for invalid octal modes
11801         * lib/modechange.c (mode_compile): During the parsing of
11802         notations like +40, free the 'mc' buffer for invalid mode
11803         strings like +17777 (greater than the maximum octal mode),
11804         =18 (bad octal mode characters) or u=1 ('affected' with
11805         octal modes).
11806         Reproducer, e.g.:
11807             $ valgrind --leak-check=full chmod +17777 file
11808         Introduced via the 2012-03-09 commit, 4730c3e3, "modechange:
11809         add notations +40, 00440, etc.".
11810         Spotted by coverity (RESOURCE_LEAK).
11812 2014-03-24  Paul Eggert  <eggert@cs.ucla.edu>
11814         gitlog-to-changelog: include a dummy git-log-fix file
11815         Problem reported by Nathan Stratton Treadway in:
11816         http://lists.gnu.org/archive/html/bug-tar/2014-03/msg00082.html
11817         * build-aux/git-log-fix: New file.
11819 2014-03-13  Jim Meyering  <meyering@fb.com>
11821         gitlog-to-changelog: also include the file, git-log-fix
11822         * modules/gitlog-to-changelog (Files): Add git-log-fix.
11823         Reported by Assaf Gordon.
11825 2014-03-06  Paul Eggert  <eggert@cs.ucla.edu>
11827         regex: port to OS X 10.8.5 en_US.UTF-8 locale
11828         This fixes a bug when ignoring case and when comparing the
11829         titlecase letter 'Lj' (U+01C8 LATIN CAPITAL LETTER L WITH SMALL
11830         LETTER J) to the corresponding uppercase letter 'LJ' (U+01C7 LATIN
11831         CAPITAL LETTER LJ).  In the OS X 10.8.5 en_US.UTF-8 locale, the
11832         titlecase letter is neither lowercase nor uppercase, but
11833         uppercasing the titlecase letter (via towupper) yields the
11834         uppercase letter, so the two letters should match when ignoring case.
11835         Problem reported by Jim Meyering in <http://debbugs.gnu.org/16911#16>.
11836         * lib/regex_internal.c (build_wcs_upper_buffer, build_upper_buffer):
11837         Don't test whether a character is lowercase before uppercasing it.
11839 2014-03-04  Kevin Cernekee  <cernekee@gmail.com>
11841         stdint, read-file: fix missing SIZE_MAX on Android (tiny change)
11842         This is basically one of the options Bruno Haible proposed in:
11843         http://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00282.html
11844         * lib/sys_types.in.h (_GL_INCLUDING_UNISTD_H): New macro.
11845         * lib/stdint.in.h: Use it.
11846         * modules/stdint (Depends-on): Add sys_types.
11848 2014-02-26  Pádraig Brady  <P@draigBrady.com>
11850         parse-datetime: fix crash or infloop in TZ="" parsing
11851         * lib/parse-datetime.y (parse_datetime): Break out of the
11852         TZ="" parsing loop once the second significant " is found.
11853         Also skip over any subsequent whitespace to be consistent
11854         with the non TZ= case.
11855         * tests/test-parse-datetime.c: Add test cases for TZ="" parsing.
11857 2014-02-26  Paul Eggert  <eggert@cs.ucla.edu>
11859         savedir: new symbol for fast-read version
11860         * lib/savedir.h (SAVEDIR_SORT_FASTREAD): New symbol, for programs
11861         like GNU cp that want to use SAVEDIR_SORT_INODE if available,
11862         SAVEDIR_SORT_NONE otherwise.  Problem reported by Bernhard Voelker in:
11863         http://lists.gnu.org/archive/html/coreutils/2014-02/msg00037.html
11865 2014-02-25  Paul Eggert  <eggert@penguin.cs.ucla.edu>
11867         unistd: port readlink to Mac OS X 10.3.9
11868         * lib/unistd.in.h (_GL_INCLUDING_UNISTD_H): New macro, to work
11869         around self-include problem in Mac OS X 10.3.9 when combined with
11870         readlink module.  Problem reported by Klaus Zietler in
11871         <http://bugs.gnu.org/16825>.
11873 2014-02-23  Paul Eggert  <eggert@cs.ucla.edu>
11875         diffseq: remove TOO_EXPENSIVE heuristic
11876         Problem with diffutils reported by Vincent Lefevre in
11877         <http://bugs.gnu.org/16848>.  The simplest solution is to remove
11878         the TOO_EXPENSIVE heuristic that I added to GNU diff in 1993.
11879         Although appropriate for circa-1993 hardware, these days the heuristic
11880         seems to be more trouble than it's worth.
11881         * lib/diffseq.h: Modernize citations.
11882         (struct context): Remove member too_expensive.
11883         All uses changed.
11884         (struct partition): Remove members lo_minimal, hi_minimal.
11885         All uses changed.
11886         (diag, compareseq): Remove arg find_minimal.  All uses changed.
11887         (diag): Remove the TOO_EXPENSIVE heuristic that I added back in
11888         1993 to make 'diff' run faster (but not as well) on large inputs.
11889         These days, computers are fast enough that it's typically better
11890         to run slower but more accurately.
11891         * lib/fstrcmp.c: Remove duplicate comment.
11892         * lib/fstrcmp.c (strcmp_bounded):
11893         * lib/git-merge-changelog.c (compute_differences):
11894         Adjust to diffseq.h changes.
11895         * NEWS: Document the change.
11897         savedir: simplify by using stpcpy
11898         * lib/savedir.c (direntry_t): Remove size member.  All uses removed.
11899         (streamsavedir): Use stpcpy instead.
11900         * modules/savedir (Depends-on): Add stpcpy.
11902 2014-02-21  Pádraig Brady  <P@draigBrady.com>
11904         spawn: fix link error on uclibc
11905         * m4/spawn_h.m4 (gl_HAVE_POSIX_SPAWN): use AC_SEARCH_LIBS,
11906         to incorporate -lrt if needed (on uclibc for example).
11907         * modules/posix_spawn: Reference the substituted LIB.
11909 2014-02-21  Thomas Petazzoni  <thomas.petazzoni@free-electrons.com>  (tiny change)
11910         timer: fix uClibc detection of threading
11911         * m4/time_time.m4 (gl_TIMER_TIME): Detect whether threads are
11912         enabled in uClibc.
11914 2014-02-21  Eric Blake  <eblake@redhat.com>
11916         maintainer-makefiles: provide AC_PROG_SED for older autoconf
11917         * m4/gnulib-common.m4 (AC_PROG_SED): Copy from newer autoconf.
11919 2014-02-21  Sergey Poznyakoff  <gray@gnu.org.ua>
11921         exclude: add support for posix regexps
11923         This commit adds support for POSIX extended regular expressions
11924         and fixes a long-standing memory leak (pattern buffer was never
11925         freed).  It also implements a new interface function to read
11926         exclude patterns from a FILE, which passes an additional parameter
11927         to its callback function, thereby allowing to preserve its state
11928         between invocations.
11930         * lib/exclude.c (struct patopts): Pack regex and pattern into union.
11931         (pattern_buffer): New struct.
11932         (exclude): New member patbuf.
11933         (exclude_add_pattern_buffer): New function.
11934         (free_exclude_segment): Free regexps.
11935         (free_exclude): Free allocated pattern buffers.
11936         (exclude_patopts): New function.
11937         (file_pattern_matches): Use exclude_patopts.
11938         (add_exclude): support regexps.
11939         (add_exclude_fp): New function.
11940         (add_exclude_file): Rewrite using add_exclude_fp.
11941         (fnmatch_pattern_has_wildcards): Support posix extended regexps.
11942         * lib/exclude.h (EXCLUDE_REGEX, EXCLUDE_ALLOC): New flags.
11943         (add_exclude_fp)
11944         (add_exclude_file): Rewrite using add_exclude_fp.
11945         (fnmatch_pattern_has_wildcards): Support posix extended regexps.
11946         * lib/exclude.h (EXCLUDE_REGEX, EXCLUDE_ALLOC): New flags.
11947         (add_exclude_fp)
11948         (exclude_add_pattern_buffer): New prototypes.
11949         * modules/exclude: Depends on regex and filename.
11951 2014-02-20  Eric Blake  <eblake@redhat.com>
11953         maintainer-makefiles: use $(SED) for syntax check
11954         * modules/maintainer-makefile (configure.ac): Check for sane sed.
11955         * top/maint.mk: Change sed to $(SED).
11957 2014-02-11  Sergey Poznyakoff  <gray@gnu.org.ua>
11958             Paul Eggert  <eggert@cs.ucla.edu>
11960         savedir: add sorting arg to savedir, streamsavedir; remove fdsavedir
11961         Patch based on an idea by Dick Streefland in
11962         <https://savannah.gnu.org/patch/?7892>.
11963         * NEWS: Document this.
11964         * lib/savedir.c (NAME_SIZE_DEFAULT): Remove.
11965         (direntry_t, comparison_function): New types.
11966         (direntry_cmp_name): New function.
11967         (direntry_cmp_inode) [D_INO_IN_DIRENT]: New function.
11968         (streamsavedir, savedir): New arg OPTION.
11969         (streamsavedir): Simplify memory allocation.
11970         (fdsavedir): Remove.
11971         * lib/savedir.h (enum savedir_option): New type.
11972         (streamsavedir, savedir): New arg OPTION.
11973         (fdsavedir): Remove.
11975 2014-02-05  Paul Eggert  <eggert@cs.ucla.edu>
11977         file-type: add support for doors and other less-common file types
11978         Problem with S_ISDOOR reported by Rich Burridge.
11979         * lib/file-type.c (file_type): Do S_ISLNK early too.  Do S_TYPEIS*
11980         macros before the rest.  Add S_ISCTG, S_ISDOOR, S_ISMPB, S_ISMPC,
11981         S_ISMPX, S_ISNAM, S_ISNWK, S_ISOFD, S_ISOFL, S_ISPORT, S_ISWHT.
11983 2014-01-23  Eric Blake  <eblake@redhat.com>
11985         pthread: work around winpthread header pollution on mingw
11986         * lib/time.in.h: Move pthread workarounds...
11987         * lib/pthread.in.h: ...here.
11988         * m4/pthread.m4 (gl_PTHREAD_CHECK): Also build pthread.h when we
11989         detect macro pollution on mingw.
11990         * doc/posix-headers/pthread.texi (pthread.h): Document the problems.
11992 2014-01-22  Paul Eggert  <eggert@cs.ucla.edu>
11994         qacl: check for fchmod
11995         * m4/acl.m4 (gl_FUNC_ACL): Check for fchmod, since acl-internal.h
11996         and qset-acl.c both use HAVE_FCHMOD.
11998 2014-01-20  Paul Eggert  <eggert@cs.ucla.edu>
12000         fdopen-tests: port to Tru64
12001         * tests/test-fdopen.c (main): Don't invoke fdopen on a file
12002         descriptor that is not open, as POSIX doesn't specify the
12003         resulting behavior and the test does not work on Tru64.
12004         Problem reported by Steven M. Schweda in:
12005         http://lists.gnu.org/archive/html/bug-gnulib/2014-01/msg00079.html
12007         stdalign: port to HP-UX compilers
12008         * lib/stdalign.in.h (_Alignas): Use __attribute__ (__aligned__ (x))
12009         if __HP_cc or __HP_aCC are nonzero.
12011 2014-01-16  Paul Eggert  <eggert@cs.ucla.edu>
12013         strtoimax: port to platforms lacking 'long long'
12014         VMS's pre-C99 compiler lacks 'long long', so 'configure' doesn't
12015         check whether strtoll is declared, which causes the C file to
12016         wrongly report an error.  Problem reported by Steven M. Schweda in:
12017         http://lists.gnu.org/archive/html/bug-diffutils/2014-01/msg00003.html
12018         * lib/strtoimax.c (strtoull):
12019         Declare only if HAVE_UNSIGNED_LONG_LONG_INT.
12020         (strtoll): Declare only if HAVE_LONG_LONG_INT.
12022 2014-01-16  Daniel Albers  <daniel@lbe.rs>  (tiny change)
12024         relocatable-perl: fix texi syntax
12025         * doc/relocatable-maint.texi: Escape braces.
12027 2014-01-09  Reuben Thomas  <rrt@sc3d.org>
12029         relocatable-perl: like relocatable-script, but for Perl scripts
12030         * build-aux/relocatable.pl.in: Add.
12031         * doc/relocatable-maint.texi: Add documentation.
12032         * modules/relocatable-perl: Add.
12034 2014-01-07  Paul Eggert  <eggert@cs.ucla.edu>
12036         tests: fix export bug in previous patch
12037         Problem reported by Jim Meyering.
12038         * tests/init.sh (re_shell): New var, which is exported instead of
12039         re_shell_.
12041         tests: simplify porting to Solaris 10 /bin/sh
12042         Some test cases in 'grep' need a shell that groks '$(';
12043         export re_shell_ for their benefit.  Problem reported for 'grep'
12044         by Dagobert Michelsen in <http://bugs.gnu.org/16380>.
12045         * tests/init.sh (re_shell_): Export if it's used.
12047 2014-01-06  Eric Blake  <eblake@redhat.com>
12049         md5, sha1, sha256, sha512: support older autoconf
12050         * m4/00gnulib.m4 (m4_divert_push): Wrap diversion stack
12051         for autoconf < 2.63b.
12053         include_next: port to autoconf 2.63
12054         * m4/gnulib-common.m4 (AS_VAR_COPY): Define if missing.
12056 2014-01-04  Jim Meyering  <meyering@fb.com>
12058         maint: add a gnulib-local rule to keep non-ascii out of .texi files
12059         * cfg.mk (sc_keep_gnulib_texi_files_mostly_ascii): New rule,
12060         so that "make sc_maint" will ding anyone who puts non-ascii
12061         in any of gnulib's .texi files.
12063 2014-01-03  Jim Meyering  <meyering@fb.com>
12065         freadable, fwritable, fwriting: declare with the "pure" attribute
12066         * lib/freadable.h (freadable): Declare with the "pure" attribute.
12067         * lib/fwritable.h (fwritable): Likewise.
12068         * lib/fwriting.h (fwriting): Likewise.
12069         Suggested by Bruno Haible.
12071         maint.mk: adapt openat.h-include-without-use test
12072         * top/maint.mk (sc_prohibit_openat_without_use): Also check for
12073         FCHMODAT_INLINE, FCHOWNAT_INLINE and STATAT_INLINE, to avoid
12074         failing on gnulib's own lib/{chmod,chown,stat}at.c files.
12075         With this change, running "make sc_maint" in gnulib's top-level
12076         directory now passes for me.
12078 2014-01-03  Paul Eggert  <eggert@cs.ucla.edu>
12080         doc: use ASCII in .texi files where UTF-8 isn't needed
12081         * doc/posix-functions/crypt.texi, doc/posix-functions/encrypt.texi:
12082         * doc/posix-functions/setkey.texi, doc/regex.texi:
12083         Use ASCII input, not UTF-8.
12085 2014-01-02  Jim Meyering  <meyering@fb.com>
12087         freading: declare with the "pure" attribute
12088         * lib/freading.h (freading): Declare with the "pure" attribute.
12090         manywarnings: remove -Wmudflap
12091         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Remove -Wmudflap, since
12092         it is no longer supported in gcc-4.9-to-be.
12094 2014-01-01  Paul Eggert  <eggert@cs.ucla.edu>
12096         relocatable-script: remove unused code
12097         Problem reported by Reuben Thomas in:
12098         http://lists.gnu.org/archive/html/bug-gnulib/2013-12/msg00117.html
12099         * build-aux/relocatable.sh.in (func_tmpdir): Remove unused function.
12101 2014-01-01  Jim Meyering  <meyering@fb.com>
12103         maint: fix public-submodule-commit to work with newer git
12104         * top/maint.mk (public-submodule-commit): Remove excess quoting.
12105         We were over-quoting the test arguments, and somewhere prior to
12106         version 1.8.5.2.229, git stopped removing those excess quotes,
12107         which made the test fail, since the unexpanded strings would
12108         always differ; using GIT_TRACE=1 confirmed that the git merge-base
12109         command wasn't even being run.
12111 2014-01-01  Paul Eggert  <eggert@cs.ucla.edu>
12113         doc: update main copyright year
12114         * doc/gnulib.texi: Update copyright date.
12116 2014-01-01  Eric Blake  <eblake@redhat.com>
12118         version-etc: new year
12119         * lib/version-etc.c (COPYRIGHT_YEAR): Bump to 2014.
12120         * all files: run 'make update-copyright'
12122 2013-12-24  Eric Blake  <eblake@redhat.com>
12124         passfd: give nicer error for recvfd at eof
12125         * lib/passfd.c (recvfd): Fake ENOTCONN if other end closes early.
12126         * tests/test-passfd.c (main): Enhance test to cover this.
12128 2013-12-17  Paul Eggert  <eggert@cs.ucla.edu>
12130         gettimeofday: port recent C++ fix to Emacs
12131         Without this further patch, Emacs won't build due to
12132         the portcheck failing.  Also, this simplifies the patch a bit.
12133         * lib/time.in.h (localtime, gmtime): Don't replace unless
12134         GNULIB_GETTIMEOFDAY.  Treat them more like mktime.
12135         * lib/time.in.h (localtime, gmtime):
12136         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME):
12137         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS):
12138         * modules/time (time.h):
12139         Don't worry about the possibility of localtime and gmtime
12140         being absent; they're present in all C libraries we know about.
12141         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS):
12142         Don't assume sys_time is present and has been initialized.
12143         Instead, use a hack that should work even if it hasn't been.
12144         Don't use a portcheck for gmtime or localtime; this supports
12145         the hack.
12146         * modules/time (time.h): Substitute GNULIB_GETTIMEOFDAY.
12148 2013-12-17  John W. Eaton  <jwe@gnu.org>
12150         gettimeofday: fix C++ crosscompilation
12152         Never replace gmtime and localtime by macros when compiling with
12153         C++, this prevents <ctime> from being included.
12155         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Do not
12156         define gmtime and localtime as preprocessor macros.  Instead
12157         define some HAVE_GMTIME, HAVE_LOCALTIME, REPLACE_GMTIME, and
12158         REPLACE_LOCALTIME substitutions.
12159         * lib/time.in.h: Declare gmtime and localtime when needed.
12160         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): AC_SUBST HAVE_GMTIME,
12161         HAVE_LOCALTIME, REPLACE_GMTIME, and REPLACE_LOCALTIME.
12162         * modules/time: Depend on gettimeofday, and substitute the above
12163         variables in time.h.
12165 2013-12-17  Paul Eggert  <eggert@cs.ucla.edu>
12167         qacl: port to Windows better
12168         See Eli Zaretskii in
12169         <http://lists.gnu.org/archive/html/emacs-devel/2013-12/msg00593.html>.
12170         * lib/file-has-acl.c (acl_access_nontrivial):
12171         Return -1 and set errno if !HAVE_ACL_FIRST_ENTRY &&
12172         !HAVE_ACL_TO_SHORT_TEXT && !HAVE_ACL_FREE_TEXT.
12174 2013-12-12  Alexander V. Lukyanov  <lav@netis.ru>
12176         md5, sha1, sha256, sha512: fix (trivial) compile error in c++ mode.
12177         * lib/gl_openssl.h: Cast void pointers to a specific type.
12179 2013-12-07  Pádraig Brady  <P@draigBrady.com>
12181         open-tests: fix build failure with -Werror=old-style-declaration
12182         * tests/test-open.h: Reorder the inline to avoid the issue.
12184 2013-12-07  Pádraig Brady  <P@draigBrady.com>
12186         md5, sha1, sha256, sha512: fix link error with partial libcrypto
12187         * m4/gl-openssl.m4 (gl_CRYPTO_CHECK): Only clear LIB_CRYPTO at
12188         init time, so that if early checks find crypto routines,
12189         while the last does not, then @LIB_CRYPTO@ is replaced correctly,
12190         avoiding link failures.
12192 2013-12-07  Paul Eggert  <eggert@cs.ucla.edu>
12194         md5, sha1, sha256, sha512: add gl_SET_CRYPTO_CHECK_DEFAULT
12195         This provides a new way to specify the default for
12196         gl_CRYPTO_CHECK, one that is reflected in the --help message.
12197         Emacs uses this, as well as the old way.
12198         This attempts to implement a suggestion by Pádraig Brady in
12199         <http://lists.gnu.org/archive/html/coreutils/2013-12/msg00080.html>.
12200         * m4/gl-openssl.m4(gl_SET_CRYPTO_CHECK_DEFAULT): New macro.
12201         (gl_CRYPTO_CHECK): Use it.  Mention the default in --help output.
12203         md5, sha1, sha256, sha512: add 'auto', and a way to specify default
12204         * m4/gl-openssl.m4 (gl_CRYPTO_CHECK):
12205         Add support for a new option, --with-openssl=auto, which causes
12206         the library to be used if available and silently ignored if not.
12207         Add support to allow configure.ac to specify its own
12208         default, by setting with_openssl_default before invoking gl_INIT.
12210 2013-12-05  Paul Eggert  <eggert@cs.ucla.edu>
12212         open-tests: port to glibc with _FORTIFY_SOURCE and -O1
12213         Problem reported by Daiki Ueno in:
12214         http://lists.gnu.org/archive/html/bug-gnulib/2013-06/msg00052.html
12215         * tests/test-open.h (__always_inline):
12216         New macro, if not already defined.
12217         (test_open): Use it.
12219 2013-12-04  Eric Blake  <eblake@redhat.com>
12221         include_next: minimize code duplication
12222         * modules/include_next (Depends-on): Add absolute-header.
12223         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Reuse
12224         gl_ABSOLUTE_HEADER_ONE instead of open-coding it.
12226 2013-12-04  Pádraig Brady  <P@draigBrady.com>
12228         getcwd: fix compile error in configure check
12229         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Include errno.h
12231 2013-12-04  Pádraig Brady  <P@draigBrady.com>
12233         regex: suppress core dumps from detection code
12234         * m4/regex.m4 (gl_REGEX): Catch the SIGABRT and convert to SIGTERM
12235         to suppress core dumps that may well occur on glibc systems.
12236         These core dumps might not be cleaned up automatically, or could
12237         trigger some system core dump handling logic.
12239 2013-12-03  Pádraig Brady  <P@draigBrady.com>
12241         md5, sha1, sha256, sha512: support mandating use of openssl
12242         * m4/gl-openssl.m4 (gl_crypto_check): Adjust the --with-openssl
12243         description, to list the now 3 separate options.  also don't
12244         mention the default=no, since this is implicit given the option
12245         is described as --with-openssl rather than --without-openssl.
12246         If projects change the default they're free to document that.
12247         with --with-openssl[=yes] we now error out when the specified
12248         hash algorithm is not available in libcrypto.
12250 2013-12-03  Ivailo  <xakepa10@gmail.com>
12252         test-xvasprintf: (trivial) fix to disable some -Wformat-security diags
12253         * tests/test-xvasprintf.c: Disable -Wformat-zero-length and
12254         -Wformat-nonliteral checks, as these edge cases are part of the test.
12256 2013-12-03  Eric Blake  <eblake@redhat.com>
12258         regex: avoid glibc deadlock during configure
12259         * m4/regex.m4 (gl_REGEX): Avoid recursive malloc deadlock when
12260         glibc bug 15078 in turn triggers bug 16159.
12261         Reported by Michal Privoznik.
12263 2013-12-02  Pádraig Brady  <P@draigBrady.com>
12265         md5, sha1, sha256, sha512: use openssl routines if available.
12266         --with-openssl the libcrypto md5, sha1, sha224, sha256, sha384, sha256
12267         routines will be used if available, requiring apps to link @LIB_CRYPTO@
12268         * lib/gl_openssl.h: Provide wrappers for specified openssl hash.
12269         * m4/gl-openssl.m4 (gl_CRYPTO_CHECK): New function to lookup libcrypto
12270         in the standard system location.
12271         * m4/sha1.m4: Call gl_CRYPTO_CHECK() for SHA1.
12272         * m4/sha256.m4: Likewise with SHA256.
12273         * m4/sha512.m4: Likewise with SHA512.
12274         * m4/md5.m4: Likewise with MD5.
12275         * m4/gc.m4: Ensure @LIB_CRYPTO@ set for tests.
12276         * lib/sha1.h: Include wrappers if HAVE_OPENSSL_SHA1.
12277         * lib/sha256.h: Likewise with SHA256.
12278         * lib/sha512.h: Likewise with SHA512.
12279         * lib/md5.h: Likewise with MD5.
12280         * lib/sha1.c: Exlude functionality if HAVE_OPENSSL_SHA1.
12281         * lib/sha256.c: Likewise with SHA256.
12282         * lib/sha512.c: Likewise with SHA512.
12283         * lib/md5.c: Likewise with MD5.
12284         * modules/crypto/sha1 (Link:): Add the new optional lib.
12285         (Depends-on:): Add dependency on extern-inline.
12286         * modules/crypto/sha256: Likewise.
12287         * modules/crypto/sha512: Likewise.
12288         * modules/crypto/md5: Likewise.
12289         * modules/crypto/sha1-tests: Reference the lib here too.
12290         * modules/crypto/md5-tests: Likewise.
12291         * modules/crypto/gc-des-tests: Likewise.
12292         * modules/crypto/gc-hmac-md5-tests: Likewise.
12293         * modules/crypto/gc-hmac-sha1-tests: Likewise.
12294         * modules/crypto/gc-hmac-sha256-tests: Likewise.
12295         * modules/crypto/gc-hmac-sha512-tests: Likewise.
12296         * modules/crypto/gc-md5-tests: Likewise.
12297         * modules/crypto/gc-pbkdf2-sha1-tests: Likewise.
12298         * modules/crypto/gc-sha1-tests: Likewise.
12299         * modules/crypto/gc-tests: Likewise.
12300         * modules/crypto/hmac-md5-tests: Likewise.
12301         * modules/crypto/hmac-sha1-tests: Likewise.
12302         * modules/crypto/hmac-sha256-tests: Likewise.
12303         * modules/crypto/hmac-sha512-tests: Likewise.
12305 2013-11-29  RV1971  <rv1971@web.de>
12307         base64: (trivial) fix compilation regression on some compilers
12308         * lib/base64.c: Don't return the void function,
12309         instead split to a separate return statement.
12311 2013-11-28  Paul Eggert  <eggert@cs.ucla.edu>
12313         ignore-value: revert previous code change
12314         * lib/ignore-value.h (ignore_value): Use __extension__ and
12315         __typeof__ only for GCC 3.4 and later.  Reported by Eric Blake in
12316         <http://lists.gnu.org/archive/html/bug-gnulib/2013-11/msg00102.html>.
12317         Change the comment to try to explain this better.
12319 2013-11-27  Pádraig Brady  <P@draigBrady.com>
12321         selinux-h: improve stub types and add more stub functions
12323         * lib/se-selinux.in.h: Change security_context_t to a typedef
12324         rather than a define, as it's a pointer type and so is better
12325         as a typedef to avoid issues declaring multiple variables
12326         with the comma operator.  Also add stub for string_to_security_class().
12327         * lib/se-context.in.h: Add stub functions for
12328         context_{type,range,role,user}_get().
12330 2013-11-27  Paul Eggert  <eggert@cs.ucla.edu>
12332         ignore-value: prefer GCC version back through 2.0
12333         The code didn't match the comments, so I did a bit of software
12334         archaeology.  GCC 2.0 seems to support __extension__ and
12335         __typeof__, so fix both code and comments to use 2.0.
12336         * lib/ignore-value.h (ignore_value): Use __extension__ and
12337         __typeof__ for GCC 2.0 through 3.3, too.
12339 2013-11-25  Mats Erik Andersson  <gnu@gisladisker.se>
12341         pty: Activate the signature wrapper of forkpty.
12342         The intended preprocessor macro HAVE_FORKPTY is
12343         never defined, yet `lib/forkpty.c' depends on it.
12345         * m4/pty.m4 (gl_FUNC_FORKPTY): At completed analysis,
12346         apply AC_DEFINE_UNQUOTED to HAVE_FORKPTY with value
12347         $HAVE_FORKPTY for access to wrapper in `lib/forkpty.c'.
12349 2013-11-18  Jim Meyering  <meyering@fb.com>
12350         and Paul Eggert  <eggert@cs.ucla.edu>
12352         quotearg: don't attempt to store 1 << 31 into an "int"
12353         * lib/quotearg.c (quotearg_buffer_restyled): Building coreutils with
12354         gcc's new -fsanitize=undefined and running its tests triggered some
12355         new test failures due to undefined behavior, all with this diagnostic:
12356           lib/quotearg.c:629:62: runtime error: left shift of 1 by 31 places \
12357             cannot be represented in type int
12358         Rather than shifting "1" left to form a mask, shift the bits right and
12359         simply use "1" as the mask.
12361 2013-11-21  Paul Eggert  <eggert@cs.ucla.edu>
12363         error: depend on stdio
12364         Problem reported by Nikos Mavrogiannopoulos in
12365         <http://lists.gnu.org/archive/html/bug-gnulib/2013-11/msg00084.html>
12366         * modules/error (Depends-on): Add stdio.
12368 2013-11-18  Ben Pfaff  <blp@cs.stanford.edu>
12370         * doc/relocatable-maint.texi (Supporting Relocation): Improve
12371         wording.
12372         Reported by Reuben Thomas <rrt@sc3d.org>.
12374 2013-11-13  Paul Eggert  <eggert@cs.ucla.edu>
12376         * lib/getgroups.c (posix_getgroups, getgroups) [__APPLE__]:
12377         New function and macro, to work around _DARWIN_C_SOURCE problem.
12378         Reported by Jack Howarth in <http://bugs.gnu.org/14463>.
12380 2013-11-11  Pádraig Brady  <P@draigBrady.com>
12382         base64: provide a fast path for encoding well sized buffers
12383         Avoid conditionals in the base64 encoding loop,
12384         which was seen to give 60% better throughput.
12385         * lib/base64.c (base64_encode_fast): A new function to be called
12386         when we don't want to NUL terminate, and we have enough space
12387         in the output to encode the given input.
12388         (base64_encode): Call the _fast() version when appropriate.
12389         Also remove a redundant mask with 0x3F on the first encoded byte.
12391 2013-11-08  Paul Eggert  <eggert@cs.ucla.edu>
12393         extern-inline: port better to OS X 10.9
12394         * m4/extern-inline.m4: Omit serial number; this file doesn't use them.
12395         (gl_EXTERN_INLINE): Do not suppress the use of extern inline on
12396         OS X 10.9, except for g++ where the bug is still present.
12397         See <http://trac.macports.org/ticket/41033>.
12399 2013-11-08  Eric Blake  <eblake@redhat.com>
12401         fpending: fix regression on DragonFly BSD
12402         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for declaration.
12403         * lib/fpending.h (__fpending): Don't declare twice.
12404         Reported by GW in
12405         <https://lists.gnu.org/archive/html/bug-m4/2013-11/msg00000.html>
12407 2013-11-05  Jim Meyering  <meyering@fb.com>
12409         hash: relax license to LGPLv2+, for libguestfs
12410         * modules/hash (License): Change from GPL to LGPLv2+.
12412 2013-11-03  Paul Eggert  <eggert@cs.ucla.edu>
12414         intprops: port to Oracle Studio c99
12415         * lib/intprops.h (_GL_HAVE___TYPEOF__) [__SUNPRO_C && __STDC__]:
12416         Define to 0, to avoid diagnostics when Oracle Studio is pedantic.
12418 2013-10-31  Paul Eggert  <eggert@cs.ucla.edu>
12420         obstack: pacify HP C
12421         * lib/obstack.h (obstack_free) [!__GNUC__]: Rewrite to avoid
12422         warning "conversion from pointer to smaller integer" from HP
12423         C-ANSI-C - cc version B9007AA/B3910B A.06.26.  It's safe to assume
12424         C89 or later nowadays, so cast to void instead of int.  Privately
12425         reported by H.Merijn Brand.  Also, change header to match glibc's,
12426         to make checking against glibc easier.
12428 2013-10-29  Jim Meyering  <meyering@fb.com>
12430         maint.mk: prefer gpgv2 over gpgv
12431         * top/maint.mk (gpgv): Use gpgv2 if present, else gpgv.
12432         (gpg_key_ID): Use $(gpgv), rather than hard-coding "gpgv".
12433         Reported by Gary Vaughan.
12435 2013-10-30  Paul Eggert  <eggert@cs.ucla.edu>
12437         isnan: port to VAX
12438         Reported by John Klos for NetBSD-5/VAX in
12439         <http://lists.gnu.org/archive/html/bug-gnulib/2013-10/msg00133.html>.
12440         * lib/isnan.c (IEEE_FLOATING_POINT): New macro, stolen from Emacs.
12441         (FUNC): Use it.
12443 2013-10-28  Jim Meyering  <meyering@fb.com>
12445         gnulib-tool: protect against CDPATH
12446         * gnulib-tool: Many "cd" built-in functions print a directory name
12447         to stdout when CDPATH is set, e.g.,
12448           $ bash -c 'CDPATH=/; cd tmp'
12449           /tmp
12450         Unset it, when possible.  Prompted by a comment from Bruce Korb.
12452         maint.mk: restore functionality removed by recent change...
12453         Sunday's change, v0.0-8062-g6b24f60, may have appeared correct from
12454         the context of a shallow-cloned gnulib repository: "git describe"
12455         would fail in such a directory.  However, that change made it so
12456         the reported gnulib revision no longer includes the version number
12457         or a commit count, even when run from a full clone.
12458         * top/maint.mk (gnulib-version): Use the full "git describe"
12459         output when possible, e.g., the form above, rather than the
12460         abbreviated, no-tag, no-commit-count string, and fall back to
12461         using a 10-byte hash, rather than the default minimal-length
12462         hash prefix, since while the minimal-length one may be fine today,
12463         it is likely not to be unique for very long.
12465 2013-10-26  Jim Meyering  <meyering@fb.com>
12467         maint.mk: fix "release" target to build _version
12468         This fixes a bug in README-release whereby following the outlined
12469         steps, one would publish a tarball whose programs would report
12470         --version output not consistent with the package version number.
12471         This bug caused grep-2.15 to produce a grep program whose
12472         --version option made it print 2.14.56-1e3d rather than 2.15.
12473         * top/maint.mk (release): Making this target build "_version"
12474         ensures that the new version number is reflected in configure.
12476 2013-10-21  Ben Pfaff  <blp@cs.stanford.edu>
12478         install-reloc: Support multi-binary installation.
12479         * build-aux/install-reloc: Support installing multiple programs in
12480         one invocation, as done by Automake starting with commit
12481         4295fe33eb23f (Multi-file install for PROGRAMS.).  From Bruno
12482         Haible <bruno@clisp.org>, archived at
12483         http://lists.debian.org/debian-bsd/2012/05/msg00032.html.
12484         Reported by Sylvain <beuc@gnu.org>.
12486 2013-10-21  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
12488         selinux-h: Really build without selinux when library is missing.
12489         * m4/selinux-selinux-h.m4: When the selinux library is missing, really
12490         continue without selinux, as already told in the warning message.
12492 2013-10-21  Jim Meyering  <meyering@fb.com>
12494         regex: also remove dependency on HAVE_WCSCOLL
12495         * lib/regex_internal.h: Remove final vestige of the wcscoll dependency.
12497 2013-10-21  Reuben Thomas  <rrt@sc3d.org>
12499         xfreopen: Fix typo. s/frepoen/freopen/
12500         * lib/xfreopen.c: Fix description.
12501         * modules/xfreopen: Likewise.
12503 2013-10-21  Jim Meyering  <meyering@fb.com>
12505         regex: don't depend on wcscoll
12506         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wcscoll.
12507         It is no longer used.
12509 2013-10-20  Jim Meyering  <meyering@fb.com>
12511         error: add the printf attribute to a static function
12512         * lib/error.c (error_tail): Add the printf attribute, to placate
12513         gcc's -Werror=suggest-attribute=format option.
12515 2013-09-30  Jim Meyering  <meyering@fb.com>
12517         fpending, obstack, strerror-override: use pure+const function attrs
12518         * lib/fpending.h (__fpending): Declare with the "pure" attribute.
12519         * lib/obstack.c (_obstack_allocated_p): Likewise.
12520         * lib/obstack.h (_obstack_memory_used): Likewise.
12521         (_obstack_memory_used): Likewise.
12522         * lib/strerror-override.h (strerror_override): Declare with
12523         the "const" attribute.
12525 2013-10-18  Eric Blake  <eblake@redhat.com>
12527         extern-inline: make safe for -Wundef usage
12528         Reported by Vladimir 'phcoder' Serbinenko in
12529         https://lists.gnu.org/archive/html/bug-gnulib/2013-10/msg00078.html
12530         * m4/extern-inline.m4 (gl_EXTERN_INLINE): Port to older gcc.
12532 2013-10-16  Paul Eggert  <eggert@cs.ucla.edu>
12534         mkfifo-tests, etc.: allow HP-UX 11.11 bug
12535         Problem reported by Daniel Richard G. in
12536         <http://lists.gnu.org/archive/html/bug-gnulib/2013-10/msg00068.html>.
12537         * doc/posix-functions/mkfifo.texi (mkfifo):
12538         * doc/posix-functions/mkfifoat.texi (mkfifoat):
12539         * doc/posix-functions/mknod.texi (mknod):
12540         * doc/posix-functions/mknodat.texi (mknodat):
12541         Document the HP-UX 11.11 bug.
12542         * tests/test-mkfifo.h (test_mkfifo):
12543         Allow the HP-UX 11.11 bug.
12545 2013-10-14  Paul Eggert  <eggert@cs.ucla.edu>
12547         acl: allow cross-compilation to Gentoo
12548         Problem reported by Gabriel Marcano in
12549         <http://lists.gnu.org/archive/html/bug-gnulib/2013-10/msg00058.html>.
12550         * m4/acl.m4 (gl_ACL_GET_FILE): When cross-compiling,
12551         test only whether it links.
12553 2013-10-13  Paul Eggert  <eggert@cs.ucla.edu>
12555         mgetgroups: remove dependency on realloc-gnu
12556         The dependency violates the comment in realloc-gnu, which
12557         says that tests can't depend on realloc-gnu; some tests depend
12558         on mgetgroups, so mgetgroups can't depend on realloc-gnu.
12559         Problem reported by Daniel Richard G. in
12560         <http://lists.gnu.org/archive/html/bug-gnulib/2013-10/msg00056.html>.
12561         * lib/mgetgroups.c (mgetgroups): Don't call realloc (NULL, 0).
12562         * modules/mgetgroups (Depends-on): Depend on realloc-posix,
12563         not realloc-gnu.
12565 2013-10-12  Paul Eggert  <eggert@cs.ucla.edu>
12567         regex-tests: port to HP-UX 11.11
12568         Problem reported by Daniel Richard G. in
12569         <http://lists.gnu.org/archive/html/bug-gnulib/2013-10/msg00052.html>.
12570         * modules/regex-tests (test_regex_LDADD): Add LIBTHREAD, LIB_PTHREAD.
12572 2013-10-10  Paul Eggert  <eggert@cs.ucla.edu>
12574         verify: document some 'assume' pitfalls
12575         * doc/verify.texi (Compile-time Assertions):
12576         Mention that 'assume (E)' can sometimes slow things down.
12577         Use CHAR_MAX + 1, not UCHAR_MAX + 1.
12579 2013-10-10  Eric Blake  <eblake@redhat.com>
12581         strtoumax: fix typo in previous commit.
12582         * modules/strtoumax (Depends-on): Fix typo.
12583         * modules/strtoimax (Depends-on): Likewise.
12585 2013-10-10  Paul Eggert  <eggert@cs.ucla.edu>
12587         strtoumax: port to Solaris 8
12588         This problem was introduced in the recent HP-UX patch.
12589         Reported by Tom G. Christensen in
12590         <http://lists.gnu.org/archive/html/bug-gnulib/2013-10/msg00037.html>.
12591         * modules/strtoumax (Depends-on): Test HAVE_STRTOUMAX
12592         and REPLACE_STRTOUMAX rather than ac_cv_func_strtoumax.
12594 2013-10-09  Paul Eggert  <eggert@cs.ucla.edu>
12596         strtoimax, strtoumax: port to HP-UX 11.11
12597         Problem reported by Daniel Richard G. in
12598         <http://lists.gnu.org/archive/html/bug-gnulib/2013-10/msg00023.html>.
12599         * lib/inttypes.in.h (strtoumax): Replace strtoumax if
12600         REPLACE_STRTOUMAX, thus treating it consistently with strtoimax.
12601         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Add default for
12602         REPLACE_STRTOUMAX.
12603         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX):
12604         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX):
12605         Replace the function if defined as a macro but not as a function.
12606         * modules/inttypes-incomplete (inttypes.h): Substitute
12607         REPLACE_STRTOUMAX.
12608         * modules/strtoumax (configure.ac): Replace strtoumax if
12609         REPLACE_STRTOUMAX.
12611 2013-10-08  Paul Eggert  <eggert@cs.ucla.edu>
12613         strtoimax: port to HP-UX 11.11
12614         Problem reported by Daniel Richard G.
12615         * lib/strtoimax.c (Strtoimax, Strtol, Strtoll): New macros.
12616         (strtoimax, strtol, strtoll) [UNSIGNED]: Remove, since
12617         they might clash with inttypes.h.
12619 2013-10-06  Paul Eggert  <eggert@cs.ucla.edu>
12621         New module 'count-trailing-zeros'.
12622         * MODULES.html.sh: Mention it.
12623         * lib/count-trailing-zeros.c, lib/count-trailing-zeros.h:
12624         * m4/count-trailing-zeros.m4, modules/count-trailing-zeros:
12625         * modules/count-trailing-zeros-tests:
12626         * tests/test-count-trailing-zeros.c:
12627         New files.
12629         count-leading-zeros: port to MSC; support types wider than 64 bits
12630         The ideas behind the MSC port are stolen from Emacs.
12631         * lib/count-leading-zeros.h:
12632         Don't include verify.h: it's no longer needed, as types wider than
12633         64 bits are now supported.
12634         (COUNT_LEADING_ZEROS): New arg MSC_BUILTIN, for better
12635         performance with MSC.  All uses changed.  Do not assume that TYPE
12636         has at most 64 bits.
12637         (count_leading_zeros_32): Assume 0 < X < 2**32, for speed.
12638         All uses changed.  Fold the subtraction from 31 into the table.
12640         count-one-bits: port to MSC; support types wider than 64 bits
12641         The ideas behind the MSC port are stolen from Emacs.
12642         * lib/count-one-bits.c (popcount_support) [_MSC_VER]: New variable.
12643         * lib/count-one-bits.h: Include limits.h, for CHAR_BIT.
12644         Don't include verify.h: it's no longer needed, as types wider than
12645         64 bits are now supported.
12646         (COUNT_ONE_BITS_GENERIC): New macro.
12647         (popcount_supported) [_MSC_VER]: New inline function.
12648         (COUNT_ONE_BITS): Use it.  New arg MSC_BUILTIN, for better
12649         performance with MSC.  All uses changed.  Do not assume that TYPE
12650         has at most 64 bits.
12651         * modules/count-one-bits (Depends-on): Do not depend on 'verify'.
12653 2013-10-06  Andrew Borodin  <aborodin@vmail.ru>
12655         mountlist: fix resource leak with MOUNTED_INTERIX_STATVFS
12656         * lib/mountlist.c (read_file_system_list): fix leak of directory
12657         streams in case of #ifdef MOUNTED_INTERIX_STATVFS.
12659 2013-10-06  Paul Eggert  <eggert@cs.ucla.edu>
12661         tests: improve diagnostic when an assertion fails
12662         * tests/macros.h (ASSERT): Report the assertion that failed.
12664 2013-10-02  Paul Eggert  <eggert@cs.ucla.edu>
12666         verify: new macro 'assume'
12667         This is taken from Emacs, and should be generally useful.
12668         * doc/verify.texi (assume): Document it.
12669         * lib/verify.h (assume): New macro.
12670         (__has_builtin): Expand to 0 if not defined.
12672 2013-09-26  Eric Blake  <eblake@redhat.com>
12674         dup2, dup3: work around another cygwin crasher
12675         * m4/dup2.m4 (gl_FUNC_DUP2): Expose the bug.
12676         * m4/dup3.m4 (gl_FUNC_DUP3): Likewise.
12677         * tests/test-dup2.c (main): Likewise.
12678         * lib/dup2.c (rpl_dup2): Use setdtablesize to avoid it.
12679         * lib/dup3.c (dup3): Likewise.
12680         * doc/posix-functions/dup2.texi (dup2): Document it.
12681         * doc/glibc-functions/dup3.texi (dup3): Likewise.
12683         getdtablesize: work around cygwin issue
12684         * m4/getdtablesize.m4 (gl_FUNC_GETDTABLESIZE): Detect problem.
12685         * modules/getdtablesize (configure.ac): Build replacement.
12686         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set up a witness.
12687         * modules/unistd (Makefile.am): Expose the witness.
12688         * lib/unistd.in.h (getdtablesize): Declare replacement.
12689         * lib/getdtablesize.c (rpl_getdtablesize): Work around it.
12690         * tests/test-getdtablesize.c (main): Test it.
12691         * doc/glibc-functions/getdtablesize.texi (getdtablesize): Document it.
12693 2013-09-25  Mats Erik Andersson  <gnu@gisladisker.se>
12695         pmccabe2html: escaping of special characters
12696         Escape all '<', '>', and '&' in HTML output.
12697         * build-aux/pmccabe2html (html_fnc): Call gsub()
12698         instead of sub() to capture all '<', '>', and '&'.
12699         Neither of '<' and '>' is special in a regexp,
12700         so first arguments to gsub() are corrected. Also,
12701         in replacement strings, ampersand must be escaped.
12702         Finally, '&' must be handled first, then '<' and '>'.
12704 2013-09-24  Eric Blake  <eblake@redhat.com>
12706         manywarnings: enable nicer gcc warning messages
12707         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Older gcc requires
12708         some -f options for optimal warnings.
12710 2013-09-21  Jim Meyering  <meyering@fb.com>
12712         timespec: use the new TIMESPEC_RESOLUTION in a few more places
12713         * lib/timespec-add.c (timespec_add): Also replace 999999999
12714         with TIMESPEC_RESOLUTION - 1.
12715         * lib/timespec-sub.c (timespec_sub): Likewise.
12717 2013-09-23  Paul Eggert  <eggert@cs.ucla.edu>
12719         warnings: port --enable-gcc-warnings to Solaris Studio 12.3
12720         Problem reported by Dagobert Michelsen via Eric Blake in
12721         <http://lists.gnu.org/archive/html/bug-gnulib/2013-09/msg00052.html>.
12722         * m4/warnings.m4 (gl_COMPILER_OPTION_IF): Use AC_LINK_IFELSE,
12723         not AC_COMPILE_IFELSE.
12725 2013-09-23  Eric Blake  <eblake@redhat.com>
12727         configmake: support new --runstatedir option
12728         * m4/configmake.m4 (gl_CONFIGMAKE_PREP): Substitute runstatedir
12729         even if autoconf was too old to provide the command line option.
12730         * modules/configmake (Makefile.am): Propagate it to .h file.
12732 2013-09-22  Paul Eggert  <eggert@cs.ucla.edu>
12734         ctype, string: depend on extern-inline
12735         This is needed to complete the recent OS X fixes.
12736         Also, fix related documentation as suggested by Eric Blake.
12737         * doc/posix-functions/isalnum.texi, doc/posix-functions/isalpha.texi:
12738         * doc/posix-functions/isascii.texi, doc/posix-functions/iscntrl.texi:
12739         * doc/posix-functions/isdigit.texi, doc/posix-functions/isgraph.texi:
12740         * doc/posix-functions/islower.texi, doc/posix-functions/isprint.texi:
12741         * doc/posix-functions/ispunct.texi, doc/posix-functions/isspace.texi:
12742         * doc/posix-functions/isupper.texi, doc/posix-functions/isxdigit.texi:
12743         * doc/posix-functions/toascii.texi, doc/posix-functions/tolower.texi:
12744         * doc/posix-functions/toupper.texi:
12745         List the 'ctype' gnulib module.
12746         * doc/posix-functions/strcat.texi, doc/posix-functions/strcpy.texi:
12747         * doc/posix-functions/strncpy.texi:
12748         List the 'string' gnulib module.
12749         * modules/memcpy, modules/memmove, modules/memset (Depends-on):
12750         Add string.
12751         * modules/ctype, modules/string (Depends-on): Add extern-inline.
12753 2013-09-19  Pádraig Brady  <P@draigBrady.com>
12755         userspec: support optional parameters to parse_user_spec()
12756         * lib/userspec.c (parse_user_spec): If the GID param is NULL,
12757         then avoid group processing and treat the full spec as a user.
12758         (parse_with_separator): Allow the USERNAME and GROUPNAME to
12759         be optional params (NULL), in which case they're ignored.
12761 2013-09-19  Paul Eggert  <eggert@cs.ucla.edu>
12763         timespec: new function make_timespec, and new constants
12764         * lib/timespec.h: Incorporate recent changes on the Emacs trunk.
12765         (TIMESPEC_RESOLUTION, LOG10_TIMESPEC_RESOLUTION): New constants.
12766         (make_timespec): New function.
12767         * lib/dtotimespec.c (dtotimespec):
12768         * lib/timespec-add.c (timespec_add):
12769         * lib/timespec-sub.c (timespec_sub):
12770         * lib/utimens.c (validate_timespec):
12771         * lib/utimensat.c (rpl_utimensat):
12772         Use these new constants and functions.
12774         stdio: OS X port of putc_unlocked + extern inline
12775         * lib/stdio.in.h (putc_unlocked): #undef on problematic Apple platforms.
12776         * doc/posix-functions/putc_unlocked.texi:
12777         * doc/posix-functions/putchar_unlocked.texi:
12778         Document this portability problem.
12780         signal: OS X port of sigaddset etc. + extern inline
12781         * lib/signal.in.h (sigaddset, sigdelset, sigemptyset, sigfillset)
12782         (sigismember): #undef on problematic Apple platforms.
12783         * doc/posix-functions/sigaddset.texi:
12784         * doc/posix-functions/sigdelset.texi:
12785         * doc/posix-functions/sigemptyset.texi:
12786         * doc/posix-functions/sigfillset.texi:
12787         * doc/posix-functions/sigismember.texi:
12788         Document this portability problem.
12790         extern-inline: do not always suppress extern inline on OS X
12791         * m4/extern-inline.m4 (gl_EXTERN_INLINE): Suppress the use of
12792         extern inline on Apple only if the particular compile-time
12793         configuration is known to have the problem.
12794         (_GL_EXTERN_INLINE_APPLE_BUG): New private macro, to implement this.
12795         (_GL_EXTERN_INLINE_IN_USE): New macro, intended for use by
12796         other Gnulib modules.
12798         extern-inline: document fixes for ctype and wctype macros
12799         * doc/posix-functions/isalnum.texi, doc/posix-functions/isalpha.texi:
12800         * doc/posix-functions/isascii.texi, doc/posix-functions/isblank.texi:
12801         * doc/posix-functions/iscntrl.texi, doc/posix-functions/isdigit.texi:
12802         * doc/posix-functions/isgraph.texi, doc/posix-functions/islower.texi:
12803         * doc/posix-functions/isprint.texi, doc/posix-functions/ispunct.texi:
12804         * doc/posix-functions/isspace.texi, doc/posix-functions/isupper.texi:
12805         * doc/posix-functions/iswalnum.texi, doc/posix-functions/iswalpha.texi:
12806         * doc/posix-functions/iswcntrl.texi, doc/posix-functions/iswctype.texi:
12807         * doc/posix-functions/iswdigit.texi, doc/posix-functions/iswgraph.texi:
12808         * doc/posix-functions/iswlower.texi, doc/posix-functions/iswprint.texi:
12809         * doc/posix-functions/iswpunct.texi, doc/posix-functions/iswspace.texi:
12810         * doc/posix-functions/iswupper.texi, doc/posix-functions/iswxdigit.texi:
12811         * doc/posix-functions/isxdigit.texi, doc/posix-functions/toascii.texi:
12812         * doc/posix-functions/memcpy.texi, doc/posix-functions/memmove.texi:
12813         * doc/posix-functions/memset.texi, doc/posix-functions/stpcpy.texi:
12814         * doc/posix-functions/stpncpy.texi, doc/posix-functions/strcat.texi:
12815         * doc/posix-functions/strcpy.texi, doc/posix-functions/strncat.texi:
12816         * doc/posix-functions/strncpy.texi:
12817         * doc/posix-functions/tolower.texi, doc/posix-functions/toupper.texi:
12818         * doc/posix-functions/towlower.texi, doc/posix-functions/towupper.texi:
12819         Document that Gnulib fixes portability problems with these
12820         functions on OS X 10.8 and earlier when called from plain inline
12821         or extern inline functions.
12823 2013-09-17  Kevin Cernekee  <cernekee@gmail.com>
12825         fflush, freadahead, fseeko: Fix for Android
12826         Suggested by Bruno Haible in:
12827         <http://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00306.html>
12828         * lib/stdio-impl.h: Use local __sfileext definition.
12830 2013-09-17  Mats Erik Andersson  <gnu@gisladisker.se>
12832         pmccabe2html: Portability to other awk versions.
12833         The functions systime() and strftime() are available
12834         in Gawk only.  Properly close two HTML-tags 'style'
12835         and 'span'.
12836         * build-aux/pmccabe2html (BEGIN): Store timing
12837         strings in EPOCH_TIME and CHRONOS_TIME.  Replace
12838         systime() in HTML_COMMENT.
12839         (html_header): Correctly close tag 'style'.
12840         (END): Replace strftime() by CHRONOS_TIME.  Close
12841         tag 'span' correctly, not as 'div'.
12843 2013-09-17  Mats Erik Andersson  <gnu@gisladisker.se>  (tiny change)
12845         getgroups: statement without effect
12846         * lib/getgroups.c (rpl_getgroups) [HAVE_GETGROUPS]:
12847         Change equality conditional to expected assignment.
12849 2013-09-09  Eric Blake  <eblake@redhat.com>
12851         glob: fix compilation
12852         * lib/glob.in.h (__THROW): Fix missing line in previous commit.
12854 2013-09-07  Eric Blake  <eblake@redhat.com>
12856         glob: fix build for platforms without __THROW
12857         * lib/glob.in.h (__THROW): Add definition again.
12859 2013-09-04  Anton Ovchinnikov  <revolver112@gmail.com>  (tiny change)
12861         regex-quote: fix buffer access out of bounds
12862         http://lists.gnu.org/archive/html/bug-gnulib/2013-09/msg00001.html
12863         * lib/regex-quote.c (regex_quote_spec_pcre):
12864         Fix typo that resulted in an out-of-bounds read.
12866 2013-09-04  Eric Blake  <eblake@redhat.com>
12868         glob: avoid -Wattribute warnings on glibc
12869         * lib/glob.c (next_brace_sub, prefix_array, collated_compare): Use
12870         __THROWNL, not __THROW, on static functions.
12871         * lib/glob.in.h (__THROW): Adjust...
12872         (__THROWNL): ...accordingly.
12874 2013-08-28  Paul Eggert  <eggert@cs.ucla.edu>
12876         headers: check that _GL_INLINE_HEADER_BEGIN is defined
12877         Suggested by Bruce Korb in:
12878         http://lists.gnu.org/archive/html/bug-gnulib/2013-08/msg00070.html
12879         * doc/extern-inline.texi (extern inline):
12880         Suggest checking that _GL_INLINE_HEADER_BEGIN is defined.
12881         * lib/acl-internal.h, lib/argp-fmtstream.h, lib/argp.h:
12882         * lib/binary-io.h, lib/bitrotate.h, lib/count-leading-zeros.h:
12883         * lib/count-one-bits.h, lib/eealloc.h, lib/execinfo.in.h:
12884         * lib/gethrxtime.h, lib/gl_list.h, lib/gl_oset.h, lib/gl_xlist.h:
12885         * lib/gl_xoset.h, lib/gl_xsublist.h, lib/glthread/cond.h:
12886         * lib/glthread/thread.h, lib/math.in.h, lib/mbchar.h, lib/mbfile.h:
12887         * lib/mbiter.h, lib/mbuiter.h, lib/openat.h, lib/pipe-filter-aux.h:
12888         * lib/priv-set.h, lib/pthread.in.h, lib/savewd.h, lib/se-context.in.h:
12889         * lib/se-selinux.in.h, lib/sig-handler.h, lib/stat-time.h:
12890         * lib/sys_socket.in.h, lib/timespec.h, lib/u64.h, lib/unistd.in.h:
12891         * lib/utimens.h, lib/wctype.in.h, lib/xalloc.h, lib/xsize.h:
12892         * lib/xtime.h:
12893         Check that _GL_INLINE_HEADER_BEGIN is defined.
12895 2013-08-29  Pádraig Brady  <P@draigBrady.com>
12897         bootstrap: remove the --version requirement from ancillary tools
12898         * build-aux/bootstrap (check_exists): A new refactored function to
12899         determine if a command exists.
12900         (find_tool): Use the new function which does not require the
12901         --version option to be supported.
12902         (check_versions): Use the new function.
12904 2013-08-26  Simon Josefsson  <simon@josefsson.org>
12906         gc: support HMAC-SHA256 and HMAC-SHA512.
12907         * lib/gc.h: Add gc_hmac_sha256 and gc_hmac_sha512.
12908         * lib/gc-libgcrypt.c (gc_hmac_sha256, gc_hmac_sha512): New
12909         functions.
12910         (gc_hmac_md5): Use symbolic constant.
12911         * lib/gc-gnulib.c: Include hmac.h for HMAC-SHA256/512 too.
12912         (gc_hmac_sha256, gc_hmac_sha512): New functions.
12913         * lib/hmac.h: Add hmac_sha256 and hmac_sha512 prototypes.
12914         * m4/sha256.m4: Protect against empty expansion.
12915         * m4/sha512.m4: Likewise.
12916         * lib/hmac-sha256.c: New file.
12917         * lib/hmac-sha512.c: Likewise.
12918         * m4/gc-hmac-sha256.m4: Likewise.
12919         * m4/gc-hmac-sha512.m4: Likewise.
12920         * m4/gc-sha256.m4: Likewise.
12921         * m4/gc-sha512.m4: Likewise.
12922         * modules/crypto/gc-hmac-sha256: Likewise.
12923         * modules/crypto/gc-hmac-sha256-tests: Likewise.
12924         * modules/crypto/gc-hmac-sha512: Likewise.
12925         * modules/crypto/gc-hmac-sha512-tests: Likewise.
12926         * modules/crypto/hmac-sha256: Likewise.
12927         * modules/crypto/hmac-sha256-tests: Likewise.
12928         * modules/crypto/hmac-sha512: Likewise.
12929         * modules/crypto/hmac-sha512-tests: Likewise.
12930         * tests/test-gc-hmac-sha256.c: Likewise.
12931         * tests/test-gc-hmac-sha512.c: Likewise
12932         * tests/test-hmac-sha256.c: Likewise.
12933         * tests/test-hmac-sha512.c: Likewise
12935 2013-08-24  Daiki Ueno  <ueno@gnu.org>
12937         * m4/intl.m4: Update from gettext-0.18.3.1, which fixes a misuse
12938         of AC_CHECK_DECLS.
12940 2013-08-23  Paul Eggert  <eggert@cs.ucla.edu>
12942         selinux-at: omit unnecessary include
12943         * lib/selinux-at.c: Don't include dosname.h; not needed, since
12944         this source file doesn't use its macros, and subsidiary files that
12945         use the macros already include it.
12947 2013-08-21  Eric Blake  <eblake@redhat.com>
12949         d-ino: avoid false negative on symlink
12950         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use lstat.
12951         Reported by Stephane Chazelas.
12953 2013-08-12  Mike Miller  <mtmiller@ieee.org>  (tiny change)
12955         bootstrap: port to OpenBSD sed
12956         * build-aux/bootstrap (insert_if_absent): Port to OpenBSD sed which
12957         does not interpret `-' as a file argument to mean stdin.
12959 2013-08-15  Eric Blake  <eblake@redhat.com>
12961         warnings: minor optimization
12962         * m4/warnings.m4 (gl_COMPILER_OPTION_IF): Use fewer processes.
12964         warnings: check -Wfoo rather than -Wno-foo
12965         * m4/warnings.m4 (gl_COMPILER_OPTION_IF): If name begins with
12966         -Wno-, test if the compiler recognizes the positive form instead.
12968 2013-08-15  Karl Berry  <karl@gnu.org>
12970         * config/srclist-update: add option "doclicense" to placate
12971         pulling *.texi files from Emacs.  Write terse usage
12972         documentation at the top.
12974 2013-08-13  Paul Eggert  <eggert@cs.ucla.edu>
12976         xvasprintf-tests: port to GCC with hardening flags
12977         * tests/test-xvasprintf.c (test_xasprintf): Pass another arg to
12978         xasprintf, to pacify GCC.  Reported by Santiago Vila in:
12979         http://lists.gnu.org/archive/html/bug-diffutils/2013-08/msg00002.html
12981 2013-08-11  Paul Eggert  <eggert@cs.ucla.edu>
12983         fpending: port to recent Cygwin change to stdio_ext.h
12984         Reported by LRN in
12985         <http://lists.gnu.org/archive/html/bug-gnulib/2013-08/msg00028.html>.
12986         * lib/fpending.h: Don't worry about HAVE_DECL___FPENDING;
12987         just declare __fpending unless it's a macro.
12988         A duplicate decl shouldn't hurt.
12989         * m4/fpending.m4 (gl_FUNC_FPENDING): Check that an __fpending
12990         call compiles and links, instead of separately checking for
12991         decl and lib function.
12992         * modules/fpending (configure-ac):
12993         Adjust to fpending.m4's renaming of shell variable.
12995 2013-08-10  Paul Eggert  <eggert@cs.ucla.edu>
12997         sys_time: port to OpenBSD
12998         * lib/sys_time.in.h: Simply delegate to the system's header
12999         in the BSDish cases as well.  Problem reported by Mike Miller in
13000         <http://lists.gnu.org/archive/html/bug-gnulib/2013-08/msg00016.html>.
13001         * tests/test-sys_select.c, tests/test-sys_time.c (verify_tv_sec_type):
13002         Allow platforms like 64-bit OpenBSD where timeval's tv_sec is
13003         wider than time_t.
13005 2013-08-09  Pádraig Brady  <P@draigBrady.com>
13007         bootstrap: support checksum utils having -c but not --status
13008         * build-aux/bootstrap: Only look for sha1sum if updating po files.
13009         Add sha1 to the list of supported checksum utils since it's now
13010         supported through adjustments below.
13011         (update_po_files): Remove the use of --status
13012         in a way that will suppress all error messages, but since this is
13013         only used to minimize updates, it shouldn't cause an issue.
13014         Exit early if there is a problem updating the po file checksums.
13015         (find_tool): Remove the check for --version support as this
13016         is optional as per commit 86186b17.  Don't even check for the
13017         presence of the command as if that is needed, it's supported
13018         through configuring prerequisites in bootstrap.conf.
13019         Prompt that when a tool isn't found, one can define an environment
13020         variable to add to the hardcoded search list.
13022 2013-08-05  Jim Meyering  <meyering@fb.com>
13024         regex: port to non-glibc/lock-using systems
13025         Since 29-05-2013 commit, 55ba71f4, compilation on a non-glibc
13026         system with GNULIB_LOCK would fail due to absence of the
13027         included "glthread/lock.h".  This would affect any package
13028         for which the "lock" module is used only by the regex module,
13029         and not explicitly used.
13030         * m4/regex.m4 (gl_PREREQ_REGEX): Require gl_GLIBC21.
13031         * modules/regex (Depends-on) [!GLIBC && $ac_use_included_regex]:
13032         Add a dependency on the "lock" module.
13034 2013-07-20  Daiki Ueno  <ueno@gnu.org>
13036         localecharset: make locale_charset thread-safe on Mac OS X
13037         * lib/localcharset.c (locale_charset) [DARWIN7]: Use MB_CUR_MAX_L
13038         instead of MB_CUR_MAX.
13040 2013-07-20  Daiki Ueno  <ueno@gnu.org>
13042         gettext: update to version 0.18.3
13043         * m4/intl.m4, m4/po.m4: Update from gettext-0.18.3.  In particular,
13044         require AC_PROG_SED to allow user to specify custom sed command when
13045         generating en@quot PO file.
13047 2013-07-18  Werner Lemberg  <wl@gnu.org>  (tiny change)
13049         bootstrap: use correct source when copying build-aux files
13050         * build-aux/bootstrap (gnulib_extra_files): This variable is
13051         relative to upstream gnulib layout, not downstream.
13053 2013-07-17  Paul Eggert  <eggert@cs.ucla.edu>
13055         tmpdir: fix bug in VMS port
13056         * lib/tmpdir.c (path_search) [__VMS]: Never add slash.
13057         See Steven M. Schweda in
13058         <http://lists.gnu.org/archive/html/bug-gnulib/2013-07/msg00026.html>.
13060 2013-07-15  Paul Eggert  <eggert@cs.ucla.edu>
13062         tmpdir: port to VMS, to // != /, and to long dirs
13063         * lib/tmpdir.c (__libc_secure_getenv) [!_LIBC]: Rename from
13064         __secure_getenv, so that we're more like the glibc version.
13065         All uses changed.
13066         (path_search): Don't put slash after directory if __VMS.
13067         Problem reported by Steven M. Schweda in
13068         <http://lists.gnu.org/archive/html/bug-gnulib/2013-07/msg00019.html>.
13069         Simplify code to add slash; no need for a loop.
13070         Do not remove trailing slash from "//".
13071         Do not assume dlen <= INT_MAX.
13073 2013-07-09  Paul Eggert  <eggert@cs.ucla.edu>
13075         regex: port to --with-included-regex --enable-gcc-warnings non-threaded
13076         * lib/regex_internal.h (lock_fini, lock_lock): Rework to avoid
13077         gcc warnings in the non-threaded case.  Reported by Charlie Brown in
13078         <http://lists.gnu.org/archive/html/bug-gnulib/2013-07/msg00015.html>.
13080         accept4, dup3, pipe2: port to Cygwin
13081         Problem reported for Emacs by Ken Brown in <http://bugs.gnu.org/14821>.
13082         * lib/accept4.c (accept4) [O_BINARY]:
13083         * lib/dup3.c (dup3) [O_BINARY]:
13084         * lib/pipe2.c (pipe2) [O_BINARY]:
13085         Use set_binary_mode, not setmode.
13086         * lib/pipe2.c [!GNULIB_BINARY_IO]: Include binary-io.h.
13087         * modules/binary-io (Depends-on): Remove module indicator.
13088         These last two bits undo the previous change to pipe2 and binary-io.
13090 2013-07-09  Pádraig Brady  <P@draigBrady.com>
13092         mountlist: add support for deallocating returned list entries
13093         * lib/mountlist.c (free_mount_entry): A new exported function
13094         to deallocate a mount list entry.
13095         (read_file_system_list): Refactor to use the new deallocation function.
13096         Suggested by Anton Ovchinnikov.
13098 2013-07-07  Paul Eggert  <eggert@cs.ucla.edu>
13100         stdalign, verify: port to FreeBSD 9.1, to C11, and to C++11
13101         Problem reported by Ulrich Mueller in <http://bugs.gnu.org/14812>.
13102         * lib/stdalign.in.h (_Alignas, _Alignof):
13103         Port to FreeBSD 9.1, and to C11 and C++11.
13104         (_Alignas): Also support ICC.
13105         * lib/verify.h (_Static_assert): Undef if <stddef.h> defines it.
13106         * m4/stdalign.m4 (gl_STDALIGN_H): Port to ICC and to C++11.
13108 2013-07-06  Paul Eggert  <eggert@cs.ucla.edu>
13110         fnmatch: don't goto over declaration
13111         * lib/fnmatch_loop.c (FCT): Hoist local up one level, to avoid
13112         undefined behavior for goto over a declaration.
13113         Problem reported by Charlie Brown in
13114         <http://lists.gnu.org/archive/html/bug-gnulib/2013-07/msg00009.html>.
13116         pipe2: decouple from binary-io a bit
13117         This is for Emacs, which needs pipe2 but not binary-io.
13118         * lib/pipe2.c [!GNULIB_BINARY_IO]: Don't include binary-io.h.
13119         * modules/binary-io (Depends-on): Add module indicator.
13121 2013-07-03  Eric Blake  <eblake@redhat.com>
13123         mgetgroups: relax license to LGPLv2+
13124         * modules/getugroups (License): Change from GPLv3+.
13125         * modules/mgetgroups (License): Likewise.
13126         * modules/getgroups (License): Change from LGPLv3+.
13128         xalloc-oversized: relax license to LGPLv2+
13129         * modules/xalloc-oversized (License): Change from GPLv3+.
13131         nproc: relax license to LGPLv2+
13132         * modules/nproc (License): Change from LGPLv3+.
13134         bootstrap: honor --no-git
13135         * build-aux/bootstrap: Don't even try to use git when user is
13136         pointing to a static checkout.
13138 2013-06-23  Paul Eggert  <eggert@cs.ucla.edu>
13140         ignore-value: port to gcc -pedantic
13141         * lib/ignore-value.h (ignore_value):
13142         Port to gcc -pedantic, by using __extension__.
13143         Reindent as per usual gnulib style nowadays.
13144         Simplify GCC version check.
13146 2013-06-21  Paul Eggert  <eggert@cs.ucla.edu>
13148         extern-inline: port to gcc -std=c89
13149         * m4/extern-inline.m4 (gl_EXTERN_INLINE):
13150         Do not use __gnu_inline__ if pedantic and pre-C99.
13152 2013-06-18  Paul Eggert  <eggert@cs.ucla.edu>
13154         doc: document extern-inline
13155         * doc/extern-inline.texi: New file.
13156         * doc/gnulib.texi (alloca-opt): Include it.
13157         * m4/extern-inline.m4: Move some comments to documentation,
13158         and others closer to what they describe.
13160         doc: chatter less
13161         * doc/Makefile (NEWEST_GNULIB_TEXI_FILE): New macro.
13162         (updated-stamp): Use it.  This causes 'make' to output just
13163         one file name rather than zillions.
13165         fflush, fseeko: port to musl cross-compiles
13166         * lib/fseeko.c (fseeko): Assume that fflushing stdin works if
13167         on some implementation that (1) is not known to be buggy,
13168         (2) claims conformance to POSIX.1-2008 or later, and (3) is being
13169         cross-compiled to so we can't easily check for lack of
13170         conformance.  This is for cross-compiling to musl.
13171         Reported by Rich Felker in
13172         <http://lists.gnu.org/archive/html/bug-gnulib/2013-06/msg00043.html>.
13173         * m4/fclose.m4 (gl_FUNC_FCLOSE):
13174         * m4/fflush.m4 (gl_FUNC_FFLUSH):
13175         * m4/fseeko.m4 (gl_FUNC_FSEEKO):
13176         Adjust to above change.
13177         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): Set gl_cv_func_fflush_stdin
13178         to 'cross', not to 'no', when cross-compiling.  AC_DEFINE
13179         FUNC_FFLUSH_STDIN to 1, 0, -1 if fflushing stdin is known to work,
13180         known not to work, or unknown.
13182 2013-06-15  Paul Eggert  <eggert@cs.ucla.edu>
13184         msvc-inval: port to mingw-w64
13185         * lib/msvc-inval.c (gl_msvc_invalid_parameter_handler):
13186         Use __cdecl, not cdecl, for mingw-w64.  Reported by LRN in
13187         <http://lists.gnu.org/archive/html/bug-gnulib/2013-06/msg00039.html>.
13189 2013-06-11  Paul Eggert  <eggert@cs.ucla.edu>
13191         getcwd-lgpl: port to Tru64
13192         * lib/getcwd-lgpl.c: Include <stdlib.h>, for malloc etc.
13193         Problem reported by Steven M. Schweda in
13194         <http://lists.gnu.org/archive/html/bug-gzip/2013-06/msg00010.html>.
13196         tests: port large-fd POSIX spawn tests to OS X
13197         Problem reported by Daiki Ueno in
13198         <http://lists.gnu.org/archive/html/bug-gnulib/2013-06/msg00031.html>.
13199         * tests/test-posix_spawn_file_actions_addclose.c:
13200         * tests/test-posix_spawn_file_actions_adddup2.c:
13201         * tests/test-posix_spawn_file_actions_addopen.c:
13202         Include <limits.h>, for OPEN_MAX, if available.
13203         (big_fd): New static function.
13204         (main): Use it.
13206 2013-06-04  Bernhard Voelker  <mail@bernhard-voelker.de>
13208         tests/nap.h: use an adaptive delay to avoid ctime update issues
13209         The recent change in nap.h (5191133e) decreased the probability of lost
13210         races to about a third, however such problems could still be observed
13211         in virtual machines and openSUSE's OBS.
13212         Before, nap() detected the needed time once empirically and then used
13213         that delay (together with a small correction multiplier) in further
13214         calls.  This problem has been reported and discussed several times,
13215         including guesses about possible kernel issues:
13216         https://lists.gnu.org/archive/html/bug-gnulib/2013-04/msg00071.html
13217         http://lists.gnu.org/archive/html/coreutils/2012-03/msg00088.html
13218         https://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00226.html
13219         http://bugs.gnu.org/12820
13220         https://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html
13221         https://lists.gnu.org/archive/html/bug-gnulib/2009-11/msg00007.html
13222         Now, nap() avoids the race alltogether by verifying on a reference
13223         file whether a timestamp difference has happened.
13224         * tests/nap.h (nap_fd): Define file descriptor variable for the
13225         witness file.
13226         (nap_works): Change return value to bool.  Change passing
13227         the old file's status by value instead of by reference as this function
13228         does no longer update that timestamp; rename the function argument from
13229         st to old_st.  Remove the local variables cdiff and mdiff because that
13230         function now returns true/false instead of the precise delay.
13231         (guess_delay): Remove function.
13232         (clear_tmp_file): Add new function to close and unlink the witness file.
13233         (nap): Instead of re-using the delay which has been calculated during
13234         the first call, avoid the race by actually verifying that a timestamp
13235         difference can be observed on the current file system.  Use an adaptive
13236         approach for the delay to minimize execution time.  Assert that the
13237         maximum delay is <= ~2 seconds, more precisely sum(2^n) from 0 to 30
13238         = 2^31 - 1 = 2.1s.
13239         Use atexit to call clear_tmp_file when the process terminates.
13241 2013-06-02  Paul Eggert  <eggert@cs.ucla.edu>
13243         sig2str: port to C++
13244         * lib/sig2str.h (sig2str, str2sig): Declare as extern "C".
13245         Reported by Daniel J Sebald in
13246         <http://lists.gnu.org/archive/html/bug-gnulib/2013-06/msg00000.html>.
13248 2013-05-30  Eric Blake  <eblake@redhat.com>
13250         docs: mention cygwin shortcoming in <sys/un.h>
13251         * doc/posix-headers/sys_un.texi (sys/un.h): Mention problem.
13253         vasnprintf: silence mingw compiler warning
13254         * lib/vasnprintf.c (VASNPRINTF): Avoid unused variable warning.
13256 2013-05-29  Paul Eggert  <eggert@cs.ucla.edu>
13258         c-ctype, regex, verify: port to gcc -std=c90 -pedantic
13259         Avoid constructions that are rejected by gcc -std=c90 -pedantic.
13260         This fixes a porting bug I recently reintroduced in regex, and
13261         some other instances that I discovered while testing the fix.
13262         * lib/c-ctype.h [__STRICT_ANSI__]: Avoid ({ ... }).
13263         * lib/regcomp.c (utf8_sb_map) [__STRICT_ANSI__]: Avoid [0 ... N] = E.
13264         * lib/regex_internal.h [!_LIBC && GNULIB_LOCK]: Do not use a macro
13265         with an empty argument if this is a pedantic pre-C99 GCC.
13266         * lib/verify.h: Do not use _Static_assert if this is a pedantic
13267         pre-C11 GCC.
13269         regex: adapt to locking regime instead of depending on pthread
13270         Instead of depending on pthread, adapt to whatever thread
13271         modules are in use.  Problem reported by Ludovic Courtès in
13272         <http://lists.gnu.org/archive/html/bug-gnulib/2013-05/msg00082.html>
13273         and by Mats Erik Andersson in
13274         <http://lists.gnu.org/archive/html/bug-gnulib/2013-05/msg00100.html>.
13275         * lib/regex_internal.h (lock_define, lock_init, lock_fini):
13276         Support either the 'lock' module, or the 'pthread' module, or
13277         no module.
13278         (lock_lock, lock_unlock): New macros.
13279         * lib/regexec.c (regexec, re_search_stub): Use the new macros.
13280         * modules/lock, modules/pthread (configure.ac): Add module indicator.
13281         * modules/regex (Depends-on): Remove pthread.
13283 2013-05-22  Eric Blake  <eblake@redhat.com>
13285         getgroups: document portability issues
13286         * doc/glibc-functions/initgroups.texi (initgroups): Mention
13287         multithread safety.
13288         * doc/posix-functions/getpwuid.texi (getpwuid): Likewise.
13289         * doc/posix-functions/getpwuid_r.texi (getpwuid_r): Likewise.
13290         * doc/glibc-functions/getgrouplist.texi (getgrouplist): Mention
13291         getugroups.
13292         * doc/posix-functions/getgroups.texi (getgroups): Mention
13293         multithread safety and mgetgroups.
13295 2013-05-22  Bernhard Voelker  <mail@bernhard-voelker.de>
13297         test-lchown, test-chown: also skip test if chown fails with EPERM
13298         * tests/test-lchown.h (test_lchown): Add EPERM to the condition to
13299         skip this test, to handle FAT file systems.
13300         * tests/test-chown.h (test_chown): Likewise.
13302 2013-05-19  Paul Eggert  <eggert@cs.ucla.edu>
13304         regex: fix dfa race in multithreaded uses
13305         Problem reported by Ludovic Courtès in
13306         <http://lists.gnu.org/archive/html/bug-gnulib/2013-05/msg00058.html>.
13307         * lib/regex_internal.h (lock_define, lock_init, lock_fini):
13308         New macros.  All uses of __libc_lock_define, __libc_lock_init
13309         changed to use the first two of these.
13310         (__libc_lock_lock, __libc_lock_unlock): New macros, for
13311         non-glibc platforms.
13312         (struct re_dfa_t): Define the lock unconditionally.
13313         * lib/regexec.c (regexec, re_search_stub): Remove some now-incorrect
13314         '#ifdef _LIBC"s.
13315         * modules/regex (Depends-on): Add pthread, if we use the
13316         included regex.
13318         * lib/regcomp.c: Do actions that are not needed for glibc,
13319         but may be needed elsewhere.
13320         (regfree, re_compile_internal): Destroy the lock.
13321         (re_compile_internal): Check for lock-initialization failure.
13323         malloca: port to compilers that reject size-zero arrays
13324         This fixes a bug introduced in my previous patch.
13325         * lib/malloca.c (struct preliminary_header): Use an int
13326         rather than a character array of size int; that's simpler.
13327         (struct header): Remove, replacing with ...
13328         (union header): New type.  This avoids the need for declaring a
13329         character array of size zero, which is not allowed on some platforms.
13330         All uses changed.
13332 2013-05-18  Paul Eggert  <eggert@cs.ucla.edu>
13334         parse-datetime, tests: don't use "string" + int
13335         Recent versions of 'clang' complain about C source code that
13336         uses expressions of the form '"string literal" + integer',
13337         I guess on the theory that it's confusing for readers who are
13338         used to C++.  On those grounds I suppose it's OK to make this
13339         minor style change.
13340         * lib/parse-datetime.y (parse_datetime):
13341         * tests/test-fchdir.c (main):
13342         * tests/test-snprintf-posix.h (test_function):
13343         * tests/test-snprintf.c (main):
13344         * tests/test-vasnprintf-posix.c (test_function):
13345         * tests/test-vasnprintf.c (test_function):
13346         * tests/test-vsnprintf.c (main):
13347         * tests/unistdio/test-ulc-asnprintf1.h (test_function):
13348         Rewrite '"str" + E' to '&"str"[E]'.
13350 2013-05-17  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
13352         argmatch: port to C++
13353         * lib/argmatch.h [__cplusplus]: Add extern "C".
13355         argp: typo fix
13356         * lib/argp-help.c: Typo in comment.
13358 2013-05-15  Paul Eggert  <eggert@cs.ucla.edu>
13360         manywarnings: update for GCC 4.8.0
13361         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC):
13362         Add -Waggressive-loop-optimizations, -Wreturn-local-addr, which
13363         are new to GCC 4.8.  Remove -Wformat=2, -Wmissing-format-attribute,
13364         -Wmissing-noreturn, as they are duplicates of other warnings.
13365         Remove -Wunreachable-code, as it is removed in GCC 4.8 and
13366         was documented to be flaky in earlier versions of GCC.
13368         spawn-tests, sys_socket-tests, sys_wait-tests: port to clang
13369         * tests/test-spawn.c (main):
13370         * tests/test-sys_socket.c (main):
13371         * tests/test-sys_wait.c (main):
13372         Don't have a switch value that isn't covered by a case.
13374         getaddrinfo-tests: port --enable-gcc-warnings to clang
13375         * tests/test-getaddrinfo.c (simple):
13376         Avoid casts from looser to stricter-aligned pointers.
13378         thread: port --enable-gcc-warnings to clang
13379         * lib/glthread/thread.h [__clang__ && USE_POSIX_THREADS_WEAK]:
13380         Include <signal.h>, to pacify a warning about pthread_sigmask.
13382         stdio: use __REDIRECT for fwrite, fwrite_unlocked
13383         * lib/stdio.in.h (fwrite):
13384         When working around bug 11959, use __REDIRECT rather than '#define
13385         fwrite(...) ... fwrite (...) ...'.  This is a more-targeted way to
13386         fix the -Wunused-value issue with clang, and it works with GCC too.
13387         Problem with targeting reported by Eric Blake in
13388         <http://lists.gnu.org/archive/html/bug-gnulib/2013-05/msg00067.html>.
13389         (fwrite_unlocked): Treat like fwrite.  I ran into this issue while
13390         debugging the fwrite issue.
13392         stdio: port --enable-gcc-warnings to clang
13393         * lib/stdio.in.h (fwrite) [__clang__]: Ignore -Wunused-value entirely,
13394         since the GCC workaround for fwrite does not pacify clang.
13396         sig2str: port --enable-gcc-warnings to clang
13397         * lib/sig2str.c (sig2str): Avoid warning about unused printf argument.
13399         obstack: port --enable-gcc-warnings to clang
13400         * lib/obstack.h (obstack_ptr_grow_fast, obstack_int_grow_fast):
13401         Avoid casts from looser to stricter-aligned pointers.
13403         memchr2: port --enable-gcc-warnings to clang
13404         * lib/memchr2.c (memchr2):
13405         Avoid casts from looser to stricter-aligned pointers.
13407         mbsstr: port --enable-gcc-warnings to clang
13408         * lib/mbsstr.c (knuth_morris_pratt_multibyte):
13409         Avoid casts from looser to stricter-aligned pointers.
13411         malloca: port --enable-gcc-warnings to clang
13412         * lib/malloca.c (struct header): New member 'magic', to avoid casts.
13413         (mmalloca): Avoid casts from looser to stricter-aligned pointers.
13415         inttostr: port --enable-gcc-warnings to clang
13416         * lib/anytostr.c [__clang__]: Ignore -Wtautological-compare.
13418         warnings: port to clang
13419         Problem reported by Daniel P. Berrange via Eric Blake in
13420         <http://lists.gnu.org/archive/html/bug-gnulib/2013-05/msg00055.html>.
13421         * m4/warnings.m4 (gl_UNKNOWN_WARNINGS_ARE_ERRORS): New macro.
13422         (gl_WARN_ADD): Use it.
13424 2013-05-11  Jim Meyering  <meyering@fb.com>
13426         quotearg: do not read beyond end of buffer
13427         * lib/quotearg.c (quotearg_buffer_restyled): Do not read beyond the
13428         end of an ARG for which no length was specified.  With an N-byte
13429         quote string, (e.g., N is 3 in the fr_FR.UTF-8 locale), this function
13430         would read N-2 bytes beyond ARG's trailing NUL.  This was triggered
13431         via coreutils' misc/sort-debug-keys.sh test and detected by running
13432         the test against a binary compiled with gcc-4.8.0's -fsanitize=address.
13433         * tests/test-quotearg-simple.c (main): Add a test to trigger the bug.
13434         * modules/quotearg-simple-tests (Files): Add tests/zerosize-ptr.h.
13435         Introduced via the 2000-01-15 commit, c4b7f3f8, "Quote multibyte
13436         characters correctly."
13438 2013-05-11  Daiki Ueno  <ueno@gnu.org>
13440         lock: work around pthread recursive mutexes bug in Mac OS X 10.6
13441         * m4/lock.m4: Don't define HAVE_PTHREAD_MUTEX_RECURSIVE if the
13442         compilation target is Mac OS X 10.6.
13443         Problem reported by parafin and Andoni Morales in
13444         <http://savannah.gnu.org/bugs/?37844> and
13445         <http://lists.gnu.org/archive/html/bug-gettext/2013-05/msg00007.html>.
13447 2013-05-11  Paul Eggert  <eggert@cs.ucla.edu>
13449         mkdir-p: remove assumptions about umask and mode
13450         * lib/mkdir-p.c (make_dir_parents): Do not assume that the current
13451         umask is 0, or that MODE is a subset of MODE_BITS.
13453 2013-05-10  Eric Blake  <eblake@redhat.com>
13455         maint.mk: catch more abuse of HAVE_DECL in syntax-check
13456         * top/maint.mk (sc_prohibit_defined_have_decl_tests): Relax regex.
13458 2012-05-10  Stefano Lattarini  <stefano.lattarini@gmail.com>
13460         deps: require Automake >= 1.9.6 in generated Makefile fragments
13462         That is the same minimal version required in the DEPENDENCIES file.
13463         Moreover, the old code generated a requirement of Automake >= 1.5,
13464         and that is an insanely outdated version.
13466         * gnulib-tool: Bump minimal version requirement in AUTOMAKE_OPTIONS.
13467         * tests/havelib/rpathlx/Makefile.am: Likewise.
13468         * tests/havelib/rpathly/Makefile.am: Likewise.
13469         * tests/havelib/rpathlyx/Makefile.am: Likewise.
13470         * tests/havelib/rpathlz/Makefile.am: Likewise.
13471         * tests/havelib/rpathlzyx/Makefile.am: Likewise.
13472         * tests/havelib/rpathx/Makefile.am: Likewise.
13473         * tests/havelib/rpathy/Makefile.am: Likewise.
13474         * tests/havelib/rpathz/Makefile.am: Likewise.
13476 2013-05-08  Eric Blake  <eblake@redhat.com>
13478         bootstrap: AC_INIT may have more than four parameters
13479         * build-aux/bootstrap (extract_package_name): Correctly extract
13480         non-empty tarname field.  Avoid range in regex.
13481         Based on a report by Sami Kerola <kerolasa@iki.fi>.
13483 2013-05-07  Paul Eggert  <eggert@cs.ucla.edu>
13485         qacl: port to MS-Windows port of GNU Emacs
13486         * lib/acl-errno-valid.c (acl_errno_valid) [ENOTSUP == ENOSYS]:
13487         Omit the duplicate ENOTSUP case.  Needed for the MS-Windows
13488         port of GNU Emacs.  Problem reported by Eli Zaretskii in
13489         <http://bugs.gnu.org/14295#14>.
13491 2013-05-07  Mike Frysinger  <vapier@gentoo.org>
13493         acl: include quote.h
13494         * lib/copy-acl.c: Include quote.h.
13495         * lib/set-acl.c: Likewise.
13497 2013-05-06  Mike Frysinger  <vapier@gentoo.org>
13499         fchownat, renameat, unlinkat: update statat dependencies
13500         These modules use statat and lstatat, not fstatat; so depend on
13501         the statat module, which was split out recently from fstatat.
13502         * modules/fchownat, modules/unlinkat: Change fstatat to statat.
13503         * modules/renameat: Likewise.  Also delete fstat.
13504         URL: http://bugs.gentoo.org/468790
13506 2012-05-04  Stefano Lattarini  <stefano.lattarini@gmail.com>
13508         Assume gnulib is checked out from Git, not CVS
13510         In fact, access to the gnulib repository through CVS has been
13511         disabled, or more precisely, got broken and was never restored; see:
13512         <http://lists.gnu.org/archive/html/bug-gnulib/2013-05/msg00008.html>
13514         Note that support for CVS is not removed completely and unthinkingly
13515         by this change: only support for CVS checkouts of gnulib itself is
13516         removed.  For example, the 'bootstrap' script still cater to .cvsingore
13517         files and CVS directories, for the benefit of those poor gnulib clients
13518         still stuck with CVS.  Ditto for the 'gnulib-tool' script itself.
13520         * gnulib-tool: Simplify accordingly.
13521         * posix-modules: Likewise.
13522         * MODULES.html.sh: Likewise.
13523         * doc/gnulib.texi: No longer mention the decommissioned CVS gnulib
13524         repository.
13525         * doc/gnulib-intro.texi: Likewise.
13526         * doc/gnulib-readme.texi: Likewise.
13527         * doc/gnulib-tool.texi: In the examples and explanations, refer to a
13528         sample '.gitignore' file rather than a sample '.cvsignore'.
13529         * NEWS: Update.
13530         * m4/extensions.m4: While at it, remove a comment mistakenly referring
13531         to "CVS Autoconf" rather than "git Autoconf".
13533 2013-04-30  Paul Eggert  <eggert@cs.ucla.edu>
13535         utimensat-tests, etc.: try to fix some races
13536         Problem reported by Bernhard Voelker in
13537         <http://lists.gnu.org/archive/html/bug-gnulib/2013-04/msg00071.html>.
13538         I don't know whether this patch fixes that race condition, but it
13539         fixes *some* race conditions, so it should be a win.
13540         * modules/chown-tests (Depends-on):
13541         * modules/fchownat-tests (Depends-on):
13542         * modules/fdutimensat-tests (Depends-on):
13543         * modules/futimens-tests (Depends-on):
13544         * modules/lchown-tests (Depends-on):
13545         * modules/stat-time-tests (Depends-on):
13546         * modules/utimens-tests (Depends-on):
13547         * modules/utimensat-tests (Depends-on):
13548         Depend on nanosleep, not usleep.
13549         * modules/chown-tests (test_chown_LDADD):
13550         * modules/lchown-tests (test_lchown_LDADD):
13551         * modules/stat-time-tests (test_stat_time_LDADD):
13552         New macro.
13553         * modules/fchownat-tests (test_fchownat_LDADD):
13554         * modules/fdutimensat-tests (test_fdutimensat_LDADD):
13555         * modules/futimens-tests (test_futimens_LDADD):
13556         * modules/utimens-tests (test_utimens_LDADD):
13557         * modules/utimensat-tests (test_utimensat_LDADD):
13558         Add $(LIB_NANOSLEEP).
13559         * modules/stat-time-tests (Files): Add tests/nap.h.
13560         * tests/nap.h: Include <limits.h>, for INT_MAX.
13561         (lt_mtime): Remove.
13562         (diff_timespec): New function.
13563         (get_stat): Rename from get_mtime.  All callers changed.
13564         (nap_works): Determine the needed delay by inspecting the
13565         file system's timestamp jumps; this should be more reliable.
13566         Look at both mtime and ctime, and take the maximum of the two jumps.
13567         (nap_works, guess_delay):
13568         Return a nanosecond count, not a microsecond count.
13569         All callers changed.
13570         (nap_works, nap): Use nanosleep, not usleep.  Check for nanosleep
13571         failure.
13572         (nap): Multiply the guess by 1.125, to accommodate the case where
13573         the file system's clock is a bit slower than nanosleep's clock.
13574         * tests/test-stat-time.c (BASE): New macro.
13575         Include nap.h.
13576         (nap): Remove; nap.h now defines this.  This removes a duplicate
13577         implementation of 'nap'.
13579         utimens, utimensat: work around Solaris UTIME_OMIT bug
13580         Solaris 11.1 and Solaris 10 have the same UTIME_OMIT bug that
13581         Linux kernel 2.6.32 does.  Work around it in the same way.
13582         * doc/posix-functions/futimens.texi (futimens):
13583         * doc/posix-functions/utimensat.texi (utimensat): Document the bug.
13584         * lib/utimens.c (fdutimens, lutimens):
13585         * lib/utimensat.c (rpl_utimensat): Work around the bug.
13587         gettext: now it's your responsibility to add -I$(top_builddir)/intl
13588         Formerly, it was your responsibility to do this for all Makefile.ams
13589         other than Gnulib's.  Now it's your responsibility to do it for
13590         Gnulib's Makefile.am, too.
13591         * NEWS: Document this.
13592         * modules/gettext (AM_CPPFLAGS): Don't append -$(top_builddir)/intl.
13594         acl: include errno.h to get errno
13595         Reported by Daiki Ueno in
13596         <http://lists.gnu.org/archive/html/bug-gnulib/2013-04/msg00073.html>.
13597         * lib/copy-acl.c, lib/set-acl.c: Include errno.h.
13599 2013-04-29  Paul Eggert  <eggert@cs.ucla.edu>
13601         tests: don't assume getdtablesize () <= 10000000
13602         * modules/cloexec-tests:
13603         * modules/dup2-tests:
13604         * modules/dup3-tests:
13605         * modules/nonblocking-tests:
13606         * modules/posix_spawn_file_actions_addclose-tests:
13607         * modules/posix_spawn_file_actions_adddup2-tests:
13608         * modules/posix_spawn_file_actions_addopen-tests:
13609         * modules/unistd-safer-tests:
13610         Depend on the getdtablesize module.
13611         * tests/test-cloexec.c:
13612         * tests/test-dup-safer.c:
13613         * tests/test-dup2.c:
13614         * tests/test-dup3.c:
13615         * tests/test-fcntl.c:
13616         * tests/test-nonblocking.c:
13617         * tests/test-posix_spawn_file_actions_addclose.c:
13618         * tests/test-posix_spawn_file_actions_adddup2.c:
13619         * tests/test-posix_spawn_file_actions_addopen.c:
13620         Don't assume getdtablesize () <= 10000000.
13622 2013-04-28  Paul Eggert  <eggert@cs.ucla.edu>
13624         extern-inline: work around bug in Sun c99
13625         * m4/extern-inline.m4 (_GL_INLINE, _GL_EXTERN_INLINE):
13626         Work around bug in Sun C 5.12 c99's implementation of 'inline'.
13628 2013-04-27  Paul Eggert  <eggert@cs.ucla.edu>
13630         qacl: new module, broken out from the acl module
13631         This is for GNU Emacs, which wants the acl functions but does
13632         not want 'error' invoked when they fail.
13633         * lib/acl-internal.h: Do not include error.h, quote.h.
13634         (ENOSYS, ENOTSUP): Remove; no longer needed.
13635         (ACL_NOT_WELL_SUPPORTED): Remove; replaced by acl_errno_valid.
13636         * lib/acl.h: Include <stdbool.h>.
13637         (acl_errno_valid): New function.
13638         * lib/copy-acl.c, lib/set-acl.c: Include errno,h, not acl-internal.h.
13639         * lib/copy-acl.c (qcopy_acl): Move to lib/qcopy-acl.c.
13640         * lib/set-acl.c: Rename from lib/set-mode-acl.c.
13641         (chmod_or_fchmod, qset_acl): Move to lib/qset-acl.c.
13642         (ACL_INTERNAL_INLINE): Remove; no longer needed.
13643         * lib/file-has-acl.c (file_has_acl):
13644         * lib/qcopy-acl.c (qcopy_acl):
13645         * lib/qset-acl.c (qset_acl):
13646         Use acl_errno_valid instead of ACL_NOT_WELL_SUPPORTED.
13647         * modules/acl (Files): Move lib/acl.h, lib/acl-internal.h,
13648         lib/acl_entries.c, lib/set-mode-acl.c (renamed to lib/set-acl.c),
13649         lib/file-has-acl.c, m4/acl.m4 to qacl module.
13650         Add lib/set-acl.c.
13651         (Depends-on): Move extern-inline, fstat, sys_stat to qacl module.
13652         Add qacl.
13653         (configure.ac): Move gl_FUNC_ACL to qacl module.
13654         (lib_SOURCES): Remove file-has-acl.c (moved to qacl module).
13655         Rename set-mode-acl.c to set-acl.c.
13656         * lib/acl-errno-valid.c: New file.
13657         * lib/qcopy-acl.c: New file, moved from the old lib/copy-acl.c; the
13658         copy_acl function remains in copy-acl.c.
13659         * lib/qcopy-acl.c, lib/qset-acl.c: Do not include gettext.h.
13660         (_): Remove; not needed.
13661         * lib/qset-acl.c: New file, moved from the old lib/set-mode-acl.c; the
13662         set_acl function remains in set-acl.c (renamed from set-mode-acl.c).
13663         * modules/qacl: New file, moved from the old modules/acl.
13664         (Files, lib_SOURCES): Add acl-errno-valid.c, qcopy-acl.c, qset-acl.c.
13665         Remove set-mode-acl.c, copy-acl.c.
13666         (Depends-on): Remove error, gettext-h, quote.  Add stdbool.
13668         alignof, intprops, malloca: port better to IBM's C compiler
13669         * lib/alignof.h (alignof_type) [__IBM_ALIGNOF__]: Use __alignof__.
13670         * lib/intprops.h (_GL_HAVE___TYPEOF__) [__IBM_TYPEOF__]: Now 1.
13671         * lib/malloca.h (sa_alignof): [__IBM_ALIGNOF__]: Use __alignof__.
13673 2013-04-25  Daiki Ueno  <ueno@gnu.org>
13675         wctype-h: fix gettext link error on mingw
13676         Reported by Josue Andrade Gomes and Takayuki Tsunakawa in
13677         <https://lists.gnu.org/archive/html/bug-gettext/2013-03/msg00086.html>.
13678         * lib/wctype.in.h [__MINGW32__]: Include <ctype.h> before defining
13679         rpl_towupper and rpl_towupper.
13681 2013-04-11  Dmitry V. Levin  <ldv@altlinux.org>
13683         regex-tests, regex: allow glibc re_search behavior
13684         * tests/test-regex.c (main): In test for glibc bug 15078, reformat
13685         re_search input data to make the multi-character collating element
13686         in it clearly visible, and treat re_search return code 0 as valid.
13687         * m4/regex.m4 (gl_REGEX): Likewise.
13689 2013-03-30  Paul Eggert  <eggert@cs.ucla.edu>
13691         stdalign: doc fix
13692         * doc/posix-headers/stdalign.texi (stdalign.h):
13693         Gnulib doesn't support '_Alignof expr'.
13695 2013-03-29  Paul Eggert  <eggert@cs.ucla.edu>
13697         stdalign: port to stricter ISO C11
13698         ISO C11 says that _Alignof's operand must be a parenthesized type.
13699         Problem reported by Eli Zaretskii in
13700         <http://lists.gnu.org/archive/html/emacs-devel/2013-03/msg00960.html>.
13701         * doc/posix-headers/stdalign.texi (stdalign.h): Document this.
13702         * m4/stdalign.m4 (gl_STDALIGN_H): Don't use _Alignof (expr).
13704 2013-03-21  Paul Eggert  <eggert@cs.ucla.edu>
13706         sys_select, sys_time: port 2013-01-30 Solaris 2.6 fix to Cygwin
13707         Problem reported by Marco Atzeri in
13708         <http://lists.gnu.org/archive/html/bug-gnulib/2013-03/msg00000.html>.
13709         * lib/sys_select.in.h [HAVE_SYS_SELECT_H && _CYGWIN_SYS_TIME_H]:
13710         Simply delegate to the system <sys/select.h> in this case too.
13711         Also, pay attention to _GL_SYS_SELECT_H_REDIRECT_FROM_SYS_TIME_H only
13712         if OSF/1, since otherwise Cygwin breaks, and it doesn't seem to
13713         be needed on Solaris either.
13714         * lib/sys_time.in.h [_CYGWIN_SYS_TIME_H]:
13715         Simply delegate to the system <sys/time.h> in this case.
13717 2013-03-19  Karl Berry  <karl@gnu.org>
13719         * build-aux/gnupload: check for erroneous (with gnupload) use of
13720         ftp-upload.gnu.org, tweak help.
13722 2013-03-19  Paul Eggert  <eggert@cs.ucla.edu>
13724         copy-file, rpmatch: fix problems found by cppcheck
13725         Reported by Arno Onken in
13726         <http://lists.gnu.org/archive/html/bug-gnulib/2013-03/msg00069.html>.
13727         * lib/rpmatch.c (try): Fix memory leak.
13728         * lib/copy-file.c: Include "ignore-value.h".
13729         (qcopy_file_preserving): Ignore chown value.
13730         * modules/copy-file (Depends-on): Add ignore-value.
13732 2013-01-27  Jim Meyering  <jim@meyering.net>
13734         prefix-gnulib-mk: give better diagnostics
13735         * build-aux/prefix-gnulib-mk: Don't just "die".
13736         Give better diagnostics upon failure.
13738 2013-03-13  Paul Eggert  <eggert@cs.ucla.edu>
13740         putenv: port to Solaris 10
13741         * lib/putenv.c (_unsetenv, putenv): Use HAVE_DECL__PUTENV, not
13742         HAVE__PUTENV.  Solaris 10 has a _putenv that's not declared and
13743         is not what is wanted here.
13744         * m4/putenv.m4 (gl_PREREQ_PUTENV): Check for _putenv's
13745         declaration, not for its existence.
13747 2013-03-12  Paul Eggert  <eggert@cs.ucla.edu>
13749         mktime: fix configure typo
13750         * m4/mktime.m4 (gl_FUNC_MKTIME): Fix typo in previous change.
13752 2013-03-12  Eric Blake  <eblake@redhat.com>
13754         regex-tests: skip UTF-8 test on mingw
13755         * modules/regex-tests (Depends-on): Add localcharset.
13756         * tests/test-regex.c (main): Use it to skip test on mingw.
13758 2013-03-11  Eric Blake  <eblake@redhat.com>
13760         tests: make it easier to bypass alarm time in debugger
13761         * tests/test-file-has-acl.c (main): Allow gdb to override alarm.
13762         * tests/test-memmem.c (main): Likewise.
13763         * tests/test-passfd.c (main): Likewise.
13764         * tests/test-ptsname.c (main): Likewise.
13765         * tests/test-ptsname_r.c (main): Likewise.
13766         * tests/test-strcasestr.c (main): Likewise.
13767         * tests/test-strstr.c (main): Likewise.
13769         regex: port to mingw's recent addition of undeclared alarm
13770         * doc/posix-functions/alarm.texi (alarm): Document that alarm
13771         exists but still doesn't work in newer mingw.
13772         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Check for alarm declaration,
13773         not existence.  Ensure SIGALRM is not trapped.
13774         * m4/mktime.m4 (gl_FUNC_MKTIME): Likewise.
13775         * m4/regex.m4 (gl_REGEX): Likewise.
13776         * m4/remainderf.m4 (gl_FUNC_REMAINDERF_WORKS): Likewise.
13777         * tests/test-regex.c (main): Use correct probe for alarm.
13779         putenv: avoid compilation warning on mingw
13780         * lib/putenv.c (_unsetenv): Protect variable declaration.
13781         (putenv): Fix indentation.
13783 2013-03-11  Gary V. Vaughan  <gary@gnu.org>
13785         unistd: don't prevent Tru64 Unix from using gnulib strtod.
13786         * lib/unistd.in.h: be careful not to include un-needed system
13787         stdlib.h from here, because that prevents gnulib stdlib.h from
13788         defining rpl_strtod correctly.
13790 2013-03-09  Gary V. Vaughan  <gary@gnu.org>
13792         vasprintf-posix-tests: allow rounding 1.51 to 1, per the previous
13793         changesets, but for the 'precision 0' test.
13794         * tests/test-vasprintf-posix.c (test_function): Don't insist on
13795         round-to-even, since POSIX says rounding is implementation-defined
13796         and OS X 10.8.2 rounds 1.51 to 1 here.
13798         vasprintf-posix-tests: allow rounding 1.5 to 1, per the previous
13799         changeset.
13800         * tests/test-vasprintf-posix.c (test_function): Don't insist on
13801         round-to-even, since POSIX says rounding is implementation-defined
13802         and OS X 10.8.2 rounds 1.5 to 1 here.
13804 2013-03-08  Paul Eggert  <eggert@cs.ucla.edu>
13806         vasnprintf-posix-tests: allow rounding 1.5 to 1
13807         * tests/test-vasnprintf-posix.c (test_function): Don't insist on
13808         round-to-even, since POSIX says rounding is implementation-defined
13809         and OS X 10.8.2 rounds 1.5 to 1 here.  Reported by Gary V. Vaughan in
13810         <http://lists.gnu.org/archive/html/bug-gnulib/2013-03/msg00019.html>.
13812         bootstrap: port to FreeBSD
13813         * build-aux/bootstrap (bootstrap_sync): Port sh -c usage to shells
13814         that treat '--' differently.  Reported by Mats Erik Andersson in
13815         <http://lists.gnu.org/archive/html/bug-gnulib/2013-03/msg00012.html>.
13817 2013-03-08  Gary V. Vaughan  <gary@gnu.org>
13819         regex: rename remaining __attribute calls to __attribute__.
13820         2012-02-25 changed definition of __attribute, but left some uses
13821         unchanged, preventing compilation of regex module on most non-gcc
13822         environments.
13823         * lib/regcomp.c (re_set_fastmap, seek_collating_symbol_entry)
13824         (lookup_collation_sequence_value, build_range_exp)
13825         (build_collating_symbol): Set attributes with newly renamed
13826         __attribute__ decorator.
13827         * lib/regex_internal.c (re_string_peek_byte_case)
13828         (re_node_set_compare, re_node_set_contains): Likewise.
13829         * lib/regexec.c (acquire_init_state_context): Likewise.
13831 2013-03-06  Bruno Haible  <bruno@clisp.org>
13833         execute: Revert last change, but use a different condition.
13834         * lib/execute.c (nonintr_close, nonintr_open): Reintroduce, but only
13835         on Windows.
13837 2013-03-05  Eric Blake  <eblake@redhat.com>
13839         execute: drop dead code
13840         * lib/execute.c (nonintr_close, nonintr_open): Delete.
13842 2013-03-04  Paul Eggert  <eggert@cs.ucla.edu>
13844         non-recursive-gnulib-prefix-hack: port coreutils 8.21 to HP NonStop
13845         * m4/non-recursive-gnulib-prefix-hack.m4
13846         (gl_NON_RECURSIVE_GNULIB_PREFIX_HACK): Don't mess with ALLOCA.
13847         Problem reported for HP NonStop + coreutils 8.21 by Joachim Schmitz in
13848         <http://bugs.gnu.org/10305#237>.
13850 2013-03-04  Eric Blake  <eblake@redhat.com>
13852         test-getsockopt: avoid compiler warning
13853         * tests/test-getsockopt.c (includes): Ensure close is declared.
13855 2013-03-02  Bruno Haible  <bruno@clisp.org>
13857         sys_types: Avoid autoconf warning about gl_SYS_TYPES_H.
13858         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Define through AC_DEFUN_ONCE.
13860 2013-03-02  Bruno Haible  <bruno@clisp.org>
13862         gettext: Update to version 0.18.2.
13863         * m4/intl.m4, m4/po.m4: Update from gettext-0.18.2. In particular:
13864         2012-12-07  Stefano Lattarini  <stefano.lattarini@gmailcom>
13865                 * intl.m4, po.m4: Bump requirement in AC_PREREQ to 2.60.
13867 2013-02-25  Paul Eggert  <eggert@cs.ucla.edu>
13869         regex: merge patches from libc
13871         2013-02-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
13872         * lib/regex_internal.h (__attribute__): Rename from __attribute.
13873         All uses changed.
13874         (bitset_not, bitset_merge, bitset_mask, re_string_char_size_at)
13875         (re_string_wchar_at, re_string_elem_size_at):
13876         Mark function as possibly unused.
13878         2013-02-12  Andreas Schwab  <schwab@suse.de>  [BZ #11561]
13879         * lib/regcomp.c (parse_bracket_exp) [_LIBC]: When looking up collating
13880         elements compare against the byte sequence of it, not its name.
13882 2013-02-21  Paul Eggert  <eggert@cs.ucla.edu>
13884         putenv: port better to native Windows
13885         * lib/putenv.c [(_WIN32 || __WIN32__) && ! __CYGWIN__]:
13886         Define WIN32_LEAN_AND_MEAN and include <windows.h>.
13887         (_unsetenv): Use _putenv if available.
13888         (putenv): Temporarily set NAME=' ' rather than NAME='x' as that's
13889         a bit less likely to cause damage.
13890         (putenv) [(_WIN32 || __WIN32__) && ! __CYGWIN__]:
13891         Fix the wrong value with SetEnvironmentVariable.
13892         (putenv) [!HAVE__PUTENV]: Simplify and match the HAVE__PUTENV
13893         code better.
13895 2013-02-20  Paul Eggert  <eggert@cs.ucla.edu>
13897         regex: ignore old-style-definition warnings
13898         * lib/regex.c: Add pragma to ignore these warnings.
13899         Problem reported for GNU tar by Pavel Raiskup.
13901 2013-02-19  Paul Eggert  <eggert@cs.ucla.edu>
13903         getcwd: support coreutils better
13904         Like strtod, getcwd incorrectly referred to HAVE_RAW_DECL_GETCWD,
13905         but this might not be correct in coreutils, which disables
13906         the raw decl checks.  Problem reported by Nagendra in
13907         <http://bugs.gnu.org/10305#192>.
13908         * lib/getcwd.c (__getcwd): Do not depend on HAVE_RAW_DECL_GETCWD.
13909         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
13910         Test the getcwd function, not any macro, since getcwd.c wants the
13911         function.
13912         * m4/getcwd.m4 (gl_FUNC_GETCWD):
13913         Don't define HAVE_MINIMALLY_WORKING_GETCWD if the code doesn't
13914         compile, as might happen if there's a macro but no function.
13916         strtod: support coreutils better
13917         * lib/strtod.c (underlying_strtod): Just invoke the underlying strtod.
13918         HAVE_RAW_DECL_STRTOD might not be correct in coreutils, which
13919         disables the raw decl checks.  This assumes there is an underlying
13920         strtod, but that's a safe assumption these days.
13921         (HAVE_RAW_DECL_STRTOD): Remove; no longer used.
13923         mountlist: port to HP NonStop
13924         Reported by Joachim Schmitz in
13925         <http://lists.gnu.org/archive/html/bug-gnulib/2013-02/msg00084.html>.
13926         * lib/mountlist.c (hasmntopt) [!HAVE_HASMNTOPT]: New function.
13927         (MNT_IGNORE) [MNTOPT_IGNORE]: Use it.
13929 2013-02-18  Paul Eggert  <eggert@cs.ucla.edu>
13931         extern-inline: avoid compilation error with HP-UX cc
13932         Reported by Richard Lloyd in
13933         <http://lists.gnu.org/archive/html/bug-texinfo/2013-02/msg00030.html>.
13934         * m4/extern-inline.m4 (_GL_INLINE, _GL_EXTERN_INLINE):
13935         Suppress extern inline with HP-UX cc.  This should be safe,
13936         though it may hurt performance.  Perhaps someone with some HP-UX
13937         experience can come up with a higher-performance fix.
13939 2013-02-14  Paul Eggert  <eggert@cs.ucla.edu>
13941         putenv: fix heap corruption with mixed putenv/_putenv
13942         Problem reported by Michael Goffioul in
13943         <http://lists.gnu.org/archive/html/bug-gnulib/2013-02/msg00061.html>.
13944         * lib/putenv.c (putenv) [HAVE__PUTENV]:
13945         Rely on _putenv to allocate the new environment.
13946         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
13947         * modules/putenv (configure.ac): Use it.
13949 2013-02-11  Paul Eggert  <eggert@cs.ucla.edu>
13951         unsetenv etc.: port to Solaris 11 + GNU Emacs
13952         * lib/canonicalize-lgpl.c, lib/getaddrinfo.c, lib/getdelim.c:
13953         * lib/glob.c, lib/random_r.c, lib/setenv.c, lib/tsearch.c:
13954         * lib/unsetenv.c (_GL_ARG_NONNULL): Define before including <config.h>.
13955         GNU Emacs's <config.h> includes <stdlib.h> (which is not a great
13956         idea but is too painful to fix right now), and without this gnulib
13957         change <stdlib.h> was defining _GL_ARG_NONNULL incorrectly when
13958         compiling unsetenv.c on Solaris 11.  Fix the problem for
13959         unsetenv.c, and fix other similar occurrences.
13961 2013-02-09  Paul Eggert  <eggert@cs.ucla.edu>
13963         secure_getenv: fix C++ declaration typo
13964         * lib/stdlib.in.h (secure_getenv): Fix typo with return type
13965         in _GL_CXXALIAS_SYS macro.  Reported by John W. Eaton in
13966         <http://lists.gnu.org/archive/html/bug-gnulib/2013-02/msg00057.html>.
13968 2013-02-08  Paul Eggert  <eggert@cs.ucla.edu>
13970         careadlinkat: stop exporting careadlinkatcwd
13971         Only Emacs used it directly, and Emacs no longer needs it.
13972         * NEWS: Document this simplification.
13973         * lib/areadlink.c (careadlinkatcwd): Move here from careadlinkat.c,
13974         and make it static.  Include <stdlib.h>, for abort, and unistd.h,
13975         for readlink.
13976         * lib/careadlinkat.c (careadlinkatcwd): Move to areadlink.c.
13977         Don't include stdlib.h; no longer needed.
13978         * lib/careadlinkat.h (careadlinkatcwd): Remove decl.
13979         * lib/relocwrapper.c: Adjust comment to match new dependencies.
13980         * modules/areadlink (Depends-on): Add readlink.
13981         (Maintainer): Add self.
13982         * modules/careadlinkat (Depends-on): Remove readlink.
13984         extensions: port better to HP-UX
13985         This is merged from git Autoconf.
13986         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS):
13987         On hosts that need _XOPEN_SOURCE, define it when configuring, too,
13988         so that it's compatible with the value used when compiling.
13990         openpty: fix bug where HAVE_OPENPTY is mistakenly 1
13991         Problem reported by Mats Erik Andersson in
13992         <http://lists.gnu.org/archive/html/bug-gnulib/2013-02/msg00051.html>.
13993         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when the
13994         openpty function exists, not merely when we intend to replace it.
13995         This corrects the 2013-01-31 patch, which mistakenly defined
13996         HAVE_OPENPTY even on hosts that lacked it.
13998 2013-02-07  Paul Eggert  <eggert@cs.ucla.edu>
14000         secure_getenv: fix include typo
14001         * lib/secure_getenv.c: Include config.h.  Somehow I forgot!
14003         secure_getenv: port better to FreeBSD and Solaris
14004         * lib/secure_getenv.c [!HAVE___SECURE_GETENV]:
14005         Include unistd.h if HAVE_ISSETUGID, otherwise define a dummy issetugid.
14006         (secure_getenv) [!HAVE___SECURE_GETENV]: Use getenv if not issetugid.
14007         This works better on BSDish platforms.
14008         * m4/secure_getenv.m4 (gl_PREREQ_SECURE_GETENV):
14009         Test for issetugid if __secure_getenv is missing.
14011 2013-02-06  Paul Eggert  <eggert@cs.ucla.edu>
14013         extensions: port better to MINIX 3, HP-UX, autoheader 2.62
14014         Some of these changes are merged in from git Autoconf.
14015         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS):
14016         When deciding whether to define _XOPEN_SOURCE, inspect the
14017         preprocessor macro __hpux instead of the more-heavyweight
14018         operation of requiring AC_CANONICAL_HOST.  Define _NETBSD_HOST on
14019         MINIX, for MINIX 3.  Use USE_SYSTEM_EXTENSIONS, not __EXTENSIONS__,
14020         as the key for __EXTENSIONS__.
14022         unistd: avoid namespace pollution on non-glibc systems
14023         * lib/unistd.in.h: #define __need_getopt before including <getopt.h>.
14024         This avoids namespace pollution on non-glibc systems, by causing
14025         gnulib unistd.h to behave more like glibc unistd.h.  I also hope
14026         that this fixes a bug on FreeBSD, reported by Mats Erik Andersson in
14027         <http://lists.gnu.org/archive/html/bug-gnulib/2013-02/msg00027.html>.
14029 2013-02-04  Paul Eggert  <eggert@cs.ucla.edu>
14031         tmpdir: use secure_getenv
14032         * lib/tmpdir.c (__secure_getenv) [!LIBC]:
14033         Define to secure_getenv, not getenv.
14034         * m4/tmpdir.m4 (gt_TMPDIR): Don't check for __secure_getenv,
14035         as that's now secure_getenv's job.
14036         * modules/tmpdir (Depends-on): Add secure_getenv.
14038         tempname: use secure_getenv
14039         * lib/tempname.c (__secure_getenv) [!_LIBC]:
14040         Define to secure_getenv, not getenv.
14041         * modules/tempname (Depends-on):
14042         Add secure_getenv.
14044         secure_getenv: new module
14045         * MODULES.html.sh (Extra functions based on ANSI C 89):
14046         Add secure_getenv.
14047         * doc/glibc-functions/secure_getenv.texi: New file.
14048         * doc/gnulib.texi: Include it.
14049         * lib/secure_getenv.c, m4/secure_getenv.m4, modules/secure_getenv:
14050         New files.
14051         * lib/stdlib.in.h (secure_getenv): New decl.
14052         * m4/stdlib_h.m4 (gl_STDLIB_H, gl_STDLIB_H_DEFAULTS):
14053         * modules/stdlib (stdlib.h):
14054         Add secure_getenv checks.
14056 2013-02-03  Paul Eggert  <eggert@cs.ucla.edu>
14058         getcwd: break fdopendir + save_cwd recursive loop (Bug#13516)
14059         Reported for OS X 10.8.2 by Assaf Gordon in
14060         <http://bugs.gnu.org/13516>.
14061         * lib/getcwd.c (HAVE_OPENAT_SUPPORT): Do not define if
14062         !HAVE_OPENAT && !HAVE_FDOPENDIR.
14063         * m4/getcwd-abort-bug.m4: Reformat to match test-getcwd.c
14064         so that they can be kept in sync more easily.  Avoid PATH_MAX
14065         test on the Hurd.  Sync from test-getcwd.c for errno tests after
14066         mkdir or chdir failure.
14067         * tests/test-getcwd.c (HAVE_OPENAT_SUPPORT): New macro, from
14068         lib/getcwd.c.
14069         (test_abort_bug): Do not test for the deep directory bug unless we
14070         have openat support.  Avoid PATH_MAX test on the Hurd.
14072         regex-tests, regex: fix bug: memset undeclared
14073         * tests/test-regex.c: Don't include regex.h twice.  Include
14074         string.h, to declare memset.  Christensen's report also mentioned
14075         this issue.
14076         * m4/regex.m4 (gl_REGEX): Keep test program more in sync with
14077         test-regex.c, to avoid future problems like this.  Remove
14078         AC_INCLUDES_DEFAULT.  Include <string.h>.  Don't include <regex.h>
14079         twice.
14081         regex-tests: fix link errors on older Solaris
14082         These need to link with @LIBINTL@ to get libintl_gettext.
14083         Problem reported by Tom G. Christensen in
14084         <http://lists.gnu.org/archive/html/bug-gnulib/2013-02/msg00003.html>.
14085         * modules/regex-tests (test_regex_LDADD): New macro.
14087 2013-01-31  Paul Eggert  <eggert@cs.ucla.edu>
14089         regex-tests: new module
14090         * modules/regex-tests, tests/test-regex.c: New files.
14092         regex: fix off-by-one error in configure test
14093         * m4/regex.m4 (gl_REGEX): Test should return 21, not 20.
14095 2013-01-31  Eric Blake  <eblake@redhat.com>
14097         regex: avoid infinite configure test
14098         * m4/regex.m4 (gl_REGEX): Add an alarm escape hatch.
14100 2013-01-31  Reuben Thomas  <rrt@sc3d.org>
14102         openpty: fix bug where HAVE_OPENPTY wasn't defined
14103         See the thread starting at:
14104         http://lists.gnu.org/archive/html/bug-gnulib/2013-01/msg00185.html
14105         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when the
14106         openpty function exists, not merely when we intend to replace it.
14108 2013-01-30  Paul Eggert  <eggert@cs.ucla.edu>
14110         sys_time: port to Solaris 2.6
14111         There is a circularity problem on Solaris 2.6, where <time.h> includes
14112         <sys/time.h> for struct timespec.  The include nesting is gnulib
14113         <time.h>, system <time.h>, gnulib <sys/time.h>, system
14114         <sys/time.h>, gnulib <sys/types.h>, system <sys/types.h>, gnulib
14115         <sys/select.h>, gnulib <signal.h>, system <sys/signal.h>, system
14116         <sys/siginfo.h>; the last, innermost file needs struct
14117         timestruc_t, which is defined in <sys/time.h>, which has not been
14118         fully parsed.  Problem reported by Tom G. Christensen in
14119         <http://lists.gnu.org/archive/html/bug-gnulib/2013-01/msg00113.html>.
14120         * lib/sys_select.in.h: Treat Solaris 2.6's problem with
14121         <sys/time.h> and <sys/types.h> like OSF/1's similar problem.
14122         * lib/sys_time.in.h: Redo to resemble sys_select.in.h, which
14123         uses split double-inclusion guards.
14125 2013-01-29  Paul Eggert  <eggert@cs.ucla.edu>
14127         regex: test for buffer overrun
14128         * m4/regex.m4 (gl_REGEX): Add test case, by Andreas Schwab,
14129         for the just-fixed regex bug.
14131 2013-01-29  Andreas Schwab  <schwab@suse.de>
14133         regex: fix buffer overrun in regexp matcher [BZ #15078]
14134         * lib/regexec.c (extend_buffers): Add parameter min_len.
14135         (check_matching): Pass minimum needed length.
14136         (clean_state_log_if_needed): Likewise.
14137         (get_subexp): Likewise.
14139 2013-01-28  Pádraig Brady  <P@draigBrady.com>
14141         mountlist: don't consider "devtmpfs" as dummy
14142         * lib/mountlist.c (ME_DUMMY_0): Remove "devtmpfs"
14143         as there is storage associcated with it.
14145 2013-01-27  Paul Eggert  <eggert@cs.ucla.edu>
14147         futimens-tests, utimens-tests: Depend on gettext.
14148         This works around a problem introduced in my 2013-01-12 patch,
14149         which added @LIBINTL@ to these modules.
14150         * modules/futimens-tests (Depends-on):
14151         * modules/utimens-tests (Depends-on): Add gettext.
14153 2013-01-26  Eric Blake  <eblake@redhat.com>
14155         test-getpeername: fix typo
14156         * tests/test-getpeername.c: Fix typo introduced in fd cleanup.
14158 2013-01-20  Bernhard Voelker  <mail@bernhard-voelker.de>
14160         bootstrap: remove the need for a sorted .gitignore file
14161         * build-aux/bootstrap (insert_sorted_if_absent): Adjust and
14162         rename to insert_if_absent(), so that we don't need or generate
14163         a sorted .gitignore file.  We do require a .gitignore with no
14164         existing duplicate entries and enforce that.
14165         (sort_patterns): Remove this function as we now use the simpler
14166         technigue of inserting blacklist entries at the top of the file,
14167         assuming gnulib won't be inserting !whitelist entries.
14169 2013-01-23  Paul Eggert  <eggert@cs.ucla.edu>
14171         readlinkat: don't depend on gl_FUNC_OPENAT
14172         * m4/readlinkat.m4 (gl_FUNC_READLINKAT): Don't require gl_FUNC_OPENAT.
14173         Perhaps a similar change needs to be made for linkat.m4, mkfifoat.m4,
14174         renameat.m4, symlinkat.m4; but one thing at a time.
14176         statat: new module, split out from fstatat
14177         GNU Emacs needs the POSIX-specified fstatat, but not the
14178         gnulib-specified statat and lstat.  Split the latter two into a
14179         new module 'statat'.
14180         * lib/openat.h: Depend on GNULIB_STATAT, not GNULIB_FSTATAT.
14181         * lib/openat.h, lib/statat.c (STATAT_INLINE):
14182         Rename from FSTATAT_INLINE. All uses changed.
14183         * modules/fstatat (Files): Remove lib/statat.c.
14184         (gl_MODULE_INDICATOR([fstatat])): Remove.
14185         (lib_SOURCES): Remove.
14186         (Maintainer): Add self.
14187         * modules/statat, modules/statat-tests, tests/test-statat.c: New files.
14188         * tests/test-fstatat.c (BASE): Don't define if already defined.
14189         (do_stat, do_lstat) [!TEST_STATAT]: Test fstatat instead.
14191 2013-01-22  Paul Eggert  <eggert@cs.ucla.edu>
14193         tests: don't assume fd 99 is closed
14194         * tests/test-accept.c, tests/test-accept4.c, tests/test-bind.c:
14195         * tests/test-close.c, tests/test-connect.c, tests/test-dprintf.c:
14196         * tests/test-dup.c, tests/test-dup2.c, tests/test-faccessat.c:
14197         * tests/test-fchdir.c, tests/test-fchmod.c, tests/test-fchmodat.c:
14198         * tests/test-fchown.c, tests/test-fchownat.c, tests/test-fclose.c:
14199         * tests/test-fdatasync.c, tests/test-fdopen.c, tests/test-fdopendir.c:
14200         * tests/test-fflush.c, tests/test-fgetc.c, tests/test-fputc.c:
14201         * tests/test-fread.c, tests/test-freopen.c, tests/test-fseeko4.c:
14202         * tests/test-fstat.c, tests/test-fstatat.c, tests/test-fsync.c:
14203         * tests/test-ftello4.c, tests/test-ftruncate.c, tests/test-futimens.h:
14204         * tests/test-fwrite.c, tests/test-getpeername.c:
14205         * tests/test-getsockname.c, tests/test-getsockopt.c:
14206         * tests/test-grantpt.c, tests/test-ioctl.c, tests/test-isatty.c:
14207         * tests/test-linkat.c, tests/test-listen.c, tests/test-lseek.c:
14208         * tests/test-mkdirat.c, tests/test-mkfifoat.c, tests/test-openat.c:
14209         * tests/test-pread.c, tests/test-pwrite.c, tests/test-read.c:
14210         * tests/test-readlinkat.c, tests/test-recv.c, tests/test-recvfrom.c:
14211         * tests/test-renameat.c, tests/test-select.h, tests/test-send.c:
14212         * tests/test-sendto.c, tests/test-setsockopt.c, tests/test-shutdown.c:
14213         * tests/test-symlinkat.c, tests/test-ttyname_r.c:
14214         * tests/test-unlinkat.c, tests/test-unlockpt.c:
14215         * tests/test-utimensat.c, tests/test-vdprintf.c, tests/test-write.c:
14216         Close file descriptor 99, instead of assuming it's already closed.
14218 2013-01-21  Paul Eggert  <eggert@cs.ucla.edu>
14220         stpncpy: port to OS X 10.8
14221         * lib/stpncpy.c (__stpncpy): Parenthesize name when defining function.
14222         Problem reported by Assaf Gordon in <http://bugs.gnu.org/13495>.
14224 2013-01-16  Paul Eggert  <eggert@cs.ucla.edu>
14226         unistd: port to recent mingw
14227         * lib/unistd.in.h: Remove special invocation convention for mingw,
14228         which breaks for the latest mingw version.  See John W. Eaton in
14229         <http://lists.gnu.org/archive/html/bug-gnulib/2013-01/msg00100.html>.
14231         largefile: port better to Mac OS X 10.5
14232         This patch is backported from Autoconf git.
14233         * m4/largefile.m4 (AC_SYS_LARGEFILE): Use AC_DEFINE, not
14234         AH_VERBATIM, to define _DARWIN_USE_64_BIT_INODE, to avoid problems
14235         with ino_t size being different for configuration time versus
14236         build/run time.  Problem reported by PHO in
14237         <http://lists.gnu.org/archive/html/bug-autoconf/2013-01/msg00040.html>.
14239 2013-01-15  Paul Eggert  <eggert@cs.ucla.edu>
14241         doc: clarify -Werror
14242         * doc/warnings.texi (warnings): -Werror is not always a bad idea;
14243         clarify that it's intended for developers, not for ordinary builds,
14244         and mention --enable-gcc-warnings as one possible use.
14246 2013-01-15  Andoni Morales Alastruey  <ylatuya@gmail.com>  (tiny change)
14248         stdint: fix build with Android's Bionic fox x86
14249         * lib/stdint.in.h: fix check to test if included-fixed/sys/types.h
14250         was already included as _SSIZE_T_DEFINED_ might also be defined
14251         in include/machine/_types.h, which is included by stdio.h
14253 2013-01-13  Paul Eggert  <eggert@cs.ucla.edu>
14255         net_if-tests: port to Solaris 7 + GCC 3.4.6
14256         Problem reported by Tom G. Christensen in
14257         <http://lists.gnu.org/archive/html/bug-gnulib/2013-01/msg00091.html>.
14258         * tests/test-net_if.c (ni): Move to next the code that uses it,
14259         so that it's declared only if needed.
14261 2013-01-12  Paul Eggert  <eggert@cs.ucla.edu>
14263         net_if-tests: port to older Solaris
14264         Problem reported by Tom G. Christensen in
14265         <http://lists.gnu.org/archive/html/bug-gnulib/2013-01/msg00086.html>.
14266         * modules/net_if-tests (NET_IF_LIB): New substitution.
14267         (test_net_if_LDADD): New makefile macro, which uses NET_IF_LIB.
14268         (HAVE_IF_NAMEINDEX): New C macro.
14269         * tests/test-net_if.c: Bypass most of the test if !HAVE_IF_NAMEINDEX.
14271         system-quote-tests: port to older Solaris
14272         Problem reported by Tom G. Christensen in
14273         <http://lists.gnu.org/archive/html/bug-gnulib/2013-01/msg00086.html>.
14274         * tests/test-system-quote-child.c (fopen, fread): Undef.
14276         c-xvasprintf etc.: fix link errors on older Solaris
14277         These need to link with @LIBINTL@ to get libintl_gettext.
14278         Problem reported by Tom G. Christensen in
14279         <http://lists.gnu.org/archive/html/bug-gnulib/2013-01/msg00086.html>.
14280         * modules/c-xvasprintf-tests (test_c_xvasprintf_LDADD):
14281         * modules/readtokens-tests (test_readtokens_LDADD): New macros.
14282         * modules/futimens-tests (test_futimens_LDADD):
14283         * modules/utimens-tests (test_utimens_LDADD): Add @LIBINTL@.
14285 2013-01-10  Paul Eggert  <eggert@cs.ucla.edu>
14287         locale: port to Solaris 2.6 and 7 + GNU gettext
14288         * lib/locale.in.h: Just include_next <locale.h> when
14289         being invoked recursively.  This prevents problems on Solaris 2.6 and 7
14290         when combining the localename module with GNU gettext 0.18.2.
14291         Problem reported by Tom G. Christensen in
14292         <http://lists.gnu.org/archive/html/bug-gnulib/2013-01/msg00084.html>.
14294 2013-01-09  Paul Eggert  <eggert@cs.ucla.edu>
14296         stdlib: port to Solaris 2.6
14297         Also, the code worked on Solaris 7 through 9 only by accident.
14298         Problem reported by Tom G. Christensen in
14299         <http://lists.gnu.org/archive/html/bug-gnulib/2013-01/msg00059.html>.
14300         * lib/stdlib.in.h: If __need_system_stdlib_h is defined,
14301         simply include the system stdlib.h.
14302         * lib/getopt.in.h (__need_system_stdlib_h):
14303         * lib/pthread.in.h (__need_system_stdlib_h):
14304         * lib/unistd.in.h (__need_system_stdlib_h) [!__GLIBC__]:
14305         Define when including <stdlib.h>, to avoid problems at least for
14306         the pthread case on Solaris 2.6 and 7.  These .h files can get by
14307         with the system stdlib.h.
14309 2013-01-06  Paul Eggert  <eggert@cs.ucla.edu>
14311         doc: update main copyright year
14312         * doc/gnulib.texi: Update copyright date.
14314         doc: improve ISO 8601 discussion
14315         * doc/parse-datetime.texi (Combined date and time of day items):
14316         Specify more carefully what formats are supported and what is
14317         done with excess precision.
14319 2013-01-05  Paul Eggert  <eggert@cs.ucla.edu>
14321         doc: avoid small caps
14322         * doc/parse-datetime.texi, doc/regex.texi: Don't use small caps;
14323         they're more trouble than they're worth.  Suggested by Karl Berry
14324         in <http://bugs.gnu.org/13360>.
14326         regex: conform to strict C
14327         * lib/regcomp.c (parse_bracket_exp): Add cast to conform to strict C.
14328         From Aharon Robbins.
14330         gnulib-tool: fix incompatibility with autopoint 0.18.2
14331         * gnulib-tool: Don't indent AM_GNU_GETTEXT_VERSION line.
14332         Problem reported by Tom G. Christensen in
14333         <http://lists.gnu.org/archive/html/bug-gnulib/2013-01/msg00053.html>.
14335 2013-01-04  Paul Eggert  <eggert@cs.ucla.edu>
14337         fprintftime: bring back and reword fwrite comment
14338         * lib/strftime.c (cpy) [FPRINTFTIME]: Re-add reworded comment.
14340         stdio: remove now-unnecessary stdio.c
14341         Since stdio.in.h no longer uses inline functions, we no longer
14342         need to compile the extern versions.
14343         * lib/stdio.c: Remove.
14344         * modules/stdio (Files): Remove lib/stdio.c.
14345         (lib_SOURCES): Remove.
14347         unicodeio: depend on stdio, not ignore-value
14348         * lib/unicodeio.c: Do not include ignore-value.h.
14349         (fwrite_success_callback): Use plain fwrite, not ignore_value + fwrite.
14350         * modules/unicodeio (Depends-on): Depend on stdio, not ignore-value.
14352         fprintftime: depend on stdio, not ignore-value
14353         * lib/strftime.c [FPRINTFTIME]: Do not include ignore-value.h.
14354         (cpy) [FPRINTFTIME]: Use plain fwrite, not ignore_value of fwrite,
14355         since the stdio module arranges to silence that warning now.
14356         * modules/fprintftime (Depends-on): Depend on stdio, not ignore-value.
14358 2012-10-04  Simon Josefsson  <simon@josefsson.org>
14360         stdint-tests: Fix expanded-before-required-warning.
14361         * modules/stdint-tests (Depends-on): Use AC_REQUIRE.
14363 2013-01-03  Paul Eggert  <eggert@cs.ucla.edu>
14365         fwrite: silence __wur only for older glibc versions
14366         * lib/stdio.in.h (fwrite): Limit workaround to glibc 2.4 through 2.15.
14367         This will help us remove this workaround some time in the far future.
14369 2013-01-03  Eric Blake  <eblake@redhat.com>
14371         fwrite: silence __wur without using inline
14372         * lib/stdio.in.h (fwrite): Limit warn_unused_result workaround to
14373         just gcc, and in a way that avoids inline issues.
14374         * modules/stdio (Depends-on): Drop extern-inline.
14376 2013-01-03  Jim Meyering  <jim@meyering.net>
14378         update-copyright: avoid copyright notice date corruption
14379         Given a sequence of copyright year numbers in which the final
14380         one was a two-digit number that happened to be a substring of
14381         a preceding four-digit year number, we would mistakenly update
14382         the substring (from two- to four-digit) rather than the two-digit
14383         number at the end, which, combined with the addition of the current
14384         4-digit year number would yield two 5-digit year numbers, e.g.,
14385         here, it would convert the first "99" to "1999, 2013" rather than
14386         the final one:
14387           1991, 99
14388           11999, 20131, 1999
14389         * build-aux/update-copyright: Tighten a regexp.
14390         * tests/test-update-copyright.sh: Add a test case to trigger the bug.
14391         Reported by Joseph Myers in
14392         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/32281
14394 2013-01-01  Paul Eggert  <eggert@cs.ucla.edu>
14396         regex: omit needless signed-pointer casts
14397         * lib/regcomp.c (build_charclass, build_charclass_op):
14398         Use char *, not unsigned char *, for class name and extra.
14399         The char values are always nonnegative so there's no need to
14400         insist on unsigned char * here, and using char * removes the need
14401         for casts.  Reported by Aharon Robbins in
14402         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
14404         regex: support Gawk, which never uses alloca
14405         * lib/regex_internal.h [!_LIBC && !HAVE_ALLOCA]:
14406         Do not include in this case.  Gawk doesn't supply a substitute
14407         alloca.h and doesn't need one.
14409         regex: port __libc_lock_define usage to C89
14410         * lib/regex_internal.h (__libc_lock_define) [!_LIBC]: Remove.
14411         (struct re_dfa_t): Use #ifdef instead.  '__libc_lock_define (, lock)'
14412         does not conform to C89, as it has an empty macro argument.
14413         Reported by Aharon Robbins in
14414         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
14416 2013-01-01  Eric Blake  <eblake@redhat.com>
14418         maint: update all copyright year number ranges
14419         Run "make update-copyright".
14421         version-etc: bump copyright year reported in --version
14422         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2013.
14424 2012-12-31  Eric Blake  <eblake@redhat.com>
14426         sigprocmask-tests: skip test if pid is unexpectedly large
14427         * tests/test-sigprocmask.c (main): Add range check.
14429         git-version-gen: avoid test -z portability glitch
14430         * build-aux/git-version-gen: Prefer portable test spelling, since
14431         git-version-gen is run on more than just developer machines.
14433 2012-12-31  Peter Rosin  <peda@lysator.liu.se>  (tiny change)
14435         git-version-gen: add --fallback option to use if git is not present
14436         * build-aux/git-version-gen: Add support for the new option --fallback,
14437         which comes into play when there is no $tarball_version_file and
14438         git is not working.
14439         (scriptversion): Update.
14441         maint.mk: handle missing git with more grace
14442         * top/maint.mk (no-submodule-changes, public-submodule-commit):
14443         Quietly proceed if git is not present.
14445 2012-12-31  Eric Blake  <eblake@redhat.com>
14447         dup2: work around cygwin bug
14448         * m4/dup2.m4 (gl_FUNC_DUP2): Flush out cygwin core dump.
14449         * lib/dup2.c (rpl_dup2): Work around it.
14450         * doc/posix-functions/dup2.texi (dup2): Document it.
14452 2012-12-30  Paul Eggert  <eggert@cs.ucla.edu>
14454         regex: remove unnecessary dependency on localcharset.h
14455         * lib/regex_internal.h [!_LIBC]: Don't include localcharset.h;
14456         hasn't been needed for years.
14457         * modules/regex (Depends-on): Remove localcharset.
14459         regex: revert single-byte change
14460         * lib/regexec.c (check_node_accept_bytes): Revert previous change
14461         to this function.  This was alredy fixed in a different way, at
14462         bdb56bacd57070eced9998569ffe3f3c37ef5964 in the glibc git; see
14463         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=510219> and
14464         <http://sourceware.org/bugzilla/show_bug.cgi?id=9697>.
14466         regex: simplify based on Gawk version
14467         * lib/regex_internal.c (re_dfa_add_node): Simplify.
14468         Reported by Aharon Robbins in
14469         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
14471 2012-12-29  Paul Eggert  <eggert@cs.ucla.edu>
14473         regex: check that pattern char is single-byte
14474         Reported by Aharon Robbins in
14475         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
14476         * lib/regexec.c (check_node_accept_bytes):
14477         Return 0 if the pattern string has a multibyte character here.
14479         regex: implement rational ranges
14480         Reported by Aharon Robbins in
14481         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
14482         * lib/regcomp.c (build_range_exp) [!_LIBC]:
14483         * lib/regexec.c (check_node_accept_bytes) [!_LIBC]:
14484         Implement rational ranges.
14486         regex: avoid redefining __wctype
14487         Reported by Aharon Robbins in
14488         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
14489         * lib/regex_internal.h (__wctype, __iswctype) [!_LIBC]:
14490         #undef before defining.
14492         regex: port to hosts where malloc (0) == NULL
14493         Reported by Aharon Robbins in
14494         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
14495         * lib/regex_internal.c (re_node_set_alloc):
14496         Don't assume that malloc (0) yields nonnull.
14497         * lib/regex_internal.h (MALLOC_0_IS_NONNULL): New macro.
14498         * m4/regex.m4 (gl_PREREQ_REGEX): Require gl_EEMALLOC.
14499         * modules/regex (Files): Add m4/eealloc.m4.
14501         regex: port to C89
14502         Reported by Aharon Robbins in
14503         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
14504         * lib/regcomp.c (init_word_char): Declaration before statement.
14506         regex: merge glibc changes
14507         Also, copy the license wording from glibc.  This simplifies
14508         merging changes.  gnulib-tool will change the wording to GPL as
14509         appropriate, when importing it to other packages.  The only
14510         glibc change made since the last merge, which needs merging, is:
14511         2012-05-24 Andreas Schwab <schwab@linux-m68k.org>
14512         * lib/regex_internal.h (gettext): Remove use of INTUSE.
14514         * users.txt: Add Emacs.
14516         doc: omit mention of version when not needed
14517         * doc/gnulib-intro.texi (Portability and Application Code):
14518         * doc/gnulib.texi (Brief Overview, Legacy Function Substitutes):
14519         Don't mention particular dates or versions when not necessary, so
14520         that the documentation won't go out of date so quickly.
14522         * doc/intprops.texi (Integer Properties): Fix Texinfo typo.
14524 2012-12-28  Akim Demaille  <akim@lrde.epita.fr>
14526         bootstrap: pass --force to autoreconf.
14527         * build-aux/bootstrap (AUTORECONFFLAGS): New.
14528         Add "--force" so that Automake's ylwrap and other such tools
14529         be updated at each bootstrap invocation.
14530         Use it.
14532 2012-12-27  Paul Eggert  <eggert@cs.ucla.edu>
14534         argp: fix port of port new 'inline' approach to Sun C 5.12 + Solaris 10
14535         The earlier patch forgot to update one of the #if conditions, causing
14536         a problem on Debian testing i386 reported by Mats Erik Andersson
14537         <http://lists.gnu.org/archive/html/bug-gnulib/2012-12/msg00124.html>.
14538         * lib/argp-fmtstream.h (__argp_fmtstream_putc, argp_fmtstream_putc)
14539         (__argp_fmtstream_puts, argp_fmtstream_puts)
14540         (__argp_fmtstream_write, argp_fmtstream_write)
14541         [!_LIBC && !__OPTIMIZE__]: Declare as ARGP_FS_EI, not as extern.
14543         * doc/gnulib-readme.texi: Minor fixups.
14544         (Portability guidelines): Modernize URLs.  Remove some repetition.
14545         (Indent with spaces not TABs): Reword to avoid too-long lines.
14546         Remove some '@ifset standalone' stuff that isn't used.
14548         * doc/gnulib-readme.texi (Portability guidelines):
14549         ctype.h, not ctime.h.
14551         Correct name of POSIX.1-2001.
14552         * doc/posix-functions/fgetc.texi (fgetc):
14553         * doc/posix-functions/fgets.texi (fgets):
14554         * doc/posix-functions/fread.texi (fread):
14555         * doc/posix-functions/fscanf.texi (fscanf):
14556         * doc/posix-functions/getc.texi (getc):
14557         * doc/posix-functions/getchar.texi (getchar):
14558         * doc/posix-functions/scanf.texi (scanf):
14559         POSIX.1-2001, not POSIX-2001.
14561         doc: move README into manual
14562         * README: Move contents to new file doc/gnulib-readme.texi.
14563         Replace with a one-line summary.
14564         * doc/gnulib.texi (Brief Overview): New section,
14565         with old intro preface.  Include gnulib-readme.texi for contents.
14566         (Philosophy): Rename from "Introduction", since this
14567         section no longer introduces the rest.  Write a new preface.
14568         * doc/gnulib-readme.texi: New file, with the old contents of
14569         README texinfo-ized.  This way, the README info appears
14570         in the online and printed manual.
14572 2012-12-25  Ben Pfaff  <blp@cs.stanford.edu>
14574         c-xvasprintf: Fix "implicit declaration of function" GCC warning.
14575         * lib/c-xvasprintf.c: Add missing #include "c-vasprintf.h", for
14576         c_vasprintf() prototype.
14578 2012-12-24  Ben Pfaff  <blp@cs.stanford.edu>
14580         c-vasprintf: Fix "empty declaration" warning reported by GCC.
14581         * lib/c-vasprintf.h: Remove stray semicolon.
14583 2012-12-23  Paul Eggert  <eggert@cs.ucla.edu>
14585         gettext: avoid obsolete macro AM_PROG_MKDIR_P
14586         It is obsolete and is planned to be removed from Automake 1.14; see
14587         <http://lists.gnu.org/archive/html/automake/2012-12/msg00029.html>.
14588         * build-aux/po/Makefile.in.in (install-data, install-data-yes)
14589         (installdirs-data, installdirs-data-yes):
14590         Use $(MKDIR_P), not $(mkdir_p).
14591         * m4/intl.m4 (AM_INTL_SUBDIR):
14592         * m4/po.m4 (AM_PO_SUBDIRS):
14593         Require AC_PROG_MKDIR_P, not AM_PROG_MKDIR_P.
14595 2012-12-22  Paul Eggert  <eggert@cs.ucla.edu>
14597         argp: port new 'inline' approach to Sun C 5.12 + Solaris 10
14598         On this platform, we are not optimizing but we are using
14599         the substitute for extern inlines, so compile as if
14600         C99-style extern inline, or a substitute, is available.
14601         * lib/argp-fmtstream.h (argp_fmtstream_set_lmargin)
14602         (__argp_fmtstream_set_lmargin, argp_fmtstream_set_rmargin)
14603         (__argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin)
14604         (__argp_fmtstream_set_wmargin, argp_fmtstream_point)
14605         (__argp_fmtstream_point) [!_LIBC && !__OPTIMIZE__]:
14606         Declare as ARGP_FS_EI, not as extern.
14607         * lib/argp.h (argp_usage, __argp_usage, _option_is_short)
14608         (__option_is_short, _option_is_end, __option_is_end)
14609         [!_LIBC && __USE_EXTERN_INLINES]:
14610         Declare as ARGP_EI, not as extern.
14612 2012-12-21  Paul Eggert  <eggert@cs.ucla.edu>
14614         AC_PROG_MKDIR_P: port workaround to pre-2.62 Autoconf
14615         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P, AC_C_RESTRICT):
14616         Use m4_ifndef([AC_AUTOCONF_VERSION], ...), not
14617         m4_if(m4_version_compare(m4_defn([AC_AUTOCONF_VERSION]),[2.62]),[-1],
14618         ...), as the latter is fatal with older Autoconfs.
14619         Problem reported and fix suggested by Eric Blake in thread starting at
14620         <http://lists.gnu.org/archive/html/bug-gnulib/2012-12/msg00097.html>.
14622 2012-12-20  Paul Eggert  <eggert@cs.ucla.edu>
14624         AC_PROG_MKDIR_P: don't workaround if not buggy
14625         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P):
14626         Define only for Autoconf versions before 2.62.
14627         (AC_C_RESTRICT): Use documented AC_AUTOCONF_VERSION, not
14628         undocumented m4_PACKAGE_VERSION, for consistency with the
14629         abovementioned change to AC_PROG_MKDIR_P.  This should suffice
14630         since we're checking for 2.62 or later, and AC_AUTOCONF_VERSION
14631         was introduced in 2.62.
14633 2012-12-15  Ben Pfaff  <blp@cs.stanford.edu>
14635         New 'c-*printf' modules for formatted output in C locale.
14637         New module 'c-vasnprintf'.
14638         * modules/c-vasnprintf: New file.
14639         * lib/c-vasnprintf.c: New file.
14640         * lib/c-vasnprintf.h: New file.
14642         New module 'c-snprintf'.
14643         * modules/c-snprintf: New file.
14644         * modules/c-snprintf-tests: New file.
14645         * lib/c-snprintf.c: New file.
14646         * lib/c-snprintf.h: New file.
14647         * tests/test-c-snprintf.c: New file.
14648         * tests/test-c-snprintf.sh: New file.
14650         New module 'c-vsnprintf'.
14651         * modules/c-vsnprintf: New file.
14652         * modules/c-vsnprintf-tests: New file.
14653         * lib/c-vsnprintf.c: New file.
14654         * lib/c-vsnprintf.h: New file.
14655         * tests/test-c-vsnprintf.c: New file.
14656         * tests/test-c-vsnprintf.sh: New file.
14658         New module 'c-vasprintf'.
14659         * modules/c-vasprintf: New file.
14660         * modules/c-vasprintf-tests: New file.
14661         * lib/c-asprintf.c: New file.
14662         * lib/c-vasprintf.c: New file.
14663         * lib/c-vasprintf.h: New file.
14664         * tests/test-c-vasprintf.c  +: New file.
14665         * tests/test-c-vasprintf.sh: New file.
14667         New module 'c-xvasprintf'.
14668         * modules/c-xvasprintf: New file.
14669         * modules/c-xvasprintf-tests: New file.
14670         * lib/c-xasprintf.c: New file.
14671         * lib/c-xvasprintf.c: New file.
14672         * lib/c-xvasprintf.h: New file.
14673         * tests/test-c-xvasprintf.c: New file.
14674         * tests/test-c-xvasprintf.sh: New file.
14676 2012-12-18  Paul Eggert  <eggert@cs.ucla.edu>
14678         argp: better 'inline'
14679         Use extern-inline module to declare extern inline functions.
14680         This avoids some bogus warning diagnostics.  Problem discovered
14681         when modifying GNU tar to use the manywarnings module.
14682         * lib/argp.h, lib/argp-xinl.c (ARGP_EI) [!_LIBC]:
14683         * lib/argp-fmtstream.h, lib/argp-fs-xinl.c (ARGP_FS_EI) [!_LIBC]:
14684         Define based on extern-inline.
14685         * modules/argp (Depends-on): Add extern-inline.
14687 2012-12-17  Paul Eggert  <eggert@cs.ucla.edu>
14689         filemode, sys_stat: Handle MPX files a la AIX.
14690         * lib/filemode.c (ftypelet): Report 'm' for MPX files.
14691         * lib/sys_stat.in.h (S_ISMPX): New macro.
14692         * tests/test-sys_stat.c: Add tests for MPX files.
14694 2012-12-16  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
14696         x-to-1: honor $PERL
14697         * build-aux/x-to-1.in: Run $HELP2MAN via $PERL so that the user gets
14698         a chance to use his preferred version of Perl.  This is typically
14699         required by Darwin users whose default /usr/bin/perl does not have all
14700         the libraries required by help2man, and who need to use their MacPorts
14701         installation of Perl instead.
14703 2012-12-16  Akim Demaille  <akim@lrde.epita.fr>
14705         gnu-web-doc-update: add all the new files, even in new directories
14706         See http://lists.gnu.org/archive/html/bug-gnulib/2012-12/msg00057.html
14707         * build-aux/gnu-web-doc-update (--dry-run, $dryrun): New.
14708         Use it.
14709         (main): Don't use cvsutils to get the list of unknown files,
14710         just add all the existing files and directories.
14712 2012-12-16  Akim Demaille  <akim@lrde.epita.fr>
14714         gnu-web-doc-update: improve --help
14715         * build-aux/gnu-web-doc-update: Move comments into --help.
14717 2012-12-07  Eric Wong  <normalperson@yhbt.net>
14719         mountlist: recognize more "dummy" file systems
14720         * lib/mountlist.c (ME_DUMMY_0):
14721         Add these dummy FS names to the list:
14722         - "debugfs" virtual filesystem for kernel debugging
14723         - "devpts" PTY slave filesystem
14724         - "devtmpfs" device filesystem on top of tmpfs/ramfs
14725         - "fusectl" control filesystem for FUSE
14726         - "mqueue" enumerates POSIX message queues
14727         - "rpc_pipefs" kernel <-> userspace bridge for NFS
14728         - "sysfs" is for exporting kernel objects
14729         - "devfs" device filesystem for Linux 2.4 and FreeBSD
14731 2012-12-11  Paul Eggert  <eggert@cs.ucla.edu>
14733         extern-inline: avoid incompatibility with Darwin Libc
14734         * m4/extern-inline.m4 (_GL_INLINE, _GL_EXTERN_INLINE): Do not use
14735         extern inline if __APPLE__.  Use _GL_UNUSED in the non-inline branch.
14736         Problem reported by Akim Demaille in
14737         <http://lists.gnu.org/archive/html/bug-gnulib/2012-12/msg00023.html>.
14739 2012-12-11  Simon Josefsson  <simon@josefsson.org>
14741         gnupload: Work with GnuPG using gpg-agent (for smartcards).
14742         * build-aux/gnupload: If GnuPG is configured to use gpg-agent,
14743         let it handle password prompting.
14745 2012-12-10  Eli Zaretskii  <eliz@gnu.org>
14747         canonicalize, canonicalize-lgpl: Microsoft Windows prefix fixes
14748         * lib/canonicalize.c (canonicalize_filename_mode):
14749         * lib/canonicalize-lgpl.c (__realpath): Recompute prefix_len after
14750         fetching the current directory.  Don't overrun the beginning of
14751         rpath if there's no slashes after the MS-Windows drive letter.
14753 2012-12-08  Stefano Lattarini  <stefano.lattarini@gmail.com>
14755         maint.mk: avoid extra forks
14756         * top/maint.mk (_cfg_mk): The GNU make manual documents that
14757         "$(wildcard FILE)" expands to empty if FILE doesn't exist.
14758         So use that instead of "$(shell test -f FILE && echo FILE)".
14760 2012-12-07  Paul Eggert  <eggert@cs.ucla.edu>
14762         vasnprintf: fix ASCII_ONLY typo
14763         * lib/unistdio/u8-vasnprintf.c (FCHAR_T_ONLY_ASCII):
14764         * lib/unistdio/u16-vasnprintf.c (FCHAR_T_ONLY_ASCII):
14765         * lib/unistdio/u32-vasnprintf.c (FCHAR_T_ONLY_ASCII):
14766         New macro, replacing ASCII_ONLY.  This fixes a typo.  See thread at
14767         <http://lists.gnu.org/archive/html/bug-gnulib/2012-12/msg00021.html>.
14769 2012-12-05  Paul Eggert  <eggert@cs.ucla.edu>
14771         list, oset, xlist, xoset: fix extern inline issue with C99
14772         This was introduced by my recent changes for 'inline'.
14773         Problem reported for gettext by Daiki Ueno in
14774         <http://lists.gnu.org/archive/html/bug-gnulib/2012-12/msg00000.html>.
14775         * lib/gl_list.h (gl_list_nx_create_empty, gl_list_create)
14776         (gl_list_nx_create, gl_list_size, gl_list_node_value)
14777         (gl_list_node_set_value, gl_list_node_nx_set_value, gl_list_next_node)
14778         (gl_list_previous_node, gl_list_get_at)
14779         (gl_list_nx_set_at, gl_list_search, gl_list_search_from)
14780         (gl_list_search_from_to, gl_list_indexof, gl_list_indexof_from)
14781         (gl_list_indexof_from_to, gl_list_nx_add_first, gl_list_nx_add_last)
14782         (gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at)
14783         (gl_list_remove_node, gl_list_remove_at, gl_list_remove, gl_list_free)
14784         (gl_list_iterator, gl_list_iterator_from_to, gl_list_iterator_next)
14785         (gl_list_iterator_free, gl_sortedlist_search)
14786         (gl_sortedlist_search_from_to, gl_sortedlist_indexof)
14787         (gl_sortedlist_indexof_from_to, gl_sortedlist_add, gl_sortedlist_nx_add)
14788         (gl_sortedlist_remove):
14789         * lib/gl_oset.h (go_oset_nx_create_empty, gl_oset_size, gl_oset_search)
14790         (gl_oset_search_atleast, gl_oset_nx_add, gl_oset_remove, gl_oset_free)
14791         (gl_oset_iterator, gl_oset_iterator_next, gl_oset_iterator_free):
14792         * lib/gl_xlist.h (gl_list_create_empty, gl_list_create)
14793         (gl_list_node_set_value, gl_list_set_at, gl_list_add_first)
14794         (gl_list_add_last, gl_list_add_before, gl_list_add_after)
14795         (gl_list_add_at, gl_sortedlist_add):
14796         * lib/gl_xoset.h (gl_oset_create_empty, gl_oset_add):
14797         Wrap these extern decls inside "#if 0", because they are implemented
14798         as inline functions, and extern inline is not what's wanted here.
14799         It would simplify these .h files to remove the extern decls entirely,
14800         although a downside would be less-clear separation between
14801         specification and implementation.
14803 2012-11-29  Paul Eggert  <eggert@cs.ucla.edu>
14805         sys_stat: no 'static inline'
14806         * lib/sys_stat.in.h (rpl_mkdir): Now static, not static inline.
14807         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Do not require AC_C_INLINE.
14809         extern-inline: no 'static inline'
14810         * m4/extern-inline.m4 (gl_EXTERN_INLINE):
14811         Do not require AC_C_INLINE.
14812         (_GL_INLINE, _GL_EXTERN_INLINE): Define as 'static', not as
14813         'static inline', for older compilers.
14815         snippet/warn-on-use: no 'static inline'
14816         * build-aux/snippet/warn-on-use.h:
14817         Remove unnecessary 'inline' in comment.
14819         rbtree-list, rbtreehash-list: no 'static inline'
14820         * lib/gl_anyrbtree_list2.h (rotate_left, rotate_right):
14821         * lib/gl_anytree_list2.h (node_at):
14822         * lib/gl_anytreehash_list1.h (hash_resize_after_add)
14823         (gl_oset_first, add_nodes_to_buckets):
14824         Now static, not static inline.
14826         regex: no 'static inline'
14827         * lib/regex_internal.c (calc_state_hash):
14828         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain)
14829         (bitset_empty, bitset_set_all, bitset_copy, bitset_not, bitset_merge)
14830         (bitset_mask, re_string_char_size_at, re_string_wchar_at):
14831         Now static, not static inline.
14832         (inline) [__GNUC__ < 3 && _LIBC]:
14833         Remove macro; no longer needed.
14835         xvasprintf: no 'static inline'
14836         * lib/xvasprintf.c (xstrcat):
14837         Now static, not static inline.
14838         * m4/xvasprintf.m4 (gl_XVASPRINTF):
14839         Do not require AC_C_INLINE.
14841         parse-datetime, parse-duration: no 'static inline'
14842         * lib/parse-datetime.y (to_uchar):
14843         * lib/parse-duration.c (str_const_to_ul, str_const_to_l)
14844         (scale_n_add):
14845         Now static, not static inline.
14846         * m4/parse-datetime.m4 (gl_PARSE_DATETIME):
14847         * modules/parse-duration (configure.ac):
14848         Do not require AC_C_INLINE.
14850         getaddrinfo: no 'static inline'
14851         * lib/getaddrinfo.c (validate_family):
14852         Now static, not static inline.
14853         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO):
14854         Do not require AC_C_INLINE.
14856         ftruncate, fts, lstat, openat, raise: no 'static inline'
14857         * lib/ftruncate.c (chsize_nothrow):
14858         * lib/fts.c (opendirat, diropen):
14859         * lib/lstat.c (orig_lstat):
14860         * lib/openat.c (orig_openat):
14861         * lib/raise.c (raise_nothrow):
14862         Now static, not static inline.
14863         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE):
14864         * m4/fts.m4 (gl_FUNC_FTS_CORE):
14865         * m4/lstat.m4 (gl_PREREQ_LSTAT):
14866         * m4/openat.m4 (gl_PREREQ_OPENAT):
14867         * m4/raise.m4 (gl_PREREQ_RAISE):
14868         Do not require AC_C_INLINE.
14870         fflush, stat: no 'static inline'
14871         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
14872         (clear_ungetc_buffer, disable_seek_optimization)
14873         (restore_seek_optimization, update_fpos_cache):
14874         * lib/stat.c (orig_stat):
14875         Now static, not static inline.
14876         * lib/fflush.c (disable_seek_optimization, restore_seek_optimization)
14877         (update_fpos_cache):
14878         Define only if ! (defined _IO_ftrylockfile || __GNU_LIBRARY__ == 1).
14879         * m4/fflush.m4 (gl_PREREQ_FFLUSH):
14880         * m4/stat.m4 (gl_PREREQ_STAT):
14881         Do not require AC_C_INLINE.
14883         error, filevercmp: no 'static inline'
14884         * lib/error.c (is_open, flush_stdout):
14885         * lib/filevercmp.c (order):
14886         Now static, not static inline.
14887         * m4/error.m4 (gl_PREREQ_ERROR):
14888         * modules/filevercmp (configure.ac):
14889         Do not require AC_C_INLINE.
14891         dup, execute, fatal-signal, etc.: no 'static inline'
14892         * lib/dup.c (dup_nothrow):
14893         * lib/execute.c (nonintr_close, nonintr_open):
14894         * lib/fatal-signal.c (uninstall_handlers, install_handlers):
14895         * lib/fopen.c (orig_fopen):
14896         * lib/freadseek.c (freadptrinc):
14897         * lib/freopen.c (orig_freopen):
14898         * lib/fstat.c (orig_fstat, fstat_nothrow):
14899         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit)
14900         (get_rusage_as_via_iterator):
14901         * lib/get-rusage-data.c (get_rusage_data_via_setrlimit):
14902         * lib/getdtablesize.c (_setmaxstdio_nothrow):
14903         * lib/isatty.c (_isatty_nothrow):
14904         * lib/open.c (orig_open):
14905         * lib/read.c (read_nothrow):
14906         * lib/sigprocmask.c (signal_nothrow):
14907         * lib/spawn-pipe.c (nonintr_close, nonintr_open):
14908         * lib/vasnprintf.c (MAX_ROOM_NEEDED):
14909         * lib/wait-process.c (unregister_slave_subprocess):
14910         * lib/write.c (write_nothrow):
14911         Now static, not static inline.
14912         * lib/spawn-pipe.c (nonintr_open): Define only if
14913         (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__.
14914         * m4/dup.m4 (gl_PREREQ_DUP):
14915         * m4/execute.m4 (gl_EXECUTE):
14916         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL):
14917         * m4/fopen.m4 (gl_PREREQ_FOPEN):
14918         * m4/freadseek.m4 (gl_FUNC_FREADSEEK):
14919         * m4/freopen.m4 (gl_PREREQ_FREOPEN):
14920         * m4/fstat.m4 (gl_PREREQ_FSTAT):
14921         * m4/getdtablesize.m4 (gl_PREREQ_GETDTABLESIZE):
14922         * m4/isatty.m4 (gl_PREREQ_ISATTY):
14923         * m4/open.m4 (gl_PREREQ_OPEN):
14924         * m4/read.m4 (gl_PREREQ_READ):
14925         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK):
14926         * m4/spawn-pipe.m4 (gl_SPAWN_PIPE):
14927         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF):
14928         * m4/wait-process.m4 (gl_WAIT_PROCESS):
14929         * m4/write.m4 (gl_PREREQ_WRITE):
14930         * modules/get-rusage-as, modules/get-rusage-data (configure.ac):
14931         Do not require AC_C_INLINE.
14933         c-strtod, memcoll, readutmp: no 'static inline'
14934         * lib/c-strtod.c (c_locale):
14935         * lib/memcoll.c (strcoll_loop):
14936         * lib/readutmp.c (desirable_utmp_entry):
14937         Now static, not static inline.
14938         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD):
14939         * m4/memcoll.m4 (gl_MEMCOLL):
14940         * m4/readutmp.m4 (gl_READUTMP):
14941         Do not require AC_C_INLINE.
14943         arctwo, md4, md5, sha1, sha256, sha512: no 'static inline'
14944         * lib/arctwo.c (to_uchar):
14945         * lib/md4.c (set_uint32):
14946         * lib/md5.c (set_uint32):
14947         * lib/sha1.c (set_uint32):
14948         * lib/sha256.c (set_uint32):
14949         * lib/sha512.c (set_uint64):
14950         Now static, not static inline.  This is a bit simpler, and doesn't
14951         affect performance with GCC and default optimization.
14952         * m4/arctwo.m4 (gl_ARCTWO):
14953         * m4/md4.m4 (gl_MD4):
14954         * m4/md5.m4 (gl_MD5):
14955         * m4/sha1.m4 (gl_SHA1):
14956         * m4/sha256.m4 (gl_SHA256):
14957         * m4/sha512.m4 (gl_SHA512):
14958         Do not require AC_C_INLINE.
14960         cond, lock, thread: better 'inline'
14961         * lib/glthread/cond.c, lib/glthread/cond.h (_GLTHREAD_COND_INLINE):
14962         * lib/glthread/thread.c, lib/glthread/thread.h (_GLTHREAD_THREAD_INLINE):
14963         New macros.  Use them instead of static inline, for header functions.
14964         * lib/glthread/cond.c (gl_waitqueue_init, gl_waitqueue_remove)
14965         (gl_waitqueue_notify_first, gl_waitqueue_notify_all):
14966         * lib/glthread/lock.c (gl_waitqueue_init)
14967         (gl_waitqueue_notify_first, gl_waitqueue_notify_all):
14968         * lib/glthread/thread.c (get_current_thread_handle):
14969         Change 'static inline' to 'inline'.
14970         * lib/glthread/cond.h, lib/glthread/thread.h:
14971         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
14972         * m4/cond.m4 (gl_COND):
14973         * m4/lock.m4 (gl_PREREQ_LOCK):
14974         * m4/thread.m4 (gl_THREAD):
14975         Do not require AC_C_INLINE.
14976         * modules/cond, modules/thread (Depends-on): Add extern-inline.
14978         chdir-long, cycle-check, savewd: better 'inline'
14979         * lib/chdir-long.c (cdb_init, cdb_fchdir, cdb_free)
14980         (find_non_slash):
14981         * lib/cycle-check.c (is_zero_or_power_of_two):
14982         * lib/savewd.c (savewd_delegating):
14983         Change 'static inline' to 'inline'.
14984         * lib/savewd.c, lib/savewd.h (SAVEWD_INLINE): New macro.
14985         Replace all remaining uses of 'static inline' with it.
14986         * lib/savewd.h:
14987         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
14988         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG):
14989         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
14990         * m4/savewd.m4 (gl_SAVEWD):
14991         Do not require AC_C_INLINE.
14992         * modules/savewd (Depends-on): Add extern-inline.
14994         base32, base64: no need for 'inline'
14995         * lib/base32.c (to_uchar, get_8, decode_8):
14996         * lib/base64.c (to_uchar, get_4, decode_4):
14997         Change 'static inline' to 'inline'.
14998         * m4/base32.m4 (gl_PREREQ_BASE32):
14999         * m4/base64.m4 (gl_PREREQ_BASE64):
15000         Do not require AC_C_INLINE.
15002         array-oset, linkedhash-list, rbtree-oset: no need for 'inline'
15003         * lib/gl_array_oset.c (gl_array_nx_add_at):
15004         (gl_array_remove_at):
15005         * lib/gl_linkedhash_list.c (hash_resize_after_add)
15006         (add_to_bucket, remove_from_bucket):
15007         * lib/gl_rbtree_oset.c (rotate_left, rotate_right):
15008         Change 'static inline' to 'static', as it's simpler to omit
15009         'inline' unless there's a significant performance advantage.
15011         list, oset, xlist, xoset, xsublist: simplify via extern inline
15012         * lib/gl_list.h, lib/gl_list.c (GL_LIST_INLINE):
15013         * lib/gl_oset.c, lib/gl_oset.h (GL_OSET_INLINE):
15014         * lib/gl_xlist.c, lib/gl_xlist.h (GL_XLIST_INLINE):
15015         * lib/gl_xoset.c, lib/gl_xoset.h (GL_XOSET_INLINE):
15016         * lib/gl_xsublist.c, lib/gl_xsublist.h (GL_XSUBLIST_INLINE):
15017         New macro.  Replace all uses of 'static inline' with it.
15018         [HAVE_INLINE]: Implement functions as *_INLINE functions,
15019         instead of as macros FOO that are defined to static inline
15020         functions FOO_inline.
15021         * lib/gl_list.c, lib/gl_oset.c, lib/gl_xlist.c, lib/gl_xoset.c:
15022         * lib/gl_xsublist.c:
15023         Reimplement from scratch, by defining the corresponding *_INLINE
15024         macro and including the corresponding .h file.  This is simpler.
15025         * modules/list, modules/oset, modules/xlist, modules/xoset:
15026         (Files): Remove m4/gl_list.m4.
15027         (configure.ac): Remove gl_LIST.
15028         * m4/gl_list.m4: Remove.
15029         * modules/list, modules/oset, modules/xlist, modules/xoset:
15030         * modules/xsublist:
15031         (Depends-on): Depend on extern-inline, not inline.
15033         xalloc: better 'inline'
15034         * lib/xmalloc.c, lib/xalloc.h (XALLOC_INLINE):
15035         New macro.  Replace all uses of 'static inline' with it.
15036         (static_inline): Remove.
15037         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
15038         Let 'extern inline' do the work automatically, instead of doing
15039         it by hand.
15040         * m4/xalloc.m4 (gl_PREREQ_XALLOC, gl_PREREQ_XMALLOC):
15041         Remove.  All uses removed.
15042         * modules/xalloc (Depends-on): Remove 'inline'.  Add 'extern-inline'.
15044         gethrxtime: better 'inline'
15045         * lib/xtime.c: New file.
15046         * lib/gethrxtime.c, lib/gethrxtime.h (GETHRXTIME_INLINE):
15047         * lib/xtime.h (XTIME_INCLUDE):
15048         New macros.  Replace all uses of 'static inline' with them.
15049         * lib/gethrxtime.c (gethrxtime): Define only if
15050         ! (HAVE_ARITHMETIC_HRTIME_T && HAVE_DECL_GETHRTIME), since
15051         this source file is now always compiled, because of the extern inline.
15052         * lib/gethrxtime.h, lib/xtime.h:
15053         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
15054         * m4/gethrxtime.m4 (gl_GETHRXTIME): Do not check for clock macros
15055         if gethrtime works, as they're not needed in that case.
15056         (gl_XTIME): Do not require AC_C_INLINE.
15057         (gl_PREREQ_GETHRXTIME): Remove; all uses removed, as it's always
15058         compiled now.  Move the check into gl_GETHRXTIME.
15059         * modules/gethrxtime (Files, lib_SOURCES): Add lib/xtime.c.
15060         (Depends-on): Add extern-inline.
15061         (configure.ac): gethrxtime is always compiled now.
15062         (lib_SOURCES): Add gethrxtime.c.
15064         wctype-h: better 'inline'
15065         * lib/wctype-h.c: New file.
15066         * lib/wctype.in.h (_GL_WCTYPE_INLINE):
15067         New macro.  Replace all uses of 'static inline' with it.
15068         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
15069         * m4/wctype_h.m4 (gl_WCTYPE_H): Do not require AC_C_INLINE.
15070         * modules/wctype-h (Files, lib_SOURCES): Add lib/wctype-h.c.
15071         (Depends-on): Add extern-inline.
15073         unistd: better 'inline'
15074         * lib/unistd.c: New file.
15075         * lib/unistd.in.h (_GL_UNISTD_INLINE):
15076         New macro.  Replace all uses of 'static inline' with it.
15077         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
15078         * m4/unistd_h.m4 (gl_UNISTD_H): Do not require AC_C_INLINE.
15079         * modules/unistd (Files, lib_SOURCES): Add lib/unistd.c.
15080         (Depends-on): Add extern-inline.
15082         sys_socket: better 'inline'
15083         * lib/sys_socket.c: New file.
15084         * lib/sys_socket.in.h (_GL_SYS_SOCKET_INLINE):
15085         New macro.  Replace all uses of 'static inline' with it.
15086         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
15087         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Do not require AC_C_INLINE.
15088         * modules/sys_socket (Files, lib_SOURCES): Add lib/sys_socket.c.
15089         (Depends-on): Add extern-inline.
15091         stdio: better 'inline'
15092         * lib/stdio.c: New file.
15093         * lib/stdio.in.h (_GL_STDIO_INLINE):
15094         New macro.  Replace all uses of 'static inline' with it.
15095         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
15096         * m4/stdio_h.m4 (gl_STDIO_H): Do not require AC_C_INLINE.
15097         * modules/stdio (Files, lib_SOURCES): Add lib/stdio.c.
15098         (Depends-on): Add extern-inline.
15100         sigaction: better 'inline'
15101         * lib/sig-handler.c: New file.
15102         * lib/sig-handler.h (SIG_HANDLER_INLINE):
15103         New macro.  Replace all uses of 'static inline' with it.
15104         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
15105         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): Do not require AC_C_INLINE.
15106         * modules/sigaction (Files, lib_SOURCES): Add lib/sig-handler.c.
15107         (Depends-on): Add extern-inline.
15109         selinux-h: better 'inline'
15110         * lib/se-context.c, lib/se-selinux.c: New files.
15111         * lib/getfilecon.c (map_to_failure): Omit 'inline' for static function.
15112         * lib/se-context.in.h (SE_CONTEXT_INLINE):
15113         New macro.  Replace all uses of 'static inline' with it.
15114         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
15115         * lib/se-selinux.in.h (SE_SELINUX_INLINE):
15116         New macro.  Replace all uses of 'static inline' with it.
15117         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
15118         * modules/selinux-h (Files, lib_SOURCES):
15119         Add lib/se-context.c, lib/se-selinux.c.
15120         (Depends-on): Add extern-inline.
15121         (configure.ac): Do not require AC_C_INLINE.
15123         pthread: better 'inline'
15124         * lib/pthread.c: New file.
15125         * lib/pthread.in.h (_GL_PTHREAD_INLINE):
15126         New macro.  Replace all uses of 'static inline' with it.
15127         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
15128         * m4/pthread.m4 (gl_PTHREAD_CHECK):
15129         Add AC_LIBOBJ([pthread]).  Do not require AC_C_INLINE.
15130         * modules/pthread (Files): Add lib/pthread.c.
15131         (Depends-on): Add extern-inline.
15133         math: better 'inline'
15134         * lib/math.c: New file.
15135         * lib/math.in.h (_GL_MATH_INLINE):
15136         New macro.  Replace all uses of 'static inline' with it.
15137         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
15138         * m4/math_h.m4 (gl_MATH_H):
15139         Do not require AC_C_INLINE.
15140         * modules/math (Files, lib_SOURCES):
15141         Add lib/math.c.
15142         (Depends-on): Add extern-inline.
15144         count-one-bits: better 'inline'
15145         * lib/count-one-bits.c: New file.
15146         * lib/count-one-bits.h (COUNT_ONE_BITS_INLINE):
15147         New macro.  Replace all uses of 'static inline' with it.
15148         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
15149         * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS):
15150         Do not require AC_C_INLINE.
15151         * modules/count-one-bits (Files, lib_SOURCES):
15152         Add lib/count-one-bits.c.
15153         (Depends-on): Add extern-inline.
15155         count-leading-zeros: better 'inline'
15156         * lib/count-leading-zeros.c: New file.
15157         * lib/count-leading-zeros.h (COUNT_LEADING_ZEROS_INLINE):
15158         New macro.  Replace all uses of 'static inline' with it.
15159         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
15160         * m4/count-leading-zeros.m4 (gl_COUNT_LEADING_ZEROS):
15161         Do not require AC_C_INLINE.
15162         * modules/count-leading-zeros (Files, lib_SOURCES):
15163         Add lib/count-leading-zeros.c.
15164         (Depends-on): Add extern-inline.
15166         bitrotate: better 'inline'
15167         * lib/bitrotate.c: New file.
15168         * lib/bitrotate.h (BITROTATE_INLINE):
15169         New macros.
15170         Replace all uses of 'static inline' with them.
15171         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
15172         * modules/bitrotate (Files, lib_SOURCES): Add lib/bitrotate.c.
15173         (Depends-on): Add extern-inline.
15174         (configure.ac): Do not require AC_C_INLINE.
15176 2012-11-20  Theophile Ranquet  <ranquet@lrde.epita.fr>
15178         maint.mk: avoid gratuitous failure
15179         Reported by Stefano Lattarini in
15180         <http://lists.gnu.org/archive/html/bug-bison/2012-11/msg00022.html>
15181         * top/maint.mk (public-submodule-commit): Quote more safely.
15183 2012-11-20  Eli Zaretskii  <eliz@gnu.org>
15185         canonicalize, canonicalize-lgpl: support MS-Windows file names
15186         See <http://lists.gnu.org/archive/html/bug-gnulib/2012-11/msg00074.html>
15187         for test cases, which it'd be nice to add at some point.
15188         * lib/canonicalize.c, lib/canonicalize-lgpl.c: Include dosname.h.
15189         * lib/canonicalize.c (canonicalize_filename_mode):
15190         * lib/canonicalize-lgpl.c (__realpath):
15191         Use FILE_SYSTEM_PREFIX_LEN instead of assuming that the first
15192         slash is at the beginning of the file name.  Use ISSLASH, instead
15193         of a literal '/'.  Use IS_ABSOLUTE_FILE_NAME instead of comparing
15194         the first character with '/'.  Test for
15195         DOUBLE_SLASH_IS_DISTINCT_ROOT only if the file name does not begin
15196         with a drive letter.
15197         * lib/canonicalize.c (SLASHES): New macro.
15198         (canonicalize_filename_mode): Use SLASHES instead of a literal "/".
15200 2012-11-17  Dmitry V. Levin  <ldv@altlinux.org>
15202         fts: introduce FTS_VERBATIM
15203         * lib/fts_.h (FTS_VERBATIM): New bit flag.
15204         (FTS_OPTIONMASK, FTS_NAMEONLY, FTS_STOP): Adjust.
15205         * lib/fts.c (fts_open): Honor it.
15207 2012-11-09  Pádraig Brady  <P@draigBrady.com>
15209         getlogin-tests: allow errno == ENXIO
15210         * tests/test-getlogin.c (main): Skip tests if getlogin fails
15211         with errno == ENXIO (No controlling tty).
15212         getlogin_r-tests: Likewise. Also allow errno == ENOENT
15213         * tests/test-getlogin_r.c (main): Skip tests if getlogin_r fails
15214         with errno == ENOENT.  This was reported to happen in various
15215         situations on GNU/Linux.
15217 2012-11-09  Paul Eggert  <eggert@cs.ucla.edu>
15219         getlogin-tests: allow errno == ENOENT
15220         * tests/test-getlogin.c (main): Skip tests if getlogin fails
15221         with errno == ENOENT.  This happened to me on Ubuntu 12.04.1 x86,
15222         when running a test in an Emacs shell buffer.
15224 2012-11-08  Jim Meyering  <jim@meyering.net>
15226         tests/nap.h: avoid warning about unused variable
15227         * tests/nap.h (nap_works): Remove now-unused declaration of "result".
15229         prefix-gnulib-mk: avoid overzealous "lib/"-prefix addition
15230         * build-aux/prefix-gnulib-mk (prefix): Tighten a regexp to require
15231         white space before each of the special-cased file names, to avoid
15232         adding "lib/" after $(libdir)/.  Reported by Matias A. fonzo
15233         in http://bugs.gnu.org/12830.
15235 2012-11-08  Paul Eggert  <eggert@cs.ucla.edu>
15237         fcntl-h: default O_SEARCH, O_EXEC back to O_RDONLY
15238         O_PATH doesn't work with Linux kernel 3.6.5, as fchmod (fd, ...)
15239         fails with errno == EBADF when fd is opened with O_PATH.
15240         Reported by Jim Meyering in
15241         <http://lists.gnu.org/archive/html/bug-gnulib/2012-11/msg00026.html>.
15242         * doc/posix-headers/fcntl.texi (fcntl.h): Document this.
15243         * lib/fcntl.in.h (O_EXEC, O_SEARCH) [O_PATH]: Default back to O_RDONLY.
15245 2012-11-07  Paul Eggert  <eggert@cs.ucla.edu>
15247         test-utimens: speed up by taking shorter naps
15248         * tests/nap.h (lt_mtime, get_mtime, nap_works, guess_delay):
15249         New functions.
15250         (nap): Use them, to do a better job of guessing the delay.
15251         On Fedora 17 with ext4 atop md atop hard disks, this made
15252         test-utimens run 10x faster, because the test napped for
15253         1 ms at a time rather than 20 ms.  Reported by Stefano Lattarini in
15254         <http://bugs.gnu.org/12820#11>.
15256 2012-11-07  Jim Meyering  <jim@meyering.net>
15258         mountlist.c: fix a compilation failure
15259         * lib/mountlist.c (read_file_system_list): Fix a compilation failure
15260         I introduced while transforming commit v0.0-7683-g613bcb6
15262 2012-11-05  Paul Eggert  <eggert@cs.ucla.edu>
15264         errno: port to LynxOS 178 2.2.2
15265         Problem reported by Joel Brobecker in
15266         <http://lists.gnu.org/archive/html/bug-gnulib/2012-10/msg00088.html>.
15267         * doc/posix-headers/errno.texi (errno.h): Document this.
15268         * lib/errno.in.h (EILSEQ, GNULIB_defined_EILSEQ) [!EILSEQ]: New macros.
15269         * lib/strerror-override.c, lib/strerror-override.h (strerror_override):
15270         Supply a string for EILSEQ.
15271         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Check for EILSEQ.
15273 2012-11-05  Paul Eggert  <eggert@cs.ucla.edu>
15275         fcntl-h: default O_SEARCH, O_EXEC to O_PATH if available
15276         Linux kernel 2.6.39 introduced O_PATH (see
15277         <http://lwn.net/Articles/433854/>) and this is a better fallback
15278         for O_SEARCH and O_EXEC than O_RDONLY, if O_PATH is available.
15279         * doc/posix-headers/fcntl.texi (fcntl.h): Document this.
15280         * lib/fcntl.in.h (O_EXEC, O_SEARCH) [O_PATH]: Default to O_PATH.
15281         * lib/fcntl.in.h (O_ACCMODE):
15282         * tests/test-fcntl-h.c (main):
15283         Do not reject O_ACCMODE merely because it has more than the
15284         minimal number of bits, as POSIX allows extensions here.
15286 2012-11-04  Andrew Warshall  <warshall@99main.com>  (tiny change)
15288         mountlist: do not classify a bind-mounted dir entry as "dummy"
15289         * lib/mountlist.c (ME_DUMMY_0): Rename from ME_DUMMY, but omit
15290         the "none"-testing clause.
15291         (ME_DUMMY) [MOUNTED_GETMNTENT1]: New macro to encapsulate the
15292         exception for bind-mounted directories.
15294 2012-11-01  Akim Demaille  <akim@lrde.epita.fr>
15296         quote: provide a means to escape strings with nul characters
15297         * lib/quote.h, lib/quotearg.c (quote_mem, quote_n_mem): New functions.
15298         (quote, quote_n): Rename formal arguments for consistency with
15299         quotearg.
15301 2012-10-30  Paul Eggert  <eggert@cs.ucla.edu>
15303         test-raise: don't assume 199 is an invalid signal
15304         * tests/test-raise.c (main): Don't assume 199 is not a signal number.
15306         sh-quote-tests: port to Solaris 9
15307         * modules/sh-quote-tests (test_sh_quote_LDADD): Add @LIBINTL@.
15308         Problem reported by Dagobert Michelsen in
15309         <http://lists.gnu.org/archive/html/bug-gnulib/2012-10/msg00114.html>.
15311 2012-10-28  Jim Meyering  <jim@meyering.net>
15313         maint.mk: rename a new configurable variable
15314         * top/maint.mk (_gl_translatable_string_re): Rename from
15315         translation-markers: _gl_ prefix to insulate from user Makefile code,
15316         and the _re suffix to inform that it's a regular expression.
15318 2012-10-26  Eric Blake  <eblake@redhat.com>
15320         maint.mk: let packages tweak sc_po_check pattern
15321         * top/maint.mk (sc_po_check): Add translation-markers, to allow
15322         finding files with other translation markers.
15324 2012-10-16  Paul Eggert  <eggert@cs.ucla.edu>
15326         euidaccess: speed up 'configure' on GNU hosts
15327         * m4/euidaccess.m4 (gl_FUNC_NONREENTRANT_EUIDACCESS):
15328         Check for setregid here, not in gl_PREREQ_EUIDACCESS, since
15329         it's needed only in this case.  Use AC_CHECK_DECLS, not
15330         AC_CHECK_DECLS_ONCE.
15331         (gl_PREREQ_EUIDACCESS): Do not use AC_CHECK_HEADERS_ONCE libgen.h
15332         or AC_REQUIRE for AC_FUNC_GETGROUPS.
15334         * lib/regexec.c (re_search_internal): Fix grammar in comment.
15336 2012-10-15  Paul Eggert  <eggert@cs.ucla.edu>
15338         fchmodat, fchownat, fstatat: port to non-inlining compilers
15339         Problem reported for FreeBSD 9 by Jim Meyering in
15340         <http://lists.gnu.org/archive/html/bug-gnulib/2012-10/msg00070.html>.
15341         * lib/chmodat.c, lib/chownat.c, lib/statat.c:
15342         New files, which define FCHMODAT_INLINE etc.
15343         * lib/fchmodat.c (FCHMODAT_INLINE):
15344         * lib/fchownat.c (FCHOWNAT_INLINE):
15345         * lib/fstatat.c (FSTATAT_INLINE):
15346         Remove, as chmodat.c etc. now do this.
15347         * modules/fchmodat (Files): Add lib/chmodat.c.
15348         * modules/fchownat (Files): Add lib/chownat.c.
15349         * modules/fstatat (Files): Add lib/statat.c.
15351 2012-10-15  Jim Meyering  <jim@meyering.net>
15353         fchmodat.c, fchownat.c: compile-impeding typos
15354         * lib/fchmodat.c (FCHMODAT_INLINE): Fix typo: s/#include/#define/
15355         * lib/fchownat.c (FCHOWNAT_INLINE): Likewise.
15356         Introduced in commit v0.0-7636-gd202279.
15358 2012-10-15  Paul Eggert  <eggert@cs.ucla.edu>
15360         fcntl-h: support GNU flags like O_IGNORE_CTTY
15361         * doc/posix-headers/fcntl.texi (fcntl.h): Support O_IGNORE_CTTY,
15362         O_NOLINK, and O_NOTRANS.  These flags are nonzero on GNU/Hurd
15363         systems.  Discovered when using fcntl-h with GNU Emacs, which uses
15364         O_IGNORE_CTTY.  Fix misspelling of F_SETLKW.
15365         * lib/fcntl.in.h (O_IGNORE_CTTY, O_NOLINK, O_NOTRANS):
15366         Define to 0 if not already defined.
15367         * tests/test-fcntl-h.c: Test these new flags.
15369 2012-10-14  Paul Eggert  <eggert@cs.ucla.edu>
15371         faccessat, etc.: support AT_FDCWD-only use
15372         * lib/at-func.c: If GNULIB_SUPPORT_ONLY_AT_FDCWD, then support
15373         this function only if its first argument is AT_FDCWD.
15374         Emacs wants faccessat for AT_EACCESS but not for any first-arg
15375         values other than AT_FDCWD, so it doesn't want all the openat
15376         machinery with fchdir etc.
15377         * modules/faccessat, modules/fchmodat, modules/fchownat (Files):
15378         * modules/fstatat, modules/mkdirat, modules/openat (Files):
15379         * modules/unlinkat (Files):
15380         Remove lib/openat-priv.h, as at-internal supplies this file.
15381         Removing this file here allows us to support programs like Emacs
15382         that avoid at-internal.
15384         faccessat: speed up 'configure' on mainstream hosts
15385         * m4/faccessat.m4 (gl_PREREQ_FACCESSAT):
15386         Use AT_CHECK_FUNCS for 'access', not AC_CHECK_FUNCS_ONCE,
15387         since it's only on unusual platforms that we need to check for
15388         'access', and it's better not to slow 'configure' down on all
15389         platforms.
15391         faccessat: port to Solaris 10
15392         * lib/faccessat.c: Include <fcntl.h>, for AT_EACCESS.
15393         Needed on Solaris 10, which doesn't have AT_EACCESS,
15394         so we need the Gnulib fcntl.h, which defines it.
15396 2012-10-14  Pádraig Brady  <P@draigBrady.com>
15397         canonicalize: fix C89 compilation
15398         * lib/canonicalize.c (canonicalize_filename_mode): Swap order of
15399         declarations so C89 is supported.  Also remove the comment
15400         referencing memorty allocation as the suggested feature could
15401         not be implemented as suggested.
15402         Reported by Michael Goffioul.
15404 2012-10-12  Paul Eggert  <eggert@cs.ucla.edu>
15406         group-member: omit unnecessary dependencies
15407         This is for Emacs, which has its own allocator and where we
15408         don't want to use xalloc.
15409         * lib/group-member.c: Include xalloc-oversized.h, not xalloc.h,
15410         since we no longer use xmalloc.  Do not include stdbool.h, since
15411         the changes below happen to remove the only use of bool.
15412         (GROUPBUF_SIZE): New constant.
15413         (struct group_info): Remove n_groups member.  Add groupbuf member.
15414         This lets us get the groups without using malloc, usually.
15415         (free_group_info, get_group_info): Adjust to this.
15416         (get_group_info): Return the number of groups found, or -1 on error.
15417         Use plain malloc not xmalloc, and treat its failure as if there
15418         are no groups, as the user already loses in case of error.
15419         (group_member): Simplify, based on changes to get_group_info.
15420         * modules/group-member (Depends-on): Remove dependencies on
15421         xalloc and stdbool.  Add dependency on xalloc-oversized.
15423 2012-10-08  Alexandre Duret-Lutz  <adl@lrde.epita.fr>  (tiny change)
15425         gethrxtime: port to C++
15426         * lib/gethrxtime.h, lib/xtime.h [__cplusplus]: Add extern "C".
15428 2012-10-04  Paul Eggert  <eggert@cs.ucla.edu>
15430         ptsname: fix macro-name typo
15431         * lib/stdlib.in.h (ptsname): Fix misspelling of GNULIB_NAMESPACE.
15433 2012-10-03  Simon Josefsson  <simon@josefsson.org>
15435         inttostr: Relax license.
15436         * modules/inttostr (License): Change from LGPL to LGPLv2+.
15438 2012-10-03  Eric Blake  <eblake@redhat.com>
15440         ptsname_r: support ptys returned by FreeBSD posix_openpt
15441         * lib/ptsname_r.c (__ptsname_r): Don't munge name if it already
15442         lives in /dev/pts/.
15444 2012-10-02  Eric Blake  <eblake@redhat.com>
15446         pselect: reject invalid file descriptors
15447         * m4/pselect.m4 (gl_FUNC_PSELECT): Probe for FreeBSD bug.
15448         * lib/pselect.c (rpl_pselect) [!win32]: Work around it.
15449         * modules/pselect (Depends-on): Add dup2.
15450         * doc/posix-functions/pselect.texi (pselect): Document this.
15452         select: reject invalid file descriptors
15453         * m4/select.m4 (gl_FUNC_SELECT): Probe for FreeBSD bug.
15454         * lib/select.c (rpl_select) [!win32]: Work around it.
15455         * modules/select (Depends-on): Add dup2.
15456         * doc/posix-functions/select.texi (select): Document this.
15458         select: enhance test
15459         * tests/test-select.h (do_select_bad_nfd_nowait, test_bad_nfd):
15460         New functions.
15461         (test_function): Enhance test.
15462         (do_select_bad_fd): Avoid any stale errno values.
15464         ptsname: reject invalid file descriptors
15465         http://www.austingroupbugs.net/view.php?id=503
15466         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Probe for FreeBSD bug.
15467         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add new witness.
15468         * modules/stdlib (Makefile.am): Replace witness.
15469         * lib/stdlib.in.h (ptsname): Allow for replacement.
15470         * modules/ptsname (configure.ac): Trigger replacement.
15471         * doc/posix-functions/ptsname.texi (ptsname): Document this.
15473 2012-10-02:  Nikos Mavrogiannopoulos  <nmav@gnutls.org>  (tiny change)
15475         hash-pjw-bare: new module
15476         * lib/hash-pjw-bare.c: New file, very much like hash-pjw.c.
15477         * lib/hash-pjw-bare.h: Likewise.
15478         * modules/hash-pjw-bare: New file.
15479         * MODULES.html.sh (Misc): Add it.
15481 2012-10-02  Eric Blake  <eblake@redhat.com>
15483         manywarnings: cater to more gcc infelicities
15484         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add test for
15485         -Wuninitialized without -O.
15487 2012-10-01  Ed Maste  <emaste@freebsd.org>  (tiny change)
15489         select, poll tests: Make setsockopt invocation effective.
15490         * tests/test-poll.c (open_server_socket): Move setsockopt() call before
15491         the bind() call.
15492         * tests/test-select.h (open_server_socket): Likewise.
15494 2012-09-30  Paul Eggert  <eggert@cs.ucla.edu>
15496         sockets, sys_stat: restore AC_C_INLINE
15497         This undoes the 2012-09-22 patch.
15498         * m4/sockets.m4 (gl_SOCKETS):
15499         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H):
15500         Restore AC_C_INLINE, since MSVC requires __inline or _inline
15501         and does not support plain 'inline'.  Reported by Bruno Haible in
15502         <http://lists.gnu.org/archive/html/bug-gnulib/2012-09/msg00183.html>.
15504 2012-09-30  Bruno Haible  <bruno@clisp.org>
15506         localeconv tests: Avoid test failure on OpenIndiana.
15507         * tests/test-localeconv.c (main): On OpenIndiana (a Solaris 11 variant)
15508         skip the 'grouping' and 'mon_grouping' tests.
15509         Reported by Jim Meyering.
15511 2012-09-30  Bruno Haible  <bruno@clisp.org>
15513         havelib: Follow libtool developments.
15514         * m4/lib-ld.m4: Rebase on libtool.m4 from libtool-2.4.
15515         Suggested by Simon Josefsson.
15517 2012-09-29  Jim Meyering  <meyering@redhat.com>
15519         fstatat.c: fix a compile-impeding typo
15520         * lib/fstatat.c (FSTATAT_INLINE): Fix typo: s/#include/#define/
15521         Introduced in commit v0.0-7636-gd202279.
15522         Mats Erik Andersson reported the resulting OpenBSD compilation failure.
15524 2012-09-28  Akim Demaille  <akim@lrde.epita.fr>
15526         extern-inline: provide a -Wundef safe config.h
15527         * m4/extern-inline.m4 (gl_EXTERN_INLINE): Protect
15528         "#if __GNUC_STDC_INLINE__" with "defined __GNUC_STDC_INLINE__"
15529         to produce a -Wundef warning free config.h.
15531 2012-09-26  Paul Eggert  <eggert@cs.ucla.edu>
15533         hash-pjw: relax license to LGPLv2+
15534         * modules/hash-pjw (License): Relax, with consent of author.
15536 2012-09-25  Akim Demaille  <akim@lrde.epita.fr>
15538         maint.mk: fix strict vs. lazy variable issues with RELEASE
15539         * top/maint.mk (_equal): New function.
15540         (member_check): Strip the result to avoid spurious spaces.
15541         (url_dir_list): Do not use ifeq, which is strict, as it will
15542         require RELEASE_TYPE to be defined.
15543         (announcement_Cc_, announcement_mail_headers_): Likewise: instead
15544         of relying on ifeq, use $(release_type) to dispatch (lazily) onto...
15545         (announcement_Cc_alpha,announcement_mail_headers_alpha)
15546         (announcement_Cc_beta,announcement_mail_headers_beta)
15547         (announcement_Cc_stable,announcement_mail_headers_stable): these.
15548         (release): Do not depend on $(release-type), as it forces its
15549         evaluation.  Bounce to it.
15551 2012-09-25  Akim Demaille  <akim@lrde.epita.fr>
15553         maint.mk: formatting changes
15554         * top/maint.mk: Indent bodies of if's.
15556 2012-09-21  Akim Demaille  <akim@lrde.epita.fr>
15558         maint.mk: factor the validation of RELEASE_TYPE
15559         With help from Jim Meyering.
15560         http://lists.gnu.org/archive/html/bug-gnulib/2012-09/msg00132.html
15561         * top/maint.mk (_empty, _sp): Move their definition earlier.
15562         (member-check, release-type): New.
15563         Use the latter instead of $(RELEASE_TYPE).
15564         Remove now useless local checks.
15566 2012-09-20  Akim Demaille  <akim@lrde.epita.fr>
15568         maint.mk: provide "make upload" to ease uploading
15569         See
15570         <http://lists.gnu.org/archive/html/bug-gnulib/2012-08/msg00028.html>.
15571         Do not depend simply on the current $(VERSION), as there may have been
15572         new commits since the tarball generation.  Rather, rely on $(RELEASE),
15573         as "make release-commit" already does.
15575         For consistency, add "make release RELEASE='X.Y TYPE'" as an alias for
15576         "make TYPE".
15578         * top/maint.mk (upload_command, upload, release): New.
15579         (RELEASE_TYPE): If undefined, default to the second word of $(RELEASE).
15580         (VERSION): first word of $(RELEASE) is always right.
15581         (emit_upload_commands): Adjust.
15582         * top/README-release: Update.
15584 2012-09-20  Akim Demaille  <akim@lrde.epita.fr>
15586         maint.mk: silent rules
15587         With help from Stefano Lattarini.
15588         * top/maint.mk (writable-files): Use $(AM_V_GEN).
15589         (announcement): Use $(AM_V_at).
15591 2012-09-24  Paul Eggert  <eggert@cs.ucla.edu>
15593         localename: port gl_locale_name_thread_unsafe to FreeBSD
15594         * lib/localename.c (gl_locale_name_thread_unsafe): Port to FreeBSD,
15595         and use the simpler FreeBSD implementation on Mac OS X as well.
15596         Original idea suggested by Ed Maste in
15597         <http://lists.gnu.org/archive/html/bug-gnulib/2012-09/msg00094.html>.
15599 2012-09-22  Paul Eggert  <eggert@cs.ucla.edu>
15601         binary-io, eealloc, mbfile, mbiter, mbutil, xsize: better 'inline'
15602         * lib/binary-io.c, lib/eealloc.c, lib/mbfile.c, lib/mbiter.c:
15603         * lib/mbuiter.c, lib/xsize.c: New files.
15604         * lib/binary-io.h (BINARY_IO_INLINE):
15605         * lib/eealloc.h (EEALLOC_INLINE):
15606         * lib/mbfile.h (MBFILE_INLINE):
15607         * lib/mbiter.h (MBITER_INLINE):
15608         * lib/mbuiter.h (MBUITER_INLINE):
15609         * lib/xsize.h (XSIZE_INLINE):
15610         New macros.
15611         Replace all uses of 'static inline' with them.
15612         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
15613         * m4/eealloc.m4 (gl_EEALLOC):
15614         * m4/mbfile.m4 (gl_MBFILE):
15615         * m4/mbiter.m4 (gl_MBITER):
15616         * m4/xsize.m4 (gl_XSIZE):
15617         Do not require AC_C_INLINE.
15618         * modules/binary-io (Files, lib_SOURCES): Add lib/binary-io.c
15619         * modules/eealloc (Files, lib_SOURCES): Add lib/eealloc.c.
15620         * modules/mbfile (Files, lib_SOURCES): Add lib/mbfile.c.
15621         * modules/mbiter (Files, lib_SOURCES): Add lib/mbiter.c.
15622         * modules/mbuiter (Files, lib_SOURCES): Add lib/mbuiter.c.
15623         * modules/xsize (Files, lib_SOURCES): Add lib/xsize.c.
15624         * modules/binary-io, modules/eealloc, modules/mbfile:
15625         * modules/mbiter, modules/mbuiter:
15626         (Depends-on): Add extern-inline.
15628         pipe-filter-gi, pipe-filter-ii: better use of 'inline'
15629         * lib/pipe-filter-aux.c: New file.
15630         * lib/pipe-filter-aux.h (PIPE_FILTER_AUX_INLINE): New macro.
15631         Replace all uses of 'static inline' with it.
15632         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
15633         * lib/pipe-filter-gi.c (filter_init, filter_cleanup)
15634         (filter_retcode): No real need for inline here.
15635         * modules/pipe-filter-gi, modules/pipe-filter-ii:
15636         (Files): Add lib/pipe-filter-aux.c.
15637         (Depends-on): Add extern-inline.
15638         (configure.ac): Do not require AC_C_INLINE.
15639         (lib_SOURCES): Add pipe-filter-aux.c.
15641         fdutimensat: omit unnecessary AC_C_INLINE
15642         * modules/fdutimensat (configure.ac): Remove AC_C_INLINE.
15644         fchmodat, fchownat, fstatat: use extern-inline
15645         * lib/fchmodat.c, lib/openat.h (FCHMODAT_INLINE):
15646         * lib/fchownat.c, lib/openat.h (FCHOWNAT_INLINE):
15647         * lib/fstatat.c, lib/openat.h (FSTATAT_INLINE):
15648         New macros.
15649         * lib/openat.h:
15650         Replace all uses of 'static inline' with them.
15651         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
15652         * modules/fchmodat, modules/fchownat, modules/fstatat:
15653         * modules/openat-h:
15654         (Depends-on):
15655         Add extern-inline.
15656         (configure.ac): Remove AC_C_INLINE.
15658         acl, mbchar, priv-set: use extern-inline
15659         * lib/set-mode-acl.c, lib/acl-internal.h (ACL_INTERNAL_INLINE):
15660         * lib/mbchar.c, lib/mbchar.h (MBCHAR_INLINE):
15661         * lib/priv-set.c, lib/priv-set.h (PRIV_SET_INLINE):
15662         New macros.
15663         * lib/acl-internal.h, lib/mbchar.h, lib/priv-set.h:
15664         Replace all uses of 'static inline' with it.
15665         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
15666         * m4/acl.m4 (gl_FUNC_ACL):
15667         * m4/mbchar.m4 (gl_MBCHAR):
15668         * m4/priv-set.m4 (gl_PRIV_SET):
15669         Remove AC_C_INLINE, since 'inline' is no longer used directly.
15670         * modules/acl, modules/mbchar, modules/priv-set (Depends-on):
15671         Add extern-inline.
15673         sockets, sys_stat: remove AC_C_INLINE in MSVC-only cases
15674         * m4/sockets.m4 (gl_SOCKETS):
15675         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H):
15676         Remove AC_C_INLINE.  Here, 'inline' is used only in MSVC
15677         environments where it's already guaranteed to work, so we needn't
15678         check for it at 'configure'-time.
15680         tls-tests: omit unnecessary 'inline'
15681         * tests/test-tls.c (perhaps_yield): No longer inline.
15682         Simplicity and portability trump efficiency in test cases.
15684         utimens-tests: avoid unnecessary 'inline'
15685         * modules/fdutimensat-tests (configure.ac):
15686         * modules/futimens-tests (configure.ac):
15687         * modules/utimens-tests (configure.ac):
15688         * modules/utimensat-tests (configure.ac):
15689         Remove AC_C_INLINE.
15690         * tests/test-utimens-common.h (ctime_compare):
15691         No longer inline.  Simplicity and portability trump efficiency here.
15693         misc: don't limit commentary to inline functions
15694         * lib/binary-io.h, lib/malloca.h, lib/safe-alloc.c:
15695         * lib/xalloc-oversized.h, lib/xsize.h:
15696         Contrast macros to functions in general, not just to inline functions,
15697         when the commentary does not apply only to inline functions.
15699 2012-09-20  Jim Meyering  <meyering@redhat.com>
15701         non-recursive-gnulib-prefix-hack: new module
15702         * build-aux/prefix-gnulib-mk: Copied from coreutils, derived from
15703         the file that originated in Bison.
15704         * m4/non-recursive-gnulib-prefix-hack.m4: Likewise, this code is
15705         largely copied from a snippet that resided in bison's configure.ac.
15706         * modules/non-recursive-gnulib-prefix-hack: New file.
15707         * MODULES.html.sh (Support for maintaining and releasing projects):
15708         Add it.
15710 2012-09-18  Jim Meyering  <meyering@redhat.com>
15712         maint.mk: generalize _gl_tight_scope for non-recursive make
15713         * top/maint.mk (_gl_tight_scope): Remove a hard-coded assumption
15714         that *.h would describe additional .h files in the directory
15715         specified by $(_gl_TS_dir).  I.e., add this...
15716         (_gl_TS_other_headers): New variable.
15718         maint.mk: exempt trailing blanks found in "binary" files
15719         * top/maint.mk (sc_trailing_blank): Filter out any matches found in
15720         "binary" files, as reported by grep.  Suggested by Richard W.M. Jones
15721         in http://thread.gmane.org/gmane.comp.emulators.guestfs/1902
15723 2012-09-17  Jim Meyering  <meyering@redhat.com>
15725         maint.mk: sc_prohibit_path_max_allocation: don't FP for UNIX_PATH_MAX
15726         * top/maint.mk (sc_prohibit_path_max_allocation): Avoid false-positive
15727         match for symbols like UNIX_PATH_MAX. Reported by Richard W.M. Jones
15728         in http://thread.gmane.org/gmane.comp.emulators.guestfs/1902
15730 2012-09-17  Jim Meyering  <meyering@redhat.com>
15732         maint.mk: teach sc_prohibit_magic_number_exit to accept 77
15733         * top/maint.mk (sc_prohibit_magic_number_exit): Do not complain about
15734         uses like "exit (77)".  "77" is automake's "skip this test" exit code.
15735         It is not in the same category as "exit (0)" or "exit (1)", and
15736         besides, I know of no symbolic name for that 77.  Reported by
15737         Richard W.M. Jones in
15738         http://thread.gmane.org/gmane.comp.emulators.guestfs/1902
15740 2012-09-17  Jim Meyering  <meyering@redhat.com>
15742         maint.mk: relax sc_prohibit_strcmp, to avoid a false positive
15743         * top/maint.mk (sc_prohibit_strcmp): Relax regexp, so as to match
15744         all uses of #define, not just those that start in column 1.
15745         Richard W.M. Jones reported a false positive in
15746         http://thread.gmane.org/gmane.comp.emulators.guestfs/1902
15748 2012-09-16  Paul Eggert  <eggert@cs.ucla.edu>
15750         localcharset: work around Mac OS X bug with UTF-8 and MB_CUR_MAX
15751         * lib/localcharset.c (locale_charset) [DARWIN7]:
15752         Return "ASCII" if the system reports "UTF-8" and MB_CUR_MAX <= 1,
15753         as these two values are incompatible.  Problem reported by Max Horn.
15754         For more discussion, please see
15755         <http://lists.gnu.org/archive/html/bug-gnulib/2012-09/msg00061.html>.
15757         doc: document sticky-EOF issue
15758         * doc/posix-functions/fgetc.texi (fgetc):
15759         * doc/posix-functions/fgets.texi (fgets):
15760         * doc/posix-functions/fread.texi (fread):
15761         * doc/posix-functions/fscanf.texi (fscanf):
15762         * doc/posix-functions/getc.texi (getc):
15763         * doc/posix-functions/getchar.texi (getchar):
15764         * doc/posix-functions/scanf.texi (scanf):
15765         Mention that glibc and default Solaris do not conform to
15766         C99 and POSIX-2001 or later, with respect to how getchar
15767         etc. behave when feof reports nonzero.
15769 2012-09-13  Joachim Schmitz  <jojo@schmitz-digital.de>  (tiny change)
15771         poll: fix poll(0, NULL, msec)
15772         * lib/poll.c: don't exit early if NULL is the 1st arg to poll(),
15773         but nfd is 0.  In that case poll should behave like select.
15775 2012-09-13  Joachim Schmitz  <jojo@schmitz-digital.de>  (tiny change)
15776             Paolo Bonzini  <bonzini@gnu.org>
15778         poll: fix for systems that can't recv() on a non-socket
15779         * lib/poll.c: if recv returns ENOTSOCK, assume the descriptor
15780         is readable.  In this case POLLHUP will not be supported.
15781         * doc/posix-functions/poll.texi: Document this.
15783 2012-09-13  Paolo Bonzini  <bonzini@gnu.org>
15785         poll/select: document portability problems not fixed by Gnulib.
15786         * doc/posix-functions/poll.texi: poll does not work well on
15787         pipes under Windows.  It has the same limitations as select on
15788         BeOS.
15789         * doc/posix-functions/select.texi: select does not work well
15790         on pipes under Windows.
15792 2012-09-10  Paul Eggert  <eggert@cs.ucla.edu>
15794         fcntl-h: check for AIX 7.1 bug with O_NOFOLLOW and O_CREAT
15795         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Check for AIX 7.1 bug
15796         that caused a GNU tar test failure.  Problem reported by Jez Wain; see
15797         <http://lists.gnu.org/archive/html/bug-tar/2012-07/msg00018.html>.
15799 2012-09-06  Eric Blake  <eblake@redhat.com>
15801         net_if: give more details about the bug being fixed
15802         * doc/posix-headers/net_if.texi: Add clarification.
15804 2012-09-05  Eric Blake  <eblake@redhat.com>
15806         net_if: new module
15807         * modules/net_if: New module, borrowing ideas from netinet_in.
15808         * m4/net_if_h.m4: New file.
15809         * lib/net_if.in.h: Likewise.
15810         * doc/posix-headers/net_if.texi (net/if.h): Document it.
15811         * MODULES.html.sh (lacking POSIX:2008): Likewise.
15812         * tests/test-net_if.c: Make function checks conditional.
15813         Reported by Jasper Lievisse Adriaanse <jasper@humppa.nl>.
15815 2012-09-05  Mats Erik Andersson  <gnu@gisladisker.se>  (tiny change)
15817         readutmp: fix non-portable UT_PID use
15818         * lib/readutmp.c (desirable_utmp_entry) <READ_UTMP_CHECK_PIDS>:
15819         Use `UT_PID (u) > 0' as absolute condition.
15821 2012-09-04  Jim Meyering  <meyering@redhat.com>
15823         fts: reduce two or more trailing spaces to just one, usually
15824         * lib/fts.c (fts_open): Upon initialization, if a name ends in two
15825         or more slashes, trim all but the final one.  But if a name consists
15826         solely of two slashes, don't modify it.  If it consists solely of
15827         three or more slashes, strip all but one.
15829         This is part of the solution to a minor problem with rm:
15830         it would print a bogus ELOOP diagnostic when failing to remove
15831         the slash-decorated name of a symlink-to-directory:
15833             $ mkdir d && ln -s d s && env rm -r s/
15834             rm: cannot remove 's': Too many levels of symbolic links
15836         With the change below and a trivial don't-trim-trailing-slashes
15837         adjustment to remove.c, it does this:
15839             $ env rm -r s/
15840             rm: cannot remove 's/': Not a directory
15842         Improved by: Eric Blake
15844         fts: when there is no risk of overlap, use memcpy, not memmove
15845         * lib/fts.c (fts_alloc): Fix unjustified memcopy: s/memmove/memcpy/
15847 2012-08-29  Paul Eggert  <eggert@cs.ucla.edu>
15849         stdbool: be more compatible with mixed C/C++ compiles
15850         * lib/stdbool.in.h (_Bool, true, false) [__cplusplus]:
15851         Define to bool, true, false, respectively, as GCC's builtin
15852         stdbool.h does.  Problem reported by Michael Goffioul in
15853         <http://lists.gnu.org/archive/html/bug-gnulib/2012-08/msg00143.html>.
15855 2012-08-28  Jim Meyering  <meyering@redhat.com>
15857         revert last change: it was not needed
15858         * tests/test-vc-list-files-git.sh: There's already a test for
15859         a working git, just below.
15861 2012-08-28  Jim Meyering  <meyering@redhat.com>
15863         tests: test-vc-list-files-git.sh: skip if git is not available
15864         * tests/test-vc-list-files-git.sh: Skip this test when git is
15865         not available.
15867 2012-08-26  Bruno Haible  <bruno@clisp.org>
15869         gnulib-tool: Remove no-op option --no-changelog.
15870         * gnulib-tool (func_usage): Don't mention --no-changelog.
15871         (do_changelog): Remove variable.
15872         Reported by Dmitriy Selyutin <ghostman.sd@gmail.com>.
15874 2012-08-24  Paul Eggert  <eggert@cs.ucla.edu>
15876         doc: remove fdl-1.2.texi
15877         It is no longer used or maintained, and its use of @acronym
15878         is problematic.  See the thread containing
15879         <http://lists.gnu.org/archive/html/bug-gnulib/2012-08/msg00134.html>.
15880         * config/srclist.txt: Remove doc/old-licenses/fdl-1.2.texi.
15881         * doc/old-licenses/fdl-1.2.texi: Remove.
15883         execinfo: port to FreeBSD
15884         * m4/execinfo.m4 (gl_EXECINFO_H): Set LIB_EXECINFO to -lexecinfo
15885         if needed, as in FreeBSD.  Reported by Bastien Roucariès in
15886         <http://lists.gnu.org/archive/html/bug-gnulib/2012-08/msg00113.html>.
15887         * modules/execinfo (Link): Add $(LIB_EXECINFO).
15889 2012-08-23  Jim Meyering  <meyering@redhat.com>
15891         xstrtol.h: avoid "_Noreturn is not at beginning of declaration" warning
15892         * lib/xstrtol.h: Put "_Noreturn" before "void" in declaration,
15893         to placate gcc's -Wold-style-declaration.
15895 2012-08-24  Paul Eggert  <eggert@cs.ucla.edu>
15897         doc: do not use @acronym
15898         * doc/inet_ntoa.texi (inet_ntoa):
15899         * doc/parse-datetime.texi (Seconds since the Epoch)
15900         (Specifying time zone rules):
15901         * doc/posix-functions/inet_ntoa.texi (inet_ntoa):
15902         Don't use @acronym.  Problem reported by John Darlington in
15903         <http://lists.gnu.org/archive/html/bug-gnulib/2012-08/msg00124.html>.
15905 2012-08-23  Paul Eggert  <eggert@cs.ucla.edu>
15907         stdnoreturn: port to newer GCCs
15908         * m4/stdnoreturn.m4 (gl_STDNORETURN_H): Avoid problems with
15909         bleeding-edge GCC that complains about 'int _Noreturn foo (void);'.
15910         Problem reported by Jim Meyering in
15911         <http://lists.gnu.org/archive/html/bug-gnulib/2012-08/msg00121.html>.
15912         Also, rename the 'test' function to a void a clash with the
15913         already-supplied 'main' function; this fixes a bug that incorrectly
15914         rejected GCC 4.7.1's <stdnoreturn.h>.
15915         * doc/posix-headers/stdnoreturn.texi (stdnoreturn.h):
15916         Document GCC problem.
15918 2012-08-22  Reuben Thomas  <rrt@sc3d.org>
15920         pipe-filter: fix comment typo
15921         * lib/pipe-filter.h: Mention correct function.
15923 2012-08-22  Paul Eggert  <eggert@cs.ucla.edu>
15925         execinfo: new module
15926         This is for Emacs.  Currently, it provides a no-effect stub
15927         on all platforms where it does not already work.
15928         It already works on glibc-based systems, and on Solaris 11.
15929         * lib/execinfo.c, lib/execinfo.in.h, m4/execinfo.m4, modules/execinfo:
15930         New files.
15931         * doc/glibc-headers/execinfo.texi (execinfo.h):
15932         * MODULES.html.sh (Misc): Document it.
15934 2012-08-20  Paul Eggert  <eggert@cs.ucla.edu>
15936         extern-inline: support old GCC 'inline'
15937         * m4/extern-inline.m4 (gl_EXTERN_INLINE): Use pre-C99 GCC 'inline'
15938         if available.  This applies to GCC versions 2.7 through 4.2, or
15939         when newer GCC is using -fgnu89-inline.  The goal is to address
15940         some of the performance issues mentioned by Bruno Haible in
15941         <http://lists.gnu.org/archive/html/bug-gnulib/2012-08/msg00097.html>.
15943 2012-08-20  Eric Blake  <eblake@redhat.com>
15945         maint.mk: avoid redundant file name in message
15946         * top/maint.mk (sc_prohibit_strcmp, sc_unmarked_diagnostics)
15947         (sc_prohibit_defined_have_decl_tests, sc_const_long_option)
15948         (sc_makefile_path_separator_check): Remove bogus $(ME).
15950 2012-08-20  Mike Frysinger  <vapier@gentoo.org>
15952         timer-time: fix link order when static linking on glibc
15953         * m4/timer_time.m4 (LIB_TIMER_TIME): Add -lpthread
15954         _after_ -lrt so that it's significant.
15956 2012-08-19  Paul Eggert  <eggert@cs.ucla.edu>
15958         timespec: omit unnecessary AC_C_INLINE
15959         * m4/timespec.m4 (gl_TIMESPEC): Do not require AC_C_INLINE.
15961         stat-time: omit unnecessary AC_C_INLINE
15962         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
15963         Do not require AC_C_INLINE.
15965         ignore-value: omit unnecessary AC_C_INLINE
15966         * modules/ignore-value (configure.ac): Do not require AC_C_INLINE.
15968         sys_select: avoid 'static inline'
15969         * lib/sys_select.in.h (rpl_fd_isset): Now static, not static inline.
15971         mktime: avoid 'static inline'
15972         * lib/mktime.c (leapyear, ydhms_diff): Now static, not static inline.
15973         * m4/mktime.m4 (gl_PREREQ_MKTIME): Do not require AC_C_INLINE.
15975 2012-08-19  Bruno Haible  <bruno@clisp.org>
15977         gnulib-tool: Improve coding style.
15978         * gnulib-tool (func_emit_tests_Makefile_am): Set perhapsLT, like in
15979         func_emit_lib_Makefile_am.
15980         Reported and fix suggested by Dmitriy Selyutin <ghostman.sd@gmail.com>.
15982 2012-08-19  Bruno Haible  <bruno@clisp.org>
15984         gnulib-tool: Fix indentation.
15985         * gnulib-tool (func_import): Fix indentation.
15987 2012-08-19  Bruno Haible  <bruno@clisp.org>
15989         gnulib-tool: Remove old file names from .cvsignore, .gitignore.
15990         * gnulib-tool (func_update_ignorelist): Don't use 'join -v 1' command
15991         on the list of removed files.
15993 2012-08-17  Paul Eggert  <eggert@cs.ucla.edu>
15995         test-parse-datetime: avoid glibc leap-second glitch
15996         * tests/test-parse-datetime.c (main): Set TZ to US Eastern time
15997         with the 2012 rules.  Problem reported by Bruce Dubbs in
15998         <http://bugs.gnu.org/12206>.
16000 2012-08-14  Bruno Haible  <bruno@clisp.org>
16002         gnulib-tool: Fix indentation of generated gnulib-comp.m4 file.
16003         * gnulib-tool (func_emit_autoconf_snippet): Initialize indentation
16004         from argument.
16005         Reported and fix suggested by Dmitriy Selyutin <ghostman.sd@gmail.com>.
16007 2012-08-14  Eric Blake  <eblake@redhat.com>
16009         ldexp: relax license
16010         * modules/ldexp (License): Trivial relax, since the module only
16011         provides a permissively licensed m4 file.
16013 2012-08-13  Bruno Haible  <bruno@clisp.org>
16015         gnulib-tool: Fix persistence of --witness-c-macro option.
16016         * gnulib-tool (func_import): Fix typo in emit of gl_WITNESS_C_MACRO.
16017         Reported by Dmitriy Selyutin <ghostman.sd@gmail.com>.
16019 2012-08-11  Eric Blake  <eblake@redhat.com>
16021         count-leading-zeros: use a lookup table on non-gcc compilers
16022         * lib/count-leading-zeros.h (count_leading_zeros_32): Use an
16023         alternate implementation, suggested by Jim Meyering.
16025 2012-08-10  Eric Blake  <eblake@redhat.com>
16027         count-leading-zeros: new module
16028         * modules/count-leading-zeros: New module.
16029         * m4/count-leading-zeros.m4: New file.
16030         * lib/count-leading-zeros.h: Likewise.
16031         * modules/count-leading-zeros-tests: New test.
16032         * tests/test-count-leading-zeros.c: New file.
16033         * MODULES.html.sh (Integer arithmetic functions): Document it.
16035 2012-08-07  Simon Josefsson  <simon@josefsson.org>
16036             Jim Meyering  <meyering@redhat.com>
16038         maintainer-makefile: Fix syntax error with dash.
16039         * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): Quote arguments.
16040         (sc_vulnerable_makefile_CVE-2012-3386): Likewise.
16042 2012-08-05  Jim Meyering  <meyering@redhat.com>
16044         extern-inline: also ignore -Wmissing-declarations
16045         * m4/extern-inline.m4: Also ignore -Wmissing-declarations,
16046         required with gcc-4.8.0-to-be.
16048         maint.mk: sc_prohibit_magic_number_exit: avoid new false positives
16049         * top/maint.mk (sc_prohibit_magic_number_exit): Also filter out matches
16050         for /error ?([^,]*)/.  This avoids false-positives for strings like
16051         "Unknown error (252)", introduced via commit v0.0-7538-g92875a6.
16053 2012-08-02  Stefano Lattarini  <stefano.lattarini@gmail.com>
16055         gnumakefile: better interaction with Automake-NG
16056         * modules/gnumakefile [Makefile.am]: The makefiles generated by
16057         Automake-NG always contain a definition of VPATH, even in non-VPATH
16058         builds (its value being simply '.' in that case).  So, in the
16059         'clean-GNUmakefile' rule, to determine whether running under a
16060         VPATH setup, compare '$(srcdir)' to '.' rather than checking whether
16061         '$(VPATH)' expands to the empty string.
16063 2012-08-02  Carlo de Falco  <carlo.defalco@polimi.it>  (tiny change)
16065         base64: Use extern C scope in header file, for C++.
16066         * lib/base64.h: Add C++ namespace protection.
16068 2012-08-02  Paul Eggert  <eggert@cs.ucla.edu>
16070         stat-time, timespec, u64: support naive out-of-dir builds
16071         * lib/stat-time.c, lib/timespec.c, lib/u64.c:
16072         Use '#include "foo.h"', not '#include <foo.h>', when including
16073         one's own interface.  This works better when configuring with
16074         out-of-directory builds, since packages need not add an
16075         otherwise-unnecessary -I$(topdir_src)/lib to DEFAULT_INCLUDES.
16077 2012-08-01  Paul Eggert  <eggert@cs.ucla.edu>
16079         utimens: use extern-inline
16080         * lib/utimens.c (_GL_UTIMENS_INLINE): Define when including utimens.h.
16081         * lib/utimens.h: Add copyright notice, since this is now large enough
16082         to copyright.  Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
16083         (_GL_UTIMENS_INLINE): New macro.  Use it instead of 'static inline'.
16084         * modules/utimens (Depends-on): Add extern-inline.
16086         u64: use extern-inline
16087         * lib/u64.c: New file.
16088         * lib/u64.h: Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
16089         (_GL_U64_INLINE): New macro.  Use it instead of 'static inline'.
16090         * modules/u64 (Files): Add lib/u64.c.
16091         (Depends-on): Add extern-inline.
16092         (configure.ac): No need to require AC_C_INLINE, since extern-inline
16093         does that now.
16094         (lib_SOURCES): Add u64.c.
16096         timespec: use extern-inline
16097         * lib/timespec.c: New file.
16098         * lib/timespec.h: Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
16099         (_GL_TIMESPEC_INLINE): New macro.  Use it instead of 'static inline'.
16100         * modules/timespec (Files): Add lib/timespec.c.
16101         (Depends-on): Add extern-inline.
16102         (lib_SOURCES): Add timespec.c.
16104         stat-time: use extern-inline
16105         * lib/stat-time.c: New file.
16106         * lib/stat-time.h: Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
16107         (_GL_STAT_TIME_INLINE): New macro.  Use it instead of 'static inline'.
16108         * modules/stat-time (Files): Add lib/stat-time.c.
16109         (Depends-on): Add extern-inline.
16110         (lib_SOURCES): Add stat-time.c.
16112         extern-inline: new module
16113         * modules/extern-inline, m4/extern-inline.m4: New files.
16114         This is for better support of 'extern inline' a la ISO C99,
16115         with a portable alternative on compilers that do not support
16116         C99-style 'extern inline'.  Using 'extern inline' shrinks the size
16117         of the Emacs executable, when compiled with debugging disabled,
16118         which is a typical way that Emacs is built while developing.
16120 2012-08-01  Akim Demaille  <akim@lrde.epita.fr>
16122         maint.mk: a "release-commit" wrapper to do-release-commit-and-tag
16123         * build-aux/do-release-commit-and-tag: Move variable definitions
16124         together.
16125         ($branch): Instead of defaulting to "master", default to the current
16126         branch (as gnu-web-doc-update does).
16127         (help): Display the current values of the option arguments.
16128         * top/maint.mk (release-commit): New.
16129         * top/README-release: Simplify the corresponding step.
16131 2012-07-30  Eric Blake  <eblake@redhat.com>
16133         passfd: fix comment on recvfd
16134         * lib/passfd.c (recvfd): Fix comment.
16135         Reported by Jann Horn <jannhorn@googlemail.com>.
16137 2012-07-30  Jim Meyering  <meyering@redhat.com>
16139         maint.mk: avoid a sub-shell
16140         * top/maint.mk (release-prep): Remove unneeded sub-shell.
16142 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
16144         maint.mk: use silent-rules support from Automake
16145         * top/maint.mk (news-check, vc-diff-check, announcement)
16146         (no-submodule-changes, alpha beta stable, release-prep)
16147         (web-manual, update-copyright): Use $(AM_V_GEN) and $(AM_V_at).
16149 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
16151         maint.mk: provide a web-manual-update target
16152         * top/maint.mk: here.
16153         * top/README-release: Use it to simplify the web manual update step.
16155 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
16157         README-release: shorten the circuit to post a news
16158         * top/README-release: Point directly to the news submission form.
16160 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
16162         gnu-web-doc-update: fix --help
16163         * build-aux/gnu-web-doc-update: The information "top level" was written
16164         twice.
16166 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
16168         maint.mk: absolute VPATH issue
16169         * top/maint.mk (release-prep): Help Git find .git/.
16170         From Jim Meyering.
16172 2012-07-29  Akim Demaille  <akim@lrde.epita.fr>
16174         gitlog-to-changelog: fix previous change
16175         * build-aux/gitlog-to-changelog: Fix condition.
16176         Add missing ";".
16178 2012-07-29  Akim Demaille  <akim@lrde.epita.fr>
16180         gitlog-to-changelog: don't expect .git to be in $srcdir
16181         Reported by Bruno Haible.
16182         <http://lists.gnu.org/archive/html/bug-gnulib/2012-07/msg00265.html>
16183         * build-aux/gitlog-to-changelog (&git_dir_option): New.
16184         Use it.
16186 2012-07-29  Akim Demaille  <akim@lrde.epita.fr>
16188         maint.mk: absolute VPATH build fix
16189         * top/maint.mk (gpg_key_ID): Help git find .git when, for instance,
16190         $(srcdir) is not a parent of $(builddir).
16192 2012-07-28  John Darrington  <john@darrington.wattle.id.au>
16194         clean-temp: Fix memory leak.
16195         * lib/clean-temp.c (cleanup_temp_dir): Free also the 'subdirs' and
16196         'files' members of tmpdir.
16198 2012-07-27  Jim Meyering  <meyering@redhat.com>
16200         maint.mk: new rule: refresh-gnulib-patches
16201         I noticed that 8 of coreutils' 9 gl/**/*.diff files were stale.
16202         Use this rule to refresh them.
16203         * top/maint.mk (refresh-gnulib-patches): New rule.
16205 2012-07-24  Bruno Haible  <bruno@clisp.org>
16207         gnulib-tool: Fix handling of inctests variable.
16208         * gnulib-tool: Canonicalize $inctests also in 'update' mode.
16209         Reported by Nick Bowler <nbowler@elliptictech.com>.
16211 2012-07-22  Bruno Haible  <bruno@clisp.org>
16213         getpass: Assume AC_CHECK_DECLS_ONCE invocation, like in getpass.m4.
16214         * lib/getpass.h: Assume HAVE_DECL_GETPASS is defined.
16215         * cfg.mk (exclude_file_name_regexp--sc_prohibit_defined_have_decl_tests):
16216         Remove exemption for getpass.h.
16217         Suggested by Eric Blake.
16219 2012-07-20  Eric Blake  <eblake@redhat.com>
16221         verify: document conflict with -Wnested-externs
16222         * lib/verify.h: Give hint about usage when gcc warnings are enabled.
16224         maint.mk: forbid exit(-1)
16225         * top/maint.mk (sc_prohibit_magic_number_exit): Detect negatives.
16227 2012-07-20  Paul Eggert  <eggert@cs.ucla.edu>
16229         fsusage: port back to Solaris
16230         * lib/fsusage.c (get_fs_usage): Fix busted logic causing compile-time
16231         error (fsd not declared) on Solaris 10.  Reported privately by
16232         Andrew Borodin.
16234 2012-07-19  Akim Demaille  <akim@lrde.epita.fr>
16236         gnu-web-doc-update: fix error messages
16237         * build-aux/gnu-web-doc-update: Don't pass $ME to die.
16239         gnu-web-doc-update: check the requirements.
16240         * build-aux/gnu-web-doc-update (find_tool): Import from bootstrap.
16241         ($CVS, $CVSU, $GIT, $RSYNC, $XARGS): New.
16242         * build-aux/bootstrap (find_tool): Comment change.
16244 2012-07-17  Akim Demaille  <akim@lrde.epita.fr>
16246         maint.mk: minor simplication.
16247         * top/maint.mk (_sc_excl): Use $(or...) instead of $(if...)
16248         for default values.
16250 2012-07-15  Akim Demaille  <akim@lrde.epita.fr>
16252         gitlog-to-changelog: VPATH build issues
16253         If builddir is not a subdirectory of srcdir, running git from it will
16254         fail.
16255         * build-aux/gitlog-to-changelog (--srcdir): New option.
16257 2012-07-15  Bruno Haible  <bruno@clisp.org>
16259         fpending: Assume AC_CHECK_DECLS_ONCE invocation, like in fpending.m4.
16260         * lib/fpending.h: Assume HAVE_DECL___FPENDING is defined.
16261         * cfg.mk (exclude_file_name_regexp--sc_prohibit_defined_have_decl_tests)
16262         Remove exemption for fpending.h.
16263         Suggested by Eric Blake.
16265 2012-07-15  Paul Eggert  <eggert@cs.ucla.edu>
16267         pthread_sigmask: fix bug on FreeBSD 9
16268         * lib/pthread_sigmask.c [PTHREAD_SIGMASK_INEFFECTIVE]:
16269         Include string.h.
16270         (pthread_sigmask) [PTHREAD_SIGMASK_INEFFECTIVE]:
16271         When calling pthread_sigmask (1729, NEW, OLD), specify non-null NEW;
16272         this avoids a bug on FreeBSD 9, where pthread_sigmask is effective
16273         but pthread_sigmask (1729, NULL, NULL) returns zero.
16274         See <http://bugs.gnu.org/11884>.
16275         Avoid the need to call pthread_sigmask (1729, ...) in most cases,
16276         by inspecting whether the main call changed the old mask.
16278 2012-07-15  Reuben Thomas  <rrt@sc3d.org>
16280         README-release: make it more legible
16281         * top/README-release: Improve typography slightly.
16283 2012-07-15  Jim Meyering  <meyering@redhat.com>
16285         maint: require that each sc_... command start with "@"
16286         * Makefile (sc_prohibit_sc_omitted_at): New rule so that
16287         "make sc_maint" helps us avoid this nit.
16289 2012-07-15  Jim Meyering  <meyering@redhat.com>
16291         maint.mk: add leading "@" to quiet new "make syntax-check" rule
16292         * top/maint.mk (sc_prohibit_defined_have_decl_tests): Add "@".
16294 2012-07-13  Eric Blake  <eblake@redhat.com>
16296         maint.mk: new syntax check for HAVE_DECL checks
16297         * top/maint.mk (sc_prohibit_defined_have_decl_tests): New rule.
16298         * cfg.mk
16299         (exclude_file_name_regexp--sc_prohibit_defined_have_decl_tests):
16300         Exempt some false positives.
16301         Based on a report by Karel Zak.
16303         argp: make HAVE_DECL usage consistent
16304         * lib/argp-parse.c (__argp_parse): Check contents of HAVE_DECL
16305         macros, not whether they are defined.
16306         * m4/argp.m4 (gl_ARGP): Always define HAVE_DECL_* macros, per
16307         convention with other declaration checks.
16308         Reported by Karel Zak, with suggestions from Paul Eggert.
16310         stat-time: relax license to LGPLv2+
16311         * modules/stat-time (License): Relax, with consent of all authors.
16313         strndup: fix m4 usage error
16314         * m4/strndup.m4 (gl_FUNC_STRNDUP): HAVE_DECL_STRNDUP is always
16315         defined, to either 0 or 1.
16316         Reported by Karel Zak.
16318 2012-07-11  Jim Meyering  <meyering@redhat.com>
16320         maint: enable the sc_avoid_if_before_free syntax-check rule
16321         * cfg.mk (local-checks-to-skip): Enable sc_avoid_if_before_free.
16322         (if_before_free_offenders_): Define.
16323         (if_before_free_basename_re_): Define.
16324         Exempt current files with useless if-before-free.
16326 2012-07-11  Paul Eggert  <eggert@cs.ucla.edu>
16328         gettext: do not assume '#define ... defined ...' behavior
16329         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS):
16330         Do not use '#define FOO ... defined BAR ...', as the C standard says
16331         it's not portable to expect that this works after macro expansion.
16332         Problem reported for gzip by Steven M. Schweda in
16333         <http://lists.gnu.org/archive/html/bug-gzip/2012-07/msg00000.html>.
16335 2012-07-10  Paul Eggert  <eggert@cs.ucla.edu>
16337         getloadavg: clean out old Emacs and Autoconf cruft
16338         See Glenn Morris in <http://bugs.gnu.org/11905>.
16339         * lib/getloadavg.c: Include <config.h>, <stdbool.h> always.
16340         Include <sys/param.h> if HAVE_SYS_PARAM_H, not if unix or __unix.
16341         (LDAV_CVT): Remove no-longer-used LOAD_AVE_CVT hook.
16342         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Check for <sys/param.h>.
16344 2012-07-10  Akim Demaille  <akim@lrde.epita.fr>
16346         bootstrap: let warn be like tests/init.sh's warn_
16347         Reported by Jim Meyering.
16348         * build-aux/bootstrap (warn): Remove, replaced by...
16349         (warnf_, warn_): these.
16350         Adjust callers.
16351         Shorten messages that no longer fit in 80 columns.
16353 2012-07-09  Bruno Haible  <bruno@clisp.org>
16355         getopt: Simplify after Emacs changed.
16356         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Inline gl_GETOPT_IFELSE.
16357         (gl_GETOPT_IFELSE): Remove macro.
16359 2012-07-09  Jim Meyering  <meyering@redhat.com>
16361         maint.mk: add sc_vulnerable_makefile_CVE-2012-3386
16362         * top/maint.mk (sc_vulnerable_makefile_CVE-2012-3386): New rule.
16364         maint.mk: _sc_search_regexp, sc_vulnerable_makefile_CVE-2009-4029: fix
16365         Bugs in both of those conspired to make the
16366         sc_vulnerable_makefile_CVE-2009-4029 rule 99% useless.
16367         _sc_search_regexp's handling of non-empty $in_files would filter
16368         out any offending file names.  sc_vulnerable_makefile_CVE-2009-4029's
16369         choice of in_files value meant there would be no match in most
16370         projects, due to the presence of two or more Makefile.in files.
16371         * top/maint.mk (_sc_search_regexp) [in_vc_files,in_files]: Clarify.
16372         Fix a bug in how a non-empty $$in_files was processed:
16373         (sc_vulnerable_makefile_CVE-2009-4029): Fix erroneous use of in_files:
16374         in spite of the name, it's a regexp, not a list of file names.
16376 2012-07-09  Paul Eggert  <eggert@cs.ucla.edu>
16378         getloadavg, getopt: fix commentary re configure.in
16379         Autoconf is deprecating the name 'configure.in', so change it to
16380         to the new name 'configure.ac' in a couple of places.
16381         * lib/getloadavg.c: configure.in -> configure.ac, in comment.
16382         * m4/getopt.m4 (gl_GETOPT_IFELSE, gl_GETOPT_SUBSTITUTE_HEADER)
16383         (gl_PREREQ_GETOPT): Remove obsolete commentary re Emacs configure.in.
16384         Emacs has renamed it to configure.ac, and it no longer refers
16385         to these macros anyway.
16387         timespec: mark functions with const attributes
16388         * lib/timespec.h (timespec_add, timespec_sub, dtotimespec):
16389         Mark with _GL_ATTRIBUTE_CONST.
16391 2012-07-07  Ludovic Courtès  <ludo@gnu.org>
16393         canonicalize[-lgpl]: handle "guessing" values when cross-building
16394         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
16395         (gl_CANONICALIZE_LGPL): Check whether $gl_cv_func_realpath_works
16396         matches "*yes" instead of just "yes".  Regression introduced in commit
16397         e0bcf6626cde8dad4bfbdc4045c744f0cd8b9e24.
16399 2012-07-07  Ludovic Courtès  <ludo@gnu.org>
16400             Bruno Haible  <bruno@clisp.org>
16402         canonicalize: make the right guess when cross-compiling to GNU
16403         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Match also "gnu*" to
16404         determine whether cross-compiling to glibc systems, so as to
16405         include GNU/Hurd.
16407 2012-07-06  Paul Eggert  <eggert@cs.ucla.edu>
16409         timespec-sub: avoid duplicate include
16410         * lib/timespec-sub.c: Do not include <config.h> twice.
16411         Reported by Juanma Barranquero.
16413 2012-07-06  Akim Demaille  <akim@lrde.epita.fr>
16415         bootstrap: use a more consistent error reporting scheme
16416         * build-aux/bootstrap (warn, die): New.
16417         Use them.
16419 2012-07-05  Paul Eggert  <eggert@cs.ucla.edu>
16421         sys_time: allow too-wide tv_sec
16422         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Allow struct
16423         timeval even if tv_sec is wider than time_t.  This allows
16424         OpenBSD 5.1 amd64 and fixes an Emacs porting glitch with utimens.c,
16425         as without this patch gnulib replaces struct timeval
16426         and OpenBSD futimes therefore has a type mismatch.
16427         * doc/posix-headers/sys_time.texi: Mention this.
16429         pthread: check for both pthread_create and pthread_join
16430         * m4/pthread.m4 (gl_PTHREAD_CHECK): Revert previous change, but
16431         alter the check so that it tests for both pthread_create and
16432         pthread_join.  This should be more portable to hosts like OSF/1 5.1.
16433         Suggested by Bruno Haible and Richard Yao in
16434         <http://lists.gnu.org/archive/html/bug-gnulib/2012-07/msg00048.html>.
16436         parse-datetime: doc tuneup
16437         * doc/parse-datetime.texi: Index "leap seconds" and fix minor
16438         spacing issues.
16440 2012-07-05  Akim Demaille  <akim@lrde.epita.fr>
16442         do-release-commit-and-tag: fix the previous commit
16443         * build-aux/do-release-commit-and-tag: Actually the test was right,
16444         but the comment and the error message were misleading.
16445         Fix comment, and improve error message.
16446         Perform check first, so that NEWS is not modified uselessly.
16448         do-release-commit-and-tag: fix typo
16449         * build-aux/do-release-commit-and-tag: Be sure that NEWS does
16450         _not_ start with a stub.
16452 2012-07-04  Paul Eggert  <eggert@cs.ucla.edu>
16454         pthread: check for pthread_create, not pthread_join
16455         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_create, not
16456         pthread_join.  On FreeBSD 9, pthread_create is in libpthread but
16457         pthread_join in libc.  I hope this removes the need for all the
16458         OSF/1 5.1 pthread_join business.  Reported by Richard Yao in
16459         <http://lists.gnu.org/archive/html/bug-gnulib/2012-07/msg00042.html>.
16461 2012-07-04  Jim Meyering  <meyering@redhat.com>
16463         parse-datetime: fix failure to diagnose invalid input
16464         date -d "$(printf '\xb0')" would print 00:00:00 with today's date
16465         rather than diagnosing the invalid input.  Now it reports this:
16466         date: invalid date '\260'
16467         * lib/parse-datetime.y (to_uchar): Define.
16468         (yylex): Don't sign-extend "other" bytes.
16469         * m4/parse-datetime.m4: Require AC_C_INLINE for first use of "inline".
16470         Thanks to Bruno Haible for the patch to this file.
16471         * tests/test-parse-datetime.c (main): Add a test to trigger the bug.
16472         Peter Evans reported the bug in GNU date: http://bugs.gnu.org/11843
16474 2012-07-03  Jim Meyering  <meyering@redhat.com>
16476         bootstrap: do not require now-removed build-aux/missing
16477         Now that build-aux/missing is, er, missing, bootstrap would
16478         silently fail.
16479         * build-aux/bootstrap (gnulib_extra_files): Remove $build_aux/missing
16480         from the list, now that (since commit v0.0-7489-gd0f486f) the file is
16481         no longer part of gnulib.
16482         Diagnose the failure.
16484 2012-07-03  Paul Eggert  <eggert@cs.ucla.edu>
16486         alloca: add support for HP NonStop TNS/E native
16487         * lib/alloca.in.h (alloca): Support the new host.
16488         From a suggestion by Joachim Schmitz in
16489         <http://lists.gnu.org/archive/html/bug-gnulib/2012-06/msg00355.html>.
16491 2012-07-02  Pádraig Brady  <P@draigBrady.com>
16493         fsusage: remove code not needed on non GNU/Linux systems.
16495         * lib/fsusage.c [STAT_STATVFS || STAT_STATVFS64]:
16496         Don't include headers no longer needed in this case.
16497         * lib/fsusage.c [STAT_STATVFS &&
16498         ! (__linux__ && (__GLIBC__||__UCLIBC__))]: Undefine
16499         STAT_STATFS2_FRSIZE to exclude code not used in this case.
16501 2012-07-02  Paul Eggert  <eggert@cs.ucla.edu>
16503         fsusage: include files needed for glibc 2.6 fallback
16504         * lib/fsusage.c [STAT_STATVFS || STAT_STATVFS64]:
16505         Include <sys/param.h>, <sys/mount.h>, <sys/vfs.h>
16506         as they are needed for the 2.6 < glibc/Linux < 2.6.36 fallback.
16507         Problem reported by Ludovic Courtès in
16508         <http://lists.gnu.org/archive/html/bug-gnulib/2012-07/msg00005.html>.
16510         fsusage: avoid needless check on GNU/Linux
16511         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Omit STAT_STATFS3_OSF1 check
16512         on GNU/Linux systems, since it can't possibly work.
16514 2012-07-01  Bruno Haible  <bruno@clisp.org>
16516         log: Fix an autoconf >= 2.64 warning.
16517         * modules/log (configure.ac): Require, not invoke, gl_FUNC_LOG.
16518         Reported by Carlos O'Donell <carlos_odonell@mentor.com>.
16520 2012-06-28  Bruno Haible  <bruno@clisp.org>
16522         log10f: Fix possible configuration problem.
16523         * m4/log10f.m4 (gl_FUNC_LOG10F): Augment LIBS by $LOG10F_LIBM, not
16524         $LOGF_LIBM.
16525         Reported by Carlos O'Donell <carlos_odonell@mentor.com>.
16527 2012-06-28  Bruno Haible  <bruno@clisp.org>
16529         remove: No longer override on all platforms. Fixes bug from 2010-03-20.
16530         * m4/remove.m4 (gl_FUNC_REMOVE): Test gl_cv_func_unlink_honors_slashes,
16531         not gl_cv_func_unlink_works.
16532         Reported by Carlos O'Donell <carlos_odonell@mentor.com>.
16534 2012-06-27  Eric Blake  <eblake@redhat.com>
16536         config: drop scripts that automake says are not independent
16537         * config/srclist.txt: Drop elisp-comp, missing, and ylwrap.
16538         * build-aux/elisp-comp: Delete.
16539         * build-aux/missing: Likewise.
16540         * build-aux/ylwrap: Likewise.
16541         * modules/elisp-comp: Likewise.
16542         * MODULES.html.sh: Drop mention of elisp-comp.
16543         * NEWS: Mention this.
16545 2012-06-26  Paul Eggert  <eggert@cs.ucla.edu>
16547         root-uid: new module
16548         This is for portability to Tandem's NonStop Kernel.
16549         * lib/root-uid.h, modules/root-uid: New files.
16550         * lib/euidaccess.c, lib/pt_chown.c, lib/unlinkdir.c:
16551         * lib/write-any-file.c, tests/test-sethostname2.c:
16552         Include "root-uid.h".
16553         * lib/euidaccess.c (euidaccess):
16554         * lib/pt_chown.c (main):
16555         * lib/unlinkdir.c (cannot_unlink_dir):
16556         * lib/write-any-file.c (can_write_any_file):
16557         * m4/mknod.m4 (gl_FUNC_MKNOD):
16558         * tests/test-sethostname2.c (geteuid, main):
16559         Don't assume ROOT_UID == 0.
16560         * modules/euidaccess (Depends-on):
16561         * modules/pt_chown (Depends-on):
16562         * modules/sethostname-tests (Depends-on):
16563         * modules/unlinkdir (Depends-on):
16564         * modules/write-any-file (Depends-on):
16565         Add root-uid.
16567         regex: use locale-independent comparison for codeset name
16568         See Bruno Haible's comment in <http://bugs.gnu.org/10305#120>.
16569         * lib/regcomp.c (init_dfa): Use just ASCII case comparison
16570         for codeset name.
16571         * lib/regex_internal.h: Do not include <strings.h>, since we
16572         no longer use strcasecmp.
16573         * modules/regex (Depends-on): Remove strcase.
16575 2012-06-23  Bruno Haible  <bruno@clisp.org>
16577         getopt-posix: No longer guarantee that option processing is resettable.
16578         * doc/posix-functions/getopt.texi: Drop description of problem with
16579         internal state. Fix info about mingw and msvc9.
16580         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Don't require a resettable
16581         option processing by getopt(). Run three test programs instead of one.
16582         Simplify cross-compilation guess.
16583         * NEWS: Mention the change.
16584         Reported by Rich Felker <dalias@aerifal.cx>.
16586 2012-06-26  Bruno Haible  <bruno@clisp.org>
16588         argp, regex: Ensure strcasecmp gets declared.
16589         * lib/argp-help.c: Include <strings.h>.
16590         * lib/regex_internal.h: Likewise.
16591         Reported and suggested by Joachim Schmitz <jojo@schmitz-digital.de>.
16593 2012-06-24  Bruno Haible  <bruno@clisp.org>
16595         ptsname_r: Make it consistent with ptsname on AIX.
16596         * lib/ptsname_r.c (__ptsname_r): For AIX, use nearly the same
16597         implementation as for OSF/1.
16598         * tests/test-ptsname_r.c (main) [AIX]: Use the modern way of opening
16599         a pty master.
16601         ptsname_r: Make it consistent with ptsname on OSF/1.
16602         * lib/ptsname_r.c (__ptsname_r): Add a different implementation for
16603         OSF/1.
16605 2012-06-24  Bruno Haible  <bruno@clisp.org>
16607         ttyname_r: Fix result on OSF/1, Solaris.
16608         * lib/ttyname_r.c (ttyname_r): Produce a NUL-terminated result.
16610 2012-06-24  Bruno Haible  <bruno@clisp.org>
16612         ptsname_r: Add support for Solaris.
16613         * lib/ptsname_r.c (__ptsname_r): Add a different implementation for
16614         Solaris.
16616         ptsname_r: Fix test failure on native Windows.
16617         * modules/ptsname_r (Depends-on): Add isatty.
16619         ptsname_r: Fix test failures on IRIX, Solaris.
16620         * m4/ptsname_r.m4 (gl_PREREQ_PTSNAME_R): Test whether isatty sets
16621         errno when it fails. Define ISATTY_FAILS_WITHOUT_SETTING_ERRNO
16622         accordingly.
16623         * lib/ptsname_r.c: Include <fcntl.h>.
16624         (__ptsname_r): When isatty returned false, then on IRIX, Solaris
16625         set errno if fd is invalid.
16626         * tests/test-isatty.c (main): Update comments.
16628 2012-06-24  Bruno Haible  <bruno@clisp.org>
16630         ptsname test: Extend test.
16631         * tests/test-ptsname.c: Include <errno.h>.
16632         (main): Test behaviour with invalid file descriptor.
16634 2012-06-23  Paul Eggert  <eggert@cs.ucla.edu>
16636         time: fix obsolete comment
16637         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Remove obsolete
16638         reference to HAVE_STRUCT_TIMESPEC in comment.
16640 2012-06-23  Bruno Haible  <bruno@clisp.org>
16642         getopt-gnu: Handle suboptimal getopt_long's abbreviation handling.
16643         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): If getopt_long exists but
16644         does not handle abbreviated long options with equivalent
16645         disambiguations, set gl_replace_getopt to yes.
16646         * doc/posix-functions/getopt.texi: Mention the OpenBSD 5.0 problem.
16648 2012-06-22  Paul Eggert  <eggert@cs.ucla.edu>
16650         time_r: fix typo that always overrode localtime_r decl
16651         * m4/time_r.m4 (gl_TIME_R): Use AC_CHECK_DECLS, not
16652         AC_CHECK_DECLS_ONCE, since localtime_r is declared in <time.h>,
16653         not in a standard include.
16655 2012-06-22  Bruno Haible  <bruno@clisp.org>
16657         Write "Mac OS X" instead of "MacOS X".
16658         * README: Write "Mac OS X" instead of "MacOS X".
16659         * build-aux/bootstrap: Likewise.
16660         * build-aux/install-reloc: Likewise.
16661         * lib/acl-internal.h: Likewise.
16662         * lib/acl_entries.c: Likewise.
16663         * lib/argp-ba.c: Likewise.
16664         * lib/argp-pv.c: Likewise.
16665         * lib/config.charset: Likewise.
16666         * lib/copy-acl.c: Likewise.
16667         * lib/csharpexec.c: Likewise.
16668         * lib/euidaccess.c: Likewise.
16669         * lib/fbufmode.c: Likewise.
16670         * lib/fflush.c: Likewise.
16671         * lib/file-has-acl.c: Likewise.
16672         * lib/filemode.h: Likewise.
16673         * lib/fpurge.c: Likewise.
16674         * lib/freadable.c: Likewise.
16675         * lib/freadahead.c: Likewise.
16676         * lib/freading.c: Likewise.
16677         * lib/freadptr.c: Likewise.
16678         * lib/freadseek.c: Likewise.
16679         * lib/fseeko.c: Likewise.
16680         * lib/fseterr.c: Likewise.
16681         * lib/fsusage.c: Likewise.
16682         * lib/fwritable.c: Likewise.
16683         * lib/fwriting.c: Likewise.
16684         * lib/get-rusage-as.c: Likewise.
16685         * lib/get-rusage-data.c: Likewise.
16686         * lib/getdomainname.c: Likewise.
16687         * lib/idpriv-drop.c: Likewise.
16688         * lib/idpriv-droptemp.c: Likewise.
16689         * lib/localcharset.c: Likewise.
16690         * lib/locale.in.h: Likewise.
16691         * lib/localename.c: Likewise.
16692         * lib/mbsrtowcs-state.c: Likewise.
16693         * lib/nproc.c: Likewise.
16694         * lib/passfd.c: Likewise.
16695         * lib/posix_openpt.c: Likewise.
16696         * lib/printf-parse.c: Likewise.
16697         * lib/progreloc.c: Likewise.
16698         * lib/safe-read.h: Likewise.
16699         * lib/safe-write.h: Likewise.
16700         * lib/sched.in.h: Likewise.
16701         * lib/set-mode-acl.c: Likewise.
16702         * lib/signal.in.h: Likewise.
16703         * lib/stdint.in.h: Likewise.
16704         * lib/stdio-impl.h: Likewise.
16705         * lib/stdlib.in.h: Likewise.
16706         * lib/strtod.c: Likewise.
16707         * lib/sys_select.in.h: Likewise.
16708         * lib/tcgetsid.c: Likewise.
16709         * lib/unistd.in.h: Likewise.
16710         * lib/unlockpt.c: Likewise.
16711         * lib/vasnprintf.c: Likewise.
16712         * lib/vma-iter.c: Likewise.
16713         * lib/wcsrtombs-state.c: Likewise.
16714         * m4/acl.m4: Likewise.
16715         * m4/acosl.m4: Likewise.
16716         * m4/asinl.m4: Likewise.
16717         * m4/atanl.m4: Likewise.
16718         * m4/c-stack.m4: Likewise.
16719         * m4/cosl.m4: Likewise.
16720         * m4/expl.m4: Likewise.
16721         * m4/extensions.m4: Likewise.
16722         * m4/fdatasync.m4: Likewise.
16723         * m4/fmal.m4: Likewise.
16724         * m4/frexp.m4: Likewise.
16725         * m4/frexpf.m4: Likewise.
16726         * m4/frexpl.m4: Likewise.
16727         * m4/fsusage.m4: Likewise.
16728         * m4/getdomainname.m4: Likewise.
16729         * m4/getloadavg.m4: Likewise.
16730         * m4/getopt.m4: Likewise.
16731         * m4/gettext.m4: Likewise.
16732         * m4/gnulib-common.m4: Likewise.
16733         * m4/intdiv0.m4: Likewise.
16734         * m4/intlmacosx.m4: Likewise.
16735         * m4/largefile.m4: Likewise.
16736         * m4/ldexpl.m4: Likewise.
16737         * m4/link-follow.m4: Likewise.
16738         * m4/locale-ar.m4: Likewise.
16739         * m4/locale-fr.m4: Likewise.
16740         * m4/locale-ja.m4: Likewise.
16741         * m4/locale-tr.m4: Likewise.
16742         * m4/locale-zh.m4: Likewise.
16743         * m4/locale_h.m4: Likewise.
16744         * m4/lock.m4: Likewise.
16745         * m4/logl.m4: Likewise.
16746         * m4/mathfunc.m4: Likewise.
16747         * m4/minus-zero.m4: Likewise.
16748         * m4/mktime.m4: Likewise.
16749         * m4/mmap-anon.m4: Likewise.
16750         * m4/multiarch.m4: Likewise.
16751         * m4/nanosleep.m4: Likewise.
16752         * m4/nocrash.m4: Likewise.
16753         * m4/poll.m4: Likewise.
16754         * m4/printf-frexpl.m4: Likewise.
16755         * m4/printf.m4: Likewise.
16756         * m4/signbit.m4: Likewise.
16757         * m4/sinl.m4: Likewise.
16758         * m4/sqrtl.m4: Likewise.
16759         * m4/strerror_r.m4: Likewise.
16760         * m4/tanl.m4: Likewise.
16761         * m4/threadlib.m4: Likewise.
16762         * m4/ttyname_r.m4: Likewise.
16763         * m4/unlink.m4: Likewise.
16764         * m4/visibility.m4: Likewise.
16765         * m4/wcwidth.m4: Likewise.
16766         * tests/minus-zero.h: Likewise.
16767         * tests/test-alloca-opt.c: Likewise.
16768         * tests/test-copy-acl.sh: Likewise.
16769         * tests/test-copy-file.sh: Likewise.
16770         * tests/test-fdatasync.c: Likewise.
16771         * tests/test-file-has-acl.sh: Likewise.
16772         * tests/test-flock.c: Likewise.
16773         * tests/test-fsync.c: Likewise.
16774         * tests/test-localename.c: Likewise.
16775         * tests/test-malloca.c: Likewise.
16776         * tests/test-nonblocking-pipe.h: Likewise.
16777         * tests/test-nonblocking-socket.h: Likewise.
16778         * tests/test-openpty.c: Likewise.
16779         * tests/test-posix_openpt.c: Likewise.
16780         * tests/test-ptsname.c: Likewise.
16781         * tests/test-ptsname_r.c: Likewise.
16782         * tests/test-sameacls.c: Likewise.
16783         * tests/test-select.h: Likewise.
16784         * tests/test-set-mode-acl.sh: Likewise.
16785         * tests/test-snprintf-posix.h: Likewise.
16786         * tests/test-sprintf-posix.h: Likewise.
16787         * tests/test-strtod.c: Likewise.
16788         * tests/test-time.c: Likewise.
16789         * tests/test-vasnprintf-posix.c: Likewise.
16790         * tests/test-vasprintf-posix.c: Likewise.
16791         * doc/acl-resources.txt: Likewise.
16792         * doc/**/*.texi: Likewise.
16793         Reported by Max Horn <max@quendi.de>.
16795 2012-06-22  Bruno Haible  <bruno@clisp.org>
16797         grantpt: Relax requirement regarding invalid file descriptors.
16798         * lib/grantpt.c: Don't include <fcntl.h>.
16799         (grantpt): Don't verify the validity of the file descriptor.
16800         * modules/grantpt (Depends-on): Remove fcntl-h.
16801         * tests/test-grantpt.c (main): Allow grantpt to succeed for invalid
16802         file descriptors.
16803         * doc/posix-functions/grantpt.texi: Document more platforms on which
16804         grantpt succeeds for invalid file descriptors.
16805         Reported by Rich Felker <dalias@aerifal.cx>.
16807 2012-06-22  Bruno Haible  <bruno@clisp.org>
16809         fbufmode test: Don't test unportable behaviour.
16810         * tests/test-fbufmode.c (test_mode): New function, extracted from main.
16811         (main): Invoke it three times.
16812         Reported by Szabolcs Nagy <nsz@port70.net>
16813         and Rich Felker <dalias@aerifal.cx>.
16815 2012-06-21  Bruno Haible  <bruno@clisp.org>
16817         gnulib-tool: Refactor inctests variable.
16818         * gnulib-tool: Normalize inctests to 'true' or 'false', not ''.
16819         (func_modules_transitive_closure,
16820         func_modules_transitive_closure_separately,
16821         func_import, func_create_testdir): Update.
16823         gnulib-tool: --create-[mega]testdir, --[mega]test implies --with-tests.
16824         * gnulib-tool: Accept option --without-tests.
16825         (func_usage): Document --without-tests option. Rearrange.
16826         (inctests): Normalize according to the mode.
16827         * NEWS: Mention the change.
16828         Suggested by Simon Josefsson.
16830 2012-06-21  Bruce Korb  <bkorb@gnu.org>
16832         parse-duration test: Avoid spurious output.
16833         * tests/test-parse-duration.sh: Reindent with leading tabs.
16835 2012-06-21  Jim Meyering  <meyering@redhat.com>
16837         maint: disable the strncpy prohibition
16838         * cfg.mk: Do not prohibit strncpy here.
16840 2012-06-21  Bruno Haible  <bruno@clisp.org>
16842         nonblocking: Avoid compilation error on mingw64.
16843         * m4/stdio_h.m4 (gl_STDIO_H): Invoke gl_MODULE_INDICATOR for scanf,
16844         fscanf.
16845         * modules/vscanf (configure.ac): Invoke gl_MODULE_INDICATOR.
16846         * modules/vfscanf (configure.ac): Likewise.
16847         * lib/stdio-read.c (scanf, fscanf, vscanf, vfscanf): Enable function
16848         definition only if stdio.h has prepared it.
16849         Reported by Daniel P. Berrange <berrange@redhat.com>.
16851 2012-06-20  Bernd Jendrissek  <bernd.jendrissek@gmail.com>  (tiny change)
16853         gnulib-tool: Use readlink if it is available.
16854         * gnulib-tool (func_readlink): Choose function more appropriately.
16856 2012-06-21  Paul Eggert  <eggert@cs.ucla.edu>
16858         posixtm-tests: port to buggy compiler
16859         Problem reported by Simon Josefsson in
16860         <http://lists.gnu.org/archive/html/bug-gnulib/2012-06/msg00246.html>.
16861         * modules/posixtm-tests (Depends-on): Add stdint.
16862         * tests/test-posixtm.c (struct posixtm_test.t_expected):
16863         Now of type int_least64_t, not int64_t, both because that's
16864         what INT64_C returns and because int_least64_t works even
16865         on 72-bit hosts.
16866         (T): Use INT64_C on constants outside the traditional int range,
16867         to work around compiler bug noted by Simon.
16869         mktime: fix integer overflow in 'configure'-time test
16870         * m4/mktime.m4 (gl_FUNC_MKTIME): Do not rely on undefined behavior
16871         after integer overflow.  Problem reported by Rich Felker in
16872         <http://lists.gnu.org/archive/html/bug-gnulib/2012-06/msg00257.html>.
16873         Also, don't look for further instances of a bug if we've already
16874         found one instance; this helps 'configure' run faster.
16876 2012-06-20  John Darrington  <john@darrington.wattle.id.au>  (tiny change)
16878         tmpfile, clean-temp: Fix invocation of GetVersionEx.
16879         * lib/tmpfile.c (supports_delete_on_close): Initialize parameter for
16880         GetVersionEx correctly.
16881         * lib/clean-temp.c (supports_delete_on_close): Likewise.
16883 2012-06-20  Bruno Haible  <bruno@clisp.org>
16885         fdopen: Allow implementations that don't reject invalid fd arguments.
16886         * m4/fdopen.m4 (gl_FUNC_FDOPEN): Let the test pass if fdopen(-1,...)
16887         succeeds.
16888         Reported by Rich Felker <dalias@aerifal.cx>.
16890 2012-06-20  Simon Josefsson  <simon@josefsson.org>
16892         * modules/parse-duration-tests (test_parse_duration_LDADD): Don't
16893         bring in LIBINTL.
16895 2012-06-20  Paul Eggert  <eggert@cs.ucla.edu>
16897         init.sh: do not rely on autoupated PWD
16898         This addresses symptoms of the problem reported by Nelson H.F. Beebe in
16899         <http://lists.gnu.org/archive/html/bug-gzip/2012-06/msg00008.html>.
16900         Although Nelson's bug was not necessarily fixed by this patch,
16901         it seems wise to make the change for safety.
16902         * tests/init.sh (path_prepend_): Do not rely on PWD updating
16903         automagically after 'cd'; this is not reliable on older shells.
16904         (setup_): Fail if we cannot cd to temporary directory.
16906 2012-06-19  Bruno Haible  <bruno@clisp.org>
16908         stat, fstat: Avoid warnings on mingw64.
16909         * lib/stat.c (stat) [_GL_WINDOWS_64_BIT_ST_SIZE]: Undefine before
16910         redefining.
16911         * lib/fstat.c (stat, fstat) [_GL_WINDOWS_64_BIT_ST_SIZE]: Likewise.
16912         Reported by Daniel P. Berrange <berrange@redhat.com>.
16914 2012-06-19  Bruno Haible  <bruno@clisp.org>
16916         stdioext: Add support for musl libc.
16918         * m4/fbufmode.m4 (gl_FUNC_FBUFMODE): Test whether __fbufsize exists.
16919         * lib/fbufmode.c (fbufmode): Add conditional code for musl.
16921         * m4/fseterr.m4: New file.
16922         * lib/fseterr.h (fseterr): Define as an alias of __fseterr if that
16923         function exists.
16924         * modules/fseterr (Files): Add m4/fseterr.m4.
16925         (configure.ac): Invoke gl_FUNC_FSETERR. Compile fseterr.c if
16926         __fseterr does not exist.
16927         (Makefile.am): Remove fseterr.c from lib_SOURCES.
16929         * lib/freadable.h: Update comment.
16931         * lib/fwritable.h: Update comment.
16933         * lib/freading.h: Update comment.
16935         * lib/fwriting.h: Update comment.
16937         * m4/freadahead.m4: New file.
16938         * lib/freadahead.h (freadahead): Define as an alias of __freadahead if
16939         that function exists.
16940         * modules/freadahead (Files): Add m4/freadahead.m4.
16941         (configure.ac): Invoke gl_FUNC_FREADAHEAD. Compile freadahead.c if
16942         __freadahead does not exist.
16943         (Makefile.am): Remove freadahead.c from lib_SOURCES.
16945         * m4/freadptr.m4: New file.
16946         * lib/freadptr.h (freadptr): Define as an alias of __freadptr if that
16947         function exists.
16948         * modules/freadptr (Files): Add m4/freadptr.m4.
16949         (configure.ac): Invoke gl_FUNC_FREADPTR. Compile freadptr.c if
16950         __freadptr does not exist.
16951         (Makefile.am): Remove freadptr.c from lib_SOURCES.
16953         * m4/freadseek.m4: New file.
16954         * lib/freadseek.c (freadptrinc): Use __freadptrinc if that function
16955         exists.
16956         * modules/freadseek (Files): Add m4/freadseek.m4.
16957         (configure.ac): Invoke gl_FUNC_FREADSEEK.
16959         * lib/fpurge.c (fpurge): Update comment.
16961         Reported by and with help from Rich Felker <dalias@aerifal.cx>.
16963 2012-06-19  Bruno Haible  <bruno@clisp.org>
16965         *printf-posix: Put more info into config.log.
16966         * m4/printf.m4 (gl_PRINTF_ENOMEM): Emit conftest's error output and
16967         exit code into config.log.
16969 2012-06-19  Bruno Haible  <bruno@clisp.org>
16971         getopt-gnu: Fix exit code overflow in autoconf test.
16972         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Squash exit code values,
16973         to keep them below < 128.
16975 2012-06-17  Jim Meyering  <meyering@redhat.com>
16977         maint.mk: fix typo in code to derive GPG key at release time
16978         * top/maint.mk (gpg_key_ID): Fix typo: $3 -> $$3
16980 2012-06-17  Paul Eggert  <eggert@cs.ucla.edu>
16982         regex: avoid warning when pointers are not long
16983         * lib/regcomp.c (parse_dup_op, mark_opt_subexp): Cast between void *
16984         and uintptr_t, not long, for portability to hosts where pointers and
16985         long have different sizes.  Issue noted by Daniel P. Berrange in
16986         <http://lists.gnu.org/archive/html/bug-gnulib/2012-06/msg00122.html>
16987         and fix suggested by Bruno Haible in
16988         <http://lists.gnu.org/archive/html/bug-gnulib/2012-06/msg00128.html>.
16990 2012-06-17  Bruno Haible  <bruno@clisp.org>
16992         dummy: Relicense into the public domain.
16993         * modules/dummy (License): Set to "public domain".
16994         Suggested by Reuben Thomas.
16996 2012-06-12  Akim Demaille  <akim@lrde.epita.fr>
16998         announce-gen: VPATH issues
16999         * build-aux/announce-gen (--srcdir): New option, used to trim the
17000         $srcdir part of the path from $builddir to NEWS.
17001         * top/maint.mk (announcement): Adjust.
17003 2012-06-12  Akim Demaille  <akim@lrde.epita.fr>
17005         gnu-web-doc-update: VPATH builds
17006         * build-aux/gnu-web-doc-update (--builddir): New option.
17007         Revamp the handling of options.
17008         Prefer $(...) to `...`.
17009         Don't pass --tmpdir=. to mktemp, it is useless given that we specify
17010         the template, and it is GNU mktemp specific.
17011         Prefer set -e to long series of &&.
17012         Restore the initial git branch, not "master".
17013         Properly initialize submodules (don't rely only on bootstrap).
17014         Do not reconfigure blindly, use config.status.
17015         * top/README-release: Update instructions for gnu-web-doc-update.
17017 2012-06-11  Jim Meyering  <meyering@redhat.com>
17019         maint.mk: revert most of the previous change re "all these"
17020         * top/maint.mk (prohibit_undesirable_word_seq_RE_): Remove that pair.
17021         For rationale, see the discussion at
17022         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30912
17024 2012-06-10  Karl Berry  <karl@gnu.org>
17026         * build-aux/gnupload: with --dry-run, do not ask for gpg pw.
17028         * build-aux/gnupload: implement --replace, ftp-upload protocol v1.2.
17030 2012-06-10  Bruce Korb  <bkorb@gnu.org>
17032         parse-duration: Relicense under LGPLv2+.
17033         * modules/parse-duration (License): Change to LGPLv2+.
17035 2012-06-10  Jim Meyering  <meyering@redhat.com>
17037         maint.mk: prohibit common grammar error: "all these"
17038         * top/maint.mk (prohibit_undesirable_word_seq_RE_): Add "all these" to
17039         the list of prohibited word sequences.  It should be "all of these".
17040         * lib/tempname.c (__gen_tempname): Fix one of them.
17042 2012-06-07  Akim Demaille  <akim@lrde.epita.fr>
17044         do-release-commit-and-tag: support VPATH builds
17045         * build-aux/do-release-commit-and-tag: Prefer $(...) to `...`.
17046         (noteworthy): Defined earlier to factor its value.
17047         (noteworthy_stub): New.
17048         Use it to factor.
17049         (help_version): Split into...
17050         (help, version): these.
17051         Adjust the option processing part.
17052         Support "--option=value" in addition to "--option value".
17053         (builddir): New.
17054         (--builddir): New option.
17055         * top/README-release: Document this.
17056         Reword slightly so that the reader cannot understand that he
17057         has to do these steps before calling do-release-commit-and-tag.
17059 2012-06-07  Akim Demaille  <akim@lrde.epita.fr>
17061         readme-release: also require announce-gen and maintainer-makefile
17062         * modules/readme-release (Depends-on): here.
17063         * modules/announce-gen, modules/do-release-commit-and-tag,
17064         modules/gnu-web-doc-update, modules/maintainer-makefile
17065         (Description): Point to readme-release.
17067 2012-06-07  Akim Demaille  <akim@lrde.epita.fr>
17069         maint.mk: fix VPATH issues.
17070         * top/maint.mk (news-check): GNU Make understand $< very well.
17071         (release-prep): NEWS is in $(srcdir).
17073 2012-06-05  Akim Demaille  <akim@lrde.epita.fr>
17075         readme-release: require the promoted modules.
17076         * modules/readme-release (Depends-on): Add
17077         do-release-commit-and-tag, gnupload, and gnu-web-doc-update, used
17078         in this text.
17080 2012-05-21  Paolo Bonzini  <bonzini@gnu.org>
17081             Bruno Haible  <bruno@clisp.org>
17083         error, strerror-override: Support mingw64 from Fedora 17.
17084         * lib/errno.in.h (GNULIB_defined_ESTREAMS): Use a different indicator
17085         for ETXTBSY, ENODATA, ENOSR, ENOSTR, ETIME, EOTHER, compared to
17086         EINPROGRESS.
17087         * lib/strerror-override.h (strerror_override): Test it.
17088         * lib/strerror-override.c (strerror_override): Likewise.
17089         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Test also ETXTBSY.
17091 2012-05-21  Paolo Bonzini  <bonzini@gnu.org>
17092             Bruno Haible  <bruno@clisp.org>
17094         error, strerror-override: Support mingw64 from Fedora 17.
17095         * lib/errno.in.h (GNULIB_defined_ENOTRECOVERABLE): Use a different
17096         indicator for ENOTRECOVERABLE, compared to EOWNERDEAD.
17097         * lib/strerror-override.h (strerror_override): Test it.
17098         * lib/strerror-override.c (strerror_override): Likewise.
17100 2012-06-03  Bruno Haible  <bruno@clisp.org>
17102         error, strerror-override: Support new errno values from POSIX:2008.
17103         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Test also EOWNERDEAD and
17104         ENOTRECOVERABLE.
17105         * lib/errno.in.h (EOWNERDEAD, ENOTRECOVERABLE): Define on all
17106         platforms.
17107         * lib/strerror-override.c (strerror_override): Conditionalize the
17108         EOWNERDEAD, ENOTRECOVERABLE handling on GNULIB_defined_EOWNERDEAD.
17109         * lib/strerror-override.h (strerror_override): Declare also if
17110         GNULIB_defined_EOWNERDEAD is defined.
17111         * tests/test-errno.c (e130, e131): New variables.
17112         * doc/posix-headers/errno.texi: Mention the status for EOWNERDEAD,
17113         ENOTRECOVERABLE.
17114         Reported by Paolo Bonzini.
17116 2012-05-31  Jim Meyering  <meyering@redhat.com>
17118         savewd: add missing dependency on sys_wait module
17119         * modules/savewd (Depends-on): Add sys_wait, needed at least
17120         for MSVC.  Report and suggested change by Michael Goffioul.
17122 2012-05-29  Paul Eggert  <eggert@cs.ucla.edu>
17124         system-quote-tests: port to CentOS 5
17125         Problem reported by Tom G. Christensen in
17126         <http://lists.gnu.org/archive/html/bug-gnulib/2012-05/msg00255.html>.
17127         * tests/test-system-quote-child.c (fclose, fprintf): Undef.
17129 2012-05-29  Jim Meyering  <meyering@redhat.com>
17131         maint: fix typos in comments and ChangeLog
17132         Culprits identified and fixed mostly automatically using these commands:
17133         git ls-files | misspellings -f - |grep -v '^ERROR:' |perl -pe \
17134         's/^(.*?)\[(\d+)\]: (\w+) -> "(.*?)"$/sed -i '\''${2}s!$3!$4!'\'' $1/'
17135         using http://github.com/lyda/misspell-check
17136         * ChangeLog: Fix typos.
17137         * doc/solaris-versions: Likewise.
17138         * lib/regexec.c (re_search_stub): Likewise.
17139         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
17141 2012-05-27  Paul Eggert  <eggert@cs.ucla.edu>
17143         manywarnings: remove duplicate -Wmultichar entry
17144         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Remove duplicate
17145         entry for -Wmultichar.  -Wno-multichar is in the GCC 4.7.0 manual,
17146         so keep the entry marked as documented.
17148 2012-05-27  Karl Berry  <karl@gnu.org>
17150         * config/srclist.txt (mktime.c): remove last libc sync,
17151         perhaps just temporarily.
17153 2012-05-26  Paul Eggert  <eggert@cs.ucla.edu>
17155         regex: don't assume uint64_t or uint32_t
17156         * lib/regcomp.c (init_word_char): Don't assume that the types
17157         uint64_t and uint32_t exist.  The C standard doesn't guarantee
17158         them, and on some 32-bit compilers there is no uint64_t.
17159         Problem reported by Gianluigi Tiesi in
17160         <http://lists.gnu.org/archive/html/bug-gnulib/2012-03/msg00154.html>.
17162 2012-05-25  Jim Meyering  <meyering@redhat.com>
17164         maint.mk: add strncpy-prohibiting syntax-check rule
17165         * top/maint.mk (sc_prohibit_strncpy): New rule, from coreutils.
17167 2012-05-24  Jim Meyering  <meyering@redhat.com>
17169         maint.mk: compute $(gpg_key_ID) more portably
17170         * top/maint.mk (gpg_key_ID): Use awk in place of sed '{...;...;}'.
17171         That use of sed is not portable to some fringe systems.
17172         Reported by Paul Eggert in
17173         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30793/focus=30802
17175 2012-05-23  Paul Eggert  <eggert@cs.ucla.edu>
17177         mktime: sync from glibc
17178         * config/srclist.txt: Uncomment mktime.c.
17179         * lib/mktime.c: Sync from glibc master.  This incorporates 3 changes.
17180         First, indent with tabs, since glibc uses tabs and doesn't want to
17181         change and we'd rather be identical to glibc.  Also, two small
17182         coding changes:
17183         (isdst_differ): Use &&, not &, as && is the usual style.
17184         (__mktime_internal): Rename local var from abs_diff to approx_abs_diff
17185         for clarity.
17187 2012-05-23  Akim Demaille  <akim@lrde.epita.fr>
17189         announce-gen: du -h is more portable than du --human
17190         * build-aux/announce-gen (sizes): Invoke du with -h instead
17191         of --human.  Accept leading white space in its output.
17193 2012-05-23  Akim Demaille  <akim@lrde.epita.fr>
17195         announce-gen: Improve diagnostics.
17196         * build-aux/announce-gen: When parsing command line options,
17197         prefer "announce-gen: option --release-type requires an argument"
17198         to "Option release-type requires an argument".
17200 2012-05-23  Akim Demaille  <akim@lrde.epita.fr>
17202         maint.mk: gpg_key_ID: use sed more portably
17203         * top/maint.mk (gpg_key_ID): End sed block with a semicolon before
17204         the closing brace.
17205         (refresh-po): Fuse two sed invocations into one.
17207 2012-05-15  Akim Demaille  <akim@lrde.epita.fr>
17209         gitlog-to-changelog: support the log message format used in Bison.
17210         * build-aux/gitlog-to-changelog: Support --strip-tab and
17211         --strip-cherry-picked.
17213 2012-05-21  Paolo Bonzini  <bonzini@gnu.org>
17215         poll/select: prevent busy-waiting.  SwitchToThread() only gives away
17216         the rest of the current time slice to another thread in the current
17217         process. So if the thread that feeds the file decscriptor we're
17218         polling is not in the current process, we get busy-waiting.
17219         * lib/poll.c: Use SleepEx(1, TRUE) instead of SwitchToThread().
17220         Patch from Theodore Leblond.
17221         * lib/select.c: Split polling out of the loop that sets the output
17222         fd_sets.  Check for zero result and loop if the wait timeout is
17223         infinite.
17225 2012-05-21  Simon Josefsson  <simon@josefsson.org>
17227         select: Fix build error on IRIX 6.5.
17228         * lib/select.c: Include stddef.h for NULL.
17230 2012-05-21  Simon Josefsson  <simon@josefsson.org>
17232         gc: fix libgcrypt detection on older machines.
17233         * m4/gc.m4: Reject libgcrypt earlier than 1.4.4.  Collapse
17234         copyright years because the file has been distributed every year
17235         since it was created.
17237 2012-05-18  Paul Eggert  <eggert@cs.ucla.edu>
17239         crypto: fix bug in large buffer handling
17240         Problem reported by Serge Belyshev for glibc in
17241         <http://sourceware.org/bugzilla/show_bug.cgi?id=14090> and for gnulib in
17242         <http://lists.gnu.org/archive/html/bug-gnulib/2012-05/msg00226.html>.
17243         * lib/md4.c (md4_process_block):
17244         * lib/md5.c (md5_process_block):
17245         * lib/sha1.c (sha1_process_block):
17246         * lib/sha256.c (sha256_process_block):
17247         Don't assume the buffer length is less than 2**32.
17248         * lib/sha512.c (sha512_process_block): Likewise.
17249         Here, the bug is present only in the rare case where the host does
17250         not support uint64_t or where size_t is wider than 64 bits.
17251         Use u64size to work around the problems.
17252         * lib/u64.h (u64size): New macro.
17254 2012-05-15  Pádraig Brady  <P@draigBrady.com>
17256         fsusage: fix block size returned on older Linux 2.6
17258         * lib/fsusage.c: Fall back to (struct statfs).f_frsize
17259         which is available since Linux 2.6.
17260         * m4/fsusage.m4 (STAT_STATFS2_FRSIZE): Always define
17261         when the member is available so it can be used as a fallback.
17262         * doc/posix-functions/statvfs.texi: Mention the hang issue
17263         on Linux < 2.6.36.
17265 2012-05-14  Paul Eggert  <eggert@cs.ucla.edu>
17267         bootstrap: suppress stderr chatter
17268         * build-aux/bootstrap (insert_sorted_if_absent, main program):
17269         Omit unnecessary chatter to stderr.  The main program chatter
17270         was there only inadvertantly.
17272         bootstrap: .gitignore files created by autopoint, libtool
17273         I ran into this problem when bootstrapping the latest diffutils.
17274         After './bootstrap', 'git status' reported lots of untracked files
17275         m4/codeset.m4, m4/gettext.m4, etc.  These files were created by
17276         autopoint and do not need to be version-controlled.
17277         * build-aux/bootstrap: Put into .gitignore the files that
17278         autopoint and libtool create, by keeping track of files that exist
17279         after but not before these programs are run.
17280         (version_controlled_file): Move up.  2nd arg is now full file
17281         name, not base name; this is more convenient.  Put CVS at the end,
17282         as it's now somewhat deprecated.
17284 2012-05-14  Jim Meyering  <meyering@redhat.com>
17286         ignore-value.h: remove unused _GL_ATTRIBUTE_DEPRECATED definition
17287         * lib/ignore-value.h (_GL_ATTRIBUTE_DEPRECATED): Remove now-unused
17288         definition.  Reported by Bruno Haible.
17290 2012-05-13  Bruno Haible  <bruno@clisp.org>
17291             Paul Eggert  <eggert@cs.ucla.edu>
17293         binary-io: Define set_binary_mode function.
17294         * lib/binary-io.h (set_binary_mode): New function.
17295         (SET_BINARY): Define in terms of set_binary_mode.
17296         * modules/binary-io (configure.ac): Require AC_C_INLINE.
17297         * tests/test-binary-io.c (main): Accept an argument, and test either
17298         set_binary_mode or SET_BINARY depending on the argument.
17299         * tests/test-binary-io.sh: Invoke test-binary-io twice, with an
17300         argument. Clean up also t-bin-out0.tmp.
17302 2012-05-13  Stefano Lattarini  <stefano.lattarini@gmail.com>
17304         bootstrap: take advantage of POSIX shell features
17306         The 'bootstrap' script offered by Gnulib script already uses POSIX
17307         shell features (like $((...)) arithmetic expansions) that are not
17308         supported by legacy Bourne shells like Solaris 10 /bin/sh.  This
17309         means that bootstrap must already be run using a proper POSIX shell,
17310         which will thus provide more features, like ${var#pattern} parameter
17311         expansion or inversion of a command exit status with '!'.  We can
17312         thus use these features to improve the clarity and the performances
17313         of the bootstrap script.
17315         Suggested by Eric Blake.
17317         * build-aux/bootstrap: Prefer xpg4 parameter expansions over use
17318         of sed/expr plus command substitutions, to save some forks.  While
17319         we are at it, prefer the POSIX $(...) form of command substitution,
17320         rather than the legacy form `...` (since the former is visually
17321         clearer and interacts better with quoting), and prefer the idiom:
17322           "if ! CMD; then ACTION ..."
17323         over the idiom:
17324           "if CMD; then :; else ACTION ..."
17325         which was required by legacy Bourne shells not supporting '!'.
17327 2012-05-12  Bruno Haible  <bruno@clisp.org>
17329         system-quote: Add more comments.
17330         * lib/system-quote.h: Add more comments about wilcards and limitations.
17331         Suggested by Eli Zaretskii <eliz@gnu.org>.
17333         sh-quote, system-quote: Add comments about wildcards.
17334         * lib/sh-quote.h: Clarify what happens with wildcard characters.
17335         * lib/system-quote.h: Likewise.
17336         Reported by Eli Zaretskii <eliz@gnu.org>.
17338 2012-05-11  Paul Eggert  <eggert@cs.ucla.edu>
17340         fsusage: check for GNU/Linux statvfs problem dynamically
17341         * lib/fsusage.c [STAT_STATVFS && __linux__ && (__GLIBC__||__UCLIBC__)]:
17342         Define STAT_STATFS2_BSIZE too, since in this case the code now
17343         checks dynamically whether statvfs is reliable, falling back on
17344         Linux-style statfs otherwise.
17345         (statvfs_works): New function, for dynamically testing statvfs.
17346         (get_fs_usage) [STAT_STATVFS]: Use it.
17347         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Remove static check for
17348         statvfs on GNU/Linux hosts, since it's now done dynamically.
17350 2012-05-10  Bruno Haible  <bruno@clisp.org>
17352         system-quote, execute, spawn-pipe: Escape '?' on Windows.
17353         * lib/system-quote.c (SHELL_SPECIAL_CHARS, CMD_SPECIAL_CHARS): Add the
17354         '?' character.
17355         * lib/w32spawn.h (SHELL_SPECIAL_CHARS): Likewise.
17356         * tests/test-system-quote-main.c (check_all): Check also strings like
17357         "??????????".
17358         Reported by Eli Zaretskii <eliz@gnu.org>.
17360 2012-05-10  Paul Eggert  <eggert@cs.ucla.edu>
17362         _Noreturn: port config.h to gcc -Wundef
17363         * m4/gnulib-common.m4 (gl_COMMON_BODY): Check that __STDC_VERSION__ is
17364         defined before using it, for gcc -Wundef.  Reported by Akim Demaille in
17365         <http://lists.gnu.org/archive/html/bug-gnulib/2012-05/msg00147.html>.
17367 2012-05-10  Bruno Haible  <bruno@clisp.org>
17369         system-quote: Refactor.
17370         * lib/system-quote.h (system_quote_copy): Fix comment.
17371         * lib/system-quote.c (windows_createprocess_quote, windows_cmd_quote):
17372         New functions, extracted from system_quote_copy.
17373         (system_quote_length, system_quote_copy): Use these functions.
17374         Reported by Paul Eggert.
17376 2012-05-08  Bruno Haible  <bruno@clisp.org>
17378         execute, spawn-pipe: Escape '*' characters in arguments on Windows.
17379         * lib/w32spawn.h (SHELL_SPECIAL_CHARS): Add the '*' character.
17381 2012-05-08  Bruno Haible  <bruno@clisp.org>
17383         Tests for module 'system-quote'.
17384         * modules/system-quote-tests: New file.
17385         * tests/test-system-quote.sh: New file.
17386         * tests/test-system-quote-main.c: New file.
17387         * tests/test-system-quote-child.c: New file.
17389         New module 'system-quote'.
17390         * lib/system-quote.h: New file.
17391         * lib/system-quote.c: New file.
17392         * modules/system-quote: New file.
17394 2012-05-08  Bruno Haible  <bruno@clisp.org>
17396         sh-quote: Make C++ safe and allow multiple inclusion.
17397         * lib/sh-quote.h: Add double-inclusion guard. For C++, wrap function
17398         declarations in extern "C".
17400 2012-05-08  Bruno Haible  <bruno@clisp.org>
17402         sh-quote tests: Make tests stricter.
17403         * tests/test-sh-quote.c (check_one): Check the return value of
17404         shell_quote_copy.
17405         (main): Check a string with a CR character. Check a string that
17406         contains UCHAR_MAX.
17408 2012-05-08  Akim Demaille  <akim@lrde.epita.fr>
17410         warnings.m4: provide a means to specify the program to compile.
17411         * m4/warnings.m4 (gl_COMPILER_OPTION_IF): New, extracted from...
17412         (gl_WARN_ADD): here.
17413         Use gl_AS_VAR_APPEND.
17414         Support an argument to specify the program to compile.
17415         (gl_WARN_ADD): Accept an argument to specify the program to compile.
17416         AC_SUBST the WARN_CFLAGS when they are used.
17417         * modules/warnings (configure.ac): Don't AC_SUBST WARN_CFLAGS,
17418         leave this to gl_WARN_ADD.
17420 2012-05-08  Eric Blake  <eblake@redhat.com>
17422         doc: recommendations on gettext version
17423         * doc/gnulib-tool.texi (gettextize and autopoint): Document the
17424         choice between versions.
17425         * DEPENDENCIES (gettext): Cover both approaches.
17427 2012-05-08  Jim Meyering  <meyering@redhat.com>
17429         init.sh: explain why EXEEXT support uses aliases rather than functions
17430         * tests/init.sh: Add a comment.
17432         init.sh: don't let bash aliases interfere with tests
17433         * tests/init.sh: Undefine any pre-defined aliases if the selected shell
17434         is bash.  This avoids problems for those who alias standard commands to
17435         non-conforming uses, like those reported in http://bugs.gnu.org/11256.
17436         Suggested by Tim Mooney <Tim.Mooney@ndsu.edu>.
17438 2012-05-07  Paul Eggert  <eggert@cs.ucla.edu>
17440         stdint: be more consistent with glibc, SunOS libc
17441         * lib/stdint.in.h (gl_int_fast8_t, gl_uint_fast8_t)
17442         (gl_int_fast16_t, gl_uint_fast16_t)
17443         (gl_int_fast32_t, gl_uint_fast32_t)
17444         (INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX)
17445         (INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX)
17446         (INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
17447         Be consistent with glibc by default, and with SunOS 5.10 and later
17448         if __sun is defined.  This lessens the likelihood of clashes if
17449         code compiled for older hosts is combined with code compiled for
17450         newer ones.  Problem reported by Niels Möller in
17451         <http://lists.gnu.org/archive/html/bug-gnulib/2012-05/msg00074.html>.
17453 2012-05-07  Eric Blake  <eblake@redhat.com>
17455         isatty: relax license to LGPLv2+
17456         * modules/isatty (License): Relax license.
17458 2012-05-06  Paul Eggert  <eggert@cs.ucla.edu>
17460         stat-size: comment fix
17461         * lib/stat-size.h: Remove obsolete comment about indenting.
17463 2012-05-06  Bruno Haible  <bruno@clisp.org>
17465         Tests for module 'sh-quote'.
17466         * modules/sh-quote-tests: New file.
17467         * tests/test-sh-quote.c: New file.
17469 2012-05-06  Bruno Haible  <bruno@clisp.org>
17471         sh-quote: Improve shell_quote_argv's signature.
17472         * lib/sh-quote.h (shell_quote_argv): Make argument array a 'const *'.
17473         * lib/sh-quote.c (shell_quote_argv): Likewise.
17475 2012-05-06  Paul Eggert  <eggert@cs.ucla.edu>
17477         stdint: document issues with int_fast8_t etc.
17478         * doc/posix-headers/stdint.texi (stdint.h): Say that other
17479         stdint.h substitutes may define these types differently.  See
17480         <http://lists.gnu.org/archive/html/bug-gnulib/2012-05/msg00071.html>.
17482 2012-05-05  Bruno Haible  <bruno@clisp.org>
17484         nanosleep: Avoid guessing wrong when cross-compiling to Linux.
17485         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require AC_CANONICAL_HOST. When
17486         cross-compiling, set gl_cv_func_nanosleep to either 'guessing no'
17487         or 'guessing no (mishandles large arguments)'.
17489 2012-05-05  Bruno Haible  <bruno@clisp.org>
17491         link-follow: Avoid guessing wrong when cross-compiling to glibc/Linux.
17492         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Require
17493         AC_CANONICAL_HOST. When cross-compiling to a glibc/Linux platform,
17494         set gl_cv_func_link_follows_symlink to "guessing no".
17496 2012-05-05  Bruno Haible  <bruno@clisp.org>
17498         tzset: Avoid guessing wrong when cross-compiling to glibc systems.
17499         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require AC_CANONICAL_HOST. When
17500         cross-compiling to a glibc platform, set gl_cv_func_tzset_clobber to
17501         "guessing no".
17502         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Update.
17504 2012-05-05  Bruno Haible  <bruno@clisp.org>
17506         d-ino: Avoid guessing "no" when cross-compiling to glibc/Linux systems.
17507         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Require
17508         AC_CANONICAL_HOST. When cross-compiling to a glibc/Linux platform,
17509         set gl_cv_struct_dirent_d_ino to "guessing yes".
17511 2012-05-05  Bruno Haible  <bruno@clisp.org>
17513         fseeko-tests, ftello-tests: Avoid "guessing no" when cross-compiling.
17514         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Require AC_CANONICAL_HOST. When
17515         cross-compiling to a glibc platform, set gl_cv_func_ungetc_works to
17516         "guessing yes".
17518 2012-05-05  Bruno Haible  <bruno@clisp.org>
17520         signbit: Avoid "guessing no" when cross-compiling to glibc systems.
17521         * m4/signbit.m4 (gl_SIGNBIT): Require AC_CANONICAL_HOST. When cross-
17522         compiling to a glibc system, set gl_cv_func_signbit and
17523         gl_cv_func_signbit_gcc to "guessing yes".
17525 2012-05-05  Bruno Haible  <bruno@clisp.org>
17527         strerror: Avoid "guessing no" when cross-compiling to glibc systems.
17528         * m4/strerror.m4 (gl_FUNC_STRERROR): Require AC_CANONICAL_HOST. When
17529         cross-compiling to a glibc platform, set gl_cv_func_working_strerror
17530         to "guessing yes".
17531         (gl_FUNC_STRERROR_0): Require AC_CANONICAL_HOST. When cross-compiling
17532         to a glibc platform, set gl_cv_func_strerror_0_works to "guessing yes".
17534 2012-05-05  Bruno Haible  <bruno@clisp.org>
17536         canonicalize[-lgpl]: Avoid "guessing no" when cross-compiling to glibc.
17537         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Require
17538         AC_CANONICAL_HOST. When cross-compiling to a glibc system, set
17539         gl_cv_func_realpath_works to "guessing yes".
17541 2012-05-05  Bruno Haible  <bruno@clisp.org>
17543         gettimeofday: Avoid bad guess when cross-compiling to glibc systems.
17544         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY_CLOBBER): Require
17545         AC_CANONICAL_HOST. When cross-compiling, guess no on glibc platforms.
17547 2012-05-04  Bruno Haible  <bruno@clisp.org>
17549         Tweak last commit.
17550         * m4/off_t.m4 (gl_TYPE_OFF_T): Tweak comments.
17551         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
17553 2012-05-04  Paul Eggert  <eggert@cs.ucla.edu>
17555         unistd_h: make it easier to avoid sys_types_h
17556         This is useful for Emacs, which has its own method of porting to
17557         Windows, and which therefore does not need the sys_types_h module.
17558         * m4/off_t.m4: New file, defining gl_TYPE_OFF_T, which contains
17559         code moved here from gl_SYS_TYPES_H.
17560         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Require it instead of
17561         using the code directly.
17562         * m4/unistd_h.m4 (gl_UNISTD_H): Require gl_TYPE_OFF_T, not
17563         gl_SYS_TYPES_H.
17564         * modules/sys_types (Files):
17565         * modules/unistd (Files): Add m4/off_t.m4.
17567 2012-05-03  Bruno Haible  <bruno@clisp.org>
17569         lstat: Avoid "guessing no" when cross-compiling to glibc systems.
17570         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): When cross-
17571         compiling, set gl_cv_func_lstat_dereferences_slashed_symlink to
17572         "guessing yes" or "guessing no".
17573         (gl_FUNC_LSTAT): Update.
17574         * m4/fstatat.m4 (gl_FUNC_FSTATAT): Update.
17575         * m4/openat.m4 (gl_FUNC_OPENAT): Update.
17576         * m4/unlinkat.m4 (gl_FUNC_UNLINKAT): Update.
17578 2012-05-03  Bruno Haible  <bruno@clisp.org>
17580         *alloc-gnu, eealloc: Avoid "guessing no" when cross-compiling to glibc.
17581         * m4/malloc.m4 (_AC_FUNC_MALLOC_IF): Override in autoconf < 2.70.
17582         * m4/realloc.m4 (_AC_FUNC_REALLOC_IF): Override in autoconf < 2.70.
17583         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Require AC_CANONICAL_HOST. When
17584         cross-compiling, choose the first alternative on glibc systems.
17585         * modules/eealloc (Files): Add m4/malloc.m4, m4/realloc.m4.
17587 2012-05-03  Bruno Haible  <bruno@clisp.org>
17589         getgroups: Avoid "guessing no" when cross-compiling to glibc systems.
17590         * m4/getgroups.m4 (AC_FUNC_GETGROUPS): Override in autoconf < 2.70.
17591         (gl_FUNC_GETGROUPS): Adapt to change of ac_cv_func_getgroups_works.
17593 2012-05-03  Bruno Haible  <bruno@clisp.org>
17595         chown: Avoid "guessing no" when cross-compiling to glibc systems.
17596         * m4/chown.m4 (AC_FUNC_CHOWN): Override in autoconf < 2.70.
17598 2012-05-03  Bruno Haible  <bruno@clisp.org>
17600         Avoid "guessing no" guesses when cross-compiling to glibc systems.
17601         * m4/cbrtl.m4 (gl_FUNC_CBRTL): Require AC_CANONICAL_HOST. When cross-
17602         compiling to glibc systems, set gl_cv_func_cbrtl_ieee to "guessing yes".
17603         * m4/ceil.m4 (gl_FUNC_CEIL): Require AC_CANONICAL_HOST. When cross-
17604         compiling to glibc systems, set gl_cv_func_ceil_ieee to "guessing yes".
17605         * m4/ceilf.m4 (gl_FUNC_CEILF): Require AC_CANONICAL_HOST. When cross-
17606         compiling to glibc systems, set gl_cv_func_ceilf_ieee to "guessing yes".
17607         * m4/ceill.m4 (gl_FUNC_CEILL): Require AC_CANONICAL_HOST. When cross-
17608         compiling to glibc systems, set gl_cv_func_ceill_ieee to "guessing yes".
17609         * m4/chown.m4 (gl_FUNC_CHOWN): Require AC_CANONICAL_HOST. When cross-
17610         compiling to glibc systems, set gl_cv_func_chown_slash_works,
17611         gl_cv_func_chown_ctime_works to "guessing yes".
17612         * m4/lchown.m4 (gl_FUNC_LCHOWN): Update.
17613         * m4/exp2l.m4 (gl_FUNC_EXP2L): Require AC_CANONICAL_HOST. When cross-
17614         compiling to glibc systems, set gl_cv_func_exp2l_ieee to "guessing yes".
17615         * m4/expm1.m4 (gl_FUNC_EXPM1): Require AC_CANONICAL_HOST. When cross-
17616         compiling to glibc systems, set gl_cv_func_expm1_ieee to "guessing yes".
17617         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require AC_CANONICAL_HOST. When cross-
17618         compiling to glibc systems, set gl_cv_func_open_directory_works to
17619         "guessing yes".
17620         * m4/fstat.m4 (gl_FUNC_FSTAT): Update.
17621         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Require AC_CANONICAL_HOST. When
17622         cross-compiling to glibc systems, set gl_cv_func_fdopendir_works to
17623         "guessing yes".
17624         * m4/floor.m4 (gl_FUNC_FLOOR): Require AC_CANONICAL_HOST. When cross-
17625         compiling to glibc systems, set gl_cv_func_floor_ieee to "guessing yes".
17626         * m4/floorf.m4 (gl_FUNC_FLOORF): Require AC_CANONICAL_HOST. When cross-
17627         compiling to glibc systems, set gl_cv_func_floorf_ieee to
17628         "guessing yes".
17629         * m4/fmod.m4 (gl_FUNC_FMOD): Require AC_CANONICAL_HOST. When cross-
17630         compiling to glibc systems, set gl_cv_func_fmod_ieee to "guessing yes".
17631         * m4/fmodf.m4 (gl_FUNC_FMODF): Require AC_CANONICAL_HOST. When cross-
17632         compiling to glibc systems, set gl_cv_func_fmodf_ieee to "guessing yes".
17633         * m4/fmodl.m4 (gl_FUNC_FMODL): Require AC_CANONICAL_HOST. When cross-
17634         compiling to glibc systems, set gl_cv_func_fmodl_ieee to "guessing yes".
17635         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Require AC_CANONICAL_HOST. When
17636         cross-compiling to glibc systems, set gl_cv_func_getgroups_works to
17637         "guessing yes".
17638         * m4/hypot.m4 (gl_FUNC_HYPOT): Require AC_CANONICAL_HOST. When cross-
17639         compiling to glibc systems, set gl_cv_func_hypot_ieee to "guessing yes".
17640         * m4/hypotf.m4 (gl_FUNC_HYPOTF): Require AC_CANONICAL_HOST. When cross-
17641         compiling to glibc systems, set gl_cv_func_hypotf_ieee to
17642         "guessing yes".
17643         * m4/hypotl.m4 (gl_FUNC_HYPOTL): Require AC_CANONICAL_HOST. When cross-
17644         compiling to glibc systems, set gl_cv_func_hypotl_ieee to
17645         "guessing yes".
17646         * m4/link.m4 (gl_FUNC_LINK): Require AC_CANONICAL_HOST. When cross-
17647         compiling to glibc systems, set gl_cv_func_link_works to "guessing yes".
17648         * m4/log.m4 (gl_FUNC_LOG): Require AC_CANONICAL_HOST. When cross-
17649         compiling to glibc systems, set gl_cv_func_log_ieee to "guessing yes".
17650         * m4/logf.m4 (gl_FUNC_LOGF): Require AC_CANONICAL_HOST. When cross-
17651         compiling to glibc systems, set gl_cv_func_logf_ieee to "guessing yes".
17652         * m4/log10.m4 (gl_FUNC_LOG10): Require AC_CANONICAL_HOST. When cross-
17653         compiling to glibc systems, set gl_cv_func_log10_ieee to "guessing yes".
17654         * m4/log10f.m4 (gl_FUNC_LOG10F): Require AC_CANONICAL_HOST. When cross-
17655         compiling to glibc systems, set gl_cv_func_log10f_ieee to
17656         "guessing yes".
17657         * m4/log1p.m4 (gl_FUNC_LOG1P): Require AC_CANONICAL_HOST. When cross-
17658         compiling to glibc systems, set gl_cv_func_log1p_ieee to "guessing yes".
17659         * m4/log1pf.m4 (gl_FUNC_LOG1PF): Require AC_CANONICAL_HOST. When cross-
17660         compiling to glibc systems, set gl_cv_func_log1pf_ieee to
17661         "guessing yes".
17662         * m4/log1pl.m4 (gl_FUNC_LOG1PL): Require AC_CANONICAL_HOST. When cross-
17663         compiling to glibc systems, set gl_cv_func_log1pl_ieee to
17664         "guessing yes".
17665         * m4/log2.m4 (gl_FUNC_LOG2): Require AC_CANONICAL_HOST. When cross-
17666         compiling to glibc systems, set gl_cv_func_log2_ieee to "guessing yes".
17667         * m4/log2f.m4 (gl_FUNC_LOG2F): Require AC_CANONICAL_HOST. When cross-
17668         compiling to glibc systems, set gl_cv_func_log2f_ieee to "guessing yes".
17669         * m4/mkdir.m4 (gl_FUNC_MKDIR): Require AC_CANONICAL_HOST. When cross-
17670         compiling to glibc systems, set gl_cv_func_mkdir_trailing_slash_works,
17671         gl_cv_func_mkdir_trailing_dot_works to "guessing yes".
17672         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Require AC_CANONICAL_HOST. When cross-
17673         compiling to glibc systems, set gl_cv_func_mkfifo_works to
17674         "guessing yes".
17675         * m4/mknod.m4 (gl_FUNC_MKNOD): Require AC_CANONICAL_HOST. When cross-
17676         compiling to glibc systems, set gl_cv_func_mknod_works to
17677         "guessing yes".
17678         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_CANONICAL_HOST. When
17679         cross-compiling to glibc systems, set gl_cv_func_working_mkstemp to
17680         "guessing yes".
17681         * m4/modf.m4 (gl_FUNC_MODF): Require AC_CANONICAL_HOST. When cross-
17682         compiling to glibc systems, set gl_cv_func_modf_ieee to "guessing yes".
17683         * m4/modff.m4 (gl_FUNC_MODFF): Require AC_CANONICAL_HOST. When cross-
17684         compiling to glibc systems, set gl_cv_func_modff_ieee to "guessing yes".
17685         * m4/modfl.m4 (gl_FUNC_MODFL): Require AC_CANONICAL_HOST. When cross-
17686         compiling to glibc systems, set gl_cv_func_modfl_ieee to "guessing yes".
17687         * m4/putenv.m4 (gl_FUNC_PUTENV): Require AC_CANONICAL_HOST. When cross-
17688         compiling to glibc systems, set gl_cv_func_svid_putenv to
17689         "guessing yes".
17690         * m4/readlink.m4 (gl_FUNC_READLINK): Require AC_CANONICAL_HOST. When
17691         cross-compiling to glibc systems, set gl_cv_func_readlink_works to
17692         "guessing yes".
17693         * m4/remainder.m4 (gl_FUNC_REMAINDER): Require AC_CANONICAL_HOST. When
17694         cross-compiling to glibc systems, set gl_cv_func_remainder_ieee to
17695         "guessing yes".
17696         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Require AC_CANONICAL_HOST.
17697         When cross-compiling to glibc systems, set gl_cv_func_remainderf_ieee
17698         to "guessing yes".
17699         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Require AC_CANONICAL_HOST.
17700         When cross-compiling to glibc systems, set gl_cv_func_remainderl_ieee
17701         to "guessing yes".
17702         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require AC_CANONICAL_HOST. When cross-
17703         compiling to glibc systems, set gl_cv_func_rmdir_works to
17704         "guessing yes".
17705         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. When cross-
17706         compiling to glibc systems, set gl_cv_func_unlink_honors_slashes,
17707         gl_cv_func_unlink_parent_fails to "guessing yes".
17708         * m4/remove.m4 (gl_FUNC_REMOVE): Update.
17709         * m4/rename.m4 (gl_FUNC_RENAME): Require AC_CANONICAL_HOST. When cross-
17710         compiling to glibc systems, set gl_cv_func_rename_slash_dst_works,
17711         gl_cv_func_rename_slash_src_works, gl_cv_func_rename_link_works,
17712         gl_cv_func_rename_dest_works to "guessing yes".
17713         * m4/round.m4 (gl_FUNC_ROUND): Require AC_CANONICAL_HOST. When cross-
17714         compiling to glibc systems, set gl_cv_func_round_ieee to "guessing yes".
17715         * m4/roundf.m4 (gl_FUNC_ROUNDF): Require AC_CANONICAL_HOST. When cross-
17716         compiling to glibc systems, set gl_cv_func_roundf_ieee to
17717         "guessing yes".
17718         * m4/roundl.m4 (gl_FUNC_ROUNDL): Require AC_CANONICAL_HOST. When cross-
17719         compiling to glibc systems, set gl_cv_func_roundl_ieee to
17720         "guessing yes".
17721         * m4/setenv.m4 (gl_FUNC_SETENV): Require AC_CANONICAL_HOST. When cross-
17722         compiling to glibc systems, set gl_cv_func_setenv_works to
17723         "guessing yes".
17724         (gl_FUNC_UNSETENV): Require AC_CANONICAL_HOST. When cross-
17725         compiling to glibc systems, set gl_cv_func_unsetenv_works to
17726         "guessing yes".
17727         * m4/sleep.m4 (gl_FUNC_SLEEP): Require AC_CANONICAL_HOST. When cross-
17728         compiling to glibc systems, set gl_cv_func_sleep_works to
17729         "guessing yes".
17730         * m4/stat.m4 (gl_FUNC_STAT): Require AC_CANONICAL_HOST. When cross-
17731         compiling to glibc systems, set gl_cv_func_stat_file_slash to
17732         "guessing yes".
17733         * m4/symlink.m4 (gl_FUNC_SYMLINK): Require AC_CANONICAL_HOST. When
17734         cross-compiling to glibc systems, set gl_cv_func_symlink_works to
17735         "guessing yes".
17736         * m4/trunc.m4 (gl_FUNC_TRUNC): Require AC_CANONICAL_HOST. When cross-
17737         compiling to glibc systems, set gl_cv_func_trunc_ieee to "guessing yes".
17738         * m4/truncf.m4 (gl_FUNC_TRUNCF): Require AC_CANONICAL_HOST. When cross-
17739         compiling to glibc systems, set gl_cv_func_truncf_ieee to
17740         "guessing yes".
17741         * m4/truncl.m4 (gl_FUNC_TRUNCL): Require AC_CANONICAL_HOST. When cross-
17742         compiling to glibc systems, set gl_cv_func_truncl_ieee to
17743         "guessing yes".
17744         * m4/usleep.m4 (gl_FUNC_USLEEP): Require AC_CANONICAL_HOST. When cross-
17745         compiling to glibc systems, set gl_cv_func_usleep_works to
17746         "guessing yes".
17747         * m4/utimens.m4 (gl_UTIMENS): Require AC_CANONICAL_HOST. When cross-
17748         compiling to glibc systems, set gl_cv_func_futimesat_works to
17749         "guessing yes".
17751 2012-05-03  Bruno Haible  <bruno@clisp.org>
17753         Say "guessing yes" or "guessing no" when cross-compiling.
17754         * m4/dup2.m4 (gl_FUNC_DUP2): When cross-compiling, set
17755         gl_cv_func_dup2_works to "guessing yes" or "guessing no".
17756         * m4/getdelim.m4 (gl_FUNC_GETDELIM): When cross-compiling, set
17757         gl_cv_func_working_getdelim to "guessing yes" or "guessing no".
17758         * m4/getline.m4 (gl_FUNC_GETLINE): When cross-compiling, set
17759         am_cv_func_working_getline to "guessing yes" or "guessing no".
17760         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): When cross-compiling, set
17761         gl_cv_func_memmem_works_always to "guessing yes" or "guessing no".
17762         (gl_FUNC_MEMMEM): When cross-compiling, set
17763         gl_cv_func_memmem_works_fast to "guessing yes" or "guessing no".
17764         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): When cross-compiling, set
17765         gl_cv_func_stpncpy to "guessing yes" or "guessing no".
17766         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): When cross-compiling,
17767         set gl_cv_func_strcasestr_works_always to "guessing yes" or
17768         "guessing no".
17769         (gl_FUNC_STRCASESTR): When cross-compiling, set
17770         gl_cv_func_strcasestr_linear to "guessing yes" or "guessing no".
17771         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): When cross-compiling, set
17772         gl_cv_func_strstr_works_always to "guessing yes" or "guessing no".
17773         (gl_FUNC_STRSTR): When cross-compiling, set
17774         gl_cv_func_strstr_linear to "guessing yes" or "guessing no".
17775         * m4/strtod.m4 (gl_FUNC_STRTOD): When cross-compiling, set
17776         gl_cv_func_strtod_works to "guessing yes" or "guessing no".
17777         * m4/wctype_h.m4 (gl_WCTYPE_H): When cross-compiling, set
17778         gl_cv_func_iswcntrl_works to "guessing yes" or "guessing no".
17780 2012-05-01  Bruno Haible  <bruno@clisp.org>
17782         relocatable-prog: Enable ELF ORIGIN trick also on GNU/kFreeBSD.
17783         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Treat kFreeBSD like Linux.
17784         * build-aux/reloc-ldflags: Likewise.
17785         Suggested by Steven Chamberlain <steven@pyro.eu.org>.
17787 2012-05-01  Bruno Haible  <bruno@clisp.org>
17789         gnulib-tool: Remove transitional code.
17790         * gnulib-tool: Don't warn about --import with 0 arguments any more.
17791         Reported by Dmitriy Selyutin <ghostman.sd@gmail.com>.
17793 2012-05-01  Bruno Haible  <bruno@clisp.org>
17795         getcwd: Fix misindentation.
17796         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Fix indentation.
17798 2012-04-29  Paul Eggert  <eggert@cs.ucla.edu>
17800         exclude: process exclude and include directives in order
17801         This restores the pre-2009 behavior, and is part of a fix of a
17802         grep bug reported by Quentin Arce in
17803         <http://lists.gnu.org/archive/html/bug-grep/2012-04/msg00056.html>.
17804         * lib/exclude.c (struct exclude): Remove 'tail' member.
17805         (new_exclude_segment): Prepend the new segment instead of appending.
17806         Return void, since that's now more convenient.
17807         (file_pattern_matches): Renamed from excluded_file_pattern_p.
17808         (file_name_matches): Renamed from excluded_file_name_p.
17809         (file_pattern_matches, file_name_matches):
17810         Return true if the pattern matches, not if it excludes.
17811         All callers changed.
17812         (excluded_file_name): Process the list in reverse order;
17813         since the list is now reversed this restores the pre-2009 behavior.
17814         (add_exclude): Adjust to new reversed-order list.  Use local var
17815         rather than macro, for clarity.
17816         * tests/test-exclude7.sh: Adjust to corrected behavior.
17818         exclude: handle wildcards with FNM_NOESCAPE and with trailing \
17819         * lib/exclude.c (unescape_pattern): Don't worry about unescaped [;
17820         it's not possible here.  Handle the case of \ at end of pattern
17821         without dumping core.
17822         (add_exclude): Do not unescape the pattern if FNM_NOESCAPE is used.
17824         _Noreturn: future-proof non-GNU and non-MSVC compilers
17825         * build-aux/snippet/_Noreturn.h (_Noreturn):
17826         * m4/gnulib-common.m4 (gl_COMMON_BODY):
17827         Do not define _Noreturn if __STDC_VERSION__ indicates this is
17828         C11 or later.  This is more likely to work with random future C
17829         compilers that are neither GNUish nor MSVCish.  See Vincent Lefevre in
17830         <http://lists.gnu.org/archive/html/bug-gnulib/2012-04/msg00195.html>.
17832         exclude: handle wildcards with FNM_EXTMATCH
17833         * lib/exclude.c (fnmatch_pattern_has_wildcards): Also treat '+(',
17834         '+@', '!(' as wildcards, if FNM_EXTMATCH.  Make it clear in a
17835         comment that "has wildcards" really means "has or may have
17836         wildcards".  Simplify by avoiding the need to call strcspn.
17838 2012-04-29  Bruno Haible  <bruno@clisp.org>
17840         gnulib-tool: Fix list of authors.
17841         * gnulib-tool (func_version): Add Paul Eggert to list of authors.
17843 2012-04-26  Stefano Lattarini  <stefano.lattarini@gmail.com>
17845         bootstrap: support Automake-NG in $buildreq
17846         * bootstrap (check_versions): Handle automake and aclocal from
17847         Automake-NG specially.  They can be specified as respectively
17848         the "automake-ng" and "aclocal-ng" requirements.
17850 2012-04-25  Eric Blake  <eblake@redhat.com>
17852         bootstrap: only force latest Makefile.in.in for gettext module
17853         * build-aux/bootstrap (with_gettext): Only install latest
17854         Makefile.in.in for projects requesting bleeding edge gettext.
17856 2012-04-22  Bruno Haible  <bruno@clisp.org>
17858         doc: Mention reason for replacement on glibc/Linux systems.
17859         * doc/posix-functions/dprintf.texi: Mention the problem with special
17860         'long double' values.
17861         * doc/posix-functions/fprintf.texi: Likewise.
17862         * doc/posix-functions/printf.texi: Likewise.
17863         * doc/posix-functions/snprintf.texi: Likewise.
17864         * doc/posix-functions/sprintf.texi: Likewise.
17865         * doc/posix-functions/vdprintf.texi: Likewise.
17866         * doc/posix-functions/vfprintf.texi: Likewise.
17867         * doc/posix-functions/vprintf.texi: Likewise.
17868         * doc/posix-functions/vsnprintf.texi: Likewise.
17869         * doc/posix-functions/vsprintf.texi: Likewise.
17870         * doc/posix-functions/fcntl.texi: Add glibc/Linux to the list of
17871         platforms with F_DUPFD_CLOEXEC problems.
17872         * doc/posix-functions/glob.texi: Mention which platforms are affected
17873         by the problem with symbolic links.
17874         * doc/posix-functions/linkat.texi: Mention the problem with
17875         AT_SYMLINK_FOLLOW on Linux.
17877 2012-04-22  Bruno Haible  <bruno@clisp.org>
17879         pwrite: Don't replace on all platforms.
17880         * m4/pwrite.m4 (gl_FUNC_PWRITE): Fix syntax error in test program.
17882 2012-04-22  Bruno Haible  <bruno@clisp.org>
17884         rint* tests: Avoid gcc warnings.
17885         * tests/test-rint.c (INFINITY, NAN): Undefine before redefining.
17886         * tests/test-rintf.c (INFINITY, NAN): Likewise.
17887         * tests/test-rintl.c (INFINITY, NAN): Likewise.
17889 2012-04-21  Bruno Haible  <bruno@clisp.org>
17891         users.txt: Update.
17892         * users.txt: Add freedink, wdiff. Update URLs for projects that have
17893         switched from CVS to git, bzr, or svn.
17895 2012-04-21  Bruno Haible  <bruno@clisp.org>
17897         Large File Support for native Windows platforms.
17899         * m4/largefile.m4 (gl_LARGEFILE): New macro.
17900         * modules/largefile (configure.ac): Require gl_LARGEFILE.
17902         * lib/sys_types.in.h (off_t) [WINDOWS_64_BIT_OFF_T]: Define to a 64-bit
17903         type.
17904         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Set WINDOWS_64_BIT_OFF_T.
17905         * modules/sys_types (Makefile.am): Substitute WINDOWS_64_BIT_OFF_T.
17906         * doc/posix-headers/sys_types.texi: Mention the effect of the
17907         'largefile' module.
17909         * lib/fcntl.in.h: Add comments about off_t.
17910         * modules/fcntl-h (Depends-on): Add sys_types.
17912         * lib/unistd.in.h [WINDOWS_64_BIT_OFF_T]: Include <sys/types.h>.
17913         (ftruncate): Replace it if REPLACE_FTRUNCATE is 1.
17914         * m4/unistd_h.m4 (gl_UNISTD_H): Require gl_SYS_TYPES_H.
17915         (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_FTRUNCATE.
17916         * modules/unistd (Depends-on): Add sys_types.
17917         (Makefile.am): Substitute WINDOWS_64_BIT_OFF_T, REPLACE_FTRUNCATE.
17919         * lib/lseek.c (rpl_lseek) [_GL_WINDOWS_64_BIT_OFF_T]: Use _lseeki64
17920         instead of lseek.
17921         * m4/lseek.m4 (gl_FUNC_LSEEK): Require gl_SYS_TYPES_H. Set
17922         REPLACE_LSEEK if WINDOWS_64_BIT_OFF_T is 1.
17923         * modules/lseek (Depends-on): Add sys_types.
17925         * lib/ftruncate.c: Put under GPLv3+. Include <windows.h>,
17926         msvc-nothrow.h.
17927         (SetFileSize): New function.
17928         (ftruncate) [_GL_WINDOWS_64_BIT_OFF_T]: New implementation.
17929         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Set REPLACE_FTRUNCATE on Windows
17930         if Large File Support is requested.
17931         * modules/ftruncate (configure.ac): Consider REPLACE_FTRUNCATE.
17932         (Depends-on): Add sys_types, msvc-nothrow. Update conditions.
17934         * lib/stdio.in.h: Add comments about off_t.
17935         * modules/stdio (Depends-on): Add sys_types.
17937         * lib/ftello.c [_GL_WINDOWS_64_BIT_OFF_T]: Use _ftelli64 or ftello64
17938         instead of ftello.
17939         * m4/ftello.m4 (gl_FUNC_FTELLO): Require gl_SYS_TYPES_H. Set
17940         REPLACE_FTELLO if WINDOWS_64_BIT_OFF_T is 1.
17941         (gl_PREREQ_FTELLO): New macro.
17942         * modules/ftello (Depends-on): Add sys_types.
17943         (configure.ac): Incoke gl_PREREQ_FTELLO.
17945         * lib/fseeko.c [_GL_WINDOWS_64_BIT_OFF_T]: Use _fseeki64 or fseeko64
17946         instead of fseeko.
17947         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require gl_SYS_TYPES_H. Set
17948         REPLACE_FSEEKO if WINDOWS_64_BIT_OFF_T is 1.
17949         (gl_PREREQ_FSEEKO): New macro.
17950         * modules/fseeko (Depends-on): Add sys_types.
17951         (configure.ac): Invoke gl_PREREQ_FSEEKO.
17953         * lib/sys_stat.in.h: Add comments about off_t.
17954         (stat, fstat) [WINDOWS_64_BIT_ST_SIZE]: Define to variants that use a
17955         64-bit integer for st_size in 'struct stat'.
17956         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Set WINDOWS_64_BIT_ST_SIZE.
17957         Define _GL_WINDOWS_64_BIT_ST_SIZE.
17958         * modules/sys_stat (Depends-on): Add sys_types.
17959         (Makefile.am): Substitute WINDOWS_64_BIT_ST_SIZE.
17961         * lib/stat.c (stat) [_GL_WINDOWS_64_BIT_ST_SIZE]: Define to _stati64
17962         instead of stat or _stat.
17964         * lib/fstat.c [_GL_WINDOWS_64_BIT_ST_SIZE]: Use _fstati64 and
17965         'struct _stati64' instead of fstat and 'struct stat'.
17966         * m4/fstat.m4 (gl_FUNC_FSTAT): Require gl_HEADER_SYS_STAT_H. Set
17967         REPLACE_FSTAT if WINDOWS_64_BIT_ST_SIZE is 1.
17969         Reported by Ray Satiro <raysatiro@yahoo.com>.
17971 2012-04-19  Eric Blake  <eblake@redhat.com>
17973         bootstrap: accommodate older libtool
17974         * build-aux/bootstrap (use_libtool): Cater to libtool 1.5.22.
17975         Reported by Daniel P. Berrange.
17977 2012-04-19  Jim Meyering  <meyering@redhat.com>
17979         announce-gen: avoid failure due to lack of Digest::SHA1
17980         Even with the preferred Digest::SHA available, this script
17981         would fail when the backup module, Digest::SHA1, was not installed.
17982         * build-aux/announce-gen: Quote the conditional use of "use".
17983         Reported by Reuben Thomas in:
17984         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30444
17986         bootstrap: don't let a user's CDPATH setting affect this script
17987         When CDPATH is set, cd will sometimes generate output.
17988         When "cd" is run in a subshell whose output matters, that
17989         surprising-to-some output can cause malfunction.
17990         Unsetting CDPATH turns off this shell "feature."
17991         * build-aux/bootstrap (CDPATH): Unset.
17992         Reported by Reuben Thomas in:
17993         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30435
17994         and inspired by his patch here:
17995         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30440
17997 2012-04-16  Akim Demaille  <akim@lrde.epita.fr>
17998         and Jim Meyering  <meyering@redhat.com>
18000         maint.mk: catch "see @xref{}" and similar
18001         * top/maint.mk (prohibit_undesirable_word_seq_RE_): Also
18002         prohibit "See also @xref{", "Also see @pxref{", and similar.
18004 2012-04-16  Jim Meyering  <meyering@redhat.com>
18006         bootstrap: really use gnulib's po/Makefile.in.in
18007         * build-aux/bootstrap: Correct the source file name in previous change.
18008         Reported by Akim Demaille.
18010         configmake: correct minor inconsistency in Makefile rule
18011         * modules/configmake (Makefile.am): All other rules like this one
18012         run the final "mv -f ..." in the same backslash-continued command
18013         as the one that does everything else.  This one put the mv -f ...
18014         command on a separate, non-backslash-continued line.
18015         Make it like the others.
18017         bootstrap: use gnulib's po/Makefile.in.in, not the one from gettext
18018         * build-aux/bootstrap: Use gnulib's po/Makefile.in.in, not
18019         the one from gettext.  Reported by Akim Demaille.
18021 2012-04-16  Joel E. Denny  <joeldenny@joeldenny.org>
18023         Fix recursion of install-* into po directories.
18024         Bison's install-pdf bug reported by Hans Aberg at
18025         <http://lists.gnu.org/archive/html/bug-bison/2011-05/msg00008.html>.
18026         * build-aux/po/Makefile.in.in (install-dvi, install-html)
18027         (install-info, install-pdf, install-ps): New targets.
18029 2012-04-16  Jim Meyering  <meyering@redhat.com>
18031         maint: avoid spurious "make sc_maint" failure
18032         * cfg.mk (exclude_file_name_regexp--sc_trailing_blank): Also
18033         exempt all *.class file names, for lib/javaversion.class.
18035 2012-04-15  Bruno Haible  <bruno@clisp.org>
18037         lseek: Make configure test independent of environment.
18038         * m4/lseek.m4 (gl_FUNC_LSEEK): Require AC_CANONICAL_HOST. On native
18039         Windows, we know that lseek() on pipes is broken; skip the runtime
18040         test.
18042 2012-04-14  Bruno Haible  <bruno@clisp.org>
18044         stat: Bypass buggy override in mingw64.
18045         * m4/stat.m4 (gl_FUNC_STAT): Update comments.
18046         * lib/stat.c (stat) [mingw64]: Define to _stat.
18047         * doc/posix-functions/stat.texi: Mention mingw64 bug.
18049 2012-04-14  Bruno Haible  <bruno@clisp.org>
18051         pathmax: Fix compilation error on MSVC 9.
18052         * modules/pathmax (Depends-on): Add unistd.
18054 2012-04-12  Paul Eggert  <eggert@cs.ucla.edu>
18056         README: document pointer comparison assumption
18057         * README (Portability guidelines): Document assumption about
18058         pointer comparisons, in response to a recent bug-gnulib comment by
18059         Jeffrey Kegler.
18061 2012-04-12  Bruno Haible  <bruno@clisp.org>
18063         Tests for module 'getrusage'.
18064         * modules/getrusage-tests: New file.
18065         * tests/test-getrusage.c: New file.
18067         New module 'getrusage'.
18068         * lib/sys_resource.in.h: Include arg-nonnull.h, c++defs.h,
18069         warn-on-use.h.
18070         (getrusage): New declaration.
18071         * lib/getrusage.c: New file.
18072         * m4/getrusage.m4: New file.
18073         * m4/sys_resource_h.m4 (gl_HEADER_SYS_RESOURCE): Test whether getrusage
18074         is declared.
18075         (gl_SYS_RESOURCE_H_DEFAULTS): Initialize GNULIB_GETRUSAGE,
18076         HAVE_GETRUSAGE.
18077         * modules/sys_resource (Depends-on): Add snippet/arg-nonnull,
18078         snippet/c++defs, snippet/warn-on-use.
18079         (Makefile.am): Update generation of sys/resource.h. Substitute
18080         GNULIB_GETRUSAGE, HAVE_GETRUSAGE.
18081         * modules/getrusage: New file.
18082         * doc/posix-functions/getrusage.texi: Mention the new module.
18084 2012-04-12  Bruno Haible  <bruno@clisp.org>
18086         Tests for module 'sys_resource'.
18087         * modules/sys_resource-tests: New file.
18088         * tests/test-sys_resource.c: New file.
18090         New module 'sys_resource'.
18091         * lib/sys_resource.in.h: New file.
18092         * m4/sys_resource_h.m4: New file.
18093         * modules/sys_resource: New file.
18094         * doc/posix-headers/sys_resource.texi: Mention the new module.
18096 2012-04-12  LRN  <lrn1986@gmail.com>  (tiny change)
18098         ioctl: Fix compilation error on mingw.
18099         * lib/ioctl.c: Include <windows.h>.
18100         Also reported by Ray Satiro <raysatiro@yahoo.com>.
18102 2012-04-04  Jim Meyering  <meyering@redhat.com>
18104         regex: correct #pragma guard expression
18105         * lib/regex.c: -Wsuggest-attribute=pure was introduced in gcc-4.6,
18106         not 4.3.  Correct its cpp guard expression.
18108 2012-04-04  Paul Eggert  <eggert@cs.ucla.edu>
18110         regex: remove unnecessary type punning
18111         Problem reported by Vladimir Serbinenko in
18112         <http://lists.gnu.org/archive/html/bug-gnulib/2012-04/msg00006.html>.
18113         * lib/regex.h (struct re_pattern_buffer): Change the type of
18114         __REPB_PREFIX(buffer) from unsigned char * to struct re_dfa_t *.
18115         Fix comment to match code.
18116         * lib/regcomp.c (re_compile_fastmap, re_compile_fastmap_iter, regfree)
18117         (re_compile_internal, free_workarea_compile, analyze, lower_subexp)
18118         (parse, parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
18119         * lib/regexec.c (regexec, re_search_stub, re_search_internal)
18120         (set_regs):
18121         Omit no-longer-necessary casts.
18123 2012-04-03  Bruno Haible  <bruno@clisp.org>
18125         Tests for module 'ilogbl'.
18126         * modules/ilogbl-tests: New file.
18127         * tests/test-ilogbl.c: New file.
18129         New module 'ilogbl'.
18130         * lib/math.in.h (ilogbl): New declaration.
18131         * lib/ilogbl.c: New file.
18132         * m4/ilogbl.m4: New file.
18133         * m4/math_h.m4 (gl_MATH_H): Test whether ilogbl is declared.
18134         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ILOGBL, HAVE_ILOGBL.
18135         * modules/math (Makefile.am): Substitute GNULIB_ILOGBL, HAVE_ILOGBL.
18136         Split sed invocation, to avoid the limit of 100 substitutions of
18137         HP-UX 'sed'.
18138         * modules/ilogbl: New file.
18139         * tests/test-math-c++.cc: Check the declaration of ilogbl.
18140         * doc/posix-functions/ilogbl.texi: Mention the new module.
18142 2012-04-03  Bruno Haible  <bruno@clisp.org>
18144         Tests for module 'ilogbf'.
18145         * modules/ilogbf-tests: New file.
18146         * tests/test-ilogbf.c: New file.
18148         New module 'ilogbf'.
18149         * lib/math.in.h (ilogbf): New declaration.
18150         * lib/ilogbf.c: New file.
18151         * m4/ilogbf.m4: New file.
18152         * m4/math_h.m4 (gl_MATH_H): Test whether ilogbf is declared.
18153         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ILOGBF, HAVE_ILOGBF,
18154         REPLACE_ILOGBF.
18155         * modules/math (Makefile.am): Substitute GNULIB_ILOGBF, HAVE_ILOGBF,
18156         REPLACE_ILOGBF.
18157         * modules/ilogbf: New file.
18158         * tests/test-math-c++.cc: Check the declaration of ilogbf.
18159         * doc/posix-functions/ilogbf.texi: Mention the new module.
18161 2012-04-03  Bruno Haible  <bruno@clisp.org>
18163         Tests for module 'ilogb'.
18164         * modules/ilogb-tests: New file.
18165         * tests/test-ilogb.c: New file.
18166         * tests/test-ilogb.h: New file, based on tests/test-logb.h and
18167         tests/test-logb-ieee.h.
18169         New module 'ilogb'.
18170         * lib/math.in.h (ilogb): New declaration.
18171         * lib/ilogb.c: New file.
18172         * m4/ilogb.m4: New file.
18173         * m4/math_h.m4 (gl_MATH_H): Test whether ilogb is declared.
18174         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ILOGB, HAVE_ILOGB,
18175         REPLACE_ILOGB.
18176         * modules/math (Makefile.am): Substitute GNULIB_ILOGB, HAVE_ILOGB,
18177         REPLACE_ILOGB.
18178         * modules/ilogb: New file.
18179         * tests/test-math-c++.cc: Check the declaration of ilogb.
18180         * doc/posix-functions/ilogb.texi: Mention the new module.
18182 2012-04-03  Bruno Haible  <bruno@clisp.org>
18184         math: Provide FP_ILOGB0 and FP_ILOGBNAN.
18185         * lib/math.in.h (FP_ILOGB0, FP_ILOGBNAN): Define fallback.
18186         * tests/test-math.c: Check that FP_ILOGB0, FP_ILOGBNAN are defined.
18187         (main): Check their values.
18188         * doc/posix-headers/math.texi: Mention the FP_ILOGB0, FP_ILOGBNAN
18189         problem.
18191 2012-04-03  Bruno Haible  <bruno@clisp.org>
18193         Tests for module 'logbl-ieee'.
18194         * modules/logbl-ieee-tests: New file.
18195         * tests/test-logbl-ieee.c: New file.
18197         New module 'logbl-ieee'.
18198         * modules/logbl-ieee: New file.
18200         Tests for module 'logb-ieee'.
18201         * modules/logb-ieee-tests: New file.
18202         * tests/test-logb-ieee.c: New file.
18204         New module 'logb-ieee'.
18205         * modules/logb-ieee: New file.
18207         Tests for module 'logbf-ieee'.
18208         * modules/logbf-ieee-tests: New file.
18209         * tests/test-logbf-ieee.c: New file.
18210         * tests/test-logb-ieee.h: New file.
18212         New module 'logbf-ieee'.
18213         * modules/logbf-ieee: New file.
18215 2012-04-03  Bruno Haible  <bruno@clisp.org>
18217         Tests for module 'logbl'.
18218         * modules/logbl-tests: New file.
18219         * tests/test-logbl.c: New file.
18221         New module 'logbl'.
18222         * lib/math.in.h (logbl): New declaration.
18223         * lib/logbl.c: New file.
18224         * m4/logbl.m4: New file.
18225         * m4/math_h.m4 (gl_MATH_H): Test whether logbl is declared.
18226         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGBL, HAVE_LOGBL,
18227         REPLACE_LOGBL.
18228         * modules/math (Makefile.am): Substitute GNULIB_LOGBL, HAVE_LOGBL,
18229         REPLACE_LOGBL.
18230         * modules/logbl: New file.
18231         * tests/test-math-c++.cc: Check the declaration of logbl.
18232         * doc/posix-functions/logbl.texi: Mention the new module.
18234 2012-04-02  Bruno Haible  <bruno@clisp.org>
18236         Tests for module 'logbf'.
18237         * modules/logbf-tests: New file.
18238         * tests/test-logbf.c: New file.
18240         New module 'logbf'.
18241         * lib/math.in.h (logbf): New declaration.
18242         * lib/logbf.c: New file.
18243         * m4/logbf.m4: New file.
18244         * m4/math_h.m4 (gl_MATH_H): Test whether logbf is declared.
18245         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGBF, HAVE_LOGBF,
18246         REPLACE_LOGBF.
18247         * modules/math (Makefile.am): Substitute GNULIB_LOGBF, HAVE_LOGBF,
18248         REPLACE_LOGBF.
18249         * modules/logbf: New file.
18250         * tests/test-math-c++.cc: Check the declaration of logbf.
18251         * doc/posix-functions/logbf.texi: Mention the new module.
18253 2012-04-02  Bruno Haible  <bruno@clisp.org>
18255         logb tests: More tests.
18256         * tests/test-logb.h: New file, based on tests/test-logb.c and
18257         tests/test-frexp.h.
18258         * tests/test-logb.c: Include minus-zero.h, test-logb.h.
18259         (main): Just invoke test_function.
18260         * modules/logb-tests (Files): Add tests/test-logb.h,
18261         tests/minus-zero.h, tests/randomd.c.
18262         (Makefile.am): Add randomd.c to test_logb_SOURCES.
18264         logb: Provide replacement and workarounds.
18265         * lib/math.in.h (logb): Ensure declaration. Replace if REPLACE_LOGB
18266         is 1.
18267         * lib/logb.c: New file.
18268         * m4/logb.m4 (gl_FUNC_LOGB_WORKS): New macro.
18269         (gl_FUNC_LOGB): Invoke it. Set HAVE_LOGB, REPLACE_LOGB.
18270         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOGB.
18271         * modules/math (Makefile.am): Substitute REPLACE_LOGB.
18272         * modules/logb (Files): Add lib/logb.c.
18273         (Depends-on): Add isfinite, frexp, isnand.
18274         (configure.ac): Compile the replacement code logb.c if needed.
18275         * tests/test-math-c++.cc: Check the declaration of logb.
18276         * doc/posix-functions/logb.texi: Mention the replacement and the bug
18277         with subnormal numbers.
18279 2012-04-02  Bruno Haible  <bruno@clisp.org>
18281         log10* tests: Speed up.
18282         * tests/test-log10.h (test_function): Reduce amount of random numbers
18283         to test.
18285 2012-04-01  Bruno Haible  <bruno@clisp.org>
18287         logf-ieee: Fix test whether logf works.
18288         * m4/logf.m4 (gl_FUNC_LOGF): Fix typo in test program.
18290 2012-04-01  Bruno Haible  <bruno@clisp.org>
18292         log10l: Work around log10l-ieee test failure on IRIX 6.5.
18293         * lib/log10l.c: Include <float.h>
18294         (log10l): On IRIX, normalize the +Infinity value.
18295         * modules/log10l (Depends-on): Add 'float'.
18296         * doc/posix-functions/log10l.texi: Mention the IRIX problem with
18297         +Infinity.
18299         log10f-ieee: Work around test failure on NetBSD 5.1.
18300         * m4/log10f-ieee.m4: New file.
18301         * m4/log10f.m4 (gl_FUNC_LOG10F): If gl_FUNC_LOG10F_IEEE is present,
18302         test whether log10f works with a negative argument. Replace it if not.
18303         * lib/log10f.c (log10f): For negative arguments, return NaN.
18304         * modules/log10f-ieee (Files): Add m4/log10f-ieee.m4.
18305         (configure.ac): Invoke gl_FUNC_LOG10F_IEEE.
18306         * doc/posix-functions/log10f.texi: Mention the log10f-ieee module.
18308         log10f-ieee: Work around test failure on Solaris 9.
18309         * modules/log10f-ieee (Depends-on): Add log10-ieee.
18310         (configure.ac): Require gl_FUNC_LOG10F.
18312         log10-ieee: Work around test failure on NetBSD 5.1 and Solaris 11.
18313         * m4/log10-ieee.m4: New file.
18314         * m4/log10.m4 (gl_FUNC_LOG10): If gl_FUNC_LOG10_IEEE is present, test
18315         whether log10 works with a negative argument. Replace it if not.
18316         * lib/log10.c (log10): For negative arguments, return NaN.
18317         * modules/log10-ieee (Files): Add m4/log10-ieee.m4.
18318         (configure.ac): Invoke gl_FUNC_LOG10_IEEE.
18319         * doc/posix-functions/log10.texi: Mention the log10-ieee module.
18321         Tests for module 'log10l-ieee'.
18322         * modules/log10l-ieee-tests: New file.
18323         * tests/test-log10l-ieee.c: New file.
18325         New module 'log10l-ieee'.
18326         * modules/log10l-ieee: New file.
18328         Tests for module 'log10-ieee'.
18329         * modules/log10-ieee-tests: New file.
18330         * tests/test-log10-ieee.c: New file.
18332         New module 'log10-ieee'.
18333         * modules/log10-ieee: New file.
18335         Tests for module 'log10f-ieee'.
18336         * modules/log10f-ieee-tests: New file.
18337         * tests/test-log10f-ieee.c: New file.
18338         * tests/test-log10-ieee.h: New file.
18340         New module 'log10f-ieee'.
18341         * modules/log10f-ieee: New file.
18343 2012-04-01  Bruno Haible  <bruno@clisp.org>
18345         log10l: Work around AIX 5.1, IRIX 6.5, OSF/1 5.1 bug.
18346         * lib/math.in.h (log10l): Override if REPLACE_LOG10L is 1.
18347         * lib/log10l.c (log10l): If log10l exists, use it and provide just the
18348         workaround.
18349         * m4/log10l.m4 (gl_FUNC_LOG10L_WORKS): New macro.
18350         (gl_FUNC_LOG10L): Invoke it. Set REPLACE_LOG10L.
18351         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG10L.
18352         * modules/math (Makefile.am): Substitute REPLACE_LOG10L.
18353         * modules/log10l (configure.ac): Consider REPLACE_LOG10L.
18354         (Depends-on): Update conditions.
18355         * doc/posix-functions/log10l.texi: Mention the MSVC9, AIX 5.1,
18356         IRIX 6.5, OSF/1 5.1 problems.
18358 2012-04-01  Bruno Haible  <bruno@clisp.org>
18360         log10f: Work around OSF/1 5.1 bug.
18361         * lib/math.in.h (log10f): Override if REPLACE_LOG10F is 1.
18362         * lib/log10f.c (log10f): If logf exists, use it and provide just the
18363         workaround.
18364         * m4/log10f.m4 (gl_FUNC_LOG10F_WORKS): New macro.
18365         (gl_FUNC_LOG10F): Invoke it. Set REPLACE_LOG10F.
18366         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG10F.
18367         * modules/math (Makefile.am): Substitute REPLACE_LOG10F.
18368         * modules/log10f (configure.ac): Consider REPLACE_LOG10F.
18369         (Depends-on): Update conditions.
18370         * doc/posix-functions/log10f.texi: Mention the OSF/1 5.1 problem.
18372 2012-04-01  Bruno Haible  <bruno@clisp.org>
18374         log10: Work around OSF/1 5.1 bug.
18375         * lib/math.in.h (log10): New declaration.
18376         * lib/log10.c: New file.
18377         * m4/log10.m4 (gl_FUNC_LOG10_WORKS): New macro.
18378         (gl_FUNC_LOG10): Invoke it. Set REPLACE_LOG10.
18379         * m4/math_h.m4 (gl_MATH_H): Test whether log10 is declared.
18380         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10, REPLACE_LOG10.
18381         * modules/math (Makefile.am): Substitute GNULIB_LOG10, REPLACE_LOG10.
18382         * modules/log10 (Files): Add lib/log10.c.
18383         (Depends-on): Add math.
18384         (configure.ac): If REPLACE_LOG10 is 1, compile an override.
18385         * tests/test-math-c++.cc: Check the declaration of log10.
18386         * doc/posix-functions/log10.texi: Mention the OSF/1 5.1 problem.
18388 2012-03-31  Bruno Haible  <bruno@clisp.org>
18390         log10l tests: More tests.
18391         * modules/log10l-tests (Files): Add tests/test-log10l.h,
18392         tests/minus-zero.h, tests/randoml.c.
18393         (Makefile.am): Add randoml.c to test_log10l_SOURCES.
18394         * tests/test-log10l.c: Include <float.h>, minus-zero.h, test-log10l.h.
18395         (main): Invoke test_function.
18397         log10f tests: More tests.
18398         * modules/log10f-tests (Files): Add tests/test-log10.h,
18399         tests/minus-zero.h, tests/randomf.c.
18400         (Makefile.am): Add randomf.c to test_log10f_SOURCES.
18401         * tests/test-log10f.c: Include <float.h>, minus-zero.h, test-log10.h.
18402         (main): Invoke test_function.
18404         log10 tests: More tests.
18405         * tests/test-log10.h: New file.
18406         * modules/log10-tests (Files): Add tests/test-log10.h,
18407         tests/minus-zero.h, tests/randomd.c.
18408         (Makefile.am): Add randomd.c to test_log10_SOURCES.
18409         * tests/test-log10.c: Include <float.h>, minus-zero.h, test-log10.h.
18410         (main): Invoke test_function.
18412 2012-03-31  Simon Josefsson  <simon@josefsson.org>
18414         fflush: Fix syntax error.
18415         * lib/fflush.c: Include unused-parameter.h, needed for
18416         _GL_UNUSED_PARAMETER.
18417         * modules/fflush (Depends-on): Add snippet/unused-parameter.
18419 2012-03-30  Paul Eggert  <eggert@cs.ucla.edu>
18421         regex: pacify GCC when compiling GRUB
18422         * lib/regcomp.c (init_dfa): Make a pointer 'const', to avoid
18423         a diagnostic.  Reported by Vladimir Serbinenko in
18424         <http://lists.gnu.org/archive/html/bug-gnulib/2012-03/msg00163.html>.
18426 2012-03-29  Eric Blake  <eblake@redhat.com>
18428         stdio: don't assume gets any more
18429         * m4/stdio_h.m4 (gl_STDIO_H, gl_STDIO_H_DEFAULTS): Drop gets
18430         support.
18431         * modules/stdio (Makefile.am): Likewise.
18432         * lib/stdio-read.c (gets): Likewise.
18433         * tests/test-stdio-c++.cc: Likewise.
18434         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Fix comment.
18435         * lib/stdio.in.h (gets): Make warning occur in more places.
18436         * doc/posix-functions/gets.texi (gets): Update documentation.
18437         Reported by Christer Solskogen.
18439         maint.mk: fix syntax checks without exclusions
18440         * top/maint.mk (_sc_search_regexp): Allow for empty variable.
18441         Reported by Daniel P. Berrange.
18443         strerror_r: avoid compiler warning
18444         * lib/strerror_r.c (strerror_r): Hoist extern declaration to top
18445         level.
18447         fflush: avoid compiler warning
18448         * lib/fflush.c (update_fpos_cache): Mark variables that are
18449         potentially unused.
18451 2012-03-25  Bruno Haible  <bruno@clisp.org>
18453         Tests for module 'localeconv'.
18454         * modules/localeconv-tests: New file.
18455         * tests/test-localeconv.c: New file.
18457         New module 'localeconv'.
18458         * lib/locale.in.h (localeconv): New declaration.
18459         * lib/localeconv.c: New file.
18460         * m4/localeconv.m4: New file.
18461         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_LOCALECONV,
18462         REPLACE_LOCALECONV.
18463         * modules/locale (Makefile.am): Substitute GNULIB_LOCALECONV,
18464         REPLACE_LOCALECONV.
18465         * modules/localeconv: New file.
18466         * modules/nl_langinfo (Depends-on): Add localeconv.
18467         * modules/human (Depends-on): Likewise.
18468         * doc/posix-functions/localeconv.texi: Mention the new module.
18470 2012-03-25  Bruno Haible  <bruno@clisp.org>
18472         locale: Provide a complete 'struct lconv'.
18473         * m4/locale_h.m4 (gl_LOCALE_H): Set REPLACE_STRUCT_LCONV to 1 if
18474         'struct lconv' does not contain int_p_cs_precedes.
18475         * tests/test-locale.c (main): Check that 'struct lconv' is complete.
18476         * doc/posix-headers/locale.texi: Update.
18478         locale: Provide a complete 'struct lconv' on Solaris 10, 11.
18479         * m4/locale_h.m4 (gl_LOCALE_H): On Solaris, define _LCONV_C99.
18480         * doc/posix-headers/locale.texi: Update.
18482         locale: Provide a working 'struct lconv'.
18483         * lib/locale.in.h (lconv): Override if REPLACE_STRUCT_LCONV is 1.
18484         * m4/locale_h.m4 (gl_LOCALE_H): Set REPLACE_STRUCT_LCONV to 1 if
18485         'struct lconv' does not even contain decimal_point.
18486         (gl_LOCALE_H_DEFAULTS): Initialize REPLACE_STRUCT_LCONV.
18487         * modules/locale (Makefile.am): Substitute REPLACE_STRUCT_LCONV.
18488         * tests/test-locale.c (main): Check that 'struct lconv' is complete.
18489         * doc/posix-headers/locale.texi: Mention the problems with
18490         'struct lconv'.
18491         Reported by Gianluigi Tiesi <sherpya@netfarm.it>.
18493 2012-03-24  Bruno Haible  <bruno@clisp.org>
18495         Enable common subexpression optimization in GCC.
18496         * lib/unitypes.in.h (_UC_ATTRIBUTE_CONST, _UC_ATTRIBUTE_PURE): New
18497         macros.
18498         * lib/unicase.in.h (uc_toupper, uc_tolower, uc_totitle): Declare with
18499         GCC attribute 'const'.
18500         (uc_locale_language): Declare with GCC attribute 'pure'.
18501         * lib/unicase/caseprop.h (uc_is_cased, uc_is_case_ignorable): Declare
18502         with GCC attribute 'const'.
18503         * lib/unictype.in.h (uc_is_general_category_withtable,
18504         uc_combining_class, uc_combining_class_name,
18505         uc_combining_class_long_name, uc_bidi_class_name,
18506         uc_bidi_category_name, uc_bidi_class_long_name, uc_bidi_class,
18507         uc_bidi_category, uc_is_bidi_class, uc_is_bidi_category,
18508         uc_decimal_value, uc_digit_value, uc_numeric_value,
18509         uc_joining_type_name, uc_joining_type_long_name, uc_joining_type,
18510         uc_joining_group_name, uc_joining_group, uc_is_property_*, uc_script,
18511         uc_block, uc_is_c_whitespace, uc_is_java_whitespace,
18512         uc_c_ident_category, uc_java_ident_category, uc_is_alnum, uc_is_alpha,
18513         uc_is_cntrl, uc_is_digit, uc_is_graph, uc_is_lower, uc_is_print,
18514         uc_is_punct, uc_is_space, uc_is_upper, uc_is_xdigit, uc_is_blank):
18515         Declare with GCC attribute 'const'.
18516         (uc_general_category_name, uc_general_category_long_name,
18517         uc_general_category_byname, uc_general_category,
18518         uc_is_general_category, uc_combining_class_byname,
18519         uc_bidi_class_byname, uc_bidi_category_byname, uc_joining_type_byname,
18520         uc_joining_group_byname, uc_script_byname, uc_is_script, uc_is_block):
18521         Declare with GCC attribute 'pure'.
18522         * lib/unigbrk.in.h (uc_graphemeclusterbreak_property,
18523         uc_is_grapheme_break, u8_grapheme_next, u16_grapheme_next,
18524         u32_grapheme_next, u8_grapheme_prev, u16_grapheme_prev,
18525         u32_grapheme_prev, lib/uniname.in.h (unicode_name_character): Declare
18526         with GCC attribute 'pure'.
18527         * lib/uninorm.in.h (uc_composition): Declare with GCC attribute
18528         'const'.
18529         (uninorm_decomposing_form): Declare with GCC attribute 'pure'.
18530         * lib/unistr.in.h (): Declare with GCC attribute 'const'.
18531         (u8_check, u16_check, u32_check, u8_mblen, u16_mblen, u32_mblen,
18532         u8_cmp, u16_cmp, u32_cmp, u8_cmp2, u16_cmp2, u32_cmp2, u8_chr, u16_chr,
18533         u32_chr, u8_mbsnlen, u16_mbsnlen, u32_mbsnlen, u8_strmblen,
18534         u16_strmblen, u32_strmblen, u8_strlen, u16_strlen, u32_strlen,
18535         u8_strnlen, u16_strnlen, u32_strnlen, u8_strcmp_gnu, u8_strcmp,
18536         u16_strcmp, u32_strcmp, u8_strncmp, u16_strncmp, u32_strncmp,
18537         u8_strchr, u16_strchr, u32_strchr, u8_strrchr, u16_strrchr,
18538         u32_strrchr, u8_strcspn, u16_strcspn, u32_strcspn, u8_strspn,
18539         u16_strspn, u32_strspn, u8_strpbrk, u16_strpbrk, u32_strpbrk,
18540         u8_strstr, u16_strstr, u32_strstr, u8_startswith, u16_startswith,
18541         u32_startswith, u8_endswith, u16_endswith, u32_endswith): Declare with
18542         GCC attribute 'pure'.
18543         * lib/uniwbrk.in.h (uc_wordbreak_property): Declare with GCC attribute
18544         'const'.
18545         * lib/uniwidth.in.h (uc_width): Simplify declaration.
18546         (u8_width, u16_width, u32_width, u8_strwidth, u16_strwidth,
18547         u32_strwidth): Declare with GCC attribute 'pure'.
18549         Enable common subexpression optimization in GCC.
18550         * lib/dirent.in.h (_GL_ATTRIBUTE_PURE): Define, like in string.in.h.
18551         (alphasort): Declare with GCC attribute 'pure'.
18552         * lib/stdlib.in.h (_GL_ATTRIBUTE_PURE): Define, like in string.in.h.
18553         (atoll): Declare with GCC attribute 'pure'.
18554         * lib/string.in.h (mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
18555         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
18556         mbsspn, strverscmp): Declare with GCC attribute 'pure'.
18557         * lib/wchar.in.h (_GL_ATTRIBUTE_PURE): Define, like in string.in.h.
18558         (btowc, wctob, wcwidth, wmemchr, wmemcmp, wcslen, wcsnlen, wcscmp,
18559         wcsncmp, wcscasecmp, wcsncasecmp, wcschr, wcsrchr, wcscspn, wcsspn,
18560         wcspbrk, wcsstr, wcswidth): Declare with GCC attribute 'pure'.
18562 2012-03-24  Bruno Haible  <bruno@clisp.org>
18564         gnulib-tool: Avoid unintended error output from 'cmp'.
18565         * gnulib-tool (func_add_file, func_update_file, func_import): Use
18566         "cmp -s", not "cmp > /dev/null".
18568 2012-03-23  Stefano Lattarini  <stefano.lattarini@gmail.com>
18570         gnulib-tool: fix imprecise comments w.r.t. an automake bug
18572         It's not just Automake versions < 1.9b that creates an empty
18573         pkgdatadir at installation time if pkgdata_DATA is specified
18574         to empty; modern automake versions do this as well, at least
18575         until automake 1.11.4 (not yet released at the moment of writing,
18576         but soon to appear).  That behaviour was generally considered a
18577         feature rather than a bug, at least until this discussion:
18578         <http://lists.gnu.org/archive/html/automake/2012-03/msg00014.html>
18580         See also automake bugs #10997 and #11030.
18582         * gnulib-tool (func_emit_lib_Makefile_am): Adjust comments.  Add
18583         reference to relevant automake bug numbers.
18584         (func_emit_tests_Makefile_am): Likewise.
18586 2012-03-20  Reuben Thomas  <rrt@sc3d.org>
18588         announce-gen: use Digest::SHA when possible
18589         * build-aux/announce-gen: Use Digest::SHA when possible, falling
18590         back to Digest::SHA1 if necessary.
18592 2012-03-20  Jim Meyering  <meyering@redhat.com>
18594         tests: avoid gcc warnings about argv vs. const initializers
18595         * tests/test-posix_spawn1.c (main): Cast to "(char *)" to avoid two
18596         warnings about discarding 'const' qualifier from pointer target type.
18597         * tests/test-posix_spawn2.c (main): Likewise.
18599 2012-03-20  Reuben Thomas  <rrt@sc3d.org>
18601         README-release: simplify slightly
18602         * top/README-release: Run "git checkout master" only once.
18604 2012-03-15  Mark Wielaard  <mark@klomp.org>
18606         git-merge-changelog: add specific example on how to use with hg.
18607         * lib/git-merge-changelog.c: Add example on how to use in .hgrc.
18609 2012-03-18  Mark Wielaard  <mark@klomp.org>
18611         lib/git-merge-changelog.c (status): Report bugs to bug-gnulib@gnu.org.
18613 2012-03-18  Andreas Oberritter  <obi@opendreambox.org>
18615         git-version-gen: don't let "prefix" envvar cause trouble
18616         * build-aux/git-version-gen (prefix): Initialize properly,
18617         so as not to use a value specified via the environment.
18618         Details here: http://thread.gmane.org/gmane.comp.gnu.parted.bugs/10810
18620 2012-03-16  Paul Eggert  <eggert@cs.ucla.edu>
18622         regex: diagnose too-large repeat counts in EREs
18623         Previously, the code did not diagnose the too-large repeat count
18624         in EREs like 'b{1000000000}'; instead, it silently treated the ERE
18625         as if it were 'b\{1000000000}', which is unexpected.
18626         * lib/regcomp.c (parse_dup_op): Fail with REG_ESIZE if a repeat count
18627         is too large.  REG_ESIZE is used nowhere else, and the diagnostic
18628         is a reasonable one for this problem.  Another option would be to
18629         create a new REG_OVERFLOW error for repeat counts that are too large.
18630         (fetch_number): Return RE_DUP_MAX + 1, not REG_ERROR, if the repeat
18631         count is too large, so that the caller can distinguish the two cases.
18632         * lib/regex.h (_REG_ESIZE): Document that this is now a generic
18633         "Too large" return code, and that repeat counts are one example of this.
18635 2012-03-16  Paul Eggert  <eggert@cs.ucla.edu>
18637         doc: some glibc x32 integer width issues
18638         * doc/posix-headers/sys_types.texi (sys/types.h):
18639         * doc/posix-headers/time.texi (time.h):
18640         Mention that glibc x32 does not conform to POSIX in a couple of
18641         areas related to integer widths.
18643 2012-03-15  Bruno Haible  <bruno@clisp.org>
18645         fmal: Avoid test failure on OpenBSD 5.1/SPARC64.
18646         * lib/fma.c (VOLATILE): New macro.
18647         (FUNC): Use it to work around a GCC compiler bug.
18649 2012-03-13  Bruno Haible  <bruno@clisp.org>
18651         hypotl: Bypass broken implementation in OpenBSD 5.1/SPARC.
18652         * m4/hypotl.m4 (gl_FUNC_HYPOTL_WORKS): New macro.
18653         (gl_FUNC_HYPOTL): Invoke it. If the function does not work, set
18654         REPLACE_HYPOTL to 1.
18655         * doc/posix-functions/hypotl.texi: Mention the OpenBSD 5.1/SPARC bug.
18657 2012-03-13  Bruno Haible  <bruno@clisp.org>
18659         remainderl: Bypass broken implementation in OpenBSD 5.1/SPARC.
18660         * m4/remainderl.m4 (gl_FUNC_REMAINDERL_WORKS): New macro.
18661         (gl_FUNC_REMAINDERL): Invoke it. If the function does not work, set
18662         REPLACE_REMAINDERL to 1.
18663         * doc/posix-functions/remainderl.texi: Mention the OpenBSD 5.1/SPARC
18664         bug.
18666 2012-03-13  Bruno Haible  <bruno@clisp.org>
18668         sqrtl: Bypass broken implementation in OpenBSD 5.1/SPARC.
18669         * lib/math.in.h (sqrtl): Replace it if REPLACE_SQRTL is 1.
18670         * m4/sqrtl.m4 (gl_FUNC_SQRTL_WORKS): New macro.
18671         (gl_FUNC_SQRTL): Invoke it. Set REPLACE_SQRTL to 1 if sqrtl() produces
18672         too big rounding errors.
18673         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_SQRTL.
18674         * modules/math (Makefile.am): Substitute REPLACE_SQRTL.
18675         * modules/sqrtl (configure.ac): Consider REPLACE_SQRTL.
18676         (Depends-on): Update conditions.
18677         * tests/test-sqrtl.c (my_ldexpl): New function.
18678         (main): Add test of a particular value.
18679         * doc/posix-functions/sqrtl.texi: Mention the OpenBSD 5.1/SPARC bug.
18681 2012-03-13  Pádraig Brady  <P@draigBrady.com>
18683         doc: Update timer_* platform portability notes.
18684         * doc/posix-functions/timer_create.texi: Add platforms (OpenBSD 4.9)
18685         that always return ENOSYS.
18686         * doc/posix-functions/timer_delete.texi: Likewise.
18687         * doc/posix-functions/timer_gettime.texi: Likewise.
18688         * doc/posix-functions/timer_settime.texi: Likewise.
18690 2012-03-13  Bruno Haible  <bruno@clisp.org>
18692         cbrtl: Bypass broken implementation in OpenBSD 5.1/SPARC.
18693         * m4/cbrtl.m4 (gl_FUNC_CBRTL_WORKS): New macro.
18694         (gl_FUNC_CBRTL): Invoke it. If the function does not work, set
18695         REPLACE_CBRTL to 1.
18696         * doc/posix-functions/cbrtl.texi: Mention the OpenBSD 5.1/SPARC bug.
18698 2012-03-13  Bruno Haible  <bruno@clisp.org>
18700         remainderl: Avoid compilation error on AIX >= 5.2.
18701         * lib/math.in.h (remainderl): Undefine macro from the system header.
18703 2012-03-13  Bruno Haible  <bruno@clisp.org>
18705         Avoid compilation errors with MSVC option -fp:strict.
18706         * lib/cbrt.c: Use MSVC specific pragma fenv_access.
18707         * lib/cbrtf.c: Likewise.
18708         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
18710 2012-03-12  Bruno Haible  <bruno@clisp.org>
18712         uninorm: Don't crash in out-of-memory conditions.
18713         * lib/uninorm/u-normalize-internal.h (FUNC): Handle malloc() failure
18714         gracefully.
18715         * lib/uninorm/uninorm-filter.c (uninorm_filter_write): Likewise.
18716         Based on a report and patch by Stephen Gallagher <sgallagh@redhat.com>.
18718 2012-03-13  Akim Demaille  <akim@lrde.epita.fr>
18720         quote: fix syntax-check
18721         * top/maint.mk (sc_prohibit_quote_without_use): quote.h
18722         also exports quote_quoting_options.
18724 2012-03-12  Simon Josefsson  <simon@josefsson.org>
18726         Collapse list of copyright years to ranges.  See
18727         <https://lists.gnu.org/archive/html/bug-gnulib/2012-03/msg00051.html>.
18728         * build-aux/bootstrap.conf, build-aux/csharpcomp.sh.in,
18729         build-aux/csharpexec.sh.in, build-aux/gnupload,
18730         build-aux/install-reloc, build-aux/javacomp.sh.in,
18731         build-aux/javaexec.sh.in, build-aux/ldd.sh.in,
18732         build-aux/move-if-change, build-aux/reloc-ldflags,
18733         build-aux/relocatable.sh.in, build-aux/x-to-1.in: Fix copyright.
18735 2012-03-11  Bruno Haible  <bruno@clisp.org>
18737         log2f-ieee: Work around test failure on NetBSD 5.1 and Solaris 10.
18738         * m4/log2f-ieee.m4: New file.
18739         * m4/log2f.m4 (gl_FUNC_LOG2F): If gl_FUNC_LOG2F_IEEE is present, test
18740         whether log2f works with a minus zero argument. Replace it if not.
18741         * modules/log2f-ieee (Files): Add m4/log2f-ieee.m4.
18742         (Depends-on): Add log2-ieee.
18743         (configure.ac): Invoke gl_FUNC_LOG2F_IEEE.
18744         * doc/posix-functions/log2f.texi: Mention the log2f-ieee module.
18746         log2-ieee: Work around test failure on NetBSD 5.1 and Solaris 10.
18747         * m4/log2-ieee.m4: New file.
18748         * m4/log2.m4 (gl_FUNC_LOG2): If gl_FUNC_LOG2_IEEE is present, test
18749         whether log2 works with a minus zero argument. Replace it if not.
18750         * modules/log2-ieee (Files): Add m4/log2-ieee.m4.
18751         (configure.ac): Invoke gl_FUNC_LOG2_IEEE.
18752         * doc/posix-functions/log2.texi: Mention the log2-ieee module.
18754         Tests for module 'log2l-ieee'.
18755         * modules/log2l-ieee-tests: New file.
18756         * tests/test-log2l-ieee.c: New file.
18758         New module 'log2l-ieee'.
18759         * modules/log2l-ieee: New file.
18761         Tests for module 'log2-ieee'.
18762         * modules/log2-ieee-tests: New file.
18763         * tests/test-log2-ieee.c: New file.
18765         New module 'log2-ieee'.
18766         * modules/log2-ieee: New file.
18768         Tests for module 'log2f-ieee'.
18769         * modules/log2f-ieee-tests: New file.
18770         * tests/test-log2f-ieee.c: New file.
18771         * tests/test-log2-ieee.h: New file.
18773         New module 'log2f-ieee'.
18774         * modules/log2f-ieee: New file.
18776 2012-03-11  Bruno Haible  <bruno@clisp.org>
18778         Tests for module 'log2l'.
18779         * modules/log2l-tests: New file.
18780         * tests/test-log2l.c: New file.
18782         New module 'log2l'.
18783         * lib/math.in.h (log2l): New declaration.
18784         * lib/log2l.c: New file.
18785         * m4/log2l.m4: New file.
18786         * m4/math_h.m4 (gl_MATH_H): Test whether log2l is declared.
18787         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG2L, HAVE_DECL_LOG2L,
18788         REPLACE_LOG2L.
18789         * modules/math (Makefile.am): Substitute GNULIB_LOG2L, HAVE_DECL_LOG2L,
18790         REPLACE_LOG2L.
18791         * modules/log2l: New file.
18792         * tests/test-math-c++.cc: Check the declaration of log2l.
18793         * doc/posix-functions/log2l.texi: Mention the new module and the IRIX
18794         and OSF/1 problems.
18796 2012-03-11  Bruno Haible  <bruno@clisp.org>
18798         Tests for module 'log2f'.
18799         * modules/log2f-tests: New file.
18800         * tests/test-log2f.c: New file.
18802         New module 'log2f'.
18803         * lib/math.in.h (log2f): New declaration.
18804         * lib/log2f.c: New file.
18805         * m4/log2f.m4: New file.
18806         * m4/math_h.m4 (gl_MATH_H): Test whether log2f is declared.
18807         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG2F, HAVE_DECL_LOG2F,
18808         REPLACE_LOG2F.
18809         * modules/math (Makefile.am): Substitute GNULIB_LOG2F, HAVE_DECL_LOG2F,
18810         REPLACE_LOG2F.
18811         * modules/log2f: New file.
18812         * tests/test-math-c++.cc: Check the declaration of log2f.
18813         * doc/posix-functions/log2f.texi: Mention the new module and the IRIX
18814         and OSF/1 and Cygwin problems.
18816 2012-03-11  Bruno Haible  <bruno@clisp.org>
18818         Tests for module 'log2'.
18819         * modules/log2-tests: New file.
18820         * tests/test-log2.c: New file.
18821         * tests/test-log2.h: New file.
18823         New module 'log2'.
18824         * lib/math.in.h (log2): New declaration.
18825         * lib/log2.c: New file.
18826         * m4/log2.m4: New file.
18827         * m4/math_h.m4 (gl_MATH_H): Test whether log2 is declared.
18828         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG2, HAVE_DECL_LOG2,
18829         REPLACE_LOG2.
18830         * modules/math (Makefile.am): Substitute GNULIB_LOG2, HAVE_DECL_LOG2,
18831         REPLACE_LOG2.
18832         * modules/log2: New file.
18833         * tests/test-math-c++.cc: Check the declaration of log2.
18834         * doc/posix-functions/log2.texi: Mention the new module and the IRIX
18835         and OSF/1 and Cygwin problems.
18837 2012-03-11  Bruno Haible  <bruno@clisp.org>
18839         exp2* tests: More tests.
18840         * tests/test-exp2.h (test_function): Test all integral arguments that
18841         don't need to overflow or denormalized numbers.
18842         * tests/test-exp2.c (MAX_EXP, MIN_EXP): New macros.
18843         * tests/test-exp2f.c (MAX_EXP, MIN_EXP): Likewise.
18844         * tests/test-exp2l.c (MAX_EXP, MIN_EXP): Likewise.
18846 2012-03-10  Bruno Haible  <bruno@clisp.org>
18848         log1pl-ieee: Work around test failure on AIX 7.1.
18849         * modules/log1pl-ieee (Depends-on): Add log1p-ieee.
18851         log1pl-ieee: Work around test failure on IRIX 6.5.
18852         * m4/log1pl-ieee.m4: New file.
18853         * m4/log1pl.m4 (gl_FUNC_LOG1PL): If gl_FUNC_LOG1PL_IEEE is present,
18854         test whether log1pl works with a minus zero argument. Replace it if
18855         not.
18856         * lib/math.in.h (log1pl): Override if REPLACE_LOG1PL is 1.
18857         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG1PL.
18858         * modules/math (Makefile.am): Substitute REPLACE_LOG1PL.
18859         * modules/log1pl (configure.ac): Consider REPLACE_LOG1PL.
18860         (Depends-on): Update conditions.
18861         * modules/log1pl-ieee (Files): Add m4/log1p-ieee.m4, m4/minus-zero.m4,
18862         m4/signbit.m4.
18863         (configure.ac): Invoke gl_FUNC_LOG1PL_IEEE.
18864         * doc/posix-functions/log1pl.texi: Mention the log1pl-ieee module.
18866         log1pf-ieee: Work around test failure on OpenBSD 4.9 and AIX 7.1.
18867         * m4/log1pf-ieee.m4: New file.
18868         * m4/log1pf.m4 (gl_FUNC_LOG1PF): If gl_FUNC_LOG1PF_IEEE is present,
18869         test whether log1pf works with a minus zero argument. Replace it if
18870         not.
18871         * modules/log1pf-ieee (Files): Add m4/log1pf-ieee.m4, m4/minus-zero.m4,
18872         m4/signbit.m4.
18873         (configure.ac): Invoke gl_FUNC_LOG1PF_IEEE.
18874         * doc/posix-functions/log1pf.texi: Mention the log1pf-ieee module.
18876         log1pf-ieee: Work around test failure on AIX 5.1 and HP-UX 11.
18877         * modules/log1pf-ieee (Depends-on): Add log1p-ieee.
18878         (configure.ac): Require gl_FUNC_LOG1PF.
18880         log1p-ieee: Work around test failure on AIX 7.1 and HP-UX 11.
18881         * m4/log1p-ieee.m4: New file.
18882         * m4/log1p.m4 (gl_FUNC_LOG1P): If gl_FUNC_LOG1P_IEEE is present, test
18883         whether log1p works with a minus zero argument. Replace it if not.
18884         * lib/math.in.h (log1p): Override if REPLACE_LOG1P is 1.
18885         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG1P.
18886         * modules/math (Makefile.am): Substitute REPLACE_LOG1P.
18887         * modules/log1p (configure.ac): Consider REPLACE_LOG1P.
18888         (Depends-on): Update conditions.
18889         * modules/log1p-ieee (Files): Add m4/log1p-ieee.m4, m4/minus-zero.m4,
18890         m4/signbit.m4.
18891         (configure.ac): Invoke gl_FUNC_LOG1P_IEEE.
18892         * doc/posix-functions/log1p.texi: Mention the log1p-ieee module.
18894         Tests for module 'log1pl-ieee'.
18895         * modules/log1pl-ieee-tests: New file.
18896         * tests/test-log1pl-ieee.c: New file.
18898         New module 'log1pl-ieee'.
18899         * modules/log1pl-ieee: New file.
18901         Tests for module 'log1p-ieee'.
18902         * modules/log1p-ieee-tests: New file.
18903         * tests/test-log1p-ieee.c: New file.
18905         New module 'log1p-ieee'.
18906         * modules/log1p-ieee: New file.
18908         Tests for module 'log1pf-ieee'.
18909         * modules/log1pf-ieee-tests: New file.
18910         * tests/test-log1pf-ieee.c: New file.
18911         * tests/test-log1p-ieee.h: New file.
18913         New module 'log1pf-ieee'.
18914         * modules/log1pf-ieee: New file.
18916 2012-03-10  Bruno Haible  <bruno@clisp.org>
18918         Tests for module 'log1pl'.
18919         * modules/log1pl-tests: New file.
18920         * tests/test-log1pl.c: New file.
18922         New module 'log1pl'.
18923         * lib/math.in.h (log1pl): New declaration.
18924         * lib/log1pl.c: New file.
18925         * m4/log1pl.m4: New file.
18926         * m4/math_h.m4 (gl_MATH_H): Test whether log1pl is declared.
18927         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG1PL, HAVE_LOG1PL.
18928         * modules/math (Makefile.am): Substitute GNULIB_LOG1PL, HAVE_LOG1PL.
18929         * modules/log1pl: New file.
18930         * tests/test-math-c++.cc: Check the declaration of log1pl.
18931         * doc/posix-functions/log1pl.texi: Mention the new module.
18933 2012-03-10  Bruno Haible  <bruno@clisp.org>
18935         Tests for module 'log1pf'.
18936         * modules/log1pf-tests: New file.
18937         * tests/test-log1pf.c: New file.
18939         New module 'log1pf'.
18940         * lib/math.in.h (log1pf): New declaration.
18941         * lib/log1pf.c: New file.
18942         * m4/log1pf.m4: New file.
18943         * m4/math_h.m4 (gl_MATH_H): Test whether log1pf is declared.
18944         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG1PF, HAVE_LOG1PF,
18945         REPLACE_LOG1PF.
18946         * modules/math (Makefile.am): Substitute GNULIB_LOG1PF, HAVE_LOG1PF,
18947         REPLACE_LOG1PF.
18948         * modules/log1pf: New file.
18949         * tests/test-math-c++.cc: Check the declaration of log1pf.
18950         * doc/posix-functions/log1pf.texi: Mention the new module.
18952 2012-03-10  Bruno Haible  <bruno@clisp.org>
18954         log1p tests: More tests.
18955         * tests/test-log1p.h: New file.
18956         * modules/log1p-tests (Files): Add tests/test-log1p.h, tests/randomd.c.
18957         (Makefile.am): Add randomd.c to test_log1p_SOURCES.
18958         * tests/test-log1p.c: Include <float.h> and test-log1p.h.
18959         (main): Invoke test_function.
18961         log1p: Provide replacement for Minix and MSVC.
18962         * lib/math.in.h (log1p): New declaration.
18963         * lib/log1p.c: New file.
18964         * m4/log1p.m4: New file.
18965         * m4/math_h.m4 (gl_MATH_H): Test whether log1p is declared.
18966         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG1P, HAVE_LOG1P.
18967         * modules/math (Makefile.am): Substitute GNULIB_LOG1P, HAVE_LOG1P.
18968         * modules/log1p (Files): Add lib/log1p.c, m4/log1p.m4.
18969         (Depends-on): Add math, isnand, log, round.
18970         (configure.ac): Invoke gl_FUNC_LOG1P. Arrange to compile replacement if
18971         HAVE_LOG1P is 0.
18972         * tests/test-math-c++.cc: Check the declaration of log1p.
18973         * doc/posix-functions/log1p.texi: Mention the replacement.
18975 2012-03-10  Bruno Haible  <bruno@clisp.org>
18977         math tests: Small simplification.
18978         * tests/test-exp.h (test_function): Use the same err_bound for
18979         'double' on platforms with sizeof (long double) == sizeof (double)
18980         than on platforms with sizeof (long double) > sizeof (double).
18981         * tests/test-exp2.h (test_function): Likewise.
18982         * tests/test-expm1.h (test_function): Likewise.
18983         * tests/test-log.h (test_function): Likewise.
18985 2012-03-10  Bruno Haible  <bruno@clisp.org>
18987         Fix some comments.
18988         * lib/expl.c: Fix an ambiguous comment.
18989         * lib/expm1.c: Likewise.
18990         * lib/expm1l.c: Likewise.
18991         * lib/exp2.c: Likewise.
18992         * lib/exp2l.c: Likewise.
18994 2012-03-10  Paul Eggert  <eggert@cs.ucla.edu>
18996         regex: allow inclusion of <regex.h> before <limits.h>
18997         Without this patch, portable programs had to include <limits.h> before
18998         <regex.h> if they wanted a consistent value for RE_DUP_MAX.
18999         I ran into this problem with a test version of GNU grep on Solaris 8.
19000         * lib/regex.h: Include <limits.h> if _REGEX_INCLUDE_LIMITS_H.
19001         This is done conditionally so that this change can be merged
19002         back to glibc.
19003         * m4/regex.m4 (gl_REGEX): Define _REGEX_INCLUDE_LIMITS_H if
19004         using the included regex.
19006         fts: depend on fdopendir
19007         * modules/fts (Depends-on): Depend on fdopendir.  This is needed
19008         on Solaris 8, at least, since it lacks fdopendir.  Evidently the
19009         problem was introduced when fdopendir was split out.
19011 2012-03-10  Bruno Haible  <bruno@clisp.org>
19013         Remove unused variables.
19014         * m4/fmodf.m4 (gl_FUNC_FMODF): Remove unused variable 'i'.
19015         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Likewise.
19017 2012-03-10  Bruno Haible  <bruno@clisp.org>
19019         isnanf-nolibm: Fix last commit.
19020         * lib/isnanf-nolibm.h [IRIX]: Don't include <ieeefp.h>. Declare isnanf.
19022         isnanf-nolibm: Make it work on IRIX 6.5 with cc.
19023         * lib/isnanf-nolibm.h [IRIX]: Include <ieeefp.h>.
19025 2012-03-10  Bruno Haible  <bruno@clisp.org>
19027         logf-ieee: Work around test failure on NetBSD 5.1.
19028         * m4/logf-ieee.m4: New file.
19029         * m4/logf.m4 (gl_FUNC_LOGF): If gl_FUNC_LOGF_IEEE is present, test
19030         whether logf works with a negative argument. Replace it if not.
19031         * lib/logf.c (logf): For negative arguments, return NaN.
19032         * modules/logf-ieee (Files): Add m4/logf-ieee.m4.
19033         (configure.ac): Invoke gl_FUNC_LOGF_IEEE.
19034         * doc/posix-functions/logf.texi: Mention the logf-ieee module.
19036         logf-ieee: Work around test failure on Solaris 9.
19037         * modules/logf-ieee (Depends-on): Add log-ieee.
19038         (configure.ac): Require gl_FUNC_LOGF.
19040         log-ieee: Work around test failure on NetBSD 5.1 and Solaris 11.
19041         * m4/log-ieee.m4: New file.
19042         * m4/log.m4 (gl_FUNC_LOG): If gl_FUNC_LOG_IEEE is present, test whether
19043         log works with a negative argument. Replace it if not.
19044         * lib/log.c (log): For negative arguments, return NaN.
19045         * modules/log-ieee (Files): Add m4/log-ieee.m4.
19046         (configure.ac): Invoke gl_FUNC_LOG_IEEE.
19047         * doc/posix-functions/log.texi: Mention the log-ieee module.
19049         Tests for module 'logl-ieee'.
19050         * modules/logl-ieee-tests: New file.
19051         * tests/test-logl-ieee.c: New file.
19053         New module 'logl-ieee'.
19054         * modules/logl-ieee: New file.
19056         Tests for module 'log-ieee'.
19057         * modules/log-ieee-tests: New file.
19058         * tests/test-log-ieee.c: New file.
19060         New module 'log-ieee'.
19061         * modules/log-ieee: New file.
19063         Tests for module 'logf-ieee'.
19064         * modules/logf-ieee-tests: New file.
19065         * tests/test-logf-ieee.c: New file.
19066         * tests/test-log-ieee.h: New file.
19068         New module 'logf-ieee'.
19069         * modules/logf-ieee: New file.
19071 2012-03-10  Bruno Haible  <bruno@clisp.org>
19073         log: Fix bug introduced on 2012-03-09.
19074         * m4/log.m4 (gl_FUNC_LOG): Require gl_MATH_H_DEFAULTS.
19076 2012-03-10  Pádraig Brady  <P@draigBrady.com>
19078         timer-time: link explicitly with pthreads on glibc
19079         * m4/timer_time.m4 (LIB_TIMER_TIME): Add -lpthread
19080         to support static linking, when newer glibc is
19081         detected, as that contains pthread emulation of
19082         POSIX timer functions where required.
19083         * modules/timer-time: Depend on threadlib to
19084         pull in the appropriate library to link.
19086 2012-03-10  Bruno Haible  <bruno@clisp.org>
19088         log* tests: More tests.
19089         * tests/test-log.h: New file.
19090         * tests/test-log.c: Include <float.h>, minus-zero.h, test-log.h.
19091         (main): Invoke test_function.
19092         * tests/test-logf.c: Include <float.h>, minus-zero.h, test-log.h.
19093         (main): Invoke test_function.
19094         * tests/test-logl.c: Include <float.h>, minus-zero.h, test-log.h.
19095         (main): Invoke test_function.
19096         * modules/log-tests (Files): Add tests/test-log.h, tests/minus-zero.h,
19097         tests/randomd.c.
19098         (Makefile.am): Add randomd.c to test_log_SOURCES.
19099         * modules/logf-tests (Files): Add tests/test-log.h, tests/minus-zero.h,
19100         tests/randomf.c.
19101         (Makefile.am): Add randomf.c to test_logf_SOURCES.
19102         * modules/logl-tests (Files): Add tests/test-log.h, tests/minus-zero.h,
19103         tests/randoml.c.
19104         (Depends-on): Add 'float'.
19105         (Makefile.am): Add randoml.c to test_logl_SOURCES.
19107 2012-03-09  Bruno Haible  <bruno@clisp.org>
19109         logl: Work around OSF/1 5.1 bug.
19110         * lib/math.in.h (logl): Override if REPLACE_LOGL is 1.
19111         * lib/logl.c (logl): If logl exists, use it and provide just the
19112         workaround.
19113         * m4/logl.m4 (gl_FUNC_LOGL_WORKS): New macro.
19114         (gl_FUNC_LOGL): Invoke it. Set REPLACE_LOGL.
19115         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOGL.
19116         * modules/math (Makefile.am): Substitute REPLACE_LOGL.
19117         * modules/logl (configure.ac): Consider REPLACE_LOGL.
19118         (Depends-on): Update conditions.
19119         * doc/posix-functions/logl.texi: Mention the OSF/1 5.1 problem.
19121 2012-03-09  Bruno Haible  <bruno@clisp.org>
19123         logf: Work around OSF/1 5.1 bug.
19124         * lib/math.in.h (logf): Override if REPLACE_LOGF is 1.
19125         * lib/logf.c (logf): If logf exists, use it and provide just the
19126         workaround.
19127         * m4/logf.m4 (gl_FUNC_LOGF_WORKS): New macro.
19128         (gl_FUNC_LOGF): Invoke it. Set REPLACE_LOGF.
19129         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOGF.
19130         * modules/math (Makefile.am): Substitute REPLACE_LOGF.
19131         * modules/logf (configure.ac): Consider REPLACE_LOGF.
19132         (Depends-on): Update conditions.
19133         * doc/posix-functions/logf.texi: Mention the OSF/1 5.1 problem.
19135 2012-03-09  Bruno Haible  <bruno@clisp.org>
19137         log: Work around OSF/1 5.1 bug.
19138         * lib/math.in.h (log): New declaration.
19139         * lib/log.c: New file.
19140         * m4/log.m4 (gl_FUNC_LOG_WORKS): New macro.
19141         (gl_FUNC_LOG): Invoke it. Set REPLACE_LOG.
19142         * m4/math_h.m4 (gl_MATH_H): Test whether log is declared.
19143         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG, REPLACE_LOG.
19144         * modules/math (Makefile.am): Substitute GNULIB_LOG, REPLACE_LOG.
19145         * modules/log (Files): Add lib/log.c.
19146         (Depends-on): Add math.
19147         (configure.ac): If REPLACE_LOG is 1, compile an override.
19148         * tests/test-math-c++.cc: Check the declaration of log.
19149         * doc/posix-functions/log.texi: Mention the OSF/1 5.1 problem.
19151 2012-03-09  Jim Meyering  <meyering@redhat.com>
19153         readtokens.c: adjust wording in a comment
19154         * lib/readtokens.c: Insert omitted "that" in a comment.
19156 2012-03-08  Paul Eggert  <eggert@cs.ucla.edu>
19158         modechange: add notations +40, 00440, etc.
19159         * lib/modechange.c (mode_compile): Support new notations
19160         +40, -40, =440, 00440.  See <http://debbugs.gnu.org/8391>.
19162 2012-03-08  Bruno Haible  <bruno@clisp.org>
19164         exp2l-ieee: Work around test failure on OpenBSD 4.9 and IRIX 6.5.
19165         * m4/exp2l-ieee.m4: New file.
19166         * m4/exp2l.m4 (gl_FUNC_EXP2L): If gl_FUNC_EXP2L_IEEE is present,
19167         test whether exp2l works with a NaN argument and with a negative
19168         infinity argument. Replace it if not.
19169         * lib/math.in.h (exp2l): Override if REPLACE_EXP2L is 1.
19170         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXP2L.
19171         * modules/math (Makefile.am): Substitute REPLACE_EXP2L.
19172         * modules/exp2l (configure.ac): Consider REPLACE_EXP2L.
19173         (Depends-on): Update conditions.
19174         * modules/exp2l-ieee (Files): Add m4/exp2l-ieee.m4.
19175         (configure.ac): Invoke gl_FUNC_EXP2L_IEEE.
19176         * doc/posix-functions/exp2l.texi: Mention the exp2l-ieee module.
19178         Tests for module 'exp2l-ieee'.
19179         * modules/exp2l-ieee-tests: New file.
19180         * tests/test-exp2l-ieee.c: New file.
19182         New module 'exp2l-ieee'.
19183         * modules/exp2l-ieee: New file.
19185         Tests for module 'exp2-ieee'.
19186         * modules/exp2-ieee-tests: New file.
19187         * tests/test-exp2-ieee.c: New file.
19189         New module 'exp2-ieee'.
19190         * modules/exp2-ieee: New file.
19192         Tests for module 'exp2f-ieee'.
19193         * modules/exp2f-ieee-tests: New file.
19194         * tests/test-exp2f-ieee.c: New file.
19195         * tests/test-exp2-ieee.h: New file.
19197         New module 'exp2f-ieee'.
19198         * modules/exp2f-ieee: New file.
19200 2012-03-08  Bruno Haible  <bruno@clisp.org>
19202         Tests for module 'exp2l'.
19203         * modules/exp2l-tests: New file.
19204         * tests/test-exp2l.c: New file.
19206         New module 'exp2l'.
19207         * lib/math.in.h (exp2l): New declaration.
19208         * lib/exp2l.c: New file.
19209         * lib/expl-table.c: New file, extracted from lib/expl.c.
19210         * lib/expl.c (gl_expl_table): New declaration.
19211         (expl): Remove expl_table. Update reference.
19212         * m4/exp2l.m4: New file.
19213         * m4/math_h.m4 (gl_MATH_H): Test whether exp2l is declared.
19214         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXP2L, HAVE_DECL_EXP2L.
19215         * modules/math (Makefile.am): Substitute GNULIB_EXP2L, HAVE_DECL_EXP2L.
19216         * modules/exp2l: New file.
19217         * modules/expl (Files): Add lib/expl-table.c.
19218         (configure.ac): Compile also expl-table.c.
19219         * tests/test-math-c++.cc: Check the declaration of exp2l.
19220         * doc/posix-functions/exp2l.texi: Mention the new module and the IRIX
19221         problem.
19223 2012-03-08  Bruno Haible  <bruno@clisp.org>
19225         Tests for module 'exp2f'.
19226         * modules/exp2f-tests: New file.
19227         * tests/test-exp2f.c: New file.
19229         New module 'exp2f'.
19230         * lib/math.in.h (exp2f): New declaration.
19231         * lib/exp2f.c: New file.
19232         * m4/exp2f.m4: New file.
19233         * m4/math_h.m4 (gl_MATH_H): Test whether exp2f is declared.
19234         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXP2F, HAVE_DECL_EXP2F.
19235         * modules/math (Makefile.am): Substitute GNULIB_EXP2F, HAVE_DECL_EXP2F.
19236         * modules/exp2f: New file.
19237         * tests/test-math-c++.cc: Check the declaration of exp2f.
19238         * doc/posix-functions/exp2f.texi: Mention the new module and the
19239         IRIX problem.
19241 2012-03-08  Bruno Haible  <bruno@clisp.org>
19243         Tests for module 'exp2'.
19244         * modules/exp2-tests: New file.
19245         * tests/test-exp2.c: New file.
19246         * tests/test-exp2.h: New file.
19248         New module 'exp2'.
19249         * lib/math.in.h (exp2): New declaration.
19250         * lib/exp2.c: New file.
19251         * m4/exp2.m4: New file.
19252         * m4/math_h.m4 (gl_MATH_H): Test whether exp2 is declared.
19253         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXP2, HAVE_DECL_EXP2,
19254         REPLACE_EXP2.
19255         * modules/math (Makefile.am): Substitute GNULIB_EXP2, HAVE_DECL_EXP2,
19256         REPLACE_EXP2.
19257         * modules/exp2: New file.
19258         * tests/test-math-c++.cc: Check the declaration of exp2.
19259         * doc/posix-functions/exp2.texi: Mention the new module and the IRIX
19260         and OpenBSD problems.
19262 2012-03-08  Paul Eggert  <eggert@cs.ucla.edu>
19264         savedir: fix comment typo
19265         * lib/savedir.c (savedirstream): Fix typo in comment.
19267 2012-03-08  Bruno Haible  <bruno@clisp.org>
19269         test-readtokens.c: use const; remove unwarranted cast
19270         * tests/test-readtokens.c: Declare delim to be const, to avoid a cast.
19272 2012-03-08  Bruno Haible  <bruno@clisp.org>
19274         fmal: Avoid compilation error on AIX.
19275         * lib/math.in.h (fmal): Undefine macro before declaration. Needed on
19276         AIX 5.2..7.1.
19278 2012-03-08  Bruno Haible  <bruno@clisp.org>
19280         fma, fmaf, fmal: Override undeclared system functions on IRIX 6.5.
19281         * m4/fma.m4 (gl_FUNC_FMA): If fma() exists but is not declared,
19282         arrange to set REPLACE_FMA=1, not HAVE_FMA=0.
19283         * m4/fmaf.m4 (gl_FUNC_FMAF): If fmaf() exists but is not declared,
19284         arrange to set REPLACE_FMAF=1, not HAVE_FMAF=0.
19285         * m4/fmal.m4 (gl_FUNC_FMAL): If fmal() exists but is not declared,
19286         arrange to set REPLACE_FMAL=1, not HAVE_FMAL=0.
19288 2012-03-08  Bruno Haible  <bruno@clisp.org>
19290         remainderf: Override buggy system function on IRIX 6.5.
19291         * m4/remainderf.m4 (gl_FUNC_REMAINDERF_WORKS): New macro.
19292         (gl_FUNC_REMAINDERF): Invoke it. Don't assume remainderf() is declared
19293         when it exists.
19294         * doc/posix-functions/remainderf.texi: Mention the IRIX problems.
19296 2012-03-08  Jim Meyering  <meyering@redhat.com>
19298         test-readtokens.c: avoid const-related compilation warnings
19299         * tests/test-readtokens.c: Avoid const-related compilation warnings.
19301 2012-03-07  Jim Meyering  <meyering@redhat.com>
19302             Bruno Haible  <bruno@clisp.org>
19304         frexp-nolibm, frexpl-nolibm tests: Fix bug introduced on 2012-03-03.
19305         * modules/frexp-nolibm-tests (Files): Add tests/test-frexp.h,
19306         tests/randomd.c.
19307         (Makefile.am): Add randomd.c to test_frexp_nolibm_SOURCES.
19308         * modules/frexpl-nolibm-tests (Files): Add tests/test-frexp.h,
19309         tests/randoml.c.
19310         (Makefile.am): Add randoml.c to test_frexpl_nolibm_SOURCES.
19312 2012-03-07  Bruno Haible  <bruno@clisp.org>
19314         expm1l: Avoid compilation error on AIX.
19315         * lib/math.in.h (expm1l): Undefine macro before declaration. Needed on
19316         AIX 5.2..7.1.
19318 2012-03-07  Bruno Haible  <bruno@clisp.org>
19320         expm1l: Don't override undeclared system function on IRIX 6.5.
19321         * lib/math.in.h (expm1l): Test HAVE_DECL_EXPM1L, not HAVE_EXPM1L.
19322         * m4/expm1l.m4 (gl_FUNC_EXPM1L): Don't assume expm1l() is declared when
19323         it exists. Set HAVE_DECL_EXPM1L.
19324         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_EXPM1L, not
19325         HAVE_EXPM1L.
19326         * modules/math (Makefile.am): Substitute HAVE_DECL_EXPM1L, not
19327         HAVE_EXPM1L.
19328         * doc/posix-functions/expm1l.texi: Mention missing declaration problem.
19330 2012-03-07  Bruno Haible  <bruno@clisp.org>
19332         remainderl: Don't override undeclared system function on IRIX 6.5.
19333         * lib/math.in.h (remainderl): Test HAVE_DECL_REMAINDERL, not
19334         HAVE_REMAINDERL.
19335         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Don't assume remainderl() is
19336         declared when it exists. Set HAVE_DECL_REMAINDERL.
19337         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_REMAINDERL,
19338         not HAVE_REMAINDERL.
19339         * modules/math (Makefile.am): Substitute HAVE_DECL_REMAINDERL, not
19340         HAVE_REMAINDERL.
19341         * doc/posix-functions/remainderl.texi: Mention missing declaration
19342         problem.
19344 2012-03-07  Bruno Haible  <bruno@clisp.org>
19346         rintf: Don't override undeclared system function on IRIX 6.5.
19347         * lib/math.in.h (rintf): Test HAVE_DECL_RINTF, not HAVE_RINTF.
19348         * m4/rintf.m4 (gl_FUNC_RINTF): Don't assume rintf() is declared when it
19349         exists. Set HAVE_DECL_RINTF.
19350         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_RINTF, not
19351         HAVE_RINTF.
19352         * modules/math (Makefile.am): Substitute HAVE_DECL_RINTF, not
19353         HAVE_RINTF.
19354         * doc/posix-functions/rintf.texi: Mention missing declaration problem.
19356 2012-03-07  Bruno Haible  <bruno@clisp.org>
19358         roundl: Avoid compilation error on AIX.
19359         * lib/math.in.h (roundl): Undefine macro before declaration. Needed on
19360         AIX 5.2..7.1.
19362 2012-03-07  Bruno Haible  <bruno@clisp.org>
19364         roundl: Don't override undeclared system function on IRIX 6.5.
19365         * m4/roundl.m4 (gl_FUNC_ROUNDL): Search for roundl() in the libraries
19366         also when it is not declared. Set HAVE_ROUNDL. For replacement code,
19367         test HAVE_ROUNDL, not HAVE_DECL_ROUNDL.
19368         * modules/roundl (configure.ac): For replacement code, test
19369         HAVE_ROUNDL, not HAVE_DECL_ROUNDL.
19370         (Depends-on): Update conditions.
19371         * doc/posix-functions/roundl.texi: Mention the IRIX problem.
19373 2012-03-07  Bruno Haible  <bruno@clisp.org>
19375         roundf: Don't override undeclared system function on IRIX 6.5.
19376         * m4/roundf.m4 (gl_FUNC_ROUNDF): Search for roundf() in the libraries
19377         also when it is not declared. Set HAVE_ROUNDF. For replacement code,
19378         test HAVE_ROUNDF, not HAVE_DECL_ROUNDF.
19379         * modules/roundf (configure.ac): For replacement code, test
19380         HAVE_ROUNDF, not HAVE_DECL_ROUNDF.
19381         (Depends-on): Update conditions.
19382         * modules/roundf-ieee (Depends-on): Update conditions.
19383         * doc/posix-functions/roundf.texi: Mention the IRIX problem.
19385 2012-03-07  Bruno Haible  <bruno@clisp.org>
19387         round: Don't override undeclared system function on IRIX 6.5.
19388         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Accept an optional third
19389         argument.
19390         * m4/round.m4 (gl_FUNC_ROUND): Search for round() in the libraries
19391         also when it is not declared. Set HAVE_ROUND. For replacement code,
19392         test HAVE_ROUND, not HAVE_DECL_ROUND.
19393         * modules/round (configure.ac): For replacement code, test HAVE_ROUND,
19394         not HAVE_DECL_ROUND.
19395         (Depends-on): Update conditions.
19396         * modules/round-ieee (Depends-on): Update conditions.
19397         * doc/posix-functions/round.texi: Mention the IRIX problem.
19399 2012-03-07  Bruno Haible  <bruno@clisp.org>
19401         copysignf: Don't override undeclared system function on IRIX 6.5.
19402         * lib/math.in.h (copysignf): Test HAVE_DECL_COPYSIGNF, not
19403         HAVE_COPYSIGNF.
19404         * m4/copysignf.m4 (gl_FUNC_COPYSIGNF): Don't assume copysignf() is
19405         declared when it exists. Set HAVE_DECL_COPYSIGNF.
19406         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_COPYSIGNF,
19407         not HAVE_COPYSIGNF.
19408         * modules/math (Makefile.am): Substitute HAVE_DECL_COPYSIGNF, not
19409         HAVE_COPYSIGNF.
19410         * doc/posix-functions/copysignf.texi: Mention missing declaration
19411         problem.
19413 2012-03-07  Jim Meyering  <meyering@redhat.com>
19415         readtokens: add tests
19416         * modules/readtokens-tests: New file.
19417         * tests/test-readtokens.c: New file.
19419 2012-03-07  Jim Meyering  <meyering@redhat.com>
19421         quotearg: the module must now include quote.h
19422         With commit v0.0-7133-g6417476, quotearg.c includes "quote.h".
19423         So must the module.
19424         * modules/quotearg (Files): Add quote.h.
19426 2012-03-06  Paul Eggert  <eggert@cs.ucla.edu>
19428         readtokens: avoid core dumps with unusual calling patterns
19429         Reported by Xu Zhongxing in <http://debbugs.gnu.org/10953>.
19430         * lib/readtokens.c: Include limits.h.
19431         (word, bits_per_word, get_nth_bit, set_nth_bit): New.
19432         (readtoken): Don't cache the delimiters; the cache code was buggy
19433         if !delim && saved_delim, or if the new n_delim differs from the old.
19434         Also, it wasn't thread-safe.
19436 2012-03-07  Bruno Haible  <bruno@clisp.org>
19438         quote: Adhere to common module description layout.
19439         * modules/quote (Makefile.am): Add back empty section.
19441 2012-03-06  Akim Demaille  <demaille@gostai.com>
19443         quote: fuse into quotearg
19444         This patch is made for the benefit of Bison.
19445         quote does not leave the choice of the quoting style to the user.
19446         quoting_style provides poor customizability, yet quoting_options,
19447         which is very rich, is hidden inside quotearg.c.  So in order to
19448         allow quote customization, move its implementation to quotearg.c.
19449         * lib/quote.c: Remove.
19450         * modules/quote: Adjust.
19451         * lib/quotearg.c (quoting_options_from_style): Fix a compiler
19452         warning: provide all the members of literal structs.
19453         (quote_quoting_options): New.
19454         (quote, quote_n): Import implementation from quote.c.
19455         * lib/quote.h: Import the comments from quote.c.
19456         (quote_quoting_options): New.
19458 2012-03-06  Bruno Haible  <bruno@clisp.org>
19460         Tests for module 'expm1l-ieee'.
19461         * modules/expm1l-ieee-tests: New file.
19462         * tests/test-expm1l-ieee.c: New file.
19464         New module 'expm1l-ieee'.
19465         * modules/expm1l-ieee: New file.
19467         Tests for module 'expm1f-ieee'.
19468         * modules/expm1f-ieee-tests: New file.
19469         * tests/test-expm1f-ieee.c: New file.
19471         New module 'expm1f-ieee'.
19472         * modules/expm1f-ieee: New file.
19474         Tests for module 'expm1-ieee'.
19475         * modules/expm1-ieee-tests: New file.
19476         * tests/test-expm1-ieee.c: New file.
19477         * tests/test-expm1-ieee.h: New file.
19479         New module 'expm1-ieee'.
19480         * modules/expm1-ieee: New file.
19481         * m4/expm1-ieee.m4: New file.
19482         * m4/expm1.m4 (gl_FUNC_EXPM1): If gl_FUNC_EXPM1_IEEE is present, test
19483         whether expm1 works with a minus zero argument. Replace it if not.
19484         * lib/math.in.h (expm1): Override if REPLACE_EXPM1 is 1.
19485         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXPM1.
19486         * modules/math (Makefile.am): Substitute REPLACE_EXPM1.
19487         * modules/expm1 (configure.ac): Consider REPLACE_EXPM1.
19488         (Depends-on): Update conditions.
19489         * doc/posix-functions/expm1.texi: Mention the expm1-ieee module and the
19490         AIX problem.
19492 2012-03-06  Bruno Haible  <bruno@clisp.org>
19494         Work around expm1f bug on IRIX 6.5.
19495         * lib/math.in.h (expm1f): Override if REPLACE_EXPM1F is 1.
19496         * m4/expm1f.m4 (gl_FUNC_EXPM1F_WORKS): New macro.
19497         (gl_FUNC_EXPM1F): Invoke it. Set REPLACE_EXPM1F to 1 if expm1f() does
19498         not work.
19499         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXPM1F.
19500         * modules/math (Makefile.am): Substitute REPLACE_EXPM1F.
19501         * modules/expm1f (configure.ac): Consider REPLACE_EXPM1F.
19502         (Depends-on): Update conditions.
19503         * doc/posix-functions/expm1f.texi: Mention the IRIX 6.5 bug.
19505 2012-03-06  Bruno Haible  <bruno@clisp.org>
19507         Tests for module 'expm1l'.
19508         * modules/expm1l-tests: New file.
19509         * tests/test-expm1l.c: New file.
19511         New module 'expm1l'.
19512         * lib/math.in.h (expm1l): New declaration.
19513         * lib/expm1l.c: New file.
19514         * m4/expm1l.m4: New file.
19515         * m4/math_h.m4 (gl_MATH_H): Test whether expm1l is declared.
19516         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPM1L, HAVE_EXPM1L.
19517         * modules/math (Makefile.am): Substitute GNULIB_EXPM1L, HAVE_EXPM1L.
19518         * modules/expm1l: New file.
19519         * tests/test-math-c++.cc: Check the declaration of expm1l.
19520         * doc/posix-functions/expm1l.texi: Mention the new module.
19522 2012-03-06  Bruno Haible  <bruno@clisp.org>
19524         Tests for module 'expm1f'.
19525         * modules/expm1f-tests: New file.
19526         * tests/test-expm1f.c: New file.
19528         New module 'expm1f'.
19529         * lib/math.in.h (expm1f): New declaration.
19530         * lib/expm1f.c: New file.
19531         * m4/expm1f.m4: New file.
19532         * m4/math_h.m4 (gl_MATH_H): Test whether expm1f is declared.
19533         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPM1F, HAVE_EXPM1F.
19534         * modules/math (Makefile.am): Substitute GNULIB_EXPM1F, HAVE_EXPM1F.
19535         * modules/expm1f: New file.
19536         * tests/test-math-c++.cc: Check the declaration of expm1f.
19537         * doc/posix-functions/expm1f.texi: Mention the new module.
19539 2012-03-06  Bruno Haible  <bruno@clisp.org>
19541         Tests for module 'expm1'.
19542         * modules/expm1-tests: New file.
19543         * tests/test-expm1.c: New file.
19544         * tests/test-expm1.h: New file.
19546         New module 'expm1'.
19547         * lib/math.in.h (expm1): New declaration.
19548         * lib/expm1.c: New file.
19549         * m4/expm1.m4: New file.
19550         * m4/math_h.m4 (gl_MATH_H): Test whether expm1 is declared.
19551         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPM1, HAVE_EXPM1.
19552         * modules/math (Makefile.am): Substitute GNULIB_EXPM1, HAVE_EXPM1.
19553         * modules/expm1: New file.
19554         * tests/test-math-c++.cc: Check the declaration of expm1.
19555         * doc/posix-functions/expm1.texi: Mention the new module.
19557 2012-03-06  Bruno Haible  <bruno@clisp.org>
19559         math: Ensure declarations of math functions.
19560         * modules/acosf (Depends-on): Add 'extensions'.
19561         * modules/asinf (Depends-on): Likewise.
19562         * modules/atan2f (Depends-on): Likewise.
19563         * modules/atanf (Depends-on): Likewise.
19564         * modules/cbrt (Depends-on): Likewise.
19565         * modules/cbrtf (Depends-on): Likewise.
19566         * modules/cbrtl (Depends-on): Likewise.
19567         * modules/copysignf (Depends-on): Likewise.
19568         * modules/copysignl (Depends-on): Likewise.
19569         * modules/cosf (Depends-on): Likewise.
19570         * modules/coshf (Depends-on): Likewise.
19571         * modules/expf (Depends-on): Likewise.
19572         * modules/fabsf (Depends-on): Likewise.
19573         * modules/fabsl (Depends-on): Likewise.
19574         * modules/fmaf (Depends-on): Likewise.
19575         * modules/fmal (Depends-on): Likewise.
19576         * modules/fmodf (Depends-on): Likewise.
19577         * modules/fmodl (Depends-on): Likewise.
19578         * modules/frexpf (Depends-on): Likewise.
19579         * modules/frexpl (Depends-on): Likewise.
19580         * modules/hypot (Depends-on): Likewise.
19581         * modules/hypotf (Depends-on): Likewise.
19582         * modules/hypotl (Depends-on): Likewise.
19583         * modules/ldexpf (Depends-on): Likewise.
19584         * modules/ldexpl (Depends-on): Likewise.
19585         * modules/log10f (Depends-on): Likewise.
19586         * modules/log10l (Depends-on): Likewise.
19587         * modules/log1p (Depends-on): Likewise.
19588         * modules/logb (Depends-on): Likewise.
19589         * modules/logf (Depends-on): Likewise.
19590         * modules/modff (Depends-on): Likewise.
19591         * modules/modfl (Depends-on): Likewise.
19592         * modules/powf (Depends-on): Likewise.
19593         * modules/remainderf (Depends-on): Likewise.
19594         * modules/remainderl (Depends-on): Likewise.
19595         * modules/rintf (Depends-on): Likewise.
19596         * modules/rintl (Depends-on): Likewise.
19597         * modules/sinf (Depends-on): Likewise.
19598         * modules/sinhf (Depends-on): Likewise.
19599         * modules/sqrtf (Depends-on): Likewise.
19600         * modules/tanf (Depends-on): Likewise.
19601         * modules/tanhf (Depends-on): Likewise.
19602         * m4/acosf.m4 (gl_FUNC_ACOSF): Require gl_USE_SYSTEM_EXTENSIONS.
19603         * m4/asinf.m4 (gl_FUNC_ASINF): Likewise.
19604         * m4/atan2f.m4 (gl_FUNC_ATAN2F): Likewise.
19605         * m4/atanf.m4 (gl_FUNC_ATANF): Likewise.
19606         * m4/cbrt.m4 (gl_FUNC_CBRT): Likewise.
19607         * m4/cbrtf.m4 (gl_FUNC_CBRTF): Likewise.
19608         * m4/cbrtl.m4 (gl_FUNC_CBRTL): Likewise.
19609         * m4/copysignf.m4 (gl_FUNC_COPYSIGNF): Likewise.
19610         * m4/copysignl.m4 (gl_FUNC_COPYSIGNL): Likewise.
19611         * m4/cosf.m4 (gl_FUNC_COSF): Likewise.
19612         * m4/coshf.m4 (gl_FUNC_COSHF): Likewise.
19613         * m4/expf.m4 (gl_FUNC_EXPF): Likewise.
19614         * m4/fabsf.m4 (gl_FUNC_FABSF): Likewise.
19615         * m4/fabsl.m4 (gl_FUNC_FABSL): Likewise.
19616         * m4/fmaf.m4 (gl_FUNC_FMAF): Likewise.
19617         * m4/fmal.m4 (gl_FUNC_FMAL): Likewise.
19618         * m4/fmodf.m4 (gl_FUNC_FMODF): Likewise.
19619         * m4/fmodl.m4 (gl_FUNC_FMODL): Likewise.
19620         * m4/frexpf.m4 (gl_FUNC_FREXPF): Likewise.
19621         * m4/frexpl.m4 (gl_FUNC_FREXPL): Likewise.
19622         * m4/hypot.m4 (gl_FUNC_HYPOT): Likewise.
19623         * m4/hypotf.m4 (gl_FUNC_HYPOTF): Likewise.
19624         * m4/hypotl.m4 (gl_FUNC_HYPOTL): Likewise.
19625         * m4/ldexpf.m4 (gl_FUNC_LDEXPF): Likewise.
19626         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Likewise.
19627         * m4/log10f.m4 (gl_FUNC_LOG10F): Likewise.
19628         * m4/log10l.m4 (gl_FUNC_LOF10L): Likewise.
19629         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
19630         * m4/logf.m4 (gl_FUNC_LOGF): Likewise.
19631         * m4/modff.m4 (gl_FUNC_MODFF): Likewise.
19632         * m4/modfl.m4 (gl_FUNC_MODFL): Likewise.
19633         * m4/powf.m4 (gl_FUNC_POWF): Likewise.
19634         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Likewise.
19635         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Likewise.
19636         * m4/rintf.m4 (gl_FUNC_RINTF): Likewise.
19637         * m4/rintl.m4 (gl_FUNC_RINTL): Likewise.
19638         * m4/sinf.m4 (gl_FUNC_SINF): Likewise.
19639         * m4/sinhf.m4 (gl_FUNC_SINHF): Likewise.
19640         * m4/sqrtf.m4 (gl_FUNC_SQRTF): Likewise.
19641         * m4/tanf.m4 (gl_FUNC_TANF): Likewise.
19642         * m4/tanhf.m4 (gl_FUNC_TANHF): Likewise.
19644 2012-03-06  Bruno Haible  <bruno@clisp.org>
19646         math: Update module names in warnings.
19647         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
19648         tanl): Use specific module name in warn-on-use warning.
19650 2012-03-06  Bruno Haible  <bruno@clisp.org>
19652         expl: Simplify computation.
19653         * lib/expl.c (expl): Simplify computation of exp_y. Fix comment.
19655 2012-03-05  Bruno Haible  <bruno@clisp.org>
19657         exp* tests: More tests.
19658         * tests/test-exp.h: New file.
19659         * tests/test-exp.c: Include <float.h> and test-exp.h.
19660         (main): Invoke test_function.
19661         * tests/test-expf.c: Include <float.h> and test-exp.h.
19662         (main): Invoke test_function.
19663         * tests/test-expl.c: Include <float.h> and test-exp.h.
19664         (main): Invoke test_function.
19665         * modules/exp-tests (Files): Add tests/test-exp.h, tests/randomd.c.
19666         (Makefile.am): Add randomd.c to test_exp_SOURCES.
19667         * modules/expf-tests (Files): Add tests/test-exp.h, tests/randomf.c.
19668         (Makefile.am): Add randomf.c to test_expf_SOURCES.
19669         * modules/expl-tests (Files): Add tests/test-exp.h, tests/randoml.c.
19670         (Depends-on): Add 'float'.
19671         (Makefile.am): Add randoml.c to test_expl_SOURCES.
19673         expl: Fix precision of computed result.
19674         * lib/expl.c: Completely rewritten.
19675         * modules/expl (Depends-on): Add isnanl, roundl, ldexpl. Remove floorl.
19676         (Maintainer): Add me.
19677         * m4/expl.m4 (gl_FUNC_EXPL): Update computation of EXPL_LIBM.
19679 2012-03-05  Bruno Haible  <bruno@clisp.org>
19681         cbrt* tests: More tests.
19682         * tests/test-cbrt.h: New file.
19683         * tests/test-cbrt.c: Include <float.h> and test-cbrt.h.
19684         (main): Invoke test_function.
19685         * tests/test-cbrtf.c: Include <float.h> and test-cbrt.h.
19686         (main): Invoke test_function.
19687         * tests/test-cbrtl.c: Include <float.h> and test-cbrt.h.
19688         (main): Invoke test_function.
19689         * modules/cbrt-tests (Files): Add tests/test-cbrt.h, tests/randomd.c.
19690         (Makefile.am): Add randomd.c to test_cbrt_SOURCES.
19691         * modules/cbrtf-tests (Files): Add tests/test-cbrt.h, tests/randomf.c.
19692         (Makefile.am): Add randomf.c to test_cbrtf_SOURCES.
19693         * modules/cbrtl-tests (Files): Add tests/test-cbrt.h, tests/randoml.c.
19694         (Depends-on): Add 'float'.
19695         (Makefile.am): Add randoml.c to test_cbrtl_SOURCES.
19697 2012-03-05  Bruno Haible  <bruno@clisp.org>
19699         hypot* tests: More tests.
19700         * tests/test-hypot.h: New file, partially extracted from
19701         tests/test-hypotl.c.
19702         * tests/test-hypot.c: Include test-hypot.h.
19703         (main): Invoke test_function.
19704         * tests/test-hypotf.c: Include test-hypot.h.
19705         (main): Invoke test_function.
19706         * tests/test-hypotl.c: Include fpucw.h and test-hypot.h.
19707         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING and test_function.
19708         * modules/hypot-tests (Files): Add tests/test-hypot.h, tests/randomd.c.
19709         (Makefile.am): Add randomd.c to test_hypot_SOURCES.
19710         * modules/hypotf-tests (Files): Add tests/test-hypot.h,
19711         tests/randomf.c.
19712         (Makefile.am): Add randomf.c to test_hypotf_SOURCES.
19713         * modules/hypotl-tests (Files): Add tests/test-hypot.h,
19714         tests/randoml.c.
19715         (Depends-on): Add 'fpucw', 'float'.
19716         (Makefile.am): Add randoml.c to test_hypotl_SOURCES.
19718 2012-03-05  Bruno Haible  <bruno@clisp.org>
19720         fpucw: Doc about FreeBSD.
19721         * lib/fpucw.h: Mention FreeBSD in comments.
19723 2012-03-04  Bruno Haible  <bruno@clisp.org>
19725         sqrt* tests: More tests.
19726         * tests/test-sqrt.h: New file.
19727         * tests/test-sqrt.c: Include <float.h> and test-sqrt.h.
19728         (main): Invoke test_function.
19729         * tests/test-sqrtf.c: Include <float.h> and test-sqrt.h.
19730         (main): Invoke test_function.
19731         * tests/test-sqrtl.c: Include <float.h> and test-sqrt.h.
19732         (main): Invoke test_function.
19733         * modules/sqrt-tests (Files): Add tests/test-sqrt.h, tests/randomd.c.
19734         (Makefile.am): Add randomd.c to test_sqrt_SOURCES.
19735         * modules/sqrtf-tests (Files): Add tests/test-sqrt.h, tests/randomf.c.
19736         (Makefile.am): Add randomf.c to test_sqrtf_SOURCES.
19737         * modules/sqrtl-tests (Files): Add tests/test-sqrt.h, tests/randoml.c.
19738         (Depends-on): Add 'float'.
19739         (Makefile.am): Add randoml.c to test_sqrtl_SOURCES.
19741 2012-03-04  Bruno Haible  <bruno@clisp.org>
19743         remainder* tests: More tests.
19744         * tests/test-remainder.h: New file, based on tests/test-fmod.h.
19745         * tests/test-remainder.c: Include <float.h> and test-remainder.h.
19746         (main): Invoke test_function.
19747         * tests/test-remainderf.c: Include <float.h> and test-remainder.h.
19748         (main): Invoke test_function.
19749         * tests/test-remainderl.c: Include <float.h> and test-remainder.h.
19750         (main): Invoke test_function.
19751         * modules/remainder-tests (Files): Add tests/test-remainder.h,
19752         tests/randomd.c.
19753         (Makefile.am): Add randomd.c to test_remainder_SOURCES.
19754         * modules/remainderf-tests (Files): Add tests/test-remainder.h,
19755         tests/randomf.c.
19756         (Makefile.am): Add randomf.c to test_remainderf_SOURCES.
19757         * modules/remainderl-tests (Files): Add tests/test-remainder.h,
19758         tests/randoml.c.
19759         (Depends-on): Add 'float'.
19760         (Makefile.am): Add randoml.c to test_remainderl_SOURCES.
19762 2012-03-04  Bruno Haible  <bruno@clisp.org>
19764         remainder, remainderf, remainderl: Fix computation for large quotients.
19765         * lib/remainder.c: Completely rewritten.
19766         * lib/remainderf.c (remainderf): Use implementation of remainder.c with
19767         USE_FLOAT.
19768         * lib/remainderl.c (remainderl): Use implementation of remainder.c with
19769         USE_LONG_DOUBLE.
19770         * modules/remainder (Depends-on): Add isfinite, signbit, fabs, fmod,
19771         isnand, isinf. Remove round, fma.
19772         * modules/remainderf (Files): Add lib/remainder.c.
19773         (Depends-on): Add isfinite, signbit, fabsf, fmodf, isnanf, isinf.
19774         Remove roundf, fmaf.
19775         * modules/remainderl (Files): Add lib/remainder.c.
19776         (Depends-on): Add float, isfinite, signbit, fabsl, fmodl, isnanl,
19777         isinf. Remove roundl, fmal.
19778         * m4/remainder.m4 (gl_FUNC_REMAINDER): Update computation of
19779         REMAINDER_LIBM.
19780         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Update computation of
19781         REMAINDERF_LIBM.
19782         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Update computation of
19783         REMAINDERL_LIBM.
19785 2012-03-04  Bruno Haible  <bruno@clisp.org>
19787         fmod* tests: More tests.
19788         * tests/test-fmod.h (my_ldexp): New function.
19789         (test_function): Reduce amount of random numbers to test. Add tests
19790         of very large quotients x / y.
19791         * tests/test-fmod.c (MAX_EXP): New macro.
19792         * tests/test-fmodf.c (MAX_EXP): Likewise.
19793         * tests/test-fmodl.c (MAX_EXP): Likewise.
19795 2012-03-04  Bruno Haible  <bruno@clisp.org>
19797         fmod, fmodl: Fix computation for large quotients x / y.
19798         * lib/fmod.c: Completely rewritten.
19799         * lib/fmodl.c (fmodl): Use implementation of fmod.c with
19800         USE_LONG_DOUBLE.
19801         * modules/fmod (Depends-on): Add isfinite, signbit, fabs, frexp, ldexp,
19802         isnand. Remove fma.
19803         * modules/fmodl (Files): Add lib/fmod.c.
19804         (Depends-on): Add float, isfinite, signbit, fabsl,
19805         frexpl, ldexpl, isnanl. Remove fma.
19806         * m4/fmod.m4 (gl_FUNC_FMOD): Update computation of FMOD_LIBM.
19807         * m4/fmodl.m4 (gl_FUNC_FMODL): Update computation of FMODL_LIBM.
19809 2012-03-03  Bruno Haible  <bruno@clisp.org>
19811         fmod* tests: More tests.
19812         * tests/test-fmod.h: New file.
19813         * tests/test-fmod.c: Include <float.h> and test-fmod.h.
19814         (main): Invoke test_function.
19815         * tests/test-fmodf.c: Include <float.h> and test-fmod.h.
19816         (main): Invoke test_function.
19817         * tests/test-fmodl.c: Include <float.h> and test-fmod.h.
19818         (main): Invoke test_function.
19819         * modules/fmod-tests (Files): Add tests/test-fmod.h, tests/randomd.c.
19820         (Makefile.am): Add randomd.c to test_fmod_SOURCES.
19821         * modules/fmodf-tests (Files): Add tests/test-fmod.h, tests/randomf.c.
19822         (Makefile.am): Add randomf.c to test_fmodf_SOURCES.
19823         * modules/fmodl-tests (Files): Add tests/test-fmod.h, tests/randoml.c.
19824         (Depends-on): Add 'float'.
19825         (Makefile.am): Add randoml.c to test_fmodl_SOURCES.
19827 2012-03-03  Bruno Haible  <bruno@clisp.org>
19829         rint* tests: More tests.
19830         * tests/test-rint.h: New file, partially extracted from
19831         tests/test-rintl.c.
19832         * tests/test-rint.c: Include test-rint.h.
19833         (main): Invoke test_function.
19834         * tests/test-rintf.c: Include test-rint.h.
19835         (main): Invoke test_function.
19836         * tests/test-rintl.c: Include test-rint.h.
19837         (main): Invoke test_function.
19838         * modules/rint-tests (Files): Add tests/test-rint.h, tests/randomd.c.
19839         (Makefile.am): Add randomd.c to test_rint_SOURCES.
19840         * modules/rintf-tests (Files): Add tests/test-rint.h, tests/randomf.c.
19841         (Makefile.am): Add randomf.c to test_rintf_SOURCES.
19842         * modules/rintl-tests (Files): Add tests/test-rint.h, tests/randoml.c.
19843         (Makefile.am): Add randoml.c to test_rintl_SOURCES.
19845 2012-03-03  Bruno Haible  <bruno@clisp.org>
19847         modf* tests: More tests.
19848         * tests/test-modf.h: New file.
19849         * tests/test-modf.c: Include <float.h> and test-modf.h.
19850         (main): Invoke test_function.
19851         * tests/test-modff.c: Include <float.h> and test-modf.h.
19852         (main): Invoke test_function.
19853         * tests/test-modfl.c: Include <float.h> and test-modf.h.
19854         (main): Invoke test_function.
19855         * modules/modf-tests (Files): Add tests/test-modf.h, tests/randomd.c.
19856         (Makefile.am): Add randomd.c to test_modf_SOURCES.
19857         * modules/modff-tests (Files): Add tests/test-modf.h, tests/randomf.c.
19858         (Makefile.am): Add randomf.c to test_modff_SOURCES.
19859         * modules/modfl-tests (Files): Add tests/test-modf.h, tests/randoml.c.
19860         (Depends-on): Add 'float'.
19861         (Makefile.am): Add randoml.c to test_modfl_SOURCES.
19863 2012-03-03  Bruno Haible  <bruno@clisp.org>
19865         fabs* tests: More tests.
19866         * tests/test-fabs.h: New file, partially extracted from
19867         tests/test-fabsl.c.
19868         * tests/test-fabs.c (RANDOM): New macro.
19869         * tests/test-fabsf.c (RANDOM): New macro.
19870         * tests/test-fabsl.c (RANDOM): New macro.
19871         * modules/fabs-tests (Files): Add tests/randomd.c.
19872         (Makefile.am): Add randomd.c to test_fabs_SOURCES.
19873         * modules/fabsf-tests (Files): Add tests/randomf.c.
19874         (Makefile.am): Add randomf.c to test_fabsf_SOURCES.
19875         * modules/fabsl-tests (Files): Add tests/randoml.c.
19876         (Makefile.am): Add randoml.c to test_fabsl_SOURCES.
19878 2012-03-03  Bruno Haible  <bruno@clisp.org>
19880         ldexp* tests: More tests.
19881         * tests/test-ldexp.h (test_function): Add some pseudo-randomized tests.
19882         * tests/test-ldexp.c (RANDOM): New macro.
19883         * tests/test-ldexpf.c (RANDOM): New macro.
19884         * tests/test-ldexpl.c (RANDOM): New macro.
19885         * modules/ldexp-tests (Files): Add tests/randomd.c.
19886         (Makefile.am): Add randomd.c to test_ldexp_SOURCES.
19887         * modules/ldexpf-tests (Files): Add tests/randomf.c.
19888         (Makefile.am): Add randomf.c to test_ldexpf_SOURCES.
19889         * modules/ldexpl-tests (Files): Add tests/randoml.c.
19890         (Makefile.am): Add randoml.c to test_ldexpl_SOURCES.
19892 2012-03-03  Bruno Haible  <bruno@clisp.org>
19894         frexp* tests: More tests.
19895         * tests/test-frexp.h (test_function): Add some pseudo-randomized tests.
19896         * tests/test-frexp.c (RANDOM): New macro.
19897         * tests/test-frexpf.c (RANDOM): New macro.
19898         * tests/test-frexpl.c (RANDOM): New macro.
19899         * modules/frexp-tests (Files): Add tests/randomd.c.
19900         (Makefile.am): Add randomd.c to test_frexp_SOURCES.
19901         * modules/frexpf-tests (Files): Add tests/randomf.c.
19902         (Makefile.am): Add randomf.c to test_frexpf_SOURCES.
19903         * modules/frexpl-tests (Files): Add tests/randoml.c.
19904         (Makefile.am): Add randoml.c to test_frexpl_SOURCES.
19906 2012-03-03  Bruno Haible  <bruno@clisp.org>
19908         Support for pseudo-random numbers in tests.
19909         * tests/randomf.c: New file.
19910         * tests/randomd.c: New file.
19911         * tests/randoml.c: New file.
19912         * tests/macros.h (randomf, randomd, randoml): New declarations.
19914 2012-03-03  Bruno Haible  <bruno@clisp.org>
19916         frexp* tests: Refactor.
19917         * tests/test-frexp.h: New file, extracted from tests/test-frexpl.c.
19918         * tests/test-frexp.c: Include and use it.
19919         * tests/test-frexpf.c: Likewise.
19920         * tests/test-frexpl.c: Likewise.
19921         * modules/frexp-tests (Files): Add tests/test-frexp.h.
19922         * modules/frexpf-tests (Files): Likewise.
19923         * modules/frexpl-tests (Files): Likewise.
19925 2012-03-02  Jim Meyering  <meyering@redhat.com>
19927         maint: don't specify XZ_OPT=-9ev in dist-related rule
19928         Using xz's -9 option is warranted only if you have a very large
19929         tarball (see xz's documentation for the sizes vs. presets), and
19930         requires 64MiB of memory at decompression time.
19931         * top/maint.mk (alpha beta stable): Don't specify XZ_OPT=-9ev.
19932         Automake's default of just "-e" is fine.  Override on a
19933         per-package basis by setting XZ_OPT e.g., in cfg.mk.
19935 2012-03-01  Eric Blake  <eblake@redhat.com>
19937         maint.mk: allow announcement for non-gnulib project
19938         * maint.mk (announcement): Skip gnulib version if not used.
19940 2012-03-01  Jim Meyering  <meyering@redhat.com>
19942         maint.mk: avoid spurious failure of _sc_search_regexp-using tests
19943         * top/maint.mk: Initialize _sc_search_regexp parameters, so that
19944         envvar settings cannot interfere.  Otherwise, setting envvars like
19945         prohibit=foo require=bar, etc. would cause spurious test failures.
19947 2012-03-01  Eric Blake  <eblake@redhat.com>
19949         maint.mk: add per-line exclusions to prohibitions
19950         * maint.mk (_sc_search_regexp): Add $exclude parameter.
19951         (sc_prohibit_strcmp, sc_unmarked_diagnostics)
19952         (sc_const_long_option): Use it.
19954 2012-03-01  Bruno Haible  <bruno@clisp.org>
19956         Tests for module 'expl-ieee'.
19957         * modules/expl-ieee-tests: New file.
19958         * tests/test-expl-ieee.c: New file.
19960         New module 'expl-ieee'.
19961         * modules/expl-ieee: New file.
19963         Tests for module 'exp-ieee'.
19964         * modules/exp-ieee-tests: New file.
19965         * tests/test-exp-ieee.c: New file.
19967         New module 'exp-ieee'.
19968         * modules/exp-ieee: New file.
19970         Tests for module 'expf-ieee'.
19971         * modules/expf-ieee-tests: New file.
19972         * tests/test-expf-ieee.c: New file.
19973         * tests/test-exp-ieee.h: New file.
19975         New module 'expf-ieee'.
19976         * modules/expf-ieee: New file.
19978 2012-02-29  Bruno Haible  <bruno@clisp.org>
19980         cbrtl-ieee: Work around test failure on IRIX 6.5.
19981         * m4/cbrtl-ieee.m4: New file.
19982         * m4/cbrtl.m4 (gl_FUNC_CBRTL): If gl_FUNC_CBRTL_IEEE is present,
19983         test whether cbrtl works with a minus zero argument. Replace it if not.
19984         * lib/math.in.h (cbrtl): Override if REPLACE_CBRTL is 1.
19985         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_CBRTL.
19986         * modules/math (Makefile.am): Substitute REPLACE_CBRTL.
19987         * modules/cbrtl (configure.ac): Consider REPLACE_CBRTL.
19988         (Depends-on): Update conditions.
19989         * modules/cbrtl-ieee (Files): Add m4/cbrtl-ieee.m4, m4/minus-zero.m4,
19990         m4/signbit.m4.
19991         (configure.ac): Invoke gl_FUNC_CBRTL_IEEE.
19992         * lib/cbrtl.c (cbrtl) [IRIX]: Avoid an unnecessary addition.
19993         * doc/posix-functions/cbrtl.texi: Mention the cbrtl-ieee module.
19995         Tests for module 'cbrtl-ieee'.
19996         * modules/cbrtl-ieee-tests: New file.
19997         * tests/test-cbrtl-ieee.c: New file.
19999         New module 'cbrtl-ieee'.
20000         * modules/cbrtl-ieee: New file.
20002         Tests for module 'cbrt-ieee'.
20003         * modules/cbrt-ieee-tests: New file.
20004         * tests/test-cbrt-ieee.c: New file.
20006         New module 'cbrt-ieee'.
20007         * modules/cbrt-ieee: New file.
20009         Tests for module 'cbrtf-ieee'.
20010         * modules/cbrtf-ieee-tests: New file.
20011         * tests/test-cbrtf-ieee.c: New file.
20012         * tests/test-cbrt-ieee.h: New file.
20014         New module 'cbrtf-ieee'.
20015         * modules/cbrtf-ieee: New file.
20017 2012-02-29  Bruno Haible  <bruno@clisp.org>
20019         cbrtf: Work around bug in IRIX 6.5 system function.
20020         * lib/math.in.h (cbrtf): Override if REPLACE_CBRTF is 1.
20021         * m4/cbrtf.m4 (gl_FUNC_CBRTF_WORKS): New macro.
20022         (gl_FUNC_CBRTF): Invoke it. Set REPLACE_CBRTF to 1 if cbrtf() does not
20023         work.
20024         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_CBRTF.
20025         * modules/math (Makefile.am): Substitute REPLACE_CBRTF.
20026         * modules/cbrtf (configure.ac): Consider REPLACE_CBRTF.
20027         (Depends-on): Update conditions.
20028         * doc/posix-functions/cbrtf.texi: Mention the IRIX 6.5 problem.
20030 2012-02-29  Bruno Haible  <bruno@clisp.org>
20032         Tests for module 'cbrtl'.
20033         * modules/cbrtl-tests: New file.
20034         * tests/test-cbrtl.c: New file.
20036         New module 'cbrtl'.
20037         * lib/math.in.h (cbrtl): New declaration.
20038         * lib/cbrtl.c: New file.
20039         * m4/cbrtl.m4: New file.
20040         * m4/math_h.m4 (gl_MATH_H): Test whether cbrtl is declared.
20041         (gl_MATH_H_DEFAULTS): Initialize GNULIB_CBRTL, HAVE_CBRTL,
20042         HAVE_DECL_CBRTL.
20043         * modules/math (Makefile.am): Substitute GNULIB_CBRTL, HAVE_CBRTL,
20044         HAVE_DECL_CBRTL.
20045         * modules/cbrtl: New file.
20046         * tests/test-math-c++.cc: Check the declaration of cbrtl.
20047         * doc/posix-functions/cbrtl.texi: Mention the new module.
20049 2012-02-29  Bruno Haible  <bruno@clisp.org>
20051         Tests for module 'cbrtf'.
20052         * modules/cbrtf-tests: New file.
20053         * tests/test-cbrtf.c: New file.
20055         New module 'cbrtf'.
20056         * lib/math.in.h (cbrtf): New declaration.
20057         * lib/cbrtf.c: New file.
20058         * m4/cbrtf.m4: New file.
20059         * m4/math_h.m4 (gl_MATH_H): Test whether cbrtf is declared.
20060         (gl_MATH_H_DEFAULTS): Initialize GNULIB_CBRTF, HAVE_CBRTF,
20061         HAVE_DECL_CBRTF.
20062         * modules/math (Makefile.am): Substitute GNULIB_CBRTF, HAVE_CBRTF,
20063         HAVE_DECL_CBRTF.
20064         * modules/cbrtf: New file.
20065         * tests/test-math-c++.cc: Check the declaration of cbrtf.
20066         * doc/posix-functions/cbrtf.texi: Mention the new module.
20068 2012-02-29  Bruno Haible  <bruno@clisp.org>
20070         cbrt: Provide replacement on MSVC and Minix.
20071         * lib/math.in.h (cbrt): New declaration.
20072         * lib/cbrt.c: New file.
20073         * m4/cbrt.m4: New file.
20074         * m4/math_h.m4 (gl_MATH_H): Test whether cbrt is declared.
20075         (gl_MATH_H_DEFAULTS): Initialize GNULIB_CBRT, HAVE_CBRT.
20076         * modules/math (Makefile.am): Substitute GNULIB_CBRT, HAVE_CBRT.
20077         * modules/cbrt (Files): Add lib/cbrt.c, m4/cbrt.m4.
20078         (Depends-on): Add dependencies.
20079         (configure.ac): Arrange to compile replacement if HAVE_CBRT is 0.
20080         * tests/test-math-c++.cc: Check the declaration of cbrt.
20081         * doc/posix-functions/cbrt.texi: Mention that the module provides a
20082         replacement.
20084 2012-02-29  Bruno Haible  <bruno@clisp.org>
20086         hypotl-ieee: Work around test failure on OSF/1 and native Windows.
20087         * m4/hypotl-ieee.m4: New file.
20088         * m4/hypotl.m4 (gl_FUNC_HYPOTL): If gl_FUNC_HYPOTL_IEEE is present,
20089         test whether hypotl works with mixed NaN and Infinity arguments.
20090         Replace it if not.
20091         * lib/math.in.h (hypotl): Override if REPLACE_HYPOTL is 1.
20092         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_HYPOTL.
20093         * modules/math (Makefile.am): Substitute REPLACE_HYPOTL.
20094         * modules/hypotl (configure.ac): Consider REPLACE_HYPOTL.
20095         (Depends-on): Update conditions.
20096         * modules/hypotl-ieee (Files): Add m4/hypotl-ieee.m4.
20097         (Depends-on): Add hypot-ieee.
20098         (configure.ac): Invoke gl_FUNC_HYPOTL_IEEE.
20099         * doc/posix-functions/hypotl.texi: Mention the hypotl-ieee module.
20101         hypotf-ieee: Work around test failure on OSF/1 and native Windows.
20102         * m4/hypotf-ieee.m4: New file.
20103         * m4/hypotf.m4 (gl_FUNC_HYPOTF): If gl_FUNC_HYPOTF_IEEE is present,
20104         test whether hypotf works with mixed NaN and Infinity arguments.
20105         Replace it if not.
20106         * modules/hypotf-ieee (Files): Add m4/hypotf-ieee.m4.
20107         (Depends-on): Add hypot-ieee.
20108         (configure.ac): Invoke gl_FUNC_HYPOTF_IEEE.
20109         * doc/posix-functions/hypotf.texi: Mention the hypotf-ieee module.
20111         hypot-ieee: Work around test failure on OSF/1 and native Windows.
20112         * lib/math.in.h (hypot): New declaration.
20113         * lib/hypot.c: New file.
20114         * m4/hypot-ieee.m4: New file.
20115         * m4/hypot.m4 (gl_FUNC_HYPOT): If gl_FUNC_HYPOT_IEEE is present, test
20116         whether hypot works with mixed NaN and Infinity arguments. Replace it
20117         if not.
20118         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_HYPOT,
20119         REPLACE_HYPOT.
20120         * modules/math (Makefile.am): Substitute GNULIB_HYPOT, REPLACE_HYPOT.
20121         * modules/hypot (Files): Add lib/hypot.c.
20122         (Depends-on): Add dependencies.
20123         (configure.ac): Arrange to compile replacement if REPLACE_HYPOT is 1.
20124         * modules/hypot-ieee (Files): Add m4/hypot-ieee.m4.
20125         (configure.ac): Invoke gl_FUNC_HYPOT_IEEE.
20126         * tests/test-math-c++.cc: Check the declaration of hypot.
20127         * doc/posix-functions/hypot.texi: Mention the hypot-ieee module.
20129         Tests for module 'hypotl-ieee'.
20130         * modules/hypotl-ieee-tests: New file.
20131         * tests/test-hypotl-ieee.c: New file.
20133         New module 'hypotl-ieee'.
20134         * modules/hypotl-ieee: New file.
20136         Tests for module 'hypot-ieee'.
20137         * modules/hypot-ieee-tests: New file.
20138         * tests/test-hypot-ieee.c: New file.
20140         New module 'hypot-ieee'.
20141         * modules/hypot-ieee: New file.
20143         Tests for module 'hypotf-ieee'.
20144         * modules/hypotf-ieee-tests: New file.
20145         * tests/test-hypotf-ieee.c: New file.
20146         * tests/test-hypot-ieee.h: New file.
20148         New module 'hypotf-ieee'.
20149         * modules/hypotf-ieee: New file.
20151 2012-02-29  Bruno Haible  <bruno@clisp.org>
20153         Remove unused variables.
20154         * m4/fmod.m4 (gl_FUNC_FMOD): Remove unused variable 'i'.
20155         * m4/fmodl.m4 (gl_FUNC_FMODL): Likewise.
20156         * m4/remainder.m4 (gl_FUNC_REMAINDER): Likewise.
20157         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Likewise.
20159 2012-02-29  Eric Blake  <eblake@redhat.com>
20161         termios: fix pid_t always, not just for tcgetsid
20162         * doc/posix-headers/termios.texi (termios.h): Mention problem.
20163         * lib/termios.in.h (include): Ensure pid_t on all platforms, not
20164         just when building tcgetsid.
20166 2012-02-29  Bruno Haible  <bruno@clisp.org>
20168         Tests for module 'hypotl'.
20169         * modules/hypotl-tests: New file.
20170         * tests/test-hypotl.c: New file.
20172         New module 'hypotl'.
20173         * lib/math.in.h (hypotl): New declaration.
20174         * lib/hypotl.c: New file.
20175         * m4/hypotl.m4: New file.
20176         * m4/math_h.m4 (gl_MATH_H): Test whether hypotf is declared.
20177         (gl_MATH_H_DEFAULTS): Initialize GNULIB_HYPOTL, HAVE_HYPOTL.
20178         * modules/math (Makefile.am): Substitute GNULIB_HYPOTL, HAVE_HYPOTL.
20179         * modules/hypotl: New file.
20180         * tests/test-math-c++.cc: Check the hypotl declaration.
20181         * doc/posix-functions/hypotl.texi: Mention the new module.
20183 2012-02-29  Eric Blake  <eblake@redhat.com>
20185         tcgetsid: fix cygwin header bug
20186         * lib/termios.in.h (includes) [Cygwin]: Ensure pid_t is defined.
20188         docs: update cygwin progress
20189         * doc/posix-functions/llround.texi (llround): Added in cygwin
20190         1.7.8.
20191         * doc/posix-functions/llroundf.texi (llroundf): Likewise.
20192         * doc/glibc-functions/program_invocation_name.texi
20193         (program_invocation_name): Likewise.
20194         * doc/glibc-functions/program_invocation_short_name.texi
20195         (program_invocation_short_name): Likewise.
20196         * doc/glibc-functions/madvise.texi (madvise): Likewise.
20197         * doc/glibc-functions/pthread_yield.texi (pthread_yield):
20198         Likewise.
20199         * doc/posix-functions/pthread_spin_destroy.texi
20200         (pthread_spin_destroy): Added in cygwin 1.7.10.
20201         * doc/posix-functions/pthread_spin_init.texi (pthread_spin_init):
20202         Likewise.
20203         * doc/posix-functions/pthread_spin_lock.texi (pthread_spin_lock):
20204         Likewise.
20205         * doc/posix-functions/pthread_spin_trylock.texi
20206         (pthread_spin_trylock): Likewise.
20207         * doc/posix-functions/pthread_spin_unlock.texi
20208         (pthread_spin_unlock): Likewise.
20209         * doc/posix-functions/pthread_setschedprio.texi
20210         (pthread_setschedprio): Likewise.
20211         * doc/posix-functions/pthread_attr_getstack.texi
20212         (pthread_attr_getstack): Likewise.
20213         * doc/pastposix-functions/pthread_attr_getstackaddr.texi
20214         (pthread_attr_getstackaddr): Likewise.
20215         * doc/glibc-functions/pthread_getattr_np.texi
20216         (pthread_getattr_np): Likewise.
20217         * doc/glibc-functions/sys_siglist.texi (sys_siglist): Likewise.
20218         * doc/glibc-functions/sysinfo.texi (sysinfo): Likewise.
20219         * doc/posix-functions/clock_settime.texi (clock_settime):
20220         Likewise.
20221         * doc/posix-functions/pthread_attr_getguardsize.texi
20222         (pthread_attr_getguardsize): Likewise.
20223         * doc/posix-functions/pthread_attr_setguardsize.texi
20224         (pthread_attr_setguardsize): Likewise.
20225         * doc/posix-functions/pthread_attr_setstack.texi
20226         (pthread_attr_setstack): Likewise.
20227         * doc/pastposix-functions/pthread_attr_setstackaddr.texi
20228         (pthread_attr_setstackaddr): Likewise.
20229         * doc/posix-functions/clock_getcpuclockid.texi
20230         (clock_getcpuclockid): Likewise.
20231         * doc/posix-functions/pthread_getcpuclockid.texi
20232         (pthread_getcpuclockid): Likewise.
20233         * doc/glibc-functions/error.texi (error): Likewise.
20234         * doc/glibc-functions/error_at_line.texi (error_at_line):
20235         Likewise.
20236         * doc/glibc-functions/error_message_count.texi
20237         (error_message_count): Likewise.
20238         * doc/glibc-functions/error_one_per_line.texi
20239         (error_one_per_line): Likewise.
20240         * doc/glibc-functions/error_print_progname.texi
20241         (error_print_progname): Likewise.
20242         * doc/posix-functions/pthread_condattr_getclock.texi
20243         (pthread_condattr_getclock): Likewise.
20244         * doc/posix-functions/pthread_condattr_setclock.texi
20245         (pthread_condattr_setclock): Likewise.
20246         * doc/posix-functions/clock_nanosleep.texi (clock_nanosleep):
20247         Likewise.
20248         * doc/glibc-functions/getgrouplist.texi (getgrouplist): Likewise.
20249         * doc/glibc-functions/getpt.texi (getpt): Likewise.
20250         * doc/glibc-functions/get_current_dir_name.texi
20251         (get_current_dir_name): Likewise.
20252         * doc/glibc-functions/pthread_sigqueue.texi (pthread_sigqueue):
20253         Likewise.
20254         * doc/posix-functions/tcgetsid.texi (tcgetsid): Likewise, but with
20255         wrong return type.
20256         * doc/glibc-functions/scandirat.texi (scandirat): Added in cygwin
20257         1.7.11.
20259 2012-02-29  Bruno Haible  <bruno@clisp.org>
20261         Tests for module 'hypotf'.
20262         * modules/hypotf-tests: New file.
20263         * tests/test-hypotf.c: New file.
20265         New module 'hypotf'.
20266         * lib/math.in.h (hypotf): New declaration.
20267         * lib/hypotf.c: New file.
20268         * m4/hypotf.m4: New file.
20269         * m4/math_h.m4 (gl_MATH_H): Test whether hypotf is declared.
20270         (gl_MATH_H_DEFAULTS): Initialize GNULIB_HYPOTF, HAVE_HYPOTF,
20271         REPLACE_HYPOTF.
20272         * modules/math (Makefile.am): Substitute GNULIB_HYPOTF, HAVE_HYPOTF,
20273         REPLACE_HYPOTF.
20274         * modules/hypotf: New file.
20275         * tests/test-math-c++.cc: Check the hypotf declaration.
20276         * doc/posix-functions/hypotf.texi: Mention the new module.
20278         hypot: Prepare for hypotf module.
20279         * m4/hypot.m4: New file.
20280         * modules/hypot (Files): Add m4/hypot.m4.
20281         (configure.ac): Invoke gl_FUNC_HYPOT.
20283 2012-02-29  Bruno Haible  <bruno@clisp.org>
20285         hypot tests: More tests.
20286         * tests/test-hypot.c: Include <float.h>.
20287         (main): Add tests about overflow and underflow.
20289 2012-02-29  Bruno Haible  <bruno@clisp.org>
20291         math code: Add comments.
20292         * lib/acosl.c: Add comment about related glibc source files.
20293         * lib/asinl.c: Likewise.
20294         * lib/atanl.c: Likewise.
20295         * lib/expl.c: Likewise.
20296         * lib/logl.c: Likewise.
20297         * lib/sincosl.c: Likewise.
20298         * lib/sinl.c: Likewise.
20299         * lib/tanl.c: Likewise.
20300         * lib/trigl.c: Likewise.
20301         * lib/cosl.c: Likewise. Fix comments.
20303 2012-02-28  Bruno Haible  <bruno@clisp.org>
20305         math: Ensure HUGE_VAL, HUGE_VALF, HUGE_VALL are defined.
20306         * lib/math.in.h (HUGE_VAL, HUGE_VALF, HUGE_VALL): Define fallbacks.
20307         * tests/test-math.c: Include macros.h. Check that HUGE_VAL, HUGE_VALF,
20308         HUGE_VALL are defined.
20309         (numeric_equald): Renamed from numeric_equal.
20310         (numeric_equalf, numeric_equall): New functions.
20311         (main): Check also HUGE_VALF, HUGE_VALL.
20312         * modules/math-tests (Files): Add tests/macros.h.
20313         * doc/posix-headers/math.texi: Document the problems with HUGE_VALF and
20314         HUGE_VALL.
20316 2012-02-28  Bruno Haible  <bruno@clisp.org>
20318         doc: Move ISO C11 feature notes into POSIX chapters.
20319         * doc/posix-functions/aligned_alloc.texi: Renamed from
20320         doc/glibc-functions/aligned_alloc.texi.
20321         * doc/posix-functions/quick_exit.texi: Renamed from
20322         doc/glibc-functions/quick_exit.texi.
20323         * doc/posix-headers/uchar.texi: Renamed from
20324         doc/glibc-headers/uchar.texi.
20325         * doc/posix-functions/c16rtomb.texi: Renamed from
20326         doc/glibc-functions/c16rtomb.texi.
20327         * doc/posix-functions/c32rtomb.texi: Renamed from
20328         doc/glibc-functions/c32rtomb.texi.
20329         * doc/posix-functions/mbrtoc16.texi: Renamed from
20330         doc/glibc-functions/mbrtoc16.texi.
20331         * doc/posix-functions/mbrtoc32.texi: Renamed from
20332         doc/glibc-functions/mbrtoc32.texi.
20333         * doc/gnulib.texi: Update.
20334         (Glibc uchar.h): Remove section.
20335         Suggested by Eric Blake.
20337 2012-02-29  Paul Eggert  <eggert@cs.ucla.edu>
20339         stdnoreturn: port to MSVC better
20340         MSVC standard headers use __declspec(noreturn), so #define noreturn
20341         to empty on that platform.  Reported by Bruno Haible in
20342         <http://lists.gnu.org/archive/html/bug-gnulib/2012-02/msg00152.html>.
20343         * lib/stdnoreturn.in.h (noreturn): Define to empty on MSVC.
20344         * doc/posix-headers/stdnoreturn.texi (stdnoreturn.h): Document this.
20346 2012-02-28  Bruno Haible  <bruno@clisp.org>
20348         doc: Mention new glibc headers and functions.
20349         * doc/glibc-headers/uchar.texi: New file.
20350         * doc/glibc-functions/aligned_alloc.texi: New file.
20351         * doc/glibc-functions/c16rtomb.texi: New file.
20352         * doc/glibc-functions/c32rtomb.texi: New file.
20353         * doc/glibc-functions/clock_adjtime.texi: New file.
20354         * doc/glibc-functions/fanotify_init.texi: New file.
20355         * doc/glibc-functions/fanotify_mark.texi: New file.
20356         * doc/glibc-functions/inet6_opt_append.texi: New file.
20357         * doc/glibc-functions/inet6_opt_find.texi: New file.
20358         * doc/glibc-functions/inet6_opt_finish.texi: New file.
20359         * doc/glibc-functions/inet6_opt_get_val.texi: New file.
20360         * doc/glibc-functions/inet6_opt_init.texi: New file.
20361         * doc/glibc-functions/inet6_opt_next.texi: New file.
20362         * doc/glibc-functions/inet6_opt_set_val.texi: New file.
20363         * doc/glibc-functions/inet6_rth_add.texi: New file.
20364         * doc/glibc-functions/inet6_rth_getaddr.texi: New file.
20365         * doc/glibc-functions/inet6_rth_init.texi: New file.
20366         * doc/glibc-functions/inet6_rth_reverse.texi: New file.
20367         * doc/glibc-functions/inet6_rth_segments.texi: New file.
20368         * doc/glibc-functions/inet6_rth_space.texi: New file.
20369         * doc/glibc-functions/login.texi: New file.
20370         * doc/glibc-functions/mbrtoc16.texi: New file.
20371         * doc/glibc-functions/mbrtoc32.texi: New file.
20372         * doc/glibc-functions/name_to_handle_at.texi: New file.
20373         * doc/glibc-functions/ntp_gettimex.texi: New file.
20374         * doc/glibc-functions/open_by_handle_at.texi: New file.
20375         * doc/glibc-functions/prlimit.texi: New file.
20376         * doc/glibc-functions/process_vm_readv.texi: New file.
20377         * doc/glibc-functions/process_vm_writev.texi: New file.
20378         * doc/glibc-functions/recvmmsg.texi: New file.
20379         * doc/glibc-functions/scandirat.texi: New file.
20380         * doc/glibc-functions/sendmmsg.texi: New file.
20381         * doc/glibc-functions/setns.texi: New file.
20382         * doc/glibc-functions/timespec_get.texi: New file.
20383         * doc/gnulib.texi: Include them.
20384         (Glibc sys/fanotify.h, Glibc sys/resource.h, Glibc uchar.h): New
20385         sections.
20386         Reported by Eric Blake.
20388 2012-02-28  Bruno Haible  <bruno@clisp.org>
20390         Avoid compilation errors with MSVC option -fp:strict.
20391         * lib/floor.c: Use MSVC specific pragma fenv_access.
20392         * lib/ceil.c: Likewise.
20393         * lib/trunc.c: Likewise.
20394         * lib/round.c: Likewise.
20395         * lib/rint.c: Likewise.
20396         * lib/fma.c: Likewise.
20397         * lib/integer_length.c: Likewise.
20398         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
20399         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
20400         * tests/test-floor2.c: Likewise.
20401         * tests/test-floorf2.c: Likewise.
20402         * tests/test-ceil2.c: Likewise.
20403         * tests/test-ceilf2.c: Likewise.
20404         * tests/test-trunc2.c: Likewise.
20405         * tests/test-truncf2.c: Likewise.
20406         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
20408 2012-02-27  Bruno Haible  <bruno@clisp.org>
20410         Tests for module 'sqrtl-ieee'.
20411         * modules/sqrtl-ieee-tests: New file.
20412         * tests/test-sqrtl-ieee.c: New file.
20414         New module 'sqrtl-ieee'.
20415         * modules/sqrtl-ieee: New file.
20417         Tests for module 'sqrt-ieee'.
20418         * modules/sqrt-ieee-tests: New file.
20419         * tests/test-sqrt-ieee.c: New file.
20421         New module 'sqrt-ieee'.
20422         * modules/sqrt-ieee: New file.
20424         Tests for module 'sqrtf-ieee'.
20425         * modules/sqrtf-ieee-tests: New file.
20426         * tests/test-sqrtf-ieee.c: New file.
20427         * tests/test-sqrt-ieee.h: New file.
20429         New module 'sqrtf-ieee'.
20430         * modules/sqrtf-ieee: New file.
20432 2012-02-27  Bruno Haible  <bruno@clisp.org>
20434         remainderl-ieee: Work around test failure on OSF/1.
20435         * m4/remainderl-ieee.m4: New file.
20436         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): If gl_FUNC_REMAINDERL_IEEE is
20437         present, test whether remainderl works with a zero second argument.
20438         Replace it if not.
20439         * lib/math.in.h (remainderl): Override if REPLACE_REMAINDERL is 1.
20440         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_REMAINDERL.
20441         * modules/math (Makefile.am): Substitute REPLACE_REMAINDERL.
20442         * modules/remainderl (configure.ac): Consider REPLACE_REMAINDERL.
20443         (Depends-on): Update conditions.
20444         * modules/remainderl-ieee (Files): Add m4/remainderl-ieee.m4.
20445         (Depends-on): Add remainder-ieee.
20446         (configure.ac): Invoke gl_FUNC_REMAINDERL_IEEE.
20447         * doc/posix-functions/remainderl.texi: Mention the remainderl-ieee
20448         module.
20450         remainderf-ieee: Work around test failure on OSF/1.
20451         * m4/remainderf-ieee.m4: New file.
20452         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): If gl_FUNC_REMAINDERF_IEEE is
20453         present, test whether remainderf works with a zero second argument.
20454         Replace it if not.
20455         * lib/math.in.h (remainderf): Override if REPLACE_REMAINDERF is 1.
20456         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_REMAINDERF.
20457         * modules/math (Makefile.am): Substitute REPLACE_REMAINDERF.
20458         * modules/remainderf (configure.ac): Consider REPLACE_REMAINDERF.
20459         (Depends-on): Update conditions.
20460         * modules/remainderf-ieee (Files): Add m4/remainderf-ieee.m4.
20461         (Depends-on): Add remainder-ieee.
20462         (configure.ac): Invoke gl_FUNC_REMAINDERF_IEEE.
20463         * doc/posix-functions/remainderf.texi: Mention the remainderf-ieee
20464         module.
20466         remainder-ieee: Work around test failure on OSF/1.
20467         * m4/remainder-ieee.m4: New file.
20468         * m4/remainder.m4 (gl_FUNC_REMAINDER): If gl_FUNC_REMAINDER_IEEE is
20469         present, test whether remainder works with a zero second argument.
20470         Replace it if not.
20471         * lib/math.in.h (remainder): Override if REPLACE_REMAINDER is 1.
20472         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_REMAINDER.
20473         * modules/math (Makefile.am): Substitute REPLACE_REMAINDER.
20474         * modules/remainder (configure.ac): Consider REPLACE_REMAINDER.
20475         (Depends-on): Update dependencies.
20476         * modules/remainder-ieee (Files): Add m4/remainder-ieee.m4.
20477         (configure.ac): Invoke gl_FUNC_REMAINDER_IEEE.
20478         * doc/posix-functions/remainder.texi: Mention the remainder-ieee module.
20480         Tests for module 'remainderl-ieee'.
20481         * modules/remainderl-ieee-tests: New file.
20482         * tests/test-remainderl-ieee.c: New file.
20484         New module 'remainderl-ieee'.
20485         * modules/remainderl-ieee: New file.
20487         Tests for module 'remainder-ieee'.
20488         * modules/remainder-ieee-tests: New file.
20489         * tests/test-remainder-ieee.c: New file.
20491         New module 'remainder-ieee'.
20492         * modules/remainder-ieee: New file.
20494         Tests for module 'remainderf-ieee'.
20495         * modules/remainderf-ieee-tests: New file.
20496         * tests/test-remainderf-ieee.c: New file.
20497         * tests/test-remainder-ieee.h: New file.
20499         New module 'remainderf-ieee'.
20500         * modules/remainderf-ieee: New file.
20502 2012-02-27  Bruno Haible  <bruno@clisp.org>
20504         modff, modfl: Fix configure syntax error.
20505         * m4/modff.m4 (gl_FUNC_MODFF): Insert ':' command in 'if'.
20506         * m4/modfl.m4 (gl_FUNC_MODFL): Likewise.
20508 2012-02-27  Bruno Haible  <bruno@clisp.org>
20510         fmodl-ieee: Work around test failures on OSF/1, MSVC 9.
20511         * m4/fmodl-ieee.m4: New file.
20512         * m4/fmodl.m4 (gl_FUNC_FMODL): If gl_FUNC_FMODL_IEEE is present, test
20513         whether fmodl works with zero arguments. Replace it if not.
20514         * modules/fmodl-ieee (Files): Add m4/fmodl-ieee.m4.
20515         (Depends-on): Add fmod-ieee.
20516         (configure.ac): Invoke gl_FUNC_FMODL_IEEE.
20517         * doc/posix-functions/fmodl.texi: Mention the fmodl-ieee module.
20519         fmodf-ieee: Work around test failure on OSF/1.
20520         * m4/fmodf-ieee.m4: New file.
20521         * m4/fmodf.m4 (gl_FUNC_FMODF): If gl_FUNC_FMODF_IEEE is present, test
20522         whether fmodf works with zero arguments. Replace it if not.
20523         * lib/math.in.h (fmodf): Override if REPLACE_FMODF is 1.
20524         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FMODF.
20525         * modules/math (Makefile.am): Substitute REPLACE_FMODF.
20526         * modules/fmodf (configure.ac): Consider REPLACE_FMODF.
20527         (Depends-on): Update dependencies.
20528         * modules/fmodf-ieee (Files): Add m4/fmodf-ieee.m4.
20529         (configure.ac): Invoke gl_FUNC_FMODF_IEEE.
20530         * doc/posix-functions/fmodf.texi: Mention the problem on OSF/1.
20532         fmodf-ieee: Work around test failure on MSVC 9.
20533         * modules/fmodf-ieee (Depends-on): Add fmod-ieee.
20534         * doc/posix-functions/fmodf.texi: Mention the fmodf-ieee module.
20536         fmod-ieee: Work around test failures on OSF/1, mingw.
20537         * m4/fmod-ieee.m4: New file.
20538         * m4/fmod.m4 (gl_FUNC_FMOD): If gl_FUNC_FMOD_IEEE is present, test
20539         whether fmod works with zero arguments. Replace it if not.
20540         * lib/math.in.h (fmod): New declaration.
20541         * lib/fmod.c: New file.
20542         * m4/math_h.m4 (gl_MATH_H): Test whether fmod is declared.
20543         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMOD, REPLACE_FMOD.
20544         * modules/math (Makefile.am): Substitute GNULIB_FMOD, REPLACE_FMOD.
20545         * modules/fmod (Files): Add lib/fmod.c.
20546         (Depends-on): Add math, isinf, trunc, fma.
20547         (configure.ac): Arrange to compile lib/fmod.c if needed.
20548         * modules/fmod-ieee (Files): Add m4/fmod-ieee.m4, m4/minus-zero.m4,
20549         m4/signbit.m4.
20550         (configure.ac): Invoke gl_FUNC_FMOD_IEEE.
20551         * tests/test-math-c++.cc: Check the declaration of fmod.
20552         * doc/posix-functions/fmod.texi: Mention the fmod-ieee module.
20554         fmodl-ieee: Fix test failures.
20555         * lib/fmodl.c (fmodl): Treat Inf specially.
20556         * modules/fmodl (Depends-on): Add isinf.
20558         Tests for module 'fmodl-ieee'.
20559         * modules/fmodl-ieee-tests: New file.
20560         * tests/test-fmodl-ieee.c: New file.
20562         New module 'fmodl-ieee'.
20563         * modules/fmodl-ieee: New file.
20565         Tests for module 'fmod-ieee'.
20566         * modules/fmod-ieee-tests: New file.
20567         * tests/test-fmod-ieee.c: New file.
20569         New module 'fmod-ieee'.
20570         * modules/fmod-ieee: New file.
20572         Tests for module 'fmodf-ieee'.
20573         * modules/fmodf-ieee-tests: New file.
20574         * tests/test-fmodf-ieee.c: New file.
20575         * tests/test-fmod-ieee.h: New file.
20577         New module 'fmodf-ieee'.
20578         * modules/fmodf-ieee: New file.
20580 2012-02-27  Bruno Haible  <bruno@clisp.org>
20582         Tests for module 'rintl-ieee'.
20583         * modules/rintl-ieee-tests: New file.
20584         * tests/test-rintl-ieee.c: New file.
20586         New module 'rintl-ieee'.
20587         * modules/rintl-ieee: New file.
20589         Tests for module 'rint-ieee'.
20590         * modules/rint-ieee-tests: New file.
20591         * tests/test-rint-ieee.c: New file.
20593         New module 'rint-ieee'.
20594         * modules/rint-ieee: New file.
20596         Tests for module 'rintf-ieee'.
20597         * modules/rintf-ieee-tests: New file.
20598         * tests/test-rintf-ieee.c: New file.
20599         * tests/test-rint-ieee.h: New file.
20601         New module 'rintf-ieee'.
20602         * modules/rintf-ieee: New file.
20604 2012-02-26  Paul Eggert  <eggert@cs.ucla.edu>
20606         regex: re_search etc. should return -2 when memory exhausted
20607         This bug was uncovered when testing 'grep'.  Without the fix,
20608         re_search and friends return -1 when memory is exhausted, but -1
20609         means no match, and this causes grep to falsely report no-match
20610         instead of memory-exhaustion.  See
20611         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=13762>.
20612         * lib/regexec.c (re_search_stub): Return -2 (not -1) if there is
20613         trouble; this can occur if re_search_internal ran out of memory.
20615 2012-02-26  Bruno Haible  <bruno@clisp.org>
20617         modfl-ieee: Work around test failures on IRIX, OSF/1, mingw.
20618         * m4/modfl-ieee.m4: New file.
20619         * m4/modfl.m4 (gl_FUNC_MODFL): If gl_FUNC_MODFL_IEEE is present, test
20620         whether modfl works with Inf. Replace it if not.
20621         * lib/math.in.h (modfl): Override if REPLACE_MODFF is 1.
20622         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_MODFL.
20623         * modules/math (Makefile.am): Substitute REPLACE_MODFL.
20624         * modules/modfl (configure.ac): Consider REPLACE_MODFL.
20625         (Depends-on): Update dependencies.
20626         * modules/modfl-ieee (Files): Add m4/modfl-ieee.m4, m4/minus-zero.m4,
20627         m4/signbit.m4.
20628         (configure.ac): Invoke gl_FUNC_MODFL_IEEE.
20629         * doc/posix-functions/modfl.texi: Mention the modfl-ieee module.
20631         modfl-ieee: Fix dependencies.
20632         * modules/modfl-ieee (Depends-on): Add modf-ieee.
20634         modfl-ieee: Fix test failures.
20635         * lib/modfl.c (modfl): Treat NaN and Inf specially.
20636         * modules/modfl (Depends-on): Add isfinite, isinf.
20638         modff-ieee: Work around test failures on *BSD, IRIX, OSF/1, etc.
20639         * m4/modff-ieee.m4: New file.
20640         * m4/modff.m4 (gl_FUNC_MODFF): If gl_FUNC_MODFF_IEEE is present, test
20641         whether modff works with NaN and Inf. Replace it if not.
20642         * lib/math.in.h (modff): Override if REPLACE_MODFF is 1.
20643         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_MODFF.
20644         * modules/math (Makefile.am): Substitute REPLACE_MODFF.
20645         * modules/modff (configure.ac): Consider REPLACE_MODFF.
20646         (Depends-on): Update dependencies.
20647         * modules/modff-ieee (Files): Add m4/modff-ieee.m4, m4/minus-zero.m4,
20648         m4/signbit.m4.
20649         (Depends-on): Add modf-ieee.
20650         (configure.ac): Invoke gl_FUNC_MODFF_IEEE.
20651         * doc/posix-functions/modff.texi: Mention the modff-ieee module.
20653         modf-ieee: Work around test failures on *BSD, IRIX, OSF/1, Cygwin.
20654         * m4/modf-ieee.m4: New file.
20655         * m4/modf.m4 (gl_FUNC_MODF): If gl_FUNC_MODF_IEEE is present, test
20656         whether modf works with NaN and Inf. Replace it if not.
20657         * lib/math.in.h (modf): New declaration.
20658         * lib/modf.c: New file.
20659         * m4/math_h.m4 (gl_MATH_H): Test whether modf is declared.
20660         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODF, REPLACE_MODF.
20661         * modules/math (Makefile.am): Substitute GNULIB_MODF, REPLACE_MODF.
20662         * modules/modf (Files): Add lib/modf.c.
20663         (Depends-on): Add math, isfinite, trunc, isinf.
20664         (configure.ac): Addrange to compile lib/modf.c if needed.
20665         * modules/modf-ieee (Files): Add m4/modf-ieee.m4, m4/minus-zero.m4,
20666         m4/signbit.m4.
20667         (configure.ac): Invoke gl_FUNC_MODF_IEEE.
20668         * tests/test-math-c++.cc: Check the declaration of modf.
20669         * doc/posix-functions/modf.texi: Mention the modf-ieee module.
20671         Tests for module 'modfl-ieee'.
20672         * modules/modfl-ieee-tests: New file.
20673         * tests/test-modfl-ieee.c: New file.
20675         New module 'modfl-ieee'.
20676         * modules/modfl-ieee: New file.
20678         Tests for module 'modf-ieee'.
20679         * modules/modf-ieee-tests: New file.
20680         * tests/test-modf-ieee.c: New file.
20682         New module 'modf-ieee'.
20683         * modules/modf-ieee: New file.
20685         Tests for module 'modff-ieee'.
20686         * modules/modff-ieee-tests: New file.
20687         * tests/test-modff-ieee.c: New file.
20688         * tests/test-modf-ieee.h: New file.
20690         New module 'modff-ieee'.
20691         * modules/modff-ieee: New file.
20693 2012-02-26  Bruno Haible  <bruno@clisp.org>
20695         Tests for module 'fabsl-ieee'.
20696         * modules/fabsl-ieee-tests: New file.
20697         * tests/test-fabsl-ieee.c: New file.
20699         New module 'fabsl-ieee'.
20700         * modules/fabsl-ieee: New file.
20702         Tests for module 'fabs-ieee'.
20703         * modules/fabs-ieee-tests: New file.
20704         * tests/test-fabs-ieee.c: New file.
20706         New module 'fabs-ieee'.
20707         * modules/fabs-ieee: New file.
20709         Tests for module 'fabsf-ieee'.
20710         * modules/fabsf-ieee-tests: New file.
20711         * tests/test-fabsf-ieee.c: New file.
20712         * tests/test-fabs-ieee.h: New file.
20714         New module 'fabsf-ieee'.
20715         * modules/fabsf-ieee: New file.
20717 2012-02-26  Bruno Haible  <bruno@clisp.org>
20719         Tests for module 'fmal-ieee'.
20720         * modules/fmal-ieee-tests: New file.
20721         * tests/test-fmal-ieee.c: New file.
20723         New module 'fmal-ieee'.
20724         * modules/fmal-ieee: New file.
20726         Tests for module 'fma-ieee'.
20727         * modules/fma-ieee-tests: New file.
20728         * tests/test-fma-ieee.c: New file.
20730         New module 'fma-ieee'.
20731         * modules/fma-ieee: New file.
20733         Tests for module 'fmaf-ieee'.
20734         * modules/fmaf-ieee-tests: New file.
20735         * tests/test-fmaf-ieee.c: New file.
20736         * tests/test-fma-ieee.h: New file.
20738         New module 'fmaf-ieee'.
20739         * modules/fmaf-ieee: New file.
20741 2012-02-26  Bruno Haible  <bruno@clisp.org>
20743         Tests for module 'ldexpl-ieee'.
20744         * modules/ldexpl-ieee-tests: New file.
20745         * tests/test-ldexpl-ieee.c: New file.
20747         New module 'ldexpl-ieee'.
20748         * modules/ldexpl-ieee: New file.
20750         Tests for module 'ldexp-ieee'.
20751         * modules/ldexp-ieee-tests: New file.
20752         * tests/test-ldexp-ieee.c: New file.
20754         New module 'ldexp-ieee'.
20755         * modules/ldexp-ieee: New file.
20757         Tests for module 'ldexpf-ieee'.
20758         * modules/ldexpf-ieee-tests: New file.
20759         * tests/test-ldexpf-ieee.c: New file.
20760         * tests/test-ldexp-ieee.h: New file.
20762         New module 'ldexpf-ieee'.
20763         * modules/ldexpf-ieee: New file.
20765 2012-02-26  Bruno Haible  <bruno@clisp.org>
20767         Refactor frexp*-ieee tests.
20768         * tests/test-frexp-ieee.h: New file.
20769         * tests/test-frexpf-ieee.c: Include test-frexp-ieee.h.
20770         (main): Just call test_function.
20771         * tests/test-frexp-ieee.c: Include test-frexp-ieee.h.
20772         (main): Just call test_function.
20773         * tests/test-frexpl-ieee.c: Include test-frexp-ieee.h.
20774         (main): Just call test_function.
20775         * modules/frexpf-ieee-tests (Files): Add tests/test-frexp-ieee.h.
20776         * modules/frexp-ieee-tests (Files): Likewise.
20777         * modules/frexpl-ieee-tests (Files): Likewise.
20779         Tests for module 'frexpl-ieee'.
20780         * modules/frexpl-ieee-tests: New file.
20781         * tests/test-frexpl-ieee.c: New file.
20783         New module 'frexpl-ieee'.
20784         * modules/frexpl-ieee: New file.
20786         Tests for module 'frexp-ieee'.
20787         * modules/frexp-ieee-tests: New file.
20788         * tests/test-frexp-ieee.c: New file.
20790         New module 'frexp-ieee'.
20791         * modules/frexp-ieee: New file.
20793         Tests for module 'frexpf-ieee'.
20794         * modules/frexpf-ieee-tests: New file.
20795         * tests/test-frexpf-ieee.c: New file.
20797         New module 'frexpf-ieee'.
20798         * modules/frexpf-ieee: New file.
20800 2012-02-26  Bruno Haible  <bruno@clisp.org>
20802         roundl-ieee tests: More tests.
20803         * tests/test-roundl-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
20804         (main): Add tests for [MX] shaded specification in POSIX.
20805         * modules/roundl-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
20806         (Depends-on): Add isnanl-nolibm.
20808         round-ieee tests: More tests.
20809         * tests/test-round-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
20810         (main): Add tests for [MX] shaded specification in POSIX.
20811         * modules/round-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
20812         (Depends-on): Add isnand-nolibm.
20814         roundf-ieee tests: More tests.
20815         * tests/test-roundf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
20816         (main): Add tests for [MX] shaded specification in POSIX.
20817         * modules/roundf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
20818         (Depends-on): Add isnanf-nolibm.
20820         truncl-ieee tests: More tests.
20821         * tests/test-truncl-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
20822         (main): Add tests for [MX] shaded specification in POSIX.
20823         * modules/truncl-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
20824         (Depends-on): Add isnanl-nolibm.
20826         trunc-ieee tests: More tests.
20827         * tests/test-trunc-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
20828         (main): Add tests for [MX] shaded specification in POSIX.
20829         * modules/trunc-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
20830         (Depends-on): Add isnand-nolibm.
20832         truncf-ieee tests: More tests.
20833         * tests/test-truncf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
20834         (main): Add tests for [MX] shaded specification in POSIX.
20835         * modules/truncf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
20836         (Depends-on): Add isnanf-nolibm.
20838         ceill-ieee tests: More tests.
20839         * tests/test-ceill-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
20840         (main): Add tests for [MX] shaded specification in POSIX.
20841         * modules/ceill-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
20842         (Depends-on): Add isnanl-nolibm.
20844         ceil-ieee tests: More tests.
20845         * tests/test-ceil-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
20846         (main): Add tests for [MX] shaded specification in POSIX.
20847         * modules/ceil-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
20848         (Depends-on): Add isnand-nolibm.
20850         ceilf-ieee tests: More tests.
20851         * tests/test-ceilf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
20852         (main): Add tests for [MX] shaded specification in POSIX.
20853         * modules/ceilf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
20854         (Depends-on): Add isnanf-nolibm.
20856         floorl-ieee tests: More tests.
20857         * tests/test-floorl-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
20858         (main): Add tests for [MX] shaded specification in POSIX.
20859         * modules/floorl-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
20860         (Depends-on): Add isnanl-nolibm.
20862         floor-ieee tests: More tests.
20863         * tests/test-floor-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
20864         (main): Add tests for [MX] shaded specification in POSIX.
20865         * modules/floor-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
20866         (Depends-on): Add isnand-nolibm.
20868         floorf-ieee tests: More tests.
20869         * tests/test-floorf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
20870         (main): Add tests for [MX] shaded specification in POSIX.
20871         * modules/floorf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
20872         (Depends-on): Add isnanf-nolibm.
20874 2012-02-26  Bruno Haible  <bruno@clisp.org>
20876         fpieee: More comments.
20877         * m4/fpieee.m4 (gl_FP_IEEE): Add more comments.
20879 2012-02-25  Bruno Haible  <bruno@clisp.org>
20881         Tests for module 'log10l'.
20882         * modules/log10l-tests: New file.
20883         * tests/test-log10l.c: New file.
20884         * tests/test-math-c++.cc: Check the declaration of log10l.
20886         New module 'log10l'.
20887         * lib/math.in.h (log10l): New declaration.
20888         * lib/log10l.c: New file.
20889         * m4/log10l.m4: New file.
20890         * modules/log10l: New file.
20891         * m4/math_h.m4 (gl_MATH_H): Test whether log10l is declared.
20892         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10L, HAVE_LOG10L,
20893         HAVE_DECL_LOG10L.
20894         * modules/math (Makefile.am): Substitute GNULIB_LOG10L, HAVE_LOG10L,
20895         HAVE_DECL_LOG10L.
20896         * doc/posix-functions/log10l.texi: Mention the new module.
20898 2012-02-25  Bruno Haible  <bruno@clisp.org>
20900         fmodl, remainder*: Avoid wrong results due to rounding errors.
20901         * lib/fmodl.c (fmodl): Correct the result if it is not within the
20902         expected bounds.
20903         * lib/remainderf.c (remainderf): Likewise.
20904         * lib/remainder.c (remainder): Likewise.
20905         * lib/remainderl.c (remainderl): Likewise.
20907 2012-02-25  Bruno Haible  <bruno@clisp.org>
20909         Tests for module 'remainderl'.
20910         * modules/remainderl-tests: New file.
20911         * tests/test-remainderl.c: New file.
20912         * tests/test-math-c++.cc: Check the declaration of remainderl.
20914         New module 'remainderl'.
20915         * lib/math.in.h (remainderl): New declaration.
20916         * lib/remainderl.c: New file.
20917         * m4/remainderl.m4: New file.
20918         * modules/remainderl: New file.
20919         * m4/math_h.m4 (gl_MATH_H): Test whether remainderl is declared.
20920         (gl_MATH_H_DEFAULTS): Initialize GNULIB_REMAINDERL, HAVE_REMAINDERL.
20921         * modules/math (Makefile.am): Substitute GNULIB_REMAINDERL,
20922         HAVE_REMAINDERL.
20923         * doc/posix-functions/remainderl.texi: Mention the new module.
20925 2012-02-25  Bruno Haible  <bruno@clisp.org>
20927         Tests for module 'remainderf'.
20928         * modules/remainderf-tests: New file.
20929         * tests/test-remainderf.c: New file.
20930         * tests/test-math-c++.cc: Check the declaration of remainderf.
20932         New module 'remainderf'.
20933         * lib/math.in.h (remainderf): New declaration.
20934         * lib/remainderf.c: New file.
20935         * m4/remainderf.m4: New file.
20936         * modules/remainderf: New file.
20937         * m4/math_h.m4 (gl_MATH_H): Test whether remainderf is declared.
20938         (gl_MATH_H_DEFAULTS): Initialize GNULIB_REMAINDERF, HAVE_REMAINDERF.
20939         * modules/math (Makefile.am): Substitute GNULIB_REMAINDERF,
20940         HAVE_REMAINDERF.
20941         * doc/posix-functions/remainderf.texi: Mention the new module.
20943 2012-02-25  Bruno Haible  <bruno@clisp.org>
20945         remainder: Support for MSVC.
20946         * lib/math.in.h (remainder): New declaration.
20947         * lib/remainder.c: New file.
20948         * m4/remainder.m4: New file.
20949         * modules/remainder (Files): Add lib/remainder.c, m4/remainder.m4.
20950         (Depends-on): Add math, round, fma.
20951         (configure.ac): Use results of gl_FUNC_REMAINDER.
20952         * m4/math_h.m4 (gl_MATH_H): Test whether remainder is declared.
20953         (gl_MATH_H_DEFAULTS): Initialize GNULIB_REMAINDER, HAVE_REMAINDER,
20954         HAVE_DECL_REMAINDER.
20955         * modules/math (Makefile.am): Substitute GNULIB_REMAINDER,
20956         HAVE_REMAINDER, HAVE_DECL_REMAINDER.
20957         * tests/test-math-c++.cc: Check the declaration of remainder.
20958         * doc/posix-functions/remainder.texi: Mention that the MSVC and IRIX 5
20959         problems are fixed.
20961 2012-02-25  Bruno Haible  <bruno@clisp.org>
20963         Tests for module 'fmodl'.
20964         * modules/fmodl-tests: New file.
20965         * tests/test-fmodl.c: New file.
20966         * tests/test-math-c++.cc: Check the declaration of fmodl.
20968         New module 'fmodl'.
20969         * lib/math.in.h (fmodl): New declaration.
20970         * lib/fmodl.c: New file.
20971         * m4/fmodl.m4: New file.
20972         * m4/math_h.m4 (gl_MATH_H): Test whether fmodl is declared.
20973         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMODL, HAVE_FMODL,
20974         REPLACE_FMODL.
20975         * modules/math (Makefile.am): Substitute GNULIB_FMODL, HAVE_FMODL,
20976         REPLACE_FMODL.
20977         * modules/fmodl: New file.
20978         * doc/posix-functions/fmodl.texi: Mention the new module.
20980 2012-02-25  Bruno Haible  <bruno@clisp.org>
20982         Tests for module 'modfl'.
20983         * modules/modfl-tests: New file.
20984         * tests/test-modfl.c: New file.
20985         * tests/test-math-c++.cc: Check the declaration of modfl.
20987         New module 'modfl'.
20988         * lib/math.in.h (modfl): New declaration.
20989         * lib/modfl.c: New file.
20990         * m4/modfl.m4: New file.
20991         * m4/math_h.m4 (gl_MATH_H): Test whether modfl is declared.
20992         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODFL, HAVE_MODFL.
20993         * modules/math (Makefile.am): Substitute GNULIB_MODFL, HAVE_MODFL.
20994         * modules/modfl: New file.
20995         * doc/posix-functions/modfl.texi: Mention the new module.
20997 2012-02-25  Bruno Haible  <bruno@clisp.org>
20999         Tests for module 'fabsl'.
21000         * modules/fabsl-tests: New file.
21001         * tests/test-fabsl.c: New file.
21002         * tests/test-math-c++.cc: Check the declaration of fabsl.
21004         New module 'fabsl'.
21005         * lib/math.in.h (fabsl): New declaration.
21006         * lib/fabsl.c: New file.
21007         * m4/fabsl.m4: New file.
21008         * m4/math_h.m4 (gl_MATH_H): Test whether fabsl is declared.
21009         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FABSL, HAVE_FABSL,
21010         REPLACE_FABSL.
21011         * modules/math (Makefile.am): Substitute GNULIB_FABSL, HAVE_FABSL,
21012         REPLACE_FABSL.
21013         * modules/fabsl: New file.
21014         * doc/posix-functions/fabsl.texi: Mention the new module.
21016 2012-02-25  Bruno Haible  <bruno@clisp.org>
21018         fabs tests: More tests.
21019         * tests/test-fabs.c: Include <string.h>, minus-zero.h.
21020         (zero): New variable.
21021         (main): Add tests for signed zero.
21022         * modules/fabs-tests (Files): Add tests/minus-zero.h.
21024         fabsf tests: More tests.
21025         * tests/test-fabsf.c: Include <string.h>, minus-zero.h.
21026         (zero): New variable.
21027         (main): Add tests for signed zero.
21028         * modules/fabsf-tests (Files): Add tests/minus-zero.h.
21030 2012-02-24  Bruno Haible  <bruno@clisp.org>
21032         atanl: Provide function definition on MSVC.
21033         * m4/atanl.m4 (gl_FUNC_ATANL): Test also whether atanl can be used as a
21034         function pointer.
21035         * lib/math.in.h (atanl): Undefine if it does not exist as a function.
21037 2012-02-24  Bruno Haible  <bruno@clisp.org>
21039         acosl: Provide function definition on MSVC.
21040         * m4/acosl.m4 (gl_FUNC_ACOSL): Test also whether acosl can be used as a
21041         function pointer.
21042         * lib/math.in.h (acosl): Undefine if it does not exist as a function.
21044 2012-02-24  Bruno Haible  <bruno@clisp.org>
21046         asinl: Provide function definition on MSVC.
21047         * m4/asinl.m4 (gl_FUNC_ASINL): Test also whether asinl can be used as a
21048         function pointer.
21049         * lib/math.in.h (asinl): Undefine if it does not exist as a function.
21051 2012-02-24  Bruno Haible  <bruno@clisp.org>
21053         tanl: Provide function definition on MSVC.
21054         * m4/tanl.m4 (gl_FUNC_TANL): Test also whether tanl can be used as a
21055         function pointer.
21056         * lib/math.in.h (tanl): Undefine if it does not exist as a function.
21058 2012-02-24  Bruno Haible  <bruno@clisp.org>
21060         cosl: Provide function definition on MSVC.
21061         * m4/cosl.m4 (gl_FUNC_COSL): Test also whether cosl can be used as a
21062         function pointer.
21063         * lib/math.in.h (cosl): Undefine if it does not exist as a function.
21065 2012-02-24  Bruno Haible  <bruno@clisp.org>
21067         sinl: Provide function definition on MSVC.
21068         * m4/sinl.m4 (gl_FUNC_SINL): Test also whether sinl can be used as a
21069         function pointer.
21070         * lib/math.in.h (sinl): Undefine if it does not exist as a function.
21072 2012-02-24  Bruno Haible  <bruno@clisp.org>
21074         logl: Provide function definition on MSVC.
21075         * m4/logl.m4 (gl_FUNC_LOGL): Test also whether logl can be used as a
21076         function pointer.
21077         * lib/math.in.h (logl): Undefine if it does not exist as a function.
21079 2012-02-24  Bruno Haible  <bruno@clisp.org>
21081         expl: Provide function definition on MSVC.
21082         * m4/expl.m4 (gl_FUNC_EXPL): Test also whether expl can be used as a
21083         function pointer.
21084         * lib/math.in.h (expl): Undefine if it does not exist as a function.
21086 2012-02-24  Bruno Haible  <bruno@clisp.org>
21088         sqrtl: Provide function definition on MSVC.
21089         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Test also whether sqrtl can be used as
21090         a function pointer.
21091         * lib/math.in.h (sqrtl): Undefine if it does not exist as a function.
21093 2012-02-24  Bruno Haible  <bruno@clisp.org>
21095         ceill: Provide function definition on MSVC.
21096         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Test also whether ceill can be
21097         used as a function pointer.
21098         * lib/math.in.h (ceill): Undefine if it is not declared as a function.
21100 2012-02-24  Bruno Haible  <bruno@clisp.org>
21102         floorl: Provide function definition on MSVC.
21103         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Test also whether floorl can be
21104         used as a function pointer.
21105         * lib/math.in.h (floorl): Undefine if it is not declared as a function.
21107 2012-02-24  Bruno Haible  <bruno@clisp.org>
21109         ceilf: Provide function definition on MSVC.
21110         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Test also whether ceilf can be
21111         used as a function pointer.
21112         * lib/math.in.h (ceilf): Undefine if it is not declared as a function.
21114 2012-02-24  Bruno Haible  <bruno@clisp.org>
21116         floorf: Provide function definition on MSVC.
21117         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Test also whether floorf can be
21118         used as a function pointer.
21119         * lib/math.in.h (floorf): Undefine if it is not declared as a function.
21121 2012-02-24  Paul Eggert  <eggert@cs.ucla.edu>
21123         stdnoreturn: new module
21124         This implements a replacement for C11's <stdnoreturn.h>.
21125         * doc/gnulib.texi (Header File Substitutes): Add stdnoreturn.
21126         * doc/posix-headers/stdnoreturn.texi, lib/stdnoreturn.in.h:
21127         * m4/stdnoreturn.m4, modules/stdnoreturn, modules/stdnoreturn-tests:
21128         * tests/test-stdnoreturn.c: New files.
21130 2012-02-24  Stanislav Brabec  <sbrabec@suse.cz>  (tiny change)
21132         regex: fix false multibyte matches in some regular expressions
21133         See <http://sourceware.org/bugzilla/show_bug.cgi?id=13637>
21134         and <http://sourceware.org/ml/libc-alpha/2012-02/msg00521.html>.
21135         * lib/regex_internal.c (re_string_skip_chars):
21136         Fix miscomputation of remain_len that may cause incomplete
21137         multi-byte character and false match.
21139 2012-02-24  Jim Meyering  <meyering@redhat.com>
21141         maint.mk: tell sc_prohibit_strcmp to ding "0 == strcmp (...)", too
21142         * top/maint.mk (sc_prohibit_strcmp): Also prohibit uses of strcmp
21143         uses with "==" *before* the call, e.g., 0 == strcmp (...)
21144         Remove now-unnecessary str''cmp obfuscation.
21145         Suggested by Akim Demaille.
21147 2012-02-24  Bruno Haible  <bruno@clisp.org>
21149         streq: Rename macro.
21150         * lib/streq.h (STREQ_OPT): Renamed from STREQ.
21151         * NEWS: Mention the change.
21152         * lib/mbrtowc.c (mbrtowc): Update.
21153         * lib/uniwidth/cjk.h (is_cjk_encoding): Update.
21154         * lib/wcwidth.c (wcwidth): Update.
21155         Suggested by Akim Demaille and Jim Meyering.
21157 2012-02-20  Paul Eggert  <eggert@cs.ucla.edu>
21159         regex: fix typo in definition of MIN
21160         * lib/regex_internal.h (MIN): Fix typo.  Problem reported by Thomas
21161         Schwinge in <http://sourceware.org/bugzilla/show_bug.cgi?id=11638#c4>.
21163 2012-02-19  Paul Eggert  <eggert@cs.ucla.edu>
21164             Bruno Haible  <bruno@clisp.org>
21166         acl: Don't use ACL_CNT and similar ops, since they are unreliable.
21167         * lib/file-has-acl.c (file_has_acl) [HP-UX, NonStop Kernel]: Read the
21168         entries into a stack-allocated buffer directly.
21169         * lib/copy-acl.c (qcopy_acl) [HP-UX, NonStop Kernel]: Likewise.
21171 2012-02-19  Paul Eggert  <eggert@cs.ucla.edu>
21172             Bruno Haible  <bruno@clisp.org>
21174         acl: Don't use GETACLCNT and similar ops, since they are unreliable.
21176          - There were several instances of this pattern:
21178              for (;;) {
21179                n = acl (f, GETACLCNT, 0, NULL);
21180                [ allocate an array A of size N ]
21181                if (acl (f, GETACL, n, a) == n)
21182                  break;
21183              }
21185            This loop might never terminate if some other process is constantly
21186            manipulating the file's ACL.  The loop should be rewritten to
21187            terminate.
21189          - The acl (... GETACLNT ...) call is merely an optimization; its value
21190            is merely a hint as to how big to make the array.  A better
21191            optimization is to avoid the acl (... GETACLNT ...)  call entirely,
21192            and just guess a reasonably-big size, growing the size and trying
21193            again if it's not large enough.  This guarantees termination, and
21194            saves a system call.
21196         * lib/acl-internal.h: Include <limits.h>.
21197         (MIN, SIZE_MAX): New macros.
21198         * lib/file-has-acl.c (file_has_acl) [Solaris]: Read the entries into
21199         a stack-allocated buffer, and use malloc if it does not fit. Don't
21200         use GETACLCNT.
21201         * lib/set-mode-acl.c (qset_acl) [Solaris]: Likewise.
21203 2012-02-19  Bruno Haible  <bruno@clisp.org>
21205         acl: Fix endless loop on Solaris with vxfs.
21206         * lib/file-has-acl.c (file_has_acl) [Solaris]: Treat a failing
21207         acl()/facl() call for ACE_GETACL like a failing call for ACE_GETACLCNT.
21208         * lib/set-mode-acl.c (qset_acl) [Solaris]: Likewise.
21209         * lib/copy-acl.c (qcopy_acl)[Solaris]: Likewise.
21210         * tests/test-sameacls.c (main)[Solaris]: Likewise.
21211         Reported by Bill Jones in
21212         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=10639>, via Paul Eggert.
21214 2012-02-19  Bruno Haible  <bruno@clisp.org>
21216         acl: Fix copy-acl test failure on Solaris 11 2011-11.
21217         * lib/file-has-acl.c (NEW_ACE_WRITEA_DATA): New macro.
21218         (acl_ace_nontrivial): Relax the restrictions on access_masks[] so
21219         that this function returns 0 in some more cases.
21221 2012-02-19  Bruno Haible  <bruno@clisp.org>
21223         acl: Update doc references.
21224         * doc/acl-resources.txt: Update links to Solaris documentation.
21226 2012-02-19  Bruno Haible  <bruno@clisp.org>
21228         Fix test failure in many locales on Solaris 11.
21229         * tests/test-pipe-filter-gi1.c (main): Don't use range expression in
21230         'tr' arguments.
21231         * tests/test-pipe-filter-ii1.c (main): Likewise.
21232         * build-aux/bootstrap (check_versions): Run 'tr' command with range
21233         expressions in the C locale.
21234         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
21235         * m4/host-os.m4 (gl_HOST_OS): Likewise.
21237 2012-02-19  Bruno Haible  <bruno@clisp.org>
21239         gnulib-tool: Improve usage message.
21240         * gnulib-tool (func_usage): Move doc of --help and --version to the
21241         section "Operation modes".
21243 2012-02-18  Reuben Thomas  <rrt@sc3d.org>
21245         README-release: make it easier to execute commands
21246         * top/README-release: break commands out on to separate lines.
21248 2012-02-16  Stefano Lattarini  <stefano.lattarini@gmail.com>
21250         GNUmakefile: simplify detection of unconfigured trees
21251         * top/GNUmakefile: Use $(wildcard) instead of $(shell) to determine
21252         whether the tree make is being run from is already configured or
21253         not.  Related simplifications.
21255 2012-02-13  Simon Josefsson  <simon@josefsson.org>
21257         * gnulib-tool (func_usage): Document --help and --version.
21259 2012-02-11  Jim Meyering  <meyering@redhat.com>
21261         bootstrap: don't exit 0 upon gnulib-tool failure
21262         * build-aux/bootstrap (gnulib_tool): If gnulib-tool fails, exit with
21263         its exit status, not 0.
21265 2011-12-19  Reuben Thomas  <rrt@sc3d.org>
21267         README-release: various improvements
21268         * top/README-release: Give a command to push changes for the
21269         release.  Add "distcheck" to list of other pre-release checks.
21270         Fix instance of "make stable" which should be "make TYPE".
21272 2012-02-09  Paul Eggert  <eggert@cs.ucla.edu>
21274         maint: replace FSF snail-mail addresses with URLs
21275         * config/argz.mk, lib/accept4.c, lib/alignof.h, lib/alloca.in.h:
21276         * lib/alphasort.c, lib/arcfour.c, lib/arcfour.h, lib/arctwo.c:
21277         * lib/arctwo.h, lib/argz.c, lib/arpa_inet.in.h, lib/asnprintf.c:
21278         * lib/asprintf.c, lib/assert.in.h, lib/base32.c, lib/base32.h:
21279         * lib/base64.c, lib/base64.h, lib/c-ctype.c, lib/c-ctype.h:
21280         * lib/c-strcase.h, lib/c-strcasecmp.c, lib/c-strncasecmp.c:
21281         * lib/check-version.c, lib/check-version.h, lib/config.charset:
21282         * lib/ctype.in.h, lib/des.c, lib/des.h, lib/dup3.c, lib/errno.in.h:
21283         * lib/float+.h, lib/fnmatch.c, lib/fnmatch.in.h, lib/fnmatch_loop.c:
21284         * lib/fseeko.c, lib/gai_strerror.c, lib/gc-gnulib.c:
21285         * lib/gc-libgcrypt.c, lib/gc-pbkdf2-sha1.c, lib/gc.h:
21286         * lib/getaddrinfo.c, lib/getdelim.c, lib/getfilecon.c, lib/getline.c:
21287         * lib/getlogin_r.c, lib/getpass.c, lib/getpass.h, lib/gettext.h:
21288         * lib/gettimeofday.c, lib/glob.in.h, lib/glthread/cond.c:
21289         * lib/glthread/cond.h, lib/glthread/lock.c, lib/glthread/lock.h:
21290         * lib/glthread/thread.c, lib/glthread/thread.h:
21291         * lib/glthread/threadlib.c, lib/glthread/yield.h, lib/hmac-md5.c:
21292         * lib/hmac-sha1.c, lib/hmac.h, lib/iconv.c, lib/iconv.in.h:
21293         * lib/iconv_close.c, lib/iconv_open.c, lib/inet_ntop.c, lib/isfinite.c:
21294         * lib/isinf.c, lib/iswblank.c, lib/langinfo.in.h, lib/link.c:
21295         * lib/localcharset.c, lib/localcharset.h, lib/lseek.c, lib/malloc.c:
21296         * lib/malloca.c, lib/malloca.h, lib/md2.c, lib/md2.h, lib/md4.c:
21297         * lib/md4.h, lib/md5.c, lib/md5.h, lib/memmem.c, lib/mempcpy.c:
21298         * lib/memset.c, lib/memxor.c, lib/memxor.h, lib/minmax.h, lib/mktime.c:
21299         * lib/msvc-inval.c, lib/msvc-inval.h, lib/msvc-nothrow.c:
21300         * lib/msvc-nothrow.h, lib/netdb.in.h, lib/netinet_in.in.h, lib/nproc.c:
21301         * lib/nproc.h, lib/obstack_printf.c, lib/pathmax.h, lib/pipe.c:
21302         * lib/pipe2.c, lib/poll.c, lib/poll.in.h, lib/printf-args.c:
21303         * lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h:
21304         * lib/pselect.c, lib/pthread.in.h, lib/pty-private.h, lib/pty.in.h:
21305         * lib/read-file.c, lib/read-file.h, lib/ref-add.sin, lib/ref-del.sin:
21306         * lib/regcomp.c, lib/regex.c, lib/regex.h, lib/regex_internal.c:
21307         * lib/regex_internal.h, lib/regexec.c, lib/rijndael-alg-fst.c:
21308         * lib/rijndael-alg-fst.h, lib/rijndael-api-fst.c:
21309         * lib/rijndael-api-fst.h, lib/rint.c, lib/rintf.c, lib/rintl.c:
21310         * lib/round.c, lib/roundf.c, lib/roundl.c, lib/scandir.c, lib/select.c:
21311         * lib/sha1.c, lib/sha1.h, lib/size_max.h, lib/snprintf.c:
21312         * lib/stdalign.in.h, lib/stdarg.in.h, lib/stdbool.in.h:
21313         * lib/stddef.in.h, lib/stdint.in.h, lib/stdio.in.h, lib/str-kmp.h:
21314         * lib/str-two-way.h, lib/strcasecmp.c, lib/strcasestr.c, lib/strdup.c:
21315         * lib/striconv.c, lib/striconv.h, lib/string.in.h, lib/strings.in.h:
21316         * lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c, lib/strpbrk.c:
21317         * lib/strptime.c, lib/strsep.c, lib/strstr.c, lib/strverscmp.c:
21318         * lib/sys_file.in.h, lib/sys_ioctl.in.h, lib/sys_select.in.h:
21319         * lib/sys_socket.in.h, lib/sys_stat.in.h, lib/sys_time.in.h:
21320         * lib/sys_times.in.h, lib/sys_types.in.h, lib/sys_uio.in.h:
21321         * lib/sys_utsname.in.h, lib/sys_wait.in.h, lib/tcgetsid.c:
21322         * lib/termios.in.h, lib/time.in.h, lib/time_r.c, lib/timegm.c:
21323         * lib/times.c, lib/unictype/3level.h, lib/unictype/3levelbit.h:
21324         * lib/unistd.in.h, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c:
21325         * lib/vsnprintf.c, lib/waitpid.c, lib/wchar.in.h, lib/wctype.in.h:
21326         * lib/xsize.h, tests/test-closein.c, tests/test-des.c:
21327         * tests/test-fclose.c, tests/test-fgetc.c, tests/test-filevercmp.c:
21328         * tests/test-fputc.c, tests/test-fread.c, tests/test-fwrite.c:
21329         * tests/test-gc-arcfour.c, tests/test-gc-arctwo.c, tests/test-gc-des.c:
21330         * tests/test-gc-hmac-md5.c, tests/test-gc-hmac-sha1.c:
21331         * tests/test-gc-md2.c, tests/test-gc-md4.c, tests/test-gc-md5.c:
21332         * tests/test-gc-pbkdf2-sha1.c, tests/test-gc-rijndael.c:
21333         * tests/test-gc-sha1.c, tests/test-gc.c, tests/test-getdelim.c:
21334         * tests/test-getline.c, tests/test-getndelim2.c, tests/test-md2.c:
21335         * tests/test-md4.c, tests/test-parse-datetime.c, tests/test-perror.c:
21336         * tests/test-perror2.c, tests/test-pipe.c, tests/test-pipe2.c:
21337         * tests/test-poll.c, tests/test-quotearg-simple.c:
21338         * tests/test-quotearg.c, tests/test-quotearg.h:
21339         * tests/test-round-ieee.c, tests/test-round1.c:
21340         * tests/test-roundf-ieee.c, tests/test-roundf1.c:
21341         * tests/test-roundl-ieee.c, tests/test-roundl.c:
21342         * tests/test-safe-alloc.c, tests/test-sigpipe.c:
21343         * tests/test-spawn-pipe-child.c, tests/test-spawn-pipe-main.c:
21344         * tests/test-strerror.c, tests/test-strerror_r.c:
21345         * tests/test-strsignal.c, tests/test-strverscmp.c:
21346         * tests/test-xmemdup0.c:
21347         Replace FSF snail mail addresses with URLs, as per GNU coding
21348         standards.  See glibc bug
21349         <http://sourceware.org/bugzilla/show_bug.cgi?id=13673>.
21351 2011-12-22  Reuben Thomas  <rrt@sc3d.org>
21353         README-release: capitalize a word and split a line
21354         * top/README-release: Fix punctuation and spacing.
21356 2012-02-08  Akim Demaille  <demaille@gostai.com>
21358         fatal-signal: use C prototypes (with explicit void).
21359         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
21360         (init_fatal_signal_set, block_fatal_signals): Fix signatures.
21362 2012-02-07  Paul Eggert  <eggert@cs.ucla.edu>
21364         regex: spelling fix
21365         * lib/regexec.c: spelling fix
21367         regex: rely on stdint.h for SIZE_MAX
21368         * lib/regex_internal.h (SIZE_MAX): Remove; stdint.h supplies this now.
21370 2012-02-07  Paul Eggert  <eggert@cs.ucla.edu>
21372         regex: merge glibc changes
21374         * lib/regcomp.c (init_dfa): Tighten overflow checks to test
21375         for IDX_MAX too, since IDX_MAX can be much less than SIZE_MAX.
21376         (init_word_char): Work even if bitset words are not exactly 32 or
21377         64 bits wide.  Don't assume there are no padding bits.
21378         * lib/regex.c [_LIBC]: Do not include <config.h>.
21379         [!_LIBC]: Add pragmas to ignore -Wsuggest-attributes=pure
21380         and -Wtype-limits.
21381         * lib/regex.h (__USE_GNU): Renamed from __USE_GNU_REGEX, to avoid
21382         needless disagreement with glibc.  All uses changed.  Define it to
21383         1 only if _GNU_SOURCE, to match glibc.
21384         (_REG_RM_NAME): Remove; no longer needed, since the names in
21385         question are now all protected by __USE_GNU.
21386         (_REG_RE_NAME): Remove; replaced by glibc's __REPB_PREFIX.
21387         (REG_TRANSLATE_TYPE): Remove; replaced by glibc's __RE_TRANSLATE_TYPE.
21388         * lib/regex_internal.h (MIN): New macro.
21390         2012-01-03 Ulrich Drepper <drepper@gmail.com>
21391         * lib/regcomp.c (init_word_char): Optimize regex a bit.
21393         2011-12-30 Jakub Jelinek <jakub@redhat.com>
21394         * lib/regex_internal.c (re_string_fetch_byte_case):
21395         Fix up regcomp/regexec.  The problem is that parse_bracket_symbol
21396         is miscompiled, and it turns out it is because of an incorrect
21397         attribute on re_string_fetch_byte_case.  Unlike
21398         re_string_peek_byte_case, this one is really not pure, it modifies
21399         memory (increments pstr->cur_idx), and with the pure attribute GCC
21400         assumed it doesn't and it cached the presumed value of
21401         regexp->cur_idx in a variable across the
21402          for (;; ++i)
21403            {
21404              if (i >= BRACKET_NAME_BUF_SIZE)
21405                return REG_EBRACK;
21406              if (token->type == OP_OPEN_CHAR_CLASS)
21407                ch = re_string_fetch_byte_case (regexp);
21408              else
21409                ch = re_string_fetch_byte (regexp);
21410              if (re_string_eoi(regexp))
21411                return REG_EBRACK;
21412              if (ch == delim && re_string_peek_byte (regexp, 0) == ']')
21413                break;
21414              elem->opr.name[i] = ch;
21415            }
21417         2011-11-29 Andreas Schwab <schwab@redhat.com>
21418         * lib/regcomp.c (build_equiv_class):
21419         Fix access after end of search string in regex matcher.
21421         2011-11-12 Ulrich Drepper <drepper@redhat.com>
21422         * lib/regex_internal.c, lib/regex_internal.h: Fix warnings in regex.
21424         2011-10-12 Ulrich Drepper <drepper@redhat.com>
21425         * lib/regcomp.c (parse_branch): One more regex memory leak fixed.
21427         2011-10-11 Ulrich Drepper <drepper@redhat.com>
21428         * lib/regcomp.c (parse_branch, parse_sub_exp):
21429         More regex memory leak fixes and tests.
21430         (parse_sub_exp, parse_bracket_exp):
21431         Fix memory leak for some invalid regular expressions.
21433         2011-05-28 Ulrich Drepper <drepper@gmail.com>
21434         * lib/regex_internal.c, lib/regexec.c:
21435         Fix unnecessary overallocation due to incomplete character.  When
21436         incomplete characters are found at the end of a string the code
21437         ran amok and allocated lots of memory.  Stricter limits are now in
21438         place.
21440         2011-05-20 Reuben Thomas <rrt@sc3d.org>
21441         * lib/regex.h: Update documentation.
21443         2011-05-16 Aharon Robbins <arnold@skeeve.com>
21444         * lib/regex.h: Update RE_SYNTAX*_AWK constants.
21446         2010-05-05 Andreas Schwab <schwab@redhat.com>
21447         * lib/regexec.c (find_collation_sequence_value):
21448         Fix lookup of collation sequence value during regexp matching.
21450         2010-01-22 Ulrich Drepper <drepper@redhat.com>
21451         * lib/regex_internal.c (re_dfa_add_node): Extend overflow detection.
21453         2008-01-16 Ulrich Drepper <drepper@redhat.com>
21454         * lib/regex.h: Cleanup namespace.
21456         2007-11-26 Ulrich Drepper <drepper@redhat.com>
21457         * lib/regex.h (REG_ENOSYS): Define REG_ENOSYS also for __USE_XOPEN2K.
21459         2007-08-26 Ulrich Drepper <drepper@redhat.com>
21460         * lib/regex_internal.h: Prevent some declarations and definitions
21461         to be seen when used in tests.
21463         2005-05-06 Ulrich Drepper <drepper@redhat.com>
21464         * lib/regex_internal.h: Include bits/libc-lock.h or define dummy
21465         __libc_lock_* macros if not _LIBC.
21466         (struct re_dfa_t): Add lock.
21468 2012-02-07  Eric Blake  <eblake@redhat.com>
21470         maint.mk: also prohibit lower-case @var@
21471         * top/maint.mk (sc_makefile_at_at_check): Enhance check to cover
21472         lower case, like @top_srcdir@.
21474 2012-02-04  Eric Blake  <eblake@redhat.com>
21476         canonicalize: avoid uninitialized memory use
21477         * lib/canonicalize-lgpl.c (__realpath): Avoid possibility of
21478         random '/' left in dest.
21479         * lib/canonicalize.c (canonicalize_filename_mode): Likewise.
21481 2012-02-04  Bruno Haible  <bruno@clisp.org>
21483         isatty: Fix test failure of ptsname_r on native Windows.
21484         * lib/isatty.c (_isatty_nothrow): Upon exception, return 0, not -1,
21485         and don't set errno.
21486         (isatty): Test first whether fd is valid. Set errno when returning 0.
21488 2012-02-04  Bruno Haible  <bruno@clisp.org>
21490         spawn-pipe tests: Fix a NULL program name in a diagnostic.
21491         * tests/test-spawn-pipe-main.c: Include progname.h.
21492         (main): Invoke set_program_name.
21493         * modules/spawn-pipe-tests (Depends-on): Add progname.
21495         nonblocking-socket tests: Fix a NULL program name in a diagnostic.
21496         * tests/test-nonblocking-socket-main.c: Include progname.h.
21497         (main): Invoke set_program_name.
21498         * modules/nonblocking-socket-tests (Depends-on): Add progname.
21500         nonblocking-pipe tests: Fix a NULL program name in a diagnostic.
21501         * tests/test-nonblocking-pipe-main.c: Include progname.h.
21502         (main): Invoke set_program_name.
21503         * modules/nonblocking-pipe-tests (Depends-on): Add progname.
21505 2012-02-04  Eric Blake  <eblake@redhat.com>
21507         canonicalize-lgpl: fix // handling
21508         * lib/canonicalize-lgpl.c (__realpath): Don't convert /// to //.
21510         canonicalize: fix // handling
21511         * lib/canonicalize.c (canonicalize_filename_mode): Don't convert
21512         /// to //, since only // is special.
21514 2012-02-04  Bruno Haible  <bruno@clisp.org>
21516         ioctl: Fix test failure on native Windows.
21517         * lib/ioctl.c: Include msvc-nothrow.h.
21518         (primary_ioctl): If fd is not a valid handle, set errno to EBADF.
21520 2012-02-04  Bruno Haible  <bruno@clisp.org>
21522         fsync: Avoid test failure on native Windows.
21523         * lib/fsync.c (fsync) [Windows]: Don't fail if the handle is merely
21524         read-only.
21526 2012-02-04  Bruno Haible  <bruno@clisp.org>
21528         sys_select: Avoid syntax error on OpenBSD 5.0.
21529         * lib/sys_select.in.h [OpenBSD]: When /usr/include/pthread.h is
21530         currently being included, just include the system's <sys/select.h>.
21532 2012-02-04  Bruno Haible  <bruno@clisp.org>
21534         sys_select: Avoid syntax error on OpenBSD 5.0.
21535         * lib/sys_select.in.h: Include <signal.h> only after the include_next
21536         <sys/select.h>, not before.
21537         Reported by Jiri B <jirib@devio.us>.
21539 2012-02-04  Bruno Haible  <bruno@clisp.org>
21541         get-rusage-as, get-rusage-data tests: Avoid test failure with gcc-4.7.
21542         * tests/test-get-rusage-as.c (main): Assign the malloc() results to
21543         global variables.
21544         * tests/test-get-rusage-data.c (main): Likewise.
21545         Reported by Jim Meyering.
21547 2012-02-04  Bruno Haible  <bruno@clisp.org>
21549         stdioext: Fix last commit.
21550         * lib/fwritable.c [EPLAN9]: Include <fcntl.h>.
21552 2012-02-03  Bruno Haible  <bruno@clisp.org>
21554         stdioext: Add tentative support for Plan9.
21555         * lib/stdio-impl.h: Include <errno.h>.
21556         * lib/fseterr.c (fseterr) [EPLAN9]: Add conditional code.
21557         * lib/freadable.c (freadable): Likewise.
21558         * lib/fwritable.c (fwritable): Likewise.
21559         * lib/fbufmode.c (fbufmode): Likewise.
21560         * lib/freading.c (freading): Likewise.
21561         * lib/fwriting.c (fwriting): Likewise.
21562         * lib/freadptr.c (freadptr): Likewise.
21563         * lib/freadseek.c (freadptrinc): Likewise.
21564         * lib/freadahead.c (freadahead): Likewise.
21565         * lib/fpurge.c (fpurge): Likewise.
21566         * lib/fseeko.c (rpl_fseeko): Likewise.
21567         * m4/fpending.m4 (gl_PREREQ_FPENDING): Add a variant for Plan9.
21568         Reported by Jens Staal <staal1978@gmail.com>.
21570 2012-02-02  Jim Meyering  <meyering@redhat.com>
21572         file-has-acl: suppress a warning from gcc -Wsuggest-attribute=const
21573         * lib/file-has-acl.c (file_has_acl): This function (for some #ifdefs)
21574         would evoke a new gcc warning.  Given all of the #ifdefs, it is better
21575         not even to try to add the attribute.  Instead, add a pragma to suppress
21576         the suggestion/warning.
21578 2012-01-31  Karl Berry  <karl@gnu.org>
21580         setstate doc: typo.
21581         * doc/posix-functions/setstate.texi (setstate): { not (.
21583 2012-01-31  Bruno Haible  <bruno@clisp.org>
21585         popen: Make more robust on Windows.
21586         * lib/popen.c: On native Windows, use the _popen based code even if
21587         HAVE_POPEN is set.
21588         * doc/posix-functions/popen.texi: Mention necessity of COMSPEC
21589         environment variable on native Windows.
21591 2012-01-30  Bruno Haible  <bruno@clisp.org>
21593         pclose: Fix typo.
21594         * lib/stdio.in.h (pclose): Fix typo in warning message.
21596 2012-01-30  Bruno Haible  <bruno@clisp.org>
21598         doc about getlogin_r, setstate.
21599         * doc/posix-functions/getlogin_r.texi: List the incompatible
21600         declaration problem under "not fixed by gnulib".
21601         * doc/posix-functions/setstate.texi: Mention incompatible declaration
21602         problem on Solaris 11 and other platforms.
21604 2012-01-30  Chuanchang Jia  <chuanchang.jia@gmail.com>  (tiny change)
21605             Bruno Haible  <bruno@clisp.org>
21607         poll tests: Make test more robust.
21608         * tests/test-poll.c: Include macros.h.
21609         (test_accept_first, test_pair, test_socket_pair, test_pipe): Verify
21610         return value of various I/O operations.
21611         * modules/poll-tests (Files): Add tests/macros.h.
21613 2012-01-30  Bruno Haible  <bruno@clisp.org>
21615         sys_stat: Fix support for mingw64 and MSVC.
21616         * lib/sys_stat.in.h (stat) [AIX]: Don't redefine 'stat' if the system
21617         header files already do it.
21618         (stat) [mingw, msvc]: Redefine the symbol to which stat is defined, not
21619         stat itself.
21620         Reported by Marc-André Lureau <marcandre.lureau@redhat.com>.
21622 2012-01-30  Bruno Haible  <bruno@clisp.org>
21624         wcwidth: Work around bug in UTF-8 locale on OpenBSD 5.0.
21625         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test also wcwidth of U+05B0.
21626         * doc/posix-functions/wcwidth.texi: Mention the OpenBSD 5.0 bug.
21628 2012-01-29  Bruno Haible  <bruno@clisp.org>
21630         quotearg: Fix test failure on MacOS X 10.5.
21631         * tests/test-quotearg-simple.c: Include localcharset.h.
21632         (main): If the locale encoding is not ASCII, bypass the tests of
21633         locale_quoting_style and clocale_quoting_style.
21634         * modules/quotearg-tests (Depends-on): Add 'localcharset'.
21636 2012-01-29  Jim Meyering  <meyering@redhat.com>
21638         maint.mk: sc_prohibit_canonicalize_without_use: avoid false positive
21639         * top/maint.mk (sc_prohibit_canonicalize_without_use): Also
21640         detect uses of canonicalize_file_name.
21642 2012-01-28  Bruno Haible  <bruno@clisp.org>
21644         test-framework-sh: Fix test failure with AIX 7.1 diff.
21645         * tests/init.sh (compare_): Don't use 'diff -u' if it inserts a space
21646         in column 1, like 'diff -c' does.
21647         * tests/test-init.sh (test_compare): Don't repeat the test from init.sh
21648         whether 'diff -u' is used. Instead, test whether the output contains
21649         some '@' character.
21651 2012-01-28  Paul Eggert  <eggert@cs.ucla.edu>
21653         strtoimax: eliminate need for stdint.h, inttypes.h checks
21654         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Don't use
21655         gl_AC_HEADER_STDINT_H or gl_AC_HEADER_INTTYPES_H.  This reduces
21656         the prerequisites for a recently-introduced strtoimax test.
21657         I guess this might cause strtoimax to be replaced when not
21658         strictly necessary on older hosts, but this shouldn't introduce
21659         any bugs and it should make Emacs 'configure' faster on typical
21660         modern hosts.  Problem discovered when importing the latest gnulib
21661         to an Emacs test version.
21662         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4.
21664 2012-01-28  Bruno Haible  <bruno@clisp.org>
21666         sys_time: Override 'struct timeval' on some native Windows platforms.
21667         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Test whether tv_sec
21668         has the right type. Set REPLACE_STRUCT_TIMEVAL if not.
21669         (gl_HEADER_SYS_TIME_H_DEFAULTS): Initialize REPLACE_STRUCT_TIMEVAL.
21670         * lib/sys_time.in.h: Include <winsock2.h> also when 'struct timeval'
21671         needs to be overridden.
21672         (timeval): Override if REPLACE_STRUCT_TIMEVAL is set.
21673         * modules/sys_time (Makefile.am): Substitute REPLACE_STRUCT_TIMEVAL.
21674         * tests/test-sys_select.c: Check that the tv_sec member has the same
21675         size as a 'time_t'.
21676         * tests/test-sys_time.c: Likewise.
21677         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): If REPLACE_STRUCT_TIMEVAL
21678         is set, set also REPLACE_GETTIMEOFDAY.
21679         * lib/gettimeofday.c (gettimeofday): If 'struct timeval' is overridden,
21680         convert the resulting 'struct timeval' before returning.
21681         * lib/select.c: Include <sys/time.h>.
21682         (select, timeval): Undefine at the right place.
21683         * modules/select (Depends-on): Add sys_time.
21684         * doc/posix-headers/sys_time.texi: Mention the problem with tv_sec on
21685         some Windows platforms.
21686         Reported by Marc-André Lureau <marcandre.lureau@redhat.com>.
21688 2012-01-28  Marc-André Lureau  <marcandre.lureau@redhat.com>  (tiny change)
21690         accept4, fcntl, socket modules: Avoid warnings on x86_64 mingw64.
21691         * lib/accept4.c (accept4): Use intptr_t to convert handle pointer to
21692         an integer.
21693         * lib/fcntl.c (dupfd): Likewise.
21694         * lib/w32sock.h (SOCKET_TO_FD): Likewise.
21696 2012-01-28  Bruno Haible  <bruno@clisp.org>
21698         fcntl: Avoid compilation error on native Windows.
21699         * modules/fcntl (Depends-on): Add 'close'.
21701 2012-01-28  Marc-André Lureau  <marcandre.lureau@redhat.com>  (tiny change)
21703         select, poll, isatty: Avoid warnings on x86_64 mingw64.
21704         * lib/select.c (IsConsoleHandle): Use intptr_t to convert handle
21705         pointer to an integer.
21706         * lib/poll.c (IsConsoleHandle): Likewise.
21707         * lib/isatty.c (IsConsoleHandle): Likewise.
21709 2012-01-28  Jim Meyering  <meyering@redhat.com>
21711         doc: clarify README-release
21712         * top/README-release: Clarify: you should make a point to have
21713         the latest stable versions of build tools in your PATH, and the
21714         reference to buildreq is solely for its list of tool names, not
21715         for its minimal-functional version numbers.
21716         Prompted by discussion with Reuben Thomas and Gary V. Vaughan.
21718         maint.mk: use more readable (yet functionally equivalent) quoting
21719         It is common to quote a single quote in a single quoted string like
21720         this:  '...'\''...'.  Unless you know the idiom, that looks like
21721         gibberish, so prefer to double-quote the string when possible.
21722         Then you can use a more readable, lone single quote: "...'..."
21723         * top/maint.mk (sc_cast_of_argument_to_free): Quoting like this
21724         "don't" is more readable than the equivalent 'don'\''t'.
21725         (sc_cast_of_x_alloc_return_value): Likewise.
21726         (sc_cast_of_alloca_return_value): Likewise.
21727         (sc_makefile_path_separator_check): Similar: use ":" in '...',
21728         rather than '\'':'\''.
21730 2012-01-27  Paul Eggert  <eggert@cs.ucla.edu>
21732         stdalign: relax _Alignof and tighten _Alignas test
21733         * m4/stdalign.m4 (gl_STDALIGN_H): Relax the _Alignof test,
21734         as it was too strict: alignof must divide offsetof, but it need
21735         not equal offsetof.  Inspired by Joseph S. Myers's comment
21736         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52023#c10>.
21737         Conversely, tighten the _Alignas test a bit, as the resulting
21738         alignment must be exactly 8.
21740 2012-01-27  Bruno Haible  <bruno@clisp.org>
21742         stdalign: Document the last change.
21743         * doc/posix-headers/stdalign.texi: Mention GCC bug 52023.
21745 2012-01-27  Paul Eggert  <eggert@cs.ucla.edu>
21747         stdalign: check that alignof and offsetof are consistent
21748         * m4/stdalign.m4 (gl_STDALIGN_H): Check for GCC bug 52023.
21749         Problem reported for gnulib by Richard W.M. Jones in
21750         <http://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00340.html>.
21752 2012-01-27  Jim Meyering  <meyering@redhat.com>
21754         update-copyright: accept new option: UPDATE_COPYRIGHT_USE_INTERVALS=2
21755         * build-aux/update-copyright: When UPDATE_COPYRIGHT_USE_INTERVALS=2,
21756         convert a sequence with gaps to the minimal containing range.
21757         For example, convert 2000, 2004-2007, 2009 to 2000-2009.
21758         * tests/test-update-copyright.sh: Test for this.
21759         The FSF confirmed it is ok to do this, assuming there is at
21760         least one significant change per year in the affected range:
21761         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29554/focus=29860
21763 2012-01-26  Bruno Haible  <bruno@clisp.org>
21765         pipe2: refine doc about thread-safety
21766         * doc/glibc-functions/pipe2.texi: Clarify the extent of the
21767         multithread-safety problem.
21768         * doc/glibc-functions/accept4.texi: Likewise.
21770 2012-01-26  Bruno Haible  <bruno@clisp.org>
21772         posix_spawn_file_actions_addopen: Fix 2012-01-08 commit.
21773         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN):
21774         In the test program, include <fcntl.h>, for O_RDONLY.
21776 2012-01-26  Eric Blake  <eblake@redhat.com>
21778         pipe2: document lack of thread-safety in replacement
21779         * doc/glibc-functions/pipe2.texi (pipe2): Mention thread safety
21780         issue in replacement.
21781         * doc/glibc-functions/accept4.texi (accept4): Likewise.
21782         Based on a report by Eric Wong.
21784 2012-01-24  Marc-André Lureau  <marcandre.lureau@redhat.com>  (tiny change)
21785             Bruno Haible  <bruno@clisp.org>
21787         malloca: Avoid warnings on x86_64 mingw64.
21788         * lib/malloca.c: Include <stdint.h>.
21789         (mmalloca, freea): Use uintptr_t to convert pointers to integers.
21790         * modules/malloca (Depends-on): Add stdint.
21791         * modules/relocatable-prog-wrapper (Depends-on): Likewise.
21793 2012-01-25  Paul Eggert  <eggert@cs.ucla.edu>
21795         obstack: remove __STDC__ conditionals
21796         * lib/obstack.h: Remove __STDC__ conditionals, as suggested by Joseph
21797         S. Myers in <http://cygwin.com/ml/libc-alpha/2012-01/msg00104.html>.
21798         This leaves lib/localcharset.c, m4/iconv.m4, and a confusing comment in
21799         m4/include_next.m4 as the only gnulib-maintained places that still
21800         refer to __STDC__.
21802 2012-01-24  Bruno Haible  <bruno@clisp.org>
21804         havelib: Modern quoting.
21805         * build-aux/config.rpath: Quote 'like this', not `like this', as per
21806         the recent change to the GNU coding standards.
21808 2012-01-24  Bruno Haible  <bruno@clisp.org>
21810         stdint: Improve support for Android.
21811         * lib/stdint.in.h: Test __ANDROID__, not __BIONIC__.
21812         Reported by Simon Josefsson <simon@josefsson.org>.
21814 2012-01-23  Paul Eggert  <eggert@cs.ucla.edu>
21816         doc: omit trailing empty lines from INSTALL etc.
21817         * doc/Makefile (INSTALL): Omit trailing empty lines.
21818         (INSTALL.ISO, INSTALL.UTF-8): Build from INSTALL, so that these also
21819         omit trailing empty lines.  This simplifies the build procedure.
21821 2012-01-23  Jim Meyering  <meyering@redhat.com>
21823         tests: avoid spurious warnings about gl_sockets_startup
21824         Fedora rawhide's gcc version 4.7.0 20120119 with -Wunused-value
21825         would warn about every use of "gl_sockets_startup (SOCKETS_1_1);"
21826         reporting a "statement with no effect".
21827         * tests/test-accept.c (main): Mark as "(void)".
21828         * tests/test-accept4.c (main): Likewise.
21829         * tests/test-bind.c (main): Likewise.
21830         * tests/test-connect.c (main): Likewise.
21831         * tests/test-getpeername.c (main): Likewise.
21832         * tests/test-getsockname.c (main): Likewise.
21833         * tests/test-getsockopt.c (main): Likewise.
21834         * tests/test-listen.c (main): Likewise.
21835         * tests/test-recv.c (main): Likewise.
21836         * tests/test-recvfrom.c (main): Likewise.
21837         * tests/test-send.c (main): Likewise.
21838         * tests/test-sendto.c (main): Likewise.
21839         * tests/test-setsockopt.c (main): Likewise.
21840         * tests/test-shutdown.c (main): Likewise.
21842 2012-01-21  Bruno Haible  <bruno@clisp.org>
21844         locale-fr.m4: Fix for Android.
21845         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Avoid compilation
21846         failure of the test program on Bionic libc.
21848 2012-01-21  Jim Meyering  <meyering@redhat.com>
21850         bootstrap: fail when bootstrap_post_import_hook fails
21851         Otherwise, it's far too easy to miss diagnostics emitted
21852         between gnulib-tool's output and that of running configure.
21853         * build-aux/bootstrap: Fail when bootstrap_post_import_hook fails.
21855 2012-01-17  Jim Meyering  <meyering@redhat.com>
21857         maint: enable sc_trailing_blank
21858         * build-aux/pmccabe.css: Remove trailing blanks.
21859         * doc/acl-cygwin.txt: Likewise.
21860         * doc/gnu-oids.texi: Likewise
21861         * cfg.mk: Enable sc_trailing_blank.
21862         Exempt build-aux/texinfo.tex and doc/Copyright/assign.future.manual.
21864 2012-01-17  Jim Meyering  <meyering@redhat.com>
21866         maint: enable sc_prohibit_openat_without_use
21867         * cfg.mk: Enable sc_prohibit_openat_without_use.
21868         Exempt lib/selinux-at.c.
21870 2012-01-17  Jim Meyering  <meyering@redhat.com>
21872         maint: enable sc_prohibit_cloexec_without_use
21873         * cfg.mk: Enable sc_prohibit_cloexec_without_use.
21874         * lib/dup-safer-flag.c: Don't include "cloexec.h".  Not needed.
21876 2012-01-17  Jim Meyering  <meyering@redhat.com>
21878         maint: enable sc_prohibit_intprops_without_use
21879         * cfg.mk: Enable sc_prohibit_intprops_without_use
21880         * tests/test-nanosleep.c: Don't include "intprops.h".  Not needed.
21882 2012-01-17  Jim Meyering  <meyering@redhat.com>
21884         maint: enable sc_prohibit_hash_pjw_without_use
21885         * cfg.mk: Enable sc_prohibit_hash_pjw_without_use.
21886         * top/maint.mk (sc_prohibit_hash_pjw_without_use): Adjust regexp
21887         to match any use of \<hash_pjw\>, i.e., not necessarily with a
21888         following " (".
21890 2012-01-17  Jim Meyering  <meyering@redhat.com>
21892         maint: enable double-word-prohibiting rule
21893         * cfg.mk (local-checks-to-skip): Enable sc_prohibit_doubled_word.
21894         Exempt three files.
21896 2012-01-17  Jim Meyering  <meyering@redhat.com>
21898         maint: remove empty lines at EOF, but excluding modules/*
21899         Apply syntax rules at home as well as abroad.  Most changes
21900         were induced by running this:
21901           make srcdir=. _build-aux=build-aux -f top/maint.mk \
21902             sc_prohibit_empty_lines_at_EOF | grep -v modules/ \
21903             | xargs perl -pi -0777 -e 's/\n\n+$/\n/'
21904         * cfg.mk (local-checks-to-skip): Enable sc_prohibit_empty_lines_at_EOF.
21905         Exempt modules/* and two binary files.
21906         Also exempt doc/INSTALL*, per request from Bruno Haible.
21907         * doc/regexprops-generic.texi: *Add* a newline at EOF.  There was none.
21908         * doc/Copyright/assign.translation.manual: Remove empty lines at EOF.
21909         * doc/Copyright/request-assign.future: Likewise.
21910         * doc/Copyright/request-disclaim.changes: Likewise.
21911         * doc/INSTALL: Likewise.
21912         * doc/INSTALL.ISO: Likewise.
21913         * doc/INSTALL.UTF-8: Likewise.
21914         * doc/acl-cygwin.txt: Likewise.
21915         * doc/acl-resources.txt: Likewise.
21916         * doc/fdl-1.2.texi: Likewise.
21917         * doc/fdl-1.3.texi: Likewise.
21918         * doc/fdl.texi: Likewise.
21919         * lib/argp-pin.c: Likewise.
21920         * lib/round.c: Likewise.
21921         * lib/unicase/u16-totitle.c: Likewise.
21922         * lib/unictype/block_test.c: Likewise.
21923         * lib/uninorm/canonical-decomposition.c: Likewise.
21924         * m4/README: Likewise.
21925         * m4/relocatable-lib.m4: Likewise.
21926         * tests/test-isnand-nolibm.c: Likewise.
21927         * tests/test-isnand.c: Likewise.
21928         * tests/uninorm/NormalizationTest.txt: Likewise.
21930 2012-01-17  Jim Meyering  <meyering@redhat.com>
21932         maint: add framework to run syntax-check rules against gnulib sources
21933         * cfg.mk: New file, to disable all currently-failing tests.
21934         We'll enable them one by one, as they are made to pass.
21935         * Makefile (sc_maint): New rule.
21937 2012-01-21  Bruno Haible  <bruno@clisp.org>
21939         stdint: Add support for Android.
21940         * lib/stdint.in.h: When included from Bionic <sys/types.h>, just
21941         include the system's <stdint.h>.
21942         Reported by Simon Josefsson <simon@josefsson.org>.
21944 2012-01-19  Jim Meyering  <meyering@redhat.com>
21946         bootstrap: add bootstrap_post_import_hook
21947         Bison does still need something like the gnulib_mk_hook whose
21948         invocation I had to remove along with slurp in commit 767ccd40.
21949         Technically, we could get along without it, but doing so would
21950         have required living with a warning and a mandatory post-bootstrap
21951         automake rerun.
21952         * build-aux/bootstrap (gnulib_mk_hook): Remove definition, too.
21953         (bootstrap_post_import_hook): New function.
21954         Invoke it after gnulib-tool --import and before autoreconf.
21956 2012-01-18  Jim Meyering  <meyering@redhat.com>
21958         gitlog-to-changelog: don't use "no_"-prefixed variable name
21959         * build-aux/gitlog-to-changelog (main): Use getopt's "!" attribute
21960         to enable both --cluster and --no-cluster.  Change variable name,
21961         s/\$no_cluster/$cluster/, and reverse usage to match.
21963         gitlog-to-changelog: use "||", not "or" in expressions
21964         * build-aux/gitlog-to-changelog (main): Use "||", not "or" in
21965         expressions.
21967 2012-01-17  Joel E. Denny  <joeldenny@joeldenny.org>
21969         gitlog-to-changelog: new option --no-cluster
21970         * build-aux/gitlog-to-changelog: New option --no-cluster, disables
21971         clustering of adjacent commit messages.
21973 2012-01-17  Jim Meyering  <meyering@redhat.com>
21975         maint: spell file systems with two words, not one
21976         * m4/ls-mntd-fs.m4 (MOUNTED_INTERIX_STATVFS): Spell file systems with
21977         two words, not one.
21979 2012-01-16  Jim Meyering  <meyering@redhat.com>
21981         bootstrap: add a FIXME comment to ensure we eventually remove the hack
21982         * build-aux/bootstrap (gnulib_tool_options): Add comment.
21984 2012-01-16  Eric Blake  <eblake@redhat.com>
21986         bootstrap: cater to autoconf 2.59
21987         * build-aux/bootstrap (AUTORECONF): Work even when --no-recursive
21988         is not available.
21990         bootstrap: properly check for libtool
21991         * build-aux/bootstrap (libtoolize): Also run libtool when older
21992         usage is detected.
21994 2012-01-15  Bruno Haible  <bruno@clisp.org>
21996         Improve support for MSVC 9.
21997         * lib/unistd.in.h: Include <io.h> when needed to avoid redefinition
21998         clashes on MSVC.
21999         * lib/fcntl.in.h: Likewise.
22000         * lib/stdlib.in.h: Likewise.
22001         * lib/sys_stat.in.h: Likewise.
22003 2011-01-15  Stefano Lattarini  <stefano.lattarini@gmail.com>
22005         gnupload: we hold the master copy of this script now
22006         For motivation and more information, see:
22007         <http://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00222.html>
22008         * build-aux/gnupload: Make it clear in the heading comments that the
22009         master copy of this file is maintained by gnulib.  Since we are at
22010         it, bump its copyright year and ...
22011         ($scriptversion): ... the date in its version.
22012         ($usage): Patches and bug reports should be sent to the gnulib list,
22013         not the automake one.
22014         * config/srclist.txt: Don't try to sync 'gnupload' from automake
22015         anymore.
22017 2012-01-15  Bruno Haible  <bruno@clisp.org>
22019         Fix module 'random'.
22020         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether random, srandom,
22021         initstate, setstate are declared.
22023 2012-01-14  Bruno Haible  <bruno@clisp.org>
22025         Tests for module 'random'.
22026         * modules/random-tests: New file.
22027         * tests/test-random.c: New file, based on tests/test-random_r.c.
22029         New module 'random'.
22030         * lib/stdlib.in.h (random, srandom, initstate, setstate): New
22031         declarations.
22032         * lib/random.c: New file, based on glibc/stdlib/random.c.
22033         * m4/random.m4: New file.
22034         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RANDOM,
22035         HAVE_RANDOM.
22036         * modules/stdlib (Makefile.am): Substitute GNULIB_RANDOM, HAVE_RANDOM.
22037         * modules/random: New file.
22038         * config/srclist.txt: Add an entry for random.c.
22039         * doc/posix-functions/random.texi: Mention the 'random' module.
22040         * doc/posix-functions/initstate.texi: Likewise.
22041         * doc/posix-functions/setstate.texi: Likewise.
22042         * doc/posix-functions/srandom.texi: Likewise.
22044 2012-01-12  Bruno Haible  <bruno@clisp.org>
22046         random_r: Use common idioms.
22047         * lib/random_r.c: Include <stdlib.h> first.
22049         random_r: Override incompatible API on AIX, OSF/1.
22050         * lib/stdlib.in.h (random_r, srandom_r, initstate_r, setstate_r):
22051         Override the system function if REPLACE_RANDOM_R is 1.
22052         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Require AC_CANONICAL_HOST. On AIX
22053         and OSF/1, set REPLACE_RANDOM_R.
22054         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_RANDOM_R.
22055         * modules/stdlib (Makefile.am): Substitute REPLACE_RANDOM_R.
22056         * modules/random_r (configure.ac): Test REPLACE_RANDOM_R.
22057         * doc/glibc-functions/initstate_r.texi: Mention the AIX, OSF/1 problem.
22058         * doc/glibc-functions/random_r.texi: Likewise.
22059         * doc/glibc-functions/setstate_r.texi: Likewise.
22061         random_r: Support for MSVC 9.
22062         * lib/random_r.c: Include stdint.h, not inttypes.h.
22064 2012-01-12  Eric Blake  <eblake@redhat.com>
22066         inet_ntop: guard extra work by IF_LINT
22067         * lib/inet_ntop.c (inet_ntop6): Mark spurious initialization, for
22068         better code generation when not checking for warnings.
22069         Suggested by Paul Eggert and Jim Meyering.
22071         strptime: fix regression on mingw
22072         * lib/strptime.c (__strptime_internal) [!_LIBC && !HAVE_TM_GMTOFF]:
22073         Fix regression.  Reported by Bruno Haible.
22075 2012-01-11  Reuben Thomas  <rrt@sc3d.org>
22076             Bruno Haible  <bruno@clisp.org>
22078         copy-file: add error-code-returning variant.
22079         * lib/copy-file.h (GL_COPY_ERR_*): New enumeration items.
22080         (qcopy_file_preserving): New declaration.
22081         * lib/copy-file.c (qcopy_file_preserving): Renamed from
22082         copy_file_preserving. Change return type to 'int'. Don't emit an error
22083         message here.
22084         (copy_file_preserving): New function.
22085         * tests/test-copy-file.c: Include <stdlib.h>.
22086         (main): Test qcopy_file_preserving if the environment variable
22087         NO_STDERR_OUTPUT is set.
22088         * tests/test-copy-file-1.sh: Invoke test-copy-file.sh a second time,
22089         with NO_STDERR_OUTPUT
22090         * tests/test-copy-file-2.sh: Likewise.
22092 2012-01-10  Bruno Haible  <bruno@clisp.org>
22094         copy-file: Use 'quote' module consistently.
22095         * lib/copy-file.c (copy_file_preserving): Use quote().
22097         copy-file: Refactor.
22098         * lib/copy-file.c: Include quote.h.
22099         (copy_file_preserving): Call qcopy_acl instead of copy_acl. Emit error
22100         message here.
22101         * modules/copy-file (Depends-on): Add quote.
22103         acl: Export qcopy_acl.
22104         * lib/acl.h (qcopy_acl): New declaration.
22105         * lib/copy-acl.c (qcopy_acl): Make non-static.
22107         acl: Rename a local variable.
22108         * lib/set-mode-acl.c (set_acl): Use same variable name as in copy_acl.
22110         acl: Align return values of copy_acl and qcopy_acl.
22111         * lib/copy-acl.c (copy_acl): Return the same value as qcopy_acl,
22112         maybe < -1.
22114 2012-01-11  Eric Blake  <eblake@redhat.com>
22116         strptime: silence gcc warnings
22117         * lib/strptime.c (__strptime_internal) [!_NL_CURRENT],
22118         [!_LIBC && !HAVE_TM_GMTOFF]: Avoid unused variables.
22119         Reported by Daniel P. Berrange.
22121         inet_ntop: silence gcc warning
22122         * lib/inet_ntop.c (inet_ntop6): Initialize best.base.
22123         Reported by Daniel P. Berrange.
22125 2012-01-11  Dmitry V. Levin  <ldv@altlinux.org>
22127         getloadavg test: skip the test on GNU/Linux without /proc mounted
22128         GNU libc implements getloadavg(3) on Linux by parsing /proc/loadavg
22129         file.  When /proc is not mounted, it always fails with ENOENT.
22130         * tests/test-getloadavg.c (main): Treat ENOENT return code from
22131         getloadavg(3) the same way as ENOSYS and ENOTSUP.
22133 2012-01-10  Bruno Haible  <bruno@clisp.org>
22135         regex: Avoid link error on MSVC 9.
22136         * modules/regex (Depends-on): Add wctype.
22138 2012-01-10  Bruno Haible  <bruno@clisp.org>
22140         doc: Mention --with-tests option.
22141         * gnulib-tool (func_usage): Suggest --with-tests for --test etc.
22142         * doc/gnulib.texi (Extra tests modules): Mention the need to pass
22143         --with-tests.
22144         Reported by Reuben Thomas.
22146 2012-01-10  Reuben Thomas  <rrt@sc3d.org>
22148         users.txt: order package names lexicographically.
22149         * users.txt: Order package names lexicographically.
22151 2012-01-10  Jim Meyering  <meyering@redhat.com>
22153         maint.mk: fix description in comment
22154         * top/maint.mk (require_exactly_one_NL_at_EOF_): Fix comment.
22156         ignore-value: remove deprecated ignore_ptr function
22157         * lib/ignore-value.h (ignore_ptr): Remove deprecated function.
22158         * NEWS: Note this.
22160 2012-01-09  Jim Meyering  <meyering@redhat.com>
22162         test-init.sh: avoid a subshell
22163         * tests/test-init.sh: Remove protective subshell.
22164         Suggested by Bernhard Voelker.  While a subshell is normally
22165         required to protect against older shells (Solaris, FreeBSD) that
22166         warn about a missing program before performing redirection, the
22167         shell-selection tests performed by init.sh probably exclude any
22168         offending shell.
22170 2012-01-08  Bruno Haible  <bruno@clisp.org>
22172         setlocale tests: Avoid test failure on Solaris 11 2011-11.
22173         * tests/test-setlocale2.sh: Use 'env' to set the LC_ALL environment
22174         variable.
22176 2012-01-08  Bruno Haible  <bruno@clisp.org>
22178         posix_spawn_file_actions_addopen: Work around Solaris 11 2011-11 bug.
22179         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
22180         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN.
22181         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN): New
22182         macro.
22183         * lib/spawn.in.h (posix_spawn_file_actions_addopen): Test
22184         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN, not REPLACE_POSIX_SPAWN.
22185         * lib/spawn_faction_addopen.c: Add workaround implementation if
22186         HAVE_WORKING_POSIX_SPAWN.
22187         * modules/spawn (Makefile): Substitute
22188         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN.
22189         * modules/posix_spawn_file_actions_addopen (configure.ac): Invoke
22190         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN. Test
22191         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN, not REPLACE_POSIX_SPAWN.
22192         (Depends-on): Update conditions.
22193         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
22194         the Solaris 11 bug.
22196 2012-01-08  Bruno Haible  <bruno@clisp.org>
22198         posix_spawn_file_actions_adddup2: Work around Solaris 11 2011-11 bug.
22199         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
22200         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2.
22201         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2): New
22202         macro.
22203         * lib/spawn.in.h (posix_spawn_file_actions_adddup2): Test
22204         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2, not REPLACE_POSIX_SPAWN.
22205         * lib/spawn_faction_adddup2.c: Add workaround implementation if
22206         HAVE_WORKING_POSIX_SPAWN.
22207         * modules/spawn (Makefile): Substitute
22208         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2.
22209         * modules/posix_spawn_file_actions_adddup2 (configure.ac): Invoke
22210         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2. Test
22211         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2, not REPLACE_POSIX_SPAWN.
22212         (Depends-on): Update conditions.
22213         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
22214         the Solaris 11 bug.
22216 2012-01-08  Bruno Haible  <bruno@clisp.org>
22218         posix_spawn_file_actions_addclose: Work around Solaris 11 2011-11 bug.
22219         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
22220         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE.
22221         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Define
22222         HAVE_WORKING_POSIX_SPAWN.
22223         (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE): New macro.
22224         * lib/spawn.in.h (posix_spawn_file_actions_addclose): Test
22225         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE, not REPLACE_POSIX_SPAWN.
22226         * lib/spawn_faction_addclose.c: Add workaround implementation if
22227         HAVE_WORKING_POSIX_SPAWN.
22228         * modules/spawn (Makefile): Substitute
22229         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE.
22230         * modules/posix_spawn_file_actions_addclose (configure.ac): Invoke
22231         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE. Test
22232         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE, not REPLACE_POSIX_SPAWN.
22233         (Depends-on): Update conditions.
22234         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
22235         the Solaris 11 bug.
22237 2012-01-08  Bruno Haible  <bruno@clisp.org>
22239         doc: Update for Solaris 11 2011-11.
22240         * doc/*/*.texi: Mention Solaris 11 2011-11 where appropriate.
22241         * m4/printf.m4: Update comments.
22243 2012-01-08  Bruno Haible  <bruno@clisp.org>
22245         mktime: Avoid compilation error on Solaris 11.
22246         * lib/mktime.c (WRAPV): Define to 0 on all non-glibc systems.
22248 2012-01-08  Bruno Haible  <bruno@clisp.org>
22250         doc: Small fix.
22251         * doc/posix-headers/nl_types.texi: Correct platforms list.
22253 2012-01-08  Simon Josefsson  <simon@josefsson.org>
22255         Add lgpl-3.0 module.
22256         * MODULES.html.sh (Support for building documentation): Add
22257         lgpl-3.0.
22258         * modules/lgpl-3.0: New file.
22260 2012-01-08  Jim Meyering  <meyering@redhat.com>
22262         select.c: indent with spaces, not TABs
22263         * lib/select.c (windows_poll_handle): Indent with spaces, not TABs.
22265 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
22267         quotearg: do not use grave accent for left quote
22268         * lib/quotearg.c (gettext_quote): Map "`" to "'" for
22269         locale_quoting_style.
22270         (quotearg_buffer_restyled): Fix example.
22271         * tests/test-quotearg-simple.c (results_g): Adjust test vectors.
22273 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
22275         quotearg: fall back to Unicode single quotes in UTF-8, GB-18030 locales
22276         Most programs do not have translation catalogs for English and much
22277         less separate catalogs for British and American English.  Drop the
22278         suggestion to translators about these two, and provide it
22279         automatically for Unicode locales.  Like most programs, even those
22280         using American English, we use single quotation marks.  This conflicts
22281         with the American typographic convention, but works better when you
22282         cite the entire error message within double quotes.  It also tries not
22283         to clash with established practice and with what non-gnulib programs
22284         will usually do.
22285         * lib/quotearg.c (gettext_quote): Hard-code U+2018 and U+2019 when
22286         using an UTF-8 or GB-18030 locale.  The list of other locales with
22287         quotes was provided by Bruno Haible.
22288         (quotearg_buffer_restyled): Adjust instructions to translators.
22289         * lib/quotearg.h (locale_quoting_style): Do not put an example in the
22290         text, since this would be wrong when using Unicode.
22291         * modules/quotearg: Depend on c-strcaseeq.
22293 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
22295         quotearg: fix Wikipedia link
22296         * lib/quotearg.c (quotearg_buffer_restyled): Fix link to Wikipedia.
22298 2012-01-07  Simon Josefsson  <simon@josefsson.org>
22300         Fix for mingw with MSVC9.
22301         * m4/ld-version-script.m4: Check that compiler rejects version
22302         scripts with syntax errors.  Reported by Bruno Haible
22303         <bruno@clisp.org>.
22305 2012-01-06  Bruno Haible  <bruno@clisp.org>
22307         Talk about "native Windows API", not "Woe32".
22308         * lib/accept4.c: Update comments to mention native Windows.
22309         * lib/execute.c: Likewise.
22310         * lib/fatal-signal.c: Likewise.
22311         * lib/localcharset.c: Likewise.
22312         * lib/nanosleep.c: Likewise.
22313         * lib/nl_langinfo.c: Likewise.
22314         * lib/pclose.c: Likewise.
22315         * lib/pipe-filter-gi.c: Likewise.
22316         * lib/pipe-filter-ii.c: Likewise.
22317         * lib/pipe.c: Likewise.
22318         * lib/pipe2.c: Likewise.
22319         * lib/popen.c: Likewise.
22320         * lib/progreloc.c: Likewise.
22321         * lib/relocatable.c: Likewise.
22322         * lib/sigaction.c: Likewise.
22323         * lib/sigprocmask.c: Likewise.
22324         * lib/spawn-pipe.h: Likewise.
22325         * lib/spawn-pipe.c: Likewise.
22326         * lib/spawni.c: Likewise.
22327         * lib/stat-time.h: Likewise.
22328         * lib/w32spawn.h: Likewise.
22329         * tests/test-isatty.c: Likewise.
22330         * lib/config.charset: More comments.
22331         * doc/gnulib-intro.texi: Mention native Windows.
22332         * doc/posix-functions/_Exit_C99.texi: Likewise.
22333         * doc/posix-headers/fcntl.texi: Likewise.
22335 2012-01-06  Guillem Jover  <guillem@hadrons.org>  (tiny change)
22337         argp: Avoid crash if translator uses % characters in a translation.
22338         * lib/argp-parse.c (argp_version_parser): Use a "%s" format string.
22339         Reported by Mats Erik Andersson <gnu@gisladisker.se>.
22341 2012-01-06  Paul Eggert  <eggert@cs.ucla.edu>
22343         doc: C11 and C++11 are now official
22344         * doc/posix-headers/assert.texi, doc/posix-headers/stdalign.texi:
22345         * doc/verify.texi, stdalign.in.h, verify.h, m4/gnulib-common.m4:
22346         * m4/stdalign.m4, modules/assert-h, modules/snippet/_Noreturn:
22347         * modules/stdalign:
22348         Replace references to draft C1X to C11, and to draft C++0X to C++11.
22350 2012-01-06  Bruno Haible  <bruno@clisp.org>
22352         uc-is-grapheme-break tests: Tweak.
22353         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Fix an error
22354         message.
22356 2012-01-06  Bruno Haible  <bruno@clisp.org>
22358         test-init.sh: correct the test for diff -u
22359         * tests/test-init.sh: Also redirect stdout to /dev/null.
22361 2012-01-05  Paul Eggert  <eggert@cs.ucla.edu>
22363         Use ', not `, for quoting output.
22364         * build-aux/announce-gen (usage, sizes, print_news_deltas)
22365         (print_changelog_deltas, get_tool_versions, main program):
22366         * build-aux/git-version-gen:
22367         * build-aux/gitlog-to-changelog (usage, parse_amend_file):
22368         * build-aux/move-if-change (help):
22369         * build-aux/useless-if-before-free (usage, main program):
22370         * check-module (parse_module_file, usage)
22371         (find_included_lib_files, check_module):
22372         * lib/argmatch.c (main) [TEST]:
22373         * lib/argp-help.c (_help):
22374         * lib/getopt1.c (main) [TEST]:
22375         * lib/git-merge-changelog.c (usage):
22376         * lib/xstrtol-error.c (xstrtol_error):
22377         * m4/alloca.m4 (_AC_LIBOBJ_ALLOCA):
22378         * m4/argz.m4 (gl_FUNC_ARGZ):
22379         * m4/bison.m4 (gl_BISON):
22380         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU):
22381         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS):
22382         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
22383         * m4/fpending.m4 (gl_PREREQ_FPENDING):
22384         * m4/gc-random.m4 (gl_GC_RANDOM):
22385         * m4/intl.m4 (gt_CHECK_DECL):
22386         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK):
22387         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT)
22388         (AC_TYPE_UNSIGNED_LONG_LONG_INT):
22389         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS):
22390         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK):
22391         * m4/onceonly.m4 (AC_CHECK_FUNCS_ONCE):
22392         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION):
22393         * tests/test-dirname.c (main):
22394         * tests/test-getpass.c (main):
22395         * tests/test-iconvme.c (main):
22396         * tests/test-parse-datetime.c (LOG):
22397         * tests/test-xstrtoimax.sh:
22398         * tests/test-xstrtol.sh:
22399         * tests/test-xstrtoll.sh:
22400         * tests/test-xstrtoumax.sh:
22401         * tests/unigbrk/test-uc-is-grapheme-break.c (main):
22402         * top/GNUmakefile (abort-due-to-no-makefile):
22403         Quote 'like this', not `like this', as per the recent change to
22404         the GNU coding standards.
22406 2012-01-05  Bruno Haible  <bruno@clisp.org>
22408         strtoimax: Don't force a replacement on systems where intmax_t is int.
22409         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Use a different test if
22410         'intmax_t' is not larger than 'int'.
22411         Reported by Pádraig Brady <P@draigBrady.com>.
22413 2012-01-05  Bruno Haible  <bruno@clisp.org>
22415         doc: Mention NetBSD bugs.
22416         * doc/posix-functions/*printf.texi: Mention a NetBSD 5.1 bug.
22417         * doc/posix-functions/nl_langinfo.texi: Mention another NetBSD 5.1 bug.
22419 2012-01-05  Bruno Haible  <bruno@clisp.org>
22421         strtoumax tests: Enhance tests.
22422         * tests/test-strtoumax.c (main): Add tests for large values.
22424 2012-01-05  Bruno Haible  <bruno@clisp.org>
22426         strtoimax: Work around AIX 5.1 bug.
22427         * lib/inttypes.in.h (strtoimax): Allow overriding the system's
22428         definition.
22429         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Check against the AIX 5.1 bug.
22430         Set HAVE_STRTOIMAX.
22431         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Initialize
22432         REPLACE_STRTOIMAX.
22433         * modules/inttypes-incomplete (Makefile.am): Substitute
22434         REPLACE_STRTOIMAX.
22435         * modules/strtoimax (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
22436         (configure.ac): Test HAVE_STRTOIMAX, REPLACE_STRTOIMAX.
22437         (Depends-on): Update conditions.
22438         * tests/test-strtoimax.c (main): Add tests for large values.
22439         * doc/posix-functions/strtoimax.texi: Mention the AIX 5.1 bug.
22441 2012-01-05  Bruno Haible  <bruno@clisp.org>
22443         inttypes: Modernize.
22444         * lib/inttypes.in.h (strtoimax, strtoumax): Use the C++ safe idioms.
22445         * modules/inttypes-incomplete (Depends-on): Add snippet/c++defs.
22446         (Makefile.am): Update inttypes.h rule.
22448 2012-01-05  Jim Meyering  <meyering@redhat.com>
22450         init.sh: don't waste a subshell just to redirect stderr
22451         * tests/init.sh: In testing for diff -u and diff -c, use a
22452         stderr-redirecting exec inside `...` rather than a subshell.
22454         test-init.sh: avoid failure on HP-UX 11.00
22455         * tests/test-init.sh: Skip "diff -u"-comparing step when compare
22456         resolves to diff -c or cmp.  Reported by Bruno Haible.
22458 2012-01-05  Bruno Haible  <bruno@clisp.org>
22460         Tests for module 'strtoull'.
22461         * modules/strtoull-tests: New file.
22462         * tests/test-strtoull.c: New file, based on tests/test-strtoumax.c.
22464 2012-01-05  Bruno Haible  <bruno@clisp.org>
22466         Tests for module 'strtoll'.
22467         * modules/strtoll-tests: New file.
22468         * tests/test-strtoll.c: New file, based on tests/test-strtoimax.c.
22470 2012-01-05  Bruno Haible  <bruno@clisp.org>
22472         Tests for module 'strtoul'.
22473         * modules/strtoul-tests: New file.
22474         * tests/test-strtoul.c: New file, based on tests/test-strtoumax.c.
22476 2012-01-05  Bruno Haible  <bruno@clisp.org>
22478         Tests for module 'strtol'.
22479         * modules/strtol-tests: New file.
22480         * tests/test-strtol.c: New file, based on tests/test-strtoimax.c.
22482 2012-01-04  Jim Meyering  <meyering@redhat.com>
22484         test-init.sh: accommodate Solaris 5.10's different diff -u output
22485         * tests/test-init.sh: Also exempt @@ lines from the comparison
22486         of diff output, since Solaris 5.10 and GNU diff formats differ.
22487         Reported by Stefano Lattarini.
22489 2012-01-04  Paul Eggert  <eggert@cs.ucla.edu>
22491         test-posixtm: don't assume signed integer wraparound
22492         * tests/test-posixtm.c (main): Don't assume wraparound semantics
22493         after signed integer overflow.  Inspired by (though it may not
22494         fix) Bruno Haible's bug report in
22495         <http://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00066.html>.
22497         Spell out "Windows 9x" and "Windows XP".
22498         * lib/poll.c, lib/select.c: In comments, replace "Win9x" with
22499         "Windows 9x" and "WinXP" with "Windows XP".
22501 2012-01-04  Jim Meyering  <meyering@redhat.com>
22503         test-vc-list-files-cvs.sh: remove obsolete comment
22504         * tests/test-vc-list-files-cvs.sh: Remove obsolete comment about
22505         double exit.  Now that's all encapsulated via skip_ and Exit.
22507 2012-01-04  Bruno Haible  <bruno@clisp.org>
22509         Talk about "native Windows API", not "Win32".
22510         * lib/classpath.c: Update comments to mention native Windows.
22511         * lib/csharpexec.c: Likewise.
22512         * lib/dup2.c: Likewise.
22513         * lib/error.c: Likewise.
22514         * lib/fcntl.c: Likewise.
22515         * lib/filename.h: Likewise.
22516         * lib/findprog.c: Likewise.
22517         * lib/get-rusage-as.c: Likewise.
22518         * lib/get-rusage-data.c: Likewise.
22519         * lib/getpagesize.c: Likewise.
22520         * lib/javaexec.c: Likewise.
22521         * lib/msvc-inval.c: Likewise.
22522         * lib/msvc-nothrow.c: Likewise.
22523         * lib/nanosleep.c: Likewise.
22524         * lib/nonblocking.c: Likewise.
22525         * lib/printf-parse.c: Likewise.
22526         * lib/setlocale.c: Likewise.
22527         * lib/sigaction.c: Likewise.
22528         * lib/strerror_r.c: Likewise.
22529         * lib/tmpdir.c: Likewise.
22530         * lib/vasnprintf.c: Likewise.
22531         * lib/w32spawn.h: Likewise.
22532         * lib/waitpid.c: Likewise.
22533         * lib/stdio.in.h (fdopen, fopen, freopen): Likewise.
22534         * m4/locale-ar.m4: Likewise.
22535         * m4/locale-fr.m4: Likewise.
22536         * m4/locale-ja.m4: Likewise.
22537         * m4/locale-tr.m4: Likewise.
22538         * m4/locale-zh.m4: Likewise.
22539         * m4/printf.m4: Likewise.
22540         * tests/test-cloexec.c: Likewise.
22541         * tests/test-copy-acl.sh: Likewise.
22542         * tests/test-copy-file.sh: Likewise.
22543         * tests/test-file-has-acl.sh: Likewise.
22544         * tests/test-set-mode-acl.sh: Likewise.
22545         * tests/test-dup-safer.c: Likewise.
22546         * tests/test-dup2.c: Likewise.
22547         * tests/test-dup3.c: Likewise.
22548         * tests/test-fcntl.c: Likewise.
22549         * tests/test-nonblocking-pipe.h: Likewise.
22550         * tests/test-nonblocking-socket.h: Likewise.
22551         * tests/test-pipe.c: Likewise.
22552         * tests/test-pipe2.c: Likewise.
22553         * tests/test-spawn-pipe-child.c: Likewise.
22554         * doc/acl-resources.txt: Likewise.
22555         * lib/getaddrinfo.c (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
22556         * tests/test-poll.c (WINDOWS_NATIVE): Likewise.
22557         * tests/test-select.h (WINDOWS_NATIVE): Likewise.
22558         * lib/localcharset.c: Update comments to mention native Windows.
22559         (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
22560         * lib/localename.c: Likewise.
22561         * lib/progreloc.c: Likewise.
22562         * lib/relocatable.c: Likewise.
22563         * lib/poll.c (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
22564         (windows_compute_revents): Renamed from win32_compute_revents.
22565         (windows_compute_revents_socket): Renamed from
22566         win32_compute_revents_socket.
22567         * lib/select.c: Update comments to mention native Windows.
22568         (windows_poll_handle): Renamed from win32_poll_handle.
22569         * m4/threadlib.m4: Update comments to mention native Windows.
22570         (gl_THREADLIB_EARLY_BODY, gl_THREADLIB_BODY): Expect
22571         --enable-threads=windows instead of --enable-threads=win32. Set
22572         USE_WINDOWS_THREADS, not USE_WIN32_THREADS.
22573         * lib/glthread/lock.h: Update comments to mention native Windows.
22574         (USE_WINDOWS_THREADS): Renamed from USE_WIN32_THREADS.
22575         * lib/glthread/lock.c (USE_WINDOWS_THREADS): Renamed from
22576         USE_WIN32_THREADS.
22577         * lib/glthread/cond.h (USE_WINDOWS_THREADS): Likewise.
22578         * lib/glthread/cond.c (USE_WINDOWS_THREADS): Likewise.
22579         * lib/glthread/thread.h (USE_WINDOWS_THREADS): Likewise.
22580         * lib/glthread/thread.c (USE_WINDOWS_THREADS): Likewise.
22581         * lib/glthread/tls.h (USE_WINDOWS_THREADS): Likewise.
22582         * lib/glthread/tls.c (USE_WINDOWS_THREADS): Likewise.
22583         * lib/glthread/yield.h (USE_WINDOWS_THREADS): Likewise.
22584         * tests/test-cond.c (USE_WINDOWS_THREADS): Likewise.
22585         * tests/test-thread_create.c (USE_WINDOWS_THREADS): Likewise.
22586         * tests/test-lock.c (USE_WINDOWS_THREADS): Likewise.
22587         (TEST_WINDOWS_THREADS): Renamed from TEST_WIN32_THREADS.
22588         * tests/test-tls.c: Likewise.
22589         Rationale:
22590         Microsoft renamed the "Win32 API" to "Windows API", as it is available
22591         on both 32-bit and 64-bit Windows systems.
22592         But in gnulib, we treat Cygwin like a Unix platform, therefore the main
22593         line of distinction is between "native Windows" on one side and Unix/
22594         POSIX systems on the other side. More details in
22595         <https://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00027.html>.
22596         Suggested by Paul Eggert.
22598 2012-01-03  Bruno Haible  <bruno@clisp.org>
22600         isatty: Support for MSVC 9.
22601         * doc/posix-functions/isatty.texi: Mention the MSVC problem.
22602         * lib/isatty.c: Include <errno.h>, msvc-inval.h.
22603         (_isatty_nothrow): New function.
22604         (isatty): Use it instead of _isatty.
22605         (IsConsoleHandle): Add comment, from Paolo Bonzini.
22606         * lib/poll.c (IsConsoleHandle): Likewise.
22607         * lib/select.c (IsConsoleHandle): Likewise.
22608         * m4/isatty.m4 (gl_FUNC_ISATTY): Fix comment. Reported by Eli Zaretskii.
22609         (gl_PREREQ_ISATTY): New macro.
22610         * modules/isatty (Depends-on): Add msvc-inval.
22611         (configure.ac): Invoke gl_PREREQ_ISATTY.
22613 2012-01-03  Jim Meyering  <meyering@redhat.com>
22615         maint.mk: remove temporary transition aid from over 1.5 years ago
22616         * top/maint.mk (_prohibit_regexp): Remove definition whose sole
22617         purpose was to aid in the transition (avoiding silent malfunction)
22618         from that old name to the new _sc_search_regexp.  This shim was
22619         added by commit 219c504b.
22621         init.sh: do not try to accommodate compare arguments starting with "-"
22622         * tests/init.sh (compare_dev_null_): Do not try to accommodate
22623         compare arguments that start with "-".  Besides, we do not worry
22624         about this when invoking diff or cmp; why start now with sed?
22625         Using "--" to separate options from argument would trigger sed
22626         failure in at least Solaris 7, HP-UX 11.00, IRIX 6.5, FreeBSD 6.4,
22627         OpenBSD 4.9 and NetBSD 5.1.  Reported by Bruno Haible.
22629 2012-01-02  Bruno Haible  <bruno@clisp.org>
22631         Enhance tests for module 'isatty'.
22632         * modules/isatty-tests (Depends-on): Add pipe-posix.
22633         * tests/test-isatty.c: Include <fcntl.h>.
22634         (DEV_NULL): New macro.
22635         (main): Test the resut of isatty() also on regular files, pipes, and
22636         /dev/null.
22638         New module 'isatty'.
22639         * lib/unistd.in.h (isatty): New declaration.
22640         * lib/isatty.c: New file, based on an idea of
22641         Bastien Roucariès <roucaries.bastien@gmail.com>.
22642         * m4/isatty.m4: New file.
22643         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether isatty is declared.
22644         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ISATTY, REPLACE_ISATTY.
22645         * modules/unistd (Makefile.am): Substitute GNULIB_ISATTY,
22646         REPLACE_ISATTY.
22647         * modules/isatty: New file.
22648         * doc/posix-functions/isatty.texi: Mention the new module.
22649         Suggested by Paolo Bonzini.
22651 2012-01-02  Bruno Haible  <bruno@clisp.org>
22653         canonicalize: Tweak 2011-12-29 commit.
22654         * lib/canonicalize.c (canonicalize_filename_mode): Fix typo in comment.
22655         * lib/canonicalize.h (canonicalize_filename_mode): Update specification.
22657 2012-01-02  Jim Meyering  <meyering@redhat.com>
22659         gitlog-to-changelog: describe input syntax in --help output
22660         * build-aux/gitlog-to-changelog (usage) [SPECIAL SYNTAX]: New section.
22662         gitlog-to-changelog: fix typo in --help: show backslash before email @
22663         * build-aux/gitlog-to-changelog (usage): An "@" was backslash-escaped
22664         in sources, but not in actual output.
22666 2011-12-30  Jim Meyering  <meyering@redhat.com>
22668         gitlog-to-changelog: don't malfunction when name contains %-directive
22669         * build-aux/gitlog-to-changelog (main): Don't let a %-directive
22670         in a name string cause trouble.  E.g., with a user name of "%s",
22671         gitlog-to-changelog would fail with "Missing argument in sprintf at..."
22673 2011-12-30  Gary V. Vaughan  <gary@gnu.org>
22675         gitlog-to-changelog: Copyright-paperwork-exempt: yes == (tiny change)
22676         * build-aux/gitlog-to-changelog (main): Map the string, at beginning
22677         of line in a git commit log, "Copyright-paperwork-exempt: yes", to
22678         the "  (tiny change)" notation that is appended to the standard
22679         ChangeLog "date  name  email" header line.
22681 2012-01-01  Jim Meyering  <meyering@redhat.com>
22683         test-framework-sh: init.sh: fix "make dist" failure
22684         When using gnulib-tool's --with-tests option and any module that
22685         depends on test-framework-sh, "make dist" would fail due to the
22686         lack of init.sh *in lib/*.  The EXTRA_DIST += init.sh is required
22687         in the gltests directory, and not in the gllib/ directory.
22688         One way to work around that is to move the EXTRA_DIST += init.sh
22689         from the primary module to the -tests one:
22690         * modules/test-framework-sh-tests (EXTRA_DIST): Add init.sh here, ...
22691         * modules/test-framework-sh (Makefile.am): ...not here.
22692         Reported by Tom G. Christensen in
22693         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29519
22695         version-etc: update copyright year reported by --version
22696         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2012.
22698 2011-12-31  Pádraig Brady  <P@draigBrady.com>
22700         canonicalize: only stat() if required
22701         * lib/canonicalize.c (canonicalize_filename_mode):
22702         Avoid calling l?stat() when both CAN_MISSING,
22703         and CAN_NOLINKS are set, as we neither need
22704         to resolve symlinks or test component existence.
22706 2011-12-31  Paul Eggert  <eggert@cs.ucla.edu>
22708         doc: cover st_ino issues once; add OpenVMS etc.
22709         * doc/posix-functions/stat.texi (stat):
22710         * doc/posix-functions/lstat.texi (lstat):
22711         * doc/posix-functions/fstatat.texi (fstatat):
22712         * doc/posix-functions/fstat.texi (fstat):
22713         Move general 'struct stat' stuff to sys_stat.texi,
22714         leaving behind a pointer.
22715         * doc/posix-headers/sys_stat.texi (sys/stat.h):
22716         Merge duplicate info about 'struct stat' problems into here.
22717         Mention issues with OpenVMS, GNU/Linux NFS, NetApp, ClearCase,
22718         and suggest partial workarounds.
22720         same-inode: port to OpenVMS
22721         * lib/same-inode.h (SAME_INODE): Port to OpenVMS by checking all
22722         three st_ino values.
22724 2011-12-30  Pádraig Brady  <P@draigBrady.com>
22726         canonicalize: fix references to stat() and lstat()
22727         * lib/canonicalize.c (canonicalize_filename_mode):
22728         Ensure references always resolve to a replacement
22729         function if required (even via a macro).
22731 2011-12-30  Jim Meyering  <meyering@redhat.com>
22733         gitlog-to-changelog: remove a little duplication
22734         * build-aux/gitlog-to-changelog (main): Grep @lines once,
22735         rather than twice.
22737 2011-12-29  Pádraig Brady  <P@draigBrady.com>
22739         canonicalize: add support for not resolving symlinks
22740         * lib/canonicalize.h: Add the CAN_NOLINKS flag to
22741         indicate we don't want to follow symlinks.  Also
22742         provide CAN_MODE_MASK to aid setting these existing
22743         mutually exclusive values.
22744         * lib/canonicalize.c (canonicalize_filename_mode):
22745         Extract the flags from can_mode parameter, which
22746         are currently just used to select between stat()
22747         and lstat().  Also ensure that mutually exclusive
22748         values are flagged immediately as invalid.
22749         * tests/test-canonicalize.c: Verify symlinks are
22750         not followed, and that invalid flag combinations
22751         are diagnosed.
22753 2011-12-25  Jim Meyering  <meyering@redhat.com>
22755         gitlog-to-changelog: do not clump multi-paragraph entries
22756         Identical header lines (date,name,email+coauthors) are suppressed,
22757         thus putting all entries with those same characteristics under
22758         a single header.  However, when a log entry consists of two or
22759         more paragraphs, it may not be clear where it starts and ends.
22760         This change makes it so that such an entry is always separated
22761         from others by a header line, even when that header would
22762         otherwise be suppressed.
22763         * build-aux/gitlog-to-changelog: Implement the above.
22764         Inspired by a related request from Stefano Lattarini in
22765         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29456
22767 2011-12-25  Paul Eggert  <eggert@cs.ucla.edu>
22769         announce-gen: fix `cmd' typo in diagnostic
22770         * build-aux/announce-gen (print_changelog_deltas): Fix typo in
22771         diagnostic: a missing '$' meant that the command was not output.
22773 2011-12-23  Jim Meyering  <meyering@redhat.com>
22775         test-framework-sh: distribute init.sh
22776         * modules/test-framework-sh (EXTRA_DIST): Append init.sh.
22777         Otherwise, "make -C gnulib-tests check" (at least in grep) would
22778         fail due to the lack of init.sh.
22780         maint: remove explicit Files: tests/init.sh; depend on test-framework-sh
22781         * modules/atexit-tests: Rather than listing tests/init.sh,
22782         now that there's a module for it, simply depend on that new module.
22783         * modules/closein-tests: Likewise.
22784         * modules/exclude-tests: Likewise.
22785         * modules/getcwd-tests: Likewise.
22786         * modules/perror-tests: Likewise.
22787         * modules/pread-tests: Likewise.
22788         * modules/pwrite-tests: Likewise.
22789         * modules/vc-list-files-tests: Likewise.
22790         * modules/verify-tests: Likewise.
22791         * modules/xalloc-die-tests: Likewise.
22792         * modules/xstrtoimax-tests: Likewise.
22793         * modules/xstrtol-tests: Likewise.
22794         * modules/xstrtoll-tests: Likewise.
22795         * modules/xstrtoumax-tests: Likewise.
22796         * modules/yesno-tests: Likewise.
22798 2011-12-22  Jim Meyering  <meyering@redhat.com>
22800         test-framework-sh: add minimal tests of init.sh's compare function
22801         * modules/test-framework-sh-tests: New file.
22802         * tests/test-init.sh: New file.
22804         test-framework-sh: new module
22805         * modules/test-framework-sh: New file.
22806         * MODULES.html.sh (Support for maintaining and releasing projects):
22807         List it.
22809         init.sh: do not emit simulated diff output to stderr
22810         * tests/init.sh (compare_dev_null_): Print to stdout, not stderr.
22812 2011-12-22  Reuben Thomas  <rrt@sc3d.org>
22814         .gitignore: ignore gnulib.dvi and regex.info
22815         * doc/.gitignore:add gnulib.dvi and regex.info
22817 2011-12-22  Jim Meyering  <meyering@redhat.com>
22819         init.sh: correct previous change
22820         * tests/init.sh (compare): My previous change was wrong.
22821         Don't clobber "$?".  Spotted by Stefano Lattarini and Pádraig Brady.
22823         init.sh: avoid unwarranted test failure when using "set -e"
22824         * tests/init.sh (compare): Ignore nonzero exit from compare_dev_null_.
22825         Otherwise, in a test script that uses "set -e" (like many in vc-dwim)
22826         a use like "compare exp out" would get evoke an unconditional failure.
22828 2011-12-21  Alfred M. Szmidt  <ams@gnu.org>
22830         bootstrap: fix it to honor $ACLOCAL_FLAGS once again
22831         The 2011-12-17 change, commit 767ccd40, replaced a manual invocation
22832         of aclocal that used explicit $ACLOCAL_FLAGS with an invocation of
22833         autoreconf that did not.
22834         * build-aux/bootstrap: Use $ACLOCAL_FLAGS when invoking autoreconf.
22835         Reported by Mats Erik Andersson <gnu@gisladisker.se>.
22837 2011-12-17  Jim Meyering  <meyering@redhat.com>
22839         bootstrap: remove some now-unneeded code
22840         This script arose back when gnulib-tool was young.
22841         Since then, it has seen improvements that render much of this
22842         script unnecessary.  In particular, it can now make symlinks
22843         to the files it uses.  Also, I no longer see as much value in
22844         marking files as read-only via comments.
22845         If you relied on the symlink-creation feature of the preceding
22846         version of this script, you can get most of that functionality
22847         by adding the --symlink option to the definition of
22848         gnulib_tool_option_extras in your bootstrap.conf file.
22849         * build-aux/bootstrap (AUTOPOINT, AUTORECONF): Factor out definitions.
22850         Run autopoint and libtoolize *before* gnulib-tool.
22851         After it, run an abbreviated autoreconf, rather than a loop around
22852         all tools.
22853         (slirp, bt_mark_as_generated): Remove functions.
22855 2011-12-18  Paul Eggert  <eggert@cs.ucla.edu>
22857         ftoastr: fix typo
22858         * lib/ftoastr.h: Fix misspelling in comment.
22860 2011-12-18  Reuben Thomas  <rrt@sc3d.org>
22862         * top/README-release: fix punctuation.
22864 2011-12-17  Jim Meyering  <meyering@redhat.com>
22866         bootstrap: correct the recent buildreq change
22867         The 2011-12-07 commit, 39f5f1e4, omitted some '*'s, and thus
22868         had no effect.
22869         * build-aux/bootstrap (buildreq): Bracket each search term with
22870         "*...*", so that the shell "case" statement works as intended.
22871         Add comments.
22873 2011-12-17  Bernhard Voelker  <mail@bernhard-voelker.de>
22875         build: let bootstrap resort to wget when downloading .po files
22876         * build-aux/bootstrap (download_po_files): Fallback to wget when
22877         downloading the .po files via rsync fails.  This is necessary to
22878         bootstrap from behind a strict firewall.
22880 2011-12-15  Paul Eggert  <eggert@cs.ucla.edu>
22882         stdint: don't assume C++11 when compiling with g++
22883         Problem reported for glibc 2.14 and g++ by Alexander V. Lukyanov in
22884         <http://lists.gnu.org/archive/html/bug-gnulib/2011-12/msg00099.html>.
22885         * m4/stdint.m4 (gl_STDINT_H): Don't go to extra work to make it
22886         work also in C++ before C++11, as that improperly inhibits
22887         generating a substitute stdint.h for that case.
22889 2011-12-15  Paul Eggert  <eggert@cs.ucla.edu>
22891         alloca: protect comment from gnulib-tool
22892         * lib/alloca.c: Change "GCC version 2" to "GCC 2" in comment, so
22893         that gnulib-tool doesn't think it's a license, and munge it to
22894         say "GCC version 3".
22896 2011-12-15  Ludovic Courtès  <ludo@gnu.org>  (tiny change)
22898         localcharset: Use an absolute path in TESTS_ENVIRONMENT.
22899         * modules/localcharset (LOCALCHARSET_TESTS_ENVIRONMENT): Use
22900         $(abs_top_builddir) instead of $(top_builddir).
22902 2011-12-14  Alex Nelson  <ajnelson@cs.ucsc.edu>  (tiny change)
22904         strftime-tests: also test nanoseconds
22905         * tests/test-strftime.c (T): Add a test of %N.
22907 2011-12-13  Paul Eggert  <eggert@cs.ucla.edu>
22909         inttypes, stdint: add C++11 support
22910         C++11 says there's no need to define __STDC_CONSTANT_MACROS etc.
22911         when including inttypes.h and stdint.h.  Support this change to
22912         the standard.
22913         * doc/posix-headers/inttypes.texi (inttypes.h):
22914         * doc/posix-headers/stdint.texi (stdint.h): Document this.
22915         * lib/inttypes.in.h (__STDC_FORMAT_MACROS) [! __cplusplus]:
22916         Define if not defined already, for the benefit of pre-C++11 hosts.
22917         Define the standard format macros (e.g., PRId8) always.
22918         * lib/stdint.in.h (__STDC_CONSTANT_MACROS, __STDC_LIMIT_MACROS):
22919         Likewise, if __cpluspus.  Define the standard constant and limit
22920         macros (e.g., INT8_C, INT8_MAX) always.
22921         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Do not define
22922         GL_TRIGGER_STDC_LIMIT_MACROS or __STDC_LIMIT_MACROS; no longer needed.
22923         * m4/stdint.m4 (gl_STDINT_H): Update comments about these macros.
22924         * tests/test-inttypes.c (__STDC_LIMIT_MACROS, __STDC_CONSTANT_MACROS)
22925         (__STDC_FORMAT_MACROS): Do not define, since we assume C++11 API now.
22926         * tests/test-stdint.c (__STDC_LIMIT_MACROS, __STDC_CONSTANT_MACROS):
22927         Likewise.
22929 2011-12-12  Paul Eggert  <eggert@cs.ucla.edu>
22931         nonblocking tests: Fix test failure on Linux/PPC.
22932         Suggested by Prerna Saxena in
22933         <http://lists.gnu.org/archive/html/bug-gnulib/2011-12/msg00080.html>.
22934         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/PPC64]:
22935         Set to 1100000.
22937 2011-12-12  Jim Meyering  <meyering@redhat.com>
22939         argmatch: don't hard-code `' when listing valid option arguments
22940         * lib/argmatch.c (argmatch_valid): Don't hard-code `%s'.  Instead,
22941         use the quote function to add quotes.  Use fputs rather than
22942         fprintf for the format string with no format directive.
22944 2011-12-07  Eric Blake  <eblake@redhat.com>
22946         bootstrap: detect tools required by gnulib-tool
22947         * build-aux/bootstrap (buildreq): Provide minimum implicit
22948         dependencies.
22949         * DEPENDENCIES: Mention patch as a prereq.
22951 2011-12-04  Bruno Haible  <bruno@clisp.org>
22953         sethostname: Port to Windows platforms.
22954         * lib/sethostname.c: Provide an alternate implementation for Windows
22955         platforms.
22956         * tests/test-sethostname2.c (geteuid): Redefine on Cygwin.
22957         (main): Skip the test if sethostname() fails with EPERM. On Windows
22958         platforms, don't check the result of gethostname().
22960 2011-12-04  Bruno Haible  <bruno@clisp.org>
22961             Jim Meyering  <meyering@redhat.com>
22963         tests: Avoid spurious error message on platforms without mktemp program.
22964         * tests/init.sh (mktempd_): Run mktemp in a subcommand.
22966 2011-12-04  Bruno Haible  <bruno@clisp.org>
22968         sethostname: Fix documentation.
22969         * doc/glibc-functions/sethostname.texi: Move the Solaris problem to the
22970         "not fixed" section.
22972 2011-12-03  Bruno Haible  <bruno@clisp.org>
22974         gnulib-tool: Verify that the License field is present and non-empty.
22975         * gnulib-tool (func_get_license_raw): New function, extracted from
22976         func_get_license.
22977         (func_get_license): Use it. Warn if the module is not a test module and
22978         has no license.
22979         Suggested by Jim Meyering.
22981 2011-12-03  Bruno Haible  <bruno@clisp.org>
22983         sethostname tests: Fix link error on mingw.
22984         * tests/test-sethostname1.c: New file, extracted from
22985         tests/test-sethostname.c.
22986         * tests/test-sethostname2.c: New file, extracted from
22987         tests/test-sethostname.c.
22988         * tests/test-sethostname.c: Remove file.
22989         * modules/sethostname-tests (Files): Add tests/test-sethostname1.c,
22990         tests/test-sethostname2.c. Remove tests/test-sethostname.c.
22991         (Depends-on): Add gethostname.
22992         (Makefile.am): Compile both test-sethostname1 and test-sethostname2.
22993         Link the latter with $(GETHOSTNAME_LIB).
22995         sethostname tests: Fix compilation error on mingw.
22996         * tests/test-sethostname.c: Don't include <sys/types.h>.
22997         (geteuid): Use a dummy value without uid_t.
22998         * modules/sethostname-tests (Depends-on): Remove sys_types.
23000         sethostname tests: Avoid a gcc warning.
23001         * tests/test-sethostname.c (main): Remove an unused variable.
23003         Tweak last commit.
23004         * modules/sethostname-tests (Files): Sort by decreasing importance.
23005         (configure.ac): Check for geteuid.
23006         * tests/test-sethostname.c (main): Emit error messages to stderr. Skip
23007         the test when there's nothing to test. Drop an unnecessary cast.
23008         Improve an error message. Verify that the final sethostname() call
23009         succeeds.
23011 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
23013         Add a test suite for the sethostname module.
23014         * modules/sethostname-tests: New file.  A test program
23015         for the sethostname module.
23016         * tests/test-sethostname.c: Likewise.
23018 2011-12-03  Bruno Haible  <bruno@clisp.org>
23020         Tweak last commit.
23021         * lib/unistd.in.h (sethostname): Keep declarations in alphabetic order.
23022         Fix preprocessor directives indentation. Fix typos.
23023         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Keep alphabetic order.
23024         * modules/unistd (Makefile): Likewise.
23026 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
23028         Integrate the sethostname module into unistd.
23029         * lib/unistd.in.h: Integrate the SETHOSTNAME preprocessor handling
23030         into the unistd.h header.
23031         * m4/unistd_h.m4: Setup the autoconf handling for the SETHOSTNAME
23032         preprocessor directives.
23033         * modules/unistd: Setup the Makefile substitutions of the
23034         SETHOSTNAME preprocessor directives.
23036 2011-12-03  Bruno Haible  <bruno@clisp.org>
23038         Tweak last commit.
23039         * lib/sethostname.c: Don't include <string.h>.
23040         (sethostname): No need to copy the argument string to the stack. Don't
23041         call clearerr. Preserve errno when fprintf failed.
23042         * m4/sethostname.m4 (gl_FUNC_SETHOSTNAME): Comment about HOST_NAME_MAX.
23043         Don't invoke AC_REPLACE_FUNCS.
23044         * modules/sethostname (Link): Remove empty section.
23045         * doc/glibc-functions/sethostname.texi: Gnulib does not fix the ENOSYS
23046         failure problem.
23048 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
23050         New module 'sethostname'.
23051         * lib/sethostname.c (sethostname): New file.  Provide sethostname
23052         for systems that lack it.
23053         * m4/sethostname.m4 (gl_FUNC_SETHOSTNAME): New file.  Detection of
23054         sethostname declaration and function.
23055         * modules/sethostname: New file.  Define the sethostname module.
23057 2011-12-03  Bruno Haible  <bruno@clisp.org>
23059         Tweak last commit.
23060         * m4/gethostname.m4 (gl_PREREQ_HOST_NAME_MAX): Trim blank line.
23062 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
23064         Split the HOST_NAME_MAX detection into a separate m4 macro.
23065         * m4/gethostname.m4 (gl_PREREQ_HOST_NAME_MAX): Make this a separate
23066         macro so it can be used by the pending sethostname module.
23068 2011-12-03  Bruno Haible  <bruno@clisp.org>
23070         Fix module descriptions syntax.
23071         * modules/argv-iter (License): Fix syntax.
23072         * modules/di-set (License): Likewise.
23073         * modules/ino-map (License): Likewise.
23074         Reported by Stefano Lattarini <stefano.lattarini@gmail.com>.
23076 2011-12-02  Paul Eggert  <eggert@cs.ucla.edu>
23078         stdalign: port to Clang 3.0
23079         Problem reported by Simon Josefsson in
23080         <http://lists.gnu.org/archive/html/bug-gnulib/2011-12/msg00005.html>.
23081         * doc/posix-headers/stdalign.texi (stdalign.h): Mention Clang 3.0,
23082         which has <stdalign.h> but which does not define alignof.
23083         * m4/stdalign.m4 (gl_STDALIGN_H): Check for Clang 3.0's problem.
23085 2011-12-01  Eric Blake  <eblake@redhat.com>
23087         mktempd: silence dd usage
23088         * build-aux/mktempd (rand_bytes): Silence dd.
23090 2011-11-30  Simon Josefsson  <simon@josefsson.org>
23092         manywarnings: Don't mention gcc version in docstring.
23093         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Doc fix.  Suggested by
23094         Jim Meyering <meyering@redhat.com>.
23096 2011-11-30  Jim Meyering  <meyering@redhat.com>
23098         hash: mark a few floating point constants with "f" suffix
23099         * lib/hash.c (DEFAULT_GROWTH_THRESHOLD, DEFAULT_GROWTH_FACTOR)
23100         (DEFAULT_SHRINK_THRESHOLD, DEFAULT_SHRINK_FACTOR): Mark literal
23101         floating point constants with "f", since they're destined to be
23102         saved/used as "float"s.
23104 2011-11-29  Paolo Bonzini  <bonzini@gnu.org>
23106         float tests: Correct and re-enable assertion about LDBL_MIN_EXP.
23107         * tests/test-float.c (test_long_double): Correct and re-enable the
23108         assertion about LDBL_MIN_EXP that was disabled on 2011-08-31.
23110 2011-11-29  Matthew Wala  <wala1@illinois.edu>  (tiny change)
23112         Avoid subtracting two pointers that don't point into the same block.
23113         * lib/argp-help.c (hol_append): Reorder pointer subtractions so that
23114         only pointers into the same memory block are subtracted. We cannot
23115         assume that sizeof (ptrdiff_t) == sizeof (void *).
23117 2011-11-29  Eric Blake  <eblake@redhat.com>
23119         maint.mk: add syntax check for use of compare from init.sh
23120         * top/maint.mk (sc_prohibit_reversed_compare_failure): New rule,
23121         moved here from coreutils.
23123         manywarnings: drop -Wunsuffixed-float-constants
23124         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): C99 does not allow
23125         '1.0D', which is the only way to silence this warning for 'double'.
23127 2011-11-29  Jim Meyering  <meyering@redhat.com>
23129         hash: mark compute_bucket_size with the pure attribute
23130         * lib/hash.c (compute_bucket_size): Use _GL_ATTRIBUTE_PURE.
23132         quotearg, propername: correct pragma guard expression
23133         * lib/quotearg.c: Enable pragma for gcc-4.6 and newer, not 4.3 and newer.
23134         * lib/propername.c: Likewise.  Reported by Bernhard Voelker.
23136 2011-11-28  Jim Meyering  <meyering@redhat.com>
23138         propername: do not mark proper_name with the const attribute
23139         * lib/propername.h (proper_name): Do *not* mark as _GL_ATTRIBUTE_CONST,
23140         since it examines data pointed to by its parameter.
23141         * lib/propername.c (proper_name): Instead, add a pragma to suppress
23142         the suggestion from -Wsuggest-attribute=const.
23144         propername: mark one more function as const
23145         * lib/propername.h (proper_name): Mark as _GL_ATTRIBUTE_CONST.
23147 2011-11-27  Jim Meyering  <meyering@redhat.com>
23149         mark functions with const and pure attributes
23151         Mark functions per suggestions from gcc-4.6 when using these options:
23152         -Wsuggest-attribute=pure -Wsuggest-attribute=const.
23153         Use gnulib's _GL_ATTRIBUTE_PURE and _GL_ATTRIBUTE_CONST macros.
23154         Follow these guidelines: when possible, apply the attribute to
23155         an extern declaration, not to its definition.  Apply it to the
23156         definition only when the definition is static.
23157         * lib/argmatch.h (argmatch, argmatch_to_argument): Mark.
23158         * lib/argv-iter.h (argv_iter_n_args): Likewise.
23159         * lib/base64.h (isbase64): Likewise.
23160         * lib/basename-lgpl.c (last_component, base_len): Likewise.
23161         * lib/c-ctype.h (c_isascii, c_isalnum, c_isalpha): Likewise.
23162         (c_isblank, c_iscntrl, c_isdigit, c_islower, c_isgraph): Likewise.
23163         (c_isprint, c_ispunct, c_isspace, c_isupper, c_isxdigit): Likewise.
23164         (c_tolower, c_toupper): Likewise.
23165         * lib/c-strcase.h (c_strcasecmp, c_strncasecmp): Likewise.
23166         * lib/chdir-long.c (find_non_slash): Likewise.
23167         * lib/dirname.h (base_len, dir_len, last_component): Likewise.
23168         * lib/exclude.h (fnmatch_pattern_has_wildcards): Likewise.
23169         * lib/file-type.h (file_type): Likewise.
23170         * lib/filenamecat-lgpl.c (longest_relative_suffix): Likewise.
23171         * lib/filevercmp.c (verrevcmp): Likewise.
23172         * lib/freadahead.h (freadahead): Likewise.
23173         * lib/fts.c (fts_maxarglen): Likewise.
23174         * lib/hash-pjw.h (hash_pjw): Likewise.
23175         * lib/hash-triple.h (triple_hash_no_name, triple_compare_ino_str):
23176         * lib/hash.c (is_prime, next_prime): Likewise.
23177         * lib/hash.c (hash_get_n_buckets, hash_get_n_buckets_used): Likewise.
23178         (hash_get_n_entries, hash_get_max_bucket_length): Likewise.
23179         (hash_table_ok, hash_get_first, hash_string): Likewise.
23180         (compute_bucket_size): Likewise.
23181         * lib/i-ring.h (i_ring_empty): Likewise.
23182         * lib/isnan.c (isnanl): Likewise.
23183         * lib/math.h (isnanl, rpl_isnanl): Likewise.
23184         * lib/memcasecmp.h (memcasecmp): Likewise.
23185         * lib/memchr2.h (memchr2): Likewise.
23186         * lib/memcmp2.h (memcmp2): Likewise.
23187         * lib/parse-datetime.y (lookup_zone): Likewise.
23188         * lib/sockets.h (gl_sockets_startup, gl_sockets_cleanup)
23189         [!WINDOWS_SOCKETS]: Likewise.
23190         * lib/strnlen1.h (strnlen1): Likewise.
23191         * lib/uniwidth.in.h (uc_width): Likewise.
23192         * lib/quotearg.c: Add pragma to avoid unwarranted suggestion from
23193         gcc's -Wsuggest-attribute=pure for quoting_options_from_style.
23194         (quoting_options_from_style): Add a comment.
23195         * lib/propername.h (proper_name): Add a comment.
23197 2011-11-27  Bruno Haible  <bruno@clisp.org>
23199         Remove unused macros from !_LIBC code in glibc-borrowed files.
23200         * lib/fnmatch.c (STRCOLL): Remove macro.
23201         * lib/fnmatch_loop.c (STRCOLL): Remove undef.
23202         * lib/glob.c (__stat, __readdir64): Remove macros.
23203         * lib/tempname.c (__open64, __xstat64): Remove macros.
23204         Suggested by Paul Eggert.
23206 2011-11-27  Bruno Haible  <bruno@clisp.org>
23208         getcwd: Fix link error on MSVC 9.
23209         * modules/getcwd (Depends-on): Add readdir, rewinddir.
23211 2011-11-27  Bruno Haible  <bruno@clisp.org>
23213         Don't set REPLACE_FOO to 1 if HAVE_FOO is 0.
23214         * m4/opendir.m4 (gl_FUNC_OPENDIR): Don't set REPLACE_OPENDIR to 1 if
23215         HAVE_OPENDIR is 0.
23216         * m4/closedir.m4 (gl_FUNC_CLOSEDIR): Don't set REPLACE_CLOSEDIR to 1 if
23217         HAVE_CLOSEDIR is 0.
23218         * m4/dup2.m4 (gl_FUNC_DUP2): Don't set REPLACE_DUP2 to 1 if HAVE_DUP2
23219         is 0.
23220         * m4/dup3.m4 (gl_FUNC_DUP3): Update comments.
23222 2011-11-27  Bruno Haible  <bruno@clisp.org>
23224         getcwd: Fix bug from 2011-08-17.
23225         * m4/getcwd.m4 (gl_FUNC_GETCWD): Set REPLACE_GETCWD to 1 only on
23226         platforms that need it.
23227         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Consider a return
23228         code of 4 to be a failure, not a success. This ensures that
23229         REPLACE_GETCWD becomes 1 on OpenBSD 4.9 and NetBSD 5.1.
23231 2011-11-27  Bruno Haible  <bruno@clisp.org>
23233         binary-io tests: Avoid test failure on mingw when libtool is used.
23234         * tests/test-binary-io.c (main): Don't remove t-bin-out2.tmp here.
23235         Don't verify the size of t-bin-out1.tmp here.
23236         * tests/test-binary-io.sh: Verify it here.
23237         Reported by Simon Josefsson.
23239 2011-11-26  Bruno Haible  <bruno@clisp.org>
23241         Fix conflict between two instantiations of module 'unistd'.
23242         * gnulib-tool (func_emit_autoconf_snippet): Substitute
23243         ${include_guard_prefix} also in the autoconf snippet.
23244         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Don't set GNULIB_UNISTD_H_GETOPT.
23245         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Don't initialize
23246         GNULIB_UNISTD_H_GETOPT.
23247         * modules/getopt-posix (configure.ac): Set the
23248         GNULIB_${gl_include_guard_prefix}_UNISTD_H_GETOPT variable.
23249         * modules/getopt-gnu (configure.ac): Likewise.
23250         * modules/unistd (Makefile.am): Change the substitution value of
23251         GNULIB_UNISTD_H_GETOPT to depend on the include guard prefix.
23252         Reported by Simon Josefsson.
23254 2011-11-25  Bruno Haible  <bruno@clisp.org>
23256         pagealign_alloc: Doc and comments.
23257         * doc/posix-functions/posix_memalign.texi: Refer to the pagealign_alloc
23258         module.
23259         * lib/pagealign_alloc.c (pagealign_alloc): Add comment.
23261 2011-11-25  Jim Meyering  <meyering@redhat.com>
23263         test-update-copyright.sh: avoid false-positive failure
23264         * tests/test-update-copyright.sh: Use $TMP.? (not $TMP.*), to work
23265         around false positive failure on Cygwin/Windows.  The latter was
23266         matching erroneously-created files with names like
23267         update-copyright.test-ex.4.bak.  Reported by Simon Josefsson.
23269 2011-11-25  Simon Josefsson  <simon@josefsson.org>
23271         valgrind-tests.m4: Avoid breakage if valgrind on bash fails.
23272         * m4/valgrind-tests.m4: Check that the parameters that will be
23273         used works, not just a subset of them.  Reported by Bruno Haible
23274         <bruno@clisp.org>.
23276 2011-11-24  Jim Meyering  <meyering@redhat.com>
23278         test-stdalign.c: comment out long double tests
23279         * tests/test-stdalign.c: Don't try to reduce alignment of long double
23280         variables.  That provokes errors like this from gcc-4.7.0 20111124:
23281         error: '_Alignas' specifiers cannot reduce alignment of \
23282         'static_longdouble_alignas'.
23284 2011-11-22  Jim Meyering  <meyering@redhat.com>
23286         init.sh: make "compare /dev/null FILE" output more readable
23287         * tests/init.sh (compare_): Document the preferred order of arguments.
23288         (emit_diff_u_header_): New function.
23289         (compare_dev_null_): Emit a simulated diff, rather than just the
23290         contents of the unexpected file.  Suggestion from Bruno Haible.
23292 2011-11-21  Jim Meyering  <meyering@redhat.com>
23293             Eric Blake  <eblake@redhat.com>
23295         init.sh: work around OSF/1 5.1's mishandling of /dev/null
23296         * tests/init.sh: Make our compare function slightly more portable.
23297         Reported by Bruno Haible in
23298         http://thread.gmane.org/gmane.comp.gnu.grep.bugs/4020
23300 2011-11-21  Simon Josefsson  <simon@josefsson.org>
23302         * m4/gnulib-common.m4 (_Noreturn): Check that _MSC_VER is defined
23303         before using it, in code that ends up in config.h.
23305 2011-11-20  Bruno Haible  <bruno@clisp.org>
23307         getcwd: Work around getcwd bug on AIX 5..7.
23308         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Require
23309         AC_CANONICAL_HOST. Assign exit code 31 to the bug seen on AIX 5.1..7.1.
23310         Use a different value for gl_cv_func_getcwd_path_max. Move the
23311         definition of HAVE_PARTLY_WORKING_GETCWD from here...
23312         * m4/getcwd.m4 (gl_FUNC_GETCWD): ... to here. Invoke
23313         gl_FUNC_GETCWD_PATH_MAX also when $gl_cv_func_getcwd_null is 'no'.
23314         Define HAVE_MINIMALLY_WORKING_GETCWD.
23315         * lib/getcwd.c (__getcwd): Don't use the system's getcwd on platforms
23316         where it is not even minimally working, that is, on AIX.
23317         * tests/test-getcwd.c (test_long_name): Distinguish the same cases as
23318         m4/getcwd-path-max.m4.
23319         (main): Update exit code computation.
23320         * doc/posix-functions/getcwd.texi: Mention list of platforms where
23321         getcwd does not handle long file names.
23323 2011-11-20  Bruno Haible  <bruno@clisp.org>
23325         getcwd: Fix bug from 2009-09-10.
23326         * m4/getcwd.m4 (gl_FUNC_GETCWD): Treat "guessing yes" like "yes", not
23327         like "no".
23329 2011-11-20  Simon Josefsson  <simon@josefsson.org>
23331         * m4/manywarnings.m4: Add more warnings from gcc 4.6.2.
23333 2011-11-20  Bruno Haible  <bruno@clisp.org>
23335         fma tests: Avoid shadowing local variables.
23336         * tests/test-fma2.h (test_function): Reduce scope of x, y, z, result,
23337         expected.
23339 2011-11-20  Bruno Haible  <bruno@clisp.org>
23341         copysignf tests: Fix.
23342         * tests/test-copysignf.c: Fix signature check.
23344 2011-11-20  Bruno Haible  <bruno@clisp.org>
23346         fma: Remove unused code.
23347         * lib/fma.c (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): Remove
23348         unused macros.
23350 2011-11-20  Bruno Haible  <bruno@clisp.org>
23352         sethostname: Fix doc about AIX.
23353         * doc/glibc-functions/sethostname.texi: Drop mention that AIX 5.1 lacks
23354         sethostname; it has it.
23356         sethostname: Mention more portability problems.
23357         * doc/glibc-functions/sethostname.texi: Mention the missing declaration
23358         problem.
23359         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
23361 2011-11-19  Bruno Haible  <bruno@clisp.org>
23363         Depend on module fcntl-h when AT_FDCWD is used.
23364         * modules/utimens (Depends-on): Add fcntl-h.
23365         * modules/areadlinkat (Depends-on): Likewise.
23366         * modules/areadlinkat-with-size (Depends-on): Likewise.
23367         * modules/faccessat (Depends-on): Likewise.
23368         * modules/fchmodat (Depends-on): Likewise.
23369         * modules/fchownat (Depends-on): Likewise.
23370         * modules/getcwd (Depends-on): Likewise.
23371         * modules/mkdirat (Depends-on): Likewise.
23372         * modules/mkfifoat (Depends-on): Likewise.
23373         * modules/readlinkat (Depends-on): Likewise.
23374         * modules/symlinkat (Depends-on): Likewise.
23375         * modules/dup2-tests (Depends-on): Likewise.
23376         * modules/fdutimensat-tests (Depends-on): Likewise.
23377         * modules/futimens-tests (Depends-on): Likewise.
23379 2011-11-19  Bruno Haible  <bruno@clisp.org>
23381         euidaccess: Update a comment.
23382         * lib/euidaccess.c: Update comment about platforms with faccessat.
23384 2011-11-19  Bruno Haible  <bruno@clisp.org>
23386         openat: Fix file list.
23387         * modules/openat (Files): Remove lib/at-func.c.
23389 2011-11-19  Bruno Haible  <bruno@clisp.org>
23391         fstatat: Simplify.
23392         * lib/fstatat.c (AT_FUNC_NAME): Define as fstatat. On platforms where
23393         gnulib should define rpl_fstatat, there is a
23394         "#define fstatat rpl_fstatat" in <sys/stat.h>.
23396 2011-11-19  Bruno Haible  <bruno@clisp.org>
23398         Ensure 'inline' can be used in tests/test-utimens-common.h.
23399         * modules/fdutimensat-tests (configure.ac): Require AC_C_INLINE.
23400         * modules/futimens-tests (configure.ac): Likewise.
23401         * modules/utimens-tests (configure.ac): Likewise.
23402         * modules/utimensat-tests (configure.ac): Likewise.
23404 2011-11-19  Simon Josefsson  <simon@josefsson.org>
23406         * lib/hash.c (hash_insert): Use hash_insert_if_absent,
23407         not hash_insert0.
23408         (hash_insert_if_absent): Doc fix.
23410 2011-11-19  Simon Josefsson  <simon@josefsson.org>
23412         * m4/readline.m4 (gl_FUNC_READLINE): Check for readline/history.h.
23414 2011-11-18  Paul Eggert  <eggert@cs.ucla.edu>
23416         test-getcwd: disambiguate exit status
23417         * tests/test-getcwd.c (test_long_name): Return 0..7.
23418         (main): Exit with an unambiguous exit status.  The old
23419         code yielded a mysterious mixture of two failure codes.
23421         fstatat: fix configuration bug on mingw, OpenBSD 4, Solaris 8
23422         * lib/fstatat.c (AT_FUNC_NAME): Use HAVE_FSTAT, not
23423         HAVE_WORKING_FSTATAT_ZERO_FLAG, to decide whether to define
23424         rpl_fstatat or fstatat.  This should fix the other problem
23425         reported by Kai Habel in
23426         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00237.html>.
23427         A similar problem was reported for OpenBSD 4.6 by Mats Erik Andersson
23428         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00239.html>
23429         and I reproduced it on a Solaris 8 host we still have in production.
23431 2011-11-18  Jim Meyering  <meyering@redhat.com>
23433         hash: deprecate poorly-named hash_insert0: use hash_insert_if_absent
23434         * lib/hash.c (hash_insert_if_absent): Rename from hash_insert0.
23435         Add a sentence to the comment.
23436         (hash_insert0): New function that simply calls hash_insert_if_absent.
23437         * lib/hash.h (hash_insert_if_absent): Declare it.
23438         (hash_insert0): Add deprecation attribute.
23439         (_GL_ATTRIBUTE_DEPRECATED): Define.
23440         * lib/di-set.c (di_set_insert): Use hash_insert_if_absent,
23441         not hash_insert0.
23442         * NEWS: Mention it, even though it's not really an incompatible change.
23444 2011-11-18  Dagobert Michelsen  <dam@opencsw.org>  (tiny change)
23446         openat: avoid compilation failure due to lack of <errno.h> inclusion
23447         * lib/openat.c: Include <errno.h>.
23449 2011-11-17  Paul Eggert  <eggert@cs.ucla.edu>
23451         * modules/getcwd (Depends-on): Add fdopendir.
23452         This fixes one of the two problems reported by Kai Habel in
23453         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00237.html>.
23455         modules/crypto/gc-*: simplify dependencies and fix stdalign.h bug
23456         stdalign problem reported by Ian Beckwith in
23457         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00238.html>.
23458         * modules/crypto/gc-arcfour (Depends-on):
23459         Depend conditionally on crypto/arcfour.
23460         * modules/crypto/gc-arctwo (Depends-on):
23461         Depend conditionally on crypto/arctwo.
23462         * modules/crypto/gc-des (Depends-on):
23463         Depend conditionally on crypto/des.
23464         * modules/crypto/gc-hmac-md5 (Depends-on):
23465         Depend conditionally on crypto/hmac-md5.
23466         * modules/crypto/gc-hmac-sha1 (Depends-on):
23467         Depend conditionally on crypto/hmac-sha1.
23468         * modules/crypto/gc-md2 (Depends-on): Remove stdint, minmax.
23469         * modules/crypto/gc-md4 (Depends-on):
23470         Depend conditionally on crypto/md4.
23471         * modules/crypto/gc-md5 (Depends-on):
23472         Depend conditionally on crypto/md5.
23473         * modules/crypto/gc-rijndael (Depends-on):
23474         Depend conditionally on crypto/rijndael.
23475         * modules/crypto/gc-sha1 (Depends-on):
23476         Depend conditionally on crypto/sha1.
23477         * modules/crypto/gc-arcfour:
23478         * modules/crypto/gc-arctwo:
23479         * modules/crypto/gc-des:
23480         * modules/crypto/gc-hmac-md5:
23481         * modules/crypto/gc-hmac-sha1:
23482         * modules/crypto/gc-md2:
23483         * modules/crypto/gc-md4:
23484         * modules/crypto/gc-md5:
23485         * modules/crypto/gc-rijndael:
23486         * modules/crypto/gc-sha1:
23487         (Files, Depends-on, configure.ac): Remove now-unnecessary stuff,
23488         now that the conditional dependencies do the work for us.
23490 2011-11-17  Jim Meyering  <meyering@redhat.com>
23492         tests: factor st_ctime-comparison out of two headers
23493         * tests/test-utimens-common.h (ctime_compare): Define.
23494         * tests/test-futimens.h (test_futimens): Replace open-coded equivalent.
23495         * tests/test-lutimens.h (test_lutimens): Likewise.
23496         * tests/test-utimens.h (test_utimens): Likewise.
23498         test-getcwd: don't leave behind a confdir3/ directory upon interrupt
23499         Invoke the test program via an init.sh-using wrapper.
23500         * tests/test-getcwd.sh: New file.
23501         * modules/getcwd-tests (Files): Add it.
23502         (Makefile.am) [TESTS]: Invoke the shell script wrapper.
23504 2011-11-01  Gary V. Vaughan  <gary@gnu.org>
23506         gitlog-to-changelog: support multi-author commits.
23507         The FSF cares about keeping track of all authors of patches to its
23508         projects, but Git doesn't provide obvious support for multi-author
23509         changesets. Consensus seems to be forming around the use of extra
23510         Signed-off-by inspired lines in the log message formatted as
23511         `Co-authored-by: A U Thor <email@example.com>' for round-tripping
23512         multi-author commits between version control systems.
23513         * gitlog-to-changelog: Extract `Co-authored-by:' lines from the git
23514         log message and output in standard ChangeLog multi-author format.
23515         Reported by Peter Rosin <peda@lysator.liu.se>
23517 2011-11-15  Ben Walton  <bwalton@artsci.utoronto.ca>  (tiny change)
23518             Bruno Haible  <bruno@clisp.org>
23520         Fix some modules' file list.
23521         * modules/fstatat (Files): Add m4/lstat.m4.
23522         * modules/openat (Files): Likewise.
23523         * modules/unlinkat (Files): Likewise.
23525 2011-11-15  Gary V. Vaughan  <gary@gnu.org>
23527         maint.mk: fix tight-scope.mk generation in VPATH builds.
23528         * top/maint.mk (tight-scope.mk): Make sure to prefix file
23529         reference with $(srcdir) so that the file is found correctly even
23530         when running `make syntax-check' in a VPATH build.
23532 2011-11-13  Bruno Haible  <bruno@clisp.org>
23533             Jim Meyering  <meyering@redhat.com>
23535         Silence successful tests that use 'compare' on AIX, HP-UX, Solaris.
23536         * tests/init.sh (compare): Remove "No differences encountered" or
23537         synonymous output from the 'diff' program.
23539 2011-11-13  Bruno Haible  <bruno@clisp.org>
23541         Makefile: Tweak indentation.
23542         * Makefile: Use tab as first character in every line that contains rule
23543         commands.
23545 2011-11-13  Bruno Haible  <bruno@clisp.org>
23547         Syntax check for copyright statements.
23548         * check-copyright: New file.
23549         * Makefile (sc_check_copyright): New rule.
23551 2011-11-13  Simon Josefsson  <simon@josefsson.org>
23553         * build-aux/git-version-gen: Add --prefix to configure the tag
23554         match string.
23556 2011-11-13  Simon Josefsson  <simon@josefsson.org>
23558         * build-aux/git-version-gen: Add --help and --version.
23560 2011-11-12  Jim Meyering  <meyering@redhat.com>
23562         revamp the other test-exclude?.sh scripts to use init.sh, too
23563         * tests/test-exclude1.sh: Use init.sh.
23564         * tests/test-exclude2.sh: Likewise.
23565         * tests/test-exclude3.sh: Likewise.
23566         * tests/test-exclude4.sh: Likewise.
23567         * tests/test-exclude5.sh: Likewise.
23568         * tests/test-exclude6.sh: Likewise.
23569         * tests/test-exclude7.sh: Likewise.
23570         * tests/test-exclude8.sh: Likewise.
23571         * modules/exclude-tests (Files): List init.sh.
23573         test-exclude2.sh, test-exclude5.sh: fail if test-exclude fails
23574         These shell scripts ignored failure of the binary test-exclude,
23575         so making the latter return 77 didn't cause them to be skipped.
23576         * tests/test-exclude5.sh: Exit with test-exclude's error status
23577         when that program fails.  Revamp to use init.sh.
23578         * tests/test-exclude2.sh: Likewise.
23580         test-exclude: fix a typo
23581         * tests/test-exclude.c (main): Test for "leading_dir", not "leading-dir".
23583 2011-11-11  Bruno Haible  <bruno@clisp.org>
23585         obstack: Fix compilation error on MSVC 9.
23586         * lib/obstack.c (print_and_abort): Declare with _Noreturn specifier.
23588 2011-11-11  Jim Meyering  <meyering@redhat.com>
23590         test-exclude: skip tests rather than failing on deficient systems
23591         * tests/test-exclude.c (main): Skip tests that use FNM_CASEFOLD
23592         and FNM_LEADING_DIR on systems that lack the definitions.  This affects
23593         at least Solaris 9.  Reported and diagnosed by Dagobert Michelsen in
23594         http://thread.gmane.org/gmane.comp.gnu.grep.bugs/3947/focus=3950
23596 2011-11-10  Bruno Haible  <bruno@clisp.org>
23598         ptsname_r test: Avoid gcc warning on glibc systems.
23599         * tests/test-ptsname_r.c (null_ptr): New function.
23600         (test_errors): Use it.
23602 2011-11-10  Bruno Haible  <bruno@clisp.org>
23604         ptsname_r: Avoid compilation error on OSF/1 5.1.
23605         * lib/stdlib.in.h (ptsname_r): Override if REPLACE_PTSNAME_R is 1.
23606         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_PTSNAME_R.
23607         * m4/ptsname_r.m4 (gl_FUNC_PTSNAME_R): Set REPLACE_PTSNAME_R if the
23608         function is not declared or incompatibly declared.
23609         * modules/stdlib (Makefile.am): Substitute REPLACE_PTSNAME_R.
23610         * modules/ptsname_r (Depends-on, configure.ac): Update.
23611         * doc/glibc-functions/ptsname_r.texi: Mention the OSF/1 problems.
23613 2011-11-10  Bruno Haible  <bruno@clisp.org>
23615         fstatat: Make cross-compilation guess succeed everywhere except on AIX.
23616         * m4/fstatat.m4 (gl_FUNC_FSTATAT): Require AC_CANONICAL_HOST.
23617         When cross-compiling, guess yes on all platforms except AIX.
23618         Reported by Ludovic Courtès <ludo@gnu.org>.
23620 2011-11-09  Bruno Haible  <bruno@clisp.org>
23622         ptsname_r tests: Fix bugs.
23623         * tests/test-ptsname_r.c (test_errors): Change return type to 'void'.
23624         Fix ptsname_r calls. Reduce loop rounds to a reasonable amount.
23626 2011-11-09  Paul Eggert  <eggert@cs.ucla.edu>
23628         fstatat: work with cross-compilation
23629         Problem reported by Ludovic Courtès in
23630         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00136.html>.
23631         * m4/fstatat.m4 (gl_FUNC_FSTATAT): When cross-compiling, report
23632         "cross-compiling" and assume the bug is present.  Replace
23633         FSTATAT_ZERO_FLAG_BROKEN with HAVE_WORKING_FSTATAT_ZERO_FLAG with
23634         an inverted sense, to be more conservative about our assumptions.
23635         * lib/fstatat.c (rpl_fstatat): Adjust to renamed macro.
23637 2011-11-09  Bruno Haible  <bruno@clisp.org>
23639         Improve MODULES.html output.
23640         * modules/mkfifoat (Description): Use the word "function".
23641         * modules/readlinkat (Description): Likewise.
23642         * modules/symlinkat (Description): Likewise.
23644 2011-11-09  Eric Blake  <eblake@redhat.com>
23646         ptsname_r-tests: new test module
23647         * modules/ptsname_r-tests: New module.
23648         * tests/test-ptsname_r.c: New file.
23650         ptsname_r: new module
23651         * modules/ptsname_r: New module.
23652         * m4/ptsname_r.m4 (gl_FUNC_PTSNAME_R): New file.
23653         * lib/ptsname.c (__ptsname_r): Split...
23654         * lib/ptsname_r.c: ...into new file.
23655         * m4/stdlib_h.m4 (gl_STDLIB_H): Check for decl.
23656         (gl_STDLIB_H_DEFAULTS): Set witness defaults.
23657         * modules/stdlib (Makefile.am): Substitute witnesses.
23658         * lib/stdlib.in.h (ptsname_r): Declare it.
23659         * doc/glibc-functions/ptsname_r.texi (ptsname_r): Document it.
23660         * MODULES.html.sh (Misc): Likewise.
23661         * modules/ptsname (Depends-on): Alter dependency.
23662         * doc/posix-functions/ptsname.texi (ptsname): Mention new module.
23664 2011-11-09  Jim Meyering  <meyering@redhat.com>
23666         announce-gen: be more concise when there's only one URL+tarball
23667         * build-aux/announce-gen (get_tool_versions): When you distribute
23668         only one type of tarball, combine the first two "Here are..."
23669         sections and make the key-checking grammar independent of
23670         how many tarballs there are.
23672 2011-11-09  Eric Blake  <eblake@redhat.com>
23674         openpty: provide a stub on mingw
23675         * lib/pty.in.h (includes): Provide forward declarations.
23676         * lib/openpty.c (openpty) [mingw]: Provide ENOSYS stub.
23678         raise: fix mingw handling of SIGPIPE
23679         * lib/sigprocmask.c (_gl_raise_SIGPIPE): Provide a return value.
23681 2011-11-08  Bruno Haible  <bruno@clisp.org>
23683         More conditional dependencies.
23684         * modules/faccessat (Depends-on): Add conditions.
23685         * modules/fchmodat (Depends-on): Likewise.
23686         * modules/fchownat (Depends-on): Likewise.
23687         * modules/fstatat (Depends-on): Likewise.
23688         * modules/mkfifoat (Depends-on): Likewise.
23689         * modules/readlinkat (Depends-on): Likewise.
23690         * modules/symlinkat (Depends-on): Likewise.
23691         * modules/unlinkat (Depends-on): Likewise.
23692         * modules/utimensat (Depends-on): Likewise.
23693         * modules/mkdirat (Depends-on): Add sys_stat. Add conditions.
23694         * modules/linkat (Depends-on): Refine the conditions.
23695         * modules/renameat (Depends-on): Likewise.
23697 2011-11-08  Bruno Haible  <bruno@clisp.org>
23699         faccessat: Move AC_LIBOBJ invocation to module description.
23700         * m4/faccessat.m4 (gl_PREREQ_FACCESSAT): New macro.
23701         (gl_FUNC_FACESSAT): Don't test for access() here. Move AC_LIBOBJ
23702         invocation from here...
23703         * modules/faccessat (configure.ac): ... to here. Invoke
23704         gl_PREREQ_FACCESSAT.
23706 2011-11-08  Bruno Haible  <bruno@clisp.org>
23708         faccessat: Simplify autoconf macro.
23709         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Don't require gl_FUNC_OPENAT,
23710         gl_FUNC_EUIDACCESS.
23712 2011-11-08  Bruno Haible  <bruno@clisp.org>
23714         renameat: Fix dependencies.
23715         * modules/renameat (Depends-on): Add stdbool.
23717 2011-11-08  Bruno Haible  <bruno@clisp.org>
23719         mkfifoat: Fix module description.
23720         * modules/mkfifoat (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR,
23721         not gl_UNISTD_MODULE_INDICATOR.
23723 2011-11-08  Bruno Haible  <bruno@clisp.org>
23725         fstatat: Remove unused dependency.
23726         * modules/fstatat (Depends-on): Remove fstat.
23728 2011-11-08  Simon Josefsson  <simon@josefsson.org>
23730         GNUmakefile: behave when Makefile is missing.
23731         * top/GNUmakefile: Always initialize _build-aux and _autoreconf.
23733 2011-11-08  Bruno Haible  <bruno@clisp.org>
23735         openat: Conditionalize dependencies.
23736         * lib/openat.c: Reduce the scope of some #includes.
23737         * modules/openat (Depends-on): Add conditions.
23739 2011-11-07  Jim Meyering  <meyering@redhat.com>
23741         maint.mk: extract GPG key ID without using a temporary file
23742         * top/maint.mk (gpg_key_ID): Extract GPG key ID from signed tag, but
23743         without using a temporary file.  Based on a suggestion from Werner Koch
23744         in http://thread.gmane.org/gmane.comp.encryption.gpg.devel/16496
23746 2011-11-07  Eric Blake  <eblake@redhat.com>
23748         grantpt: fix typo
23749         * lib/stdlib.in.h (grantpt): Check correct function.
23751         maint.mk: silence new syntax check
23752         * top/maint.mk (sc_prohibit_dirent_without_use): Add missing @.
23754 2011-11-06  Bruno Haible  <bruno@clisp.org>
23756         Doc about floating-point and math API.
23757         * doc/posix-headers/float.texi: Mention problem with FLT_ROUNDS.
23758         * doc/posix-headers/math.texi: Mention problem with math_errhandling.
23760 2011-11-06  Bruno Haible  <bruno@clisp.org>
23762         stdalign tests: Skip the test when compiled by Sun C.
23763         * tests/test-stdalign.c (main): Skip the test on Sun C.
23765 2011-11-06  Bruno Haible  <bruno@clisp.org>
23767         ansi-c++-opt: Complete the 2011-06-05 change.
23768         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): When a C++ compiler is found but
23769         does not support namespaces, set the variable to "no", not to ":".
23771 2011-11-06  Paul Eggert  <eggert@cs.ucla.edu>
23773         * doc/posix-headers/stdalign.texi (stdalign.h): Mention Sun review ID.
23775 2011-11-06  Bruno Haible  <bruno@clisp.org>
23777         copysignl: Fix result for zero argument on HP-UX 11 with HP C.
23778         * lib/copysignl.c (compute_minus_zerol) [HP-UX]: New function.
23779         (minus_zerol) [HP-UX]: New macro.
23780         (unary_minus) [HP-UX]: New function.
23781         (copysignl) [HP-UX]: Use unary_minus function.
23783 2011-11-06  Bruno Haible  <bruno@clisp.org>
23785         ldexp, ldexpf, ldexpl: Enhance tests.
23786         * tests/test-ldexp.h: New file, combining code from tests/test-ldexp.c
23787         and tests/test-ldexpl.c.
23788         * tests/test-ldexpl.c: (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO,
23789         LDEXP, MIN_EXP, MAX_EXP): New macros.
23790         Include test-ldexp.h.
23791         (main): Just call test_function.
23792         * tests/test-ldexp.c: Include float.h, isnand-nolibm.h, minus-zero.h,
23793         infinity.h, nan.h.
23794         (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO, LDEXP, MIN_EXP,
23795         MAX_EXP): New macros.
23796         Include test-ldexp.h.
23797         (x, y): Remove variables.
23798         (main): Just call test_function.
23799         * tests/test-ldexpf.c: Include float.h, isnanf-nolibm.h, minus-zero.h,
23800         infinity.h, nan.h.
23801         (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO, LDEXP, MIN_EXP,
23802         MAX_EXP): New macros.
23803         Include test-ldexp.h.
23804         (x, y): Remove variables.
23805         (main): Just call test_function.
23806         * modules/ldexpl-tests (Files): Add tests/test-ldexp.h.
23807         * modules/ldexp-tests (Files): Add tests/test-ldexp.h,
23808         tests/minus-zero.h, tests/infinity.h, tests/nan.h.
23809         (Depends-on): Add isnand-nolibm, signbit, float.
23810         * modules/ldexpf-tests (Files): Add tests/test-ldexp.h,
23811         tests/minus-zero.h, tests/infinity.h, tests/nan.h.
23812         (Depends-on): Add isnanf-nolibm, signbit, float.
23814 2011-11-06  Bruno Haible  <bruno@clisp.org>
23816         math tests: Cosmetics.
23817         * tests/test-math-c++.cc: Reorder declarations.
23819 2011-11-05  Bruno Haible  <bruno@clisp.org>
23821         fma*: Simplify test.
23822         * tests/test-fma2.h (FORGIVE_GLIBC_BUG): Remove macro.
23823         (test_function): Remove all if (FORGIVE_GLIBC_BUG) statements.
23825         Tests for module 'fmal'.
23826         * modules/fmal-tests: New file.
23827         * tests/test-fmal1.c: New file.
23828         * tests/test-fmal2.c: New file.
23830         New module 'fmal'.
23831         * lib/math.in.h (fmal): New declaration.
23832         * lib/fmal.c: New file.
23833         * m4/fmal.m4: New file.
23834         * m4/math_h.m4 (gl_MATH_H): Test whethern fmal is declared.
23835         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMAL, HAVE_FMAL, REPLACE_FMAL.
23836         * modules/math (Makefile.am): Substitute GNULIB_FMAL, HAVE_FMAL,
23837         REPLACE_FMAL.
23838         * modules/fmal: New file.
23839         * doc/posix-functions/fmal.texi: Mention the new module and the various
23840         bugs.
23842         Tests for module 'fmaf'.
23843         * modules/fmaf-tests: New file.
23844         * tests/test-fmaf1.c: New file.
23845         * tests/test-fmaf2.c: New file.
23847         New module 'fmaf'.
23848         * lib/math.in.h (fmaf): New declaration.
23849         * lib/fmaf.c: New file.
23850         * m4/fmaf.m4: New file.
23851         * m4/math_h.m4 (gl_MATH_H): Test whethern fmaf is declared.
23852         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMAF, HAVE_FMAF, REPLACE_FMAF.
23853         * modules/math (Makefile.am): Substitute GNULIB_FMAF, HAVE_FMAF,
23854         REPLACE_FMAF.
23855         * modules/fmaf: New file.
23856         * doc/posix-functions/fmaf.texi: Mention the new module and the various
23857         bugs.
23859         Tests for module 'fma'.
23860         * modules/fma-tests: New file.
23861         * tests/test-fma1.c: New file.
23862         * tests/test-fma1.h: New file.
23863         * tests/test-fma2.c: New file.
23864         * tests/test-fma2.h: New file.
23866         New module 'fma'.
23867         * lib/math.in.h (fma): New declaration.
23868         * lib/fma.c: New file.
23869         * m4/fma.m4: New file.
23870         * m4/fegetround.m4: New file.
23871         * m4/math_h.m4 (gl_MATH_H): Test whethern fma is declared.
23872         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMA, HAVE_FMA, REPLACE_FMA.
23873         * modules/math (Makefile.am): Substitute GNULIB_FMA, HAVE_FMA,
23874         REPLACE_FMA.
23875         * modules/fma: New file.
23876         * doc/posix-functions/fma.texi: Mention the new module and the various
23877         bugs.
23879         Extend gl_MATHFUNC.
23880         * m4/mathfunc.m4 (gl_MATHFUNC): Accept an 4th parameter of INCLUDES.
23881         Support 'void' as argument type.
23882         * m4/rint.m4 (gl_FUNC_RINT): Update gl_MATHFUNC invocation.
23884 2011-11-05  Jim Meyering  <meyering@redhat.com>
23886         maint.mk: also prohibit inclusion of dirent.h without use
23887         * top/maint.mk (sc_prohibit_dirent_without_use): New rule.
23889 2011-11-05  Bruno Haible  <bruno@clisp.org>
23891         ldexpl tests: Avoid test failure on MSVC 9.
23892         * tests/test-ldexpl.c (main): Use a temporary variable for the expected
23893         value. Needed in order to enforce the conversion from a value greater
23894         than LDBL_MAX to Infinity.
23896 2011-11-05  Bruno Haible  <bruno@clisp.org>
23898         New modules 'at-internal', 'openat-h', split off from module 'openat'.
23899         * modules/at-internal: New file, extracted from modules/openat.
23900         * modules/openat-h: New file.
23901         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_OPENAT. Don't
23902         invoke gl_PREREQ_OPENAT and gl_MODULE_INDICATOR.
23903         * modules/openat (Description): Add reference to POSIX function.
23904         (Files): Remove lib/openat.h, lib/openat-proc.c.
23905         (Depends-on): Add at-internal, openat-h. Remove fdopendir, gettext-h,
23906         intprops, unistd.
23907         (configure.ac): Remove AC_LIBOBJ of openat-proc. Invoke
23908         gl_PREREQ_OPENAT, gl_MODULE_INDICATOR here. Invoke
23909         gl_FCNTL_MODULE_INDICATOR.
23910         (Include): Remove unistd.h, openat.h.
23911         * modules/areadlinkat (Files): Add lib/at-func.c.
23912         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
23913         openat-die, openat-h, save-cwd.
23914         * modules/areadlinkat-with-size (Files): Add lib/at-func.c.
23915         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
23916         openat-die, openat-h, save-cwd, unistd.
23917         * modules/faccessat (Files): Add lib/at-func.c, lib/openat-priv.h.
23918         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
23919         openat-h, save-cwd. Remove fcntl-h, openat.
23920         * modules/fchmodat (Files): Remove lib/openat.h.
23921         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
23922         openat, stdbool, unistd.
23923         * modules/fchownat (Files): Remove lib/openat.h.
23924         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
23925         openat, stdbool, sys_stat.
23926         * modules/fdopendir (Files): Remove lib/openat-priv.h,
23927         lib/openat-proc.c.
23928         (Depends-on): Add at-internal.
23929         (condigure.ac): Remove AC_LIBOBJ of openat-proc.
23930         * modules/fstatat (Files): Remove lib/openat.h.
23931         (Depends-on): Add at-internal, openat-h. Remove dirent, openat,
23932         stdbool, unistd.
23933         * modules/fts (Depends-on): Add openat-h.
23934         * modules/linkat (Depends-on): Add at-internal, openat-h. Remove
23935         openat.
23936         * modules/mkdirat (Files): Remove lib/openat.h.
23937         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
23938         openat, stdbool, sys_stat.
23939         * modules/mkfifoat (Files): Add lib/at-func.c.
23940         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
23941         openat-h, save-cwd. Remove fcntl-h, openat.
23942         * modules/openat-die (Depends-on): Add openat-h. Remove openat.
23943         * modules/readlinkat (Files): Add lib/at-func.c.
23944         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
23945         openat-h, save-cwd. Remove fcntl-h, openat.
23946         * modules/renameat (Depends-on): Add at-internal, openat-h. Remove
23947         openat.
23948         * modules/selinux-at (Files): Add lib/at-func.c.
23949         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
23950         fcntl-h, openat-die, openat-h, save-cwd, unistd. Remove openat.
23951         * modules/symlinkat (Files): Add lib/at-func.c.
23952         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
23953         openat-h, save-cwd. Remove fcntl-h, openat.
23954         * modules/unlinkat (Files): Remove lib/openat.h.
23955         (Depends-on): Add at-internal, openat-h. Remove dirent, openat,
23956         stdbool.
23957         * modules/utimensat (Files): Add lib/at-func.c.
23958         (Depends-on): Add at-internal, dosname, errno, fchdir, fcntl-h,
23959         openat-die, openat-h, save-cwd.
23960         * modules/fchownat-tests (Depends-on): Add openat-h. Remove openat.
23961         * modules/fdutimensat-tests (Depends-on): Add openat.
23962         * modules/fstatat-tests (Depends-on): Add openat-h.
23963         * modules/readlinkat-tests (Depends-on): Add openat.
23964         * modules/symlinkat-tests (Depends-on): Add openat.
23966 2011-11-05  Bruno Haible  <bruno@clisp.org>
23968         openat: Include <stdbool.h>.
23969         * lib/openat.c: Include <stdbool.h>.
23971 2011-11-04  Bruno Haible  <bruno@clisp.org>
23973         fchownat, renameat, unlinkat: Fix dependencies.
23974         * modules/fchownat (Depends-on): Add fstatat.
23975         * modules/renameat (Depends-on): Likewise.
23976         * modules/unlinkat (Depends-on): Likewise.
23978 2011-11-04  Paul Eggert  <eggert@cs.ucla.edu>
23980         openat: remove direct dependency on dirent
23981         * lib/openat.h: Don't include <dirent.h>; it's no longer needed,
23982         and hasn't been needed ever since fdopendir was split into its own
23983         module on 2009-08-31.
23984         * modules/openat (Depends-on): Remove dirent.
23986 2011-11-04  Bruno Haible  <bruno@clisp.org>
23988         renameat: Optimize code size.
23989         * modules/renameat (configure.ac): Don't compile at-func2.c if
23990         REPLACE_RENAMEAT is 1.
23992 2011-11-04  Bruno Haible  <bruno@clisp.org>
23994         openat tests: Fix file list.
23995         * modules/openat-tests (Files): Add tests/test-open.h.
23997 2011-11-04  Bruno Haible  <bruno@clisp.org>
23999         openat, fchmodat, fchownat, linkat, renameat: Fix dependencies.
24000         * modules/fchmodat (Depends-on): Add openat-die.
24001         * modules/fchownat (Depends-on): Likewise.
24002         * modules/linkat (Depends-on): Likewise.
24003         * modules/renameat (Depends-on): Likewise.
24004         * modules/openat (Depends-on): Add dirent.
24006 2011-11-04  Jim Meyering  <meyering@redhat.com>
24008         at-func*.c: fix comments
24009         * lib/at-func2.c: Correct/improve first-line comment.
24010         * lib/at-func.c: Correct grammar in first-line comment.
24012 2011-11-04  Bruno Haible  <bruno@clisp.org>
24014         New module 'mkdirat', split off from module 'openat'.
24015         * m4/mkdirat.m4: New file. extracted from m4/openat.m4.
24016         * m4/openat.m4 (gl_FUNC_OPENAT): Don't require gl_SYS_STAT_H_DEFAULTS.
24017         Don't test for mkdirat. Don't set GNULIB_MKDIRAT, HAVE_MKDIRAT.
24018         * modules/mkdirat: New file, extracted from modules/openat.
24019         * modules/openat (Files): Remove lib/mkdirat.c.
24020         (Depends-on): Remove mkdir.
24021         (configure.ac): Remove AC_LIBOBJ of mkdirat.
24022         (Include): Remove <sys/stat.h>.
24023         * modules/mkdirat-tests: New file, extracted from modules/openat-tests.
24024         * modules/openat-tests (Files): Remove tests/test-mkdirat.c,
24025         tests/test-mkdir.h.
24026         (Depends-on): Remove ignore-value.
24027         (Makefile.am): Remove rules for test-mkdirat.
24028         * doc/posix-functions/mkdirat.texi: Mention module 'mkdirat' instead
24029         of module 'openat'.
24030         * NEWS: Mention the change.
24032 2011-11-04  Bruno Haible  <bruno@clisp.org>
24034         closedir: Avoid warning on mingw.
24035         * lib/closedir.c: Include <unistd.h>.
24037 2011-11-04  Bruno Haible  <bruno@clisp.org>
24039         New module 'fstatat', split off from module 'openat'.
24040         * lib/openat.h (statat, lstatat): Enable only if GNULIB_FSTATAT is
24041         defined.
24042         * m4/fstatat.m4: New file. extracted from m4/openat.m4.
24043         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FSTATAT. Don't invoke
24044         gl_FUNC_FSTATAT.
24045         (gl_FUNC_FSTATAT): Moved to m4/fstatat.m4.
24046         * modules/fstatat: New file, extracted from modules/openat.
24047         * modules/openat (Files): Remove lib/fstatat.c.
24048         (Depends-on): Remove lstat.
24049         (configure.ac): Remove AC_LIBOBJ of fstatat.
24050         * modules/fstatat-tests: New file, extracted from modules/openat-tests.
24051         * modules/openat-tests (Files): Remove tests/test-fstatat.c,
24052         tests/test-lstat.h, tests/test-stat.h.
24053         (Depends-on): Remove getcwd-lgpl.
24054         (Makefile.am): Remove rules for test-fstatat.
24055         * doc/posix-functions/fstatat.texi: Mention module 'fstatat' instead
24056         of module 'openat'.
24057         * NEWS: Mention the change.
24058         * modules/getcwd (Depends-on): Add fstatat.
24059         * modules/linkat (Depends-on): Likewise.
24060         * modules/mkfifoat-tests (Depends-on): Likewise.
24061         * modules/utimensat (Depends-on): Add fstatat. Remove openat.
24063 2011-11-03  Bruno Haible  <bruno@clisp.org>
24065         New module 'unlinkat', split off from module 'openat'.
24066         * m4/unlinkat.m4: New file, extracted from m4/openat.m4.
24067         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_UNLINKAT,
24068         REPLACE_UNLINKAT, HAVE_UNLINKAT. Don't test for unlinkat.
24069         * modules/unlinkat: New file, extracted from modules/openat. Correct
24070         the dependency conditions.
24071         * modules/openat (Files): Remove lib/unlinkat.c.
24072         (Depends-on): Remove rmdir, unlink.
24073         (configure.ac): Remove AC_LIBOBJ of unlinkat.
24074         * modules/unlinkat-tests: New file, extracted from modules/openat-tests.
24075         * modules/openat-tests (Files): Remove tests/test-unlinkat.c,
24076         tests/test-rmdir.h, tests/test-unlink.h.
24077         (Depends-on): Remove unlinkdir.
24078         (Makefile.am): Remove rules for test-unlinkat.
24079         * doc/posix-functions/unlinkat.texi: Mention module 'unlinkat' instead
24080         of module 'openat'.
24081         * NEWS: Mention the change.
24082         * modules/linkat-tests (Depends-on): Add unlinkat.
24083         * modules/mkfifoat-tests (Depends-on): Likewise.
24084         * modules/readlinkat-tests (Depends-on): Likewise.
24086 2011-11-02  Bruno Haible  <bruno@clisp.org>
24088         New module 'fchmodat', split off from module 'openat'.
24089         * lib/openat.h (chmodat, lchmodat): Enable only if GNULIB_FCHMODAT is
24090         defined.
24091         * m4/fchmodat.m4: New file, extracted from m4/openat.m4.
24092         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FCHMODAT. Don't test
24093         for fchmodat, lchmod. Don't set HAVE_FCHMODAT.
24094         * modules/fchmodat: New file, extracted from modules/openat.
24095         * modules/openat (Files): Remove lib/fchmodat.c.
24096         (configure.ac): Remove AC_LIBOBJ of fchmodat.
24097         * modules/fchmodat-tests: New file, extracted from modules/openat-tests.
24098         * modules/openat-tests (Files): Remove tests/test-fchmodat.c.
24099         (Makefile.am): Remove rules for test-fchmodat.
24100         * doc/posix-functions/fchmodat.texi: Mention module 'fchmodat' instead
24101         of module 'openat'.
24102         * NEWS: Mention the change.
24104 2011-11-02  Jim Meyering  <meyering@redhat.com>
24106         putenv: indent #definition of "environ" to placate cppi
24107         * lib/putenv.c (environ): Make indentation reflect cpp nesting.
24109         gitlog-to-changelog: provide a ChangeLog-repair mechanism
24110         Git logs are often treated as immutable, because editing them
24111         changes the SHA1 checksums of all descendants.  Thus, errors in
24112         git logs tend to stay there forever.  However, when we generate
24113         a ChangeLog file -- typically for distribution -- from that git log,
24114         we can actually make corrections in the generated file.  The key
24115         lies in recording in machine-readable/applicable form the desired
24116         corrections.  See --help for description and an example.
24117         * build-aux/gitlog-to-changelog (parse_amend_file): New function.
24118         (usage): Describe it; alphabetize option descriptions.
24119         (main): Honor the new option, carefully.
24121 2011-11-01  Jim Meyering  <meyering@redhat.com>
24123         gitlog-to-changelog: avoid an infloop
24124         * build-aux/gitlog-to-changelog: Don't infloop for a commit log
24125         that ends up being empty.
24127 2011-11-01  Paul Eggert  <eggert@cs.ucla.edu>
24129         * MODULES.html.sh: Fix sed-script shell quoting and locale issues.
24130         (func_module): Replace foo=` ... sed -e COMPLICATED ... ` with
24131         bar=COMPLICATED; foo=` ... sed -e "$bar" ... ` when COMPLICATED
24132         contains (possibly-quoted) backslashes.  This should avoid
24133         all-too-common shell bugs if COMPLICATED contains backslashes in
24134         the "wrong" places.  Reported by David Evans in
24135         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00013.html>.
24136         When 'sed' uses character ranges like A-Z, invoke it in the C locale,
24137         because we want ASCII ranges.  Is there some reason we don't use
24138         the C locale everywhere in this script?
24139         (func_module, top level): Avoid unwanted pathname expansion when
24140         $repo_url_prefix or $repo_url_suffix_repl contain shell
24141         metacharacters like '?' and '*'.
24143 2011-11-01  Bruno Haible  <bruno@clisp.org>
24145         fchownat: Improve description.
24146         * modules/fchownat (Description): Add link to function.
24148 2011-11-01  Paul Eggert  <eggert@cs.ucla.edu>
24150         * tests/test-stdalign.c (TEST_ALIGNMENT): Shrink back to 8.
24151         mingw supports alignments only up to 8 (!).  Reported by Bruno Haible in
24152         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00006.html>.
24153         * doc/posix-headers/stdalign.texi (stdalign.h): Document this.
24155 2011-11-01  Bruno Haible  <bruno@clisp.org>
24157         alignof: Avoid collision with stdalign module.
24158         * lib/alignof.h (alignof): Remove macro.
24159         * NEWS: Mention the change.
24160         Reported by Paul Eggert.
24162 2011-11-01  Bruno Haible  <bruno@clisp.org>
24164         New module 'fchownat', split off from module 'openat'.
24165         * lib/openat.h (chownat, lchownat): Enable only if GNULIB_FCHOWNAT is
24166         defined.
24167         * m4/fchownat.m4: New file, extracted from m4/openat.m4.
24168         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FCHOWNAT. Don't
24169         invoke gl_FUNC_FCHOWNAT.
24170         (gl_FUNC_FCHOWNAT_DEREF_BUG, gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG,
24171         gl_FUNC_FCHOWNAT): Moved to m4/fchownat.m4.
24172         * modules/fchownat: New file, extracted from modules/openat.
24173         * modules/openat (Files): Remove lib/fchownat.c.
24174         (Depends-on): Remove lchown.
24175         (configure.ac): Remove AC_LIBOBJ of fchownat.
24176         * modules/fchownat-tests: New file, extracted from modules/openat-tests.
24177         * modules/openat-tests (Files): Remove tests/test-fchownat.c,
24178         tests/test-chown.h, tests/test-lchown.h, tests/nap.h.
24179         (Depends-on): Remove mgetgroups, usleep, stat-time.
24180         (configure.ac): Remove test for getegid.
24181         (Makefile.am): Remove rules for test-fchownat.
24182         * doc/posix-functions/fchownat.texi: Mention module 'fchownat' instead
24183         of module 'openat'.
24184         * NEWS: Mention the change.
24186 2011-10-31  Paul Eggert  <eggert@cs.ucla.edu>
24188         stdalign: port better to MSVC and to Sun C 5.11
24189         This fixes some of the problems reported by Bruno Haible in
24190         <http://lists.gnu.org/archive/html/bug-gnulib/2011-10/msg00300.html>.
24191         * doc/posix-headers/stdalign.texi (stdalign.h): Document more
24192         shortcomings of MSVC and of Sun C 5.11.
24193         * lib/stdalign.in.h (_Alignas): Omit bogus extra parenthesis
24194         around __declspec arg.
24195         * modules/stdalign-tests (Files): Add tests/macros.h.
24196         * tests/test-stdalign.c: Do not include <stdlib.h>; no longer needed.
24197         Include macros.h, for ASSERT.
24198         (DECLARE_ALIGNED): Remove.
24199         (TEST_ALIGNMENT): Define to 16 if alignment is supported (more likely
24200         to catch bug), and to 1 if not (simplifies the rest of the code).
24201         (CHECK_STATIC): Always declare the alignment test vars; that's simpler.
24202         (CHECK_AUTO): Remove.
24203         (CHECK_ALIGNED): Check only the alignment of the static vars,
24204         since auto var alignment isn't supported by Sun C 5.11.
24205         (CHECK_TYPES): Remove.  All uses replaced by inline code, so that
24206         ASSERT failures are easier to diagnose.
24208 2011-10-31  Bruno Haible  <bruno@clisp.org>
24210         doc about some IRIX 5.3 problems.
24211         * doc/posix-functions/getpwnam_r.texi: Mention incompatible declaration
24212         on IRIX 5.3.
24213         * doc/posix-headers/poll.texi: Mention missing nfds_t on IRIX 5.3.
24214         * doc/posix-functions/ptsname.texi: Mention missing declaration on IRIX
24215         5.3.
24216         * doc/posix-functions/grantpt.texi: Likewise.
24217         * doc/posix-functions/unlockpt.texi: Likewise.
24218         * doc/posix-functions/lgamma.texi: Likewise.
24219         * doc/posix-functions/nextafter.texi: Likewise.
24220         * doc/posix-functions/remainder.texi: Likewise.
24221         * doc/posix-functions/select.texi: Mention misplaced declaration on
24222         IRIX 5.3.
24223         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
24225 2011-10-31  Dmitry V. Levin  <ldv@altlinux.org>
24227         gitlog-to-changelog: fix git-log invocation.
24228         git-log mishandles date strings before 1970-01-01 UTC, and there is
24229         no use to specify --since=1970-01-01 by default anyway.
24230         * build-aux/gitlog-to-changelog: By default, when no --since option
24231         was given, do not specify explicit --since option to git-log.
24233 2011-10-30  Dmitry V. Levin  <ldv@altlinux.org>
24235         gitlog-to-changelog: new option --append-dot.
24236         * build-aux/gitlog-to-changelog: New option --append-dot, makes the
24237         first non-blank line of each commit message terminated with a dot.
24239 2011-10-30  Bruno Haible  <bruno@clisp.org>
24241         ffsl, ffsll: Avoid compilation error due to 'restrict'.
24242         * lib/ffsl.h: Include <config.h>.
24243         Suggested by Tom G. Christensen <tgc@jupiterrise.com>.
24245 2011-10-30  Jim Meyering  <meyering@redhat.com>
24247         GNUmakefile: reenable "make syntax-check" for most projects
24248         Since Friday's commit 05e2d798, "maint.mk: don't maintain a second
24249         build-aux variable", "syntax-check" would do nothing but succeed with
24250         the "No version control files detected..." diagnostic (unless you
24251         happened to override _build-aux via cfg.mk).
24252         * top/GNUmakefile (_autoreconf, _build-aux): Move default definitions
24253         to precede inclusion of maint.mk.  Otherwise, these variables would
24254         be used undefined in any project that does not override the default.
24256 2011-10-29  Dmitry V. Levin  <ldv@altlinux.org>
24258         gitlog-to-changelog: treat a message with only blank lines as empty.
24259         * build-aux/gitlog-to-changelog: Move the code that removes leading and
24260         trailing blank lines before the code that issues a warning about an
24261         empty commit message.
24263 2011-10-30  Jim Meyering  <meyering@redhat.com>
24265         test-parse-datetime.c: avoid new DST-related false positive test failure
24266         * tests/test-parse-datetime.c (gmt_offset): Determine the "gmt_offset"
24267         based on the time/date we'll convert, not the current time.
24268         Otherwise, the moment we cross a DST boundary like today's in
24269         Europe, (CEST to CET), that offset ends up being one hour off.
24271 2011-10-27  Bruno Haible  <bruno@clisp.org>
24273         fstat: Tweak documentation.
24274         * modules/fstat (Description): More precise description.
24276 2011-10-27  Bruno Haible  <bruno@clisp.org>
24278         Update documentation regarding 'largefile' module.
24279         * doc/posix-functions/fstat.texi: Tweak wording.
24280         * doc/posix-functions/opendir.texi: Mention that the module fixes the
24281         problems with huge directories and/or small ino_t types.
24282         * doc/posix-functions/readdir.texi: Likewise.
24283         * doc/posix-functions/rewinddir.texi: Likewise.
24285 2011-10-28  Gary V. Vaughan  <gary@gnu.org>
24287         maint.mk: don't maintain a second build-aux variable.
24288         * maint.mk (build_aux): Removed.  The maintainer-makefile module
24289         depends on GNUmakefile, which already maintains a cfg.mk
24290         overridable $(_build-aux) for projects with a non-standard
24291         build-aux directory location, although without the $(srcdir)
24292         prefix.  Use that variable consistently instead of introducing a
24293         second one.  Adjust all call sites.
24295 2011-10-27  Paul Eggert  <eggert@cs.ucla.edu>
24297         Add stdalign module and use it in other modules.
24298         This is based on a previous proposal by Bruno Haible
24299         <https://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00226.html>.
24301         stdalign: new module
24302         * doc/posix-headers/stdalign.texi, lib/stdalign.in.h, m4/stdalign.m4:
24303         * modules/stdalign: New files.
24304         * MODULES.html.sh (c1x_core_properties): Add stdalign.
24305         * doc/gnulib.texi (Header File Substitutes): Add stdalign.
24307         stdalign-tests: new module
24308         * modules/stdalign-tests, tests/test-stdalign.c: New files.
24310         argp: use stdalign
24311         * lib/argp-parse.c: Include <stdalign.h>.
24312         (alignof): Remove.
24313         * modules/argp (Depends-on): Add stdalign.
24315         crypto libraries: use stdalign
24316         * lib/md4.c, lib/md5.c, lib/sha1.c, lib/sha256.c, lib/sha512.c:
24317         Include <stdalign.h> and <stdint.h>.  Do not include <stddef.h>.
24318         Do not include <stdlib.h> twice, in md4.c.
24319         (UNALIGNED_P): Simplify by using alignof.  Use uintptr_t, not size_t,
24320         because we are accessing a pointer's bit-pattern, not a size.
24321         * modules/crypto/gc-md4 (Depends-on): Add stdalign.
24322         * modules/crypto/gc-md5, modules/crypto/gc-sha1, modules/crypto/md4:
24323         * modules/crypto/md5, modules/crypto/sha1, modules/crypto/sha256:
24324         * modules/crypto/sha512: Likewise.
24326         sys_socket: use stdalign, not alignof
24327         * lib/sys_socket.in.h: Include <stdalign.h> instead of <alignof.h>.
24328         * modules/sys_socket (Depends-on): Depend on stdalign, not alignof.
24330 2011-10-27  Bruno Haible  <bruno@clisp.org>
24332         raise test: Avoid a test failure on Linux/MIPS.
24333         * tests/test-raise.c (main): Try raising signal 199, not 99. Needed
24334         because 99 is a valid signal on Linux/MIPS.
24336 2011-10-27  Bruno Haible  <bruno@clisp.org>
24338         nonblocking tests: Fix test failure on Linux/MIPS.
24339         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/MIPS]:
24340         Set to 270000.
24342 2011-10-27  Bruno Haible  <bruno@clisp.org>
24344         utimensat: Work around problem on Linux/hppa.
24345         * lib/utimensat.c (rpl_utimensat) [Linux/hppa]: Reject invalid tv_nsec
24346         values.
24347         * doc/posix-functions/utimensat.texi: Mention the problem on Linux/hppa.
24349 2011-10-25  Jim Meyering  <meyering@redhat.com>
24351         maint.mk: fix a bug in sc_prohibit_stddef_without_use
24352         * top/maint.mk (sc_prohibit_stddef_without_use): Don't require / *\(/
24353         after symbols like NULL, size_t, etc.
24354         Reported by Alfred M. Szmidt.
24356         maint.mk: exempt ENODATA from a syntax-check rule
24357         * top/maint.mk (gl_extract_significant_defines_): Also exempt ENODATA
24358         from the sc_prohibit_always-defined_macros syntax-check rule.
24359         Add a comment.  See this for more details:
24360         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28739/focus=28795
24362 2011-10-23  Jim Meyering  <meyering@redhat.com>
24364         fts: close parent dir FD before returning from post-traversal fts_read
24365         The problem: the fts-using "mkdir -p A/B; rm -rf A" would attempt to
24366         unlink A, even though an FD open on A remained.  This is suboptimal
24367         (holding a file descriptor open longer than needed), but otherwise not
24368         a problem on Unix-like kernels.  However, on Cygwin with certain Novell
24369         file systems, (see http://cygwin.com/ml/cygwin/2011-10/msg00365.html),
24370         that represents a real problem: it causes the removal of A to fail
24371         with e.g., "rm: cannot remove `A': Device or resource busy"
24373         fts visits each directory twice and keeps a cache (fts_fd_ring) of
24374         directory file descriptors.  After completing the final, FTS_DP,
24375         visit of a directory, RESTORE_INITIAL_CWD intended to clear the FD
24376         cache, but then proceeded to add a new FD to it via the subsequent
24377         FCHDIR (which calls cwd_advance_fd and i_ring_push).  Before, the
24378         final file descriptor would be closed only via fts_close's call to
24379         fd_ring_clear.  Now, it is usually closed earlier, via the final
24380         FTS_DP-returning fts_read call.
24381         * lib/fts.c (restore_initial_cwd): New function, converted from
24382         the macro.  Call fd_ring_clear *after* FCHDIR, not before it.
24383         Update callers.
24384         Reported by Franz Sirl via the above URL, with analysis by Eric Blake
24385         in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28739
24387 2011-10-23  Gary V. Vaughan  <gary@gnu.org>
24388             Bruno Haible  <bruno@clisp.org>
24389             Jim Meyering  <jim@meyering.net>
24391         readme-release: improve safety of release prep instructions.
24392         * README-release: Don't git pull all branches when only master
24393         is needed for the release process.
24394         Run make maintainer-clean before changing trees and merging.
24395         Don't try to run ./configure right after git pull in case files
24396         that influence the bootstrap process have changed, move the
24397         ./configure step to after running ./bootstrap.
24398         Don't bootstrap "one last time"... it's the first time!
24400 2011-10-22  Bruno Haible  <bruno@clisp.org>
24402         errno, strerror-override: Support for MSVC 10.
24403         * lib/errno.in.h (GNULIB_defined_ETXTBSY): Remove macro.
24404         (ENOMSG, EIDRM, ENOLINK, EPROTO, EBADMSG, EOVERFLOW, ENOTSUP,
24405         ENETRESET, ECONNABORTED, ECANCELED, EINPROGRESS, EALREADY, ENOTSOCK,
24406         EDESTADDRREQ, EMSGSIZE, EPROTOTYPE, ENOPROTOOPT, EPROTONOSUPPORT,
24407         EOPNOTSUPP, EAFNOSUPPORT, EADDRINUSE, EADDRNOTAVAIL, ENETDOWN,
24408         ENETUNREACH, ECONNRESET, ENOBUFS, EISCONN, ENOTCONN, ETIMEDOUT,
24409         ECONNREFUSED, ELOOP, EHOSTUNREACH, EWOULDBLOCK, ETXTBSY) [Win32]:
24410         Assign values compatible with MSVC 10.
24411         (ENODATA, ENOSR, ENOSTR, ENOTRECOVERABLE, EOWNERDEAD, ETIME, EOTHER):
24412         New macros.
24413         (GNULIB_defined_EWINSOCK): New macro.
24414         * lib/strerror-override.c (strerror_override): Update accordingly.
24415         * lib/strerror-override.h: Likewise.
24416         * lib/w32sock.h (set_winsock_errno): Map those WSA* values that are no
24417         longer equal to the corresponding errno value.
24418         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
24420 2011-10-22  Bruno Haible  <bruno@clisp.org>
24422         perror: Recognize when test program crashes.
24423         * m4/perror.m4 (gl_FUNC_PERROR): If the test program crashes due to
24424         strerror, set gl_cv_func_perror_works to no.
24425         Reported by Daniel Richard G. <skunk@iskunk.org>.
24427         perror: Fix indentation.
24428         * m4/perror.m4 (gl_FUNC_PERROR): Fix indentation.
24430 2011-10-22  Bruno Haible  <bruno@clisp.org>
24432         isfinite, isinf, isnan, signbit: Don't define as a macro in C++.
24433         * lib/math.in.h (_GL_MATH_CXX_REAL_FLOATING_DECL_1,
24434         _GL_MATH_CXX_REAL_FLOATING_DECL_2): nEW MACROS.
24435         (isfinite, isinf, isnan, signbit): In C++, define as overloaded
24436         functions, not as a macro.
24437         * tests/test-math-c++.cc (REAL_FLOATING_CHECK, OVERLOADED_CHECK): New
24438         macros.
24439         (isfinite, isinf, isnan, signbit): Check overloaded functions and
24440         absence of macro.
24441         Suggested by Eric Blake.
24442         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
24444 2011-10-21  Bruno Haible  <bruno@clisp.org>
24446         relocatable-prog-wrapper: Don't leave object files behind.
24447         * build-aux/install-reloc: Re-synchronize list of .o files to be
24448         removed with list of compilation units.
24450 2011-10-20  Bruno Haible  <bruno@clisp.org>
24452         openpty, posix_openpt: Remove code duplication.
24453         * lib/posix_openpt.c: Add comments about platforms, from lib/openpty.c.
24454         * lib/openpty.c: Include <stdlib.h>.
24455         (openpty): Use posix_openpt on all platforms except IRIX.
24456         * modules/openpty (Depends-on): Add posix_openpt. Add conditions.
24458 2011-10-20  Bruno Haible  <bruno@clisp.org>
24460         unlockpt: Detect invalid argument.
24461         * lib/unlockpt.c: Include <fcntl.h>.
24462         (unlockpt): Check whether fd is valid, using fcntl().
24463         * modules/unlockpt (Depends-on): Add fcntl-h.
24465 2011-10-20  Bruno Haible  <bruno@clisp.org>
24467         openpty: Avoid compilation error on AIX 6.1.
24468         * lib/pty.in.h [AIX]: Include <sys/ioctl.h>, for 'struct winsize'.
24470 2011-10-20  Bruno Haible  <bruno@clisp.org>
24472         posix_openpt: Support for OpenBSD.
24473         * lib/posix_openpt.c [OpenBSD]: Include <sys/ioctl.h>, <sys/tty.h>.
24474         (posix_openpt) [OpenBSD]: New code.
24475         * lib/grantpt.c: Include <fcntl.h>.
24476         (grantpt) [OpenBSD]: Only test whether fd is valid, nothing else.
24477         * modules/grantpt (Depends-on): Add fcntl-h.
24479 2011-10-20  Bruno Haible  <bruno@clisp.org>
24481         posix_openpt test: Coding style.
24482         * tests/test-posix_openpt.c: Use GNU coding style.
24484 2011-10-20  Bruno Haible  <bruno@clisp.org>
24486         grantpt: Support --avoid=pt_chown.
24487         * modules/grantpt (Files): Add lib/pty-private.h.
24489 2011-10-20  Bruno Haible  <bruno@clisp.org>
24491         posix_openpt: Fix autoconf macro.
24492         * m4/posix_openpt.m4 (gl_FUNC_POSIX_OPENPT): Fix variable name. Remove
24493         unneeded check for _getpty.
24495 2011-10-20  Bruno Haible  <bruno@clisp.org>
24497         openpty: Update comments.
24498         * lib/openpty.c: Add comments about Minix.
24500 2011-10-19  Eric Blake  <eblake@redhat.com>
24502         openpty: relax license
24503         * modules/openpty (License): Change from LGPLv3+ to LGPLv2+.
24505         pt_chown: use configmake to simplify build
24506         * modules/pt_chown (Makefile.am): Drop line guaranteed by configmake.
24508         ptsname and others: relax license
24509         * modules/grantpt (License): Change from LGPLv3+ to LGPLv2+.
24510         * modules/unlockpt (License): Likewise.
24511         * modules/pt_chown (License): Likewise.
24512         * modules/ptsname (License): Likewise.
24513         * modules/ttyname_r (License): Likewise.
24515 2011-10-19  Jim Meyering  <meyering@redhat.com>
24517         posix_openpt: remove spurious #endif
24518         * lib/posix_openpt.c (posix_openpt): Remove spurious #endif.
24520 2011-10-19  Gary V. Vaughan  <gary@gnu.org>
24522         maint.mk: Respect $(build_aux) in web-manual rule.
24523         * top/maint.mk (web-manual): Find gen-announce script in user's
24524         $(build_aux) directory instead of hard-coding 'build-aux'.
24526 2011-10-19  Bruno Haible  <bruno@clisp.org>
24528         posix_openpt: Fix compilation error.
24529         * lib/posix_openpt.c (posix_openpt): Renamed from posix_openpty.
24530         * doc/posix-functions/posix_openpt.texi: Mention ENOENT error code.
24531         Mention the openpty module as an alternative.
24533 2011-10-19  Bruno Haible  <bruno@clisp.org>
24535         Support for old NeXTstep 3.3 frexp().
24536         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Check for alarm. Limit the
24537         execution time of the test to 5 seconds.
24538         Reported by Daniel Richard G. <skunk@iskunk.org>.
24540 2011-10-19  Bruno Haible  <bruno@clisp.org>
24542         Support for old NeXTstep 3.3 sed.
24543         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): In the sed address
24544         part, use /.../, not \|...|. Escape periods in the header file name.
24545         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Likewise.
24546         Reported by Daniel Richard G. <skunk@iskunk.org>.
24548 2011-10-18  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
24550         Support for old NeXTstep 3.3 gcc.
24551         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Write
24552         'defined __STRICT_ANSI__', not '__STRICT_ANSI__'.
24553         * lib/math.in.h (_GL_NUM_UINT_WORDS etc.): Likewise.
24554         * lib/spawn.in.h (_Restrict_arr_): Likewise.
24555         * lib/regex.h (_Restrict_arr_): Likewise.
24556         * lib/regex_internal.h (re_token_t): Likewise.
24557         * lib/regexec.c (check_node_accept_bytes): Likewise.
24558         * tests/test-printf-posix.c (func1, func2, func3, func4): Likewise.
24560 2011-10-18  Eric Blake  <eblake@redhat.com>
24562         posix_openpt: new module
24563         * modules/posix_openpt: New module.
24564         * m4/posix_openpt.m4: New file.
24565         * lib/posix_openpt.c: Likewise.
24566         * m4/stdlib_h.m4 (gl_STDLIB_H): Check for decl.
24567         (gl_STDLIB_H_DEFAULTS): Set defaults.
24568         * modules/stdlib (Makefile.am): Substitute macros.
24569         * lib/stdlib.in.h (posix_openpt): Declare.
24570         * MODULES.html.sh (systems lacking POSIX:2008): Document it.
24571         * doc/posix-functions/posix_openpt.texi (posix_openpt): Likewise.
24572         * modules/posix_openpt-tests: New test module.
24573         * tests/test-posix_openpt.c: New test.
24575 2011-10-15  Bruno Haible  <bruno@clisp.org>
24577         xstrtoll: Fix compilation failure.
24578         * lib/xstrtol.c (ULLONG_MAX, LLONG_MAX, LLONG_MIN): New macros, taken
24579         from lib/strtol.c.
24580         * doc/posix-headers/limits.texi: Mention missing numerical limits on
24581         some platforms.
24582         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
24584 2011-10-15  Bruno Haible  <bruno@clisp.org>
24586         vasnprintf: Optimize bit search operation.
24587         * lib/vasnprintf.c (divide): Use optimizations from integer_length.c.
24588         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require
24589         gl_DOUBLE_EXPONENT_LOCATION.
24590         * modules/vasnprintf (Files): Add m4/exponentd.m4.
24591         * modules/unistdio/u8-vasnprintf (Files): Likewise.
24592         * modules/unistdio/u8-u8-vasnprintf (Files): Likewise.
24593         * modules/unistdio/u16-vasnprintf (Files): Likewise.
24594         * modules/unistdio/u16-u16-vasnprintf (Files): Likewise.
24595         * modules/unistdio/u32-vasnprintf (Files): Likewise.
24596         * modules/unistdio/u32-u32-vasnprintf (Files): Likewise.
24597         * modules/unistdio/ulc-vasnprintf (Files): Likewise.
24598         * m4/isnand.m4 (gl_PREREQ_ISNAND): Use AC_REQUIRE.
24600 2011-10-15  Bruno Haible  <bruno@clisp.org>
24602         vasnprintf: Fix comments.
24603         * lib/vasnprintf.c (decode_long_double, decode_double): Fix comments.
24605 2011-10-14  Bruno Haible  <bruno@clisp.org>
24607         Tests for module 'integer_length_ll'.
24608         * modules/integer_length_ll-tests: New file.
24609         * tests/test-integer_length_ll.c: New file.
24611         New module 'integer_length_ll'.
24612         * lib/integer_length_ll.c: New file.
24613         * modules/integer_length_ll: New file.
24615 2011-10-14  Bruno Haible  <bruno@clisp.org>
24617         Tests for module 'integer_length_l'.
24618         * modules/integer_length_l-tests: New file.
24619         * tests/test-integer_length_l.c: New file.
24621         New module 'integer_length_l'.
24622         * lib/integer_length_l.c: New file.
24623         * modules/integer_length_l: New file.
24625 2011-10-14  Bruno Haible  <bruno@clisp.org>
24627         Tests for module 'integer_length'.
24628         * modules/integer_length-tests: New file.
24629         * tests/test-integer_length.c: New file.
24631         New module 'integer_length'.
24632         * lib/integer_length.h: New file.
24633         * lib/integer_length.c: New file.
24634         * modules/integer_length: New file.
24636 2011-10-14  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
24638         popen: Fix dependency conditions.
24639         * modules/popen (Depends-on, configure.ac): Fix shell syntax error.
24641 2011-10-14  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
24643         perror: Fix autoconf test.
24644         * m4/perror.m4 (gl_FUNC_PERROR): In the test program, include
24645         <stdlib.h> and <string.h>.
24647 2011-10-14  Bruno Haible  <bruno@clisp.org>
24649         ffsl: Optimize on 64-bit platforms.
24650         * lib/ffsl.h (FUNC): Omit a test from the last loop round. Do loop
24651         unrolling.
24653 2011-10-13  Bruno Haible  <bruno@clisp.org>
24655         ffsl: Optimize on 32-bit platforms.
24656         * lib/ffsl.h (FUNC): If TYPE has the same representation as 'int', just
24657         use ffs() without a loop.
24659         ffsl, ffsll: Optimize for GCC.
24660         * lib/ffsl.h (FUNC): Use GCC_BUILTIN if defined.
24661         * lib/ffsl.c (GCC_BUILTIN): New macro.
24662         * lib/ffsll.c (GCC_BUILTIN): Likewise.
24664 2011-10-13  Bruno Haible  <bruno@clisp.org>
24666         ffs, bcopy, memset: Support symbol renaming via config.h.
24667         * lib/ffs.c: Include <config.h>.
24668         * lib/bcopy.c: Likewise.
24669         * lib/memset.c: Likewise.
24671 2011-10-10  Bruno Haible  <bruno@clisp.org>
24673         atanl: Simplify for platforms where 'long double' == 'double'.
24674         * lib/atanl.c (atanl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
24675         alternative implementation.
24676         * m4/atanl.m4 (gl_FUNC_ATANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
24677         Determine ATANL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
24678         * modules/atanl (Depends-on): Add atan. Update conditions.
24680 2011-10-10  Bruno Haible  <bruno@clisp.org>
24682         acosl: Simplify for platforms where 'long double' == 'double'.
24683         * lib/acosl.c (acosl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
24684         alternative implementation.
24685         * m4/acosl.m4 (gl_FUNC_ACOSL): Require gl_LONG_DOUBLE_VS_DOUBLE.
24686         Determine ACOSL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
24687         * modules/acosl (Depends-on): Add acos. Update conditions.
24689 2011-10-10  Bruno Haible  <bruno@clisp.org>
24691         asinl: Simplify for platforms where 'long double' == 'double'.
24692         * lib/asinl.c (asinl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
24693         alternative implementation.
24694         * m4/asinl.m4 (gl_FUNC_ASINL): Require gl_LONG_DOUBLE_VS_DOUBLE.
24695         Determine ASINL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
24696         * modules/asinl (Depends-on): Add asin. Update conditions.
24698 2011-10-10  Bruno Haible  <bruno@clisp.org>
24700         tanl: Simplify for platforms where 'long double' == 'double'.
24701         * lib/tanl.c (tanl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
24702         implementation.
24703         * m4/tanl.m4 (gl_FUNC_TANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
24704         Determine TANL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
24705         * modules/tanl (Depends-on): Add tan. Update conditions.
24706         (configure.ac): Don't compile trigl.c if
24707         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
24709 2011-10-10  Bruno Haible  <bruno@clisp.org>
24711         cosl: Simplify for platforms where 'long double' == 'double'.
24712         * lib/cosl.c (cosl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
24713         implementation.
24714         * m4/cosl.m4 (gl_FUNC_COSL): Require gl_LONG_DOUBLE_VS_DOUBLE.
24715         Determine COSL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
24716         * modules/cosl (Depends-on): Add cos. Update conditions.
24717         (configure.ac): Don't compile sincosl.c and trigl.c if
24718         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
24720 2011-10-10  Bruno Haible  <bruno@clisp.org>
24722         sinl: Simplify for platforms where 'long double' == 'double'.
24723         * lib/sinl.c (sinl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
24724         implementation.
24725         * m4/sinl.m4 (gl_FUNC_SINL): Require gl_LONG_DOUBLE_VS_DOUBLE.
24726         Determine SINL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
24727         * modules/sinl (Depends-on): Add sin. Update conditions.
24728         (configure.ac): Don't compile sincosl.c and trigl.c if
24729         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
24731 2011-10-10  Bruno Haible  <bruno@clisp.org>
24733         logl: Simplify for platforms where 'long double' == 'double'.
24734         * lib/logl.c (logl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
24735         implementation.
24736         * m4/logl.m4 (gl_FUNC_LOGL): Require gl_LONG_DOUBLE_VS_DOUBLE.
24737         Determine LOGL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
24738         * modules/logl (Depends-on): Add log. Update conditions.
24740 2011-10-10  Bruno Haible  <bruno@clisp.org>
24742         expl: Simplify for platforms where 'long double' == 'double'.
24743         * lib/expl.c (expl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
24744         implementation.
24745         * m4/expl.m4 (gl_FUNC_EXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
24746         Determine EXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
24747         * modules/expl (Depends-on): Add exp. Update conditions.
24749 2011-10-10  Bruno Haible  <bruno@clisp.org>
24751         sqrtl: Simplify for platforms where 'long double' == 'double'.
24752         * lib/sqrtl.c (sqrtl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
24753         alternative implementation.
24754         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Require gl_LONG_DOUBLE_VS_DOUBLE.
24755         Determine SQRTL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
24756         * modules/sqrtl (Depends-on): Update conditions.
24758 2011-10-10  Bruno Haible  <bruno@clisp.org>
24760         ldexpl: Simplify for platforms where 'long double' == 'double'.
24761         * lib/ldexpl.c (ldexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
24762         alternative implementation.
24763         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
24764         Determine LDEXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
24765         * modules/ldexpl (Depends-on): Add ldexp. Update conditions.
24767 2011-10-10  Tom G. Christensen  <tgc@jupiterrise.com>  (tiny change)
24769         ffsll: set correct witness
24770         * modules/ffsll (configure.ac): Fix typo.
24772 2011-10-10  Bruno Haible  <bruno@clisp.org>
24774         printf-frexpl: Simplify for platforms where 'long double' == 'double'.
24775         * lib/printf-frexpl.c: Include <config.h>.
24776         (printf_frexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
24777         * lib/printf-frexp.c [!USE_LONG_DOUBLE]: Don't include <config.h> a
24778         second time.
24779         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Require
24780         gl_LONG_DOUBLE_VS_DOUBLE.
24781         * modules/printf-frexpl (Depends-on): Add printf-frexp. Update
24782         conditions.
24784 2011-10-10  Bruno Haible  <bruno@clisp.org>
24786         frexpl: Simplify for platforms where 'long double' == 'double'.
24787         * lib/frexpl.c: Include <config.h>.
24788         (frexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
24789         * lib/frexp.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
24790         time.
24791         * m4/frexpl.m4 (gl_FUNC_FREXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
24792         Determine FREXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
24793         (gl_FUNC_FREXPL_NO_LIBM): Require gl_LONG_DOUBLE_VS_DOUBLE.
24794         * modules/frexpl (Depends-on): Add frexp. Update conditions.
24795         * modules/frexpl-nolibm (Depends-on): Add frexp-nolibm. Update
24796         conditions.
24798 2011-10-10  Jim Meyering  <meyering@redhat.com>
24800         test-renameat: don't leave behind a temporary file
24801         * tests/test-renameat.c (main): Don't forget to remove a temporary file.
24802           ERROR: files left in build directory after distclean:
24803           ./gltests/test-renameat.too
24804           make[1]: *** [distcleancheck] Error 1
24805         Reported by Tom G. Christensen.
24807 2011-10-09  Bruno Haible  <bruno@clisp.org>
24809         rint: Determine RINT_LIBM correctly on AIX 7.
24810         * m4/mathfunc.m4 (gl_MATHFUNC): Try to invoke the function also
24811         directly, not only through a function pointer. Also accept an optional
24812         4th argument with extra code.
24813         * m4/rint.m4 (gl_FUNC_RINT): Pass an extra code that gets turned into a
24814         rintf() call by gcc when optimizing.
24816         mathfunc.m4: Refactor.
24817         * m4/mathfunc.m4 (gl_MATHFUNC): Assign the argument list to a temporary
24818         m4 variable.
24820 2011-10-09  Bruno Haible  <bruno@clisp.org>
24822         rintl: Simplify for platforms where 'long double' == 'double'.
24823         * lib/rintl.c: Include <config.h>.
24824         (rintl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
24825         * lib/rint.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
24826         time.
24827         * m4/rintl.m4 (gl_FUNC_RINTL): Require gl_LONG_DOUBLE_VS_DOUBLE.
24828         Determine RINTL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
24829         * modules/rintl (Depends-on): Add rint. Update conditions.
24831 2011-10-09  Bruno Haible  <bruno@clisp.org>
24833         roundl: Simplify for platforms where 'long double' == 'double'.
24834         * lib/roundl.c: Include <config.h>.
24835         (roundl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
24836         * lib/round.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
24837         time.
24838         * m4/roundl.m4 (gl_FUNC_ROUNDL): Require gl_LONG_DOUBLE_VS_DOUBLE.
24839         Determine ROUNDL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
24840         * modules/roundl (Depends-on): Add round. Update conditions.
24842 2011-10-09  Bruno Haible  <bruno@clisp.org>
24844         truncl: Simplify for platforms where 'long double' == 'double'.
24845         * lib/truncl.c: Include <config.h>.
24846         (truncl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
24847         * lib/trunc.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
24848         time.
24849         * m4/truncl.m4 (gl_FUNC_TRUNCL): Require gl_LONG_DOUBLE_VS_DOUBLE.
24850         Determine TRUNCL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
24851         * modules/truncl (Depends-on): Add trunc. Update conditions.
24853 2011-10-09  Bruno Haible  <bruno@clisp.org>
24855         ceill: Simplify for platforms where 'long double' == 'double'.
24856         * lib/ceill.c: Include <config.h>.
24857         (ceill) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
24858         * lib/ceil.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
24859         time.
24860         * m4/ceill.m4 (gl_FUNC_CEILL): Require gl_LONG_DOUBLE_VS_DOUBLE.
24861         Determine CEILL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
24862         * modules/ceill (Depends-on): Add ceil. Update conditions.
24864 2011-10-09  Bruno Haible  <bruno@clisp.org>
24866         floorl: Simplify for platforms where 'long double' == 'double'.
24867         * lib/floorl.c: Include <config.h>.
24868         (floorl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
24869         * lib/floor.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
24870         time.
24871         * m4/floorl.m4 (gl_FUNC_FLOORL): Require gl_LONG_DOUBLE_VS_DOUBLE.
24872         Determine FLOORL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
24873         * modules/floorl (Depends-on): Add floor. Update conditions.
24875 2011-10-09  Bruno Haible  <bruno@clisp.org>
24877         rint: Fix ordering constraints.
24878         * m4/rint.m4 (gl_FUNC_RINT): Require gl_MATH_H_DEFAULTS.
24879         * m4/rintf.m4 (gl_FUNC_RINTF): Likewise.
24880         * m4/rintl.m4 (gl_FUNC_RINTL): Likewise.
24882 2011-10-09  Bruno Haible  <bruno@clisp.org>
24884         copysignl: Simplify for platforms where 'long double' == 'double'.
24885         * lib/copysignl.c (copysignl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
24886         alternative.
24887         * m4/copysignl.m4 (gl_FUNC_COPYSIGNL): Require gl_LONG_DOUBLE_VS_DOUBLE.
24888         Determine COPYSIGNL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
24889         * modules/copysignl (Depends-on): Add copysign. Update conditions.
24891 2011-10-09  Bruno Haible  <bruno@clisp.org>
24893         Tests for module 'rintl'.
24894         * modules/rintl-tests: New file.
24895         * tests/test-rintl.c: New file.
24897         New module 'rintl'.
24898         * lib/math.in.h (rintl): New declaration.
24899         * lib/rintl.c: New file.
24900         * m4/rintl.m4: New file.
24901         * m4/math_h.m4 (gl_MATH_H): Test whether rintl is declared.
24902         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINTL, HAVE_RINTL.
24903         * modules/math (Makefile.am): Substitute GNULIB_RINTL, HAVE_RINTL.
24904         * modules/rintl: New file.
24905         * tests/test-math-c++.cc: Check the declaration of rintl.
24906         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
24907         $(RINTL_LIBM). Needed on IRIX 6.5 with cc.
24908         * doc/posix-functions/rintl.texi: Mention the new module.
24910 2011-10-09  Bruno Haible  <bruno@clisp.org>
24912         Tests for module 'rintf'.
24913         * modules/rintf-tests: New file.
24914         * tests/test-rintf.c: New file.
24916         New module 'rintf'.
24917         * lib/math.in.h (rintf): New declaration.
24918         * lib/rintf.c: New file.
24919         * m4/rintf.m4: New file.
24920         * m4/math_h.m4 (gl_MATH_H): Test whether rintf is declared.
24921         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINTF, HAVE_RINTF.
24922         * modules/math (Makefile.am): Substitute GNULIB_RINTF, HAVE_RINTF.
24923         * modules/rintf: New file.
24924         * tests/test-math-c++.cc: Check the declaration of rintf.
24925         * doc/posix-functions/rintf.texi: Mention the new module.
24927 2011-10-09  Bruno Haible  <bruno@clisp.org>
24929         rint: Support for MSVC.
24930         * lib/math.in.h (rint): New declaration.
24931         * lib/rint.c: New file.
24932         * m4/rint.m4: New file.
24933         * m4/math_h.m4 (gl_MATH_H): Test whether rint is declared.
24934         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINT, HAVE_RINT.
24935         * modules/math (Makefile.am): Substitute GNULIB_RINT, HAVE_RINT.
24936         * modules/rint (Description): Fix.
24937         (Files): Add lib/rint.c, m4/rint.m4.
24938         (Depends-on): Add math.
24939         (configure.ac): Invoke gl_FUNC_RINT, AC_LIBOBJ,
24940         gl_MATH_MODULE_INDICATOR.
24941         * tests/test-math-c++.cc: Check the declaration of rint.
24942         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
24943         $(RINT_LIBM). Needed on IRIX 6.5 with cc.
24944         * doc/posix-functions/rint.texi: Mention the replacement provided by
24945         the module.
24947         rint tests: More tests.
24948         * tests/test-rint.c: Include <float.h>, <stdio.h>, isnand-nolibm.h,
24949         minus-zero.h, infinity.h, nan.h.
24950         (main): Skip the test if the current rounding mode is not standard. Add
24951         tests for negative numbers, minus zero, infinity, NaN.
24952         * modules/rint-tests (Files): Add tests/minus-zero.h, tests/infinity.h,
24953         tests/nan.h.
24954         (Depends-on): Add isnand-nolibm.
24956 2011-10-09  Bruno Haible  <bruno@clisp.org>
24958         Tests for module 'copysignl'.
24959         * modules/copysignl-tests: New file.
24960         * tests/test-copysignl.c: New file.
24962         New module 'copysignl'.
24963         * lib/math.in.h (copysignl): New declaration.
24964         * lib/copysignl.c: New file.
24965         * m4/copysignl.m4: New file.
24966         * m4/math_h.m4 (gl_MATH_H): Test whether copysignl is declared.
24967         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGNL, HAVE_COPYSIGNL.
24968         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGNL,
24969         HAVE_COPYSIGNL.
24970         * modules/copysignl: New file.
24971         * tests/test-math-c++.cc: Check the declaration of copysignl.
24972         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
24973         $(COPYSIGNL_LIBM). Needed on IRIX 6.5 with cc.
24974         * doc/posix-functions/copysignl.texi: Mention the new module.
24976 2011-10-09  Bruno Haible  <bruno@clisp.org>
24978         Tests for module 'copysignf'.
24979         * modules/copysignf-tests: New file.
24980         * tests/test-copysignf.c: New file.
24982         New module 'copysignf'.
24983         * lib/math.in.h (copysignf): New declaration.
24984         * lib/copysignf.c: New file.
24985         * m4/copysignf.m4: New file.
24986         * m4/math_h.m4 (gl_MATH_H): Test whether copysignf is declared.
24987         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGNF, HAVE_COPYSIGNF.
24988         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGNF,
24989         HAVE_COPYSIGNF.
24990         * modules/copysignf: New file.
24991         * tests/test-math-c++.cc: Check the declaration of copysignf.
24992         * doc/posix-functions/copysignf.texi: Mention the new module.
24994 2011-10-09  Bruno Haible  <bruno@clisp.org>
24996         Ensure that HAVE_* variables are set to 1 before they are set to 0.
24997         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Require gl_DIRENT_H_DEFAULTS.
24998         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS.
24999         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
25000         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Require
25001         gl_SIGNAL_H_DEFAULTS.
25003 2011-10-09  Bruno Haible  <bruno@clisp.org>
25005         poll: Make macro safer.
25006         * m4/poll.m4 (gl_FUNC_POLL): Complain if, after invoking gl_POLL_H,
25007         ac_cv_header_poll_h is not set.
25009 2011-10-09  Bruno Haible  <bruno@clisp.org>
25011         copysign: Provide replacement.
25012         * lib/math.in.h (copysign): New declaration.
25013         * lib/copysign.c: New file.
25014         * m4/copysign.m4: New file.
25015         * m4/math_h.m4 (gl_MATH_H): Test whether copysign is declared.
25016         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGN, HAVE_COPYSIGN.
25017         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGN,
25018         HAVE_COPYSIGN.
25019         * modules/copysign (Description): Clarify.
25020         (Files): Add lib/copysign.c, m4/copysign.m4.
25021         (Depends-on): Add math, signbit.
25022         (configure.ac): Invoke gl_FUNC_COPYSIGN, AC_LIBOBJ,
25023         gl_MATH_MODULE_INDICATOR.
25024         * tests/test-math-c++.cc: Check the declaration of copysign.
25025         * doc/posix-functions/copysign.texi: Mention the effects of the module
25026         on Minix and MSVC.
25028 2011-10-09  Bruno Haible  <bruno@clisp.org>
25030         isinf: Ensure macro on AIX 5.1.
25031         * m4/isinf.m4 (gl_ISINF): Also test whether isinf is defined as a
25032         macro.
25033         * doc/posix-functions/isinf.texi: Mention also AIX 5.1 as deficient.
25035 2011-10-09  Bruno Haible  <bruno@clisp.org>
25037         *printf-posix tests: Fix for platforms where 'long double' == 'double'.
25038         * modules/snprintf-posix-tests (configure.ac): Require
25039         gl_LONG_DOUBLE_VS_DOUBLE.
25040         * modules/sprintf-posix-tests (configure.ac): Likewise.
25041         * modules/vasnprintf-posix-tests (configure.ac): Likewise.
25042         * modules/vasprintf-posix-tests (configure.ac): Likewise.
25043         * modules/vsnprintf-posix-tests (configure.ac): Likewise.
25044         * modules/vsprintf-posix-tests (configure.ac): Likewise.
25045         * tests/test-snprintf-posix.h (test_function): Avoid 80-bit long double
25046         tests on platforms where 'long double' is the same as 'double'.
25047         * tests/test-sprintf-posix.h (test_function): Likewise.
25048         * tests/test-vasnprintf-posix.c (test_function): Likewise.
25049         * tests/test-vasprintf-posix.c (test_function): Likewise.
25051         *printf: Fix for platforms where 'long double' == 'double'.
25052         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
25053         gl_LONG_DOUBLE_VS_DOUBLE. Don't blindly assume 80-bit 'long double'.
25054         * modules/dprintf-posix (Files): Add m4/math_h.m4.
25055         * modules/fprintf-posix (Files): Likewise.
25056         * modules/obstack-printf-posix (Files): Likewise.
25057         * modules/snprintf-posix (Files): Likewise.
25058         * modules/sprintf-posix (Files): Likewise.
25059         * modules/vasnprintf (Files): Likewise.
25060         * modules/vasnprintf-posix (Files): Likewise.
25061         * modules/vasprintf-posix (Files): Likewise.
25062         * modules/vdprintf-posix (Files): Likewise.
25063         * modules/vfprintf-posix (Files): Likewise.
25064         * modules/vsnprintf-posix (Files): Likewise.
25065         * modules/vsprintf-posix (Files): Likewise.
25066         * modules/unistdio/u8-vasnprintf (Files): Likewise.
25067         * modules/unistdio/u8-u8-vasnprintf (Files): Likewise.
25068         * modules/unistdio/u16-vasnprintf (Files): Likewise.
25069         * modules/unistdio/u16-u16-vasnprintf (Files): Likewise.
25070         * modules/unistdio/u32-vasnprintf (Files): Likewise.
25071         * modules/unistdio/u32-u32-vasnprintf (Files): Likewise.
25072         * modules/unistdio/ulc-vasnprintf (Files): Likewise.
25074         isnanl[-nolibm]: Fix for platforms where 'long double' == 'double'.
25075         * lib/isnan.c (rpl_isnanl): Don't blindly assume 80-bit 'long double'.
25076         * m4/isnanl.m4 (gl_PREREQ_ISNANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
25077         (gl_FUNC_ISNANL_WORKS): Likewise. Don't blindly assume 80-bit
25078         'long double'.
25079         * modules/isnanl-nolibm (Files): Add m4/math_h.m4.
25081         isinf: Fix for platforms where 'long double' == 'double'.
25082         * m4/isinf.m4 (gl_ISINFL_WORKS): Require gl_LONG_DOUBLE_VS_DOUBLE.
25083         Don't blindly assume 80-bit 'long double'.
25085         isfinite: Fix for platforms where 'long double' == 'double'.
25086         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Require gl_LONG_DOUBLE_VS_DOUBLE.
25087         Don't blindly assume 80-bit 'long double'.
25089         isfinite, isinf, isnan tests: Avoid syntax error on MSVC 9.
25090         * m4/math_h.m4 (gl_LONG_DOUBLE_VS_DOUBLE): New macro.
25091         * modules/isfinite-tests (configure.ac): Require
25092         gl_LONG_DOUBLE_VS_DOUBLE.
25093         * modules/isinf-tests (configure.ac): Likewise.
25094         * modules/isnan-tests (configure.ac): Likewise.
25095         * modules/isnanl-tests (configure.ac): Likewise.
25096         * modules/isnanl-nolibm-tests (configure.ac): Likewise.
25097         * tests/test-isfinite.c (test_isfinitel): Avoid 80-bit long double
25098         tests on platforms where 'long double' is the same as 'double'.
25099         * tests/test-isinf.c (test_isinfl): Likewise.
25100         * tests/test-isnan.c (test_long_double): Likewise.
25101         * tests/test-isnanl.h (main): Likewise.
25103 2011-10-08  Bruno Haible  <bruno@clisp.org>
25105         Tests for module 'tanhf'.
25106         * modules/tanhf-tests: New file.
25107         * tests/test-tanhf.c: New file.
25109         New module 'tanhf'.
25110         * lib/math.in.h (tanhf): New declaration.
25111         * lib/tanhf.c: New file.
25112         * m4/tanhf.m4: New file.
25113         * m4/math_h.m4 (gl_MATH_H): Test whether tanhf is declared.
25114         (gl_MATH_H_DEFAULTS): Initialize GNULIB_TANHF, HAVE_TANHF.
25115         * modules/math (Makefile.am): Substitute GNULIB_TANHF, HAVE_TANHF.
25116         * modules/tanhf: New file.
25117         * tests/test-math-c++.cc: Check the declaration of tanhf.
25118         * doc/posix-functions/tanhf.texi: Mention the new module.
25120         tanh: Use a .m4 file.
25121         * m4/tanh.m4: New file.
25122         * modules/tanh (Files): Add it.
25123         (configure.ac): Just invoke gl_FUNC_TANH.
25125 2011-10-08  Bruno Haible  <bruno@clisp.org>
25127         Tests for module 'coshf'.
25128         * modules/coshf-tests: New file.
25129         * tests/test-coshf.c: New file.
25131         New module 'coshf'.
25132         * lib/math.in.h (coshf): New declaration.
25133         * lib/coshf.c: New file.
25134         * m4/coshf.m4: New file.
25135         * m4/math_h.m4 (gl_MATH_H): Test whether coshf is declared.
25136         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COSHF, HAVE_COSHF.
25137         * modules/math (Makefile.am): Substitute GNULIB_COSHF, HAVE_COSHF.
25138         * modules/coshf: New file.
25139         * tests/test-math-c++.cc: Check the declaration of coshf.
25140         * doc/posix-functions/coshf.texi: Mention the new module.
25142         cosh: Use a .m4 file.
25143         * m4/cosh.m4: New file.
25144         * modules/cosh (Files): Add it.
25145         (configure.ac): Just invoke gl_FUNC_COSH.
25147 2011-10-08  Bruno Haible  <bruno@clisp.org>
25149         Tests for module 'sinhf'.
25150         * modules/sinhf-tests: New file.
25151         * tests/test-sinhf.c: New file.
25153         New module 'sinhf'.
25154         * lib/math.in.h (sinhf): New declaration.
25155         * lib/sinhf.c: New file.
25156         * m4/sinhf.m4: New file.
25157         * m4/math_h.m4 (gl_MATH_H): Test whether sinhf is declared.
25158         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SINHF, HAVE_SINHF.
25159         * modules/math (Makefile.am): Substitute GNULIB_SINHF, HAVE_SINHF.
25160         * modules/sinhf: New file.
25161         * tests/test-math-c++.cc: Check the declaration of sinhf.
25162         * doc/posix-functions/sinhf.texi: Mention the new module.
25164         sinh: Use a .m4 file.
25165         * m4/sinh.m4: New file.
25166         * modules/sinh (Files): Add it.
25167         (configure.ac): Just invoke gl_FUNC_SINH.
25169 2011-10-08  Bruno Haible  <bruno@clisp.org>
25171         Tests for module 'atan2f'.
25172         * modules/atan2f-tests: New file.
25173         * tests/test-atan2f.c: New file.
25175         New module 'atan2f'.
25176         * lib/math.in.h (atan2f): New declaration.
25177         * lib/atan2f.c: New file.
25178         * m4/atan2f.m4: New file.
25179         * m4/math_h.m4 (gl_MATH_H): Test whether atan2f is declared.
25180         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ATAN2F, HAVE_ATAN2F.
25181         * modules/math (Makefile.am): Substitute GNULIB_ATAN2F, HAVE_ATAN2F.
25182         * modules/atan2f: New file.
25183         * tests/test-math-c++.cc: Check the declaration of atan2f.
25184         * doc/posix-functions/atan2f.texi: Mention the new module.
25186         atan2: Use a .m4 file.
25187         * m4/atan2.m4: New file.
25188         * modules/atan2 (Files): Add it.
25189         (configure.ac): Just invoke gl_FUNC_ATAN2.
25191 2011-10-08  Bruno Haible  <bruno@clisp.org>
25193         Tests for module 'atanf'.
25194         * modules/atanf-tests: New file.
25195         * tests/test-atanf.c: New file.
25197         New module 'atanf'.
25198         * lib/math.in.h (atanf): New declaration.
25199         * lib/atanf.c: New file.
25200         * m4/atanf.m4: New file.
25201         * m4/math_h.m4 (gl_MATH_H): Test whether atanf is declared.
25202         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ATANF, HAVE_ATANF.
25203         * modules/math (Makefile.am): Substitute GNULIB_ATANF, HAVE_ATANF.
25204         * modules/atanf: New file.
25205         * tests/test-math-c++.cc: Check the declaration of atanf.
25206         * doc/posix-functions/atanf.texi: Mention the new module.
25208         atan: Use a .m4 file.
25209         * m4/atan.m4: New file.
25210         * modules/atan (Files): Add it.
25211         (configure.ac): Just invoke gl_FUNC_ATAN.
25213 2011-10-08  Bruno Haible  <bruno@clisp.org>
25215         Tests for module 'acosf'.
25216         * modules/acosf-tests: New file.
25217         * tests/test-acosf.c: New file.
25219         New module 'acosf'.
25220         * lib/math.in.h (acosf): New declaration.
25221         * lib/acosf.c: New file.
25222         * m4/acosf.m4: New file.
25223         * m4/math_h.m4 (gl_MATH_H): Test whether acosf is declared.
25224         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ACOSF, HAVE_ACOSF.
25225         * modules/math (Makefile.am): Substitute GNULIB_ACOSF, HAVE_ACOSF.
25226         * modules/acosf: New file.
25227         * tests/test-math-c++.cc: Check the declaration of acosf.
25228         * doc/posix-functions/acosf.texi: Mention the new module.
25230         acos: Use a .m4 file.
25231         * m4/acos.m4: New file.
25232         * modules/acos (Files): Add it.
25233         (configure.ac): Just invoke gl_FUNC_ACOS.
25235 2011-10-08  Bruno Haible  <bruno@clisp.org>
25237         Tests for module 'asinf'.
25238         * modules/asinf-tests: New file.
25239         * tests/test-asinf.c: New file.
25241         New module 'asinf'.
25242         * lib/math.in.h (asinf): New declaration.
25243         * lib/asinf.c: New file.
25244         * m4/asinf.m4: New file.
25245         * m4/math_h.m4 (gl_MATH_H): Test whether asinf is declared.
25246         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ASINF, HAVE_ASINF.
25247         * modules/math (Makefile.am): Substitute GNULIB_ASINF, HAVE_ASINF.
25248         * modules/asinf: New file.
25249         * tests/test-math-c++.cc: Check the declaration of asinf.
25250         * doc/posix-functions/asinf.texi: Mention the new module.
25252         asin: Use a .m4 file.
25253         * m4/asin.m4: New file.
25254         * modules/asin (Files): Add it.
25255         (configure.ac): Just invoke gl_FUNC_ASIN.
25257 2011-10-08  Bruno Haible  <bruno@clisp.org>
25259         Tests for module 'tanf'.
25260         * modules/tanf-tests: New file.
25261         * tests/test-tanf.c: New file.
25263         New module 'tanf'.
25264         * lib/math.in.h (tanf): New declaration.
25265         * lib/tanf.c: New file.
25266         * m4/tanf.m4: New file.
25267         * m4/math_h.m4 (gl_MATH_H): Test whether tanf is declared.
25268         (gl_MATH_H_DEFAULTS): Initialize GNULIB_TANF, HAVE_TANF.
25269         * modules/math (Makefile.am): Substitute GNULIB_TANF, HAVE_TANF.
25270         * modules/tanf: New file.
25271         * tests/test-math-c++.cc: Check the declaration of tanf.
25272         * doc/posix-functions/tanf.texi: Mention the new module.
25274         tan: Use a .m4 file.
25275         * m4/tan.m4: New file.
25276         * modules/tan (Files): Add it.
25277         (configure.ac): Just invoke gl_FUNC_TAN.
25279 2011-10-08  Bruno Haible  <bruno@clisp.org>
25281         Tests for module 'cosf'.
25282         * modules/cosf-tests: New file.
25283         * tests/test-cosf.c: New file.
25285         New module 'cosf'.
25286         * lib/math.in.h (cosf): New declaration.
25287         * lib/cosf.c: New file.
25288         * m4/cosf.m4: New file.
25289         * m4/math_h.m4 (gl_MATH_H): Test whether cosf is declared.
25290         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COSF, HAVE_COSF.
25291         * modules/math (Makefile.am): Substitute GNULIB_COSF, HAVE_COSF.
25292         * modules/cosf: New file.
25293         * tests/test-math-c++.cc: Check the declaration of cosf.
25294         * doc/posix-functions/cosf.texi: Mention the new module.
25296         cos: Use a .m4 file.
25297         * m4/cos.m4: New file.
25298         * modules/cos (Files): Add it.
25299         (configure.ac): Just invoke gl_FUNC_COS.
25301 2011-10-08  Bruno Haible  <bruno@clisp.org>
25303         Tests for module 'sinf'.
25304         * modules/sinf-tests: New file.
25305         * tests/test-sinf.c: New file.
25307         New module 'sinf'.
25308         * lib/math.in.h (sinf): New declaration.
25309         * lib/sinf.c: New file.
25310         * m4/sinf.m4: New file.
25311         * m4/math_h.m4 (gl_MATH_H): Test whether sinf is declared.
25312         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SINF, HAVE_SINF.
25313         * modules/math (Makefile.am): Substitute GNULIB_SINF, HAVE_SINF.
25314         * modules/sinf: New file.
25315         * tests/test-math-c++.cc: Check the declaration of sinf.
25316         * doc/posix-functions/sinf.texi: Mention the new module.
25318         sin: Use a .m4 file.
25319         * m4/sin.m4: New file.
25320         * modules/sin (Files): Add it.
25321         (configure.ac): Just invoke gl_FUNC_SIN.
25323 2011-10-08  Bruno Haible  <bruno@clisp.org>
25325         Tests for module 'powf'.
25326         * modules/powf-tests: New file.
25327         * tests/test-powf.c: New file.
25329         New module 'powf'.
25330         * lib/math.in.h (powf): New declaration.
25331         * lib/powf.c: New file.
25332         * m4/powf.m4: New file.
25333         * m4/math_h.m4 (gl_MATH_H): Test whether powf is declared.
25334         (gl_MATH_H_DEFAULTS): Initialize GNULIB_POWF, HAVE_POWF.
25335         * modules/math (Makefile.am): Substitute GNULIB_POWF, HAVE_POWF.
25336         * modules/powf: New file.
25337         * tests/test-math-c++.cc: Check the declaration of powf.
25338         * doc/posix-functions/powf.texi: Mention the new module.
25340         pow: Use a .m4 file.
25341         * m4/pow.m4: New file.
25342         * modules/pow (Files): Add it.
25343         (configure.ac): Just invoke gl_FUNC_POW.
25345 2011-10-08  Bruno Haible  <bruno@clisp.org>
25347         Tests for module 'log10f'.
25348         * modules/log10f-tests: New file.
25349         * tests/test-log10f.c: New file.
25351         New module 'log10f'.
25352         * lib/math.in.h (log10f): New declaration.
25353         * lib/log10f.c: New file.
25354         * m4/log10f.m4: New file.
25355         * m4/math_h.m4 (gl_MATH_H): Test whether log10f is declared.
25356         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10F, HAVE_LOG10F.
25357         * modules/math (Makefile.am): Substitute GNULIB_LOG10F, HAVE_LOG10F.
25358         * modules/log10f: New file.
25359         * tests/test-math-c++.cc: Check the declaration of log10f.
25360         * doc/posix-functions/log10f.texi: Mention the new module.
25362         log10: Use a .m4 file.
25363         * m4/log10.m4: New file.
25364         * modules/log10 (Files): Add it.
25365         (configure.ac): Just invoke gl_FUNC_LOG10.
25367 2011-10-08  Bruno Haible  <bruno@clisp.org>
25369         Tests for module 'logf'.
25370         * modules/logf-tests: New file.
25371         * tests/test-logf.c: New file.
25373         New module 'logf'.
25374         * lib/math.in.h (logf): New declaration.
25375         * lib/logf.c: New file.
25376         * m4/logf.m4: New file.
25377         * m4/math_h.m4 (gl_MATH_H): Test whether logf is declared.
25378         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGF, HAVE_LOGF.
25379         * modules/math (Makefile.am): Substitute GNULIB_LOGF, HAVE_LOGF.
25380         * modules/logf: New file.
25381         * tests/test-math-c++.cc: Check the declaration of logf.
25382         * doc/posix-functions/logf.texi: Mention the new module.
25384         log: Use a .m4 file.
25385         * m4/log.m4: New file.
25386         * modules/log (Files): Add it.
25387         (configure.ac): Just invoke gl_FUNC_LOG.
25389 2011-10-08  Bruno Haible  <bruno@clisp.org>
25391         Tests for module 'expf'.
25392         * modules/expf-tests: New file.
25393         * tests/test-expf.c: New file.
25395         New module 'expf'.
25396         * lib/math.in.h (expf): New declaration.
25397         * lib/expf.c: New file.
25398         * m4/expf.m4: New file.
25399         * m4/math_h.m4 (gl_MATH_H): Test whether expf is declared.
25400         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPF, HAVE_EXPF.
25401         * modules/math (Makefile.am): Substitute GNULIB_EXPF, HAVE_EXPF.
25402         * modules/expf: New file.
25403         * tests/test-math-c++.cc: Check the declaration of expf.
25404         * doc/posix-functions/expf.texi: Mention the new module.
25406         exp: Use a .m4 file.
25407         * m4/exp.m4: New file.
25408         * modules/exp (Files): Add it.
25409         (configure.ac): Just invoke gl_FUNC_EXP.
25411 2011-10-08  Bruno Haible  <bruno@clisp.org>
25413         Tests for module 'sqrtf'.
25414         * modules/sqrtf-tests: New file.
25415         * tests/test-sqrtf.c: New file.
25417         New module 'sqrtf'.
25418         * lib/math.in.h (sqrtf): New declaration.
25419         * lib/sqrtf.c: New file.
25420         * m4/sqrtf.m4: New file.
25421         * m4/math_h.m4 (gl_MATH_H): Test whether sqrtf is declared.
25422         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SQRTF, HAVE_SQRTF.
25423         * modules/math (Makefile.am): Substitute GNULIB_SQRTF, HAVE_SQRTF.
25424         * modules/sqrtf: New file.
25425         * tests/test-math-c++.cc: Check the declaration of sqrtf.
25426         * doc/posix-functions/sqrtf.texi: Mention the new module.
25428 2011-10-08  Bruno Haible  <bruno@clisp.org>
25430         Tests: Avoid link failures w.r.t. libintl.
25431         * modules/faccessat-tests (Makefile.am): Link test-faccessat against
25432         $(LIBINTL).
25433         * modules/fchdir-tests (Makefile.am): Link test-fchdir against
25434         $(LIBINTL).
25435         * modules/getcwd-lgpl-tests (Makefile.am): Link test-getcwd-lgpl
25436         against $(LIBINTL).
25437         * modules/getcwd-tests (Makefile.am): Link test-getcwd against
25438         $(LIBINTL).
25439         * modules/openat-tests (Makefile.am): Link test-fchmodat against
25440         $(LIBINTL).
25441         * modules/stat-tests (Makefile.am): Link test-stat against $(LIBINTL).
25443 2011-10-08  Bruno Haible  <bruno@clisp.org>
25445         pow tests: Defeat compiler optimizations.
25446         * tests/test-pow.c (main): Assign arguments to x and y before use.
25448 2011-10-08  Bruno Haible  <bruno@clisp.org>
25450         gnulib-tool: Improve last commit.
25451         * gnulib-tool (func_modules_transitive_closure): Simplify code.
25452         (func_emit_autoconf_snippets): Instead of invoking func_acceptable,
25453         ignore dependencies that are not among the modules list.
25455 2011-10-07  Paul Eggert  <eggert@cs.ucla.edu>
25457         gnulib-tool: don't follow dependencies to avoided modules
25458         This fixes a bug that is related to the previous one.
25459         * gnulib-tool (func_modules_transitive_closure)
25460         (func_emit_autoconf_snippets):
25461         Check whether a dependency is acceptable before using it.
25462         (--extract-dependencies): Report an error if --avoid is also used,
25463         since this combination of options is not yet supported.
25465         gnulib-tool: fix typo that broke Emacs on powerpc-apple-darwin9.8.0.
25466         Problem reported by Peter Dyballa in
25467         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=9696>.
25468         * gnulib-tool (func_emit_autoconf_snippets): Quote with "", not '',
25469         when echoing "$condition".
25471 2011-10-07  Bruno Haible  <bruno@clisp.org>
25473         Fix documentation about math functions on MacOS X.
25474         * doc/posix-functions/exp2.texi: Don't say the function is missing on
25475         MacOS X 10.5.
25476         * doc/posix-functions/fdim.texi: Likewise.
25477         * doc/posix-functions/feclearexcept.texi: Likewise.
25478         * doc/posix-functions/fegetenv.texi: Likewise.
25479         * doc/posix-functions/fegetround.texi: Likewise.
25480         * doc/posix-functions/feholdexcept.texi: Likewise.
25481         * doc/posix-functions/feraiseexcept.texi: Likewise.
25482         * doc/posix-functions/fesetenv.texi: Likewise.
25483         * doc/posix-functions/fesetround.texi: Likewise.
25484         * doc/posix-functions/fetestexcept.texi: Likewise.
25485         * doc/posix-functions/feupdateenv.texi: Likewise.
25486         * doc/posix-functions/fmax.texi: Likewise.
25487         * doc/posix-functions/fmin.texi: Likewise.
25488         * doc/posix-functions/log2.texi: Likewise.
25489         * doc/posix-functions/modff.texi: Likewise.
25490         * doc/posix-functions/nan.texi: Likewise.
25491         * doc/posix-functions/nanf.texi: Likewise.
25492         * doc/posix-functions/nextafterf.texi: Likewise.
25493         * doc/posix-functions/remquo.texi: Likewise.
25495 2011-10-07  Bruno Haible  <bruno@clisp.org>
25497         modff: Drop assumption about library that defines modff.
25498         * m4/modff.m4 (gl_FUNC_MODFF): Use gl_MATHFUNC macro instead of
25499         AC_CHECK_FUNCS.
25500         * modules/modff (Files): Add m4/mathfunc.m4.
25502 2011-10-07  Bernhard Voelker  <mail@bernhard-voelker.de>
25504         raise tests: Avoid a GCC warning.
25505         * tests/test-raise.c (handler): Use _Noreturn.
25507 2011-10-07  Bruno Haible  <bruno@clisp.org>
25509         Tests for module 'ldexpf'.
25510         * modules/ldexpf-tests: New file.
25511         * tests/test-ldexpf.c: New file.
25513         New module 'ldexpf'.
25514         * lib/math.in.h (ldexpf): New declaration.
25515         * lib/ldexpf.c: New file.
25516         * m4/ldexpf.m4: New file.
25517         * m4/math_h.m4 (gl_MATH_H): Test whether ldexpf is declared.
25518         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LDEXPF, HAVE_LDEXPF.
25519         * modules/math (Makefile.am): Substitute GNULIB_LDEXPF, HAVE_LDEXPF.
25520         * modules/ldexpf: New file.
25521         * tests/test-math-c++.cc: Check the declaration of ldexpf.
25522         * doc/posix-functions/ldexpf.texi: Mention the new module.
25524 2011-10-06  Bruno Haible  <bruno@clisp.org>
25526         frexpf: Work around problems on IRIX and mingw.
25527         * lib/math.in.h (frexpf): Consider also REPLACE_FREXPF.
25528         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPF.
25529         * m4/frexpf.m4 (gl_FUNC_FREXPF_WORKS): New macro.
25530         (gl_FUNC_FREXPF): Invoke it. Set REPLACE_FREXPF.
25531         * modules/frexpf (Depends-on, configure.ac): Consider REPLACE_FREXPF.
25532         * modules/math (Makefile.am): Substitute REPLACE_FREXPF.
25533         * doc/posix-functions/frexpf.texi: Mention the IRIX and mingw problems.
25535 2011-10-06  Bruno Haible  <bruno@clisp.org>
25537         fabsf: Drop assumption about library that defines fabsf.
25538         * m4/fabsf.m4 (gl_FUNC_FABSF): Use gl_MATHFUNC macro instead of
25539         AC_CHECK_FUNCS.
25540         * modules/fabsf (Files): Add m4/mathfunc.m4.
25542 2011-10-06  Bruno Haible  <bruno@clisp.org>
25544         frexpf: Drop assumption about library that defines frexpf.
25545         * m4/mathfunc.m4 (gl_MATHFUNC): Support also the argument types
25546         'int *', 'float *', 'long double *', 'float', 'long double'.
25547         * m4/frexpf.m4 (gl_FUNC_FREXPF): Use gl_MATHFUNC macro instead of
25548         AC_CHECK_FUNCS.
25549         * modules/frexpf (Files): Add m4/mathfunc.m4.
25551         Tests for module 'frexpf'.
25552         * modules/frexpf-tests: New file.
25553         * tests/test-frexpf.c: New file.
25555         New module 'frexpf'.
25556         * lib/math.in.h (frexpf): New declaration.
25557         * lib/frexpf.c: New file.
25558         * m4/frexpf.m4: New file.
25559         * m4/math_h.m4 (gl_MATH_H): Test whether frexpf is declared.
25560         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPF, HAVE_FREXPF.
25561         * modules/math (Makefile.am): Substitute GNULIB_FREXPF, HAVE_FREXPF.
25562         * modules/frexpf: New file.
25563         * tests/test-math-c++.cc: Check the declaration of frexpf.
25564         * doc/posix-functions/frexpf.texi: Mention the new module.
25566 2011-10-06  Bruno Haible  <bruno@clisp.org>
25568         math: Sort function declarations of math.in.h.
25569         * lib/math.in.h (frexp, logb): Move declarations.
25571 2011-10-05  Bruno Haible  <bruno@clisp.org>
25573         Tests for module 'modff'.
25574         * modules/modff-tests: New file.
25575         * tests/test-modff.c: New file.
25577         New module 'modff'.
25578         * lib/math.in.h (modff): New declaration.
25579         * lib/modff.c: New file.
25580         * m4/modff.m4: New file.
25581         * m4/math_h.m4 (gl_MATH_H): Test whether modff is declared.
25582         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODFF, HAVE_MODFF.
25583         * modules/math (Makefile.am): Substitute GNULIB_MODFF, HAVE_MODFF.
25584         * modules/modff: New file.
25585         * tests/test-math-c++.cc: Check the declaration of modff.
25586         * doc/posix-functions/modff.texi: Mention the new module.
25588         modf tests: Make test sharper.
25589         * tests/test-modf.c (main): Strengthen upper bound.
25591         modf: Use a .m4 file.
25592         * m4/modf.m4: New file.
25593         * modules/modf (Files): Add it.
25594         (configure.ac): Just invoke gl_FUNC_MODF.
25596 2011-10-05  Bruno Haible  <bruno@clisp.org>
25598         Tests for module 'fmodf'.
25599         * modules/fmodf-tests: New file.
25600         * tests/test-fmodf.c: New file.
25602         New module 'fmodf'.
25603         * lib/math.in.h (fmodf): New declaration.
25604         * lib/fmodf.c: New file.
25605         * m4/fmodf.m4: New file.
25606         * m4/math_h.m4 (gl_MATH_H): Test whether fmodf is declared.
25607         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMODF, HAVE_FMODF.
25608         * modules/math (Makefile.am): Substitute GNULIB_FMODF, HAVE_FMODF.
25609         * modules/fmodf: New file.
25610         * tests/test-math-c++.cc: Check the declaration of fmodf.
25611         * doc/posix-functions/fmodf.texi: Mention the new module.
25613         fmod: Use a .m4 file.
25614         * m4/fmod.m4: New file.
25615         * modules/fmod (Files): Add it.
25616         (configure.ac): Just invoke gl_FUNC_FMOD.
25618 2011-10-05  Bruno Haible  <bruno@clisp.org>
25620         Tests for module 'fabsf'.
25621         * modules/fabsf-tests: New file.
25622         * tests/test-fabsf.c: New file.
25624         New module 'fabsf'.
25625         * lib/math.in.h (fabsf): New declaration.
25626         * lib/fabsf.c: New file.
25627         * m4/fabsf.m4: New file.
25628         * m4/math_h.m4 (gl_MATH_H): Test whether fabsf is declared.
25629         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FABSF, HAVE_FABSF.
25630         * modules/math (Makefile.am): Substitute GNULIB_FABSF, HAVE_FABSF.
25631         * modules/fabsf: New file.
25632         * tests/test-math-c++.cc: Check the declaration of fabsf.
25633         * doc/posix-functions/fabsf.texi: Mention the new module.
25635         fabs: Use a .m4 file.
25636         * m4/fabs.m4: New file.
25637         * modules/fabs (Files): Add it.
25638         (configure.ac): Just invoke gl_FUNC_FABS.
25640 2011-10-05  Jim Meyering  <meyering@redhat.com>
25642         file-has-acl: revert both recent changes, 80af92af and 95f7c57f
25643         * lib/file-has-acl.c: While the 2011-10-03 change does fix the
25644         ls -lL regression introduced in coreutils-8.12, it does so at the
25645         cost of an additional stat call in the common case.  Besides, now
25646         that the kernel change that prompted commit 95f7c57f has been reverted
25647         (see https://bugzilla.redhat.com/show_bug.cgi?id=720325#c24)
25648         we have no use for commit 95f7c57f, "file-has-acl: use
25649         acl_extended_file_nofollow if available".
25651 2011-10-03  Kamil Dudka  <kdudka@redhat.com>
25653         file-has-acl: revert unintended change in behavior of ls -L
25654         * lib/file-has-acl.c (acl_extended_file_wrap): New function,
25655         derived from...
25656         (file_has_acl): ...code here.  Call it.
25657         This problem was introduced with 2011-07-22 commit 95f7c57f,
25658         "file-has-acl: use acl_extended_file_nofollow if available".
25659         See http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28538
25661 2011-10-03  Bruno Haible  <bruno@clisp.org>
25663         poll: Avoid link errors on MSVC.
25664         * m4/poll.m4 (gl_FUNC_POLL): Determine LIB_POLL.
25665         * modules/poll (Depends-on): Add sockets.
25666         (Link): New section.
25667         * NEWS: Mention the change.
25668         * modules/poll-tests (Makefile.am): Link test-poll against $(LIB_POLL).
25669         * modules/poll-h-c++-tests (Makefile.am): Link test-poll-h-c++ against
25670         $(LIB_POLL) instead of $(LIBSOCKET).
25672 2011-10-03  Bruno Haible  <bruno@clisp.org>
25674         sys_select tests: Fix link error on MSVC 9.
25675         * modules/sys_select-c++-tests (Makefile.am): Link test-sys_select-c++
25676         with $(LIB_SELECT) instead of $(LIBSOCKET).
25678 2011-10-03  Bruno Haible  <bruno@clisp.org>
25680         sys_select: Fix compilation error on mingw.
25681         * lib/sys_select.in.h: On native Windows, include <io.h>.
25683 2011-10-03  Bruno Haible  <bruno@clisp.org>
25685         wmemset: Support for MSVC.
25686         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Use a small test program to test
25687         whether wmemset() exists.
25689 2011-10-03  Bruno Haible  <bruno@clisp.org>
25691         wmemmove: Support for MSVC.
25692         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Use a small test program to test
25693         whether wmemmove() exists.
25695 2011-10-03  Bruno Haible  <bruno@clisp.org>
25697         wmemcpy: Support for MSVC.
25698         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Use a small test program to test
25699         whether wmemcpy() exists.
25701 2011-10-03  Bruno Haible  <bruno@clisp.org>
25703         wmemcmp: Support for MSVC.
25704         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Use a small test program to test
25705         whether wmemcmp() exists.
25707 2011-10-03  Bruno Haible  <bruno@clisp.org>
25709         wmemchr: Support for MSVC.
25710         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Use a small test program to test
25711         whether wmemchr() exists.
25713 2011-10-03  Bruno Haible  <bruno@clisp.org>
25715         glthread/*, strsignal: Support for MSVC.
25716         * lib/glthread/cond.h: Define WIN32_LEAN_AND_MEAN, so as to avoid
25717         including <winsock.h> on MSVC 9.
25718         * lib/glthread/lock.h: Likewise.
25719         * lib/glthread/thread.h: Likewise.
25720         * lib/glthread/tls.h: Likewise.
25721         * lib/glthread/yield.h: Likewise.
25722         * lib/strsignal.c: Include <string.h> first. Don't include <unistd.h>
25723         if HAVE_UNISTD_H is false.
25724         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Test for <unistd.h>.
25726 2011-10-03  Bruno Haible  <bruno@clisp.org>
25728         nonblocking tests: Fix test failure on OpenBSD/SPARC64.
25729         * tests/test-nonblocking-socket.h (SOCKET_DATA_BLOCK_SIZE) [OpenBSD]:
25730         Set to 100000.
25732 2011-10-03  Bruno Haible  <bruno@clisp.org>
25734         acl: Fix specification.
25735         * lib/file-has-acl.c (file_has_acl): Fix specification.
25737 2011-10-03  Bruno Haible  <bruno@clisp.org>
25739         relocatable-lib[-lgpl]: Avoid expensive /proc access on Linux, Cygwin.
25740         * lib/relocatable.c (ENABLE_COSTLY_RELOCATABLE): New macro.
25741         (compute_curr_prefix, shared_library_fullname,
25742         find_shared_library_fullname, get_shared_library_fullname, relocate):
25743         Use it together with PIC && INSTALLDIR.
25744         Reported by <jojelino@gmail.com>
25745         via Charles Wilson <cygwin@cwilson.fastmail.fm>.
25747 2011-10-01  Jim Meyering  <meyering@redhat.com>
25749         maint.mk: adjust a release-related rule not to require use of gzip
25750         * top/maint.mk (writable-files): Don't hard-code use of .tar.gz.
25751         Instead, check each file in $(DIST_ARCHIVES).  This is better for
25752         projects that build only .tar.xz files.  Also fix an erroneous test.
25754         test-linkat: don't leave behind a temporary file
25755         * tests/test-linkat.c (main): Don't forget to remove a temporary file.
25756         Otherwise, coreutils' "make distcheck" would fail with this:
25757           Only in /c/cu/tests/torture/coreutils/test/\
25758             coreutils-8.13.22-d5caf.old/gnulib-tests: test-linkat.too
25759           make[2]: *** [my-distcheck] Error 1
25761         float, math: add omitted file
25762         * lib/itold.c: Add file, required for yesterday's float change.
25764 2011-10-01  Bruno Haible  <bruno@clisp.org>
25766         isinf: Fix for OpenBSD/x86.
25767         * m4/isinf.m4 (gl_ISINFL_WORKS): Also test the behaviour of isinf on
25768         pseudo-NaNs, pseudo-Infinities, and other non-IEEE values.
25769         * doc/posix-functions/isinf.texi: Mention the problem on OpenBSD/x86.
25771 2011-10-01  Bruno Haible  <bruno@clisp.org>
25773         isfinite: Fix syntax error in configure test.
25774         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Fix syntax error.
25776         isfinite: Fix typo.
25777         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): When cross-compiling, set
25778         gl_cv_func_isfinitel_works, not gl_cv_func_isnanl_works.
25780 2011-10-01  Bruno Haible  <bruno@clisp.org>
25782         nonblocking tests: Fix test failure on Linux/IA-64.
25783         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/IA-64]:
25784         Set to 270000.
25786 2011-10-01  Bruno Haible  <bruno@clisp.org>
25788         mkfifoat tests: Fix a test failure on mingw.
25789         * tests/test-mkfifoat.c (main): Allow mkfifoat or test_mknodat to fail
25790         with error ENOSYS.
25792 2011-09-30  Bruno Haible  <bruno@clisp.org>
25794         float, math: Fix 'int' to 'long double' conversion on Linux/SPARC64.
25795         * m4/float_h.m4 (gl_FLOAT_H): Test conversion from 'int' to
25796         'long double'. Set REPLACE_ITOLD.
25797         * lib/float.in.h (_Qp_itoq, _gl_float_fix_itold): New declarations.
25798         * lib/math.in.h (_Qp_itoq, _gl_math_fix_itold): New declarations.
25799         * lib/itold.c: New file.
25800         * modules/float (Files): Add lib/itold.c.
25801         (configure.ac): When REPLACE_ITOLD is 1, arrange to compile itold.c.
25802         (Makefile.am): Substitute REPLACE_ITOLD.
25803         * modules/math (Depends-on): Add float.
25804         (Makefile.am): Substitute REPLACE_ITOLD.
25805         * doc/posix-headers/float.texi: Mention problem on Linux/SPARC64.
25806         * doc/posix-headers/math.texi: Likewise.
25807         * doc/posix-functions/logl.texi: Likewise.
25809 2011-09-30  Bruno Haible  <bruno@clisp.org>
25811         nonblocking tests: Fix test failure on Linux/SPARC (32-bit and 64-bit).
25812         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/SPARC]:
25813         Set to 140000.
25815 2011-09-30  Bruno Haible  <bruno@clisp.org>
25817         gnulib-tool: Improve suggestion where to put gl_EARLY invocation.
25818         * gnulib-tool (func_import): If the configure.ac has an AC_PROG_CC_STDC
25819         invocation, say "right after AC_PROG_CC_STDC", not "right after
25820         AC_PROG_CC".
25821         Reported by Gary V. Vaughan <gary@gnu.org>.
25823 2011-09-30  Bruno Haible  <bruno@clisp.org>
25825         Centralize C99 requirement.
25826         * m4/gnulib-common.m4 (gl_PROG_CC_C99): New macro.
25827         * modules/stdarg (configure.ac-early): Invoke it instead of
25828         AC_PROG_CC_STDC.
25829         Reported by Gary V. Vaughan and Paul Eggert.
25831 2011-09-29  Bruno Haible  <bruno@clisp.org>
25833         float: Fix LDBL_MAX value on Linux/PowerPC.
25834         * m4/float_h.m4 (gl_FLOAT_H): Set FLOAT_H and REPLACE_FLOAT_LDBL also
25835         on Linux/PowerPC.
25836         * lib/float.in.h (LDBL_MAX): Redefine also on Linux/PowerPC.
25837         * lib/float.c (gl_LDBL_MAX): Also define on Linux/PowerPC.
25838         * doc/posix-headers/float.texi: Mention Linux/PowerPC as an affected
25839         platform.
25840         Reported by Andreas Metzler <ametzler@downhill.at.eu.org>.
25842 2011-09-29  Bruno Haible  <bruno@clisp.org>
25844         doc: Improve doc about gl_EARLY.
25845         * doc/gnulib-tool.texi (Initial import): Mention where to place an
25846         AC_PROG_CC_STDC invocation.
25847         Reported by Gary V. Vaughan <gary@gnu.org>.
25849 2011-09-28  Bruno Haible  <bruno@clisp.org>
25851         fgetc, fputc, fread, fwrite tests: Fix link error.
25852         * tests/test-fgetc.c (main): Don't invoke gl_msvc_inval_ensure_handler
25853         on non-MSVC platforms.
25854         * tests/test-fputc.c (main): Likewise.
25855         * tests/test-fread.c (main): Likewise.
25856         * tests/test-fwrite.c (main): Likewise.
25857         Reported by Jim Meyering.
25859 2011-09-27  Bruno Haible  <bruno@clisp.org>
25861         fputc, fwrite tests: Avoid test failure on MSVC.
25862         * tests/test-fgetc.c: Include msvc-inval.h.
25863         (main): Invoke gl_msvc_inval_ensure_handler.
25864         * tests/test-fputc.c: Include msvc-inval.h.
25865         (main): Invoke gl_msvc_inval_ensure_handler.
25866         * tests/test-fread.c: Include msvc-inval.h.
25867         (main): Invoke gl_msvc_inval_ensure_handler.
25868         * tests/test-fwrite.c: Include msvc-inval.h.
25869         (main): Invoke gl_msvc_inval_ensure_handler.
25870         * modules/fgetc-tests (Depends-on): Add msvc-inval.
25871         * modules/fputc-tests (Depends-on): Likewise.
25872         * modules/fread-tests (Depends-on): Likewise.
25873         * modules/fwrite-tests (Depends-on): Likewise.
25875 2011-09-27  Bruno Haible  <bruno@clisp.org>
25877         raise: Fix double declaration with modules 'sigprocmask' and 'sigpipe'.
25878         * lib/signal.in.h (GNULIB_defined_signal_blocking): New macro.
25879         (raise): Remove older, duplicated declaration.
25880         (_gl_raise_SIGPIPE): New declaration.
25881         * lib/sigprocmask.c (_gl_raise_SIGPIPE): New function.
25882         (rpl_raise): Remove function.
25883         * lib/raise.c (rpl_raise, raise): Merge into a single function. Handle
25884         a gnulib-defined SIGPIPE here.
25885         * m4/raise.m4 (gl_FUNC_RAISE): Set REPLACE_RAISE also if the module
25886         'sigprocmask' has detected missing signal-blocking and the module
25887         'sigpipe' is enabled.
25888         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
25890 2011-09-26  Gijs van Tulder  <gvtulder@gmail.com>
25892         base64-tests: avoid memory leak
25893         * tests/test-base64.c (main): Plug memory leak.
25895         base32: new module
25896         * modules/base32: New module.
25897         * lib/base32.c: New file.
25898         * lib/base32.h: Likewise.
25899         * m4/base32.m4: Likewise.
25900         * modules/base32-tests: New test.
25901         * tests/test-base32.c: Likewise.
25902         * MODULES.html.sh (Misc): Mention it.
25904 2011-09-26  Paul Eggert  <eggert@cs.ucla.edu>
25906         gnulib: use more-standard license notice wording
25907         * gnulib-tool (func_emit_copyright_notice): When emitting a
25908         license notice into a file, use the standard wording as suggested
25909         by the current information for GNU maintainers, except say "file"
25910         rather than "program".  The new wording gives a license version
25911         number, which addresses an issue raised by Glenn Morris in
25912         <http://lists.gnu.org/archive/html/bug-gnulib/2011-09/msg00397.html>.
25913         * m4/onceonly.m4: Use that same wording here, too.
25915         dup2: minor simplification
25916         * m4/dup2.m4 (gl_PREREQ_DUP2): Don't require AC_C_INLINE,
25917         as lib/dup2.c no longer uses 'inline'.
25919 2011-09-25  Bruno Haible  <bruno@clisp.org>
25921         strings: Fix compilation error on MSVC.
25922         * lib/strings.in.h: Include <stddef.h> for size_t.
25924 2011-09-25  Bruno Haible  <bruno@clisp.org>
25926         fflush et al.: Document limitation on MSVC.
25927         * doc/posix-functions/fflush.texi: Document possible crash in handling
25928         mode other than DEFAULT_HANDLING.
25929         * doc/posix-functions/fgetc.texi: Likewise.
25930         * doc/posix-functions/fputc.texi: Likewise.
25931         * doc/posix-functions/fread.texi: Likewise.
25932         * doc/posix-functions/fwrite.texi: Likewise.
25934 2011-09-25  Bruno Haible  <bruno@clisp.org>
25936         msvc-inval: Allow three invalid parameter handling modes.
25937         * lib/msvc-inval.h: Don't include <stdlib.h> here.
25938         (DEFAULT_HANDLING, HAIRY_LIBRARY_HANDLING, SANE_LIBRARY_HANDLING): New
25939         macros.
25940         (gl_msvc_inval_ensure_handler, TRY_MSVC_INVAL, CATCH_MSVC_INVAL,
25941         DONE_MSVC_INVAL): Implement DEFAULT_HANDLING. Treat
25942         SANE_LIBRARY_HANDLING as a no-op.
25943         * lib/msvc-inval.c: Treat SANE_LIBRARY_HANDLING as a no-op. Include
25944         <stdlib.h>.
25945         (gl_msvc_invalid_parameter_handler): Implement DEFAULT_HANDLING.
25947 2011-09-25  Bruno Haible  <bruno@clisp.org>
25949         msvc-inval: Make handler multithread-safe.
25950         * lib/msvc-inval.h (struct gl_msvc_inval_per_thread): New type.
25951         (gl_msvc_inval_restart, gl_msvc_inval_restart_valid): Remove
25952         declarations.
25953         (gl_msvc_inval_current): New declaration.
25954         (TRY_MSVC_INVAL, CATCH_MSVC_INVAL, DONE_MSVC_INVAL) [!_MSC_VER]:
25955         Operate on the structure returned by gl_msvc_inval_current().
25956         * lib/msvc-inval.c (gl_msvc_inval_restart, gl_msvc_inval_restart_valid):
25957         Remove varaiables.
25958         (tls_index, tls_initialized): New variables.
25959         (not_per_thread): New variable.
25960         (gl_msvc_inval_current): New function.
25961         (gl_msvc_invalid_parameter_handler) [!_MSC_VER]: Use the structure
25962         returned by gl_msvc_inval_current().
25964 2011-09-25  Bruno Haible  <bruno@clisp.org>
25966         msvc-inval: Install handler globally.
25967         * lib/msvc-inval.h (STATUS_GNULIB_INVALID_PARAMETER): Define also for
25968         !_MSC_VER.
25969         (gl_msvc_invalid_parameter_handler): Remove declaration.
25970         (gl_msvc_inval_restart_valid, gl_msvc_inval_ensure_handler): New
25971         declarations.
25972         (TRY_MSVC_INVAL, CATCH_MSVC_INVAL, DONE_MSVC_INVAL) [!_MSC_VER]:
25973         Install the handler globally, don't uninstall it.
25974         * lib/msvc-inval.c (gl_msvc_inval_restart_valid): New variable.
25975         (gl_msvc_invalid_parameter_handler): Make static. If the restart is not
25976         currently valid, call RaiseException instead.
25977         (gl_msvc_inval_initialized, gl_msvc_inval_ensure_handler): Define also
25978         for !_MSC_VER.
25980 2011-09-25  Bruno Haible  <bruno@clisp.org>
25982         strerror_r-posix: Fix for MSVC 9.
25983         * lib/strerror_r.c (local_snprintf): New function.
25984         (snprintf): Define to local_snprintf, not to _snprintf.
25986 2011-09-25  Bruno Haible  <bruno@clisp.org>
25988         ftruncate: Support for MSVC 9.
25989         * lib/ftruncate.c: Include errno.h, msvc-inval.h.
25990         (chsize_nothrow): New function.
25991         (chsize): Redefine as a macro.
25992         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): Require AC_C_INLINE.
25993         * modules/ftruncate (Depends-on): Add msvc-inval.
25995 2011-09-25  Bruno Haible  <bruno@clisp.org>
25997         New module 'fstat'.
25998         * lib/sys_stat.in.h (fstat): Declare only if GNULIB_FSTAT is set.
25999         * lib/fstat.c: New file, based on a piece of lib/fchdir.c.
26000         * lib/fchdir.c (rpl_fstat): Remove function.
26001         * m4/fstat.m4: New file.
26002         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_FSTAT.
26003         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Test whether fstat is
26004         declared.
26005         (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_FSTAT.
26006         * modules/sys_stat (Makefile.am): Substitute GNULIB_FSTAT.
26007         * modules/fstat: New file.
26008         * modules/sys_stat-tests (Depends-on): Remove fstat-tests.
26009         * tests/test-sys_stat-c++.cc (fstat): Check only if GNULIB_TEST_FSTAT
26010         is set.
26011         * doc/posix-functions/fstat.texi: Mention the new module and the
26012         problem on MSVC.
26013         * NEWS: Mention the change.
26014         * modules/acl (Depends-on): Add fstat.
26015         * modules/chdir-safer (Depends-on): Likewise.
26016         * modules/chown (Depends-on): Likewise.
26017         * modules/copy-file (Depends-on): Likewise.
26018         * modules/fchdir (Depends-on): Likewise.
26019         * modules/fdopendir (Depends-on): Likewise.
26020         * modules/fopen (Depends-on): Likewise.
26021         * modules/fts (Depends-on): Likewise.
26022         * modules/getcwd (Depends-on): Likewise.
26023         * modules/isapipe (Depends-on): Likewise.
26024         * modules/linkat (Depends-on): Likewise.
26025         * modules/lseek (Depends-on): Likewise.
26026         * modules/mkdir-p (Depends-on): Likewise.
26027         * modules/open (Depends-on): Likewise.
26028         * modules/openat (Depends-on): Likewise.
26029         * modules/read-file (Depends-on): Likewise.
26030         * modules/renameat (Depends-on): Likewise.
26031         * modules/utimens (Depends-on): Likewise.
26033 2011-09-25  Bruno Haible  <bruno@clisp.org>
26035         linkat: Fix compilation on MSVC 9.
26036         * lib/linkat.c: Don't include <stdint.h>.
26038 2011-09-25  Bruno Haible  <bruno@clisp.org>
26040         fclose: Support for MSVC 9.
26041         * lib/fclose.c: Include msvc-inval.h.
26042         (fclose_nothrow): New function.
26043         (rpl_fclose): Use it.
26044         * modules/fclose (Depends-on): Add msvc-inval.
26045         * doc/posix-functions/fclose.texi: Mention the problem on MSVC.
26047 2011-09-24  Paul Eggert  <eggert@cs.ucla.edu>
26049         dup2: minor simplifications
26050         * lib/dup2.c (ms_windows_dup2): Omit 'inline' as it's not clear
26051         that it's a performance win.
26052         (rpl_dup2): Change "if !((defined _WIN32 || defined __WIN32__) &&
26053         ! defined __CYGWIN__)" to "ifdef F_GETFL".
26055 2011-09-24  Jim Meyering  <meyering@redhat.com>
26057         test-futimens: avoid a warning from gcc -Wshadow
26058         * tests/test-futimens.h (test_futimens): Rename inner local, s/fd/fd0/
26059         to avoid a shadowing warning.
26061 2011-09-24  Bruno Haible  <bruno@clisp.org>
26063         fdopen: Support for MSVC 9.
26064         * m4/fdopen.m4 (gl_FUNC_FDOPEN): Set REPLACE_FDOPEN also if
26065         HAVE_MSVC_INVALID_PARAMETER_HANDLER is 1.
26066         * lib/fdopen.c: Include msvc-inval.h.
26067         (fdopen_nothrow): New function.
26068         (rpl_fdopen): Use it.
26069         * modules/fdopen (Depends-on): Add msvc-inval.
26070         * modules/fclose-tests (Depends-on): Add fdopen.
26071         * modules/fflush-tests (Depends-on): Likewise.
26072         * modules/fgetc-tests (Depends-on): Likewise.
26073         * modules/fputc-tests (Depends-on): Likewise.
26074         * modules/fread-tests (Depends-on): Likewise.
26075         * modules/freopen-tests (Depends-on): Likewise.
26076         * modules/fseeko-tests (Depends-on): Likewise.
26077         * modules/ftello-tests (Depends-on): Likewise.
26078         * modules/fwrite-tests  (Depends-on): Likewise.
26079         * doc/posix-functions/fdopen.texi: Mention the problem on MSVC.
26081 2011-09-24  Bruno Haible  <bruno@clisp.org>
26083         fgetc, fputc, fread, fwrite tests: Avoid compilation error on MSVC.
26084         * modules/fgetc-tests (Depends-on): Add unistd.
26085         * modules/fputc-tests (Depends-on): Likewise.
26086         * modules/fread-tests (Depends-on): Likewise.
26087         * modules/fwrite-tests (Depends-on): Likewise.
26089 2011-09-24  Bruno Haible  <bruno@clisp.org>
26091         dup: Simplify autoconf test.
26092         * m4/dup.m4 (gl_FUNC_DUP): Don't run a test program. Instead, just rely
26093         on gl_MSVC_INVAL's result.
26095 2011-09-24  Bruno Haible  <bruno@clisp.org>
26097         Tests for function fwrite().
26098         * modules/fwrite-tests: New file.
26099         * tests/test-fwrite.c: New file.
26100         * modules/stdio-tests (Depends-on): Add fwrite-tests.
26102         Tests for function fread().
26103         * modules/fread-tests: New file.
26104         * tests/test-fread.c: New file.
26105         * modules/stdio-tests (Depends-on): Add fread-tests.
26107         Activate fputc tests.
26108         * modules/stdio-tests (Depends-on): Add fputc-tests.
26110         Enhance fgetc, fputc tests.
26111         * tests/test-fgetc.c (main): Also test the stream's error indicator.
26112         * tests/test-fputc.c (main): Likewise.
26114 2011-09-24  Bruno Haible  <bruno@clisp.org>
26116         write: Support for MSVC 9.
26117         * lib/unistd.in.h (write): Replace also when GNULIB_UNISTD_H_NONBLOCKING
26118         is not 1.
26119         * lib/write.c (write_nothrow): New function.
26120         (rpl_write): Define also when GNULIB_NONBLOCKING or GNULIB_SIGPIPE is
26121         not 1. Use write_nothrow.
26122         * m4/write.m4 (gl_FUNC_WRITE): Replace read if the platform has an
26123         invalid parameter handler.
26124         (gl_PREREQ_WRITE): New macro.
26125         * modules/write (Depends-on): Add msvc-inval.
26126         (configure.ac): Invoke gl_PREREQ_WRITE.
26127         * doc/posix-functions/write.texi: Mention the problem on MSVC.
26129 2011-09-24  Bruno Haible  <bruno@clisp.org>
26131         read: Fix last commit.
26132         * lib/read.c (read_nothrow): Change return type to 'ssize_t'.
26134 2011-09-24  Bruno Haible  <bruno@clisp.org>
26136         dup2: Fix last commit.
26137         * lib/dup2.c: Restore comments. Treat Cygwin like Unix.
26138         (rpl_dup2): Disable fcntl workaround on native Windows.
26140         sigprocmask: Make code safer.
26141         * lib/sigprocmask.c: Move '#include "msvc-inval.h"' before the code
26142         section that changes macro definitions for this compilation unit.
26144 2011-09-23  Paul Eggert  <eggert@cs.ucla.edu>
26146         dup2: clarify by coalescing Windows-specific material
26147         * lib/dup2.c: Move '#include "msvc-inval.h"' and '#include
26148         "msvc-nothrow.h"' to the Windows-specific section, so that the
26149         Emacs source need not contain these include files.
26150         (ms_windows_dup2): Rename from dup2_nothrow, and move all the
26151         Windows-specific fixes into this function rather than just the
26152         nothrow fix, as this shortens and clarifies the code.  Always
26153         define as a function, as that's a bit cleaner than having it be
26154         sometimes a function and sometimes a macro.
26155         (rpl_dup2): Move the Windows-specific stuff out of here and into
26156         ms_windows_dup2.  Don't protect the Haiku-related fix with
26157         "#if !defined __linux__", as the same code also works around
26158         a Linux kernel bug, and it doesn't add any system calls on any
26159         platform.  Add comment about FreeBSD 6.1.
26161         sigprocmask: move #include directive
26162         * lib/sigprocmask.c: Move '#include "msvc-inval.h"' to the
26163         Windows-specific section, so that the Emacs source need not
26164         contain msvc-inval.h.
26166 2011-09-23  Bruno Haible  <bruno@clisp.org>
26168         read: Support for MSVC 9.
26169         * lib/unistd.in.h (read): Replace also when GNULIB_UNISTD_H_NONBLOCKING
26170         is not 1.
26171         * lib/read.c (read_nothrow): New function.
26172         (rpl_read): Define also when GNULIB_NONBLOCKING is not 1. Use
26173         read_nothrow.
26174         * m4/read.m4 (gl_FUNC_READ): Replace read if the platform has an
26175         invalid parameter handler.
26176         (gl_PREREQ_READ): New macro.
26177         * modules/read (Depends-on): Add msvc-inval.
26178         (configure.ac): Invoke gl_PREREQ_READ.
26179         * doc/posix-functions/read.texi: Mention the problem on MSVC.
26181 2011-09-23  Bruno Haible  <bruno@clisp.org>
26183         close: Support for MSVC 9.
26184         * lib/close.c: Include <errno.h>, msvc-inval.h.
26185         (close_nothrow): New function.
26186         (rpl_close): Use it.
26187         * m4/close.m4 (gl_FUNC_CLOSE): Replace close if the platform has an
26188         invalid parameter handler.
26189         * modules/close (Depends-on): Add msvc-inval.
26190         * modules/dup2-tests (Depends-on): Add close.
26191         * modules/dup3-tests (Depends-on): Likewise.
26192         * modules/fcntl-tests (Depends-on): Likewise.
26193         * modules/spawn-pipe-tests (Depends-on): Likewise.
26194         * modules/unistd-safer-tests (Depends-on): Likewise.
26195         * doc/posix-functions/close.texi: Mention the problem on MSVC.
26197 2011-09-23  Bruno Haible  <bruno@clisp.org>
26199         New module 'dup'.
26200         * lib/unistd.in.h (dup): Declare only if the 'dup' module is in use.
26201         Allow replacement.
26202         * lib/dup.c: New file.
26203         * lib/fchdir.c (rpl_dup): Remove function.
26204         * m4/dup.m4: New file.
26205         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_DUP here.
26206         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether 'dup' is declared.
26207         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP.
26208         * modules/unistd (Makefile.am): Substitute GNULIB_DUP.
26209         * modules/dup: New file.
26210         * tests/test-unistd-c++.cc: Check the signature of 'dup' only if the
26211         'dup' module is in use.
26212         * modules/fdopendir (Depends-on): Add dup.
26213         * modules/fdutimensat-tests (Depends-on): Likewise.
26214         * modules/fts (Depends-on): Likewise.
26215         * modules/futimens-tests (Depends-on): Likewise.
26216         * modules/posix_spawnp-tests (Depends-on): Likewise.
26217         * modules/unistd-safer-tests (Depends-on): Likewise.
26218         * modules/utimens-tests (Depends-on): Likewise.
26219         * doc/posix-functions/dup.texi: Mention the new module and the problem
26220         on MSVC.
26222 2011-09-23  Bruno Haible  <bruno@clisp.org>
26224         getdtablesize: Support for MSVC 9.
26225         * lib/getdtablesize.c: Include msvc-inval.h.
26226         (_setmaxstdio_nothrow): New function.
26227         (_setmaxstdio): Redefine it.
26228         * m4/getdtablesize.m4 (gl_PREREQ_GETDTABLESIZE): New macro.
26229         * modules/getdtablesize (Depends-on): Add msvc-inval.
26230         (configure.ac): Invoke gl_PREREQ_GETDTABLESIZE.
26232 2011-09-23  Bruno Haible  <bruno@clisp.org>
26234         signal-h: Rename from signal.
26235         * modules/signal-h: Renamed from modules/signal.
26236         * modules/pthread_sigmask (Depends-on): Update.
26237         * modules/raise (Depends-on): Likewise.
26238         * modules/sigaction (Depends-on): Likewise.
26239         * modules/sigpipe (Depends-on): Likewise.
26240         * modules/sigprocmask (Depends-on): Likewise.
26241         * modules/sys_select (Depends-on): Likewise.
26242         * modules/signal-h-tests: Renamed from modules/signal-tests.
26243         (Files, Depends-on, Makefile.am): Update.
26244         * tests/test-signal-h.c: Renamed from tests/test-signal.c.
26245         * modules/signal-h-c++-tests: Renamed from modules/signal-c++-tests.
26246         (Files, Makefile.am): Update.
26247         * tests/test-signal-h-c++.cc: Renamed from tests/test-signal-c++.cc.
26248         * tests/test-signal-h-c++2.cc: Renamed from tests/test-signal-c++2.cc.
26249         * modules/signal: New placeholder file.
26250         * MODULES.html.sh (Support for systems lacking POSIX:2008): Update.
26251         * doc/posix-headers/signal.texi: Update.
26252         * NEWS: Mention the change.
26254 2011-09-23  Bruno Haible  <bruno@clisp.org>
26256         sigprocmask: Avoid crashes through signal() on MSVC 9.
26257         * lib/sigprocmask.c: Include msvc-inval.h.
26258         (signal_nothrow): New function.
26259         (signal): Redefine it.
26260         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Require AC_C_INLINE.
26261         * modules/sigprocmask (Depends-on): Add msvc-inval.
26262         * doc/posix-functions/signal.texi: Mention the problem on MSVC.
26264 2011-09-23  Bruno Haible  <bruno@clisp.org>
26266         Tests for module 'raise'.
26267         * modules/raise-tests: New file.
26268         * tests/test-raise.c: New file.
26270         raise: Support for MSVC.
26271         * lib/signal.in.h (raise): New declaration.
26272         * lib/raise.c (raise_nothrow, rpl_raise): New alternate implementation
26273         for native Windows platforms.
26274         * m4/raise.m4: New file.
26275         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize GNULIB_RAISE,
26276         HAVE_RAISE, REPLACE_RAISE.
26277         * modules/signal (Makefile.am): Substitute GNULIB_RAISE, HAVE_RAISE,
26278         REPLACE_RAISE.
26279         * modules/raise (Status, Notice): Remove fields.
26280         (Files): Add m4/raise.m4.
26281         (Depends-on): Add signal, msvc-inval.
26282         (configure.ac): Use the common idioms.
26283         (Maintainer): Add me.
26284         * tests/test-signal-c++.cc: Check the signature of raise.
26285         * doc/posix-functions/raise.texi: Mention the problem on MSVC.
26287 2011-09-23  Bruno Haible  <bruno@clisp.org>
26289         pipe2: Fix compilation on pre-C99 compilers.
26290         * lib/pipe2.c (pipe2): Surround verify(...) declaration with braces.
26292 2011-09-23  Bruno Haible  <bruno@clisp.org>
26294         New module 'msvc-nothrow'. Makes _get_osfhandle safe on MSVC 9.
26295         * lib/msvc-nothrow.h: New file.
26296         * lib/msvc-nothrow.c: New file.
26297         * m4/msvc-nothrow.m4: New file.
26298         * modules/msvc-nothrow: New file.
26299         * lib/dup2.c: Include msvc-nothrow.h.
26300         (rpl_dup2): No need to protect _get_osfhandle call here.
26301         * lib/accept4.c: Include msvc-nothrow.h.
26302         * lib/error.c: Likewise.
26303         * lib/fcntl.c: Likewise.
26304         * lib/lseek.c: Likewise.
26305         * lib/nonblocking.c: Likewise.
26306         * lib/poll.c: Likewise.
26307         * lib/read.c: Likewise.
26308         * lib/select.c: Likewise.
26309         * lib/sockets.h: Likewise.
26310         * lib/sockets.c: Likewise.
26311         * lib/stdio-read.c: Likewise.
26312         * lib/stdio-write.c: Likewise.
26313         * lib/write.c: Likewise.
26314         * lib/w32sock.h: Likewise.
26315         * lib/w32spawn.h: Likewise.
26316         * lib/flock.c: Include msvc-nothrow.h instead of <io.h>.
26317         * lib/fsync.c: Likewise.
26318         * lib/isapipe.c: Likewise.
26319         * modules/dup2 (Depends-on): Add msvc-nothrow.
26320         * modules/accept4 (Depends-on): Likewise.
26321         * modules/error (Depends-on): Likewise.
26322         * modules/fcntl (Depends-on): Likewise.
26323         * modules/lseek (Depends-on): Likewise.
26324         * modules/nonblocking (Depends-on): Likewise.
26325         * modules/poll (Depends-on): Likewise.
26326         * modules/read (Depends-on): Likewise.
26327         * modules/select (Depends-on): Likewise.
26328         * modules/sockets (Depends-on): Likewise.
26329         * modules/sigpipe (Depends-on): Likewise.
26330         * modules/write (Depends-on): Likewise.
26331         * modules/accept (Depends-on): Likewise.
26332         * modules/bind (Depends-on): Likewise.
26333         * modules/connect (Depends-on): Likewise.
26334         * modules/gethostname (Depends-on): Likewise.
26335         * modules/getpeername (Depends-on): Likewise.
26336         * modules/getsockname (Depends-on): Likewise.
26337         * modules/getsockopt (Depends-on): Likewise.
26338         * modules/ioctl (Depends-on): Likewise.
26339         * modules/listen (Depends-on): Likewise.
26340         * modules/recv (Depends-on): Likewise.
26341         * modules/recvfrom (Depends-on): Likewise.
26342         * modules/send (Depends-on): Likewise.
26343         * modules/sendto (Depends-on): Likewise.
26344         * modules/setsockopt (Depends-on): Likewise.
26345         * modules/shutdown (Depends-on): Likewise.
26346         * modules/socket (Depends-on): Likewise.
26347         * modules/execute (Depends-on): Likewise.
26348         * modules/spawn-pipe (Depends-on): Likewise.
26349         * modules/flock (Depends-on): Likewise.
26350         * modules/fsync (Depends-on): Likewise.
26351         * modules/isapipe (Depends-on): Likewise.
26352         * tests/test-cloexec.c: Include msvc-nothrow.h.
26353         * tests/test-dup-safer.c: Likewise.
26354         * tests/test-dup2.c: Likewise.
26355         * tests/test-dup3.c: Likewise.
26356         * tests/test-fcntl.c: Likewise.
26357         * tests/test-pipe.c: Likewise.
26358         * tests/test-pipe2.c: Likewise.
26359         * modules/cloexec-tests (Depends-on): Add msvc-nothrow.
26360         * modules/unistd-safer-tests (Depends-on): Likewise.
26361         * modules/dup2-tests (Depends-on): Likewise.
26362         * modules/dup3-tests (Depends-on): Likewise.
26363         * modules/fcntl-tests (Depends-on): Likewise.
26364         * modules/pipe-posix-tests (Depends-on): Likewise.
26365         * modules/pipe2-tests (Depends-on): Likewise.
26367 2011-09-23  Bruno Haible  <bruno@clisp.org>
26369         dup2: Make code more maintainable.
26370         * lib/dup2.c (dup2_nothrow): New function, extracted from rpl_dup2.
26371         (rpl_dup2): Use it.
26372         * m4/dup2.m4 (gl_PREREQ_DUP2): New macro.
26373         * modules/dup2 (configure.ac): Invoke it.
26374         Reported by Paul Eggert.
26376 2011-09-23  Bruno Haible  <bruno@clisp.org>
26378         msvc-inval: Fix compilation error.
26379         * lib/msvc-inval.h: Include <excpt.h>.
26381 2011-09-23  Bruno Haible  <bruno@clisp.org>
26383         mkdir: Tweak for MSVC 9.
26384         * lib/sys_stat.in.h: Update comments.
26385         * doc/posix-functions/mkdir.texi: Mention problem on MSVC 9.
26387         Tests for module 'chdir'.
26388         * modules/chdir-tests: New file.
26389         * tests/test-chdir.c: New file.
26391         New module 'chdir'.
26392         * modules/chdir: New file.
26393         * lib/unistd.in.h: Include <io.h>, <direct.h> also for chdir.
26394         (chdir): New declaration.
26395         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether chdir is declared.
26396         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CHDIR.
26397         * modules/unistd (Makefile.am): Substitute GNULIB_CHDIR.
26398         * tests/test-unistd-c++.cc: Check signature of chdir.
26399         * doc/posix-functions/chdir.texi: Mention problem on native Windows.
26400         * modules/chdir-long (Depends-on): Add chdir.
26401         * modules/fchdir (Depends-on): Likewise.
26402         * modules/rename (Depends-on): Likewise.
26403         * modules/savewd (Depends-on): Likewise.
26405         rmdir: Support for mingw, MSVC 9.
26406         * lib/unistd.in.h: Include <io.h> and <direct.h> also for rmdir.
26407         * doc/posix-functions/getcwd.texi: Mention problem on native Windows.
26409         getcwd: Tweak for MSVC 9.
26410         * lib/unistd.in.h: Update comments.
26411         * doc/posix-functions/getcwd.texi: Mention problem on MSVC 9.
26413 2011-09-22  Bruno Haible  <bruno@clisp.org>
26415         strerror_r-posix: Avoid a link error on MSVC.
26416         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Check for snprintf.
26417         * lib/strerror_r.c (snprintf): Define to _snprintf if it doesn't exist.
26419 2011-09-22  Bruno Haible  <bruno@clisp.org>
26421         select: Avoid link errors on MSVC.
26422         * m4/select.m4 (gl_FUNC_SELECT): Determine LIB_SELECT.
26423         * modules/select (Link): Replace $(LIBSOCKET) with $(LIB_SELECT).
26424         * modules/pselect (Link): Likewise.
26425         * NEWS: Mention the change.
26426         * modules/select-tests (Makefile.am): Link test-select, test-select-fd,
26427         test-select-stdin against $(LIB_SELECT).
26428         * modules/pselect-tests (Makefile.am): Link test-pselect against
26429         $(LIB_SELECT).
26431 2011-09-22  Bruno Haible  <bruno@clisp.org>
26433         select: Avoid compilation error on MSVC.
26434         * lib/select.c: Don't include <stdbool.h>.
26436 2011-09-21  Bruno Haible  <bruno@clisp.org>
26438         Consolidate all uses of PATH_MAX in *.m4 files.
26439         * m4/pathmax.m4 (gl_PATHMAX_SNIPPET, gl_PATHMAX_SNIPPET_PREREQ): New
26440         macros.
26441         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Use gl_PATHMAX_SNIPPET_PREREQ
26442         and gl_PATHMAX_SNIPPET.
26443         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
26444         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
26445         * modules/chdir-long (Files): Add m4/pathmax.m4.
26446         * modules/getcwd (Files): Likewise.
26448 2011-09-21  Bruno Haible  <bruno@clisp.org>
26450         ftruncate: Un-deprecate, concentrate on Win32 support.
26451         * modules/ftruncate (Status, Notice): Remove sections.
26452         (Depends-on): Add largefile.
26453         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Drop failure message on
26454         non-mingw platforms.
26455         * lib/ftruncate.c: Remove code for the older platforms. For Win32,
26456         include <io.h>.
26457         * modules/perror-tests (Depends-on): Add ftruncate.
26458         * doc/posix-functions/ftruncate.texi: Mention the MSVC problem and the
26459         'ftruncate' module.
26461 2011-09-21  Bruno Haible  <bruno@clisp.org>
26463         Add dependencies to new dirent related modules.
26464         * modules/opendir (Depends-on): Add closedir.
26465         * modules/getcwd (Depends-on): Add opendir, closedir.
26466         * modules/dirent-safer-tests (Depends-on): Likewise.
26467         * modules/fdopendir-tests (Depends-on): Likewise.
26468         * modules/rename-tests (Depends-on): Add opendir, readdir, closedir.
26469         * modules/renameat-tests (Depends-on): Likewise.
26471 2011-09-21  Bruno Haible  <bruno@clisp.org>
26473         opendir: Avoid compilation error on mingw.
26474         * lib/opendir.c: Include <stddef.h> always. Include <unistd.h> as well.
26475         * modules/opendir (Depends-on): Add unistd.
26477 2011-09-21  Bruno Haible  <bruno@clisp.org>
26479         ftruncate tests: Avoid a test failure on mingw.
26480         * tests/test-ftruncate.c (main): Allow a failure with EACCES.
26482 2011-09-21  Bruno Haible  <bruno@clisp.org>
26484         select tests: Avoid test failures on OSF/1 5.1 and mingw.
26485         * tests/test-select.h (test_bad_fd): Disable all tests on OSF/1 and
26486         native Windows.
26488 2011-09-21  Bruno Haible  <bruno@clisp.org>
26490         New module 'fdopen'.
26491         * lib/stdio.in.h (fdopen): New declaration.
26492         * lib/fdopen.c: New file.
26493         * m4/fdopen.m4: New file.
26494         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FDOPEN,
26495         REPLACE_FDOPEN.
26496         * modules/stdio (Makefile.am): Substitute GNULIB_FDOPEN,
26497         REPLACE_FDOPEN.
26498         * modules/fdopen: New file.
26499         * modules/stdio-tests (Depends-on): Remove fdopen-tests.
26500         * tests/test-stdio-c++.cc: Check signature of fdopen.
26501         * doc/posix-functions/fdopen.texi: Mention the new module.
26503 2011-09-21  Bruno Haible  <bruno@clisp.org>
26505         unlockpt tests: Avoid test failure on NetBSD 5.1.
26506         * tests/test-unlockpt.c (main): Skip the EBADF tests on NetBSD.
26507         * doc/posix-functions/unlockpt.texi: Mention the bug on NetBSD.
26509 2011-09-21  Bruno Haible  <bruno@clisp.org>
26511         getlogin, getlogin_r tests: Avoid test failure on Linux/SPARC.
26512         * tests/test-getlogin.c (main): Allow a failure with EINVAL.
26513         * tests/test-getlogin_r.c (main): Likewise.
26515 2011-09-20  Bruno Haible  <bruno@clisp.org>
26517         time tests: Don't require pid_t.
26518         * doc/posix-headers/time.texi: Revert last change.
26519         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Revert last change.
26520         * tests/test-time.c: Comment out the check for pid_t.
26522 2011-09-20  Bruno Haible  <bruno@clisp.org>
26524         fsync tests: Avoid a test failure on mingw.
26525         * tests/test-fsync.c (main): Allow a failure with EIO.
26527 2011-09-20  Bruno Haible  <bruno@clisp.org>
26529         euidaccess: Update comments.
26530         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Update comments.
26532 2011-09-20  Bruno Haible  <bruno@clisp.org>
26534         Ensure EBADF returns for socket functions on mingw.
26535         * lib/accept.c (rpl_accept): Fail with error EBADF if the file
26536         descriptor is invalid.
26537         * lib/bind.c (rpl_bind): Likewise.
26538         * lib/connect.c (rpl_connect): Likewise.
26539         * lib/getpeername.c (rpl_getpeername): Likewise.
26540         * lib/getsockname.c (rpl_getsockname): Likewise.
26541         * lib/getsockopt.c (rpl_getsockopt): Likewise.
26542         * lib/listen.c (rpl_listen): Likewise.
26543         * lib/recv.c (rpl_recv): Likewise.
26544         * lib/recvfrom.c (rpl_recvfrom): Likewise.
26545         * lib/send.c (rpl_send): Likewise.
26546         * lib/sendto.c (rpl_sendto): Likewise.
26547         * lib/setsockopt.c (rpl_setsockopt): Likewise.
26548         * lib/shutdown.c (rpl_shutdown): Likewise.
26550 2011-09-20  Bruno Haible  <bruno@clisp.org>
26552         select tests: EBADF tests.
26553         * tests/test-select.h (do_select_bad_fd, do_select_bad_fd_nowait,
26554         test_bad_fd): New functions.
26555         (test_function): Invoke also test_bad_fd.
26557 2011-09-20  Bruno Haible  <bruno@clisp.org>
26559         Tests for module 'posix_spawn_file_actions_addopen.
26560         * modules/posix_spawn_file_actions_addopen-tests: New file.
26561         * tests/test-posix_spawn_file_actions_addopen.c: New file.
26563         Tests for module 'posix_spawn_file_actions_adddup2'.
26564         * modules/posix_spawn_file_actions_adddup2-tests: New file.
26565         * tests/test-posix_spawn_file_actions_adddup2.c: New file.
26567         Tests for module 'posix_spawn_file_actions_addclose'.
26568         * modules/posix_spawn_file_actions_addclose-tests: New file.
26569         * tests/test-posix_spawn_file_actions_addclose.c: New file.
26571 2011-09-20  Bruno Haible  <bruno@clisp.org>
26573         Tests for module 'unlockpt'.
26574         * modules/unlockpt-tests: New file.
26575         * tests/test-unlockpt.c: New file.
26576         * doc/posix-functions/unlockpt.texi: Mention the Cygwin 1.7 problem.
26578         Tests for module 'grantpt'.
26579         * modules/grantpt-tests: New file.
26580         * tests/test-grantpt.c: New file.
26581         * doc/posix-functions/grantpt.texi: Mention the Cygwin 1.7 problem.
26583 2011-09-20  Bruno Haible  <bruno@clisp.org>
26585         freopen tests: EBADF tests.
26586         * tests/test-freopen.c: Include errno.h, unistd.h.
26587         (main): Add tests for EBADF, commented out for the moment.
26589         fclose tests: EBADF tests.
26590         * tests/test-fclose.c (main): Add tests for EBADF.
26592         fflush tests: EBADF tests.
26593         * tests/test-fflush.c: Include errno.h, macros.h.
26594         (main): Add tests for EBADF.
26596         ftello tests: EBADF tests.
26597         * tests/test-ftello4.sh: New file.
26598         * tests/test-ftello4.c: New file.
26599         * modules/ftello-tests (Files): Add them.
26600         (Makefile.am): Arrange to compile test-ftello4 and run test-ftello4.sh.
26602         fseeko tests: EBADF tests.
26603         * tests/test-fseeko4.sh: New file.
26604         * tests/test-fseeko4.c: New file.
26605         * modules/fseeko-tests (Files): Add them.
26606         (Makefile.am): Arrange to compile test-fseeko4 and run test-fseeko4.sh.
26608         Tests for function fputc().
26609         * modules/fputc-tests: New file.
26610         * tests/test-fputc.c: New file.
26611         * modules/stdio-tests (Depends-on): Add fputc-tests.
26613         Tests for function fgetc().
26614         * modules/fgetc-tests: New file.
26615         * tests/test-fgetc.c: New file.
26616         * modules/stdio-tests (Depends-on): Add fgetc-tests.
26618         Tests for function fdopen().
26619         * modules/fdopen-tests: New file.
26620         * tests/test-fdopen.c: New file.
26621         * modules/stdio-tests (Depends-on): Add fdopen-tests.
26623         Tests for module 'vdprintf'.
26624         * modules/vdprintf-tests: New file.
26625         * tests/test-vdprintf.c: New file.
26627         Tests for module 'dprintf'.
26628         * modules/dprintf-tests: New file.
26629         * tests/test-dprintf.c: New file.
26631 2011-09-20  Bruno Haible  <bruno@clisp.org>
26633         Tests for module 'ioctl'.
26634         * modules/ioctl-tests: New file.
26635         * tests/test-ioctl.c: New file.
26637 2011-09-20  Bruno Haible  <bruno@clisp.org>
26639         fcntl tests: EBADF tests.
26640         * tests/test-fcntl.c (main): Add more tests for EBADF.
26642 2011-09-20  Bruno Haible  <bruno@clisp.org>
26644         utimensat tests: EBADF tests.
26645         * tests/test-utimensat.c (main): Add tests for EBADF.
26647         renameat tests: EBADF tests.
26648         * tests/test-renameat.c (main): Add tests for EBADF.
26650         mkfifoat tests: EBADF tests.
26651         * tests/test-mkfifoat.c (main): Add tests for EBADF.
26653         readlinkat tests: EBADF tests.
26654         * tests/test-readlinkat.c (main): Add tests for EBADF.
26656         symlinkat tests: EBADF tests.
26657         * tests/test-symlinkat.c (main): Add tests for EBADF.
26659         linkat tests: EBADF tests.
26660         * tests/test-linkat.c (main): Add tests for EBADF.
26662         Tests for module 'faccessat'.
26663         * modules/faccessat-tests: New file.
26664         * tests/test-faccessat.c: New file.
26666         fdopendir tests: EBADF tests.
26667         * tests/test-fdopendir.c (main): Add more tests for EBADF.
26669         openat tests: EBADF tests.
26670         * tests/test-fchownat.c (main): Add tests for EBADF.
26671         * tests/test-fstatat.c (main): Likewise.
26672         * tests/test-mkdirat.c (main): Likewise.
26673         * tests/test-openat.c (main): Likewise.
26674         * tests/test-unlinkat.c (main): Likewise.
26675         * tests/test-fchmodat.c: New file.
26676         * modules/openat-tests (Files): Add tests/test-fchmodat.c.
26677         (Makefile.am): Also run 'test-fchmodat'.
26679 2011-09-20  Bruno Haible  <bruno@clisp.org>
26681         utimens, futimens, fdutimensat tests: EBADF tests.
26682         * tests/test-futimens.h (test_futimens): Add more tests for EBADF.
26684         Tests for function fstat().
26685         * modules/fstat-tests: New file.
26686         * tests/test-fstat.c: New file.
26687         * modules/sys_stat-tests (Depends-on): Add fstat-tests.
26689 2011-09-20  Bruno Haible  <bruno@clisp.org>
26691         test-ttyname_r tests: EBADF tests.
26692         * tests/test-ttyname_r.c (main): Add tests for EBADF.
26694         Tests for module 'isatty'.
26695         * modules/isatty-tests: New file.
26696         * tests/test-isatty.c: New file.
26698         Tests for module 'write'.
26699         * modules/write-tests: New file.
26700         * tests/test-write.c: New file.
26702         Tests for module 'read'.
26703         * modules/read-tests: New file.
26704         * tests/test-read.c: New file.
26706         pwrite tests: EBADF tests.
26707         * tests/test-pwrite.c (main): Add tests for EBADF.
26709         pread tests: EBADF tests.
26710         * tests/test-pread.c (main): Add tests for EBADF.
26712         lseek tests: EBADF tests.
26713         * tests/test-lseek.c (main): Add more tests for EBADF.
26715         Tests for module 'ftruncate'.
26716         * modules/ftruncate-tests: New file.
26717         * tests/test-ftruncate.sh: New file.
26718         * tests/test-ftruncate.c: New file.
26720         fsync tests: EBADF tests.
26721         * tests/test-fsync.c (main): Add more tests for EBADF.
26723         fdatasync tests: EBADF tests.
26724         * tests/test-fdatasync.c (main): Add more tests for EBADF.
26726         Tests for module 'fchown'.
26727         * modules/fchown-tests: New file.
26728         * tests/test-fchown.c: New file.
26730         Tests for module 'fchmod'.
26731         * modules/fchmod-tests: New file.
26732         * tests/test-fchmod.c: New file.
26734         fchdir tests: EBADF tests.
26735         * tests/test-fchdir.c (main): Add more tests for EBADF.
26737         dup2 tests: EBADF tests.
26738         * tests/test-dup2.c (main): Add more tests for EBADF.
26740         Tests for module 'dup'.
26741         * modules/dup-tests: New file.
26742         * tests/test-dup.c: New file.
26744         Tests for module 'close'.
26745         * modules/close-tests: New file.
26746         * tests/test-close.c: New file.
26748 2011-09-20  Bruno Haible  <bruno@clisp.org>
26750         Tests for module 'shutdown'.
26751         * modules/shutdown-tests: New file.
26752         * tests/test-shutdown.c: New file.
26754         Tests for module 'setsockopt'.
26755         * modules/setsockopt-tests: New file.
26756         * tests/test-setsockopt.c: New file.
26758         Tests for module 'sendto'.
26759         * modules/sendto-tests: New file.
26760         * tests/test-sendto.c: New file.
26762         Tests for module 'send'.
26763         * modules/send-tests: New file.
26764         * tests/test-send.c: New file.
26766         Tests for module 'recvfrom'.
26767         * modules/recvfrom-tests: New file.
26768         * tests/test-recvfrom.c: New file.
26770         Tests for module 'recv'.
26771         * modules/recv-tests: New file.
26772         * tests/test-recv.c: New file.
26774         Tests for module 'listen'.
26775         * modules/listen-tests: New file.
26776         * tests/test-listen.c: New file.
26778         Tests for module 'getsockopt'.
26779         * modules/getsockopt-tests: New file.
26780         * tests/test-getsockopt.c: New file.
26782         Tests for module 'getsockname'.
26783         * modules/getsockname-tests: New file.
26784         * tests/test-getsockname.c: New file.
26786         Tests for module 'getpeername'.
26787         * modules/getpeername-tests: New file.
26788         * tests/test-getpeername.c: New file.
26790         Tests for module 'connect'.
26791         * modules/connect-tests: New file.
26792         * tests/test-connect.c: New file.
26794         Tests for module 'bind'.
26795         * modules/bind-tests: New file.
26796         * tests/test-bind.c: New file.
26798         accept4 tests: Fix for native Windows.
26799         * tests/test-accept4.c: Include sockets.h.
26800         (main): Invoke gl_sockets_startup.
26801         * modules/accept4-tests (Depends-on): Add sockets.
26803         accept tests: Fix for native Windows.
26804         * tests/test-accept.c: Include sockets.h.
26805         (main): Invoke gl_sockets_startup.
26806         * modules/accept-tests (Depends-on): Add sockets.
26808 2011-09-19  Bruno Haible  <bruno@clisp.org>
26810         msvc-inval: Require a semicolon after DONE_MSVC_INVAL.
26811         * lib/msvc-inval.h (TRY_MSVC_INVAL, DONE_MSVC_INVAL): Wrap in a
26812         do...while(0).
26813         * lib/dup2.c (rpl_dup2): Add a semicolon after DONE_MSVC_INVAL.
26814         Suggested by Paul Eggert.
26816 2011-09-19  Bruno Haible  <bruno@clisp.org>
26818         sched: Ensure pid_t is defined.
26819         * m4/sched_h.m4 (gl_SCHED_H): Arrange to override <sched.h> if it does
26820         not define pid_t.
26821         * lib/sched.in.h: Include <sys/types.h>.
26822         * doc/posix-headers/sched.texi: Mention the pid_t problem.
26823         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
26825 2011-09-19  Bruno Haible  <bruno@clisp.org>
26827         msvc-inval: Ensure the entire expansion is a single statement.
26828         * lib/msvc-inval.h (TRY_MSVC_INVAL, DONE_MSVC_INVAL): Add an extra pair
26829         of braces.
26831 2011-09-19  Jim Meyering  <meyering@redhat.com>
26833         tests: use printf, not echo in init.sh's warn_ function
26834         * tests/init.sh (warn_): Use printf, not echo.  The latter would
26835         misbehave when given strings containing a backslash or starting
26836         with e.g., -n.  James Youngman suggested setting IFS.
26838 2011-09-19  Eric Blake  <eblake@redhat.com>
26840         futimens: enhance test
26841         * tests/test-futimens.h (test_futimens): Also check for EBADF on
26842         closed non-negative fd.
26844         date: accept 'hence' as opposite of 'ago'
26845         * lib/parse-datetime.y (relative_time_table): Add 'hence'.
26846         * tests/test-parse-datetime.c (main): Enhance test.
26847         Suggested by Jesse Wilson.
26849 2011-09-19  Jim Meyering  <meyering@redhat.com>
26851         getcwd: don't fail in a deep directory on a system without openat
26852         Before this change, getcwd would fail when called from a directory
26853         of depth PATH_MAX / 3 or greater.  That was due to the fact that
26854         the non-openat implementation used "..", "../..", "../../..", etc.
26855         to access ancestor directories.  With too many, that string would
26856         be longer than PATH_MAX.
26857         * lib/getcwd.c (HAVE_OPENAT_SUPPORT): Define also when we are
26858         using gnulib's openat replacement.
26859         * m4/openat.m4: Set GNULIB_OPENAT, so getcwd.c knows when
26860         we're using the replacement function.
26862 2011-09-14  Martin von Gagern  <Martin.vGagern@gmx.net>
26864         maint.mk: avoid warnings from perl about missing files
26865         * top/maint.mk (def_sym_regex): Ignore files listed in
26866         $(gl_other_headers_) that do not exist, say because a project
26867         does not use a corresponding module.
26869 2011-09-18  Paul Eggert  <eggert@cs.ucla.edu>
26871         stat: use pathmax.h only if needed
26872         * lib/stat.c: Include pathmax.h only if REPLACE_FUNC_STAT_DIR.
26873         This is better for Emacs, which does not have a mingw port and
26874         therefore can avoid the pathmax module.
26876         utimens: remove dependency on dup2
26877         * lib/utimens.c (fdutimens): Don't invoke dup2; it's not needed
26878         to work around the Linux kernel bug.
26879         * modules/utimens (Depends-on): Remove dup2.
26881 2011-09-18  Bruno Haible  <bruno@clisp.org>
26883         inet_ntop, inet_pton: Look for it also in libresolv.
26884         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): If the function was not found in
26885         libnsl, search for it in libresolv.
26886         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
26887         Needed on Solaris 7.
26889 2011-09-18  Bruno Haible  <bruno@clisp.org>
26891         accept, accept4 tests: Avoid link error on Solaris.
26892         * modules/accept-tests (Makefile.am): Link test-accept against
26893         $(LIBSOCKET).
26894         * modules/accept4-tests (Makefile.am): Link test-accept4 against
26895         $(LIBSOCKET).
26897         accept4: Avoid link error on Solaris.
26898         * modules/accept4 (Link): New section.
26900         socket functions: Avoid link errors on Solaris.
26901         * modules/accept (Depends-on): Add socketlib.
26902         (Link): New section.
26903         * modules/bind (Depends-on): Add socketlib.
26904         (Link): New section.
26905         * modules/connect (Depends-on): Add socketlib.
26906         (Link): New section.
26907         * modules/getpeername (Depends-on): Add socketlib.
26908         (Link): New section.
26909         * modules/getsockname (Depends-on): Add socketlib.
26910         (Link): New section.
26911         * modules/getsockopt (Depends-on): Add socketlib.
26912         (Link): New section.
26913         * modules/listen (Depends-on): Add socketlib.
26914         (Link): New section.
26915         * modules/recv (Depends-on): Add socketlib.
26916         (Link): New section.
26917         * modules/recvfrom (Depends-on): Add socketlib.
26918         (Link): New section.
26919         * modules/send (Depends-on): Add socketlib.
26920         (Link): New section.
26921         * modules/sendto (Depends-on): Add socketlib.
26922         (Link): New section.
26923         * modules/setsockopt (Depends-on): Add socketlib.
26924         (Link): New section.
26925         * modules/shutdown (Depends-on): Add socketlib.
26926         (Link): New section.
26927         * modules/socket (Depends-on): Add socketlib.
26928         (Link): New section.
26930 2011-09-18  Bruno Haible  <bruno@clisp.org>
26932         ptsname tests: Let the test fail rather than hang (e.g. on AIX 5.1).
26933         * tests/test-ptsname.c (main): Terminate the test if it takes longer
26934         than 5 seconds.
26935         * modules/ptsname-tests (configure.ac): Test for alarm.
26937 2011-09-18  Bruno Haible  <bruno@clisp.org>
26939         posix_spawn_file_actions_add*: Fix module dependencies.
26940         * modules/posix_spawn_file_actions_addclose (Dependencies): Add
26941         posix_spawn_file_actions_init.
26942         * modules/posix_spawn_file_actions_adddup2 (Dependencies): Likewise.
26943         * modules/posix_spawn_file_actions_addopen (Dependencies): Likewise.
26945 2011-09-18  Bruno Haible  <bruno@clisp.org>
26947         rename, renameat tests: Avoid test failures on FreeBSD 6.4.
26948         * tests/test-rename.h (test_rename): Allow error code EEXIST.
26949         * tests/test-renameat.c (main): Likewise.
26951 2011-09-18  Bruno Haible  <bruno@clisp.org>
26953         Tests for module 'accept4'.
26954         * modules/accept4-tests: New file.
26955         * tests/test-accept4.c: New file.
26957 2011-09-18  Bruno Haible  <bruno@clisp.org>
26959         Tests for module 'accept'.
26960         * modules/accept-tests: New file.
26961         * tests/test-accept.c: New file.
26963 2011-09-18  Bruno Haible  <bruno@clisp.org>
26965         dup2: Support for MSVC.
26966         * lib/dup2.c: Include msvc-inval.h.
26967         (rpl_dup2): Handle invalid parameter notifications during dup2 and
26968         _get_osfhandle calls.
26969         * modules/dup2 (Depends-on): Add msvc-inval.
26970         * doc/posix-functions/dup2.texi: Mention problem on MSVC.
26972         New module 'msvc-inval'.
26973         * lib/msvc-inval.h: New file.
26974         * lib/msvc-inval.c: New file.
26975         * m4/msvc-inval.m4: New file.
26976         * modules/msvc-inval: New file.
26978 2011-09-17  Bruno Haible  <bruno@clisp.org>
26980         Tests for module 'pclose'.
26981         * modules/pclose-tests: New file.
26983         New module 'pclose'.
26984         * lib/stdio.in.h (pclose): New declaration.
26985         * lib/pclose.c: New file.
26986         * m4/pclose.m4: New file.
26987         * m4/stdio_h.m4 (gl_STDIO_H): Test whether pclose is declared.
26988         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PCLOSE, HAVE_PCLOSE.
26989         * modules/stdio (Makefile.am): Substitute GNULIB_PCLOSE, HAVE_PCLOSE.
26990         * modules/pclose: New file.
26991         * modules/popen-tests (Depends-on): Add pclose.
26992         * modules/popen-safer-tests (Depends-on): Likewise.
26993         * doc/posix-functions/pclose.texi: Mention the new module.
26995 2011-09-17  Bruno Haible  <bruno@clisp.org>
26997         popen: Support for MSVC.
26998         * lib/stdio.in.h (popen): Declare it if the system lacks this function.
26999         * lib/popen.c (popen): Provide alternate definition for native Windows.
27000         * m4/popen.m4 (gl_FUNC_POPEN): Test if popen exists. Set HAVE_POPEN.
27001         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_POPEN.
27002         * modules/popen (Depends-on, configure.ac): Update condition.
27003         * modules/stdio (Makefile.am): Substitute HAVE_POPEN.
27004         * doc/posix-functions/popen.texi: Mention that the MSVC problem is
27005         fixed.
27007 2011-09-17  Bruno Haible  <bruno@clisp.org>
27009         isnanl, isnand, isnanf: Work around MSVC bug.
27010         * lib/isnan.c (FUNC): Use alternate ways of computing NaN and Infinity.
27012 2011-09-17  Bruno Haible  <bruno@clisp.org>
27014         sys_socket tests: Fix recent mistake.
27015         * tests/test-sys_socket.c (t1): Avoid collision of identifiers.
27017 2011-09-17  Bruno Haible  <bruno@clisp.org>
27019         putenv: Support for MSVC.
27020         * modules/putenv (Depends-on): Add environ.
27021         * lib/putenv.c (environ): Disable declaration.
27022         * lib/unistd.in.h: Update comment.
27024 2011-09-17  Bruno Haible  <bruno@clisp.org>
27026         math: Avoid macro redefinition warnings on MSVC.
27027         * lib/math.in.h (ceilf, ceill, floorf, floorl, frexpl, ldexpl):
27028         Undefine before redefining.
27030 2011-09-17  Bruno Haible  <bruno@clisp.org>
27032         doc: Mention functions which are declared as macros.
27033         * doc/posix-functions/*[fl].texi: Mention that some functions are
27034         defined as macros with arguments only.
27036 2011-09-17  Bruno Haible  <bruno@clisp.org>
27038         Add dependencies to new dirent related modules.
27039         * modules/backupfile (Depends-on): Add opendir, readdir, closedir.
27040         * modules/fts (Depends-on): Likewise.
27041         * modules/glob (Depends-on): Likewise.
27042         * modules/savedir (Depends-on): Likewise.
27043         * modules/scandir (Depends-on): Likewise.
27044         * modules/dirent-safer (Depends-on): Add opendir, closedir.
27045         * modules/fdopendir (Depends-on): Add opendir.
27047 2011-09-17  Bruno Haible  <bruno@clisp.org>
27049         inet_pton: Support for MSVC on Windows Vista or newer.
27050         * lib/arpa_inet.in.h (inet_pton): Also consider REPLACE_INET_PTON.
27051         * lib/inet_pton.c (rpl_inet_pton): Use a simple wrapper if
27052         HAVE_DECL_INET_PTON is defined.
27053         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Invoke gl_PREREQ_SYS_H_WINSOCK2.
27054         On platforms with <winsock2.h>, test whether inet_pton is declared in
27055         <ws2tcpip.h>. If so, arrange to replace it.
27056         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Initialize
27057         REPLACE_INET_PTON.
27058         * modules/arpa_inet (Makefile.am): Substitute REPLACE_INET_PTON.
27059         * modules/inet_pton (Files): Add m4/sys_socket_h.m4.
27060         (Depends-on, configure.ac): Update condition.
27061         * doc/posix-functions/inet_pton.texi: Mention the MSVC problem.
27063 2011-09-17  Bruno Haible  <bruno@clisp.org>
27065         inet_ntop: Support for MSVC on Windows Vista or newer.
27066         * lib/arpa_inet.in.h (inet_ntop): Also consider REPLACE_INET_NTOP.
27067         * lib/inet_ntop.c (rpl_inet_ntop): Use a simple wrapper if
27068         HAVE_DECL_INET_NTOP is defined.
27069         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Invoke gl_PREREQ_SYS_H_WINSOCK2.
27070         On platforms with <winsock2.h>, test whether inet_ntop is declared in
27071         <ws2tcpip.h>. If so, arrange to replace it.
27072         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Initialize
27073         REPLACE_INET_NTOP.
27074         * modules/arpa_inet (Makefile.am): Substitute REPLACE_INET_NTOP.
27075         * modules/inet_ntop (Files): Add m4/sys_socket_h.m4.
27076         (Depends-on, configure.ac): Update condition.
27077         * doc/posix-functions/inet_ntop.texi: Mention the MSVC problem.
27079 2011-09-16  Eric Blake  <eblake@redhat.com>
27081         test-fsync: yet another enhancement
27082         * tests/test-fsync.c (main): Also test behavior on read-only text
27083         file.
27085 2011-09-16  Bruno Haible  <bruno@clisp.org>
27087         Enhance fsync, fdatasync tests.
27088         * tests/test-fsync.c (main): Test both STDIN_FILENO and STDOUT_FILENO.
27089         * tests/test-fdatasync.c (main): Likewise.
27091 2011-09-16  Bruno Haible  <bruno@clisp.org>
27093         Support for MSVC compiler: Ensure mode_t gets defined.
27094         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_TYPE_MODE_T.
27095         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
27096         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
27097         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Likewise.
27098         * tests/test-fcntl-h.c: Check that mode_t is defined.
27099         * tests/test-sys_stat.c: Likewise.
27100         * tests/test-sys_types.c: Likewise.
27101         * doc/posix-headers/fcntl.texi: Mention the missing mode_t problem.
27102         * doc/posix-headers/sys_stat.texi: Likewise.
27103         * doc/posix-headers/sys_types.texi: Likewise.
27105 2011-09-16  Bruno Haible  <bruno@clisp.org>
27107         sys_stat: Support for MSVC.
27108         * lib/sys_stat.in.h (S_IFIFO): Define to _S_IFIFO if that exists.
27109         * tests/test-sys_stat.c: Don't assume that S_IFBLK exists.
27110         * doc/posix-headers/sys_stat.texi: Mention missing S_IFIFO, S_IFBLK on
27111         MSVC.
27113 2011-09-16  Bruno Haible  <bruno@clisp.org>
27115         Support for MSVC compiler: Ensure off_t gets defined.
27116         * lib/unistd.in.h: Include <sys/types.h>.
27117         * tests/test-fcntl-h.c: Check that off_t is defined.
27118         * tests/test-sys_stat.c: Likewise.
27119         * tests/test-sys_types.c: Likewise.
27121 2011-09-16  Eric Blake  <eblake@redhat.com>
27123         fdatasync: port to Solaris
27124         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): Set LIB_FDATASYNC.
27125         * modules/fdatasync (Link): Document it.
27126         * modules/fdatasync-tests (test_fdatasync_LDADD): Link with it.
27128         fdatasync: port to MacOS X 10.7
27129         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): Check for present but not
27130         declared.
27131         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Another default.
27132         * modules/unistd (Makefile.am): Substitute it.
27133         * lib/unistd.in.h (fdatasync): Declare on MacOS.
27134         * doc/posix-functions/fdatasync.texi (fdatasync): Document it.
27136         fdatasync: minor improvements
27137         * modules/fdatasync (Depends-on): Add condition for fsync.
27138         * lib/fdatasync.c (fdatasync): Add comment.
27139         * tests/test-unistd-c++.cc: Test fdatasync.
27141         unistd: update refs to newer POSIX
27142         * lib/unistd.in.h: Prefer POSIX 2008 over 2001.
27143         Suggested by Bruno Haible.
27145         fdatasync: new module
27146         * modules/fsync (Description): Document difference to fdatasync.
27147         * modules/fdatasync: New module.
27148         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): New file.
27149         * lib/fdatasync.c (fdatasync): Likewise.
27150         * m4/unistd_h.m4 (gl_UNISTD_H, gl_UNISTD_H_DEFAULTS): Set up
27151         defaults.
27152         * modules/unistd (Makefile.am): Set witnesses.
27153         * lib/unistd.in.h (fdatasync): Declare.
27154         * MODULES.html.sh: Document it.
27155         * doc/posix-functions/fdatasync.texi (fdatasync): Likewise.
27156         * modules/fdatasync-tests: New test.
27157         * tests/test-fdatasync.c: Likewise.
27159 2011-09-16  Eric Blake  <eblake@redhat.com>
27161         test-fsync: enhance tests
27162         * modules/fsync-tests (Depends-on): Add errno, for mingw.
27163         * tests/test-fsync.c (main): Enhance test.
27165 2011-09-15  Bruno Haible  <bruno@clisp.org>
27167         Support for MSVC compiler: Ensure ssize_t gets defined.
27168         * doc/posix-headers/sys_types.texi: Mention the missing ssize_t problem.
27169         * doc/posix-headers/stdio.texi: Likewise.
27170         * modules/stdio (Depends-on): Add ssize_t.
27171         * modules/sys_socket (Depends-on): Likewise.
27172         * modules/sys_types (Depends-on): Likewise.
27173         * modules/sys_uio (Depends-on): Likewise.
27174         * modules/unistd (Depends-on): Likewise.
27175         * tests/test-sys_socket.c: Check that size_t and ssize_t are defined.
27176         * tests/test-sys_types.c: Check that ssize_t is defined.
27178 2011-09-14  Bruno Haible  <bruno@clisp.org>
27180         Avoid using #, the m4 comment starter character, near brackets.
27181         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): Use |, not #, as
27182         delimiter character in sed expressions.
27183         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Likewise.
27184         Suggested by Eric Blake.
27186         Properly quote AC_CHECK_DECLS' 4th argument.
27187         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Double-quote AC_CHECK_DECLS' 4th
27188         argument.
27189         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
27190         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
27191         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
27192         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
27193         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
27194         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): Likewise.
27195         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Likewise.
27196         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Likewise.
27197         * m4/gethrxtime.m4 (gl_GETHRXTIME): Likewise.
27198         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
27199         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Likewise.
27200         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
27201         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
27202         * m4/isinf.m4 (gl_ISINF): Likewise.
27203         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
27204         * m4/readutmp.m4 (gl_READUTMP): Likewise.
27205         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
27206         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
27207         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
27208         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
27209         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
27210         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
27211         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Likewise.
27212         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
27213         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
27214         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
27215         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Likewise.
27216         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
27217         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
27218         Reported by Eric Blake.
27220         Properly quote AC_CHECK_DECL's 4th argument.
27221         * m4/acosl.m4 (gl_FUNC_ACOSL): Double-quote AC_CHECK_DECL's 4th
27222         argument.
27223         * m4/argp.m4 (gl_ARGP): Likewise.
27224         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
27225         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
27226         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
27227         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
27228         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Likewise.
27229         * m4/getloadavg.m4 (gl_GETLOADAVG): Likewise.
27230         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Likewise.
27231         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
27232         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
27233         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
27234         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
27235         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
27236         Reported by Eric Blake.
27238 2011-09-14  Eric Blake  <eblake@redhat.com>
27240         opendir: avoid compile warning
27241         * lib/opendir.c (includes): Always include errno.h.
27242         Reported by Tatsuro MATSUOKA.
27244 2011-09-14  Jim Meyering  <meyering@redhat.com>
27246         maint.mk: sc_tight_scope: propagate failure from sub-make
27247         * top/maint.mk (sc_tight_scope): Actually initialize and use $fail.
27248         Reported by Martin von Gagern.
27250 2011-09-13  Bruno Haible  <bruno@clisp.org>
27252         tempname: Support for MSVC.
27253         * doc/posix-headers/fcntl.texi: Document the problem with O_ACCMODE on
27254         MSVC.
27255         * modules/tempname (Depends-on): Add fcntl-h.
27257 2011-09-13  Bruno Haible  <bruno@clisp.org>
27259         sys_time: Support for MSVC.
27260         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Invoke
27261         gl_PREREQ_SYS_H_WINSOCK2. When testing for 'struct timeval', also
27262         include <winsock2.h>.
27263         * lib/sys_time.in.h: On MSVC, include <winsock2.h> and hide its
27264         function declarations that collide with POSIX.
27265         * modules/sys_time (Files): Add m4/sys_socket_h.m4.
27266         (Makefile.am): Substitute HAVE_WINSOCK2_H.
27268 2011-09-13  Bruno Haible  <bruno@clisp.org>
27270         stat: Support for MSVC.
27271         * lib/stat.c: Include pathmax.h.
27272         * modules/stat (Depends-on): Add pathmax.
27274         pathmax: Support for native Windows.
27275         * lib/pathmax.h (PATH_MAX): Define to 260 on native Windows.
27277 2011-09-12  Bruno Haible  <bruno@clisp.org>
27279         New modules 'opendir', 'readdir', 'rewinddir', 'closedir'.
27280         * lib/dirent.in.h (struct dirent): New type.
27281         (DT_UNKNOWN, DT_FIFO, DT_CHR, DT_DIR, DT_BLK, DT_REG, DT_LNK, DT_SOCK,
27282         DT_WHT): New macros.
27283         (DIR): New type.
27284         (opendir, closedir): Declare only if the module 'opendir' is enabled.
27285         (readdir, rewinddir): New declarations.
27286         * lib/dirent-private.h: New file.
27287         * lib/opendir.c: New file.
27288         * lib/readdir.c: New file.
27289         * lib/rewinddir.c: New file.
27290         * lib/closedir.c: New file.
27291         * lib/fchdir.c (rpl_closedir, rpl_opendir): Remove functions.
27292         * m4/opendir.m4: New file.
27293         * m4/readdir.m4: New file.
27294         * m4/rewinddir.m4: New file.
27295         * m4/closedir.m4: New file.
27296         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_OPENDIR,
27297         REPLACE_CLOSEDIR here.
27298         * m4/dirent_h.m4 (gl_DIRENT_H): Also check whether closedir, opendir,
27299         readdir, rewinddir are declared.
27300         (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_OPENDIR, GNULIB_READDIR,
27301         GNULIB_REWINDDIR, GNULIB_CLOSEDIR, HAVE_OPENDIR, HAVE_READDIR,
27302         HAVE_REWINDDIR, HAVE_CLOSEDIR.
27303         * modules/dirent (Makefile.am): Substitute GNULIB_OPENDIR,
27304         GNULIB_READDIR, GNULIB_REWINDDIR, GNULIB_CLOSEDIR, HAVE_OPENDIR,
27305         HAVE_READDIR, HAVE_REWINDDIR, HAVE_CLOSEDIR.
27306         * modules/opendir: New file.
27307         * modules/readdir: New file.
27308         * modules/rewinddir: New file.
27309         * modules/closedir: New file.
27310         * doc/posix-functions/opendir.texi: Mention the 'opendir' module.
27311         * doc/posix-functions/readdir.texi: Mention the 'readdir' module.
27312         * doc/posix-functions/rewinddir.texi: Mention the 'rewinddir' module.
27313         * doc/posix-functions/closedir.texi: Mention the 'closedir' module.
27314         * NEWS: Mention the 'fchdir' change.
27316 2011-09-11  Bruno Haible  <bruno@clisp.org>
27318         asm-underscore.m4: Support for MSVC.
27319         * m4/asm-underscore.m4 (gl_C_ASM): New macro.
27320         (gl_ASM_SYMBOL_PREFIX): Require it. Use its results.
27322 2011-09-11  Reuben Thomas  <rrt@sc3d.org>
27324         Doc about crypt functions.
27325         * doc/posix-functions/crypt.texi: Expand range of glibc versions
27326         needing for _GNU_SOURCE to get crypt.
27327         * doc/posix-functions/encrypt.texi: Likewise.
27328         * doc/posix-functions/setkey.texi: Likewise.
27330 2011-09-11  Bruno Haible  <bruno@clisp.org>
27332         doc: Update regarding MSVC 9.
27333         * doc/gnulib-intro.texi (Target Platforms): Classify MSVC as "rarely
27334         tested".
27335         * doc/posix-functions/*.texi: Update with info about MSVC 9.
27336         * doc/posix-headers/*.texi: Likewise.
27337         * doc/pastposix-functions/*.texi: Likewise.
27338         * doc/glibc-functions/*.texi: Likewise.
27339         * doc/glibc-headers/*.texi: Likewise.
27341 2011-09-11  Bruno Haible  <bruno@clisp.org>
27343         unistd et al.: Don't assume <unistd.h> exists.
27344         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Don't include <unistd.h> if it
27345         does not exist.
27346         * m4/environ.m4 (gl_ENVIRON): Don't include <unistd.h> if it does not
27347         exist. But include <stdlib.h>.
27348         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): If <unistd.h> does not exist,
27349         include <io.h> and <stdlib.h> instead. Don't test symbolink links if
27350         symlink() does not exist.
27351         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): If <unistd.h> does not exist,
27352         include <io.h> instead.
27353         * m4/free.m4 (gl_FUNC_FREE): Assume free(NULL) works on native Windows.
27354         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): If <unistd.h> does not exist,
27355         include <direct.h> instead.
27356         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
27357         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
27358         * m4/lseek.m4 (gl_FUNC_LSEEK): If <unistd.h> does not exist, include
27359         <io.h> instead.
27360         * m4/rename.m4 (gl_FUNC_RENAME): Assume rename() manages hard links
27361         correctly if the system does not have hard links.
27362         * m4/rmdir.m4 (gl_FUNC_RMDIR): If <unistd.h> does not exist, include
27363         <direct.h> instead.
27364         * m4/unistd_h.m4 (gl_UNISTD_H): If <unistd.h> does not exist, bypass
27365         it when looking for function declarations.
27366         * m4/unlink.m4 (gl_FUNC_UNLINK): If <unistd.h> does not exist, include
27367         <direct.h> and <io.h> instead.
27368         * doc/posix-headers/unistd.texi: More details about MSVC problem.
27370 2011-09-11  Bruno Haible  <bruno@clisp.org>
27372         strcase: Support for MSVC.
27373         * modules/strcase (Status, Notice): Remove obsoletion mark.
27374         * doc/posix-functions/strcasecmp.texi: Mention MSVC problem.
27375         * doc/posix-functions/strncasecmp.texi: Likewise.
27377         strings: Don't assume <strings.h> exists.
27378         * lib/strings.in.h: Include <strings.h> only if HAVE_STRINGS_H is 1.
27379         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Set HAVE_STRINGS_H.
27380         * modules/strings (Makefile.am): Substitute HAVE_STRINGS_H.
27381         * doc/posix-headers/strings.texi: Mention the MSVC problem.
27383 2011-09-11  Bruno Haible  <bruno@clisp.org>
27385         dirent: Don't assume <dirent.h> exists.
27386         * lib/dirent.in.h: Include <dirent.h> only if HAVE_DIRENT_H is 1.
27387         * m4/dirent_h.m4 (gl_DIRENT_H): Set HAVE_DIRENT_H.
27388         * modules/dirent (Makefile.am): Substitute HAVE_DIRENT_H.
27389         * doc/posix-headers/dirent.texi: Mention the MSVC problem.
27391 2011-09-11  Bruno Haible  <bruno@clisp.org>
27393         Fix wint_t on MSVC.
27394         * lib/wchar.in.h (wint_t): On MSVC, override it.
27395         * lib/wctype.in.h (wint_t): Likewise.
27396         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Override BITSIZEOF_WINT_T on
27397         MSVC.
27398         * doc/posix-headers/wchar.texi: Mention the problem with wint_t on MSVC.
27399         * doc/posix-headers/wctype.texi: Likewise.
27401 2011-09-11  Bruno Haible  <bruno@clisp.org>
27403         sys_types: Fix typo.
27404         * lib/sys_types.in.h: Fix typo in comment.
27405         Reported by Paul Eggert.
27407         Support for MSVC compiler: Ensure size_t gets defined.
27408         * modules/strings (Depends-on): Add 'sys_types'.
27409         * modules/sys_uio (Depends-on): Likewise.
27410         * lib/sys_uio.in.h: Update comment.
27412         C++ tests for module 'sys_types'.
27413         * modules/sys_types-c++-tests: New file.
27414         * tests/test-sys_types-c++.cc: New file.
27416         Tests for module 'sys_types'.
27417         * modules/sys_types-tests: New file.
27418         * tests/test-sys_types.c: New file.
27420         New module 'sys_types'.
27421         * lib/sys_types.in.h: New file.
27422         * m4/sys_types_h.m4: New file.
27423         * modules/sys_types: New file.
27424         * doc/posix-headers/sys_types.texi: Mention the new module and the
27425         size_t problem on MSVC 9.
27427 2011-09-11  Bruno Haible  <bruno@clisp.org>
27429         Support for MSVC compiler: Avoid division by a literal 0.
27430         * lib/math.in.h (NAN): Define through a function call also on MSVC.
27431         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Divide by 'zero' instead of 0.0.
27432         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_DIRECTIVE_A,
27433         gl_PRINTF_DIRECTIVE_F, gl_PRINTF_FLAG_ZERO): Likewise.
27434         (gl_PRINTF_INFINITE_LONG_DOUBLE): Divide by 'zeroL' instead of 0.0L.
27435         * tests/infinity.h: New file.
27436         * tests/nan.h (NaNf, NaNd, NaNl): Define through a function call also
27437         on MSVC.
27438         * tests/test-ceilf1.c: Include infinity.h.
27439         (main): Use Infinityf.
27440         * tests/test-ceil1.c: Include infinity.h.
27441         (main): Use Infinityd.
27442         * tests/test-ceill.c: Include infinity.h.
27443         (main): Use Infinityl.
27444         * tests/test-dprintf-posix.c: Include infinity.h.
27445         (test_function): Use Infinityd.
27446         * tests/test-floorf1.c: Include infinity.h.
27447         (main): Use Infinityf.
27448         * tests/test-floor1.c: Include infinity.h.
27449         (main): Use Infinityd.
27450         * tests/test-floorl.c: Include infinity.h.
27451         (main): Use Infinityl.
27452         * tests/test-fprintf-posix.c: Include infinity.h.
27453         (test_function): Use Infinityd.
27454         * tests/test-frexp.c: Include infinity.h.
27455         (main): Use Infinityd.
27456         * tests/test-frexpl.c: Include infinity.h.
27457         (main): Use Infinityl.
27458         * tests/test-isfinite.c: Include infinity.h.
27459         (test_isfinitef): Use Infinityf.
27460         (test_isfinited): Use Infinityd.
27461         (test_isfinitel): Use Infinityl.
27462         * tests/test-isinf.c: Include infinity.h.
27463         (test_isinff): Use Infinityf.
27464         (test_isinfd): Use Infinityd.
27465         (test_isinfl): Use Infinityl.
27466         * tests/test-isnan.c: Include infinity.h.
27467         (test_float): Use Infinityf.
27468         (test_double): Use Infinityd.
27469         (test_long_double): Use Infinityl.
27470         * tests/test-isnanf.h: Include infinity.h.
27471         (main): Use Infinityf.
27472         * tests/test-isnand.h: Include infinity.h.
27473         (main): Use Infinityd.
27474         * tests/test-isnanl.h: Include infinity.h.
27475         (main): Use Infinityl.
27476         * tests/test-ldexpl.c: Include infinity.h.
27477         (main): Use Infinityl.
27478         * tests/test-printf-posix.h: Include infinity.h.
27479         (test_function): Use Infinityd.
27480         * tests/test-roundf1.c: Include infinity.h.
27481         (main): Use Infinityf.
27482         * tests/test-round1.c: Include infinity.h.
27483         (main): Use Infinityd.
27484         * tests/test-roundl.c: Include infinity.h.
27485         (main): Use Infinityl.
27486         * tests/test-signbit.c: Include infinity.h.
27487         (test_signbitf): Use Infinityf.
27488         (test_signbitd): Use Infinityd.
27489         (test_signbitl): Use Infinityl.
27490         * tests/test-snprintf-posix.h: Include infinity.h.
27491         (test_function): Use Infinityd, Infinityl.
27492         * tests/test-sprintf-posix.h: Include infinity.h.
27493         (test_function): Use Infinityd, Infinityl.
27494         * tests/test-truncf1.c: Include infinity.h.
27495         (main): Use Infinityf.
27496         * tests/test-trunc1.c: Include infinity.h.
27497         (main): Use Infinityd.
27498         * tests/test-truncl.c: Include infinity.h.
27499         (main): Use Infinityl.
27500         * tests/test-vasnprintf-posix.c: Include infinity.h.
27501         (test_function): Use Infinityd, Infinityl.
27502         * tests/test-vasprintf-posix.c: Include infinity.h.
27503         (test_function): Use Infinityd, Infinityl.
27504         * modules/ceilf-tests (Files): Add tests/infinity.h.
27505         * modules/ceil-tests (Files): Likewise.
27506         * modules/ceill-tests (Files): Likewise.
27507         * modules/dprintf-posix-tests (Files): Likewise.
27508         * modules/floorf-tests (Files): Likewise.
27509         * modules/floor-tests (Files): Likewise.
27510         * modules/floorl-tests (Files): Likewise.
27511         * modules/fprintf-posix-tests (Files): Likewise.
27512         * modules/frexp-tests (Files): Likewise.
27513         * modules/frexp-nolibm-tests (Files): Likewise.
27514         * modules/frexpl-tests (Files): Likewise.
27515         * modules/frexpl-nolibm-tests (Files): Likewise.
27516         * modules/isfinite-tests (Files): Likewise.
27517         * modules/isinf-tests (Files): Likewise.
27518         * modules/isnan-tests (Files): Likewise.
27519         * modules/isnanf-tests (Files): Likewise.
27520         * modules/isnanf-nolibm-tests (Files): Likewise.
27521         * modules/isnand-tests (Files): Likewise.
27522         * modules/isnand-nolibm-tests (Files): Likewise.
27523         * modules/isnanl-tests (Files): Likewise.
27524         * modules/isnanl-nolibm-tests (Files): Likewise.
27525         * modules/ldexpl-tests (Files): Likewise.
27526         * modules/printf-posix-tests (Files): Likewise.
27527         * modules/roundf-tests (Files): Likewise.
27528         * modules/round-tests (Files): Likewise.
27529         * modules/roundl-tests (Files): Likewise.
27530         * modules/signbit-tests (Files): Likewise.
27531         * modules/snprintf-posix-tests (Files): Likewise.
27532         * modules/sprintf-posix-tests (Files): Likewise.
27533         * modules/truncf-tests (Files): Likewise.
27534         * modules/trunc-tests (Files): Likewise.
27535         * modules/truncl-tests (Files): Likewise.
27536         * modules/vasnprintf-posix-tests (Files): Likewise.
27537         * modules/vasprintf-posix-tests (Files): Likewise.
27538         * modules/vdprintf-posix-tests (Files): Likewise.
27539         * modules/vfprintf-posix-tests (Files): Likewise.
27540         * modules/vprintf-posix-tests (Files): Likewise.
27541         * modules/vsnprintf-posix-tests (Files): Likewise.
27542         * modules/vsprintf-posix-tests (Files): Likewise.
27543         * modules/xprintf-posix-tests (Files): Likewise.
27545 2011-09-11  Bruno Haible  <bruno@clisp.org>
27547         Ensure pid_t gets defined.
27548         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_TYPE_PID_T.
27549         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
27550         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
27551         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
27552         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
27553         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
27554         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
27555         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
27556         * tests/test-fcntl-h.c: Check that pid_t is defined.
27557         * tests/test-sched.c: Likewise.
27558         * tests/test-termios.c: Likewise.
27559         * tests/test-time.c: Likewise.
27560         * doc/posix-headers/fcntl.texi: Mention lack of pid_t on MSVC platform.
27561         * doc/posix-headers/signal.texi: Likewise.
27562         * doc/posix-headers/sys_types.texi: Likewise.
27563         * doc/posix-headers/time.texi: Likewise.
27565 2011-09-11  Bruno Haible  <bruno@clisp.org>
27567         acl: Fix compilation on Solaris 10 (older version).
27568         * lib/file-has-acl.c (acl_ace_nontrivial): Use NEW_ACE_EVERYONE instead
27569         of ACE_EVERYONE.
27570         * lib/set-mode-acl.c (qset_acl): Likewise.
27571         Reported by Christian Jullien <eligis@orange.fr>.
27573 2011-09-10  Bruno Haible  <bruno@clisp.org>
27575         iconv, unsetenv: Add support for MSVC compiler.
27576         * m4/iconv.m4 (AM_ICONV): Use ISO C declaration syntax on MSVC.
27577         * m4/setenv.m4 (gl_FUNC_UNSETENV): Drop support for K&R C compilers.
27579 2011-09-10  Bruno Haible  <bruno@clisp.org>
27581         *printf: Add support for MSVC compiler.
27582         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N): On MSVC, install a handler that
27583         handles the exception caused by the %n directive. When cross-compiling,
27584         guess no on native Windows.
27585         (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
27586         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1): When snprintf is missing,
27587         emulate it through vsnprintf.
27588         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Update comment.
27589         * doc/posix-functions/dprintf.texi: Update documentation regarding
27590         MSVC 9.
27591         * doc/posix-functions/fprintf.texi: Likewise.
27592         * doc/posix-functions/printf.texi: Likewise.
27593         * doc/posix-functions/snprintf.texi: Likewise.
27594         * doc/posix-functions/sprintf.texi: Likewise.
27595         * doc/posix-functions/swprintf.texi: Likewise.
27596         * doc/posix-functions/vdprintf.texi: Likewise.
27597         * doc/posix-functions/vfprintf.texi: Likewise.
27598         * doc/posix-functions/vprintf.texi: Likewise.
27599         * doc/posix-functions/vsnprintf.texi: Likewise.
27600         * doc/posix-functions/vsprintf.texi: Likewise.
27601         * doc/glibc-functions/asprintf.texi: Likewise.
27602         * doc/glibc-functions/obstack_printf.texi: Likewise.
27603         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
27604         * doc/glibc-functions/vasprintf.texi: Likewise.
27606 2011-09-10  Bruno Haible  <bruno@clisp.org>
27608         nocrash: Add support for native Windows.
27609         * m4/nocrash.m4 (GL_NOCRASH): Avoid a crash also on native Windows.
27611 2011-09-10  Michael Goffioul  <michael.goffioul@gmail.com>  (tiny change)
27612             Bruno Haible  <bruno@clisp.org>
27614         absolute-header, include-next: Add support for MSVC compiler.
27615         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): Require
27616         AC_CANONICAL_HOST. On native Windows, recognize also backslash as
27617         directory separator in #line directives.
27618         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): On native Windows,
27619         recognize also backslash as directory separator in #line directives.
27621 2011-09-08  Jim Meyering  <meyering@redhat.com>
27623         maint.mk: mark the post-release commit log with "maint: " prefix
27624         * top/maint.mk (emit-commit-log): Add "maint: " prefix to the
27625         one-line commit-log summary.
27627 2011-09-08  Reuben Thomas  <rrt@sc3d.org>
27628             Bruno Haible  <bruno@clisp.org>
27630         Doc about crypt functions.
27631         * doc/posix-functions/crypt.texi: Mention need for _GNU_SOURCE on glibc
27632         systems.
27633         * doc/posix-functions/encrypt.texi: Likewise.
27634         * doc/posix-functions/setkey.texi: Likewise.
27636 2011-09-08  Simon Josefsson  <simon@josefsson.org>
27638         * lib/gc.h: Fix copyright header.
27640 2011-09-07  Bruno Haible  <bruno@clisp.org>
27642         pthread: Determine $(LIB_PTHREAD) correctly on OSF/1 5.1.
27643         * m4/pthread.m4 (gl_PTHREAD_CHECK): Use AC_CACHE_CHECK and
27644         AC_LINK_IFELSE instead of AC_SEARCH_LIBS.
27646 2011-09-07  Bruno Haible  <bruno@clisp.org>
27648         openat: Work around compilation error with OSF/1 5.1 DTK cc.
27649         * lib/fopen.c: Use different syntax for include of <stdio.h>.
27650         * lib/freopen.c: Likewise.
27651         * lib/fstatat.c: Use different syntax for include of <sys/stat.h>.
27652         * lib/lstat.c: Likewise.
27653         * lib/stat.c: Likewise.
27654         * lib/open.c: Use different syntax for include of <fcntl.h>.
27655         * lib/openat.c: Include fcntl.h again, explicitly.
27657 2011-09-04  J.T. Conklin  <jtc@acorntoolworks.com>
27659         parse-datetime: document the newly accepted format
27660         * doc/parse-datetime.texi (Combined date and time of day items):
27661         New section.
27663 2011-09-06  Bruno Haible  <bruno@clisp.org>
27665         acl: Fix a test failure on newer Solaris 10 with ZFS.
27666         * tests/test-sameacls.c (main): Interpret acl GETACLCNT failure with
27667         ENOSYS as no ACL.
27668         Reported by Jim Meyering.
27670 2011-09-06  Bruno Haible  <bruno@clisp.org>
27672         acl: Update for AIX >= 5.3 with NFS.
27673         * lib/file-has-acl.c (file_has_acl): Interpret aclx_get failure with
27674         ENOSYS as no ACL.
27676         acl: Fix a test failure on AIX >= 5.3 with NFS.
27677         * tests/test-sameacls.c (main): Interpret aclx_get failure with ENOSYS
27678         as no ACL.
27680 2011-09-06  Bruno Haible  <bruno@clisp.org>
27682         acl: Fix a test failure on IRIX 6.5 with NFS.
27683         * lib/acl-internal.h (MODE_INSIDE_ACL): Define to 0 on IRIX.
27684         * lib/set-mode-acl.c (qset_acl): Test !HAVE_ACL_TYPE_EXTENDED instead
27685         of MODE_INSIDE_ACL. If !MODE_INSIDE_ACL, do a chmod_or_fchmod always.
27686         * lib/copy-acl.c (qcopy_acl): Likewise.
27688 2011-09-05  Paul Eggert  <eggert@cs.ucla.edu>
27690         openat: port to AIX 7.1 with large files
27691         AIX 7.1 does a "#define openat open64at" if large files are in use,
27692         so we can't simply #undef openat.  Use the orig_openat trick (similar
27693         to orig_open in lib/open.c) to work around the problem.  Problem
27694         reported by Kevin Brott for GNU tar, in the thread containing
27695         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00032.html>.
27696         * lib/openat.c (__need_system_fcntl_h): Define first.
27697         Include <fcntl.h> and <sys/types.h> before undefining.
27698         (orig_openat) [HAVE_OPENAT]: New inline function.
27699         (openat) [HAVE_OPENAT]: Do not undef.
27700         (rpl_openat): Use orig_openat, not openat.
27702 2011-09-05  Joachim Schmitz  <schmitz@hp.com>  (tiny change)
27703             Bruno Haible  <bruno@clisp.org>
27705         acl: Avoid errors on NonStop Kernel.
27706         * lib/file-has-acl.c (file_has_acl) [NonStop Kernel]: Ignore ENOSYS and
27707         ENOTSUP errors.
27709 2011-09-05  Bruno Haible  <bruno@clisp.org>
27711         acl: Clean up Solaris code.
27712         * lib/acl-internal.h: Remove no-op #if.
27713         * lib/file-has-acl.c: Likewise.
27714         * lib/set-mode-acl.c (qset_acl): Remove unused Solaris code.
27715         * lib/copy-acl.c (qcopy_acl): Likewise.
27717 2011-09-05  Bruno Haible  <bruno@clisp.org>
27719         acl: Fix a bug with NFSv4 ACLs on Solaris 10 (newer version) in
27720         binaries built on the original Solaris 10.
27721         * lib/file-has-acl.c (file_has_acl): ACLs with 4..6 ACEs can be
27722         trivial.
27724 2011-09-05  Bruno Haible  <bruno@clisp.org>
27726         acl: Improve support of NFSv4 ACLs on Solaris 10 (newer version).
27727         * lib/acl-internal.h (acl_nontrivial): Declare also on newer Solaris
27728         10.
27729         * lib/file-has-acl.c (acl_nontrivial): Define also on newer Solaris 10.
27730         (acl_ace_nontrivial): Likewise. Recognize the trivial ACLs with 6 ACEs.
27731         * lib/copy-acl.c (qcopy_acl): On newer Solaris 10, use acl or facl
27732         instead of acl_get, facl_get, acl_set, facl_set.
27734 2011-09-05  Bruno Haible  <bruno@clisp.org>
27736         copy-file: Try unit tests on more file systems.
27737         * tests/test-copy-file-1.sh: New file.
27738         * tests/test-copy-file-2.sh: New file.
27739         * modules/copy-file-tests (Files): Add them.
27740         (Makefile.am): Add them to TESTS.
27742         acl: Try unit tests on more file systems.
27743         * tests/test-file-has-acl-1.sh: New file.
27744         * tests/test-file-has-acl-2.sh: New file.
27745         * tests/test-set-mode-acl-1.sh: New file.
27746         * tests/test-set-mode-acl-2.sh: New file.
27747         * tests/test-copy-acl-1.sh: New file.
27748         * tests/test-copy-acl-2.sh: New file.
27749         * modules/acl-tests (Files): Add them.
27750         (Makefile.am): Add them to TESTS.
27752 2011-09-04  Bruno Haible  <bruno@clisp.org>
27754         acl: Improve support of NFSv4 ACLs on Solaris 10 (newer version).
27755         * lib/acl-internal.h (ACE_*, NEW_ACE_*): Define also on newer Solaris
27756         10.
27757         (OLD_ALLOW, OLD_DENY): New macros.
27758         (NEW_ACE_ACCESS_ALLOWED_ACE_TYPE): Renamed from
27759         ACE_ACCESS_ALLOWED_ACE_TYPE.
27760         (NEW_ACE_ACCESS_DENIED_ACE_TYPE): Renamed from
27761         ACE_ACCESS_DENIED_ACE_TYPE.
27762         (OLD_ACE_OWNER, OLD_ACE_GROUP, OLD_ACE_OTHER): New macros.
27763         (NEW_ACE_EXECUTE): Fix value.
27764         (NEW_ACE_APPEND_DATA, NEW_ACE_READ_NAMED_ATTRS,
27765         NEW_ACE_WRITE_NAMED_ATTRS, NEW_ACE_DELETE_CHILD,
27766         NEW_ACE_READ_ATTRIBUTES, NEW_ACE_WRITE_ATTRIBUTES, NEW_ACE_DELETE,
27767         NEW_ACE_READ_ACL, NEW_ACE_WRITE_ACL, NEW_ACE_WRITE_OWNER,
27768         NEW_ACE_SYNCHRONIZE): New macros.
27769         * lib/set-mode-acl.c (qset_acl): On newer Solaris 10, use acl or facl
27770         instead of acl_fromtext, acl_set, facl_set.
27771         Fixes a coreutils/tests/cp/perm failure.
27773 2011-09-03  Paul Eggert  <eggert@cs.ucla.edu>
27775         openat: test for fstatat (..., 0) bug
27776         Further testing with tar suggests that fstatat (..., 0)
27777         does not work in general, on AIX 7.1; see
27778         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00023.html>.
27779         So, give up entirely on AIX 7.1's fstatat, and fall back on our
27780         replacement fstatat (which is what older AIX releases were using
27781         anyway).
27782         * lib/fstatat.c (fstatat) [HAVE_FSTATAT]: Do not undef.  The only
27783         use is now changed to orig_fstatat.  This was probably the right
27784         thing to do anyway.
27785         (FSTATAT_AT_FDCWD_0_BROKEN): Remove; no longer used.
27786         (rpl_fstatat) [FSTATAT_ZERO_FLAG_BROKEN]: Remove.
27787         (rpl_fstatat): Simplify, assuming !FSTATAT_ZERO_FLAG_BROKEN.
27788         (AT_FUNC_NAME) [FSTATAT_ZERO_FLAG_BROKEN]: Now rpl_fstatat.
27789         * m4/openat.m4 (gl_FUNC_FSTATAT): Test for the more-general bug
27790         and define FSTATAT_ZERO_FLAG_BROKEN, not FSTATAT_AT_FDCWD_0_BROKEN,
27791         if the bug is found.
27793         openat: test for fstatat (AT_FDCWD, ..., 0) bug
27794         This tests for another fstatat bug on AIX 7.1:
27795         fstatat (AT_FDCWD, ..., 0) does not work.  See
27796         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00015.html>.
27797         * lib/fstatat.c (FSTATAT_AT_FDCWD_0_BROKEN)
27798         (LSTAT_FOLLOWS_SLASHED_SYMLINK): Default to 0.
27799         (rpl_fstatat): Adjust so that it works around either (or both)
27800         bugs if present.
27801         * m4/openat.m4 (gl_FUNC_FSTATAT): Test for this fstatat bug.
27803 2011-09-03  Karl Berry  <karl@gnu.org>
27805         * doc/regex.texi (Character Class Operators): Avoid literal ":"
27806         in index entries.
27808 2011-09-02  Bruno Haible  <bruno@clisp.org>
27810         Allow the user to override the choice of AR, ARFLAGS, RANLIB.
27811         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Don't override the given
27812         values of AR, ARFLAGS, RANLIB.
27813         Reported by John W. Eaton <jwe@gnu.org> for Octave.
27815 2011-09-02  Bruno Haible  <bruno@clisp.org>
27817         Find 'ar' program that fits with --host argument.
27818         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Use AC_CHECK_TOOL.
27820 2011-09-02  Bruno Haible  <bruno@clisp.org>
27822         tests: init.sh: Support any non-GNU diff.
27823         * tests/init.sh (compare): If "diff -c" is supported but "diff -u" is
27824         not, use "diff -c". Useful on AIX 6.1, HP-UX 11.31, OSF/1 5.1,
27825         Solaris 8.
27827 2011-09-02  Bruno Haible  <bruno@clisp.org>
27829         tests: init.sh: work also with any non-GNU diff that supports -u
27830         * tests/init.sh: Relax check for diff -u support.
27831         Rather than checking for GNU diff via --version, simply check
27832         for support for -u itself.  Useful at least on OpenBSD 4.9,
27833         AIX 7.1, IRIX 6.5, and Solaris 10.
27835 2011-09-01  Bruno Haible  <bruno@clisp.org>
27837         strtoimax, strtoumax: Document problem on HP-UX 11.
27838         * doc/posix-functions/strtoimax.texi: Mention HP-UX 11.11 problem.
27839         * doc/posix-functions/strtoumax.texi: Likewise.
27841 2011-09-01  Bruno Haible  <bruno@clisp.org>
27843         strtoumax: Avoid link error on OSF/1 with DTK cc.
27844         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Always test whether strtoumax is
27845         defined as a function.
27846         * modules/strtoumax (Depends-on, configure.ac): Test only whether
27847         strtoumax is defined, not whether it is declared.
27849 2011-09-01  Bruno Haible  <bruno@clisp.org>
27851         strtoimax: Avoid link error on OSF/1 with DTK cc.
27852         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Always test whether strtoimax is
27853         defined as a function.
27854         * modules/strtoimax (Depends-on, configure.ac): Test only whether
27855         strtoimax is defined, not whether it is declared.
27857 2011-09-01  Bruno Haible  <bruno@clisp.org>
27859         imaxdiv: Avoid link error on OSF/1 with DTK cc.
27860         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Also test whether imaxdiv is defined
27861         as a function.
27862         * modules/imaxdiv (configure.ac): Test whether imaxdiv is defined, not
27863         whether it is declared.
27865 2011-09-01  Bruno Haible  <bruno@clisp.org>
27867         imaxabs: Avoid link error on OSF/1 with DTK cc.
27868         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Also test whether imaxabs is defined
27869         as a function.
27870         * modules/imaxabs (configure.ac): Test whether imaxabs is defined, not
27871         whether it is declared.
27873 2011-09-01  Bruno Haible  <bruno@clisp.org>
27875         Tests for module 'strtoumax'.
27876         * modules/strtoumax-tests: New file.
27877         * tests/test-strtoumax.c: New file.
27879         Tests for module 'strtoimax'.
27880         * modules/strtoimax-tests: New file.
27881         * tests/test-strtoimax.c: New file.
27883         Tests for module 'imaxdiv'.
27884         * modules/imaxdiv-tests: New file.
27885         * tests/test-imaxdiv.c: New file.
27887         Tests for module 'imaxabs'.
27888         * modules/imaxabs-tests: New file.
27889         * tests/test-imaxabs.c: New file.
27891 2011-09-01  Bruno Haible  <bruno@clisp.org>
27893         pthread: Determine $(LIB_PTHREAD) correctly on IRIX 6.5.
27894         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_join, not
27895         pthread_create.
27897 2011-09-01  Paul Eggert  <eggert@cs.ucla.edu>
27899         openat: work around AIX 7.1 fstatat issue
27900         This should fix the problem that was not properly fixed
27901         in the previous change, dated 2011-08-30.
27902         * lib/fstatat.c: Include <sys/stat.h> twice, the first with
27903         __need_system_stat_h defined.
27904         (orig_fstatat) [HAVE_FSTATAT]: New function.
27905         (rpl_fstatat): Go back to the old way of doing things,
27906         except call orig_fstatat instead of fstatat.
27907         * m4/openat.m4 (gl_FUNC_FSTATAT): Remove unnecessary check for openat.
27908         Remove unnecessary check whether fstatat fills in st_size etc.
27910 2011-09-01  Bruno Haible  <bruno@clisp.org>
27912         sys_select: Avoid a syntax error regarding timespec_t on IRIX 6.5.
27913         * lib/sys_select.in.h [__sgi]: When included from <sys/bsd_types.h>,
27914         just include the system's header.
27916 2011-08-31  Jim Meyering  <meyering@redhat.com>
27918         tests: avoid spurious assertion failure in test-float.c on ppc64
27919         * tests/test-float.c (test_long_double): Comment out an assertion,
27920         LDBL_MIN_EXP <= DBL_MIN_EXP, that is failing at least on PowerPC-64
27921         with gcc-4.4.4.
27923         maint: indent with spaces, not TABs
27924         I need to get in the habit of running gnulib's "make check".
27925         Both of these would have been caught.
27926         * m4/largefile.m4: Indent with spaces, not TABs.
27927         * lib/parse-datetime.y (iso_8601_time): Likewise.
27928         Spotted by Pádraig Brady.
27930         test-parse-datetime.c: accommodate a relatively strict gcc warning
27931         * tests/test-parse-datetime.c (gmt_offset): Declare function "static",
27932         to avoid a warning from gcc's -Werror=missing-declarations.
27933         Insert a few spaces-before-funcall-parenthesis.
27935 2011-08-17  J.T. Conklin  <jtc@acorntoolworks.com>
27937         parse-datetime: accept ISO 8601 date and time rep with "T" separator
27938         The parser now accepts ISO 8601 date-time strings with "T" as the
27939         separator.  It has long parsed dates like "2004-02-29 16:21:42"
27940         with a space between the date and time strings.  Now it also parses
27941         "2004-02-29T16:21:42" and fractional-second and time-zone-annotated
27942         variants like "2004-02-29T16:21:42.333-07:00"
27943         * lib/parse-datetime.y: Parse ISO 8601 extended date and time
27944         of day representation using the 'T' separator character.
27945         * doc/parse-datetime.texi (General date syntax): replace use of
27946         deprecated --iso-8601 option with --rfc-3339 in example of date
27947         command output formats that can be parsed.
27948         * tests/test-parse-datetime.c (tm_diff): New function, taken from
27949         lib/parse-datetime.y.
27950         (gmt_offset): New function.
27951         (main): Add additional test cases to validate ISO8601 extended
27952         date and time of day parsing.
27954 2011-08-31  Bruno Haible  <bruno@clisp.org>
27956         freopen: Documentation.
27957         * doc/posix-functions/freopen.texi: Document the bug with the NULL file
27958         name.
27959         Reported by Claudio Bley <claudio.bley@gmail.com>.
27961 2011-08-31  Claudio Bley  <claudio.bley@gmail.com>  (tiny change)
27963         freopen: Don't crash if the filename argument is NULL.
27964         * lib/freopen.c (rpl_freopen): Don't compare the filename if it is
27965         NULL.
27967 2011-08-30  Paul Eggert  <eggert@cs.ucla.edu>
27969         openat: work around AIX 7.1 fstatat bug
27970         Problem reported by Kevin Brott for GNU tar, in the thread containing
27971         <http://lists.gnu.org/archive/html/bug-tar/2011-08/msg00015.html>.
27972         * lib/fstatat.c (rpl_fstatat): Do not invoke underlying fstatat if
27973         FSTATAT_ST_SIZE_ETC_BROKEN.
27974         (fstatat) [FSTATAT_ST_SIZE_ETC_BROKEN && HAVE_FSTATAT]: #define to
27975         rpl_fstatat.
27976         * m4/openat.m4 (gl_FUNC_FSTATAT): New macro, with the fstatat-relevant
27977         part of gl_FUNC_OPENAT.  Also, check for the AIX 7.1 bug, and use
27978         AC_CHECK_FUNCS_ONCE for fstatat.
27979         (gl_FUNC_OPENAT): Use it.  Use AC_CHECK_FUNCS_ONCE for
27980         fchmodat, mkdirat, openat and unlinkat.
27982 2011-08-30  Bruno Haible  <bruno@clisp.org>
27984         Avoid endless recursions if config.h includes some header files.
27985         * lib/fopen.c (__need_FILE): Define already before including config.h.
27986         * lib/freopen.c (__need_FILE): Likewise.
27987         * lib/open.c (__need_system_fcntl_h): Likewise.
27988         * lib/stat.c (__need_system_sys_stat_h): Likewise.
27989         * lib/lstat.c (__need_system_sys_stat_h): Likewise.
27990         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
27992 2011-08-25  Karl Berry  <karl@gnu.org>
27994         * config/srclist.txt (ylwrap): new try.
27995         * build-aux/ylwrap: new file.
27997 2011-08-23  Bruno Haible  <bruno@clisp.org>
27999         tmpdir: Use a good default directory on native Windows.
28000         * lib/tmpdir.c: Include <windows.h>, pathmax.h.
28001         (P_tmpdir): Default to _P_tmpdir on native Windows.
28002         (path_search): On native Windows, try the value returned by GetTempPath
28003         before trying P_tmpdir.
28004         * modules/tmpdir (Depends-on): Add pathmax.
28005         Suggested by John Darrington <john@darrington.wattle.id.au>.
28007 2011-08-20  Reuben Thomas  <rrt@sc3d.org>
28009         doc: fix typo in README-release
28010         * top/README-release: Capitalize first word of a sentence.
28012 2011-08-19  Jim Meyering  <meyering@redhat.com>
28014         fts: do not exhaust memory when processing million-entry directories
28015         Before this change, traversing (via rm -rf, find, du, etc.) an N-entry
28016         directory would require about 256*N bytes of memory.  Thus, it was
28017         easy to construct a directory too large to be processed by any of
28018         those tools.  With this change, fts' maximum memory utilization is
28019         now limited to around 30MB.
28020         * lib/fts.c (FTS_MAX_READDIR_ENTRIES): Define.
28021         (fts_read): When we've processed the final entry (i.e., when
28022         ->fts_link is NULL) and fts_dirp is non-NULL, call fts_build
28023         using the parent entry to read any remaining entries.  Dispatch
28024         depending on what fts_build returns:
28025         - NULL+stop, aka failure: stop
28026         - NULL otherwise: move up in the dir hierarchy
28027         - non-NULL: handle this new entry
28028         (fts_build): Declare and use new local, continue_readdir.
28029         Prepare to be called from fts_read, when the entries
28030         from a partially-read directory have just been exhausted.
28031         In that case, we'll skip the opendir and instead use the parent's
28032         fts_dirp and derive dir_fd from that.
28033         Finally, in the readdir loop, if we read max_entries entries,
28034         exit the loop ensuring *not* to call closedir.  This is required
28035         so that fts_dirp can be reused on a subsequent call.
28036         Prompted by Ben England's report of memory exhaustion in find
28037         and rm -rf vs. NFS: https://bugzilla.redhat.com/719749.
28039         maint: fts: move decl of `dp' down into while loop; split a long line
28040         * lib/fts.c (fts_build): No semantic change.
28042         fts: add/use new struct member, fts_dirp
28043         We are about to use this to manage any directory with
28044         too many entries to read all of them into memory at once.
28045         To do that, we'll need to save the DIR* pointer in each
28046         affected FTSENT struct.
28047         * lib/fts_.h: Include <dirent.h>.
28048         (struct FTSENT) [fts_dirp]: New member.
28049         * lib/fts.c (closedir_and_clear): Define.
28050         Use it in place of closedir so that we are sure to
28051         clear the new fts_dirp member when done with it.
28052         (fts_alloc): Initialize the new member.
28053         (fts_lfree): Free, if needed.
28055         maint: fts: give __opendir2 a new parameter and rename
28056         * lib/fts.c (__opendir2): Give it a new parameter, Pdir_fd, rather
28057         than surreptitiously using sole caller's "dir_fd".
28058         (fts_opendir): Rename from __opendir2.
28060         maint: fts.c: remove __opendir2's now-unused parameter, oflag
28061         * lib/fts.c (__opendir2): Remove unused parameter, oflag.
28063         maint: fts.c: correct off-by-one indentation
28064         * lib/fts.c (fts_build): Correct indentation, change style
28065         of a couple of block comments, and bracing style.
28067         maint: fts.c: move __opendir2 #define "up" out of function body
28068         * lib/fts.c (__opendir2): Move "up".  No semantic change.
28070         maint: fts.c: remove #if-0'd FTS_WHITEOUT code
28071         * lib/fts.c: Remove #if-0'd FTS_WHITEOUT code.  It's been #if-0'd
28072         out for a long time and besides was useful only on BSD systems.
28074 2011-08-18  Paul Eggert  <eggert@cs.ucla.edu>
28076         regex: port to Stratus OpenVOS
28077         * lib/regex_internal.h (internal_function) [!_LIBC]: Simply
28078         define to empty, rather than attempting nonportable optimizations.
28079         Problem reported by Paul Green in:
28080         http://lists.gnu.org/archive/html/bug-diffutils/2011-08/msg00047.html
28081         and fix suggested by Eric Blake in:
28082         http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00143.html
28084 2011-08-17  Eric Blake  <eblake@redhat.com>
28086         getcwd: fix test failures on mingw
28087         * lib/getcwd.c (__getcwd): Early exit for ERANGE.
28088         * tests/test-getcwd.c (test_abort_bug, test_long_name): Don't fail
28089         test if long directory cannot be created, and allow mingw errno.
28091         getcwd-lgpl: fix m4 to match relaxed test for BSD
28092         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Relax probe.
28093         (gl_FUNC_GETCWD_SIGNATURE): New macro.
28094         (gl_FUNC_GETCWD_LGPL, gl_FUNC_GETCWD): Use it.
28095         * doc/posix-functions/getcwd.texi (getcwd): Tweak mentions of
28096         signature problem.
28098         getcwd: fix compilation on mingw64
28099         * lib/unistd.in.h (includes) [mingw]: Include <direct.h> for
28100         getcwd.
28101         Reported by Marc-André Lureau.
28103         pipe2: silence compiler warning
28104         * lib/pipe2.c (pipe2): Hide label if it is not used.
28106 2011-08-15  Ben Pfaff  <blp@cs.stanford.edu>
28108         relocatable-prog: fix link error
28109         * modules/relocatable-prog (configure.ac) [RELOCATABLE]: Also
28110         invoke AC_LIBOBJ([relocatable]).  This invocation was previously
28111         in the gl_RELOCATABLE_LIBRARY macro.  That invocation was moved
28112         into modules/relocatable-lib without noticing that
28113         modules/relocatable-prog also invokes gl_RELOCATABLE_LIBRARY and
28114         also needs to build relocatable.c.
28116 2011-08-12  Paul Eggert  <eggert@cs.ucla.edu>
28118         getaddrinfo: fix sh typo in gai_strerrorA decl checking
28119         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix typo in the generated
28120         shell code: it contained a 'break' that was not in a loop.
28121         Apparently the macro assumed that AC_CHECK_DECLS is implemenented
28122         via a shell-language loop; this may have been true in old Autoconf
28123         versions, but it's not true in Autoconf 2.68.  I found this bug
28124         when testing coreutils git on Solaris 8, whose shell complains
28125         about the syntax error.
28127 2011-08-12  Simon Josefsson  <simon@josefsson.org>
28129         * lib/base64.c: Fix comment to reference RFC 4648.
28130         Suggested by Bruno Haible <bruno@clisp.org> and Gijs van Tulder
28131         <gvtulder@gmail.com>.
28133 2011-08-11  Paul Eggert  <eggert@cs.ucla.edu>
28135         * build-aux/bootstrap (slurp): Remove obsolescent gettext.m4 patch.
28137         po/Makefile.in.in: fix make -q problem
28138         * build-aux/po/Makefile.in.in (check-macro-version): Remove this
28139         rule, since there's no file named 'check-macro-version' and its
28140         use as a file breaks make -q.
28141         (all): Don't depend on check-macro-version.
28142         (CHECK_MACRO_VERSION): New macro.
28143         (stamp-po): Use it.
28145         configmake: fix make -q problem
28146         * modules/configmake (configmake.h): Update configmake.h's time stamp
28147         even if the file does not change.  Otherwise, 'make -q' fails.
28148         Problem reported by Simon Josefsson in
28149         <http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00088.html>.
28151 2011-08-11  Jim Meyering  <meyering@redhat.com>
28153         git-version-gen: correct the advice in a comment
28154         * build-aux/git-version-gen: Correct comment.
28155         Don't recommend to list .tarball-version in .gitignore.
28157 2011-08-10  Paul Eggert  <eggert@cs.ucla.edu>
28159         base64: fix off-by-one buffer size bug
28160         Problem and (trivial) fix reported by Gijs van Tulder in
28161         <http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00083.html>.
28162         * lib/base64.c (base64_decode_alloc_ctx): Allocate one more byte.
28163         * tests/test-base64.c (main): Catch the bug.
28165 2011-08-10  Eric Blake  <eblake@redhat.com>
28167         closein: correct comments
28168         * lib/closein.c (close_stdin): Improve comments.
28170 2011-08-09  Bruno Haible  <bruno@clisp.org>
28172         More tests for 'fseeko'.
28173         * tests/test-fseeko3.c: New file, from Eric Blake.
28174         * tests/test-fseeko3.sh: New file.
28175         * modules/fseeko-tests (Files): Add them.
28176         (TESTS): Add test-fseeko3.sh.
28177         (check_PROGRAMS): Add test-fseeko3.
28179 2011-08-09  Eric Blake  <eblake@redhat.com>
28181         fseeko: remove unneeded hack
28182         * lib/fseeko.c (fseeko): Don't special-case SEEK_END.
28184         fseeko: fix bug on glibc
28185         * lib/fseeko.c (fseeko): Set stream offset to match fd offset.
28186         Reported by John W. Eaton.
28188 2011-08-08  Bruno Haible  <bruno@clisp.org>
28190         unictype/base: Fix interoperability with preinstalled libunistring.
28191         * modules/unictype/base (configure.ac): Bump minimum version to 0.9.4.
28192         Reported by Simon Josefsson.
28194 2011-08-08  Bruno Haible  <bruno@clisp.org>
28196         iswblank: Detect declaration correctly.
28197         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Use correct headers in
28198         AC_CHECK_DECLS invocation.
28200 2011-08-08  Bruno Haible  <bruno@clisp.org>
28202         tcgetsid: Detect declaration correctly.
28203         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Use correct headers in
28204         AC_CHECK_DECLS invocation.
28205         Reported by Simon Josefsson.
28207 2011-08-08  Eric Blake  <eblake@redhat.com>
28209         largefile: fix typo that regressed large file support
28210         * modules/largefile (configure.ac-early): Fix section name.
28212 2011-08-06  Karl Berry  <karl@gnu.org>
28214         * MODULES.html.sh (func_all_files): _Noreturn is no longer
28215         a separate module.
28217 2011-08-05  Simon Josefsson  <simon@josefsson.org>
28219         openat: Fix warnings and commens when building unlinkat.c on Hurd.
28220         * lib/unlinkat.c: Mention Hurd in comments.  Include stdlib.h to
28221         get prototype for free.
28223 2011-08-04  Bruno Haible  <bruno@clisp.org>
28225         Tests for module 'pathmax'.
28226         * modules/pathmax-tests: New file.
28227         * tests/test-pathmax.c: New file.
28229         canonicalize-lgpl: Support larger filenames on the Hurd.
28230         * lib/canonicalize-lgpl.c (__realpath): Bump path_max fallback to 8192.
28231         Reported by Paul Eggert.
28233         pathmax: Leave PATH_MAX undefined on the Hurd, and a constant otherwise.
28234         * lib/pathmax.h (PATH_MAX): Leave it undefined on GNU/Hurd.
28235         * lib/chdir-long.h: Include pathmax.h.
28236         * lib/clean-temp.c (PATH_MAX): Remove code that is done by pathmax.h.
28237         * lib/getcwd.c: Include pathmax.h instead of <limits.h>.
28238         (PATH_MAX): Remove code that is done by pathmax.h.
28239         * lib/canonicalize.c (PATH_MAX): Provide a fallback value.
28240         * lib/tmpfile.c: Add a comment.
28241         * m4/pathmax.m4 (gl_PATHMAX): Don't test for pathconf.
28242         * modules/chdir-long (Depends-on): Add pathmax.
28243         * modules/getcwd (Depends-on): Add pathmax.
28244         * tests/test-getcwd.c (test_abort_bug): Avoid syntax error when PATH_MAX
28245         is not defined.
28246         * doc/posix-headers/limits.texi: Mention the pathmax module.
28247         * NEWS: Mention the change.
28249 2011-08-02  Bruno Haible  <bruno@clisp.org>
28251         pthread_sigmask: Actually use results of gl_THREADLIB.
28252         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test and require
28253         gl_THREADLIB, not gl_[]THREADLIB.
28254         Reported by Eric Blake.
28256 2011-08-02  Jim Meyering  <meyering@redhat.com>
28258         maint.mk: relax the default _gl_TS_function_match regexp
28259         * top/maint.mk (_gl_TS_function_match): Don't require at least one
28260         space between function name and "(" in an "extern" declaration.
28261         That would fail to match a decl with no space there: extern void foo();
28263 2011-07-31  Iain Nicol  <iain@thenicols.net>
28265         git-version-gen: document that EXTRA_DIST must include .version
28266         * build-aux/git-version-gen: In the how-to-use comment, document
28267         that EXTRA_DIST must include .version.  Otherwise, "make distcheck"
28268         will fail when run from an unpacked distribution tarball.
28270 2011-08-01  Bruno Haible  <bruno@clisp.org>
28272         wctype-h: Fix last change.
28273         * m4/wctype_h.m4 (gl_WCTYPE_H): If towlower is defined, set
28274         REPLACE_TOWLOWER to 0.
28275         Reported by Sam Steingold <sds@gnu.org>.
28277 2011-07-31  Bruno Haible  <bruno@clisp.org>
28279         frexpl: Update autoconf test.
28280         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Update overrides of <float.h>,
28281         according to changes of 2011-06-20.
28283 2011-07-31  Bruno Haible  <bruno@clisp.org>
28285         sys_utsname: Add support for Minix.
28286         * lib/sys_utsname.in.h [Minix]: Include <stddef.h> before
28287         <sys/utsname.h>.
28288         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
28289         * doc/posix-headers/sys_utsname.texi: Document the Minix problem.
28291 2011-07-31  Bruno Haible  <bruno@clisp.org>
28293         strings: Add support for Minix.
28294         * lib/strings.in.h [Minix]: Include <sys/types.h> before <strings.h>.
28295         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
28296         * doc/posix-headers/strings.texi: Document the Minix problem.
28298 2011-07-31  Bruno Haible  <bruno@clisp.org>
28300         wctype-h: Add support for Minix.
28301         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towlower is declared. Set
28302         REPLACE_TOWLOWER.
28303         * modules/wctype-h (Makefile.am): Substitute REPLACE_TOWLOWER.
28304         * lib/wctype.in.h (towlower, towupper): Test REPLACE_TOWLOWER, not
28305         REPLACE_ISWCNTRL.
28307 2011-07-31  Paul Eggert  <eggert@cs.ucla.edu>
28309         * lib/xalloc.h (DEFAULT_MXFAST): Track 64-bit glibc.
28310         This is a performance improvement for 64-bit hosts: it causes the
28311         value of DEFAULT_MXFAST to track what's in glibc on such hosts.
28313 2011-07-31  Bruno Haible  <bruno@clisp.org>
28315         stdioext: Add support for Minix.
28316         * lib/fbufmode.c (fbufmode) [__minix]: Add conditional code.
28317         * lib/fpurge.c (fpurge): Likewise.
28318         * lib/freadahead.c (freadahead): Likewise.
28319         * lib/freadable.c (freadable): Likewise.
28320         * lib/freading.c (freading): Likewise.
28321         * lib/freadptr.c (freadptr): Likewise.
28322         * lib/freadseek.c (freadptrinc): Likewise.
28323         * lib/fseeko.c (rpl_fseeko): Likewise.
28324         * lib/fseterr.c (fseterr): Likewise.
28325         * lib/fwritable.c (fwritable): Likewise.
28326         * lib/fwriting.c (fwriting): Likewise.
28327         * lib/fflush.c (clear_ungetc_buffer): Update comment.
28328         * m4/fpending.m4 (gl_PREREQ_FPENDING): Add a variant for Minix.
28330 2011-07-31  Bruno Haible  <bruno@clisp.org>
28332         errno: Port to Minix.
28333         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Test also whether ENETRESET and
28334         ECONNABORTED are defined.
28335         * lib/errno.in.h (ENETRESET, GNULIB_defined_ENETRESET, ECONNABORTED,
28336         GNULIB_defined_ECONNABORTED): New macros.
28337         * lib/strerror-override.h (strerror_override): Test also
28338         GNULIB_defined_ENETRESET, GNULIB_defined_ECONNABORTED.
28339         * lib/strerror-override.c (strerror_override): Handle also ENETRESET,
28340         ECONNABORTED.
28341         * doc/posix-headers/errno.texi: Mention the Minix problem.
28343 2011-07-31  Bruno Haible  <bruno@clisp.org>
28345         Work around declaration collisions on Minix.
28346         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): If mbsinit is declared but not
28347         defined, set REPLACE_MBSINIT.
28348         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): If mbrtowc is declared but not
28349         defined, set REPLACE_MBRTOWC.
28350         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): If mbrlen is declared but not defined,
28351         set REPLACE_MBRLEN.
28352         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): If mbsrtowcs is declared but not
28353         defined, set REPLACE_MBSRTOWCS.
28354         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): If wcrtomb is declared but not
28355         defined, set REPLACE_WCRTOMB.
28356         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): If wcsrtombs is declared but not
28357         defined, set REPLACE_WCSRTOMBS.
28359 2011-07-31  Bruno Haible  <bruno@clisp.org>
28361         Add support for Minix with ACK compiler.
28362         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): New macro.
28363         * gnulib-tool (func_import, func_create_testdir): Emit invocation of
28364         gl_PROG_AR_RANLIB instead of AC_PROG_RANLIB.
28366 2011-07-31  Bruno Haible  <bruno@clisp.org>
28368         Documentation about Minix.
28369         * doc/posix-headers/*.texi: Add info about Minix 3.1.8.
28370         * doc/glibc-headers/*.texi: Likewise.
28371         * doc/posix-functions/*.texi: Likewise.
28372         * doc/glibc-functions/*.texi: Likewise.
28374 2011-07-31  Bruno Haible  <bruno@clisp.org>
28376         snippet/warn-on-use: Fix indentation.
28377         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Fix indentation.
28379 2011-07-25  Jim Meyering  <meyering@redhat.com>
28381         tests: test-update-copyright.sh: remove unnecessary "rm" commands
28382         * tests/test-update-copyright.sh: Remove unused rm -f $TMP.*.bak
28383         commands.
28385 2011-07-27  Jim Meyering  <meyering@redhat.com>
28387         maint.mk: avoid sc_prohibit_always-defined_macros failure in coreutils
28388         * top/maint.mk (gl_extract_significant_defines_): Now that
28389         SA_RESETHAND and SA_RESTART are #defined (albeit conditionally) in
28390         gnulib/lib/signal.in.h, and now that we recommend to
28391         define-if-undefined those two symbols in application code,
28392         we must filter them out of the "significant" list.
28393         This avoids a "make syntax-check" failure in coreutils.
28395 2011-07-26  Eric Blake  <eblake@redhat.com>
28397         warnings: add comments about previous patch
28398         * m4/absolute-header.m4: Document AS_VAR_PUSHDEF limitation.
28399         * m4/include_next.m4: Likewise.
28400         * m4/warn-on-use.m4: Likewise.
28401         * m4/warnings.m4: Likewise, and simplify use.
28402         Suggested by Stefano Lattarini.
28404         include-next, warnings: support older autoconf
28405         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Use
28406         AS_VAR_PUSHDEF in a way that works with older autoconf.
28407         * m4/warnings.m4 (gl_WARN_ADD): Likewise.
28408         Reported by Daniel P. Berrange.
28410 2011-07-25  Bruno Haible  <bruno@clisp.org>
28412         fseek, ftell: Fix doc.
28413         * doc/posix-functions/fseek.texi: Reword statement about
28414         AC_SYS_LARGEFILE.
28415         * doc/posix-functions/ftell.texi: Likewise.
28417 2011-07-25  Paul Eggert  <eggert@cs.ucla.edu>
28418             Bruno Haible  <bruno@clisp.org>
28420         Add dependencies to the 'largefile' module.
28421         * modules/fopen (Depends-on): Add 'largefile'.
28422         * modules/freopen (Depends-on): Likewise.
28423         * modules/fseeko (Depends-on): Likewise.
28424         * modules/ftello (Depends-on): Likewise.
28425         * modules/glob (Depends-on): Likewise.
28426         * modules/lseek (Depends-on): Likewise.
28427         * modules/lstat (Depends-on): Likewise.
28428         * modules/mkostemp (Depends-on): Likewise.
28429         * modules/mkostemps (Depends-on): Likewise.
28430         * modules/mkstemp (Depends-on): Likewise.
28431         * modules/mkstemps (Depends-on): Likewise.
28432         * modules/open (Depends-on): Likewise.
28433         * modules/openat (Depends-on): Likewise.
28434         * modules/pread (Depends-on): Likewise.
28435         * modules/pwrite (Depends-on): Likewise.
28436         * modules/scandir (Depends-on): Likewise.
28437         * modules/stat (Depends-on): Likewise.
28438         * modules/tmpfile (Depends-on): Likewise.
28439         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Do not require AC_SYS_LARGEFILE,
28440         since the containing module now depends on the largefile module.
28441         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Likewise.
28442         * doc/posix-functions/fopen.texi: Mention that the problem of 32-bit
28443         off_t is fixed by gnulib.
28444         * doc/posix-functions/freopen.texi: Likewise.
28445         * doc/posix-functions/fseeko.texi: Likewise.
28446         * doc/posix-functions/fstatat.texi: Likewise.
28447         * doc/posix-functions/ftello.texi: Likewise.
28448         * doc/posix-functions/glob.texi: Likewise.
28449         * doc/posix-functions/lseek.texi: Likewise.
28450         * doc/posix-functions/lstat.texi: Likewise.
28451         * doc/posix-functions/mkstemp.texi: Likewise.
28452         * doc/posix-functions/open.texi: Likewise.
28453         * doc/posix-functions/openat.texi: Likewise.
28454         * doc/posix-functions/pread.texi: Likewise.
28455         * doc/posix-functions/pwrite.texi: Likewise.
28456         * doc/posix-functions/scandir.texi: Likewise.
28457         * doc/posix-functions/stat.texi: Likewise.
28458         * doc/posix-functions/tmpfile.texi: Likewise.
28459         * doc/glibc-functions/mkostemp.texi: Likewise.
28460         * doc/glibc-functions/mkostemps.texi: Likewise.
28461         * doc/glibc-functions/mkstemps.texi: Likewise.
28463 2011-07-25  Bruno Haible  <bruno@clisp.org>
28465         fcntl: Move AC_LIBOBJ invocation to module description.
28466         * m4/fcntl.m4 (gl_REPLACE_FCNTL): Don't invoke AC_LIBOBJ.
28467         * modules/fcntl (configure.ac): Invoke AC_LIBOBJ.
28469         fcntl: Remove call-in from fchdir.m4.
28470         * m4/fcntl.m4 (gl_FUNC_FCNTL): Conditionally invoke gl_TEST_FCHDIR.
28471         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_FCNTL.
28473         dup3: Remove potential call-in from fchdir.m4.
28474         * m4/dup3.m4 (gl_FUNC_DUP3): Add comment about fchdir.
28475         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Remove comment about dup3.
28477         dup2: Move AC_LIBOBJ invocation to module description.
28478         * m4/dup2.m4 (gl_REPLACE_DUP2): Remove macro.
28479         (gl_FUNC_DUP2): Instead of gl_REPLACE_DUP2, just set REPLACE_DUP2 to 1.
28480         Don't invoke AC_LIBOBJ.
28481         * modules/dup2 (configure.ac): Invoke AC_LIBOBJ.
28483         dup2: Remove call-in from fchdir.m4.
28484         * m4/dup2.m4 (gl_FUNC_DUP2): Conditionally invoke gl_TEST_FCHDIR.
28485         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_DUP2.
28487         fclose: Move AC_LIBOBJ invocation to module description.
28488         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Remove macro.
28489         (gl_FUNC_FCLOSE): Instead of gl_REPLACE_FCLOSE, just set REPLACE_FCLOSE
28490         to 1.
28491         * modules/fclose (configure.ac): Invoke AC_LIBOBJ.
28493         fclose: Remove call-in from close.m4.
28494         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_CLOSE.
28495         * m4/close.m4 (gl_FUNC_CLOSE): Don't invoke gl_REPLACE_FCLOSE.
28497         close: Move AC_LIBOBJ invocation to module description.
28498         * m4/close.m4 (gl_REPLACE_CLOSE): Remove macro.
28499         (gl_FUNC_CLOSE): Instead of gl_REPLACE_CLOSE, just set REPLACE_CLOSE to
28500         1.
28501         * modules/close (configure.ac): Invoke AC_LIBOBJ.
28503         close: Remove call-in from fchdir.m4.
28504         * m4/close.m4 (gl_FUNC_CLOSE): Conditionally invoke gl_TEST_FCHDIR.
28505         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_CLOSE.
28507         open: Move AC_LIBOBJ invocation to module description.
28508         * m4/open.m4 (gl_REPLACE_OPEN): Remove macro.
28509         (gl_FUNC_OPEN): Instead of gl_REPLACE_OPEN, just set REPLACE_OPEN to 1.
28510         * modules/open (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_OPEN.
28512         open: Remove call-in from fchdir.m4.
28513         * m4/open.m4 (gl_FUNC_OPEN): Conditionally invoke gl_TEST_FCHDIR.
28514         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_OPEN.
28516         fchdir: Start to remove gl_REPLACE_* idiom.
28517         * m4/fchdir.m4 (gl_TEST_FCHDIR): New macro.
28518         (gl_FUNC_FCHDIR): Invoke it.
28520 2011-07-25  Paul Eggert  <eggert@cs.ucla.edu>
28522         * lib/ftell.c (ftell): Comment out cast.
28524         close: use gl_REPLACE_FCLOSE only if defined
28525         * m4/close.m4 (gl_REPLACE_CLOSE): Use gl_REPLACE_FCLOSE only if it
28526         is defined.  The close module doesn't depend on the fclose module
28527         any more, so gl_REPLACE_CLOSE's existence cannot be assumed.  See
28528         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00392.html>.
28529         I reproduced the problem with "./gnulib-tool --test close sys_socket".
28531 2011-07-24  Jim Meyering  <meyering@redhat.com>
28533         test-select.h: avoid warning when using gcc's -Wmissing-declarations
28534         * tests/test-select.h (test_function): Declare as "static".
28536 2011-07-24  Bruno Haible  <bruno@clisp.org>
28538         doc: Mention the effects of AC_SYS_LARGEFILE.
28539         * doc/posix-functions/aio_cancel.texi: Mention the effects of AC_SYS_LARGEFILE
28540         on this function.
28541         * doc/posix-functions/aio_error.texi: Likewise.
28542         * doc/posix-functions/aio_fsync.texi: Likewise.
28543         * doc/posix-functions/aio_read.texi: Likewise.
28544         * doc/posix-functions/aio_return.texi: Likewise.
28545         * doc/posix-functions/aio_suspend.texi: Likewise.
28546         * doc/posix-functions/aio_write.texi: Likewise.
28547         * doc/posix-functions/fgetpos.texi: Likewise.
28548         * doc/posix-functions/fopen.texi: Likewise.
28549         * doc/posix-functions/freopen.texi: Likewise.
28550         * doc/posix-functions/fsetpos.texi: Likewise.
28551         * doc/posix-functions/fstatvfs.texi: Likewise.
28552         * doc/posix-functions/ftruncate.texi: Likewise.
28553         * doc/posix-functions/ftw.texi: Likewise.
28554         * doc/posix-functions/getrlimit.texi: Likewise.
28555         * doc/posix-functions/glob.texi: Likewise.
28556         * doc/posix-functions/lio_listio.texi: Likewise.
28557         * doc/posix-functions/lockf.texi: Likewise.
28558         * doc/posix-functions/mkstemp.texi: Likewise.
28559         * doc/posix-functions/mmap.texi: Likewise.
28560         * doc/posix-functions/nftw.texi: Likewise.
28561         * doc/posix-functions/openat.texi: Likewise.
28562         * doc/posix-functions/opendir.texi: Likewise.
28563         * doc/posix-functions/posix_fadvise.texi: Likewise.
28564         * doc/posix-functions/posix_fallocate.texi: Likewise.
28565         * doc/posix-functions/pread.texi: Likewise.
28566         * doc/posix-functions/pwrite.texi: Likewise.
28567         * doc/posix-functions/readdir.texi: Likewise.
28568         * doc/posix-functions/readdir_r.texi: Likewise.
28569         * doc/posix-functions/rewinddir.texi: Likewise.
28570         * doc/posix-functions/scandir.texi: Likewise.
28571         * doc/posix-functions/seekdir.texi: Likewise.
28572         * doc/posix-functions/setrlimit.texi: Likewise.
28573         * doc/posix-functions/statvfs.texi: Likewise.
28574         * doc/posix-functions/telldir.texi: Likewise.
28575         * doc/posix-functions/tmpfile.texi: Likewise.
28576         * doc/posix-functions/truncate.texi: Likewise.
28577         * doc/glibc-functions/fallocate.texi: Likewise.
28578         * doc/glibc-functions/fstatfs.texi: Likewise.
28579         * doc/glibc-functions/fts_children.texi: Likewise.
28580         * doc/glibc-functions/fts_read.texi: Likewise.
28581         * doc/glibc-functions/getdirentries.texi: Likewise.
28582         * doc/glibc-functions/mkostemp.texi: Likewise.
28583         * doc/glibc-functions/mkostemps.texi: Likewise.
28584         * doc/glibc-functions/mkstemps.texi: Likewise.
28585         * doc/glibc-functions/preadv.texi: Likewise.
28586         * doc/glibc-functions/pwritev.texi: Likewise.
28587         * doc/glibc-functions/sendfile.texi: Likewise.
28588         * doc/glibc-functions/statfs.texi: Likewise.
28590 2011-07-24  Bruno Haible  <bruno@clisp.org>
28592         doc: Fix typo.
28593         * doc/posix-functions/fstat.texi: Talk about fstat, not stat.
28595 2011-07-24  Bruno Haible  <bruno@clisp.org>
28597         doc: Mention fsusage.
28598         * doc/posix-functions/statvfs.texi: Mention the fsusage module.
28600 2011-07-24  Bruno Haible  <bruno@clisp.org>
28602         doc: Mention new glibc headers and functions.
28603         * doc/glibc-headers/gshadow.texi: New file.
28604         * doc/glibc-functions/endsgent.texi: New file.
28605         * doc/glibc-functions/fgetsgent.texi: New file.
28606         * doc/glibc-functions/fgetsgent_r.texi: New file.
28607         * doc/glibc-functions/getsgent.texi: New file.
28608         * doc/glibc-functions/getsgent_r.texi: New file.
28609         * doc/glibc-functions/getsgnam.texi: New file.
28610         * doc/glibc-functions/getsgnam_r.texi: New file.
28611         * doc/glibc-functions/putsgent.texi: New file.
28612         * doc/glibc-functions/setsgent.texi: New file.
28613         * doc/glibc-functions/sgetsgent.texi: New file.
28614         * doc/glibc-functions/sgetsgent_r.texi: New file.
28615         * doc/glibc-functions/malloc_info.texi: New file.
28616         * doc/glibc-functions/preadv.texi: New file.
28617         * doc/glibc-functions/pwritev.texi: New file.
28618         * doc/glibc-functions/register_printf_modifier.texi: New file.
28619         * doc/glibc-functions/register_printf_specifier.texi: New file.
28620         * doc/glibc-functions/register_printf_type.texi: New file.
28621         * doc/glibc-functions/pthread_attr_getaffinity_np.texi: New file.
28622         * doc/glibc-functions/pthread_attr_setaffinity_np.texi: New file.
28623         * doc/glibc-functions/pthread_getaffinity_np.texi: New file.
28624         * doc/glibc-functions/pthread_getname_np.texi: New file.
28625         * doc/glibc-functions/pthread_mutex_consistent_np.texi: New file.
28626         * doc/glibc-functions/pthread_mutexattr_getrobust_np.texi: New file.
28627         * doc/glibc-functions/pthread_mutexattr_setrobust_np.texi: New file.
28628         * doc/glibc-functions/pthread_setaffinity_np.texi: New file.
28629         * doc/glibc-functions/pthread_setname_np.texi: New file.
28630         * doc/glibc-functions/pthread_sigqueue.texi: New file.
28631         * doc/glibc-functions/pthread_timedjoin_np.texi: New file.
28632         * doc/glibc-functions/pthread_tryjoin_np.texi: New file.
28633         * doc/glibc-functions/qsort_r.texi: New file.
28634         * doc/glibc-functions/quick_exit.texi: New file.
28635         * doc/glibc-functions/syncfs.texi: New file.
28636         * doc/gnulib.texi: Include them.
28637         (Glibc gshadow.h, Glibc sys/uio.h): New sections.
28638         * doc/posix-functions/psiginfo.texi: Fix info about glibc version.
28639         * doc/posix-functions/pthread_mutex_consistent.texi: Likewise.
28640         * doc/posix-functions/pthread_mutexattr_getrobust.texi: Likewise.
28641         * doc/posix-functions/pthread_mutexattr_setrobust.texi: Likewise.
28642         * doc/glibc-functions/execvpe.texi: Likewise.
28644 2011-07-24  Paul Eggert  <eggert@cs.ucla.edu>
28646         ftell: don't include <unistd.h>
28647         * lib/ftell.c: Don't include <unistd.h>.  <stdio.h> is now
28648         guaranteed to define off_t, and the ftell module depends on the
28649         stdio module.
28651         ftell: do not assume wraparound signed arithmetic
28652         * lib/ftell.c: Include <limits.h>.
28653         (ftell): Don't assume wraparound signed arithmetic.
28655 2011-07-24  Bruno Haible  <bruno@clisp.org>
28657         close: No longer depend on module 'fclose'.
28658         * modules/close (Depends-on): Remove fclose.
28659         * NEWS: Mention the change.
28660         Suggested by Sam Steingold <sds@gnu.org>.
28662 2011-07-24  Bruno Haible  <bruno@clisp.org>
28664         fsusage: Enable large volume support on AIX >= 5.2.
28665         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): If 'struct statvfs64' has a
28666         larger f_blocks field than 'struct statvfs', define STAT_STATVFS64
28667         instead of STAT_STATVFS.
28668         * lib/fsusage.c (get_fs_usage) [STAT_STATVFS64]: Use statvfs64.
28670         fsusage: Restore previous behaviour on AIX, Cygwin, Interix.
28671         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Enforce a 64-bit struct statvfs
28672         f_blocks field only on MacOS X.
28674         fsusage: Support large volumes on glibc/Hurd, HP-UX, Solaris, MacOS X.
28675         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Require AC_SYS_LARGEFILE.
28676         * modules/fsusage (Depends-on): Add largefile.
28678 2011-07-24  Paul Eggert  <eggert@cs.ucla.edu>
28680         * README: Modernize discussion of signed integers.
28681         Assuming overflow wraparound is no longer safe.
28682         Mention ones' complement and signed magnitude.
28684 2011-07-22  Bruno Haible  <bruno@clisp.org>
28686         select tests, pselect tests: Refactor.
28687         * tests/test-select.h: New file, extracted from tests/test-select.c.
28688         (select_fn): New type.
28689         (test, do_select, do_select_nowait, do_select_wait, test_tty,
28690         test_connect_first, test_accept_first, test_pair, test_socket_pair,
28691         test_pipe): Add my_select argument.
28692         (test_function): Renamed from main. Add my_select argument.
28693         * tests/test-select.c: Move most code to tests/test-select.h. Include
28694         test-select.h.
28695         * modules/select-tests (Files): Add tests/test-select.h.
28696         * tests/test-pselect.c: Include test-select.h instead of test-select.c.
28697         (my_select, main): New functions.
28698         * modules/pselect-tests (Files): Add tests/test-select.h,
28699         tests/macros.h, tests/signature.h.
28700         (Depends-on): Remove select-tests. Add dependencies of test-select.h.
28701         (configure.ac): Check for <sys/wait.h>.
28703 2011-07-22  Bruno Haible  <bruno@clisp.org>
28705         sys_select tests: Check the signature of FD_*.
28706         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Move
28707         signature tests from here...
28708         * tests/test-sys_select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): ... to
28709         here.
28710         * modules/sys_select-tests (Files): Add tests/signature.h.
28712 2011-07-22  Paul Eggert  <eggert@cs.ucla.edu>
28714         largefile: new module, replacing large-inode
28715         Pádraig Brady suggested this in <http://debbugs.gnu.org/9140#20>.
28716         * MODULES.html.sh: Add largefile, remove large-inode.
28717         * modules/largefile, m4/largefile.m4: New files.
28718         * modules/large-inode, m4/large-inode.m4: Remove.
28720         fsusage: port to MacOS X 10.7 with 4 TiB file systems
28721         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Reject statvfs
28722         implementations that use only 32 bits to count blocks.
28723         On typical hosts with 1024-byte blocks, this fails with file
28724         systems as small as 4 TiB.  Problem reported by Herb Wartens
28725         <http://debbugs.gnu.org/9140> and this should also fix a similar
28726         problem reported by Tim Spriggs <http://debbugs.gnu.org/7355>.
28728         large-inode: New module
28729         * MODULES.html.sh: Add it.
28730         * modules/large-inode, m4/large-inode.m4: New files.
28732         extensions: Enable extensions on MacOS X 10.5 and later.
28733         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Define _DARWIN_C_SOURCE.
28735 2011-07-22  Kamil Dudka  <kdudka@redhat.com>
28737         file-has-acl: use acl_extended_file_nofollow if available
28738         * lib/acl-internal.h (HAVE_ACL_EXTENDED_FILE): New macro.
28739         (acl_extended_file): New macro.
28740         * lib/file-has-acl.c (file_has_acl): Use acl_extended_file_nofollow.
28741         * m4/acl.m4 (gl_FUNC_ACL): Check for acl_extended_file_nofollow.
28743 2011-07-21  Bruno Haible  <bruno@clisp.org>
28745         Declare system functions in a way that works with C++.
28746         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR) [C++]: In the test program,
28747         declare fdopendir as extern "C".
28748         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS) [C++]: In the test program,
28749         declare frexpl as extern "C".
28750         * m4/getaddrinfo.m4 (gl_GETADDRINFO) [C++]: In the test program,
28751         declare gai_strerror as extern "C".
28752         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME) [C++]: In the test
28753         programs, declare gai_strerror as extern "C".
28754         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R) [C++]: In the test program,
28755         declare getlogin_r as extern "C".
28756         * m4/ioctl.m4 (gl_FUNC_IOCTL) [C++]: In the test program, declare ioctl
28757         as extern "C".
28758         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS) [C++]: In the test program,
28759         declare ldexpl as extern "C".
28760         * m4/logb.m4 (gl_FUNC_LOGB) [C++]: In the test programs, declare logb
28761         as extern "C".
28762         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS) [C++]: In the test
28763         program, declare getmntinfo as extern "C".
28764         * m4/stpncpy.m4 (gl_FUNC_STPNCPY) [C++]: In the test program, declare
28765         stpncpy as extern "C".
28766         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS) [C++]: In the test
28767         program, declare __xpg_strerror_r as extern "C".
28768         * m4/strndup.m4 (gl_FUNC_STRNDUP) [C++]: In the test program, declare
28769         strndup as extern "C".
28770         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT) [C++]: In the test program,
28771         declare memset and bzero as extern "C".
28772         Reported by Sam Steingold <sds@gnu.org>.
28774 2011-07-12  Jim Meyering  <meyering@redhat.com>
28776         maint.mk: prohibit inclusion of "verify.h" without use
28777         * top/maint.mk (sc_prohibit_verify_without_use): New rule.
28779 2011-07-19  Pádraig Brady  <P@draigBrady.com>
28781         timer-time: A new module to check for timer_settime()
28782         * m4/timer_time.m4: Check for the posix function.
28783         * modules/timer-time: Add the new module.
28784         * MODULES.html.sh (Compat checks for POSIX:2008 functions):
28785         Mention it.
28787 2011-07-19  Paul Eggert  <eggert@cs.ucla.edu>
28788             Bruno Haible  <bruno@clisp.org>
28790         pthread_sigmask: assume POSIX threads if --avoid=threadlib
28791         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): If gl_THREADLIB is
28792         not defined, assume POSIX threads and look for pthread_sigmask in
28793         $LIBS, without changing $CPPFLAGS.
28795 2011-07-19  Bruno Haible  <bruno@clisp.org>
28797         strstr: Update cross-compilation guess.
28798         * m4/strstr.m4 (gl_FUNC_STRSTR): On glibc > 2.12 with x86 or x86_64
28799         CPUs, guess no, in view of glibc
28800         BZ #12100 <http://sourceware.org/bugzilla/show_bug.cgi?id=12100>.
28801         Suggested by Eric Blake. Reported by Reuben Thomas.
28803 2011-07-19  Pádraig Brady  <P@draigBrady.com>
28805         getopt-gnu: suppress core dumps from detection code
28806         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Use the nocrash module
28807         to suppress core dumps that may well occur on glibc systems.
28808         * modules/getopt-gnu: Depend on nocrash.
28810 2011-07-16  Paul Eggert  <eggert@cs.ucla.edu>
28812         pthread_sigmask: ensure usleep is declared
28813         * lib/pthread_sigmask.c [PTHREAD_SIGMASK_UNBLOCK_BUG]:
28814         Include <unistd.h>, to declare usleep.  Needed on Solaris 8,
28816 2011-07-15  Paul Eggert  <eggert@cs.ucla.edu>
28818         doc: Document NonStop portability issues.
28819         * doc/posix-functions/sigaction.texi (sigaction):
28820         * doc/posix-headers/signal.texi (signal.h):
28821         Document NonStop.  See Joachim Schmitz in
28822         http://lists.gnu.org/archive/html/bug-coreutils/2011-07/msg00062.html
28824 2011-07-15  Bruno Haible  <bruno@clisp.org>
28826         ffsl, ffsll: Avoid unportable behaviour.
28827         * lib/ffsl.h (FUNC): Use 'unsigned int' instead of 'int'.
28829 2011-07-15  Bruno Haible  <bruno@clisp.org>
28831         ffs: More tests.
28832         * tests/test-ffs.c (NBITS): New macro.
28833         (main): Add more tests.
28834         * tests/test-ffsl.c (NBITS): New macro.
28835         (main): Add more tests.
28836         * tests/test-ffsll.c (NBITS): New macro.
28837         (main): Add more tests.
28839 2011-07-15  Eric Blake  <eblake@redhat.com>
28841         ffsl, ffsll: new modules
28842         * modules/ffsl: New file.
28843         * modules/ffsll: Likewise.
28844         * m4/ffsl.m4: Likewise.
28845         * m4/ffsll.m4: Likewise.
28846         * lib/ffsl.c: Likewise.
28847         * lib/ffsl.h: Likewise.
28848         * lib/ffsll.c: Likewise.
28849         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY)
28850         (gl_HEADER_STRING_H_DEFAULTS): Add defaults.
28851         * modules/string (Makefile.am): Substitute witnesses.
28852         * lib/strings.in.h (ffsl, ffsll): Declare.
28853         * modules/ffsl-tests: New test file.
28854         * modules/ffsll-tests: Likewise.
28855         * tests/test-ffsl.c: Likewise.
28856         * tests/test-ffsll.c: Likewise.
28857         * MODULES.html.sh (Integer arithmetic functions): Mention it.
28858         * doc/glibc-functions/ffsl.texi (ffsl): Likewise.
28859         * doc/glibc-functions/ffsll.texi (ffsll): Likewise.
28861         ffs: fix m4 prerequisite
28862         * m4/ffs.m4 (gl_FUNC_FFS): Require strings.h defaults.
28864         ffs: avoid undefined behavior
28865         * lib/ffs.c (ffs): Provide fallback for non-32-bit int.
28866         * tests/test-ffs.c (naive, main): Avoid signed shifts.
28867         Reported by Bruno Haible.
28869 2011-07-12  Bruno Haible  <bruno@clisp.org>
28871         pthread_sigmask: Rely on module 'threadlib'.
28872         * modules/pthread_sigmask (Depends-on): Add threadlib.
28873         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Assume gl_THREADLIB
28874         is defined.
28876 2011-07-12  Bruno Haible  <bruno@clisp.org>
28878         regex: Depend on module 'strcase'.
28879         * modules/regex (Depends-on): Add strcase, for strcasecmp().
28881 2011-07-12  Jim Meyering  <meyering@redhat.com>
28883         warn-on-use: fix typo in file name
28884         * modules/snippet/warn-on-use (Files): Correct file name:
28885         include /snippet/ component in "build-aux/snippet/warn-on-use.h".
28887 2011-07-12  Bruno Haible  <bruno@clisp.org>
28889         strings: Document module.
28890         * doc/posix-headers/strings.texi: Mention module 'strings'.
28892 2011-07-12  Bruno Haible  <bruno@clisp.org>
28894         Rename module '_Noreturn' to 'snippet/_Noreturn'.
28895         * modules/snippet/_Noreturn: Renamed from modules/_Noreturn.
28896         (Files, Makefile.am): Update.
28897         * build-aux/snippet/_Noreturn.h: Renamed from build-aux/_Noreturn.h.
28898         * modules/stdlib (Depends-on): Update.
28900 2011-07-12  Bruno Haible  <bruno@clisp.org>
28902         * NEWS: Mention the changes.
28904         Rename module 'warn-on-use' to 'snippet/warn-on-use'.
28905         * modules/snippet/warn-on-use: Renamed from modules/warn-on-use.
28906         (Files, Makefile.am): Update.
28907         * build-aux/snippet/warn-on-use.h: Renamed from build-aux/warn-on-use.h.
28908         * modules/arpa_inet (Depends-on): Update.
28909         * modules/ctype (Depends-on): Update.
28910         * modules/dirent (Depends-on): Update.
28911         * modules/fcntl-h (Depends-on): Update.
28912         * modules/glob (Depends-on): Update.
28913         * modules/iconv-h (Depends-on): Update.
28914         * modules/inttypes-incomplete (Depends-on): Update.
28915         * modules/langinfo (Depends-on): Update.
28916         * modules/locale (Depends-on): Update.
28917         * modules/math (Depends-on): Update.
28918         * modules/netdb (Depends-on): Update.
28919         * modules/poll-h (Depends-on): Update.
28920         * modules/pty (Depends-on): Update.
28921         * modules/search (Depends-on): Update.
28922         * modules/signal (Depends-on): Update.
28923         * modules/spawn (Depends-on): Update.
28924         * modules/stdio (Depends-on): Update.
28925         * modules/stdlib (Depends-on): Update.
28926         * modules/string (Depends-on): Update.
28927         * modules/strings (Depends-on): Update.
28928         * modules/sys_file (Depends-on): Update.
28929         * modules/sys_ioctl (Depends-on): Update.
28930         * modules/sys_select (Depends-on): Update.
28931         * modules/sys_socket (Depends-on): Update.
28932         * modules/sys_stat (Depends-on): Update.
28933         * modules/sys_time (Depends-on): Update.
28934         * modules/sys_times (Depends-on): Update.
28935         * modules/sys_utsname (Depends-on): Update.
28936         * modules/sys_wait (Depends-on): Update.
28937         * modules/termios (Depends-on): Update.
28938         * modules/time (Depends-on): Update.
28939         * modules/unistd (Depends-on): Update.
28940         * modules/wchar (Depends-on): Update.
28941         * modules/wctype-h (Depends-on): Update.
28942         * MODULES.html.sh (Support for building libraries and executables):
28943         Update.
28945         Rename module 'unused-parameter' to 'snippet/unused-parameter'.
28946         * modules/snippet/unused-parameter: Renamed from
28947         modules/unused-parameter.
28948         (Files, Makefile.am): Update.
28949         * build-aux/snippet/unused-parameter.h: Renamed from
28950         build-aux/unused-parameter.h.
28951         * modules/selinux-h (Depends-on): Update.
28952         * modules/unistr/base (Depends-on): Update.
28953         * MODULES.html.sh (Core language properties): Update.
28955         Rename module 'link-warning' to 'snippet/link-warning'.
28956         * modules/snippet/link-warning: Renamed from modules/link-warning.
28957         (Files, Makefile.am): Update.
28958         * build-aux/snippet/link-warning.h: Renamed from
28959         build-aux/link-warning.h.
28960         * MODULES.html.sh (Support for building libraries and executables):
28961         Update.
28963         Rename module 'c++defs' to 'snippet/c++defs'.
28964         * modules/snippet/c++defs: Renamed from modules/c++defs.
28965         (Files, Makefile.am): Update.
28966         * build-aux/snippet/c++defs.h: Renamed from build-aux/c++defs.h.
28967         * modules/arpa_inet (Depends-on): Update.
28968         * modules/ctype (Depends-on): Update.
28969         * modules/dirent (Depends-on): Update.
28970         * modules/fcntl-h (Depends-on): Update.
28971         * modules/glob (Depends-on): Update.
28972         * modules/iconv-h (Depends-on): Update.
28973         * modules/langinfo (Depends-on): Update.
28974         * modules/locale (Depends-on): Update.
28975         * modules/math (Depends-on): Update.
28976         * modules/netdb (Depends-on): Update.
28977         * modules/poll-h (Depends-on): Update.
28978         * modules/pty (Depends-on): Update.
28979         * modules/search (Depends-on): Update.
28980         * modules/signal (Depends-on): Update.
28981         * modules/spawn (Depends-on): Update.
28982         * modules/stdio (Depends-on): Update.
28983         * modules/stdlib (Depends-on): Update.
28984         * modules/string (Depends-on): Update.
28985         * modules/strings (Depends-on): Update.
28986         * modules/sys_ioctl (Depends-on): Update.
28987         * modules/sys_select (Depends-on): Update.
28988         * modules/sys_socket (Depends-on): Update.
28989         * modules/sys_stat (Depends-on): Update.
28990         * modules/sys_time (Depends-on): Update.
28991         * modules/sys_wait (Depends-on): Update.
28992         * modules/termios (Depends-on): Update.
28993         * modules/time (Depends-on): Update.
28994         * modules/unistd (Depends-on): Update.
28995         * modules/wchar (Depends-on): Update.
28996         * modules/wctype-h (Depends-on): Update.
28998         Rename module 'arg-nonnull' to 'snippet/arg-nonnull'.
28999         * modules/snippet/arg-nonnull: Renamed from modules/arg-nonnull.
29000         (Files, Makefile.am): Update.
29001         * build-aux/snippet/arg-nonnull.h: Renamed from build-aux/arg-nonnull.h.
29002         * modules/argv-iter (Depends-on): Update.
29003         * modules/arpa_inet (Depends-on): Update.
29004         * modules/dirent (Depends-on): Update.
29005         * modules/fcntl-h (Depends-on): Update.
29006         * modules/fnmatch (Depends-on): Update.
29007         * modules/getopt-posix (Depends-on): Update.
29008         * modules/glob (Depends-on): Update.
29009         * modules/iconv-h (Depends-on): Update.
29010         * modules/inttypes-incomplete (Depends-on): Update.
29011         * modules/locale (Depends-on): Update.
29012         * modules/math (Depends-on): Update.
29013         * modules/netdb (Depends-on): Update.
29014         * modules/search (Depends-on): Update.
29015         * modules/signal (Depends-on): Update.
29016         * modules/spawn (Depends-on): Update.
29017         * modules/stdio (Depends-on): Update.
29018         * modules/stdlib (Depends-on): Update.
29019         * modules/string (Depends-on): Update.
29020         * modules/strings (Depends-on): Update.
29021         * modules/sys_socket (Depends-on): Update.
29022         * modules/sys_stat (Depends-on): Update.
29023         * modules/sys_time (Depends-on): Update.
29024         * modules/sys_times (Depends-on): Update.
29025         * modules/sys_utsname (Depends-on): Update.
29026         * modules/time (Depends-on): Update.
29027         * modules/unistd (Depends-on): Update.
29028         * modules/wchar (Depends-on): Update.
29029         * MODULES.html.sh (Support for building libraries and executables):
29030         Update.
29032 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
29034         Improvements on _Noreturn and related modules.
29036         modules/_Exit-tests: test _Noreturn too
29037         * tests/test-_Exit.c (MTA, Charlie): New functions, taken from the
29038         old tests/test-stdnoreturn.c.  This tests the _Noreturn keyword a bit.
29039         (main): Use them.
29041         stdnoreturn, stdnoreturn-tests: remove modules
29042         They're not needed here and a bit premature for use elsewhere.  See
29043         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00209.html>.
29044         * m4/stdnoreturn.m4, modules/stdnoreturn, modules/stdnoreturn-tests:
29045         * tests/test-stdnoreturn.c: Remove files.
29046         * MODULES.html.sh (_Noreturn <stdnoreturn.h>): Remove section.
29047         * lib/openat.h, lib/sigpipe-die.h, lib/xalloc.h, lib/xmemdup0.h:
29048         * lib/xstrtol.h: Use _Noreturn rather than including <stdnoreturn.h>
29049         and using noreturn.
29050         * modules/openat, modules/sigpipe-die, modules/xalloc:
29051         * modules/xmemdup0, modules/xstrtol:
29052         Remove dependency on stdnoreturn.
29054         _Noreturn: Ignore __STDC_VERSION__; observe _MSC_VER.
29055         * build-aux/_Noreturn.h (_Noreturn): Ignore __STDC_VERSION__.
29056         Reparenthesize to avoid GCC warning.
29057         Support Microsoft's syntax.
29058         * m4/gnulib-common.m4 (gl_COMMON_BODY): Likewise.
29060         _Noreturn-tests: remove module
29061         * modules/_Noreturn-tests: Remove.
29062         * modules/stdnoreturn-tests (Files): Remove tests/test-_Noreturn.c.
29063         * tests/test-_Noreturn.c: Remove.
29064         * tests/test-stdnoreturn.c: Merge from the old
29065         tests/test-_Noreturn.c, testing both noreturn and _Noreturn.
29067 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
29069         _Noreturn, stdnoreturn, and related modules.
29071         * top/maint.mk: Adjust to new noreturn support.
29072         (gl_extract_significant_defines_): Omit pattern ATTRIBUTE_NORETURN.
29073         (def_sym_regex): Do not remove ATTRIBUTE_NORETURN.
29075         xalloc: use stdnoreturn.h
29076         * lib/xalloc.h: Include <stdnoreturn.h>.
29077         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
29078         * modules/xalloc (Depends-on): Add stdnoreturn.
29080         xstrtol: use stdnoreturn.h
29081         * lib/xstrtol.h: Include <stdnoreturn.h>.
29082         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
29083         * modules/xstrtol (Depends-on): Add stdnoreturn.
29085         xmemdup0: use stdnoreturn.h
29086         * lib/xmemdup0.h: Include <stdnoreturn.h>.
29087         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
29088         * modules/xmemdup0 (Depends-on): Add stdnoreturn.
29090         sigpipe-die: use stdnoreturn.h
29091         * lib/sigpipe-die.h: Include <stdnoreturn.h>.
29092         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
29093         * modules/sigpipe-die (Depends-on): Add stdnoreturn.
29095         openat: use stdnoreturn.h
29096         * lib/openat.h: Include <stdnoreturn.h>.
29097         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
29098         * modules/openat (Depends-on): Add stdnoreturn.
29100         * lib/openat-die.c (openat_save_fail): Modernize comment.
29102         * lib/xalloc-die.c (xalloc_die): Modernize comment.
29104         * lib/glthread/thread.h: Modernize comment.
29106         obstack: use _Noreturn
29107         * lib/obstack.c (__attribute__): Remove macro.
29108         (print_and_abort): Use _Noreturn.
29110         c-stack: use _Noreturn
29111         * lib/c-stack.c (die, overflow_handler, segv_handler):
29112         Use _Noreturn rather than __attribute__((noreturn)).
29114         argmatch-tests, exclude_tests: use _Noreturn
29115         * tests/test-argmatch.c, tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN):
29116         Remove.
29117         (ARGMATCH_DIE_DECL): Use _Noreturn instead.
29119         stdlib: use _Noreturn
29120         * lib/stdlib.in.h (_GL_ATTRIBUTE_NORETURN): Remove.
29121         (_Exit): Use _Noreturn rather than _GL_ATTRIBUTE_NORETURN.
29122         * modules/stdlib (Depends-on): Add _Noreturn.
29123         (stdlib.h): Depend on $(_NORETURN_H), and copy it in.
29125         stdnoreturn-tests: new module
29126         * modules/stdnoreturn-tests, tests/test-stdnoreturn.c: New files.
29128         stdnoreturn: new module
29129         * MODULES.html.sh (Noreturn <stdnoreturn.h>): New section.
29130         * m4/stdnoreturn.m4, modules/stdnoreturn: New files.
29132         _Noreturn-tests: new module
29133         * modules/_Noreturn-tests, tests/test-_Noreturn.c: New files.
29135         _Noreturn: new module
29136         * MODULES.html.sh (Support for systems lacking draft ISO C 1X):
29137         New section, mentioning it.
29138         * build-aux/_Noreturn.h, modules/_Noreturn: New files.
29140         * m4/gnulib-common.m4 (gl_COMMON_BODY): Add _Noreturn.
29142 2011-07-11  Eric Blake  <eblake@redhat.com>
29144         ffs: new module
29145         * modules/ffs: New file.
29146         * m4/ffs.m4: Likewise.
29147         * lib/ffs.c: Likewise.
29148         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_DEFAULTS): Add default.
29149         * modules/strings (Makefile.am): Substitute witness.
29150         (Depends-on): Add c++defs.
29151         * lib/strings.in.h (ffs): Declare.
29152         * modules/ffs-tests: New test file.
29153         * tests/test-ffs.c: Test new module.
29154         * MODULES.html.sh (Integer arithmetic functions): Mention it.
29155         * doc/posix-functions/ffs.texi (ffs): Likewise.
29157         regex: avoid compiler warning
29158         * lib/regex.c (includes): Include <strings.h>, for use of
29159         strcasecmp in regcomp.c.
29160         Reported by Joachim Schmitz.
29162 2011-07-09  Paul Eggert  <eggert@cs.ucla.edu>
29164         stdint: respect system's intmax_t if INTMAX_MAX
29165         * lib/stdint.in.h (intmax_t, uintmax_t): If the system defines
29166         INTMAX_MAX, assume its intmax_t is OK.  Similarly for and
29167         uintmax_t.  This is for some Mac OS X builds, where intmax_t is
29168         long but int64_t is long long, and where we will clash with the
29169         system intmax_t if we override it.  See
29170         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00160.html>.
29171         (INTMAX_C, UINTMAX_C): For consistency, respect the system's
29172         INTMAX_C if INTMAX_MAX and INTMAX_C are both defined, and
29173         similarly for UINTMAX_C.
29175 2011-07-08  Bruno Haible  <bruno@clisp.org>
29177         pthread_sigmask tests: Avoid a compiler warning.
29178         * tests/test-pthread_sigmask1.c (main): Complain if system() returns
29179         non-zero.
29181         sigprocmask tests: A better way to avoid a compiler warning.
29182         * tests/test-sigprocmask.c: Don't include "ignore-value.h".
29183         (main): Complain if system() returns non-zero.
29184         * modules/sigprocmask-tests (Depends-on): Remove ignore-value.
29186 2011-07-08  Bruno Haible  <bruno@clisp.org>
29188         pthread_sigmask: Work around IRIX bug.
29189         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the IRIX
29190         bug.
29191         * lib/pthread_sigmask.c (pthread_sigmask): usleep for some time when
29192         there may be unblocked pending signals.
29193         * doc/posix-functions/pthread_sigmask.texi: Mention the IRIX bug.
29195 2011-07-08  Bruno Haible  <bruno@clisp.org>
29197         pthread_sigmask: Work around Cygwin bug.
29198         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the Cygwin
29199         bug.
29200         * lib/pthread_sigmask.c (pthread_sigmask): Fix the return value from
29201         the system's pthread_sigmask function.
29202         * doc/posix-functions/pthread_sigmask.texi: Mention the Cygwin bug.
29204 2011-07-08  Bruno Haible  <bruno@clisp.org>
29206         pthread_sigmask: Work around bug in single-threaded implementation.
29207         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the
29208         FreeBSD, HP-UX, Solaris bug.
29209         (gl_PREREQ_PTHREAD_SIGMASK): New macro.
29210         * lib/pthread_sigmask.c: Include <stddef.h>.
29211         (pthread_sigmask): If HAVE_PTHREAD_SIGMASK, define as a wrapper around
29212         the system's pthread_sigmask function.
29213         * modules/pthread_sigmask (configure.ac): Invoke
29214         gl_PREREQ_PTHREAD_SIGMASK.
29215         * doc/posix-functions/pthread_sigmask.texi: Mention bug on FreeBSD,
29216         HP-UX, Solaris.
29218 2011-07-08  Eric Blake  <eblake@redhat.com>
29220         test-sigprocmask: avoid compiler warning
29221         * modules/sigprocmask-tests (Depends-on): Add ignore-value.
29222         * tests/test-sigprocmask.c (main): Use it to silence warning.
29223         Reported by Jim Meyering.
29225         test-snprintf: avoid compiler warning
29226         * tests/test-snprintf.c (main): Avoid shadowed declaration.
29227         * tests/test-vsnprintf.c (main): Likewise.
29228         Reported by Jim Meyering.
29230 2011-07-08  Bruno Haible  <bruno@clisp.org>
29232         Tests for module 'pthread_sigmask'.
29233         * modules/pthread_sigmask-tests: New file.
29234         * tests/test-pthread_sigmask1.c: New file, based on
29235         tests/test-sigprocmask.c.
29236         * tests/test-pthread_sigmask2.c: New file.
29238 2011-07-08  Jim Meyering  <meyering@redhat.com>
29240         test-getopt.h: avoid warning about an unused variable
29241         * tests/test-getopt.h (test_getopt): Remove unused variable, "c".
29243 2011-07-07  Jim Meyering  <meyering@redhat.com>
29245         maint: reduce list of files exempt from sc_prohibit_leading_TABs
29246         * Makefile (sc_prohibit_leading_TABs): Don't exempt m4/po.m4,
29247         now that it no longer contains leading TABs.
29248         Remove unused "url=FIXME" statement.
29250 2011-07-08  Paul Eggert  <eggert@cs.ucla.edu>
29252         pthread_sigmask: Assume POSIX when not gl_THREADLIB.
29253         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
29254         When gl_THREADLIB is not in use, assume that the POSIX sematics
29255         are desired.  This is better for Emacs, which uses POSIX semantics
29256         on GNUish and/or POSIXish platforms, and does not use threads at
29257         all otherwise.
29259         pthread_sigmask: fix typo when testing for libraries
29260         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
29261         AC_LINK_IFELSE, not AC_COMPILE_IFELSE.
29263 2011-07-08  Eric Blake  <eblake@redhat.com>
29265         fts: introduce FTS_NOATIME
29266         * lib/fts_.h (FTS_NOATIME): New bit flag.
29267         (FTS_OPTIONMASK): Adjust.
29268         * lib/fts.c (diropen, fts_open, fts_build): Honor it.
29269         (fd_ring_check): Debug code unconditionally uses O_NOATIME.
29271 2011-07-08  Bruno Haible  <bruno@clisp.org>
29273         Tests for module 'thread'.
29274         * modules/thread-tests: New file.
29275         * tests/test-thread_self.c: New file.
29276         * tests/test-thread_create.cc: New file.
29278 2011-07-08  Bruno Haible  <bruno@clisp.org>
29280         thread: Avoid gcc warnings when using gl_thread_self().
29281         * lib/glthread/thread.h (gl_thread_self): Return a pthread_t, not a
29282         'void *'.
29283         (gl_thread_self_pointer): Update.
29285 2011-07-07  Bruno Haible  <bruno@clisp.org>
29287         signal-c++-tests: Check declaration of pthread_sigmask.
29288         * tests/test-signal-c++.cc: Check declaration of pthread_sigmask.
29289         * modules/signal-c++-tests (Makefile.am): Link test-signal-c++ against
29290         $(LIB_PTHREAD_SIGMASK).
29292 2011-07-07  Bruno Haible  <bruno@clisp.org>
29294         pthread_sigmask: Fix link requirements on OSF/1 5.1 and with pth.
29295         * lib/signal.in.h (pthread_sigmask): Override if
29296         REPLACE_PTHREAD_SIGMASK is 1.
29297         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
29298         REPLACE_PTHREAD_SIGMASK.
29299         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Set also
29300         REPLACE_PTHREAD_SIGMASK. Set and substitute LIB_PTHREAD_SIGMASK.
29301         * modules/signal (Makefile.am): Substitute REPLACE_PTHREAD_SIGMASK.
29302         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
29303         (Link): Set to $(LIB_PTHREAD_SIGMASK), not $(LIBMULTITHREAD).
29305 2011-07-07  Bruno Haible  <bruno@clisp.org>
29307         pthread_sigmask: Ensure declaration in <signal.h>.
29308         * lib/signal.in.h: On MacOS X, FreeBSD, OpenBSD, OSF/1, Solaris 2.6,
29309         include <pthread.h>.
29310         * doc/posix-functions/pthread_sigmask.texi: Mention the header file
29311         problem.
29313 2011-07-07  Bruno Haible  <bruno@clisp.org>
29315         pthread_sigmask: Document the module.
29316         * doc/posix-functions/pthread_sigmask.texi: Mention the new module.
29318 2011-07-07  Bruno Haible  <bruno@clisp.org>
29320         pthread_sigmask: Follow gnulib conventions.
29321         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Renamed from
29322         gl_PTHREAD_SIGMASK.
29323         * modules/pthread_sigmask (configure.ac): Update.
29325 2011-07-07  Bruno Haible  <bruno@clisp.org>
29327         pthread_sigmask: Make declaration C++ safe.
29328         * lib/signal.in.h: In two special conditions, just do an #include_next.
29329         (pthread_sigmask): Test HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
29330         Invoke _GL_CXXALIAS_SYS and _GL_CXXALIASWARN.
29331         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
29332         HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
29333         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Set HAVE_PTHREAD_SIGMASK,
29334         not REPLACE_PTHREAD_MASK.
29335         * modules/signal (Makefile.am): Substitute HAVE_PTHREAD_SIGMASK,
29336         not REPLACE_PTHREAD_MASK.
29337         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
29339 2011-07-07  Bruno Haible  <bruno@clisp.org>
29341         pthread_sigmask: Fix return value.
29342         * lib/signal.in.h (pthread_sigmask): Declare. Don't define as a macro.
29343         * lib/pthread_sigmask.c: New file.
29344         * modules/pthread_sigmask (Files): Add it.
29345         (configure.ac): Invoke AC_LIBOBJ.
29347 2011-07-07  Eric Blake  <eblake@redhat.com>
29349         getopt: more portable argv creation
29350         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Rather than casting away
29351         const, use char arrays rather than strings.
29352         Suggested by Paul Eggert.
29354 2011-07-07  Bruno Haible  <bruno@clisp.org>
29356         Tests for module 'sigprocmask'.
29357         * modules/sigprocmask-tests: New file.
29358         * tests/test-sigprocmask.c: New file.
29360 2011-07-07  Bruno Haible  <bruno@clisp.org>
29362         float tests: Tweak.
29363         * tests/test-float.c (main): Tweak skip message.
29365 2011-07-07  Eric Blake  <eblake@redhat.com>
29367         getopt: avoid compiler warning during configure
29368         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Avoid problems with
29369         assigning string literals to non-const pointer.
29371         getopt-gnu: avoid crash in glibc getopt
29372         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Detect the problem.
29373         * tests/test-getopt.h (test_getopt): Enhance test.
29374         * tests/test-getopt_long.h (test_getopt_long): Likewise.
29375         * doc/posix-functions/getopt.texi (getopt): Document it.
29376         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
29377         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
29378         Likewise.
29380 2011-07-07  Ulrich Drepper  <drepper@gmail.com>
29382         getopt: handle W; without long options in getopt [BZ #12922]
29383         * lib/getopt.c (_getopt_internal_r): When "W;" is in short options
29384         but no long options are defined, just return 'W'.
29386 2011-07-07  Bruno Haible  <bruno@clisp.org>
29388         Avoid literal tabs.
29389         * m4/po,m4 (AM_PO_SUBDIRS, AM_POSTPROCESS_PO_MAKEFILE): Use a shell
29390         variable containing a tab instead of a literal tab.
29391         Reported by Jim Meyering.
29393 2011-07-07  Bruno Haible  <bruno@clisp.org>
29395         Comments.
29396         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Update comments about mingw.
29398 2011-07-06  Bruno Haible  <bruno@clisp.org>
29400         sys_select: Fix compilation error on mingw, introduced on 2011-06-30.
29401         * lib/sys_select.in.h: Don't include <sys/socket.h>. Instead, include
29402         <winsock2.h>.
29403         (rpl_fd_isset, FD_ISSET): New definitions, copied from
29404         lib/sys_socket.in.h.
29405         (close, gethostname): Hide declarations from <winsock2.h>.
29406         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
29407         listen, recv, send, recvfrom, sendto, setsockopt, shutdown): Likewise.
29408         * lib/sys_socket.in.h (close, gethostname): Tweak indentation.
29409         (select): Don't override if gnulib's <sys/select.h> was already
29410         included.
29411         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
29412         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
29413         setsockopt, shutdown, select): Tweak indentation.
29415 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
29417         * modules/pthread_sigmask (configure.ac): gl_SIGNAL_MODULE_INDICATOR
29418         and not gl_SYS_SELECT_MODULE_INDICATOR, fixing a typo exposed
29419         in an application that does not use the sys_select module.
29421 2011-07-06  Erik Faye-Lund  <kusmabite@gmail.com>
29423         poll: do not return 0 on timeout=-1
29424         * lib/poll.c: Loop with yield if no events occurred.
29426 2011-07-06  Eric Blake  <eblake@redhat.com>
29428         pthread_sigmask: always replace when not using pthread
29429         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Force sigprocmask
29430         replacement when using some threading other than pthread.  Fix
29431         logic bug.
29433 2011-07-06  Bruno Haible  <bruno@clisp.org>
29435         Comments.
29436         * m4/printf.m4: Update comments about mingw.
29438 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
29440         sys_select: define sigset_t more portably
29441         * lib/sys_select.in.h: Always include <sys/types.h>, since
29442         we now need sigset_t and mingw defines it there.
29443         Include <signal.h> before split inclusion guard, to avoid
29444         mishaps on Solaris, whose <signal.h> eventually includes us.
29445         * m4/signal_h.m4 (gl_SIGNAL_H): Require gl_CHECK_TYPE_SIGSET_T.
29446         (gl_CHECK_TYPE_SIGSET_T): New macro, most of the contents of
29447         which come from ...
29448         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
29449         gl_CHECK_TYPE_SIGSET_T.
29450         (gl_PREREQ_SIGPROCMASK): Now a no-op, since gl_CHECK_TYPE_SIGSET_T
29451         does the real work.
29452         * modules/sys_select (Depends-on): Add 'signal'.
29454         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Poison pselect.
29455         Suggested by Bruno Haible.
29457         pselect: Use pthread_sigmask, not sigprocmask.
29458         * lib/pselect.c (pselect): Use pthread_sigmask, as it supports
29459         multithreaded apps better than sigprocmask does.
29460         * modules/pselect (Depends-on): Depend on pthread_sigmask, not
29461         sigprocmask directly.
29463 2011-07-05  Paul Eggert  <eggert@cs.ucla.edu>
29465         * lib/pselect.c (pselect): Use plain name, without "rpl_".
29466         Don't #undef,  since we don't need any underlying pselect.
29467         * modules/pselect (configure.ac): Use our pselect.o if !HAVE_PSELECT.
29468         (Depends-on): Add select.
29469         (Link): Add $(LIBSOCKET).
29470         These changes suggested by Bruno Haible.
29472         pselect: document better
29473         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
29474         * doc/posix-functions/pselect.texi (pselect): Document new module.
29476         pthread_sigmask: new module
29477         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
29478         * doc/posix-functions/pthread_sigmask.texi: Document new module.
29479         * lib/signal.in.h (pthread_sigmask): Arrange for replacement.
29480         This is done only as a macro; I don't know how well that'll
29481         work for C++.  Move <sys/types.h> include before the include_next,
29482         to avoid mishap on Solaris.
29483         * m4/signal_h.m4 (gl_SIGNAL_H, gl_SIGNAL_H_DEFAULTS): Check for it.
29484         * modules/signal (Makefile.am): Substitute the check's results.
29485         * modules/pthread_sigmask, m4/pthread_sigmask.m4: New files.
29487         test-pselect: new module
29488         * modules/pselect-tests, tests/test-pselect.c: New files.
29489         * tests/test-select.c, tests/test-sys_select-c++.cc:
29490         If TEST_PSELECT is defined, test pselect instead of testing select.
29492         * tests/test-sys_select.c (sigset_t): Test for it, too.
29493         Suggested by Bruno Haible.
29495 2011-07-05  Eric Blake  <eblake@redhat.com>
29497         snprintf: guarantee %1$d, for libintl
29498         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require %1$d support.
29499         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
29500         * doc/posix-functions/snprintf.texi (snprintf): Update.
29501         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
29502         * tests/test-snprintf.c (main): Enhance test.
29503         * tests/test-vsnprintf.c (main): Likewise.
29505 2011-07-05  Jim Meyering  <meyering@redhat.com>
29507         maint: exempt stdio-read.c and stdio-write.c from the cppi check
29508         * Makefile (sc_cpp_indent_check): Exempt stdio-read.c and stdio-write.c
29509         per Bruno's request, to accommodate this idiom (no space after "#")
29510         even when the function is inside an #if block:
29511         char *
29512         gets (char *s)
29513         #undef gets
29514         {
29515           ...
29516         }
29518 2011-07-04  Jim Meyering  <meyering@redhat.com>
29520         maint: indent with spaces, not TABs, and add a rule to check this
29521         * tests/test-userspec.c: Indent with spaces, not TABs.
29522         * tests/test-argp.c: Likewise.
29523         * tests/test-c-stack2.sh: Likewise.
29524         * tests/test-parse-duration.sh: Likewise
29525         * m4/strtod.m4: Likewise.
29526         * m4/alloca.m4: Likewise.
29527         * m4/pselect.m4: Likewise.
29528         * Makefile (sc_prohibit_leading_TABs): Prohibit leading TABs.
29530 2011-07-03  Jim Meyering  <meyering@redhat.com>
29532         maint.mk: correct omissions in prohibit_argmatch_without_use check
29533         This rule would mistakenly report that argmatch.h is included without
29534         use even when both the argmatch and invalid_arg macro were used.
29535         * top/maint.mk (sc_prohibit_argmatch_without_use): Also detect uses
29536         of argmatch and invalid_arg.
29538 2011-07-03  Bruno Haible  <bruno@clisp.org>
29540         Comments about EINTR.
29541         * lib/safe-read.h: Explain the purpose of this module.
29542         * lib/safe-write.h: Likewise.
29543         * doc/posix-functions/read.texi: Mention EINTR and the 'safe-read'
29544         module.
29545         * doc/posix-functions/write.texi: Mention EINTR and the 'safe-write'
29546         module.
29547         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
29549 2011-06-30  Paul Eggert  <eggert@cs.ucla.edu>
29551         xnanosleep: Rewrite to use new dtotimespec module.
29552         It has the conversion code that used to be in xnanosleep.
29553         * lib/xnanosleep.c: Do not include limits.h, stdbool.h, stdio.h,
29554         assert.h, sys/types.h, or intprops.h.  Include timespec.h instead.
29555         (TIME_T_MAX): Remove.
29556         (xnanosleep): Rewrite in terms of dtotimespec.
29557         * modules/xnanosleep (Depends-on): Add dtotimespec.
29558         Remove intprops, stdbool.
29560         timespec-add, timespec-sub: new modules
29561         * lib/timespec.h (timespec_add, timespec_sub): New decls.
29562         * lib/timespec-add.c, lib/timespec-sub.c:
29563         * modules/timespec-add, modules/timespec-sub: New files.
29565         dtotimespec: new module
29566         * lib/timespec.h (dtotimespec): New decl.
29567         * lib/dtotimespec.c, modules/dtotimespec: New files.
29569         * lib/timespec.h (timespec_sign, timespectod): New inline functions.
29571         pselect: new module
29572         * lib/sys_select.in.h: Include <signal.h>, for 'sigset_t'.
29573         (pselect): New decls.
29574         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Require AC_C_RESTRICT,
29575         since the standard pselect decl uses 'restrict'.
29576         (gl_SYS_SELECT_H_DEFAULTS): Add defaults for GNULIB_PSELECT,
29577         HAVE_PSELECT, REPLACE_PSELECT.
29578         * modules/sys_select (sys/select.h): Substitute GNULIB_PSELECT,
29579         HAVE_PSELECT, REPLACE_PSELECT.
29580         * lib/pselect.c, m4/pselect.m4, modules/pselect: New files.
29582         sys_select: don't depend on sys_socket
29583         This is so that Emacs doesn't have to drag in m4/sockpfaf.m4 etc; see
29584         <http://lists.gnu.org/archive/html/bug-gnulib/2011-06/msg00358.html>.
29585         This fix works on GNU and GNU-like platforms, but has not been tested
29586         on native Windows.
29587         * lib/sys_select.in.h: Include <sys/socket.h> only if native Windows.
29588         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Do not require
29589         gl_HEADER_SYS_SOCKET.
29590         * modules/sys_select (Files): Add m4/sys_socket_h.m4, for
29591         gl_PREREQ_SYS_H_WINSOCK2.
29593 2011-06-29  Eric Blake  <eblake@redhat.com>
29595         pipe2: fix C89 compile problem
29596         * lib/pipe2.c (pipe2): Avoid C99 array initialization.
29597         Reported by Bruno Haible.
29599         pipe, pipe2: don't corrupt fd on error
29600         * lib/pipe.c (pipe): Leave fd unchanged on error.
29601         * lib/pipe2.c (pipe2): Likewise.
29602         * doc/posix-functions/pipe.texi (pipe): Document cygwin issue.
29603         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
29605 2011-06-27  Paolo Bonzini  <bonzini@gnu.org>
29607         mmap-anon: do not use regular expressions inadvertently
29608         * m4/mmap-anon.m4: Remove trailing period from strings sought
29609         in the output.
29611 2011-06-25  Paul Eggert  <eggert@cs.ucla.edu>
29613         nanosleep: fix integer overflow problem
29614         * lib/nanosleep.c (my_usleep): Don't assume signed integer
29615         arithmetic wraps around on overflow.
29617         nanosleep: simplify carrying
29618         * lib/nanosleep.c (nanosleep): Use the requested tv_nsec for the
29619         first call to the underyling nanosleep, not for the last one.
29620         This doesn't fix any bugs, but it simplifies the computation of
29621         the remaining delay.  Found while auditing integer overflow issues.
29623         dup2: remove test for existence of fcntl
29624         * m4/dup2.m4 (gl_FUNC_DUP2): Use "#ifdef FD_CLOEXEC", not
29625         "#if HAVE_FCNTL", in the configure-time test program.
29626         This removes the need for the AC_CHECK_FUNCS_ONCE([fcntl]),
29627         and therefore speeds up "configure" a bit.  Found while
29628         adding the dup2 module to Emacs.
29630 2011-06-24  Eric Blake  <eblake@redhat.com>
29632         maint.mk: enhance useless header checks
29633         * top/maint.mk (_sc_header_without_use): Check both include
29634         styles.
29635         (sc_prohibit_assert_without_use)
29636         (sc_prohibit_close_stream_without_use)
29637         (sc_prohibit_getopt_without_use)
29638         (sc_prohibit_quotearg_without_use)
29639         (sc_prohibit_quote_without_use)
29640         (sc_prohibit_long_options_without_use)
29641         (sc_prohibit_inttostr_without_use)
29642         (sc_prohibit_ignore_value_without_use)
29643         (sc_prohibit_error_without_use, sc_prohibit_xalloc_without_use)
29644         (sc_prohibit_hash_without_use, sc_prohibit_cloexec_without_use)
29645         (sc_prohibit_posixver_without_use, sc_prohibit_same_without_use)
29646         (sc_prohibit_hash_pjw_without_use)
29647         (sc_prohibit_safe_read_without_use)
29648         (sc_prohibit_argmatch_without_use)
29649         (sc_prohibit_canonicalize_without_use)
29650         (sc_prohibit_root_dev_ino_without_use)
29651         (sc_prohibit_openat_without_use)
29652         (sc_prohibit_c_ctype_without_use)
29653         (sc_prohibit_signal_without_use)
29654         (sc_prohibit_stdio--_without_use)
29655         (sc_prohibit_stdio-safer_without_use)
29656         (sc_prohibit_strings_without_use)
29657         (sc_prohibit_intprops_without_use)
29658         (sc_prohibit_stddef_without_use)
29659         (sc_prohibit_xfreopen_without_use): Update clients.
29661 2011-06-24  Jim Meyering  <meyering@redhat.com>
29663         syntax-check: keep one maint.mk rule in sync with its header
29664         * Makefile (sc_check_sym_list): Add a rule to prevent a repeat
29665         of the bug Eric has just fixed, with today's commit 25e4c2ec.
29666         I prefer to avoid temporary files here, so use <(...), but that
29667         is not supported by /bin/sh, so...
29668         (SHELL): Define to /bin/bash.
29670 2011-06-24  Eric Blake  <eblake@redhat.com>
29672         maint.mk: update sc_prohibit_intprops_without_use
29673         * top/maint.mk (_intprops_names): Match recent changes.
29675 2011-06-24  Bruno Haible  <bruno@clisp.org>
29677         strerror-override: No-op tweak.
29678         * lib/strerror-override.h (strerror_override): Reorder conditions,
29679         for consistency with lib/strerror-override.c.
29681 2011-06-23  Eric Blake  <eblake@redhat.com>
29683         maint.mk: test further PATH_MAX issues
29684         * top/maint.mk (sc_prohibit_path_max_array): Rename...
29685         (sc_prohibit_path_max_allocation): ...and also test alloca.
29686         Suggested by Jim Meyering.
29688 2011-06-22  Eric Blake  <eblake@redhat.com>
29690         maint.mk: add syntax-check to avoid char[PATH_MAX]
29691         * top/maint.mk (sc_prohibit_path_max_array): New rule.
29693         stat: be robust to PATH_MAX definition
29694         * lib/stat.c (rpl_stat): Require reasonable PATH_MAX.
29695         * modules/stat (Depends-on): Add verify.
29697         link: work around IRIX bug
29698         * m4/link.m4 (gl_FUNC_LINK): Expose the bug.
29699         * lib/link.c (rpl_link): Work around it.
29700         * tests/test-link.h (test_link): Enhance test.
29701         * doc/posix-functions/link.texi (link): Document the bug.
29703         getopt: silence clang warning
29704         * lib/getopt.c (_getopt_internal_r): Avoid unlikely NULL
29705         dereference.
29706         Reported by Gustavo Martin Domato.
29708 2011-06-22  Jim Meyering  <meyering@redhat.com>
29710         bootstrap: do not insert a blank line into each .gitignore file
29711         * build-aux/bootstrap (sort_patterns): Filter out blank lines.
29713 2011-06-21  Eric Blake  <eblake@redhat.com>
29715         perror: test for output mismatch
29716         * m4/perror.m4 (gl_FUNC_PERROR): Add test, in order to replace
29717         perror on IRIX.
29719         strerror_r: fix OpenBSD behavior on out-of-range
29720         * lib/strerror_r.c (strerror_r): Always use maximal string.
29721         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
29723         strerror_r: fix OpenBSD behavior on 0
29724         * lib/strerror-override.c (strerror_override): Also override 0
29725         when needed.
29726         * lib/strerror-override.h (strerror_override): Likewise.
29727         * lib/strerror.c (strerror): Simplify, now that 0 override is done
29728         earlier.
29729         * lib/strerror_r.c (strerror_r): Likewise.
29730         * m4/strerror.m4 (gl_FUNC_STRERROR): Split detection of 0
29731         behavior...
29732         (gl_FUNC_STRERROR_0): ...into new macro.
29733         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Replace strerror_r if 0
29734         is overridden.
29735         (gl_FUNC_STRERROR_R_WORKS): Avoid extra tests if 0 is broken.
29736         * modules/strerror-override (Files): Add strerror.m4.
29737         (configure.ac): Also provide override for 0 when needed.
29738         * doc/posix-functions/strerror.texi (strerror): Document this.
29739         * doc/posix-functions/perror.texi (perror): Likewise.
29741         perror: adjust array size
29742         * modules/perror (Depends-on): Add strerror-override.
29743         * lib/perror.c (perror): Use it to avoid magic number.
29745         strerror-override: reduce size
29746         * lib/strerror-override.c (strerror_override): Use fewer lines.
29748 2011-06-20  Bruno Haible  <bruno@clisp.org>
29750         pathmax: Ensure correct value for PATH_MAX on HP-UX.
29751         * lib/pathmax.h (PATH_MAX) [HP-UX]: Define to 1024.
29753 2011-06-20  Paul Eggert  <eggert@cs.ucla.edu>
29755         alloca: port to compilers that can optimize like GCC 4.6.0
29756         * lib/alloca.c (find_stack_direction): New signature, taken from
29757         Autoconf git.  This works with GCC 4.6.0.  This code should never
29758         be used with GCC 4.6.0 itself, as GCC has alloca, but it might
29759         be used with other compilers that optimize as well as GCC 4.6.0 does.
29760         (alloca): Adjust to new signature.
29761         * m4/alloca.m4 (__AC_LIBOBJ_ALLOCA) [Autoconf version < 2.69]:
29762         New macro, which patches Autoconf in a similar way.
29764         c-stack: stop worrying about stack direction
29765         * lib/c-stack.c (find_stack_direction): Remove.
29766         (segv_handler): Don't worry about stack direction growth, as it's
29767         too much of a pain to configure this correctly, given how compilers
29768         are optimizing-away our stack-growth detection code.  Instead, assume
29769         that any access to just before or just after the stack is OK.
29770         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
29771         Don't require AC_FUNC_ALLOCA; no longer needed.
29773 2011-06-20  Eric Blake  <eblake@redhat.com>
29775         test-stat: don't allocate PATH_MAX bytes
29776         * tests/test-stat.h (test_stat_func): Don't stack-allocate a
29777         PATH_MAX-sized buffer.
29778         * modules/openat-tests (Depends-on): Add getcwd-lgpl, drop pathmax.
29779         * modules/stat-tests (Depends-on): Likewise.
29780         * tests/test-fstatat.c (includes): Drop pathmax.h.
29781         * tests/test-stat.c (includes): Likewise.
29782         Reported by Bruno Haible.
29784 2011-06-20  Bruno Haible  <bruno@clisp.org>
29786         float: Work around <float.h> bugs on FreeBSD/x86, AIX with GCC, IRIX.
29787         * lib/float.in.h: Add workarounds for FreeBSD/x86, AIX with GCC, IRIX.
29788         * lib/float.c: New file.
29789         * m4/float_h.m4 (gl_FLOAT_H): Also handle FreeBSD, AIX, IRIX. Set
29790         REPLACE_FLOAT_LDBL.
29791         * modules/float (Files): Add lib/float.c.
29792         (configure.ac): Invoke AC_LIBOBJ.
29793         * doc/posix-headers/float.texi: Mention problems on FreeBSD, AIX, IRIX.
29795 2011-06-20  Bruno Haible  <bruno@clisp.org>
29797         Tests for module 'float'.
29798         * modules/float-tests: New file.
29799         * tests/test-float.c: New file.
29801 2011-06-19  Bruno Haible  <bruno@clisp.org>
29803         isinf: Coding style.
29804         * lib/isinf.c: Use GNU coding style.
29806 2011-06-19  Bruno Haible  <bruno@clisp.org>
29808         linkat test: Avoid test failure on AIX 7.1.
29809         * tests/test-linkat.c (main): Allow EINVAL as alternate error value.
29810         * tests/test-link.h (test_link): Likewise.
29812 2011-06-19  Bruno Haible  <bruno@clisp.org>
29814         pread test: Avoid test failure on OpenBSD 4.9.
29815         * tests/test-pread.c (main): Allow EFBIG instead of EINBAL.
29817 2011-06-19  Bruno Haible  <bruno@clisp.org>
29819         sprintf-posix: Fix test failure on AIX 7.1.
29820         * m4/printf.m4 (gl_PRINTF_PRECISION): Test against AIX bug.
29821         * doc/posix-functions/dprintf.texi: Mention limited precision problem
29822         on AIX.
29823         * doc/posix-functions/fprintf.texi: Likewise.
29824         * doc/posix-functions/printf.texi: Likewise.
29825         * doc/posix-functions/snprintf.texi: Likewise.
29826         * doc/posix-functions/sprintf.texi: Likewise.
29827         * doc/posix-functions/vdprintf.texi: Likewise.
29828         * doc/posix-functions/vfprintf.texi: Likewise.
29829         * doc/posix-functions/vprintf.texi: Likewise.
29830         * doc/posix-functions/vsnprintf.texi: Likewise.
29831         * doc/posix-functions/vsprintf.texi: Likewise.
29833 2011-06-19  Bruno Haible  <bruno@clisp.org>
29835         roundl-ieee: Fix test failure on AIX 7.1.
29836         * m4/roundl.m4 (gl_FUNC_ROUNDL): Test also the sign of roundl (-0.3L).
29837         * doc/posix-functions/roundl.texi: Mention problem with negative
29838         arguments.
29840 2011-06-19  Bruno Haible  <bruno@clisp.org>
29842         round-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
29843         * modules/round-ieee (Depends-on): Add floor-ieee, ceil-ieee.
29844         * doc/posix-functions/round.texi: Mention problem with negative
29845         arguments.
29846         * doc/posix-functions/ceil.texi: Mention problem on OSF/1 5.1.
29848 2011-06-19  Bruno Haible  <bruno@clisp.org>
29850         roundf-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
29851         * m4/roundf.m4 (gl_FUNC_ROUNDF): Test also the sign of roundf (-0.3f).
29852         * modules/roundf-ieee (Depends-on): Add floorf-ieee, ceilf-ieee.
29853         * doc/posix-functions/roundf.texi: Mention problem with negative
29854         arguments.
29855         * doc/posix-functions/ceilf.texi: Mention problem on OSF/1 5.1.
29857 2011-06-19  Bruno Haible  <bruno@clisp.org>
29859         ceilf-ieee: Work around bug on MacOS X 10.5.
29860         * doc/posix-functions/ceilf.texi: Mention the MacOS X 10.5 problem.
29862         floor*-ieee, ceil*-ieee, trunc*-ieee, round*-ieee: More robust checks.
29863         * m4/floorf.m4 (gl_FUNC_FLOORF): In the test whether the function is
29864         IEEE compliant, avoid compiler optimizations.
29865         * m4/floor.m4 (gl_FUNC_FLOOR): Likewise.
29866         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
29867         * m4/ceil.m4 (gl_FUNC_CEIL): Likewise.
29868         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
29869         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
29870         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
29871         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
29872         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
29873         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
29874         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
29876 2011-06-19  Bruno Haible  <bruno@clisp.org>
29878         ceilf-ieee: Work around bug on AIX 7.1.
29879         * m4/ceilf.m4 (gl_FUNC_CEILF): Test also the sign of ceilf (-0.3f).
29880         * doc/posix-functions/ceilf.texi: Mention the AIX 7.1 problem.
29882 2011-06-19  Bruno Haible  <bruno@clisp.org>
29884         ceil-ieee: Work around bug on AIX 7.1.
29885         * m4/ceil.m4 (gl_FUNC_CEIL): Test also the sign of ceil (-0.3).
29886         * doc/posix-functions/ceil.texi: Mention the AIX 7.1 problem.
29888 2011-06-18  Bruno Haible  <bruno@clisp.org>
29890         fsync test: Avoid test failure on MacOS X and AIX.
29891         * tests/test-fsync.c (fsync): Allow ENOTSUP and EBADF instead of
29892         EINVAL.
29894 2011-06-18  Bruno Haible  <bruno@clisp.org>
29896         openat, fdopendir tests: Fix link errors.
29897         * modules/openat-tests (Depends-on): Add progname.
29898         * modules/fdopendir-tests (Depends-on): Likewise.
29899         * tests/test-fchownat.c: Include progname.h.
29900         (main): Call set_program_name.
29901         * tests/test-fstatat.c: Include progname.h.
29902         (main): Call set_program_name.
29903         * tests/test-mkdirat.c: Include progname.h.
29904         (main): Call set_program_name.
29905         * tests/test-openat.c: Include progname.h.
29906         (main): Call set_program_name.
29907         * tests/test-unlinkat.c: Include progname.h.
29908         (main): Call set_program_name.
29909         * tests/test-fdopendir.c: Include progname.h.
29910         (main): Call set_program_name.
29912 2011-06-18  Bruno Haible  <bruno@clisp.org>
29914         Doc update.
29915         * doc/posix-functions/pthread_attr_getstack.texi: Update info regarding
29916         HP-UX.
29917         * doc/posix-functions/pthread_attr_setstack.texi: Likewise.
29919 2011-06-18  Bruno Haible  <bruno@clisp.org>
29921         getcwd tests: Avoid compilation error on HP-UX 11.31.
29922         * modules/getcwd-tests (Depends-on): Add pathmax.
29923         * tests/test-getcwd.c: Include pathmax.h.
29925 2011-06-18  Bruno Haible  <bruno@clisp.org>
29927         isfinite, isinf: Fix link error on AIX 6 and 7.
29928         * m4/isfinite.m4 (gl_ISFINITE): When determining whether libm is
29929         needed, also test the macro with a 'float' argument.
29930         * m4/isinf.m4 (gl_ISINF): Likewise.
29932 2011-06-18  Bruno Haible  <bruno@clisp.org>
29934         getloadavg: Don't clobber LIBS. Regression from previous commit.
29935         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Move tests that use
29936         AC_CHECK_LIB from here...
29937         (gl_GETLOADAVG): ... to here, inside the experiment with LIBS.
29938         (gl_GETLOADAVG, gl_PREREQ_GETLOADAVG): Rename gl_have_func to
29939         gl_func_getloadavg_done.
29940         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
29942 2011-06-18  Bruno Haible  <bruno@clisp.org>
29944         clean-temp: Improve documentation.
29945         * lib/clean-temp.h: Explain better how to use this module.
29946         Reported by John Darrington <john@darrington.wattle.id.au>.
29948 2011-06-17  Bruno Haible  <bruno@clisp.org>
29950         pread, pwrite: Avoid cc warning on AIX.
29951         * lib/unistd.in.h (pread): Undefine before defining as a macro.
29952         (pwrite): Likewise.
29954 2011-06-17  Bruno Haible  <bruno@clisp.org>
29956         spawn-pipe tests: Fix link error.
29957         * tests/test-spawn-pipe-child.c: Undefine fprintf.
29958         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
29960 2011-06-17  Bruno Haible  <bruno@clisp.org>
29962         Tests: Remove unnecessary dependency.
29963         * modules/canonicalize-tests (Depends-on): Remove progname.
29964         * modules/chown-tests (Depends-on): Likewise.
29965         * modules/dirname-tests (Depends-on): Likewise.
29966         * modules/fdopendir-tests (Depends-on): Likewise.
29967         * modules/fdutimensat-tests (Depends-on): Likewise.
29968         * modules/hash-tests (Depends-on): Likewise.
29969         * modules/lchown-tests (Depends-on): Likewise.
29970         * modules/linkat-tests (Depends-on): Likewise.
29971         * modules/renameat-tests (Depends-on): Likewise.
29972         * modules/spawn-pipe-tests (Depends-on): Likewise.
29973         * modules/utimensat-tests (Depends-on): Likewise.
29975 2011-06-17  Bruno Haible  <bruno@clisp.org>
29977         spawn-pipe tests: Fix link error.
29978         * tests/test-spawn-pipe-child.c: Undefine fflush.
29980 2011-06-17  Bruno Haible  <bruno@clisp.org>
29982         Fix tests link errors.
29983         * modules/ceil-ieee-tests (Makefile.am): Use CEIL_LIBM, not FLOOR_LIBM.
29984         * modules/chown-tests (Makefile.am): Don't link test-chown with
29985         LIBINTL.
29986         * modules/lchown-tests (Makefile.am): Don't link test-lchown with
29987         LIBINTL.
29988         * modules/utimens-tests (Makefile.am): Don't link test-utimens with
29989         LIBINTL.
29990         * modules/futimens-tests (Makefile.am): Don't link test-futimens with
29991         LIBINTL.
29993 2011-06-16  Bruno Haible  <bruno@clisp.org>
29995         crypto/gc-sha1: Fix recent regression.
29996         * modules/crypto/gc-sha1 (configure.ac): Invoke AC_LIBOBJ here.
29997         * m4/gc-sha1.m4 (gl_GC_SHA1): Don't invoke gl_SHA1.
29999         crypto/gc-md5: Fix recent regression.
30000         * modules/crypto/gc-md5 (configure.ac): Invoke AC_LIBOBJ here.
30002         crypto/gc-md4: Fix recent regression.
30003         * modules/crypto/gc-md4 (configure.ac): Invoke AC_LIBOBJ here.
30004         * m4/md4.m4 (gl_MD4): Ensure the expansion is non-empty.
30006         crypto/gc-arctwo: Fix recent regression.
30007         * modules/crypto/gc-arctwo (configure.ac): Invoke AC_LIBOBJ here.
30008         * m4/arctwo.m4 (gl_ARCTWO): Ensure the expansion is non-empty.
30010         crypto/gc-rijndael: Fix recent regression.
30011         * modules/crypto/gc-rijndael (Files): Remove m4/rijndael.m4.
30012         (configure.ac): Invoke AC_LIBOBJ here.
30013         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Don't invoke gl_RIJNDAEL.
30014         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
30016         crypto/gc-hmac-sha1: Fix recent regression.
30017         * modules/crypto/gc-hmac-sha1 (Files): Remove m4/hmac-sha1.m4.
30018         (configure.ac): Invoke AC_LIBOBJ here.
30019         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Don't invoke gl_HMAC_SHA1.
30020         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
30022         crypto/gc-hmac-md5: Fix recent regression.
30023         * modules/crypto/gc-hmac-md5 (Files): Remove m4/hmac-md5.m4.
30024         (configure.ac): Invoke AC_LIBOBJ here.
30025         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Don't invoke gl_HMAC_MD5.
30026         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
30028         crypto/gc-des: Fix recent regression.
30029         * modules/crypto/gc-des (Files): Remove m4/des.m4.
30030         (configure.ac): Invoke AC_LIBOBJ here.
30031         * m4/gc-des.m4 (gl_GC_DES): Don't invoke gl_DES.
30032         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
30034         crypto/gc-arcfour: Fix recent regression.
30035         * modules/crypto/gc-arcfour (Files): Remove m4/arcfour.m4.
30036         (configure.ac): Invoke AC_LIBOBJ here.
30037         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Don't invoke gl_ARCFOUR.
30038         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
30040 2011-06-16  Paul Eggert  <eggert@cs.ucla.edu>
30042         * m4/lstat.m4 (gl_FUNC_LSTAT): Fix typo in prerequisite.
30043         After the 2011-05-21 change, this macro requires
30044         gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, not
30045         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
30047 2011-06-16  Bruno Haible  <bruno@clisp.org>
30049         fprintftime: Move AC_LIBOBJ invocations to module description.
30050         * m4/fprintftime.m4: Remove file.
30051         * modules/fprintftime (Files): Remove m4/fprintftime.m4.
30052         (configure.ac): Remove gl_FPRINTFTIME call.
30053         (Makefile.am): Augment lib_SOURCES.
30054         Reported by Jim Meyering.
30056 2011-06-16  Bruno Haible  <bruno@clisp.org>
30058         tmpfile-safer: Finish 2011-05-23 commit.
30059         * m4/stdio-safer.m4: Really remove file.
30060         Reported by Jim Meyering.
30062 2011-06-16  Bruno Haible  <bruno@clisp.org>
30064         syntax-check: Fix typo.
30065         * Makefile (allow_AC_LIBOBJ): Mention printf-posix-rpl.m4, not
30066         printf-posix.m4.
30067         Reported by Jim Meyering.
30069 2011-06-13  Jim Meyering  <meyering@redhat.com>
30071         syntax-check: add a rule to help enforce the no-AC_LIBOBJ-in-m4/ policy
30072         * Makefile (sc_prohibit_AC_LIBOBJ_in_m4): New rule.
30074 2011-05-23  Bruno Haible  <bruno@clisp.org>
30076         yesno: Move AC_LIBOBJ invocations to module description.
30077         * m4/yesno.m4 (gl_YESNO): Remove AC_LIBOBJ invocation.
30078         * modules/yesno (Makefile.am): Augment lib_SOURCES.
30080 2011-05-23  Bruno Haible  <bruno@clisp.org>
30082         xstrtol: Move AC_LIBOBJ invocations to module description.
30083         * m4/xstrtol.m4 (gl_XSTRTOL): Remove AC_LIBOBJ invocations.
30084         * modules/xstrtol (Makefile.am): Augment lib_SOURCES.
30086 2011-05-23  Bruno Haible  <bruno@clisp.org>
30088         xstrtold: Move AC_LIBOBJ invocations to module description.
30089         * m4/xstrtod.m4 (gl_XSTRTOLD): Remove AC_LIBOBJ invocation.
30090         * modules/xstrtold (Makefile.am): Augment lib_SOURCES.
30092 2011-05-23  Bruno Haible  <bruno@clisp.org>
30094         xstrtod: Move AC_LIBOBJ invocations to module description.
30095         * m4/xstrtod.m4 (gl_XSTRTOD): Remove AC_LIBOBJ invocation.
30096         * modules/xstrtod (Makefile.am): Augment lib_SOURCES.
30098 2011-05-23  Bruno Haible  <bruno@clisp.org>
30100         xnanosleep: Move AC_LIBOBJ invocations to module description.
30101         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove AC_LIBOBJ invocation.
30102         * modules/xnanosleep (Makefile.am): Augment lib_SOURCES.
30104 2011-05-23  Bruno Haible  <bruno@clisp.org>
30106         xgetcwd: Move AC_LIBOBJ invocations to module description.
30107         * m4/xgetcwd.m4 (gl_XGETCWD): Remove AC_LIBOBJ invocation.
30108         * modules/xgetcwd (Makefile.am): Augment lib_SOURCES.
30110 2011-05-23  Bruno Haible  <bruno@clisp.org>
30112         xalloc: Move AC_LIBOBJ invocations to module description.
30113         * m4/xalloc.m4 (gl_XALLOC): Remove AC_LIBOBJ invocation.
30114         * modules/xalloc (Makefile.am): Augment lib_SOURCES.
30116 2011-05-23  Bruno Haible  <bruno@clisp.org>
30118         write-any-file: Move AC_LIBOBJ invocations to module description.
30119         * m4/write-any-file.m4 (gl_WRITE_ANY_FILE): Remove AC_LIBOBJ
30120         invocation.
30121         * modules/write-any-file (Makefile.am): Augment lib_SOURCES.
30123 2011-05-23  Bruno Haible  <bruno@clisp.org>
30125         utimens: Move AC_LIBOBJ invocations to module description.
30126         * m4/utimens.m4 (gl_UTIMENS): Remove AC_LIBOBJ invocation.
30127         * modules/utimens (Makefile.am): Augment lib_SOURCES.
30129 2011-05-23  Bruno Haible  <bruno@clisp.org>
30131         utimecmp: Move AC_LIBOBJ invocations to module description.
30132         * m4/utimecmp.m4 (gl_UTIMECMP): Remove AC_LIBOBJ invocation.
30133         * modules/utimecmp (Makefile.am): Augment lib_SOURCES.
30135 2011-05-23  Bruno Haible  <bruno@clisp.org>
30137         userspec: Move AC_LIBOBJ invocations to module description.
30138         * m4/userspec.m4 (gl_USERSPEC): Remove AC_LIBOBJ invocation.
30139         * modules/userspec (Makefile.am): Augment lib_SOURCES.
30141 2011-05-23  Bruno Haible  <bruno@clisp.org>
30143         unlinkdir: Move AC_LIBOBJ invocations to module description.
30144         * m4/unlinkdir.m4 (gl_UNLINKDIR): Remove AC_LIBOBJ invocation.
30145         * modules/unlinkdir (Makefile.am): Augment lib_SOURCES.
30147 2011-05-23  Bruno Haible  <bruno@clisp.org>
30149         unistd-safer: Move AC_LIBOBJ invocations to module description.
30150         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Remove AC_LIBOBJ invocations.
30151         * modules/unistd-safer (Makefile.am): Augment lib_SOURCES.
30153 2011-05-23  Bruno Haible  <bruno@clisp.org>
30155         tempname: Move AC_LIBOBJ invocations to module description.
30156         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Remove AC_LIBOBJ invocation.
30157         * modules/tempname (Makefile.am): Augment lib_SOURCES.
30159 2011-05-23  Bruno Haible  <bruno@clisp.org>
30161         strftime: Move AC_LIBOBJ invocations to module description.
30162         * m4/strftime.m4 (gl_FUNC_STRFTIME): Remove AC_LIBOBJ invocation.
30163         * modules/strftime (Makefile.am): Augment lib_SOURCES.
30165 2011-05-23  Bruno Haible  <bruno@clisp.org>
30167         stdlib-safer: Move AC_LIBOBJ invocations to module description.
30168         * m4/stdlib-safer.m4: Remove file.
30169         * modules/stdlib-safer (Files): Remove m4/stdlib-safer.m4.
30170         (configure.ac): Remove gl_STDLIB_SAFER call.
30171         (Makefile.am): Augment lib_SOURCES.
30173 2011-05-23  Bruno Haible  <bruno@clisp.org>
30175         tmpfile-safer: Move AC_LIBOBJ invocations to module description.
30176         * m4/stdio-safer.m4: Remove file.
30177         * modules/tmpfile-safer (Files): Remove m4/stdio-safer.m4.
30178         (configure.ac): Remove gl_TMPFILE_SAFER call.
30179         (Makefile.am): Augment lib_SOURCES.
30181 2011-05-23  Bruno Haible  <bruno@clisp.org>
30183         popen-safer: Move AC_LIBOBJ invocations to module description.
30184         * m4/stdio-safer.m4 (gl_POPEN_SAFER): Remove macro.
30185         * modules/popen-safer (Files): Remove m4/stdio-safer.m4.
30186         (configure.ac): Remove gl_POPEN_SAFER call.
30187         (Makefile.am): Augment lib_SOURCES.
30189 2011-05-23  Bruno Haible  <bruno@clisp.org>
30191         freopen-safer: Move AC_LIBOBJ invocations to module description.
30192         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): Remove macro.
30193         * modules/freopen-safer (Files): Remove m4/stdio-safer.m4.
30194         (configure.ac): Remove gl_FREOPEN_SAFER call.
30195         (Makefile.am): Augment lib_SOURCES.
30197 2011-05-23  Bruno Haible  <bruno@clisp.org>
30199         fopen-safer: Move AC_LIBOBJ invocations to module description.
30200         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove macro.
30201         * modules/fopen-safer (Files): Remove m4/stdio-safer.m4.
30202         (configure.ac): Remove gl_FOPEN_SAFER call.
30203         (Makefile.am): Augment lib_SOURCES.
30205 2011-05-23  Bruno Haible  <bruno@clisp.org>
30207         crypto/sha512: Move AC_LIBOBJ invocations to module description.
30208         * m4/sha512.m4 (gl_SHA512): Remove AC_LIBOBJ invocation.
30209         * modules/crypto/sha512 (Makefile.am): Augment lib_SOURCES.
30211 2011-05-23  Bruno Haible  <bruno@clisp.org>
30213         crypto/sha256: Move AC_LIBOBJ invocations to module description.
30214         * m4/sha256.m4 (gl_SHA256): Remove AC_LIBOBJ invocation.
30215         * modules/crypto/sha256 (Makefile.am): Augment lib_SOURCES.
30217 2011-05-23  Bruno Haible  <bruno@clisp.org>
30219         crypto/sha1: Move AC_LIBOBJ invocations to module description.
30220         * m4/sha1.m4 (gl_SHA1): Remove AC_LIBOBJ invocation.
30221         * modules/crypto/sha1 (Makefile.am): Augment lib_SOURCES.
30223 2011-05-23  Bruno Haible  <bruno@clisp.org>
30225         settime: Move AC_LIBOBJ invocations to module description.
30226         * m4/settime.m4 (gl_SETTIME): Remove AC_LIBOBJ invocation.
30227         * modules/settime (Makefile.am): Augment lib_SOURCES.
30229 2011-05-23  Bruno Haible  <bruno@clisp.org>
30231         savedir: Move AC_LIBOBJ invocations to module description.
30232         * m4/savedir.m4 (gl_SAVEDIR): Remove AC_LIBOBJ invocation.
30233         * modules/savedir (Makefile.am): Augment lib_SOURCES.
30235 2011-05-23  Bruno Haible  <bruno@clisp.org>
30237         save-cwd: Move AC_LIBOBJ invocations to module description.
30238         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove AC_LIBOBJ invocation.
30239         * modules/save-cwd (Makefile.am): Augment lib_SOURCES.
30241 2011-05-23  Bruno Haible  <bruno@clisp.org>
30243         same: Move AC_LIBOBJ invocations to module description.
30244         * m4/same.m4 (gl_SAME): Remove AC_LIBOBJ invocation.
30245         * modules/same (Makefile.am): Augment lib_SOURCES.
30247 2011-05-23  Bruno Haible  <bruno@clisp.org>
30249         safe-write: Move AC_LIBOBJ invocations to module description.
30250         * m4/safe-write.m4 (gl_SAFE_WRITE): Remove macro.
30251         * modules/safe-write (configure.ac): Invoke gl_PREREQ_SAFE_WRITE
30252         instead of gl_SAFE_WRITE.
30253         (Makefile.am): Augment lib_SOURCES.
30255 2011-05-23  Bruno Haible  <bruno@clisp.org>
30257         safe-read: Move AC_LIBOBJ invocations to module description.
30258         * m4/safe-read.m4 (gl_SAFE_READ): Remove macro.
30259         * modules/safe-read (configure.ac): Invoke gl_PREREQ_SAFE_READ instead
30260         of gl_SAFE_READ.
30261         (Makefile.am): Augment lib_SOURCES.
30263 2011-05-23  Bruno Haible  <bruno@clisp.org>
30265         safe-alloc: Move AC_LIBOBJ invocations to module description.
30266         * m4/safe-alloc.m4 (gl_SAFE_ALLOC): Remove AC_LIBOBJ invocation.
30267         * modules/safe-alloc (Makefile.am): Augment lib_SOURCES.
30269 2011-05-23  Bruno Haible  <bruno@clisp.org>
30271         crypto/rijndael: Move AC_LIBOBJ invocations to module description.
30272         * m4/rijndael.m4: Remove file.
30273         * modules/crypto/rijndael (Files): Remove it.
30274         (configure.ac): Remove gl_RIJNDAEL call.
30275         (Makefile.am): Augment lib_SOURCES.
30277 2011-05-23  Bruno Haible  <bruno@clisp.org>
30279         readtokens: Move AC_LIBOBJ invocations to module description.
30280         * m4/readtokens.m4 (gl_READTOKENS): Remove AC_LIBOBJ invocation.
30281         * modules/readtokens (Makefile.am): Augment lib_SOURCES.
30283 2011-05-23  Bruno Haible  <bruno@clisp.org>
30285         read-file: Move AC_LIBOBJ invocations to module description.
30286         * m4/read-file.m4 (gl_FUNC_READ_FILE): Remove macro.
30287         * modules/read-file (configure.ac): Invoke gl_PREREQ_READ_FILE instead
30288         of gl_FUNC_READ_FILE.
30289         (Makefile.am): Augment lib_SOURCES.
30291 2011-05-23  Bruno Haible  <bruno@clisp.org>
30293         quotearg: Move AC_LIBOBJ invocations to module description.
30294         * m4/quotearg.m4 (gl_QUOTEARG): Remove AC_LIBOBJ invocation.
30295         * modules/quotearg (Makefile.am): Augment lib_SOURCES.
30297 2011-05-23  Bruno Haible  <bruno@clisp.org>
30299         quote: Move AC_LIBOBJ invocations to module description.
30300         * m4/quote.m4 (gl_QUOTE): Remove AC_LIBOBJ invocation.
30301         * modules/quote (Makefile.am): Augment lib_SOURCES.
30303 2011-05-23  Bruno Haible  <bruno@clisp.org>
30305         posixver: Move AC_LIBOBJ invocations to module description.
30306         * m4/posixver.m4 (gl_POSIXVER): Remove AC_LIBOBJ invocation.
30307         * modules/posixver (Makefile.am): Augment lib_SOURCES.
30309 2011-05-23  Bruno Haible  <bruno@clisp.org>
30311         posixtm: Move AC_LIBOBJ invocations to module description.
30312         * m4/posixtm.m4 (gl_POSIXTM): Remove AC_LIBOBJ invocation.
30313         * modules/posixtm (Makefile.am): Augment lib_SOURCES.
30315 2011-05-23  Bruno Haible  <bruno@clisp.org>
30317         physmem: Move AC_LIBOBJ invocations to module description.
30318         * m4/physmem.m4 (gl_PHYSMEM): Remove AC_LIBOBJ invocation.
30319         * modules/physmem (Makefile.am): Augment lib_SOURCES.
30321 2011-05-23  Bruno Haible  <bruno@clisp.org>
30323         pagealign_alloc: Move AC_LIBOBJ invocations to module description.
30324         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Remove AC_LIBOBJ
30325         invocation.
30326         * modules/pagealign_alloc (Makefile.am): Augment lib_SOURCES.
30328 2011-05-23  Bruno Haible  <bruno@clisp.org>
30330         mpsort: Move AC_LIBOBJ invocations to module description.
30331         * m4/mpsort.m4 (gl_MPSORT): Remove AC_LIBOBJ invocation.
30332         * modules/mpsort (Makefile.am): Augment lib_SOURCES.
30334 2011-05-23  Bruno Haible  <bruno@clisp.org>
30336         modechange: Move AC_LIBOBJ invocations to module description.
30337         * m4/modechange.m4 (gl_MODECHANGE): Remove AC_LIBOBJ invocation.
30338         * modules/modechange (Makefile.am): Augment lib_SOURCES.
30340 2011-05-23  Bruno Haible  <bruno@clisp.org>
30342         mkdir-p: Move AC_LIBOBJ invocations to module description.
30343         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Remove AC_LIBOBJ invocations.
30344         * modules/mkdir-p (Makefile.am): Augment lib_SOURCES.
30346 2011-05-23  Bruno Haible  <bruno@clisp.org>
30348         mkancesdirs: Move AC_LIBOBJ invocations to module description.
30349         * m4/mkancesdirs.m4 (gl_MKANCESDIRS): Remove AC_LIBOBJ invocation.
30350         * modules/mkancesdirs (Makefile.am): Augment lib_SOURCES.
30352 2011-05-23  Bruno Haible  <bruno@clisp.org>
30354         mgetgroups: Move AC_LIBOBJ invocations to module description.
30355         * m4/mgetgroups.m4 (gl_MGETGROUPS): Remove AC_LIBOBJ invocation.
30356         * modules/mgetgroups (Makefile.am): Augment lib_SOURCES.
30358 2011-05-23  Bruno Haible  <bruno@clisp.org>
30360         memxor: Move AC_LIBOBJ invocations to module description.
30361         * m4/memxor.m4 (gl_MEMXOR): Remove AC_LIBOBJ invocation.
30362         * modules/memxor (Makefile.am): Augment lib_SOURCES.
30364 2011-05-23  Bruno Haible  <bruno@clisp.org>
30366         memcoll: Move AC_LIBOBJ invocations to module description.
30367         * m4/memcoll.m4 (gl_MEMCOLL): Remove AC_LIBOBJ invocation.
30368         * modules/memcoll (Makefile.am): Augment lib_SOURCES.
30370 2011-05-23  Bruno Haible  <bruno@clisp.org>
30372         memcasecmp: Move AC_LIBOBJ invocations to module description.
30373         * m4/memcasecmp.m4 (gl_MEMCASECMP): Remove AC_LIBOBJ invocation.
30374         * modules/memcasecmp (Makefile.am): Augment lib_SOURCES.
30376 2011-05-23  Bruno Haible  <bruno@clisp.org>
30378         crypto/md5: Move AC_LIBOBJ invocations to module description.
30379         * m4/md5.m4 (gl_MD5): Remove AC_LIBOBJ invocation.
30380         * modules/crypto/md5 (Makefile.am): Augment lib_SOURCES.
30382 2011-05-23  Bruno Haible  <bruno@clisp.org>
30384         crypto/md4: Move AC_LIBOBJ invocations to module description.
30385         * m4/md4.m4 (gl_MD4): Remove AC_LIBOBJ invocation.
30386         * modules/crypto/md4 (Makefile.am): Augment lib_SOURCES.
30388 2011-05-23  Bruno Haible  <bruno@clisp.org>
30390         crypto/md2: Move AC_LIBOBJ invocations to module description.
30391         * m4/md2.m4: Remove file.
30392         * modules/crypto/md2 (Files): Remove it.
30393         (configure.ac): Remove gl_MD2 call.
30394         (Makefile.am): Augment lib_SOURCES.
30396 2011-05-23  Bruno Haible  <bruno@clisp.org>
30398         long-options: Move AC_LIBOBJ invocations to module description.
30399         * m4/long-options.m4: Remove file.
30400         * modules/long-options (Files): Remove it.
30401         (configure.ac): Remove gl_LONG_OPTIONS call.
30402         (Makefile.am): Augment lib_SOURCES.
30404 2011-05-23  Bruno Haible  <bruno@clisp.org>
30406         i-ring: Move AC_LIBOBJ invocations to module description.
30407         * m4/i-ring.m4 (gl_I_RING): Remove AC_LIBOBJ invocation.
30408         * modules/i-ring (Makefile.am): Augment lib_SOURCES.
30410 2011-05-23  Bruno Haible  <bruno@clisp.org>
30412         idcache: Move AC_LIBOBJ invocations to module description.
30413         * m4/idcache.m4 (gl_IDCACHE): Remove AC_LIBOBJ invocation.
30414         * modules/idcache (Makefile.am): Augment lib_SOURCES.
30416 2011-05-23  Bruno Haible  <bruno@clisp.org>
30418         human: Move AC_LIBOBJ invocations to module description.
30419         * m4/human.m4 (gl_HUMAN): Remove AC_LIBOBJ invocation.
30420         * modules/human (Makefile.am): Augment lib_SOURCES.
30422 2011-05-23  Bruno Haible  <bruno@clisp.org>
30424         crypto/hmac-sha1: Move AC_LIBOBJ invocations to module description.
30425         * m4/hmac-sha1.m4: Remove file.
30426         * modules/crypto/hmac-sha1 (Files): Remove it.
30427         (configure.ac): Remove gl_HMAC_SHA1 call.
30428         (Makefile.am): Augment lib_SOURCES.
30430 2011-05-23  Bruno Haible  <bruno@clisp.org>
30432         crypto/hmac-md5: Move AC_LIBOBJ invocations to module description.
30433         * m4/hmac-md5.m4: Remove file.
30434         * modules/crypto/hmac-md5 (Files): Remove it.
30435         (configure.ac): Remove gl_HMAC_MD5 call.
30436         (Makefile.am): Augment lib_SOURCES.
30438 2011-05-23  Bruno Haible  <bruno@clisp.org>
30440         hash: Move AC_LIBOBJ invocations to module description.
30441         * m4/hash.m4: Remove file.
30442         * modules/hash (Files): Remove it.
30443         (configure.ac): Remove gl_HASH call.
30444         (Makefile.am): Augment lib_SOURCES.
30446 2011-05-23  Bruno Haible  <bruno@clisp.org>
30448         hard-locale: Move AC_LIBOBJ invocations to module description.
30449         * m4/hard-locale.m4 (gl_HARD_LOCALE): Remove AC_LIBOBJ invocation.
30450         * modules/hard-locale (Makefile.am): Augment lib_SOURCES.
30452 2011-05-23  Bruno Haible  <bruno@clisp.org>
30454         getugroups: Move AC_LIBOBJ invocations to module description.
30455         * m4/getugroups.m4 (gl_GETUGROUPS): Remove AC_LIBOBJ invocation.
30456         * modules/getugroups (Makefile.am): Augment lib_SOURCES.
30458 2011-05-23  Bruno Haible  <bruno@clisp.org>
30460         gettime: Move AC_LIBOBJ invocations to module description.
30461         * m4/gettime.m4 (gl_GETTIME): Remove AC_LIBOBJ invocation.
30462         * modules/gettime (Makefile.am): Augment lib_SOURCES.
30464 2011-05-23  Bruno Haible  <bruno@clisp.org>
30466         getndelim2: Move AC_LIBOBJ invocations to module description.
30467         * m4/getndelim2.m4 (gl_GETNDELIM2): Remove AC_LIBOBJ invocation.
30468         * modules/getndelim2 (Makefile.am): Augment lib_SOURCES.
30470 2011-05-23  Bruno Haible  <bruno@clisp.org>
30472         crypto/gc-pbkdf2-sha1: Move AC_LIBOBJ invocations to module description.
30473         * m4/gc-pbkdf2-sha1.m4: Remove file.
30474         * modules/crypto/gc-pbkdf2-sha1 (Files): Remove it.
30475         (configure.ac): Remove gl_GC_PBKDF2_SHA1 call.
30476         (Makefile.am): Augment lib_SOURCES.
30478 2011-05-23  Bruno Haible  <bruno@clisp.org>
30480         fts: Move AC_LIBOBJ invocations to module description.
30481         * m4/fts.m4 (gl_FUNC_FTS_CORE): Move AC_LIBOBJ invocation from here...
30482         * modules/fts (configure.ac): ... to here.
30484 2011-05-23  Bruno Haible  <bruno@clisp.org>
30486         file-type: Move AC_LIBOBJ invocations to module description.
30487         * m4/file-type.m4: Remove file.
30488         * modules/file-type (Files): Remove it.
30489         (configure.ac): Remove gl_FILE_TYPE call.
30490         (Makefile.am): Augment lib_SOURCES.
30492 2011-05-23  Bruno Haible  <bruno@clisp.org>
30494         filenamecat*: Respect rules for use of AC_LIBOBJ.
30495         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT, gl_FILE_NAME_CONCAT_LGPL):
30496         Remove AC_LIBOBJ invocation.
30497         * modules/filenamecat (Makefile.am): Augment lib_SOURCES.
30498         * modules/filenamecat-lgpl (Makefile.am): Augment lib_SOURCES.
30500 2011-05-23  Bruno Haible  <bruno@clisp.org>
30502         filemode: Move AC_LIBOBJ invocations to module description.
30503         * m4/filemode.m4 (gl_FILEMODE): Remove AC_LIBOBJ invocation.
30504         * modules/filemode (Makefile.am): Augment lib_SOURCES.
30506 2011-05-23  Bruno Haible  <bruno@clisp.org>
30508         openat-safer: Move AC_LIBOBJ invocations to module description.
30509         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): Remove AC_LIBOBJ invocation.
30510         * modules/openat-safer (Makefile.am): Augment lib_SOURCES.
30512 2011-05-23  Bruno Haible  <bruno@clisp.org>
30514         fcntl-safer: Move AC_LIBOBJ invocations to module description.
30515         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove AC_LIBOBJ invocations.
30516         * modules/fcntl-safer (Makefile.am): Augment lib_SOURCES.
30518 2011-05-23  Bruno Haible  <bruno@clisp.org>
30520         exclude: Move AC_LIBOBJ invocations to module description.
30521         * m4/exclude.m4: Remove file.
30522         * modules/exclude (Files): Remove it.
30523         (configure.ac): Remove gl_EXCLUDE call.
30524         (Makefile.am): Augment lib_SOURCES.
30526 2011-05-23  Bruno Haible  <bruno@clisp.org>
30528         dirname*: Respect rules for use of AC_LIBOBJ.
30529         * m4/dirname.m4 (gl_DIRNAME, gl_DIRNAME_LGPL): Remove AC_LIBOBJ
30530         invocations.
30531         * modules/dirname (Makefile.am): Augment lib_SOURCES.
30532         * modules/dirname-lgpl (Makefile.am): Augment lib_SOURCES.
30534 2011-05-23  Bruno Haible  <bruno@clisp.org>
30536         dirent-safer: Move AC_LIBOBJ invocations to module description.
30537         * m4/dirent-safer.m4 (gl_DIRENT_SAFER): Remove AC_LIBOBJ invocation.
30538         * modules/dirent-safer (Makefile.am): Augment lib_SOURCES.
30540 2011-05-23  Bruno Haible  <bruno@clisp.org>
30542         crypto/des: Move AC_LIBOBJ invocations to module description.
30543         * m4/des.m4: Remove file.
30544         * modules/crypto/des (Files): Remove it.
30545         (configure.ac): Remove gl_DES call.
30546         (Makefile.am): Augment lib_SOURCES.
30548 2011-05-23  Bruno Haible  <bruno@clisp.org>
30550         cycle-check: Move AC_LIBOBJ invocations to module description.
30551         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Remove AC_LIBOBJ invocation.
30552         * modules/cycle-check (Makefile.am): Augment lib_SOURCES.
30554 2011-05-23  Bruno Haible  <bruno@clisp.org>
30556         c-strtold: Move AC_LIBOBJ invocations to module description.
30557         * m4/c-strtod.m4 (gl_C_STRTOLD): Remove AC_LIBOBJ invocation.
30558         * modules/c-strtold (Makefile.am): Augment lib_SOURCES.
30560 2011-05-23  Bruno Haible  <bruno@clisp.org>
30562         c-strtod: Move AC_LIBOBJ invocations to module description.
30563         * m4/c-strtod.m4 (gl_C_STRTOD): Remove AC_LIBOBJ invocation.
30564         * modules/c-strtod (Makefile.am): Augment lib_SOURCES.
30566 2011-05-23  Bruno Haible  <bruno@clisp.org>
30568         crc: Move AC_LIBOBJ invocations to module description.
30569         * m4/crc.m4: Remove file.
30570         * modules/crc (Files): Remove it.
30571         (configure.ac): Remove gl_CRC call.
30572         (Makefile.am): Augment lib_SOURCES.
30574 2011-05-23  Bruno Haible  <bruno@clisp.org>
30576         close-stream: Move AC_LIBOBJ invocations to module description.
30577         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove AC_LIBOBJ invocation.
30578         * modules/close-stream (Makefile.am): Augment lib_SOURCES.
30580 2011-05-23  Bruno Haible  <bruno@clisp.org>
30582         closeout: Move AC_LIBOBJ invocations to module description.
30583         * m4/closeout.m4 (gl_CLOSEOUT): Remove AC_LIBOBJ invocation.
30584         * modules/closeout (Makefile.am): Augment lib_SOURCES.
30586 2011-05-23  Bruno Haible  <bruno@clisp.org>
30588         closein: Move AC_LIBOBJ invocations to module description.
30589         * m4/closein.m4 (gl_CLOSEIN): Remove AC_LIBOBJ invocation.
30590         * modules/closein (Makefile.am): Augment lib_SOURCES.
30592 2011-05-23  Bruno Haible  <bruno@clisp.org>
30594         cloexec: Move AC_LIBOBJ invocations to module description.
30595         * m4/cloexec.m4: Remove file.
30596         * modules/cloexec (Files): Remove it.
30597         (configure.ac): Remove gl_CLOEXEC call.
30598         (Makefile.am): Augment lib_SOURCES.
30600 2011-05-23  Bruno Haible  <bruno@clisp.org>
30602         check-version: Move AC_LIBOBJ invocations to module description.
30603         * m4/check-version.m4: Remove file.
30604         * modules/check-version (Files): Remove it.
30605         (configure.ac): Remove gl_CHECK_VERSION call.
30606         (Makefile.am): Augment lib_SOURCES.
30608 2011-05-23  Bruno Haible  <bruno@clisp.org>
30610         chdir-safer: Move AC_LIBOBJ invocations to module description.
30611         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Remove AC_LIBOBJ invocation.
30612         * modules/chdir-safer (Makefile.am): Augment lib_SOURCES.
30614 2011-05-23  Bruno Haible  <bruno@clisp.org>
30616         canonicalize: Move AC_LIBOBJ invocations to module description.
30617         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Remove
30618         AC_LIBOBJ invocation.
30619         * modules/canonicalize (Makefile.am): Augment lib_SOURCES.
30621 2011-05-23  Bruno Haible  <bruno@clisp.org>
30623         canon-host: Move AC_LIBOBJ invocations to module description.
30624         * m4/canon-host.m4 (gl_CANON_HOST): Remove macro.
30625         * modules/canon-host (configure.ac): Invoke gl_PREREQ_CANON_HOST
30626         instead of gl_CANON_HOST.
30627         (Makefile.am): Augment lib_SOURCES.
30629 2011-05-23  Bruno Haible  <bruno@clisp.org>
30631         backupfile: Move AC_LIBOBJ invocations to module description.
30632         * m4/backupfile.m4 (gl_BACKUPFILE): Remove AC_LIBOBJ invocation.
30633         * modules/backupfile (Makefile.am): Augment lib_SOURCES.
30635 2011-05-23  Bruno Haible  <bruno@clisp.org>
30637         argmatch: Move AC_LIBOBJ invocations to module description.
30638         * m4/argmatch.m4: Remove file.
30639         * modules/argmatch (Files): Remove it.
30640         (configure.ac): Remove gl_ARGMATCH call.
30641         (Makefile.am): Augment lib_SOURCES.
30643 2011-05-23  Bruno Haible  <bruno@clisp.org>
30645         crypto/arctwo: Move AC_LIBOBJ invocations to module description.
30646         * m4/arctwo.m4 (gl_ARCTWO): Remove AC_LIBOBJ invocation.
30647         * modules/crypto/arctwo (Makefile.am): Augment lib_SOURCES.
30649 2011-05-23  Bruno Haible  <bruno@clisp.org>
30651         crypto/arcfour: Move AC_LIBOBJ invocations to module description.
30652         * m4/arcfour.m4: Remove file.
30653         * modules/crypto/arcfour (Files): Remove it.
30654         (configure.ac): Remove gl_ARCFOUR call.
30655         (Makefile.am): Augment lib_SOURCES.
30657 2011-05-22  Bruno Haible  <bruno@clisp.org>
30659         write: Move AC_LIBOBJ invocations to module description.
30660         * m4/write.m4 (gl_FUNC_WRITE): Move AC_LIBOBJ invocation from here...
30661         * modules/write (configure.ac): ... to here.
30663 2011-05-22  Bruno Haible  <bruno@clisp.org>
30665         wmemset: Move AC_LIBOBJ invocations to module description.
30666         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Move AC_LIBOBJ invocation from
30667         here...
30668         * modules/wmemset (configure.ac): ... to here.
30670 2011-05-22  Bruno Haible  <bruno@clisp.org>
30672         wmemmove: Move AC_LIBOBJ invocations to module description.
30673         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Move AC_LIBOBJ invocation from
30674         here...
30675         * modules/wmemmove (configure.ac): ... to here.
30677 2011-05-22  Bruno Haible  <bruno@clisp.org>
30679         wmemcpy: Move AC_LIBOBJ invocations to module description.
30680         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Move AC_LIBOBJ invocation from
30681         here...
30682         * modules/wmemcpy (configure.ac): ... to here.
30684 2011-05-22  Bruno Haible  <bruno@clisp.org>
30686         wmemcmp: Move AC_LIBOBJ invocations to module description.
30687         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Move AC_LIBOBJ invocation from
30688         here...
30689         * modules/wmemcmp (configure.ac): ... to here.
30691 2011-05-22  Bruno Haible  <bruno@clisp.org>
30693         wmemchr: Move AC_LIBOBJ invocations to module description.
30694         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Move AC_LIBOBJ invocation from
30695         here...
30696         * modules/wmemchr (configure.ac): ... to here.
30698 2011-05-22  Bruno Haible  <bruno@clisp.org>
30700         wcswidth: Move AC_LIBOBJ invocations to module description.
30701         * m4/wcswidth.m4 (gl_FUNC_WCSWIDTH): Move AC_LIBOBJ invocation from
30702         here...
30703         * modules/wcswidth (configure.ac): ... to here.
30705 2011-05-22  Bruno Haible  <bruno@clisp.org>
30707         wcwidth: Respect rules for use of AC_LIBOBJ.
30708         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Set HAVE_WCWIDTH. Move AC_LIBOBJ
30709         invocation from here...
30710         * modules/wcwidth (configure.ac): ... to here.
30711         (Depends-on): Update conditions.
30713 2011-05-22  Bruno Haible  <bruno@clisp.org>
30715         wctype: Move AC_LIBOBJ invocations to module description.
30716         * m4/wctype.m4 (gl_FUNC_WCTYPE): Set HAVE_WCTYPE. Move AC_LIBOBJ
30717         invocation from here...
30718         * modules/wctype (configure.ac): ... to here.
30719         (Depends-on): Update conditions.
30721 2011-05-22  Bruno Haible  <bruno@clisp.org>
30723         wctrans: Move AC_LIBOBJ invocations to module description.
30724         * m4/wctrans.m4 (gl_FUNC_WCTRANS): Set HAVE_WCTRANS. Move AC_LIBOBJ
30725         invocation from here...
30726         * modules/wctrans (configure.ac): ... to here.
30728 2011-05-22  Bruno Haible  <bruno@clisp.org>
30730         wctomb: Move AC_LIBOBJ invocations to module description.
30731         * m4/wctomb.m4 (gl_FUNC_WCTOMB): Move AC_LIBOBJ and gl_PREREQ_WCTOMB
30732         invocations from here...
30733         * modules/wctomb (configure.ac): ... to here.
30735 2011-05-22  Bruno Haible  <bruno@clisp.org>
30737         wctob: Move AC_LIBOBJ invocations to module description.
30738         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_WCTOB. Move AC_LIBOBJ and
30739         gl_PREREQ_WCTOB invocations from here...
30740         * modules/wctob (configure.ac): ... to here.
30741         (Depends-on): Update conditions.
30743 2011-05-22  Bruno Haible  <bruno@clisp.org>
30745         wcsxfrm: Move AC_LIBOBJ invocations to module description.
30746         * m4/wcsxfrm.m4 (gl_FUNC_WCSXFRM): Move AC_LIBOBJ invocation from
30747         here...
30748         * modules/wcsxfrm (configure.ac): ... to here.
30750 2011-05-22  Bruno Haible  <bruno@clisp.org>
30752         wcstok: Move AC_LIBOBJ invocations to module description.
30753         * m4/wcstok.m4 (gl_FUNC_WCSTOK): Move AC_LIBOBJ invocation from here...
30754         * modules/wcstok (configure.ac): ... to here.
30756 2011-05-22  Bruno Haible  <bruno@clisp.org>
30758         wcsstr: Move AC_LIBOBJ invocations to module description.
30759         * m4/wcsstr.m4 (gl_FUNC_WCSSTR): Move AC_LIBOBJ invocation from here...
30760         * modules/wcsstr (configure.ac): ... to here.
30762 2011-05-22  Bruno Haible  <bruno@clisp.org>
30764         wcsspn: Move AC_LIBOBJ invocations to module description.
30765         * m4/wcsspn.m4 (gl_FUNC_WCSSPN): Move AC_LIBOBJ invocation from here...
30766         * modules/wcsspn (configure.ac): ... to here.
30768 2011-05-22  Bruno Haible  <bruno@clisp.org>
30770         wcsrtombs: Move AC_LIBOBJ invocations to module description.
30771         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Move AC_LIBOBJ and
30772         gl_PREREQ_WCSRTOMBS invocations from here...
30773         * modules/wcsrtombs (configure.ac): ... to here.
30775 2011-05-22  Bruno Haible  <bruno@clisp.org>
30777         wcsrchr: Move AC_LIBOBJ invocations to module description.
30778         * m4/wcsrchr.m4 (gl_FUNC_WCSRCHR): Move AC_LIBOBJ invocation from
30779         here...
30780         * modules/wcsrchr (configure.ac): ... to here.
30782 2011-05-22  Bruno Haible  <bruno@clisp.org>
30784         wcspbrk: Move AC_LIBOBJ invocations to module description.
30785         * m4/wcspbrk.m4 (gl_FUNC_WCSPBRK): Move AC_LIBOBJ invocation from
30786         here...
30787         * modules/wcspbrk (configure.ac): ... to here.
30789 2011-05-22  Bruno Haible  <bruno@clisp.org>
30791         wcsnrtombs: Move AC_LIBOBJ invocations to module description.
30792         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): Move AC_LIBOBJ and
30793         gl_PREREQ_WCSNRTOMBS invocations from here...
30794         * modules/wcsnrtombs (configure.ac): ... to here.
30796 2011-05-22  Bruno Haible  <bruno@clisp.org>
30798         wcsnlen: Move AC_LIBOBJ invocations to module description.
30799         * m4/wcsnlen.m4 (gl_FUNC_WCSNLEN): Move AC_LIBOBJ invocation from
30800         here...
30801         * modules/wcsnlen (configure.ac): ... to here.
30803 2011-05-22  Bruno Haible  <bruno@clisp.org>
30805         wcsncpy: Move AC_LIBOBJ invocations to module description.
30806         * m4/wcsncpy.m4 (gl_FUNC_WCSNCPY): Move AC_LIBOBJ invocation from
30807         here...
30808         * modules/wcsncpy (configure.ac): ... to here.
30810 2011-05-22  Bruno Haible  <bruno@clisp.org>
30812         wcsncmp: Move AC_LIBOBJ invocations to module description.
30813         * m4/wcsncmp.m4 (gl_FUNC_WCSNCMP): Move AC_LIBOBJ invocation from
30814         here...
30815         * modules/wcsncmp (configure.ac): ... to here.
30817 2011-05-22  Bruno Haible  <bruno@clisp.org>
30819         wcsncat: Move AC_LIBOBJ invocations to module description.
30820         * m4/wcsncat.m4 (gl_FUNC_WCSNCAT): Move AC_LIBOBJ invocation from
30821         here...
30822         * modules/wcsncat (configure.ac): ... to here.
30824 2011-05-22  Bruno Haible  <bruno@clisp.org>
30826         wcsncasecmp: Move AC_LIBOBJ invocations to module description.
30827         * m4/wcsncasecmp.m4 (gl_FUNC_WCSNCASECMP): Move AC_LIBOBJ invocation
30828         from here...
30829         * modules/wcsncasecmp (configure.ac): ... to here.
30831 2011-05-22  Bruno Haible  <bruno@clisp.org>
30833         wcslen: Move AC_LIBOBJ invocations to module description.
30834         * m4/wcslen.m4 (gl_FUNC_WCSLEN): Move AC_LIBOBJ invocation from here...
30835         * modules/wcslen (configure.ac): ... to here.
30837 2011-05-22  Bruno Haible  <bruno@clisp.org>
30839         wcsdup: Move AC_LIBOBJ invocations to module description.
30840         * m4/wcsdup.m4 (gl_FUNC_WCSDUP): Move AC_LIBOBJ invocation from here...
30841         * modules/wcsdup (configure.ac): ... to here.
30843 2011-05-22  Bruno Haible  <bruno@clisp.org>
30845         wcscspn: Move AC_LIBOBJ invocations to module description.
30846         * m4/wcscspn.m4 (gl_FUNC_WCSCSPN): Move AC_LIBOBJ invocation from
30847         here...
30848         * modules/wcscspn (configure.ac): ... to here.
30850 2011-05-22  Bruno Haible  <bruno@clisp.org>
30852         wcscpy: Move AC_LIBOBJ invocations to module description.
30853         * m4/wcscpy.m4 (gl_FUNC_WCSCPY): Move AC_LIBOBJ invocation from here...
30854         * modules/wcscpy (configure.ac): ... to here.
30856 2011-05-22  Bruno Haible  <bruno@clisp.org>
30858         wcscoll: Move AC_LIBOBJ invocations to module description.
30859         * m4/wcscoll.m4 (gl_FUNC_WCSCOLL): Move AC_LIBOBJ invocation from
30860         here...
30861         * modules/wcscoll (configure.ac): ... to here.
30863 2011-05-22  Bruno Haible  <bruno@clisp.org>
30865         wcscmp: Move AC_LIBOBJ invocations to module description.
30866         * m4/wcscmp.m4 (gl_FUNC_WCSCMP): Move AC_LIBOBJ invocation from here...
30867         * modules/wcscmp (configure.ac): ... to here.
30869 2011-05-22  Bruno Haible  <bruno@clisp.org>
30871         wcschr: Move AC_LIBOBJ invocations to module description.
30872         * m4/wcschr.m4 (gl_FUNC_WCSCHR): Move AC_LIBOBJ invocation from here...
30873         * modules/wcschr (configure.ac): ... to here.
30875 2011-05-22  Bruno Haible  <bruno@clisp.org>
30877         wcscat: Move AC_LIBOBJ invocations to module description.
30878         * m4/wcscat.m4 (gl_FUNC_WCSCAT): Move AC_LIBOBJ invocation from here...
30879         * modules/wcscat (configure.ac): ... to here.
30881 2011-05-22  Bruno Haible  <bruno@clisp.org>
30883         wcscasecmp: Move AC_LIBOBJ invocations to module description.
30884         * m4/wcscasecmp.m4 (gl_FUNC_WCSCASECMP): Move AC_LIBOBJ invocation from
30885         here...
30886         * modules/wcscasecmp (configure.ac): ... to here.
30888 2011-05-22  Bruno Haible  <bruno@clisp.org>
30890         wcrtomb: Move AC_LIBOBJ invocations to module description.
30891         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Move AC_LIBOBJ and gl_PREREQ_WCRTOMB
30892         invocations from here...
30893         * modules/wcrtomb (configure.ac): ... to here.
30895 2011-05-22  Bruno Haible  <bruno@clisp.org>
30897         wcpncpy: Move AC_LIBOBJ invocations to module description.
30898         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Move AC_LIBOBJ invocation from
30899         here...
30900         * modules/wcpncpy (configure.ac): ... to here.
30902 2011-05-22  Bruno Haible  <bruno@clisp.org>
30904         wcpcpy: Move AC_LIBOBJ invocations to module description.
30905         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Move AC_LIBOBJ invocation from here...
30906         * modules/wcpcpy (configure.ac): ... to here.
30908 2011-05-22  Bruno Haible  <bruno@clisp.org>
30910         waitpid: Move AC_LIBOBJ invocations to module description.
30911         * m4/waitpid.m4 (gl_FUNC_WAITPID): Set HAVE_WAITPID. Move AC_LIBOBJ
30912         invocation from here...
30913         * modules/waitpid (configure.ac): ... to here.
30915 2011-05-22  Bruno Haible  <bruno@clisp.org>
30917         utimensat: Move AC_LIBOBJ invocations to module description.
30918         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Move AC_LIBOBJ invocations from
30919         here...
30920         * modules/utimensat (configure.ac): ... to here.
30922 2011-05-22  Bruno Haible  <bruno@clisp.org>
30924         usleep: Move AC_LIBOBJ invocations to module description.
30925         * m4/usleep.m4 (gl_FUNC_USLEEP): Move AC_LIBOBJ invocations from
30926         here...
30927         * modules/usleep (configure.ac): ... to here.
30929 2011-05-22  Bruno Haible  <bruno@clisp.org>
30931         unlockpt: Move AC_LIBOBJ invocations to module description.
30932         * m4/unlockpt.m4 (gl_FUNC_UNLOCKPT): Move AC_LIBOBJ and
30933         gl_PREREQ_UNLOCKPT invocations from here...
30934         * modules/unlockpt (configure.ac): ... to here.
30936 2011-05-22  Bruno Haible  <bruno@clisp.org>
30938         unlink: Respect rules for use of AC_LIBOBJ.
30939         * m4/unlink.m4 (gl_FUNC_UNLINK): Move AC_LIBOBJ invocation from here...
30940         * modules/unlink (configure.ac): ... to here.
30942 2011-05-22  Bruno Haible  <bruno@clisp.org>
30944         uname: Move AC_LIBOBJ invocations to module description.
30945         * m4/uname.m4 (gl_FUNC_UNAME): Call AC_CHECK_FUNCS instead of
30946         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_UNAME invocations from
30947         here...
30948         * modules/uname (configure.ac): ... to here.
30950 2011-05-22  Bruno Haible  <bruno@clisp.org>
30952         ttyname_r: Move AC_LIBOBJ invocations to module description.
30953         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Move AC_LIBOBJ and
30954         gl_PREREQ_TTYNAME_R invocations from here...
30955         * modules/ttyname_r (configure.ac): ... to here.
30957 2011-05-22  Bruno Haible  <bruno@clisp.org>
30959         tsearch: Move AC_LIBOBJ invocations to module description.
30960         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Move AC_LIBOBJ and gl_PREREQ_TSEARCH
30961         invocations from here...
30962         * modules/tsearch (configure.ac): ... to here.
30964 2011-05-22  Bruno Haible  <bruno@clisp.org>
30966         towctrans: Move AC_LIBOBJ invocations to module description.
30967         * m4/towctrans.m4 (gl_FUNC_TOWCTRANS): Set HAVE_TOWCTRANS. Move
30968         AC_LIBOBJ invocation from here...
30969         * modules/towctrans (configure.ac): ... to here.
30971 2011-05-22  Bruno Haible  <bruno@clisp.org>
30973         tmpfile: Move AC_LIBOBJ invocations to module description.
30974         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Move AC_LIBOBJ and gl_PREREQ_TMPFILE
30975         invocations from here...
30976         * modules/tmpfile (configure.ac): ... to here.
30978 2011-05-22  Bruno Haible  <bruno@clisp.org>
30980         times: Move AC_LIBOBJ invocations to module description.
30981         * m4/times.m4 (gl_FUNC_TIMES): Move AC_LIBOBJ invocation from here...
30982         * modules/times (configure.ac): ... to here.
30984 2011-05-22  Bruno Haible  <bruno@clisp.org>
30986         time_r: Move AC_LIBOBJ invocations to module description.
30987         * m4/time_r.m4 (gl_TIME_R): Move AC_LIBOBJ and gl_PREREQ_TIME_R
30988         invocations from here...
30989         * modules/time_r (configure.ac): ... to here.
30991 2011-05-22  Bruno Haible  <bruno@clisp.org>
30993         timegm: Move AC_LIBOBJ invocations to module description.
30994         * m4/timegm.m4 (gl_FUNC_TIMEGM): Move AC_LIBOBJ and gl_PREREQ_TIMEGM
30995         invocations from here...
30996         * modules/timegm (configure.ac): ... to here.
30998 2011-05-22  Bruno Haible  <bruno@clisp.org>
31000         tcgetsid: Move AC_LIBOBJ invocations to module description.
31001         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Set HAVE_TCGETSID. Move AC_LIBOBJ
31002         and gl_PREREQ_TCGETSID invocations from here...
31003         * modules/tcgetsid (configure.ac): ... to here.
31004         (Depends-on): Update conditions.
31006 2011-05-22  Bruno Haible  <bruno@clisp.org>
31008         symlinkat: Move AC_LIBOBJ invocations to module description.
31009         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move AC_LIBOBJ invocation from
31010         here...
31011         * modules/symlinkat (configure.ac): ... to here.
31013 2011-05-22  Bruno Haible  <bruno@clisp.org>
31015         symlink: Move AC_LIBOBJ invocations to module description.
31016         * m4/symlink.m4 (gl_FUNC_SYMLINK): Move AC_LIBOBJ invocations from
31017         here...
31018         * modules/symlink (configure.ac): ... to here.
31020 2011-05-22  Bruno Haible  <bruno@clisp.org>
31022         strverscmp: Move AC_LIBOBJ invocations to module description.
31023         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Call AC_CHECK_FUNCS instead of
31024         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRVERSCMP invocations
31025         from here...
31026         * modules/strverscmp (configure.ac): ... to here.
31028 2011-05-22  Bruno Haible  <bruno@clisp.org>
31030         strtok_r: Move AC_LIBOBJ invocations to module description.
31031         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_STRTOK_R. Move AC_LIBOBJ
31032         and gl_PREREQ_STRTOK_R invocations from here...
31033         * modules/strtok_r (configure.ac): ... to here.
31034         (Depends-on): Update conditions.
31036 2011-05-22  Bruno Haible  <bruno@clisp.org>
31038         strtoumax: Move AC_LIBOBJ invocations to module description.
31039         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Call AC_CHECK_FUNCS instead of
31040         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOUMAX invocations
31041         from here...
31042         * modules/strtoumax (configure.ac): ... to here.
31044 2011-05-22  Bruno Haible  <bruno@clisp.org>
31046         strtoimax: Move AC_LIBOBJ invocations to module description.
31047         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Call AC_CHECK_FUNCS instead of
31048         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOIMAX invocations
31049         from here...
31050         * modules/strtoimax (configure.ac): ... to here.
31052 2011-05-22  Bruno Haible  <bruno@clisp.org>
31054         strtoull: Move AC_LIBOBJ invocations to module description.
31055         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Call AC_CHECK_FUNCS instead of
31056         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOULL invocations
31057         from here...
31058         * modules/strtoull (configure.ac): ... to here.
31060 2011-05-22  Bruno Haible  <bruno@clisp.org>
31062         strtoll: Move AC_LIBOBJ invocations to module description.
31063         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Call AC_CHECK_FUNCS instead of
31064         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOLL invocations from
31065         here...
31066         * modules/strtoll (configure.ac): ... to here.
31068 2011-05-22  Bruno Haible  <bruno@clisp.org>
31070         strtoul: Move AC_LIBOBJ invocations to module description.
31071         * m4/strtoul.m4 (gl_FUNC_STRTOUL): Call AC_CHECK_FUNCS instead of
31072         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
31073         * modules/strtoul (configure.ac): ... to here.
31075 2011-05-22  Bruno Haible  <bruno@clisp.org>
31077         strtol: Move AC_LIBOBJ invocations to module description.
31078         * m4/strtol.m4 (gl_FUNC_STRTOL): Call AC_CHECK_FUNCS instead of
31079         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
31080         * modules/strtol (configure.ac): ... to here.
31082 2011-05-22  Bruno Haible  <bruno@clisp.org>
31084         strtod: Move AC_LIBOBJ invocations to module description.
31085         * m4/strtod.m4 (gl_FUNC_STRTOD): Move AC_LIBOBJ and gl_PREREQ_STRTOD
31086         invocations from here...
31087         * modules/strtod (configure.ac): ... to here.
31089 2011-05-22  Bruno Haible  <bruno@clisp.org>
31091         strstr*: Move AC_LIBOBJ invocations to module description.
31092         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Move AC_LIBOBJ
31093         invocations from here...
31094         * modules/strstr-simple (configure.ac): ... to here.
31095         * modules/strstr (configure.ac): ... and here.
31097 2011-05-22  Bruno Haible  <bruno@clisp.org>
31099         strsignal: Move AC_LIBOBJ invocations to module description.
31100         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Set HAVE_STRSIGNAL. Move
31101         AC_LIBOBJ and gl_PREREQ_STRSIGNAL invocations from here...
31102         * modules/strsignal (configure.ac): ... to here.
31103         (Depends-on): Update conditions.
31105 2011-05-22  Bruno Haible  <bruno@clisp.org>
31107         strsep: Move AC_LIBOBJ invocations to module description.
31108         * m4/strsep.m4 (gl_FUNC_STRSEP): Call AC_CHECK_FUNCS instead of
31109         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRSEP invocations from
31110         here...
31111         * modules/strsep (configure.ac): ... to here.
31113 2011-05-22  Bruno Haible  <bruno@clisp.org>
31115         strptime: Move AC_LIBOBJ invocations to module description.
31116         * m4/strptime.m4 (gl_FUNC_STRPTIME): Move AC_LIBOBJ and
31117         gl_PREREQ_STRPTIME invocations from here...
31118         * modules/strptime (configure.ac): ... to here.
31120 2011-05-22  Bruno Haible  <bruno@clisp.org>
31122         strpbrk: Move AC_LIBOBJ invocations to module description.
31123         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Call AC_CHECK_FUNCS instead of
31124         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRPBRK invocations from
31125         here...
31126         * modules/strpbrk (configure.ac): ... to here.
31128 2011-05-22  Bruno Haible  <bruno@clisp.org>
31130         strnlen: Move AC_LIBOBJ invocations to module description.
31131         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Move AC_LIBOBJ and gl_PREREQ_STRNLEN
31132         invocations from here...
31133         * modules/strnlen (configure.ac): ... to here.
31135 2011-05-22  Bruno Haible  <bruno@clisp.org>
31137         strndup: Move AC_LIBOBJ invocations to module description.
31138         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_STRNDUP. Move AC_LIBOBJ
31139         invocations from here...
31140         * modules/strndup (configure.ac): ... to here.
31141         (Depends-on): Update conditions.
31143 2011-05-22  Bruno Haible  <bruno@clisp.org>
31145         strncat: Move AC_LIBOBJ invocations to module description.
31146         * m4/strncat.m4 (gl_FUNC_STRNCAT): Move AC_LIBOBJ and gl_PREREQ_STRNCAT
31147         invocations from here...
31148         * modules/strncat (configure.ac): ... to here.
31150 2011-05-22  Bruno Haible  <bruno@clisp.org>
31152         strdup, strdup-posix: Move AC_LIBOBJ invocations to module description.
31153         * m4/strdup.m4 (gl_FUNC_STRDUP): Move AC_LIBOBJ and gl_PREREQ_STRDUP
31154         invocations from here...
31155         * modules/strdup (configure.ac): ... to here.
31156         * modules/strdup-posix (configure.ac): ... and here.
31158 2011-05-22  Bruno Haible  <bruno@clisp.org>
31160         strcspn: Move AC_LIBOBJ invocations to module description.
31161         * m4/strcspn.m4 (gl_FUNC_STRCSPN): Call AC_CHECK_FUNCS instead of
31162         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRCSPN invocations from
31163         here...
31164         * modules/strcspn (configure.ac): ... to here.
31166 2011-05-22  Bruno Haible  <bruno@clisp.org>
31168         strchrnul: Move AC_LIBOBJ invocations to module description.
31169         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Move AC_LIBOBJ and
31170         gl_PREREQ_STRCHRNUL invocations from here...
31171         * modules/strchrnul (configure.ac): ... to here.
31173 2011-05-22  Bruno Haible  <bruno@clisp.org>
31175         strcasestr*: Move AC_LIBOBJ invocations to module description.
31176         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
31177         Move AC_LIBOBJ and gl_PREREQ_STRCASESTR invocations from here...
31178         * modules/strcasestr-simple (configure.ac): ... to here.
31179         * modules/strcasestr (configure.ac): ... and here.
31181 2011-05-22  Bruno Haible  <bruno@clisp.org>
31183         strcase: Move AC_LIBOBJ invocations to module description.
31184         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Set HAVE_STRNCASECMP.
31185         (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Call AC_CHECK_FUNCS instead
31186         of AC_REPLACE_FUNCS. Move AC_LIBOBJ, gl_PREREQ_STRCASECMP,
31187         gl_PREREQ_STRNCASECMP invocations from here...
31188         * modules/strcase (configure.ac): ... to here.
31190 2011-05-22  Bruno Haible  <bruno@clisp.org>
31192         stpncpy: Move AC_LIBOBJ invocations to module description.
31193         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Move AC_LIBOBJ invocations from
31194         here...
31195         * modules/stpncpy (configure.ac): ... to here.
31197 2011-05-22  Bruno Haible  <bruno@clisp.org>
31199         stpcpy: Move AC_LIBOBJ invocations to module description.
31200         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Call AC_CHECK_FUNCS instead of
31201         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STPCPY invocations from
31202         here...
31203         * modules/stpcpy (configure.ac): ... to here.
31205 2011-05-21  Bruno Haible  <bruno@clisp.org>
31207         stat: Move AC_LIBOBJ invocations to module description.
31208         * m4/stat.m4 (gl_PREREQ_STAT): New macro, extracted from gl_FUNC_STAT.
31209         (gl_FUNC_STAT): Move AC_LIBOBJ and gl_PREREQ_STAT invocations from
31210         here...
31211         * modules/stat (configure.ac): ... to here.
31213 2011-05-21  Bruno Haible  <bruno@clisp.org>
31215         sleep: Move AC_LIBOBJ invocations to module description.
31216         * m4/sleep.m4 (gl_FUNC_SLEEP): Move AC_LIBOBJ invocations from here...
31217         * modules/sleep (configure.ac): ... to here.
31219 2011-05-21  Bruno Haible  <bruno@clisp.org>
31221         signbit: Move AC_LIBOBJ invocations to module description.
31222         * m4/signbit.m4 (gl_SIGNBIT): Move AC_LIBOBJ invocations from here...
31223         * modules/signbit (configure.ac): ... to here.
31225 2011-05-21  Bruno Haible  <bruno@clisp.org>
31227         sigprocmask: Move AC_LIBOBJ invocations to module description.
31228         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Move AC_LIBOBJ and
31229         gl_PREREQ_SIGPROMASK invocations from here...
31230         * modules/sigprocmask (configure.ac): ... to here.
31232 2011-05-21  Bruno Haible  <bruno@clisp.org>
31234         sigaction: Move AC_LIBOBJ invocations to module description.
31235         * m4/sigaction.m4 (gl_SIGACTION): Move AC_LIBOBJ and
31236         gl_PREREQ_SIGACTION invocations from here...
31237         * modules/sigaction (configure.ac): ... to here.
31239 2011-05-21  Bruno Haible  <bruno@clisp.org>
31241         sig2str: Move AC_LIBOBJ invocations to module description.
31242         * m4/sig2str.m4 (gl_FUNC_SIG2STR): Call AC_CHECK_FUNCS instead of
31243         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_SIG2STR invocations from
31244         here...
31245         * modules/sig2str (configure.ac): ... to here.
31247 2011-05-21  Bruno Haible  <bruno@clisp.org>
31249         setlocale: Move AC_LIBOBJ invocations to module description.
31250         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Move AC_LIBOBJ and
31251         gl_PREREQ_SETLOCALE invocations from here...
31252         * modules/setlocale (configure.ac): ... to here.
31254 2011-05-21  Bruno Haible  <bruno@clisp.org>
31256         unsetenv: Move AC_LIBOBJ invocations to module description.
31257         * m4/setenv.m4 (gl_FUNC_UNSETENV): Set HAVE_UNSETENV. Move AC_LIBOBJ
31258         and gl_PREREQ_UNSETENV invocations from here...
31259         * modules/unsetenv (configure.ac): ... to here.
31260         (Depends-on): Update.
31262 2011-05-21  Bruno Haible  <bruno@clisp.org>
31264         setenv: Move AC_LIBOBJ invocations to module description.
31265         * m4/setenv.m4 (gl_FUNC_SETENV): Move AC_LIBOBJ invocations from
31266         here...
31267         * modules/setenv (configure.ac): ... to here.
31269 2011-05-21  Bruno Haible  <bruno@clisp.org>
31271         selinux-h: Move AC_LIBOBJ invocations to module description.
31272         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Move
31273         AC_LIBOBJ invocation from here...
31274         * modules/selinux-h (configure.ac): ... to here.
31276 2011-05-21  Bruno Haible  <bruno@clisp.org>
31278         select: Respect rules for use of AC_LIBOBJ.
31279         * m4/select.m4 (gl_FUNC_SELECT): Move AC_LIBOBJ invocations from
31280         here...
31281         * modules/select (configure.ac): ... to here.
31283 2011-05-21  Bruno Haible  <bruno@clisp.org>
31285         scandir: Move AC_LIBOBJ invocations to module description.
31286         * m4/scandir.m4 (gl_FUNC_SCANDIR): Move AC_LIBOBJ and gl_PREREQ_SCANDIR
31287         invocations from here...
31288         * modules/scandir (configure.ac): ... to here.
31290 2011-05-21  Bruno Haible  <bruno@clisp.org>
31292         rpmatch: Move AC_LIBOBJ invocations to module description.
31293         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Call AC_CHECK_FUNCS instead of
31294         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RPMATCH invocations from
31295         here...
31296         * modules/rpmatch (configure.ac): ... to here.
31298 2011-05-21  Bruno Haible  <bruno@clisp.org>
31300         rmdir: Respect rules for use of AC_LIBOBJ.
31301         * m4/rmdir.m4 (gl_FUNC_RMDIR): Move AC_LIBOBJ invocation from here...
31302         * modules/rmdir (configure.ac): ... to here.
31304 2011-05-21  Bruno Haible  <bruno@clisp.org>
31306         renameat: Move AC_LIBOBJ invocations to module description.
31307         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Move AC_LIBOBJ invocations from
31308         here...
31309         * modules/renameat (configure.ac): ... to here.
31311 2011-05-21  Bruno Haible  <bruno@clisp.org>
31313         rename: Respect rules for use of AC_LIBOBJ.
31314         * m4/rename.m4 (gl_FUNC_RENAME): Move AC_LIBOBJ invocations from
31315         here...
31316         * modules/rename (configure.ac): ... to here.
31318 2011-05-21  Bruno Haible  <bruno@clisp.org>
31320         remove: Move AC_LIBOBJ invocations to module description.
31321         * m4/remove.m4 (gl_FUNC_REMOVE): Move AC_LIBOBJ invocations from
31322         here...
31323         * modules/remove (configure.ac): ... to here.
31325 2011-05-21  Bruno Haible  <bruno@clisp.org>
31327         relocatable-lib: Move AC_LIBOBJ invocations to module description.
31328         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_SEPARATE): Remove
31329         macro.
31330         (gl_RELOCATABLE_LIBRARY): Move AC_LIBOBJ invocation from here...
31331         * modules/relocatable-lib (configure.ac): ... to here.
31332         * modules/relocatable-prog-wrapper (configure.ac): Invoke
31333         gl_RELOCATABLE_LIBRARY instead of gl_RELOCATABLE_LIBRARY_SEPARATE.
31335 2011-05-21  Bruno Haible  <bruno@clisp.org>
31337         relocatable-prog: Move AC_LIBOBJ invocations to module description.
31338         * m4/relocatable.m4 (gl_RELOCATABLE): Move AC_LIBOBJ invocation from
31339         here...
31340         * modules/relocatable-prog (configure.ac): ... to here.
31342 2011-05-21  Bruno Haible  <bruno@clisp.org>
31344         regex: Move AC_LIBOBJ invocations to module description.
31345         * m4/regex.m4 (gl_REGEX): Move AC_LIBOBJ and gl_PREREQ_REGEX
31346         invocations from here...
31347         * modules/regex (configure.ac): ... to here.
31349 2011-05-21  Bruno Haible  <bruno@clisp.org>
31351         realloc-*: Move AC_LIBOBJ invocations to module description.
31352         * m4/realloc.m4 (gl_REPLACE_REALLOC): Remove macro.
31353         (gl_FUNC_REALLOC_GNU, gl_FUNC_REALLOC_POSIX): Inline it here. Move
31354         AC_LIBOBJ invocations from here...
31355         * modules/realloc-gnu (configure.ac): ... to here.
31356         * modules/realloc-posix (configure.ac): ... and here.
31358 2011-05-21  Bruno Haible  <bruno@clisp.org>
31360         readutmp: Move AC_LIBOBJ invocations to module description.
31361         * m4/readutmp.m4 (gl_READUTMP): Move AC_LIBOBJ invocation from here...
31362         * modules/readutmp (configure.ac): ... to here.
31364 2011-05-21  Bruno Haible  <bruno@clisp.org>
31366         readlinkat: Move AC_LIBOBJ invocations to module description.
31367         * m4/readlinkat.m4 (gl_FUNC_READLINKAT): Move AC_LIBOBJ invocation from
31368         here...
31369         * modules/readlinkat (configure.ac): ... to here.
31371 2011-05-21  Bruno Haible  <bruno@clisp.org>
31373         readlink: Move AC_LIBOBJ invocations to module description.
31374         * m4/readlink.m4 (gl_FUNC_READLINK): Move AC_LIBOBJ and
31375         gl_PREREQ_READLINK invocations from here...
31376         * modules/readlink (configure.ac): ... to here.
31378 2011-05-21  Bruno Haible  <bruno@clisp.org>
31380         readline: Move AC_LIBOBJ invocations to module description.
31381         * m4/readline.m4 (gl_FUNC_READLINE): Move AC_LIBOBJ and
31382         gl_PREREQ_READLINE invocations from here...
31383         * modules/readline (configure.ac): ... to here.
31385 2011-05-21  Bruno Haible  <bruno@clisp.org>
31387         read: Move AC_LIBOBJ invocations to module description.
31388         * m4/read.m4 (gl_FUNC_READ): Move AC_LIBOBJ invocation from here...
31389         * modules/read (configure.ac): ... to here.
31391 2011-05-21  Bruno Haible  <bruno@clisp.org>
31393         rawmemchr: Move AC_LIBOBJ invocations to module description.
31394         * m4/rawmemchr.m4 (gl_FUNC_RAWMEMCHR): Call AC_CHECK_FUNCS instead of
31395         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RAWMEMCHR invocations
31396         from here...
31397         * modules/rawmemchr (configure.ac): ... to here.
31399 2011-05-21  Bruno Haible  <bruno@clisp.org>
31401         random_r: Move AC_LIBOBJ invocations to module description.
31402         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move AC_LIBOBJ and
31403         gl_PREREQ_RANDOM_R invocations from here...
31404         * modules/random_r (configure.ac): ... to here.
31406 2011-05-21  Bruno Haible  <bruno@clisp.org>
31408         pwrite: Move AC_LIBOBJ invocations to module description.
31409         * m4/pwrite.m4 (gl_FUNC_PWRITE): Move AC_LIBOBJ invocation from here...
31410         * modules/pwrite (configure.ac): ... to here.
31412 2011-05-21  Bruno Haible  <bruno@clisp.org>
31414         putenv: Move AC_LIBOBJ invocations to module description.
31415         * m4/putenv.m4 (gl_FUNC_PUTENV): Move AC_LIBOBJ invocation from here...
31416         * modules/putenv (configure.ac): ... to here.
31418 2011-05-21  Bruno Haible  <bruno@clisp.org>
31420         login_tty: Move AC_LIBOBJ invocations to module description.
31421         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Move AC_LIBOBJ invocation from here...
31422         * modules/login_tty (configure.ac): ... to here.
31424 2011-05-21  Bruno Haible  <bruno@clisp.org>
31426         openpty: Move AC_LIBOBJ invocations to module description.
31427         * m4/pty.m4 (gl_FUNC_OPENPTY): Move AC_LIBOBJ invocations from here...
31428         * modules/openpty (configure.ac): ... to here.
31430 2011-05-21  Bruno Haible  <bruno@clisp.org>
31432         forkpty: Move AC_LIBOBJ invocations to module description.
31433         * m4/pty.m4 (gl_FUNC_FORKPTY): Move AC_LIBOBJ invocations from here...
31434         * modules/forkpty (configure.ac): ... to here.
31436 2011-05-21  Bruno Haible  <bruno@clisp.org>
31438         ptsname: Move AC_LIBOBJ invocations to module description.
31439         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Move AC_LIBOBJ and gl_PREREQ_PTSNAME
31440         invocations from here...
31441         * modules/ptsname (configure.ac): ... to here.
31443 2011-05-21  Bruno Haible  <bruno@clisp.org>
31445         pread: Move AC_LIBOBJ invocations to module description.
31446         * m4/pread.m4 (gl_FUNC_PREAD): Move AC_LIBOBJ invocation from here...
31447         * modules/pread (configure.ac): ... to here.
31449 2011-05-21  Bruno Haible  <bruno@clisp.org>
31451         posix_spawn*: Move AC_LIBOBJ invocations to module description.
31452         * m4/posix_spawn.m4 (gl_PREREQ_POSIX_SPAWN_INTERNAL): Renamed from
31453         gl_POSIX_SPAWN_INTERNAL. Move AC_LIBOBJ invocation from here...
31454         * modules/posix_spawn (configure.ac): ... to here.
31455         * modules/posix_spawnp (configure.ac): ... and here.
31457 2011-05-21  Bruno Haible  <bruno@clisp.org>
31459         popen: Move AC_LIBOBJ invocations to module description.
31460         * m4/popen.m4 (gl_FUNC_POPEN): Move AC_LIBOBJ and gl_PREREQ_POPEN
31461         invocations from here...
31462         * modules/popen (configure.ac): ... to here.
31464 2011-05-21  Bruno Haible  <bruno@clisp.org>
31466         poll: Move AC_LIBOBJ invocations to module description.
31467         * m4/poll.m4 (gl_FUNC_POLL): Move AC_LIBOBJ and gl_PREREQ_POLL
31468         invocations from here...
31469         * modules/poll (configure.ac): ... to here.
31471 2011-05-21  Bruno Haible  <bruno@clisp.org>
31473         pipe-posix: Move AC_LIBOBJ invocations to module description.
31474         * m4/pipe.m4 (gl_FUNC_PIPE): Move AC_LIBOBJ invocation from here...
31475         * modules/pipe-posix (configure.ac): ... to here.
31477 2011-05-21  Bruno Haible  <bruno@clisp.org>
31479         openat: Respect rules for use of AC_LIBOBJ.
31480         * m4/openat.m4 (gl_FUNC_OPENAT): Call AC_CHECK_FUNCS instead of
31481         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
31482         * modules/openat (configure.ac): ... to here.
31484 2011-05-21  Bruno Haible  <bruno@clisp.org>
31486         obstack-printf*: Move AC_LIBOBJ invocations to module description.
31487         * m4/obstack-printf.m4 (gl_REPLACE_OBSTACK_PRINTF): Move AC_LIBOBJ
31488         invocation from here...
31489         * modules/obstack-printf (configure.ac): ... to here.
31490         * modules/obstack-printf-posix (configure.ac): ... and here.
31492 2011-05-21  Bruno Haible  <bruno@clisp.org>
31494         nl_langinfo: Move AC_LIBOBJ invocations to module description.
31495         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Move AC_LIBOBJ invocations
31496         from here...
31497         * modules/nl_langinfo (configure.ac): ... to here.
31499 2011-05-21  Bruno Haible  <bruno@clisp.org>
31501         nanosleep: Move AC_LIBOBJ invocations to module description.
31502         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Move AC_LIBOBJ and
31503         gl_PREREQ_NANOSLEEP invocations from here...
31504         * modules/nanosleep (configure.ac): ... to here.
31506 2011-05-21  Bruno Haible  <bruno@clisp.org>
31508         mountlist: Move AC_LIBOBJ invocations to module description.
31509         * m4/mountlist.m4 (gl_MOUNTLIST): Move AC_LIBOBJ and
31510         gl_PREREQ_MOUNTLIST_EXTRA invocations from here...
31511         * modules/mountlist (configure.ac): ... to here.
31513 2011-05-21  Bruno Haible  <bruno@clisp.org>
31515         mktime: Respect rules for use of AC_LIBOBJ.
31516         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove macro.
31517         (gl_FUNC_MKTIME): Inline it here. Set gl_cv_func_working_mktime. Move
31518         AC_LIBOBJ and gl_PREREQ_MKTIME invocations from here...
31519         (gl_FUNC_MKTIME_INTERNAL): ... and here...
31520         * modules/mktime (configure.ac): ... to here.
31521         * modules/mktime-internal (configure.ac): ... and here.
31522         * m4/timegm.m4 (gl_FUNC_TIMEGM): Update.
31524 2011-05-21  Bruno Haible  <bruno@clisp.org>
31526         mkstemps: Move AC_LIBOBJ invocations to module description.
31527         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Move AC_LIBOBJ invocation from
31528         here...
31529         * modules/mkstemps (configure.ac): ... to here.
31531 2011-05-21  Bruno Haible  <bruno@clisp.org>
31533         mkstemp: Move AC_LIBOBJ invocations to module description.
31534         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Move AC_LIBOBJ and
31535         gl_PREREQ_MKSTEMP invocations from here...
31536         * modules/mkstemp (configure.ac): ... to here.
31538 2011-05-21  Bruno Haible  <bruno@clisp.org>
31540         mkostemps: Move AC_LIBOBJ invocations to module description.
31541         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Move AC_LIBOBJ invocation from
31542         here...
31543         * modules/mkostemps (configure.ac): ... to here.
31545 2011-05-21  Bruno Haible  <bruno@clisp.org>
31547         mkostemp: Move AC_LIBOBJ invocations to module description.
31548         * m4/mkostemp.m4 (gl_FUNC_MKOSTEMP): Move AC_LIBOBJ and
31549         gl_PREREQ_MKOSTEMP invocations from here...
31550         * modules/mkostemp (configure.ac): ... to here.
31552 2011-05-21  Bruno Haible  <bruno@clisp.org>
31554         mknod: Move AC_LIBOBJ invocations to module description.
31555         * m4/mknod.m4 (gl_FUNC_MKNOD): Move AC_LIBOBJ invocations from here...
31556         * modules/mknod (configure.ac): ... to here.
31558 2011-05-21  Bruno Haible  <bruno@clisp.org>
31560         mkfifoat: Move AC_LIBOBJ invocations to module description.
31561         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Move AC_LIBOBJ invocations from
31562         here...
31563         * modules/mkfifoat (configure.ac): ... to here.
31565 2011-05-21  Bruno Haible  <bruno@clisp.org>
31567         mkfifo: Respect rules for use of AC_LIBOBJ.
31568         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Move AC_LIBOBJ invocations from
31569         here...
31570         * modules/mkfifo (configure.ac): ... to here.
31572 2011-05-21  Bruno Haible  <bruno@clisp.org>
31574         mkdtemp: Move AC_LIBOBJ invocations to module description.
31575         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Move AC_LIBOBJ and gl_PREREQ_MKDTEMP
31576         invocations from here...
31577         * modules/mkdtemp (configure.ac): ... to here.
31579 2011-05-21  Bruno Haible  <bruno@clisp.org>
31581         mkdir: Move AC_LIBOBJ invocations to module description.
31582         * m4/mkdir.m4 (gl_FUNC_MKDIR): Move AC_LIBOBJ invocations from here...
31583         * modules/mkdir (configure.ac): ... to here.
31585 2011-05-21  Bruno Haible  <bruno@clisp.org>
31587         memset: Move AC_LIBOBJ invocations to module description.
31588         * m4/memset.m4 (gl_FUNC_MEMSET): Call AC_CHECK_FUNCS instead of
31589         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMSET invocations from
31590         here...
31591         * modules/memset (configure.ac): ... to here.
31593 2011-05-21  Bruno Haible  <bruno@clisp.org>
31595         memrchr: Move AC_LIBOBJ invocations to module description.
31596         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Call AC_CHECK_FUNCS instead of
31597         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMRCHR invocations from
31598         here...
31599         * modules/memrchr (configure.ac): ... to here.
31601 2011-05-21  Bruno Haible  <bruno@clisp.org>
31603         mempcpy: Move AC_LIBOBJ invocations to module description.
31604         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Call AC_CHECK_FUNCS instead of
31605         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMPCPY invocations from
31606         here...
31607         * modules/mempcpy (configure.ac): ... to here.
31609 2011-05-21  Bruno Haible  <bruno@clisp.org>
31611         memmove: Move AC_LIBOBJ invocations to module description.
31612         * m4/memmove.m4 (gl_FUNC_MEMMOVE): Call AC_CHECK_FUNCS instead of
31613         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMMOVE invocations from
31614         here...
31615         * modules/memmove (configure.ac): ... to here.
31617 2011-05-21  Bruno Haible  <bruno@clisp.org>
31619         memmem*: Move AC_LIBOBJ invocations to module description.
31620         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Call AC_CHECK_FUNCS instead of
31621         AC_REPLACE_FUNCS. Set HAVE_MEMMEM. Move AC_LIBOBJ invocations from
31622         here...
31623         (gl_FUNC_MEMMEM): ... and here...
31624         * modules/memmem-simple (configure.ac): ... to here.
31625         * modules/memmem (configure.ac): ... and here.
31627 2011-05-21  Bruno Haible  <bruno@clisp.org>
31629         memcpy: Move AC_LIBOBJ invocations to module description.
31630         * m4/memcpy.m4 (gl_FUNC_MEMCPY): Call AC_CHECK_FUNCS instead of
31631         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMCPY invocations from
31632         here...
31633         * modules/memcpy (configure.ac): ... to here.
31635 2011-05-21  Bruno Haible  <bruno@clisp.org>
31637         memcmp: Simplify autoconf macro.
31638         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Merge the cross-compilation code into
31639         the AC_RUN_IFELSE invocation. Set gl_func_memcmp.
31640         * modules/memcmp (Depends-on, configure.ac): Test gl_func_memcmp.
31642 2011-05-21  Bruno Haible  <bruno@clisp.org>
31644         memcmp: Move AC_LIBOBJ invocations to module description.
31645         * m4/memcmp.m4 (AC_FUNC_MEMCMP): Remove macro.
31646         (gl_FUNC_MEMCMP): Inline it here. Set gl_cv_func_memcmp_working. Move
31647         AC_LIBOBJ and gl_PREREQ_MEMCMP invocations from here...
31648         * modules/memcmp (configure.ac): ... to here.
31649         (Depends-on): Update conditions.
31651 2011-05-21  Bruno Haible  <bruno@clisp.org>
31653         memchr: Respect rules for use of AC_LIBOBJ.
31654         * m4/memchr.m4 (gl_FUNC_MEMCHR): Move AC_LIBOBJ and gl_PREREQ_MEMCHR
31655         invocations from here...
31656         * modules/memchr (configure.ac): ... to here.
31658 2011-05-21  Bruno Haible  <bruno@clisp.org>
31660         mbtowc: Move AC_LIBOBJ invocations to module description.
31661         * m4/mbtowc.m4 (gl_FUNC_MBTOWC): Move AC_LIBOBJ and gl_PREREQ_MBTOWC
31662         invocations from here...
31663         * modules/mbtowc (configure.ac): ... to here.
31665 2011-05-21  Bruno Haible  <bruno@clisp.org>
31667         mbsrtowcs: Move AC_LIBOBJ invocations to module description.
31668         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Move AC_LIBOBJ and
31669         gl_PREREQ_MBSRTOWCS invocations from here...
31670         * modules/mbsrtowcs (configure.ac): ... to here.
31672 2011-05-21  Bruno Haible  <bruno@clisp.org>
31674         mbsnrtowcs: Move AC_LIBOBJ invocations to module description.
31675         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): Move AC_LIBOBJ and
31676         gl_PREREQ_MBSNRTOWCS invocations from here...
31677         * modules/mbsnrtowcs (configure.ac): ... to here.
31679 2011-05-21  Bruno Haible  <bruno@clisp.org>
31681         mbsinit: Move AC_LIBOBJ invocations to module description.
31682         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Move AC_LIBOBJ and gl_PREREQ_MBSINIT
31683         invocations from here...
31684         * modules/mbsinit (configure.ac): ... to here.
31686 2011-05-21  Bruno Haible  <bruno@clisp.org>
31688         mbrlen: Move AC_LIBOBJ invocations to module description.
31689         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Move AC_LIBOBJ and gl_PREREQ_MBRLEN
31690         invocations from here...
31691         * modules/mbrlen (configure.ac): ... to here.
31693 2011-05-21  Bruno Haible  <bruno@clisp.org>
31695         mbrtowc: Respect rules for use of AC_LIBOBJ.
31696         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Move AC_LIBOBJ and gl_PREREQ_MBRTOWC
31697         invocations from here...
31698         * modules/mbrtowc (configure.ac): ... to here.
31700 2011-05-21  Bruno Haible  <bruno@clisp.org>
31702         malloc-*: Move AC_LIBOBJ invocations to module description.
31703         * m4/malloc.m4 (gl_REPLACE_MALLOC): Remove macro.
31704         (gl_FUNC_MALLOC_GNU, gl_FUNC_MALLOC_POSIX): Inline it here. Move
31705         AC_LIBOBJ invocations from here...
31706         * modules/malloc-gnu (configure.ac): ... to here.
31707         * modules/malloc-posix (configure.ac): ... and here.
31709 2011-05-21  Bruno Haible  <bruno@clisp.org>
31711         lstat, openat: Respect rules for use of AC_LIBOBJ.
31712         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Renamed from
31713         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK. Set variable
31714         gl_cv_func_lstat_dereferences_slashed_symlink. Don't invoke AC_LIBOBJ.
31715         (gl_PREREQ_LSTAT): New macro, extracted from gl_FUNC_LSTAT.
31716         (gl_FUNC_LSTAT): Update. Remove gl_PREREQ_LSTAT code.
31717         * modules/lstat (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_LSTAT
31718         here.
31719         * m4/openat.m4 (gl_FUNC_OPENAT): Update.
31721 2011-05-21  Bruno Haible  <bruno@clisp.org>
31723         lseek: Move AC_LIBOBJ invocations to module description.
31724         * m4/lseek.m4 (gl_REPLACE_LSEEK): Remove macro.
31725         (gl_FUNC_LSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
31726         * modules/lseek (configure.ac): ... to here.
31728 2011-05-21  Bruno Haible  <bruno@clisp.org>
31730         linkat: Move AC_LIBOBJ invocations to module description.
31731         * m4/linkat.m4 (gl_FUNC_LINKAT): Move AC_LIBOBJ invocations from
31732         here...
31733         * modules/linkat (configure.ac): ... to here.
31735 2011-05-21  Bruno Haible  <bruno@clisp.org>
31737         link: Respect rules for use of AC_LIBOBJ.
31738         * m4/link.m4 (gl_FUNC_LINK): Move AC_LIBOBJ invocations from here...
31739         * modules/link (configure.ac): ... to here.
31741 2011-05-21  Bruno Haible  <bruno@clisp.org>
31743         lchown: Move AC_LIBOBJ invocations to module description.
31744         * m4/lchown.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
31745         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
31746         * modules/lchown (configure.ac): ... to here.
31748 2011-05-21  Bruno Haible  <bruno@clisp.org>
31750         iswctype: Move AC_LIBOBJ invocations to module description.
31751         * m4/iswctype.m4 (gl_FUNC_ISWCTYPE): Move AC_LIBOBJ invocation from
31752         here...
31753         * modules/iswctype (configure.ac): ... to here.
31755 2011-05-21  Bruno Haible  <bruno@clisp.org>
31757         iswblank: Move AC_LIBOBJ invocations to module description.
31758         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Move AC_LIBOBJ invocation from
31759         here...
31760         * modules/iswblank (configure.ac): ... to here.
31762 2011-05-21  Bruno Haible  <bruno@clisp.org>
31764         atanl: Move AC_LIBOBJ invocations to module description.
31765         * m4/atanl.m4 (gl_FUNC_ATANL): Move AC_LIBOBJ invocation from here...
31766         * modules/atanl (configure.ac): ... to here.
31768 2011-05-21  Bruno Haible  <bruno@clisp.org>
31770         acosl: Move AC_LIBOBJ invocations to module description.
31771         * m4/acosl.m4 (gl_FUNC_ACOSL): Move AC_LIBOBJ invocation from here...
31772         * modules/acosl (configure.ac): ... to here.
31774 2011-05-21  Bruno Haible  <bruno@clisp.org>
31776         asinl: Respect rules for use of AC_LIBOBJ.
31777         * m4/asinl.m4 (gl_FUNC_ASINL): Move AC_LIBOBJ invocation from here...
31778         * modules/asinl (configure.ac): ... to here.
31780 2011-05-21  Bruno Haible  <bruno@clisp.org>
31782         tanl: Move AC_LIBOBJ invocations to module description.
31783         * m4/tanl.m4 (gl_FUNC_TANL): Move AC_LIBOBJ invocations from here...
31784         * modules/tanl (configure.ac): ... to here.
31786 2011-05-21  Bruno Haible  <bruno@clisp.org>
31788         cosl: Move AC_LIBOBJ invocations to module description.
31789         * m4/cosl.m4 (gl_FUNC_COSL): Move AC_LIBOBJ invocations from here...
31790         * modules/cosl (configure.ac): ... to here.
31792 2011-05-21  Bruno Haible  <bruno@clisp.org>
31794         sinl: Move AC_LIBOBJ invocations to module description.
31795         * m4/sinl.m4 (gl_FUNC_SINL): Move AC_LIBOBJ invocations from here...
31796         * modules/sinl (configure.ac): ... to here.
31798 2011-05-21  Bruno Haible  <bruno@clisp.org>
31800         logl: Move AC_LIBOBJ invocations to module description.
31801         * m4/logl.m4 (gl_FUNC_LOGL): Move AC_LIBOBJ invocation from here...
31802         * modules/logl (configure.ac): ... to here.
31804 2011-05-21  Bruno Haible  <bruno@clisp.org>
31806         expl: Move AC_LIBOBJ invocations to module description.
31807         * m4/expl.m4 (gl_FUNC_EXPL): Move AC_LIBOBJ invocation from here...
31808         * modules/expl (configure.ac): ... to here.
31810 2011-05-21  Bruno Haible  <bruno@clisp.org>
31812         roundl: Move AC_LIBOBJ invocations to module description.
31813         * m4/roundl.m4 (gl_FUNC_ROUNDL): Move AC_LIBOBJ invocation from here...
31814         * modules/roundl (configure.ac): ... to here.
31816 2011-05-21  Bruno Haible  <bruno@clisp.org>
31818         round: Move AC_LIBOBJ invocations to module description.
31819         * m4/round.m4 (gl_FUNC_ROUND): Move AC_LIBOBJ invocation from here...
31820         * modules/round (configure.ac): ... to here.
31822 2011-05-21  Bruno Haible  <bruno@clisp.org>
31824         roundf: Move AC_LIBOBJ invocations to module description.
31825         * m4/roundf.m4 (gl_FUNC_ROUNDF): Move AC_LIBOBJ invocation from here...
31826         * modules/roundf (configure.ac): ... to here.
31828 2011-05-21  Bruno Haible  <bruno@clisp.org>
31830         truncl: Move AC_LIBOBJ invocations to module description.
31831         * m4/truncl.m4 (gl_FUNC_TRUNCL): Move AC_LIBOBJ invocation from here...
31832         * modules/truncl (configure.ac): ... to here.
31834 2011-05-21  Bruno Haible  <bruno@clisp.org>
31836         trunc: Move AC_LIBOBJ invocations to module description.
31837         * m4/trunc.m4 (gl_FUNC_TRUNC): Move AC_LIBOBJ invocation from here...
31838         * modules/trunc (configure.ac): ... to here.
31840 2011-05-21  Bruno Haible  <bruno@clisp.org>
31842         truncf: Move AC_LIBOBJ invocations to module description.
31843         * m4/truncf.m4 (gl_FUNC_TRUNCF): Move AC_LIBOBJ invocation from here...
31844         * modules/truncf (configure.ac): ... to here.
31846 2011-05-21  Bruno Haible  <bruno@clisp.org>
31848         ceill: Move AC_LIBOBJ invocations to module description.
31849         * m4/ceill.m4 (gl_FUNC_CEILL): Move AC_LIBOBJ invocation from here...
31850         * modules/ceill (configure.ac): ... to here.
31852 2011-05-21  Bruno Haible  <bruno@clisp.org>
31854         ceil: Move AC_LIBOBJ invocations to module description.
31855         * m4/ceil.m4 (gl_FUNC_CEIL): Move AC_LIBOBJ invocation from here...
31856         * modules/ceil (configure.ac): ... to here.
31858 2011-05-21  Bruno Haible  <bruno@clisp.org>
31860         ceilf: Move AC_LIBOBJ invocations to module description.
31861         * m4/ceilf.m4 (gl_FUNC_CEILF): Move AC_LIBOBJ invocation from here...
31862         * modules/ceilf (configure.ac): ... to here.
31864 2011-05-21  Bruno Haible  <bruno@clisp.org>
31866         floorl: Respect rules for use of AC_LIBOBJ.
31867         * m4/floorl.m4 (gl_FUNC_FLOORL): Move AC_LIBOBJ invocation from here...
31868         * modules/floorl (configure.ac): ... to here.
31870 2011-05-21  Bruno Haible  <bruno@clisp.org>
31872         floor: Respect rules for use of AC_LIBOBJ.
31873         * m4/floor.m4 (gl_FUNC_FLOOR): Move AC_LIBOBJ invocation from here...
31874         * modules/floor (configure.ac): ... to here.
31876 2011-05-21  Bruno Haible  <bruno@clisp.org>
31878         floorf: Move AC_LIBOBJ invocations to module description.
31879         * m4/floorf.m4 (gl_FUNC_FLOORF): Move AC_LIBOBJ invocation from here...
31880         * modules/floorf (configure.ac): ... to here.
31882 2011-05-20  Bruno Haible  <bruno@clisp.org>
31884         sqrtl: Respect rules for use of AC_LIBOBJ.
31885         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Move AC_LIBOBJ invocation from here...
31886         * modules/sqrtl (configure.ac): ... to here.
31888 2011-05-20  Bruno Haible  <bruno@clisp.org>
31890         ldexpl: Respect rules for use of AC_LIBOBJ.
31891         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Move AC_LIBOBJ invocation from here...
31892         * modules/ldexpl (configure.ac): ... to here.
31894 2011-05-20  Bruno Haible  <bruno@clisp.org>
31896         frexpl*: Respect rules for use of AC_LIBOBJ.
31897         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Move AC_LIBOBJ
31898         invocation from here...
31899         * modules/frexpl (configure.ac): ... to here.
31900         * modules/frexpl-nolibm (configure.ac): ... and here.
31902 2011-05-20  Bruno Haible  <bruno@clisp.org>
31904         frexp, frexp-nolibm: Move AC_LIBOBJ invocations to module description.
31905         * m4/frexp.m4 (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Move AC_LIBOBJ
31906         invocation from here...
31907         * modules/frexp (configure.ac): ... to here.
31908         * modules/frexp-nolibm (configure.ac): ... and here.
31910 2011-05-20  Bruno Haible  <bruno@clisp.org>
31912         isnan: Respect rules for use of AC_LIBOBJ.
31913         * m4/isnan.m4 (gl_ISNAN): Don't do the AC_LIBOBJ and gl_PREREQ_ISNAN*
31914         invocations here.
31915         * modules/isnanf (configure.ac): Require gl_ISNAN if it exists. Test
31916         REPLACE_ISNAN.
31917         * modules/isnand (configure.ac): Likewise.
31918         * modules/isnanl (configure.ac): Likewise.
31920 2011-05-20  Bruno Haible  <bruno@clisp.org>
31922         isnanl*: Respect rules for use of AC_LIBOBJ.
31923         * m4/isnanl.m4 (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Move AC_LIBOBJ
31924         invocation from here...
31925         * modules/isnanl (configure.ac): ... to here.
31926         * modules/isnanl-nolibm (configure.ac): ... and here.
31928 2011-05-20  Bruno Haible  <bruno@clisp.org>
31930         isnand*: Move AC_LIBOBJ invocations to module description.
31931         * m4/isnand.m4 (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Move AC_LIBOBJ
31932         invocation from here...
31933         * modules/isnand (configure.ac): ... to here.
31934         * modules/isnand-nolibm (configure.ac): ... and here.
31936 2011-05-20  Bruno Haible  <bruno@clisp.org>
31938         isnanf*: Move AC_LIBOBJ invocations to module description.
31939         * m4/isnanf.m4 (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Move AC_LIBOBJ
31940         invocation from here...
31941         * modules/isnanf (configure.ac): ... to here.
31942         * modules/isnanf-nolibm (configure.ac): ... and here.
31944 2011-05-20  Bruno Haible  <bruno@clisp.org>
31946         isnan*: Separate the AC_LIBOBJ invocations.
31947         * m4/isnanf.m4 (gl_PREREQ_ISNANF): Renamed from gl_BUILD_ISNANF. Remove
31948         AC_LIBOBJ invocation.
31949         (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Update. Invoke AC_LIBOBJ
31950         here.
31951         * m4/isnand.m4 (gl_PREREQ_ISNAND): Renamed from gl_BUILD_ISNAND. Remove
31952         AC_LIBOBJ invocation.
31953         (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Update. Invoke AC_LIBOBJ
31954         here.
31955         * m4/isnanl.m4 (gl_PREREQ_ISNANL): Renamed from gl_BUILD_ISNANL. Remove
31956         AC_LIBOBJ invocation.
31957         (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Update. Invoke AC_LIBOBJ
31958         here.
31959         * m4/isnan.m4 (gl_ISNAN): Update. Invoke AC_LIBOBJ here.
31961 2011-05-08  Bruno Haible  <bruno@clisp.org>
31963         isinf: Move AC_LIBOBJ invocations to module description.
31964         * m4/isinf.m4 (gl_ISINF): Move AC_LIBOBJ invocation from here...
31965         * modules/isinf (configure.ac): ... to here.
31967 2011-05-08  Bruno Haible  <bruno@clisp.org>
31969         isfinite: Move AC_LIBOBJ invocations to module description.
31970         * m4/isfinite.m4 (gl_ISFINITE): Move AC_LIBOBJ invocation from here...
31971         * modules/isfinite (configure.ac): ... to here.
31973 2011-05-08  Bruno Haible  <bruno@clisp.org>
31975         isblank: Move AC_LIBOBJ invocations to module description.
31976         * m4/isblank.m4 (gl_FUNC_ISBLANK): Move AC_LIBOBJ invocation from
31977         here...
31978         * modules/isblank (configure.ac): ... to here.
31980 2011-05-08  Bruno Haible  <bruno@clisp.org>
31982         isapipe: Move AC_LIBOBJ invocations to module description.
31983         * m4/isapipe.m4 (gl_ISAPIPE): Set HAVE_ISAPIPE. Move AC_LIBOBJ and
31984         gl_PREREQ_ISAPIPE invocations from here...
31985         * modules/isapipe (configure.ac): ... to here.
31986         (Depends-on): Update condition.
31988 2011-05-08  Bruno Haible  <bruno@clisp.org>
31990         ioctl: Move AC_LIBOBJ invocations to module description.
31991         * m4/ioctl.m4 (gl_FUNC_IOCTL): Set HAVE_IOCTL. Move AC_LIBOBJ
31992         invocations from here...
31993         * modules/ioctl (configure.ac): ... to here.
31994         (Depends-on): Update condition.
31996 2011-05-08  Bruno Haible  <bruno@clisp.org>
31998         imaxdiv: Move AC_LIBOBJ invocations to module description.
31999         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Move AC_LIBOBJ and gl_PREREQ_IMAXDIV
32000         invocations from here...
32001         * modules/imaxdiv (configure.ac): ... to here.
32003 2011-05-08  Bruno Haible  <bruno@clisp.org>
32005         imaxabs: Move AC_LIBOBJ invocations to module description.
32006         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Move AC_LIBOBJ and gl_PREREQ_IMAXABS
32007         invocations from here...
32008         * modules/imaxabs (configure.ac): ... to here.
32010 2011-05-08  Bruno Haible  <bruno@clisp.org>
32012         getaddrinfo: Move AC_LIBOBJ invocations to module description.
32013         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Set HAVE_GETADDRINFO, Move
32014         AC_LIBOBJ invocations from here...
32015         * modules/getaddrinfo (configure.ac): ... to here.
32016         (Depends-on): Add conditions.
32018 2011-05-08  Bruno Haible  <bruno@clisp.org>
32020         inet_pton. getaddrinfo: Respect rules for use of AC_LIBOBJ.
32021         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Set HAVE_INET_PTON. Call
32022         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
32023         gl_PREREQ_INET_PTON. Move tests for declaration of inet_pton here...
32024         (gl_PREREQ_INET_PTON): ... from here.
32025         * modules/inet_pton (configure.ac): Invoke AC_LIBOBJ and
32026         gl_PREREQ_INET_PTON here.
32027         (Depends-on): Update condition.
32029 2011-05-08  Bruno Haible  <bruno@clisp.org>
32031         inet_ntop. getaddrinfo: Respect rules for use of AC_LIBOBJ.
32032         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Set HAVE_INET_NTOP. Call
32033         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
32034         gl_PREREQ_INET_NTOP. Move tests for declaration of inet_ntop here...
32035         (gl_PREREQ_INET_NTOP): ... from here.
32036         * modules/inet_ntop (configure.ac): Invoke AC_LIBOBJ and
32037         gl_PREREQ_INET_NTOP here.
32038         (Depends-on): Update condition.
32040 2011-05-08  Bruno Haible  <bruno@clisp.org>
32042         iconv_open: Move AC_LIBOBJ invocations to module description.
32043         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN, gl_REPLACE_ICONV_OPEN): Move
32044         AC_LIBOBJ invocations from here...
32045         * modules/iconv_open (configure.ac): ... to here.
32047 2011-05-08  Bruno Haible  <bruno@clisp.org>
32049         iconv_open, iconv_open-utf: Respect rules for use of AC_LIBOBJ.
32050         If module 'iconv_open' is among the main modules and module
32051         'iconv_open-utf' is among the tests dependencies, then
32052         REPLACE_ICONV_UTF will be defined to 1, hence iconv_open() in lib may
32053         return the special iconv_t values. Therefore iconv() and iconv_close()
32054         must support these special iconv_t values, already in lib, not only in
32055         tests.
32056         * m4/iconv_open-utf.m4: New file, extracted from m4/iconv_open.m4.
32057         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke
32058         gl_FUNC_ICONV_OPEN_UTF_SUPPORT if present.
32059         (gl_FUNC_ICONV_OPEN_UTF): Remove macro.
32060         * modules/iconv_open (Files): Add lib/iconv.c, lib/iconv_close.c.
32061         (Depends-on): Add the dependencies of iconv_open-utf.
32062         * modules/iconv_open-utf (Files): Add m4/iconv_open-utf.m4. Remove
32063         m4/iconv_open.m4, lib/iconv.c, lib/iconv_close.c.
32064         (Depends-on): Remove modules needed by lib/iconv.c, lib/iconv_close.c.
32066 2011-05-08  Bruno Haible  <bruno@clisp.org>
32068         group-member: Move AC_LIBOBJ invocations to module description.
32069         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Move AC_LIBOBJ and
32070         gl_PREREQ_GROUP_MEMBER invocations from here...
32071         * modules/group-member (configure.ac): ... to here.
32073 2011-05-08  Bruno Haible  <bruno@clisp.org>
32075         grantpt: Move AC_LIBOBJ invocations to module description.
32076         * m4/grantpt.m4 (gl_FUNC_GRANTPT): Move AC_LIBOBJ and gl_PREREQ_GRANTPT
32077         invocations from here...
32078         * modules/grantpt (configure.ac): ... to here.
32080 2011-05-08  Bruno Haible  <bruno@clisp.org>
32082         glob: Move AC_LIBOBJ invocations to module description.
32083         * m4/glob.m4 (gl_GLOB): Move AC_LIBOBJ and gl_PREREQ_GLOB invocations
32084         from here...
32085         * modules/glob (configure.ac): ... to here.
32087 2011-05-08  Bruno Haible  <bruno@clisp.org>
32089         getusershell: Move AC_LIBOBJ invocations to module description.
32090         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Set HAVE_GETUSERSHELL.
32091         Move AC_LIBOBJ invocation from here...
32092         * modules/getusershell (configure.ac): ... to here.
32093         (Depends-on): Update condition.
32095 2011-05-08  Bruno Haible  <bruno@clisp.org>
32097         gettimeofday: Move AC_LIBOBJ invocations to module description.
32098         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
32099         gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Move AC_LIBOBJ and
32100         gl_PREREQ_GETTIMEOFDAY invocations from here...
32101         * modules/gettimeofday (configure.ac): ... to here.
32103 2011-05-08  Bruno Haible  <bruno@clisp.org>
32105         gettimeofday, tzset: Respect rules for use of AC_LIBOBJ.
32106         * modules/tzset (configure.ac): Don't invoke gl_FUNC_TZSET_CLOBBER,
32107         just gl_FUNC_TZSET.
32108         * m4/tzset.m4 (gl_FUNC_TZSET): New macro.
32109         (gl_FUNC_TZSET_CLOBBER): Remove actions.
32110         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Invoke
32111         gl_FUNC_TZSET_CLOBBER and its actions here, if present.
32113 2011-05-08  Bruno Haible  <bruno@clisp.org>
32115         getsubopt: Move AC_LIBOBJ invocations to module description.
32116         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Move AC_LIBOBJ and
32117         gl_PREREQ_GETSUBOPT invocations from here...
32118         * modules/getsubopt (configure.ac): ... to here.
32120 2011-05-08  Bruno Haible  <bruno@clisp.org>
32122         getpass-gnu: Move AC_LIBOBJ invocations to module description.
32123         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): Set REPLACE_GETPASS. Move
32124         AC_LIBOBJ and gl_PREREQ_GETPASS invocations from here...
32125         * modules/getpass-gnu (configure.ac): ... to here.
32127 2011-05-08  Bruno Haible  <bruno@clisp.org>
32129         getpass: Move AC_LIBOBJ invocations to module description.
32130         * m4/getpass.m4 (gl_FUNC_GETPASS): Set HAVE_GETPASS. Move AC_LIBOBJ and
32131         gl_PREREQ_GETPASS invocations from here...
32132         * modules/getpass (configure.ac): ... to here.
32134 2011-05-08  Bruno Haible  <bruno@clisp.org>
32136         getpagesize: Move AC_LIBOBJ invocations to module description.
32137         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Move AC_LIBOBJ invocation
32138         from here...
32139         * modules/getpagesize (configure.ac): ... to here.
32141 2011-05-08  Bruno Haible  <bruno@clisp.org>
32143         getopt: Move AC_LIBOBJ invocations to module description.
32144         * m4/getopt.m4 (gl_REPLACE_GETOPT): Remove macro.
32145         (gl_FUNC_GETOPT): Inline it here. Move AC_LIBOBJ and gl_PREREQ_GETOPT
32146         invocations from here...
32147         * modules/getopt-gnu (configure.ac): ... to here.
32148         * modules/getopt-posix (configure.ac): ... and here.
32149         (Depends-on): Update condition.
32151 2011-05-08  Bruno Haible  <bruno@clisp.org>
32153         getopt, argp: Respect rules for use of AC_LIBOBJ.
32154         * m4/argp.m4 (gl_ARGP): Don't invoke gl_REPLACE_GETOPT.
32155         (gl_REPLACE_GETOPT_ALWAYS): New macro.
32156         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Test whether
32157         gl_REPLACE_GETOPT_ALWAYS is defined. Set REPLACE_GETOPT.
32159 2011-05-08  Bruno Haible  <bruno@clisp.org>
32161         getlogin_r: Move AC_LIBOBJ invocations to module description.
32162         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Move AC_LIBOBJ and
32163         gl_PREREQ_GETLOGIN_R invocations from here...
32164         * modules/getlogin_r (configure.ac): ... to here.
32166 2011-05-08  Bruno Haible  <bruno@clisp.org>
32168         getlogin: Move AC_LIBOBJ invocations to module description.
32169         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Move AC_LIBOBJ invocation from
32170         here...
32171         * modules/getlogin (configure.ac): ... to here.
32173 2011-05-08  Bruno Haible  <bruno@clisp.org>
32175         getloadavg: Move AC_LIBOBJ invocations to module description.
32176         * m4/getloadavg.m4 (gl_FUNC_GETDELIM): Set HAVE_GETLOADAVG. Move
32177         AC_LIBOBJ and gl_PREREQ_GETLOADAVG invocations from here...
32178         * modules/getloadavg (configure.ac): ... to here.
32180 2011-05-08  Bruno Haible  <bruno@clisp.org>
32182         gethrxtime: Move AC_LIBOBJ invocations to module description.
32183         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Move code that determines
32184         LIB_GETHRXTIME from here...
32185         (gl_GETHRXTIME): ... to here. Move AC_LIBOBJ and gl_PREREQ_GETHRXTIME
32186         invocations from here...
32187         * modules/gethrxtime (configure.ac): ... to here.
32189 2011-05-08  Bruno Haible  <bruno@clisp.org>
32191         gethostname: Move AC_LIBOBJ invocations to module description.
32192         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Move AC_LIBOBJ and
32193         gl_PREREQ_GETHOSTNAME invocations from here...
32194         * modules/gethostname (configure.ac): ... to here.
32196 2011-05-08  Bruno Haible  <bruno@clisp.org>
32198         getgroups: Move AC_LIBOBJ invocations to module description.
32199         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Move AC_LIBOBJ invocations from
32200         here...
32201         * modules/getgroups (configure.ac): ... to here.
32203 2011-05-08  Bruno Haible  <bruno@clisp.org>
32205         getdtablesize: Move AC_LIBOBJ invocations to module description.
32206         * m4/getdtablesize.m4 (gl_FUNC_GETDTABLESIZE): Move AC_LIBOBJ
32207         invocation from here...
32208         * modules/getdtablesize (configure.ac): ... to here.
32210 2011-05-08  Bruno Haible  <bruno@clisp.org>
32212         getdomainname: Move AC_LIBOBJ invocations to module description.
32213         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Move AC_LIBOBJ and
32214         gl_PREREQ_GETDOMAINNAME invocations from here...
32215         * modules/getdomainname (configure.ac): ... to here.
32217 2011-05-08  Bruno Haible  <bruno@clisp.org>
32219         getline: Move AC_LIBOBJ invocations to module description.
32220         * m4/getline.m4 (gl_FUNC_GETLINE): Move AC_LIBOBJ and gl_PREREQ_GETLINE
32221         invocations from here...
32222         * modules/getline (configure.ac): ... to here.
32224 2011-05-08  Bruno Haible  <bruno@clisp.org>
32226         getline: Simplify.
32227         * m4/getline.m4 (gl_PREREQ_GETLINE): Don't invoke gl_FUNC_GETDELIM.
32228         It's already handled through the module dependency.
32230 2011-05-08  Bruno Haible  <bruno@clisp.org>
32232         getdelim: Move AC_LIBOBJ invocations to module description.
32233         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Set HAVE_GETDELIM. Move AC_LIBOBJ
32234         and gl_PREREQ_GETDELIM invocations from here...
32235         * modules/getdelim (configure.ac): ... to here.
32236         (Depends-on): Fix condition.
32238 2011-05-08  Bruno Haible  <bruno@clisp.org>
32240         getcwd: Move AC_LIBOBJ invocations to module description.
32241         * m4/getcwd.m4 (gl_FUNC_GETCWD): Move AC_LIBOBJ and gl_PREREQ_GETCWD
32242         invocations from here...
32243         * modules/getcwd (configure.ac): ... to here.
32245 2011-05-08  Bruno Haible  <bruno@clisp.org>
32247         getcwd-lgpl: Move AC_LIBOBJ invocations to module description.
32248         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): Move AC_LIBOBJ invocation from
32249         here...
32250         * modules/getcwd-lgpl (configure.ac): ... to here.
32252 2011-05-07  Bruno Haible  <bruno@clisp.org>
32254         crypto/gc: Move AC_LIBOBJ invocations to module description.
32255         * m4/gc.m4 (gl_GC): Move AC_LIBOBJ invocations from here...
32256         * modules/crypto/gc (configure.ac): ... to here.
32258 2011-05-07  Bruno Haible  <bruno@clisp.org>
32260         fwriting: Move AC_LIBOBJ invocations to module description.
32261         * m4/fwriting.m4 (gl_FUNC_FWRITINT): Move AC_LIBOBJ invocation from
32262         here...
32263         * modules/fwriting (configure.ac): ... to here.
32265 2011-05-07  Bruno Haible  <bruno@clisp.org>
32267         fwritable: Move AC_LIBOBJ invocations to module description.
32268         * m4/fwritable.m4 (gl_FUNC_FWRITABLE): Move AC_LIBOBJ invocation from
32269         here...
32270         * modules/fwritable (configure.ac): ... to here.
32272 2011-05-07  Bruno Haible  <bruno@clisp.org>
32274         futimens: Move AC_LIBOBJ invocations to module description.
32275         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Move AC_LIBOBJ invocations from
32276         here...
32277         * modules/futimens (configure.ac): ... to here.
32279 2011-05-07  Bruno Haible  <bruno@clisp.org>
32281         ftruncate: Move AC_LIBOBJ invocations to module description.
32282         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Move AC_LIBOBJ and
32283         gl_PREREQ_FTRUNCATE invocations from here...
32284         * modules/ftruncate (configure.ac): ... to here.
32286 2011-05-07  Bruno Haible  <bruno@clisp.org>
32288         fsync: Move AC_LIBOBJ invocations to module description.
32289         * m4/fsync.m4 (gl_FUNC_FSYNC): Move AC_LIBOBJ and gl_PREREQ_FSYNC
32290         invocations from here...
32291         * modules/fsync (configure.ac): ... to here.
32293 2011-05-07  Bruno Haible  <bruno@clisp.org>
32295         fsusage: Move AC_LIBOBJ invocations to module description.
32296         * m4/fsusage.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and
32297         gl_PREREQ_FSUSAGE_EXTRA invocations from here...
32298         * modules/fsusage (configure.ac): ... to here.
32300 2011-05-07  Bruno Haible  <bruno@clisp.org>
32302         freopen: Move AC_LIBOBJ invocations to module description.
32303         * m4/freopen.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and gl_PREREQ_FREOPEN
32304         invocations from here...
32305         * modules/freopen (configure.ac): ... to here.
32307 2011-05-07  Bruno Haible  <bruno@clisp.org>
32309         free: Move AC_LIBOBJ invocations to module description.
32310         * m4/free.m4 (gl_FUNC_FREE): Move AC_LIBOBJ and missing gl_PREREQ_FREE
32311         invocations from here...
32312         * modules/free (configure.ac): ... to here.
32314 2011-05-07  Bruno Haible  <bruno@clisp.org>
32316         freadable: Move AC_LIBOBJ invocations to module description.
32317         * m4/freadable.m4 (gl_FUNC_FREADABLE): Move AC_LIBOBJ invocation from
32318         here...
32319         * modules/freadable (configure.ac): ... to here.
32321 2011-05-07  Bruno Haible  <bruno@clisp.org>
32323         fpurge: Move AC_LIBOBJ invocations to module description.
32324         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set HAVE_FPURGE. Move AC_LIBOBJ
32325         invocations from here...
32326         * modules/fpurge (configure.ac): ... to here.
32328 2011-05-07  Bruno Haible  <bruno@clisp.org>
32330         fpending: Move AC_LIBOBJ invocations to module description.
32331         * m4/fpending.m4 (gl_PREREQ_FPENDING): New macro, extracted from
32332         gl_FUNC_FPENDING.
32333         (gl_FUNC_FPENDING): Move AC_LIBOBJ and gl_PREREQ_FPENDING
32334         invocations from here...
32335         * modules/fpending (configure.ac): ... to here.
32337 2011-05-07  Bruno Haible  <bruno@clisp.org>
32339         fopen: Move AC_LIBOBJ invocations to module description.
32340         * m4/fopen.m4 (gl_FUNC_FOPEN): Move AC_LIBOBJ and gl_PREREQ_FOPEN
32341         invocations from here...
32342         * modules/fopen (configure.ac): ... to here.
32344 2011-05-07  Bruno Haible  <bruno@clisp.org>
32346         fnmatch, fnmatch-gnu: Move AC_LIBOBJ invocations to module description.
32347         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): New macro, extracted from
32348         gl_FUNC_FNMATCH_POSIX.
32349         (gl_FUNC_FNMATCH_POSIX): Move AC_LIBOBJ and gl_PREREQ_FNMATCH
32350         invocations from here...
32351         * modules/fnmatch (configure.ac): ... to here.
32352         * modules/fnmatch-gnu (configure.ac): ... and here.
32354 2011-05-07  Bruno Haible  <bruno@clisp.org>
32356         flock: Move AC_LIBOBJ invocations to module description.
32357         * m4/flock.m4 (gl_FUNC_FLOCK): Move AC_LIBOBJ and gl_PREREQ_FLOCK
32358         invocations from here...
32359         * modules/flock (configure.ac): ... to here.
32361 2011-05-07  Bruno Haible  <bruno@clisp.org>
32363         fileblocks: Move AC_LIBOBJ invocations to module description.
32364         * m4/fileblocks.m4 (gl_FILEBLOCKS): Move AC_LIBOBJ and
32365         gl_PREREQ_FILEBLOCKS invocations from here...
32366         * modules/fileblocks (configure.ac): ... to here.
32368 2011-05-06  Bruno Haible  <bruno@clisp.org>
32370         fflush: Move AC_LIBOBJ invocations to module description.
32371         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Remove macro.
32372         (gl_FUNC_FFLUSH): Inline it here. Move AC_LIBOBJ and gl_PREREQ_FFLUSH
32373         invocations from here...
32374         * modules/fflush (configure.ac): ... to here.
32376 2011-05-06  Bruno Haible  <bruno@clisp.org>
32378         fdopendir: Move AC_LIBOBJ invocations to module description.
32379         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Move AC_LIBOBJ invocations from
32380         here...
32381         * modules/fdopendir (configure.ac): ... to here.
32382         (Depends-on): Improve conditions.
32384 2011-05-06  Bruno Haible  <bruno@clisp.org>
32386         _Exit: Move AC_LIBOBJ invocations to module description.
32387         * m4/_Exit.m4 (gl_FUNC__EXIT): Move AC_LIBOBJ and gl_PREREQ__EXIT
32388         invocations from here...
32389         * modules/_Exit (configure.ac): ... to here.
32391 2011-05-21  Bruno Haible  <bruno@clisp.org>
32393         euidaccess: Respect rules for use of AC_LIBOBJ.
32394         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
32395         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_EUIDACCESS invocations
32396         from here...
32397         * modules/euidaccess (configure.ac): ... to here.
32399 2011-05-06  Bruno Haible  <bruno@clisp.org>
32401         error: Move AC_LIBOBJ invocations to module description.
32402         * m4/error.m4 (gl_ERROR): Inline AC_FUNC_ERROR_AT_LINE. Remove
32403         AC_LIBSOURCES invocation. Move AC_LIBOBJ and gl_PREREQ_ERROR
32404         invocations from here...
32405         * modules/error (configure.ac): ... to here.
32407 2011-05-06  Bruno Haible  <bruno@clisp.org>
32409         duplocale: Move AC_LIBOBJ invocations to module description.
32410         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Move AC_LIBOBJ and
32411         gl_PREREQ_DUPLOCALE invocations from here...
32412         * modules/duplocale (configure.ac): ... to here.
32414 2011-05-05  Bruno Haible  <bruno@clisp.org>
32416         dirfd: Move AC_LIBOBJ invocations to module description.
32417         * m4/dirfd.m4 (gl_PREREQ_DIRFD): New macro, extracted from
32418         gl_FUNC_DIRFD.
32419         (gl_FUNC_DIRFD): Move AC_LIBOBJ and gl_PREREQ_DIRFD invocations from
32420         here...
32421         * modules/dirfd (configure.ac): ... to here.
32422         (Depends-on): Fix condition.
32424 2011-05-05  Bruno Haible  <bruno@clisp.org>
32426         chown: Respect rules for use of AC_LIBOBJ.
32427         * m4/chown.m4 (gl_FUNC_CHOWN): Move AC_LIBOBJ invocations from here...
32428         * modules/chown (configure.ac): ... to here.
32430 2011-05-05  Bruno Haible  <bruno@clisp.org>
32432         chdir-long: Move AC_LIBOBJ invocations to module description.
32433         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Move AC_LIBOBJ and
32434         gl_PREREQ_CHDIR_LONG invocations from here...
32435         * modules/chdir-long (configure.ac): ... to here.
32437 2011-05-05  Bruno Haible  <bruno@clisp.org>
32439         canonicalize-lgpl: Move AC_LIBOBJ invocations to module description.
32440         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Move AC_LIBOBJ invocation
32441         from here...
32442         * modules/canonicalize-lgpl (configure.ac): ... to here.
32444 2011-05-05  Bruno Haible  <bruno@clisp.org>
32446         calloc-posix, calloc-gnu: Move AC_LIBOBJs to module description.
32447         * m4/calloc.m4 (gl_REPLACE_CALLOC): Remove macro.
32448         (gl_FUNC_CALLOC_GNU, gl_FUNC_CALLOC_POSIX): Instead, just set
32449         REPLACE_CALLOC.
32450         * modules/calloc-posix (configure.ac): Invoke AC_LIBOBJ here.
32451         * modules/calloc-gnu (configure.ac): Likewise.
32453 2011-05-05  Bruno Haible  <bruno@clisp.org>
32455         btowc: Move AC_LIBOBJ invocations to module description.
32456         * m4/btowc.m4 (gl_FUNC_BTOWC): Move AC_LIBOBJ and gl_PREREQ_BTOWC
32457         invocations from here...
32458         * modules/btowc (configure.ac): ... to here.
32460 2011-05-21  Bruno Haible  <bruno@clisp.org>
32462         atexit: Move AC_LIBOBJ invocations to module description.
32463         * m4/atexit.m4 (gl_FUNC_ATEXIT): Call AC_CHECK_FUNCS instead of
32464         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_ATEXIT invocations from
32465         here...
32466         * modules/atexit (configure.ac): ... to here.
32468 2011-05-05  Bruno Haible  <bruno@clisp.org>
32470         atoll: Move AC_LIBOBJ invocations to module description.
32471         * m4/atoll.m4 (gl_FUNC_ATOLL): Move AC_LIBOBJ and gl_PREREQ_ATOLL
32472         invocations from here...
32473         * modules/atoll (configure.ac): ... to here.
32475 2011-05-05  Bruno Haible  <bruno@clisp.org>
32477         argz: Move AC_LIBOBJ invocations to module description.
32478         * m4/argz.m4 (gl_FUNC_ARGZ): Move AC_LIBOBJ invocation from here...
32479         * modules/argz (configure.ac): ... to here.
32481 2011-05-05  Bruno Haible  <bruno@clisp.org>
32483         alphasort: Move AC_LIBOBJ invocations to module description.
32484         * m4/alphasort.m4 (gl_FUNC_ALPHASORT): Move AC_LIBOBJ and
32485         gl_PREREQ_ALPHASORT invocations from here...
32486         * modules/alphasort (configure.ac): ... to here.
32488 2011-06-15  Paul Eggert  <eggert@cs.ucla.edu>
32490         verify: new macro verify_expr; verify_true deprecated
32491         * NEWS: Mention this.
32492         * doc/verify.texi (Compile-time Assertions): Document this.
32493         * lib/verify.h (verify_true): Deprecate.
32494         (verify_expr): New macro.
32495         * tests/test-verify.c (function): Test verify_expr.
32497 2011-06-14  Jim Meyering  <meyering@redhat.com>
32499         init.sh: give more portable redirection-related advice in a comment
32500         * tests/init.sh (stderr_fileno_): Update the advice in comments.
32501         See http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/22488
32502         for lots of discussion.  Stefano Lattarini suggested the solution
32503         of putting "9>&2" after the command.  Reported by Bruno Haible.
32505 2011-06-13  Bruno Haible  <bruno@clisp.org>
32507         locale-zh: Reject zh_CN.GB18030 locale on Solaris 8.
32508         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On Solaris 8, set LOCALE_ZH_CN to
32509         'none'.
32511 2011-06-13  Paul Eggert  <eggert@cs.ucla.edu>
32513         ftoastr: use strtof only if HAVE_STRTOF
32514         This is needed on HP-UX 11.11 with GCC 4.2.4; see Bruno Haible's report
32515         <http://lists.gnu.org/archive/html/bug-gnulib/2011-06/msg00154.html>.
32516         * lib/ftoastr.c (STRTOF) [LENGTH == 1]: Use strtof only if HAVE_STRTOF.
32517         * modules/ftoastr (configure.ac): Check for strtof.
32519 2011-06-13  Bruno Haible  <bruno@clisp.org>
32521         gnulib-tool: Addendum to 2011-06-08 commit.
32522         * gnulib-tool (func_emit_lib_Makefile_am): If options --makefile-name
32523         and --witness-c-macro have been given, augment AM_CPPFLAGS.
32525 2011-06-13  Bruno Haible  <bruno@clisp.org>
32527         fseeko: Provide a non-inline replacement of fseek().
32528         * lib/stdio.in.h (fseek): Don't provide if module 'fseek' is not used.
32529         * modules/fseeko (Depends-on): Add fseek.
32530         * modules/fseek (License): Change to LGPLv2+.
32532 2011-06-13  Bruno Haible  <bruno@clisp.org>
32534         ftello: Provide a non-inline replacement of ftell().
32535         * lib/stdio.in.h (ftell): Don't provide if module 'ftell' is not used.
32536         * m4/ftell.m4 (gl_FUNC_FTELL): Replace ftell also if the system does
32537         not have ftello() (such as on mingw).
32538         * modules/ftello (Depends-on): Add ftell.
32539         * modules/ftell (License): Change to LGPLv2+.
32541 2011-05-07  Bruno Haible  <bruno@clisp.org>
32543         ftell: Move AC_LIBOBJ invocations to module description.
32544         * m4/ftell.m4 (gl_FUNC_FTELL): Move AC_LIBOBJ invocation from here...
32545         * modules/ftell (configure.ac): ... to here.
32547 2011-05-07  Bruno Haible  <bruno@clisp.org>
32549         ftello: Respect rules for use of AC_LIBOBJ.
32550         * m4/ftello.m4 (gl_REPLACE_FTELLO): Remove macro.
32551         (gl_FUNC_FTELLO): Inline it here. Move AC_LIBOBJ invocation from
32552         here...
32553         * modules/ftello (configure.ac): ... to here.
32555 2011-05-07  Bruno Haible  <bruno@clisp.org>
32557         fseeko: Simplify.
32558         * m4/fseeko.m4 (gl_HAVE_FSEEKO): Remove macro.
32559         (gl_FUNC_FSEEKO): Inline it here.
32561 2011-05-07  Bruno Haible  <bruno@clisp.org>
32563         fseek: Move AC_LIBOBJ invocations to module description.
32564         * m4/fseek.m4 (gl_REPLACE_FSEEK): Remove macro.
32565         (gl_FUNC_FSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
32566         * modules/fseek (configure.ac): ... to here.
32568 2011-05-07  Bruno Haible  <bruno@clisp.org>
32570         fseek: Respect rules for use of AC_LIBOBJ.
32571         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Move gl_REPLACE_FSEEK invocation from
32572         here...
32573         * m4/fseek.m4 (gl_FUNC_FSEEK): ... to here.
32575 2011-05-07  Bruno Haible  <bruno@clisp.org>
32577         fseeko: Respect rules for use of AC_LIBOBJ.
32578         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Remove macro.
32579         (gl_FUNC_FSEEKO): Inline it here. Move AC_LIBOBJ invocation from
32580         here...
32581         * modules/fseeko (configure.ac): ... to here.
32583 2011-06-13  Bruno Haible  <bruno@clisp.org>
32585         gnulib-tool: Allow comments in the 'Depends-on' section.
32586         * doc/gnulib.texi (Module description): Mention comment syntax in the
32587         Depends-on section.
32588         * gnulib-tool (func_get_dependencies): Filter out comment lines.
32590 2011-06-13  Bruno Haible  <bruno@clisp.org>
32592         file-set.h: guard __attibute__ use, now that it's not always defined
32593         * lib/file-set.h (record_file): Use __attribute__ only with compiler
32594         versions that support it.  This fixes a coreutils build failure with
32595         the vendor cc on HP-UX 11.31.
32597 2011-06-12  Bruno Haible  <bruno@clisp.org>
32599         acl: Add support for HP-UX >= 11.11 JFS ACLs.
32600         * doc/acl-resources.txt: Add info about the ACL APIs on HP-UX.
32601         * m4/acl.m4 (gl_FUNC_ACL): Also test for HP-UX 11.11 API.
32602         * lib/acl-internal.h [HP-UX 11.11]: Include <aclv.h>.
32603         (acl, aclsort): New declarations.
32604         (aclv_nontrivial): New declaration.
32605         * lib/file-has-acl.c (aclv_nontrivial) [HP-UX 11.11]: New function.
32606         (file_has_acl): Read also the second kind of HP-UX ACLs.
32607         * lib/set-mode-acl.c (qset_acl) [HP-UX 11.11]: Try to set the second
32608         kind of HP-UX ACLs if the first kind fails.
32609         * lib/copy-acl.c (qcopy_acl) [HP-UX 11.11]: Read and set also the
32610         second kind of HP-UX ACLs.
32611         * tests/test-sameacls.c [HP-UX 11.11]: Include <aclv.h>.
32612         (main) [HP-UX 11.11]: Test also whether the second kind of HP-UX ACLs
32613         agree.
32614         * tests/test-file-has-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
32615         hpuxjfs.
32616         Handle hpuxjfs.
32617         * tests/test-set-mode-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
32618         hpuxjfs.
32619         Handle hpuxjfs.
32620         * tests/test-copy-acl.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
32621         (func_test_same_acls): Use both lsacl and getacl.
32622         Handle hpuxjfs.
32623         * tests/test-copy-file.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
32624         (func_test_same_acls): Use both lsacl and getacl.
32625         Handle hpuxjfs.
32627 2011-06-12  Bruno Haible  <bruno@clisp.org>
32629         acl: Complete the 2010-08-10 fix.
32630         * lib/file-has-acl.c (file_has_acl) [HP-UX]: Also test against ENOTSUP.
32631         * lib/set-mode-acl.c (qset_acl) [HP-UX]: Likewise.
32632         * lib/copy-acl.c (qcopy_acl) [HP-UX]: Test for the errno values
32633         explicitly.
32634         * tests/test-sameacls.c (main) [HP-UX]: Also test against ENOTSUP.
32635         Reported in <http://debbugs.gnu.org/db/60/6053.html>.
32637 2011-06-12  Bruno Haible  <bruno@clisp.org>
32639         spawn-pipe tests: Comments.
32640         * tests/test-spawn-pipe-child.c (main): Update comment.
32641         Reported by James Youngman <jay@gnu.org>.
32643 2011-06-11  James Youngman  <jay@gnu.org>
32645         New module 'stat-size'.
32646         * modules/stat-size: New module.  Provides macros for accessing
32647         file size information in instances of struct stat.  Depends on the
32648         fileblocks module because it calls st_blocks.
32649         * lib/stat-size.h: New file, adapted from coreutils' system.h.
32650         * doc/gnulib.texi: Include stat-size.texi.
32651         * doc/stat-size.texi: Documentation for this module.
32652         * m4/stat-size.m4: New file; defines gl_STAT_SIZE.
32653         * m4/fileblocks.m4: Mention that stat-size depends on the call to
32654         AC_STRUCT_ST_BLOCKS.
32656 2011-06-09  Bruno Haible  <bruno@clisp.org>
32658         thread: Support pthreads-win32.
32659         * lib/glthread/thread.h (gl_thread_self): Define differently on
32660         pthreads-win32.
32661         (gl_null_thread): New declaration.
32662         (gl_thread_self_pointer): New macro.
32663         * lib/glthread/thread.c (gl_null_thread): New constant.
32664         * tests/test-lock.c: Use gl_thread_self_pointer instead of
32665         gl_thread_self.
32666         * tests/test-tls.c: Likewise.
32667         Suggested by Paul Eggert. Reported by Eric Blake.
32669 2011-06-09  Bruno Haible  <bruno@clisp.org>
32671         thread: Fix confusion between NULL and 0.
32672         * lib/glthread/thread.h (gl_thread_self): Use NULL and 0 appropriately.
32673         Reported by Paul Eggert.
32675 2011-06-09  Bruno Haible  <bruno@clisp.org>
32677         spawn-pipe tests: Avoid test failure on HP-UX 11.
32678         * tests/test-spawn-pipe-child.c (main) [HP-UX]: Don't assert that fd 2
32679         is closed.
32681 2011-06-09  Bruno Haible  <bruno@clisp.org>
32683         acl tests: Fix compilation error on HP-UX 11.
32684         * tests/test-sameacls.c: Include <sys/acl.h> also on HP-UX.
32686 2011-06-09  Bruno Haible  <bruno@clisp.org>
32688         rmdir: Avoid test failure on HP-UX 10.20.
32689         * tests/test-rmdir.h (test_rmdir_func): Accept ENOTEMPTY error, like
32690         EEXIST.
32692 2011-06-08  Eric Blake  <eblake@redhat.com>
32694         perror: fix test on mingw
32695         * modules/perror-tests (Depends-on): Add dup2.
32697         strerror_r-posix: fix on MacOS
32698         * m4/strerror.m4 (gl_FUNC_STRERROR): Flush out MacOS bug.
32699         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Likewise, and fix
32700         logic bug.
32701         * lib/strerror_r.c (strerror_r): Fix the bug.
32702         * lib/strerror.c (strerror): Likewise.
32703         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
32704         problem.
32705         * doc/posix-functions/strerror.texi (strerror): Likewise.
32706         * doc/posix-functions/perror.texi (perror): Likewise.
32707         * tests/test-strerror.c (main): Enhance test.
32708         * tests/test-strerror_r.c (main): Likewise.
32710 2011-06-08  Bruno Haible  <bruno@clisp.org>
32712         gnulib-tool: Better isolation between different gnulib-tool invocations.
32713         * gnulib-tool: New option --witness-c-macro.
32714         (witness_c_macro): New variable.
32715         (func_emit_lib_Makefile_am): If --witness-c-macro was specified, let
32716         AM_CPPFLAGS define it as a C macro.
32717         (func_emit_tests_Makefile_am): Likewise.
32718         (func_import): Store witness_c_macro setting in gnulib-cache.m4 and
32719         read it from there.
32720         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): Define through
32721         m4_define, not AC_DEFUN.
32722         (gl_MODULE_INDICATOR_SET_VARIABLE_AUX,
32723         gl_MODULE_INDICATOR_SET_VARIABLE_AUX_OR): New macros.
32724         (gl_MODULE_INDICATOR_SET_VARIABLE): Use them.
32725         * modules/arpa_inet (Makefile.am): Use sed expression s/.../.../, not
32726         s|...|...|, to substitute the values of the GNULIB_* module indicator
32727         variables.
32728         * modules/dirent (Makefile.am): Likewise.
32729         * modules/fcntl-h (Makefile.am): Likewise.
32730         * modules/iconv-h (Makefile.am): Likewise.
32731         * modules/langinfo (Makefile.am): Likewise.
32732         * modules/locale (Makefile.am): Likewise.
32733         * modules/math (Makefile.am): Likewise.
32734         * modules/netdb (Makefile.am): Likewise.
32735         * modules/poll-h (Makefile.am): Likewise.
32736         * modules/pty (Makefile.am): Likewise.
32737         * modules/search (Makefile.am): Likewise.
32738         * modules/signal (Makefile.am): Likewise.
32739         * modules/spawn (Makefile.am): Likewise.
32740         * modules/stdio (Makefile.am): Likewise.
32741         * modules/stdlib (Makefile.am): Likewise.
32742         * modules/string (Makefile.am): Likewise.
32743         * modules/sys_ioctl (Makefile.am): Likewise.
32744         * modules/sys_select (Makefile.am): Likewise.
32745         * modules/sys_socket (Makefile.am): Likewise.
32746         * modules/sys_stat (Makefile.am): Likewise.
32747         * modules/sys_times (Makefile.am): Likewise.
32748         * modules/sys_utsname (Makefile.am): Likewise.
32749         * modules/sys_wait (Makefile.am): Likewise.
32750         * modules/termios (Makefile.am): Likewise.
32751         * modules/time (Makefile.am): Likewise.
32752         * modules/unistd (Makefile.am): Likewise.
32753         * modules/wchar (Makefile.am): Likewise.
32755 2011-06-08  Eric Blake  <eblake@redhat.com>
32757         strerror: simplify replacement
32758         * m4/strerror.m4 (gl_PREREQ_STRERROR): Delete.
32759         * modules/strerror (configure.ac): No prereqs needed here...
32760         * modules/strerror-override (configure.ac): ...but this needs it.
32761         (Files): Add file for needed prereq macro.
32763 2011-06-08  Bruno Haible  <bruno@clisp.org>
32765         strerror_r-posix: Tweaks.
32766         * m4/strerror.m4 (gl_FUNC_STRERROR): Omit the code that tests
32767         gl_cv_func_strerror_r_works if gl_FUNC_STRERROR_R_WORKS is not present.
32768         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Fix AC_CACHE_CHECK
32769         message. Move gl_HEADER_STRING_H_DEFAULTS invocation from here...
32770         (gl_FUNC_STRERROR_R): ... to here.
32771         (gl_PREREQ_STRERROR_R): Test for __xpg_strerror_r.
32773 2011-06-07  Eric Blake  <eblake@redhat.com>
32775         perror: document fixed bugs
32776         * doc/posix-functions/perror.texi (perror): Document recent
32777         patches.
32779 2011-06-07  Paul Eggert  <eggert@cs.ucla.edu>
32781         stat-time: get_stat_birthtime failure is better-defined
32782         * lib/stat-time.h (get_stat_birthtime): If the time is not available,
32783         return a timestamp whose tv_sec and tv_nsec values are both -1.
32784         Previously, the spec said only that the tv_nsec value was negative.
32785         This upward-compatible change simplifies GNU tar a bit.
32787 2011-06-07  Eric Blake  <eblake@redhat.com>
32789         strerror_r-posix: work around cygwin 1.7.9
32790         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Split...
32791         (gl_FUNC_STRERROR_R_WORKS): ...into new macro, to detect Cygwin
32792         bug without replacing strerror_r.
32793         * m4/strerror.m4 (gl_FUNC_STRERROR): Replace strerror if
32794         strerror_r is buggy, but without requiring strerror_r compilation.
32795         * doc/posix-functions/strerror_r.texi (strerror_r): Fix docs.
32797         test-perror: relax test to ignore cygwin bug
32798         * tests/test-perror2.c (main): Relax test on requiring detection
32799         of stream errors, and use unbuffered stream.
32800         * doc/posix-functions/dprintf.texi (dprintf): Document bug.
32801         * doc/posix-functions/fprintf.texi (fprintf): Likewise.
32802         * doc/posix-functions/fputc.texi (fputc): Likewise.
32803         * doc/posix-functions/fputs.texi (fputs): Likewise.
32804         * doc/posix-functions/fputws.texi (fputws): Likewise.
32805         * doc/posix-functions/fwprintf.texi (fwprintf): Likewise.
32806         * doc/posix-functions/fwrite.texi (fwrite): Likewise.
32807         * doc/posix-functions/getopt.texi (getopt): Likewise.
32808         * doc/posix-functions/perror.texi (perror): Likewise.
32809         * doc/posix-functions/printf.texi (printf): Likewise.
32810         * doc/posix-functions/psiginfo.texi (psiginfo): Likewise.
32811         * doc/posix-functions/psignal.texi (psignal): Likewise.
32812         * doc/posix-functions/putc.texi (putc): Likewise.
32813         * doc/posix-functions/putc_unlocked.texi (putc_unlocked):
32814         Likewise.
32815         * doc/posix-functions/putchar.texi (putchar): Likewise.
32816         * doc/posix-functions/putchar_unlocked.texi (putchar_unlocked):
32817         Likewise.
32818         * doc/posix-functions/puts.texi (puts): Likewise.
32819         * doc/posix-functions/putwc.texi (putwc): Likewise.
32820         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
32821         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
32822         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
32823         * doc/posix-functions/vfwprintf.texi (vfwprintf): Likewise.
32824         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
32825         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
32826         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
32827         * doc/posix-functions/wprintf.texi (wprintf): Likewise.
32829 2011-05-22  Bruno Haible  <bruno@clisp.org>
32831         strerror: Move AC_LIBOBJ invocations to module description.
32832         * m4/strerror.m4 (gl_FUNC_STRERROR): Move AC_LIBOBJ and
32833         gl_PREREQ_STRERROR invocations from here...
32834         * modules/strerror (configure.ac): ... to here.
32836 2011-05-21  Bruno Haible  <bruno@clisp.org>
32838         perror: Use common idiom.
32839         * modules/perror (configure.ac): Reorder statements.
32841 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
32843         tests: fix usage message in 'mktempd_'
32844         * tests/init.sh (mktempd_): In the usage message, use literal
32845         'mktempd_', not '$ME' (which is even undefined), as the name of
32846         the subroutine.
32848 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
32850         tests init: new function 'fatal_', for hard errors
32851         Before this patch, the only way offered by tests/init.sh to
32852         properly signal a hard error was the `framework_failure_'
32853         function.  But the error message issued by that function,
32854         as its name would suggest, refers to a set-up failure in the
32855         testsuite, while hard errors can obviously also be due to
32856         other reasons.  The best way to fix this inconsistency is to
32857         introduce a new function with a more general error message.
32858         * tests/init.sh (fatal_): New function.
32860 2011-06-06  Eric Blake  <eblake@redhat.com>
32862         canonicalize-lgpl: use common idiom
32863         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Prefer older rm -rf
32864         over newer POSIX -Rf.
32865         Reported by Bruno Haible.
32867         canonicalize-lgpl: work around AIX realpath bug
32868         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Expose AIX bug.
32869         * doc/posix-functions/realpath.texi (realpath): Document it.
32870         Reported by Bruno Haible.
32872         strerror: work around FreeBSD bug
32873         * lib/strerror.c (strerror): Special case 0.
32874         Reported by Bruno Haible.
32876         strerror-override: avoid bloating errno module
32877         * modules/errno (Files, configure.ac): Move replacement strings...
32878         * modules/strerror-override: ...to new module.
32879         * modules/strerror (Depends-on): Add strerror-override.
32880         * modules/strerror_r-posix (Depends-on): Likewise.
32881         * MODULES.html.sh: Document new module.
32882         Reported by Bruno Haible.
32884 2011-06-06  Bruno Haible  <bruno@clisp.org>
32886         spawn-pipe tests: Rename program.
32887         * tests/test-spawn-pipe-main.c: Renamed from tests/test-spawn-pipe.c.
32888         * tests/test-spawn-pipe-child.c: Update comment.
32889         * tests/test-spawn-pipe.sh: Update.
32890         * modules/spawn-pipe-tests (Files, Makefile.am): Update.
32892         spawn-pipe tests: Link the child program only against libc.
32893         * tests/test-spawn-pipe-child.c: New file, extracted from
32894         tests/test-spawn-pipe.c.
32895         (main): Expect only one argument.
32896         (is_open): New function, copied from tests/test-pipe.c.
32897         * tests/test-spawn-pipe.c: Don't include <errno.h>.
32898         (child_main): Remove function.
32899         (test_pipe): Pass only one argument to the child program.
32900         (main): Remove child process code. Expect the child program's name as
32901         first argument.
32902         * tests/test-spawn-pipe.sh: Pass the child program's name as first
32903         argument.
32904         * modules/spawn-pipe-tests (Files): Add tests/test-spawn-pipe-child.c.
32905         (Makefile.am): Add test-spawn-pipe-child to check_PROGRAMS. Link
32906         test-spawn-pipe-child against no libraries.
32908 2011-06-06  Bruno Haible  <bruno@clisp.org>
32910         careadlinkat: Avoid mismatch between ssize_t and int.
32911         * lib/careadlinkat.h (careadlinkatcwd): Declare as a function always.
32912         * lib/careadlinkat.c (careadlinkatcwd): Define always.
32914 2011-06-06  Jim Meyering  <meyering@redhat.com>
32916         gnulib-common.m4: add _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE
32917         * m4/gnulib-common.m4 (gl_COMMON): Emit definitions of
32918         _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE.
32920 2011-06-05  Bruno Haible  <bruno@clisp.org>
32922         ansi-c++-opt: Interoperability with libtool.
32923         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): When a C++ compiler is not found,
32924         set the variable to "no", not to ":".
32925         * NEWS: Mention the change.
32927 2011-06-05  Bruno Haible  <bruno@clisp.org>
32929         acl: Fix test failure on AIX 7.
32930         * tests/test-sameacls.c (main) [AIX]: Fix aclx_printStr invocation.
32931         Based on a patch by Jørn Amundsen <Jorn.Amundsen@ntnu.no>.
32933 2011-06-05  Bruno Haible  <bruno@clisp.org>
32935         pipe-filter-ii: Fix test failure on AIX and IRIX.
32936         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): When write() fails
32937         with EAGAIN, retry with a smaller buffer size.
32939 2011-06-05  Bruno Haible  <bruno@clisp.org>
32941         localename: Fix link dependencies.
32942         * modules/localename (Link): Mention $(LIBTHREAD) or $(LTLIBTHREAD).
32943         * modules/localename-tests (Makefile.am): Link test-localename with
32944         $(LIBTHREAD).
32946 2011-06-05  Bruno Haible  <bruno@clisp.org>
32948         error: Avoid gcc warning.
32949         * lib/error.c (strerror_r): Declare also when its return type is 'int'.
32951 2011-06-05  Bruno Haible  <bruno@clisp.org>
32953         unsetenv: Avoid gcc warning.
32954         * lib/unsetenv.c (unsetenv): Provide declaration if system lacks it.
32956 2011-06-05  Bruno Haible  <bruno@clisp.org>
32958         setenv: Avoid gcc warning.
32959         * lib/setenv.c (setenv): Provide declaration if system lacks it.
32961 2011-06-05  Bruno Haible  <bruno@clisp.org>
32963         sys_select: Ensure memset is declared also on AIX 7.
32964         * lib/sys_select.in.h: Include <string.h> also on AIX.
32965         * doc/posix-headers/sys_select.texi: Mention that <sys/select.h> is not
32966         self-contained also on AIX 7.1.
32968 2011-06-04  Jim Meyering  <meyering@redhat.com>
32970         maint.mk: sc_unmarked_diagnostics: don't hard-code "error"
32971         * top/maint.mk (sc_unmarked_diagnostics): Don't hard-code the
32972         function name, "error".
32973         (_gl_translatable_diag_func_re): New configurable variable.
32975 2011-06-04  Bruno Haible  <bruno@clisp.org>
32977         getopt: Avoid gcc warning.
32978         * lib/getopt.c (_getopt_internal_r): Remove unused variable 'ambig'.
32980 2011-06-04  Bruno Haible  <bruno@clisp.org>
32982         strerror_r: Fix comments.
32983         * lib/strerror_r.c (strerror_r): Update comments after 2011-06-01
32984         commit.
32986 2011-06-04  Bruno Haible  <bruno@clisp.org>
32988         perror: Fix compilation error.
32989         * lib/perror.c: Don't include intprops.h, verify.h, strerror-impl.h.
32990         Undefine fprintf, not sprintf.
32991         * modules/perror (Depends-on): Remove intprops, verify.
32993 2011-06-04  Bruno Haible  <bruno@clisp.org>
32995         setlocale: Enable replacement on Cygwin 1.5.
32996         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Set REPLACE_SETLOCALE also on
32997         Cygwin 1.5.x.
32998         * doc/posix-functions/setlocale.texi: Mention that the problem with the
32999         LC_CTYPE category also exists on Cygwin 1.5.x.
33001 2011-06-04  Bruno Haible  <bruno@clisp.org>
33003         strerror-override: Don't disable symbol renamings.
33004         * lib/strerror-override.h: Include errno.h and stddef.h, not string.h.
33005         * lib/strerror-override.c: Include config.h.
33006         (strerror_override): Don't undefine.
33008 2011-06-03  Bruno Haible  <bruno@clisp.org>
33010         Copyright: Use LGPL 2.1 instead of LGPL 2.0.
33011         * lib/localename.h: Update copyright header.
33012         * lib/localename.c: Likewise.
33013         * lib/relocatable.h: Likewise.
33014         * lib/relocatable.c: Likewise.
33016 2011-06-02  Bruno Haible  <bruno@clisp.org>
33018         doc: Fix a module name.
33019         * doc/posix-functions/open.texi: Fix module name 'nonblocking'.
33021 2011-06-02  Bruno Haible  <bruno@clisp.org>
33023         pipe2: Remove dependency on 'nonblocking' module.
33024         * lib/pipe2.c: Include verify.h. Include nonblocking.h only if
33025         O_NONBLOCK is defined by gnulib.
33026         (pipe2) [WIN32]: If O_NONBLOCK is not defined by gnulib, verify that it
33027         is zero.
33028         * modules/pipe2 (Depends-on): Add verify. Remove nonblocking.
33029         * tests/test-pipe2.c: Include nonblocking.h only if O_NONBLOCK is
33030         defined by gnulib.
33031         (get_nonblocking_flag): New function.
33032         (main): Test O_NONBLOCK flag only if it is nonzero.
33033         * doc/glibc-functions/pipe2.texi: Mention the 'nonblocking' module.
33035 2011-06-03  Jim Meyering  <meyering@redhat.com>
33037         maint: three new prohibit-header-without-use rules
33038         Prohibit use of cloexec.h, posixver.h, same.h without use.
33039         * top/maint.mk (sc_prohibit_cloexec_without_use): New rule.
33040         (sc_prohibit_posixver_without_use): Likewise.
33041         (sc_prohibit_same_without_use): Likewise.
33043 2011-06-02  Paul Eggert  <eggert@cs.ucla.edu>
33045         allocator: 'die' routine is now given requested size
33046         * lib/allocator.h (struct allocator.die): New size arg.
33047         * lib/careadlinkat.c (careadlinkat): Pass size to 'die' function.
33048         If the actual problem is an ssize_t limitation, not a size_t or
33049         malloc failure, fail with errno==ENAMETOOLONG instead of calling 'die'.
33051 2011-06-01  Eric Blake  <eblake@redhat.com>
33053         strerror: drop strerror_r dependency
33054         * lib/strerror_r.c (strerror_r): Move gnulib replacement strings...
33055         * lib/strerror-override.c (strerror_override): ...to new file.
33056         * lib/strerror-override.h: Add prototype.
33057         * lib/strerror-impl.h: Delete.
33058         * lib/strerror.c (strerror): New implementation.
33059         * modules/errno (Files): Add new files.
33060         (configure.ac): Compile new file as appropriate.
33061         * modules/strerror (Files): Drop unused file.
33062         (Depends-on): Drop strerror_r-posix.
33063         * MODULES.html.sh: Document strerror_r-posix.
33064         Requested by Sam Steingold.
33066         perror: call strerror_r directly
33067         * modules/perror (Files): Drop strerror-impl.h.
33068         * lib/perror.c (perror): Use our own stack buffer, rather than
33069         calling a wrapper that uses static storage.
33070         * doc/posix-functions/perror.texi (perror): Document a limitation
33071         of our replacement.
33073         strerror_r: fix includes for FreeBSD
33074         * lib/strerror_r.c (includes): Use <stdlib.h> unconditionally,
33075         since we use abort on some platforms.
33076         Reported by Matthias Bolte.
33078 2011-05-31  Bruno Haible  <bruno@clisp.org>
33080         Fix link errors in tests: openat-die uses gettext-h.
33081         * modules/areadlinkat-tests (Makefile.am): Link test-areadlinkat
33082         against $(LIBINTL).
33083         * modules/dirent-safer-tests (Makefile.am): Link test-dirent-safer
33084         against $(LIBINTL).
33085         * modules/fdopendir-tests (Makefile.am): Link test-fdopendir against
33086         $(LIBINTL).
33087         * modules/fdutimensat-tests (Makefile.am): Link test-fdutimensat
33088         against $(LIBINTL).
33089         * modules/linkat-tests (Makefile.am): Link test-linkat against
33090         $(LIBINTL).
33091         * modules/mkfifoat-tests (Makefile.am): Link test-mkfifoat against
33092         $(LIBINTL).
33093         * modules/openat-safer-tests (Makefile.am): Link test-openat-safer
33094         against $(LIBINTL).
33095         * modules/openat-tests (Makefile.am): Link test-fchownat, test-fstatat,
33096         test-mkdirat, test-openat, test-unlinkat against $(LIBINTL).
33097         * modules/readlinkat-tests (Makefile.am): Link test-readlinkat against
33098         $(LIBINTL).
33099         * modules/symlinkat-tests (Makefile.am): Link test-symlinkat against
33100         $(LIBINTL).
33101         * modules/utimensat-tests (Makefile.am): Link test-utimensat against
33102         $(LIBINTL).
33103         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
33105 2011-05-31  Bruno Haible  <bruno@clisp.org>
33107         Fix link errors in tests: wait-process uses gettext-h.
33108         * modules/nonblocking-pipe-tests (Makefile.am): Set
33109         test_nonblocking_pipe_main_LDADD.
33110         * modules/nonblocking-socket-tests (Makefile.am): Link
33111         test-nonblocking-socket-main against $(LIBINTL).
33112         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
33114 2011-05-29  Paul Eggert  <eggert@cs.ucla.edu>
33116         assert-h: work around 'verify' incompatibility
33117         * lib/verify.h: Use @...@ directives, not ifdef.
33118         * modules/assert-h (assert.h): Implement the directives.
33119         (assert.h): Substitute the symbol-prefix more consistently.
33121 2011-05-29  Jim Meyering  <meyering@redhat.com>
33123         trim: remove three superfluous assignments
33124         * lib/trim.c (trim2): Remove three superfluous assignments
33125         and correct brace positioning.
33127 2011-05-29  Bruno Haible  <bruno@clisp.org>
33129         wctype-h: Avoid namespace pollution on Solaris 2.6.
33130         * lib/wctype.in.h: On Solaris, undefine 'multibyte' and a few other
33131         identifiers.
33132         * doc/posix-headers/wctype.texi: Mention the problem.
33133         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
33135 2011-05-28  Jim Meyering  <meyering@redhat.com>
33137         parse-datetime.y: accommodate -Wstrict-overflow
33138         * lib/parse-datetime.y (yylex): Rearrange pointer arithmetic to
33139         placate -Wstrict-overflow.
33141         trim: avoid a warning from -O2 -Wstrict-overflow
33142         * lib/trim.c (trim2): Declare local to be "unsigned int", not "int".
33144 2011-05-29  Bruno Haible  <bruno@clisp.org>
33146         gnulib-tool: Fix bug in yesterday's commit.
33147         * gnulib-tool (func_create_testdir): Don't add gltests to $subdirs
33148         twice.
33150 2011-05-29  Bruno Haible  <bruno@clisp.org>
33152         Allow multiple gnulib generated include files to be combined.
33153         * gnulib-tool (func_compute_include_guard_prefix): New function.
33154         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Resolve also
33155         ${gl_include_guard_prefix} references.
33156         (func_import, func_create_testdir): Invoke
33157         func_compute_include_guard_prefix.
33158         * lib/arpa_inet.in.h: Use the @GUARD_PREFIX@ placeholder.
33159         * lib/ctype.in.h: Likewise.
33160         * lib/dirent.in.h: Likewise.
33161         * lib/errno.in.h: Likewise.
33162         * lib/fcntl.in.h: Likewise.
33163         * lib/float.in.h: Likewise.
33164         * lib/getopt.in.h: Likewise.
33165         * lib/iconv.in.h: Likewise.
33166         * lib/langinfo.in.h: Likewise.
33167         * lib/locale.in.h: Likewise.
33168         * lib/math.in.h: Likewise.
33169         * lib/netdb.in.h: Likewise.
33170         * lib/netinet_in.in.h: Likewise.
33171         * lib/poll.in.h: Likewise.
33172         * lib/pthread.in.h: Likewise.
33173         * lib/pty.in.h: Likewise.
33174         * lib/sched.in.h: Likewise.
33175         * lib/se-selinux.in.h: Likewise.
33176         * lib/search.in.h: Likewise.
33177         * lib/signal.in.h: Likewise.
33178         * lib/spawn.in.h: Likewise.
33179         * lib/stdarg.in.h: Likewise.
33180         * lib/stddef.in.h: Likewise.
33181         * lib/stdint.in.h: Likewise.
33182         * lib/stdio.in.h: Likewise.
33183         * lib/stdlib.in.h: Likewise.
33184         * lib/string.in.h: Likewise.
33185         * lib/strings.in.h: Likewise.
33186         * lib/sys_file.in.h: Likewise.
33187         * lib/sys_ioctl.in.h: Likewise.
33188         * lib/sys_select.in.h: Likewise.
33189         * lib/sys_socket.in.h: Likewise.
33190         * lib/sys_stat.in.h: Likewise.
33191         * lib/sys_time.in.h: Likewise.
33192         * lib/sys_times.in.h: Likewise.
33193         * lib/sys_uio.in.h: Likewise.
33194         * lib/sys_utsname.in.h: Likewise.
33195         * lib/sys_wait.in.h: Likewise.
33196         * lib/sysexits.in.h: Likewise.
33197         * lib/termios.in.h: Likewise.
33198         * lib/time.in.h: Likewise.
33199         * lib/unistd.in.h: Likewise.
33200         * lib/wchar.in.h: Likewise.
33201         * lib/wctype.in.h: Likewise.
33202         * modules/arpa_inet (Makefile.am): Substitute @GUARD_PREFIX@.
33203         * modules/ctype (Makefile.am): Likewise.
33204         * modules/dirent (Makefile.am): Likewise.
33205         * modules/errno (Makefile.am): Likewise.
33206         * modules/fcntl-h (Makefile.am): Likewise.
33207         * modules/float (Makefile.am): Likewise.
33208         * modules/getopt-posix (Makefile.am): Likewise.
33209         * modules/iconv-h (Makefile.am): Likewise.
33210         * modules/langinfo (Makefile.am): Likewise.
33211         * modules/locale (Makefile.am): Likewise.
33212         * modules/math (Makefile.am): Likewise.
33213         * modules/netdb (Makefile.am): Likewise.
33214         * modules/netinet_in (Makefile.am): Likewise.
33215         * modules/poll-h (Makefile.am): Likewise.
33216         * modules/pthread (Makefile.am): Likewise.
33217         * modules/pty (Makefile.am): Likewise.
33218         * modules/sched (Makefile.am): Likewise.
33219         * modules/search (Makefile.am): Likewise.
33220         * modules/selinux-h (Makefile.am): Likewise.
33221         * modules/signal (Makefile.am): Likewise.
33222         * modules/spawn (Makefile.am): Likewise.
33223         * modules/stdarg (Makefile.am): Likewise.
33224         * modules/stddef (Makefile.am): Likewise.
33225         * modules/stdint (Makefile.am): Likewise.
33226         * modules/stdio (Makefile.am): Likewise.
33227         * modules/stdlib (Makefile.am): Likewise.
33228         * modules/string (Makefile.am): Likewise.
33229         * modules/strings (Makefile.am): Likewise.
33230         * modules/sys_file (Makefile.am): Likewise.
33231         * modules/sys_ioctl (Makefile.am): Likewise.
33232         * modules/sys_select (Makefile.am): Likewise.
33233         * modules/sys_socket (Makefile.am): Likewise.
33234         * modules/sys_stat (Makefile.am): Likewise.
33235         * modules/sys_time (Makefile.am): Likewise.
33236         * modules/sys_times (Makefile.am): Likewise.
33237         * modules/sys_uio (Makefile.am): Likewise.
33238         * modules/sys_utsname (Makefile.am): Likewise.
33239         * modules/sys_wait (Makefile.am): Likewise.
33240         * modules/sysexits (Makefile.am): Likewise.
33241         * modules/termios (Makefile.am): Likewise.
33242         * modules/time (Makefile.am): Likewise.
33243         * modules/unistd (Makefile.am): Likewise.
33244         * modules/wchar (Makefile.am): Likewise.
33245         * modules/wctype-h (Makefile.am): Likewise.
33246         * modules/assert-h (Makefile.am): Replace _GL_VERIFY_H specially.
33248 2011-05-29  Bruno Haible  <bruno@clisp.org>
33250         assert-h: Allow multiple gnulib generated replacements to coexist.
33251         * lib/verify.h (struct _gl_verify_type): Avoid identical redefinition.
33253 2011-05-29  Bruno Haible  <bruno@clisp.org>
33255         argp: Allow coexistence with strerror_r-posix module.
33256         * lib/argp-help.c (__argp_failure): If strerror_r is defined as a macro
33257         (either to __xpg_strerror_r by glibc's <string.h> or to rpl_strerror_r
33258         by gnulib's <string.h> replacement), assume it has the POSIX signature,
33259         not the glibc signature.
33261 2011-05-28  Bruno Haible  <bruno@clisp.org>
33263         gnulib-tool: Alternative structure of testdirs, similar to --import.
33264         * gnulib-tool: New option --single-configure.
33265         (func_usage): Document it.
33266         (single_configure): New variable.
33267         (func_modules_transitive_closure_separately,
33268         func_modules_transitive_closure_separately,
33269         func_determine_use_libtests, func_modules_add_dummy_separately,
33270         func_modules_to_filelist_separately): New functions, extracted from
33271         func_import.
33272         (func_emit_tests_Makefile_am): Handle $single_configure = true case.
33273         (func_import): Use the new functions.
33274         (func_create_testdir): Set final_modules. Handle $single_configure =
33275         true case.
33277 2011-05-28  Bruno Haible  <bruno@clisp.org>
33279         getloadavg: Remove an unreliable safety check.
33280         * m4/getloadavg.m4 (gl_GETLOADAVG): Drop argument. Remove test whether
33281         getloadavg.c is in place.
33282         * modules/getloadavg (configure.ac): Drop argument of gl_GETLOADAVG.
33283         Reported by Sam Steingold <sds@gnu.org>.
33285 2011-05-28  Bruno Haible  <bruno@clisp.org>
33287         doc: Cleanup yet another file produced by texinfo.tex.
33288         * doc/Makefile (mostlyclean): Remove also gnulib.cn.
33290 2011-05-28  Bruno Haible  <bruno@clisp.org>
33292         Finish the conditional dependencies mechanism.
33293         * gnulib-tool: New option --no-conditional-dependencies.
33294         (func_usage): Document it. Don't mark --conditional-dependencies as
33295         experimental.
33296         (cond_dependencies): The possible values can now be true, false, empty.
33297         (func_modules_transitive_closure, func_emit_autoconf_snippets): Update.
33298         (func_import): Store setting in gnulib-cache.m4 and read it from there.
33299         * doc/gnulib-tool.texi (Conditional dependencies): New section.
33301 2011-05-28  Bruno Haible  <bruno@clisp.org>
33303         doc: Use a recent texinfo.tex.
33304         * doc/Makefile (tex_opts): New variable.
33305         (%.dvi, %.pdf): Pass it to texi2dvi and texi2pdf.
33307 2011-05-28  Jim Meyering  <meyering@redhat.com>
33309         intprops.h: adjust comment to match code change
33310         * lib/intprops.h (_GL_INT_CONVERT): Adjust comment: now that E is used
33311         only once, it *may* have side effects.  Also fix an unrelated typo.
33312         (_GL_INT_SIGNED): Likewise.
33314 2011-05-26  Simon Josefsson  <simon@josefsson.org>
33316         * lib/gen-uni-tables.c: Say "gen-uni-tables.c" consistently.
33318 2011-05-26  Bruno Haible  <bruno@clisp.org>
33320         mbsrchr: Avoid collision with system function on Interix.
33321         * lib/string.in.h (mbsrchr): Define as rpl_mbsrchr also on Interix.
33322         Reported by Markus Duft <mduft@gentoo.org>.
33324 2011-05-15  James Youngman  <jay@gnu.org>
33326         getopt: for ambiguous options, enumerate the possibilities.
33327         * lib/getopt.c (_getopt_internal_r): Merge glibc change printing
33328         the ambiguous options when an ambiguous prefix is given. This was
33329         http://sourceware.org/bugzilla/show_bug.cgi?id=7101.  The merged
33330         glibc change was
33331         http://sourceware.org/git/?p=glibc.git;a=commit;h=bd25564e1e98910ed69043ed6a6f884ce60e5780.
33333 2011-05-25  Eric Blake  <eblake@redhat.com>
33335         getcwd: work around mingw bug
33336         * lib/getcwd-lgpl.c (rpl_getcwd): Guarantee correct error.
33337         * doc/posix-functions/getcwd.texi (getcwd): Document it.
33338         Reported by Matthias Bolte.
33340 2011-05-24  Paul Eggert  <eggert@cs.ucla.edu>
33342         test-intprops: disable -Wtype-limits diagnostics
33343         * tests/test-intprops.c: Use a pragma to ignore -Wtype-limits
33344         diagnostics.  Otherwise, the integer overflow macros generate many
33345         diagnostics.  Reported by Jim Meyering in
33346         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00528.html>.
33348         intprops: shorten, to pacify gcc -Woverlength-strings
33349         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_NEGATE_CONVERT):
33350         (_GL_BINARY_OP_OVERFLOW): Say "0 * (x)" rather than "(x) - (x)",
33351         so that, for example, verify (INT_MULTIPLY_OVERFLOW (...)) is less
33352         likely to run afoul of C compiler limits for string constant lengths.
33353         See <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00528.html>.
33355 2011-05-24  Eric Blake  <eblake@redhat.com>
33357         docs: document recently fixed glibc printf bug
33358         * doc/posix-functions/fprintf.texi (fprintf): Document it.
33359         * doc/posix-functions/printf.texi (printf): Likewise.
33360         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
33361         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
33363         closein-tests: convert to init.sh
33364         * modules/closein-tests (Files): Add init.sh
33365         * tests/test-closein.sh Use it.
33367         yesno-tests: convert to init.sh
33368         * modules/yesno-tests (Files): Add init.sh.
33369         * tests/test-yesno.sh: Use it.
33371         atexit-tests: ensure reliable exit status
33372         * tests/test-atexit.sh: Prefer 'Exit' over 'exit'.
33373         Reported by Bruno Haible.
33375 2011-05-24  Bruno Haible  <bruno@clisp.org>
33377         strerror_r-posix: Respect rules for use of AC_LIBOBJ.
33378         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Move AC_LIBOBJ and
33379         gl_PREREQ_STRERROR_R invocations from here...
33380         * modules/strerror_r-posix (configure.ac): ... to here.
33382 2011-05-24  Eric Blake  <eblake@redhat.com>
33384         strerror_r: fix missing header
33385         * lib/strerror_r.c: Avoid compiler warning about snprintf.
33387         strerror_r: fix AIX test failures
33388         * lib/strerror_r.c (strerror_r): Convert silent truncation to
33389         ERANGE failure.
33391         strerror_r: fix Solaris test failures
33392         * lib/strerror_r.c (strerror_r): Partially populate buf on ERANGE
33393         failures.
33394         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
33396         strerror_r: enforce POSIX recommendations
33397         * lib/strerror_r.c (safe_copy): New helper method.
33398         (strerror_r): Guarantee a non-empty string.
33399         * tests/test-strerror_r.c (main): Enhance tests to incorporate
33400         recent POSIX rulings and to match our strerror guarantees.
33401         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
33403 2011-05-24  Jim Meyering  <meyering@redhat.com>
33405         test-perror2.c: avoid warning about unused variable
33406         * tests/test-perror2.c (main): Remove declaration of unused "fp".
33408 2011-05-24  Eric Blake  <eblake@redhat.com>
33410         perror: avoid spurious test failure on HP-UX
33411         * tests/test-perror.sh: Use Exit to avoid wrong exit status.
33413         tests: fix logic bug in init.sh
33414         * tests/init.sh: (gl_set_x_corrupts_stderr_): Clear for successful
33415         shell.
33417 2011-05-24  Jim Meyering  <meyering@redhat.com>
33419         utimensat: do not reference an out-of-scope buffer
33420         Otherwise, with __linux__ defined, "times" would point to a buffer, "ts"
33421         declared in an inner scope, yet "times" would be dereferenced outside
33422         the scope in which "ts" was valid.
33423         * lib/utimensat.c (rpl_utimensat) [__linux__]: Move the declaration
33424         of ts[2] "out/up", so that the use of aliased "times" (via
33425         "times = ts;") does not end up referencing an out-of-scope "ts"
33427         opendir-safer.c: don't clobber errno; don't close negative FD
33428         * lib/opendir-safer.c (opendir_safer):
33429         [HAVE_FDOPENDIR || GNULIB_FDOPENDIR]: Don't close a negative
33430         file descriptor, and more importantly, don't clobber the
33431         offending errno value with EINVAL.  Before, upon failure
33432         of dup_safer, we would pass the negative file descriptor to
33433         fdopendir, which would clobber errno.
33435 2011-05-23  Bruno Haible  <bruno@clisp.org>
33437         idcache: Fix module description.
33438         * modules/idcache (Include): Set to "idcache.h".
33440 2011-05-23  Paul Eggert  <eggert@cs.ucla.edu>
33442         gnulib-tool: fix portability problem with MacOS sed
33443         A sed command like "/x/{s/a/b/}" is not portable; a newline is needed
33444         before the "}".  Problem reported by Leo in
33445         <http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00717.html>.
33446         * gnulib-tool (func_modules_transitive_closure): Insert newlines in
33447         sed_extract_condition1, sed_extract_condition2.
33449 2011-05-23  Bruno Haible  <bruno@clisp.org>
33451         hash: Simplify autoconf macro.
33452         * m4/hash.m4 (gl_HASH): Don't require AM_STDBOOL_H.
33454 2011-05-23  Bruno Haible  <bruno@clisp.org>
33456         getugroups: Fix module description.
33457         * modules/getugroups (Include): Set to "getugroups.h".
33459 2011-05-23  Bruno Haible  <bruno@clisp.org>
33461         linkat: Simplify autoconf macro.
33462         * m4/linkat.m4 (gl_FUNC_LINKAT): Don't require gl_FUNC_LINK.
33464 2011-05-23  Bruno Haible  <bruno@clisp.org>
33465             Eric Blake  <eblake@redhat.com>
33467         linkat, renameat: Update dependencies.
33468         * modules/renameat (Depends-on): Add dosname, save-cwd. Remove stpcpy.
33469         * modules/linkat (Depends-on): Likewise. Remove also readlink,
33470         symlinkat.
33472 2011-05-23  Jim Meyering  <meyering@redhat.com>
33474         maint.mk: more tight_scope improvements
33475         * top/maint.mk: (_gl_TS_var_match): Use $(_gl_TS_extern) here, too.
33476         (_gl_TS_headers): Define only in if-0'd block.
33477         (_gl_TS_dir): Omit the $(srcdir)/ prefix.  Sometimes we need it,
33478         sometimes we must *not* use it.  Adjust uses accordingly.
33479         (sc_tight_scope): Use much simpler grep-based test to determine
33480         whether we skip this rule.
33482         maint.mk: generalize/improve the tight-scope rule
33483         * top/maint.mk: Emit a warning when the test is skipped.
33484         (_gl_TS_dir): Add $(srcdir)/ prefix.
33485         (_gl_TS_function_match): Simplify, rather than trying
33486         to enumerate common types.  Otherwise, it would fail to match an
33487         "extern unsigned char const *" declaration in idutils.
33488         (_gl_TS_extern): Do not endorse use of "XTERN", but do provide
33489         a way to support use of that type of macro.
33490         (_gl_TS_var_match): Simplify regexp.
33491         (_gl_TS_obj_files): New configurable variable.
33492         (_gl_TS_headers): Likewise.
33494 2011-05-22  Paul Eggert  <eggert@cs.ucla.edu>
33496         verify: fix bug when gnulib <assert.h> is also included
33497         * lib/verify.h (verify, verify_true): Define if _GL_VERIFY_H
33498         is defined, not if _GL_STATIC_ASSERT_H is not defined.
33499         Perhaps there's a better way, but this fixes the immediate problem.
33500         Problem reported by Bruno Haible in
33501         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00478.html>.
33503 2011-05-22  Bruno Haible  <bruno@clisp.org>
33505         xgetcwd: Simplify autoconf macro.
33506         * m4/xgetcwd.m4 (gl_XGETCWD): Don't require gl_FUNC_GETCWD.
33508 2011-05-22  Bruno Haible  <bruno@clisp.org>
33510         New module 'mktime-internal'.
33511         * modules/mktime-internal: New file.
33512         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Move contents to ...
33513         * m4/mktime.m4 (gl_FUNC_MKTIME_INTERNAL): New macro. Define
33514         mktime_internal as a C macro if libc has __mktime_internal.
33515         * modules/timegm (Depends-on): Add mktime-internal. Remove mktime. Add
33516         conditions.
33517         * MODULES.html.sh (Date and time <time.h>): Add mktime-internal.
33519 2011-05-22  Bruno Haible  <bruno@clisp.org>
33521         timegm: Correct mktime replacement statements.
33522         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Set REPLACE_MKTIME, instead of
33523         defining mktime as a C macro. This completes a 2009-07-28 commit.
33525 2011-05-22  Bruno Haible  <bruno@clisp.org>
33527         timegm: Simplify autoconf macro.
33528         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Don't require gl_TIME_R.
33530 2011-05-21  Paul Eggert  <eggert@cs.ucla.edu>
33532         clock-time: change to LGPLv2+.
33533         * modules/clock-time: Change from GPL to LGPLv2+.  Actually, it's
33534         BSD-like but we have no mark for that; this is good enough for now.
33536 2011-05-21  Bruno Haible  <bruno@clisp.org>
33538         strerror_r: Fix comments.
33539         * lib/strerror_r.c (strerror_r): Fix comment about Cygwin and sys_nerr.
33541 2011-05-21  Bruno Haible  <bruno@clisp.org>
33543         relocatable-prog-wrapper: Fix possible link error.
33544         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Move determination of
33545         HAVE_SETENV and REPLACE_SETENV and AC_LIBOBJ invocation from here...
33546         (gl_FUNC_SETENV): ... to here.
33547         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL_SEPARATE): Update comment.
33548         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): Likewise.
33550 2011-05-21  Bruno Haible  <bruno@clisp.org>
33552         relocatable-prog-wrapper: Assume strerror() exists.
33553         * modules/relocatable-prog-wrapper (Files): Remove lib/strerror.c,
33554         m4/strerror.m4.
33555         (configure.ac): Don't invoke gl_FUNC_STRERROR_SEPARATE.
33556         * lib/relocwrapper.c: Remove mention of strerror module.
33557         * lib/strerror.c: Assume REPLACE_STRERROR is 1.
33558         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Remove macro.
33559         (gl_FUNC_STRERROR): Inline it here. Don't define REPLACE_STRERROR as a
33560         C macro.
33562 2011-05-21  Bruno Haible  <bruno@clisp.org>
33564         select: Simplify replacement idiom.
33565         * m4/select.m4 (gl_FUNC_SELECT): Set REPLACE_SELECT also on native
33566         Win32 platforms.
33567         * lib/sys_select.in.h (select): Simplify accordingly.
33568         * modules/select (Depends-on): Likewise.
33570 2011-05-21  Bruno Haible  <bruno@clisp.org>
33572         mkdir-p: Simplify autoconf macro.
33573         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't require gl_FUNC_LCHMOD,
33574         gl_FUNC_LCHOWN.
33576 2011-05-21  Eric Blake  <eblake@redhat.com>
33578         strerror_r: avoid clobbering strerror on cygwin
33579         * lib/strerror_r.c (strerror_r): Don't use cygwin's strerror_r;
33580         fall back instead to sys_errlist.
33581         * modules/strerror (configure.ac): Add witness.
33582         * tests/test-strerror_r.c (main): Enhance test.
33583         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
33584         * tests/test-perror2.c (main): Free memory before exit.
33586 2011-05-21  Bruno Haible  <bruno@clisp.org>
33588         mkdtemp: Use gnulib naming conventions.
33589         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Renamed from gt_FUNC_MKDTEMP.
33590         * modules/mkdtemp (configure.ac): Update.
33592 2011-05-20  Eric Blake  <eblake@redhat.com>
33594         strerror_r: avoid corrupting errno on Solaris
33595         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Check for Solaris behavior.
33596         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
33598         strerror_r: avoid compiler warning
33599         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't return a char*.
33601         strerror_r: simplify AIX code
33602         * lib/strerror_r.c (strerror_r): Filter out buflen of 1 up front.
33604         test-perror: avoid spurious failure on FreeBSD
33605         * modules/perror-tests (Depends-on): Add strerror, now that
33606         strerror_r no longer pulls it in.
33608 2011-05-20  Bruno Haible  <bruno@clisp.org>
33610         strerror_r-posix: Remove unused dependencies.
33611         * modules/strerror_r-posix (Depends-on): Remove strerror.
33612         Reported by Eric Blake.
33614 2011-05-20  Paul Eggert  <eggert@cs.ucla.edu>
33616         intprops: remove assumption about A|B representation
33617         * lib/intprops.h (_GL_BINARY_OP_OVERFLOW): Do not assume that A|B
33618         is a valid integer if both A and B are.  Although this is true for
33619         all known practical hosts, the C standard doesn't guarantee it,
33620         and the code need not assume it.  Also, this change may work around
33621         HP-UX 11.23 and IRIX 6.5 cc bugs reported by Bruno Haible in
33622         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00426.html>.
33624 2011-05-20  Eric Blake  <eblake@redhat.com>
33626         perror: work around FreeBSD bug
33627         * m4/perror.m4 (gl_FUNC_PERROR): Also replace perror if strerror_r
33628         is broken.  Move AC_LIBOBJ...
33629         * modules/perror (configure.ac): Here.
33630         * doc/posix-functions/perror.texi (perror): Document this.
33631         * tests/test-perror2.c (main): Enhance test.
33633         test-perror: check for strerror interactions
33634         * tests/macros.h (STREQ): Add macro.
33635         * modules/perror-tests (Files): Add second test.
33636         * tests/test-perror2.c (main): New file.
33637         * doc/posix-functions/perror.texi (perror): Document glibc bug.
33639         test-perror: rewrite to use init script
33640         * modules/perror-tests (Files): Add init.sh.
33641         * tests/test-perror.sh: Use temporary directory.
33643 2011-05-20  Jim Meyering  <meyering@redhat.com>
33645         maint: replace misused "a" with "an"
33646         * doc/intprops.texi: "a integer"
33647         * doc/regex.texi: "a explanation"
33648         * lib/alignof.h: "a object"
33649         * lib/argmatch.h: "a explanation"
33650         * lib/argp-help.c: "a option" and "a OPTION_DOC"
33651         * lib/stdint.in.h: "a integer"
33652         * lib/userspec.c: "a owner"
33653         * doc/gnulib.texi: Fix "a idea", and reword.
33655 2011-05-19  Jim Meyering  <meyering@redhat.com>
33657         maint: correct misuse of "a" and "an"
33658         * doc/regex.texi (Collating Symbol Operators): s/an close.../a close/
33659         * lib/argp-help.c: "an docum...": s/an/a/
33660         * lib/argp-parse.c: "An vector": s/An/A/
33661         * lib/execute.c: "an native": s/an/a/
33662         * lib/spawn-pipe.c: Likewise.
33663         * lib/gc.h: "an Gc_rc": s/an/a/
33664         * lib/unigbrk.in.h: "an grapheme": s/an/a/
33665         * lib/fts.c: "an stat.st_dev": s/an/a/
33667 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
33669         intprops-tests: work around HP-UX 11.23 cc bug with constants
33670         * tests/test-intprops.c (VERIFY): New macro.
33671         (main): Use it, instead of verify, to work around the compiler bug; see
33672         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
33674         intprops: work around IRIX 6.5 cc bug with 0u - 0u + -1
33675         See http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00406.html
33676         * lib/intprops.h (_GL_INT_NEGATE_CONVERT): New macro.
33677         (_GL_INT_SIGNED, _GL_INT_MAXIMUM, _GL_DIVIDE_OVERFLOW):
33678         (_GL_REMAINDER_OVERFLOW): Use it.
33680         intprops-tests: revert unsigned part of previous change
33681         * tests/test-intprops.c (UINT_MAX, ULONG_MAX, UINTMAX_MAX, U0, U1):
33682         Remove; they weren't actually needed.  All uses of U0 and U1 removed,
33683         and other casts to 'unsigned int' reverted to 'u' suffixes.  See
33684         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00406.html>.
33686 2011-05-19  Bruno Haible  <bruno@clisp.org>
33688         strerror_r: Work around strerror_r() change in Cygwin 1.7.8.
33689         * lib/strerror_r.c (strerror_r) [CYGWIN]: Recognize when the system's
33690         strerror_r() returned without filling the buffer.
33691         Reported by Eric Blake.
33693 2011-05-19  Eric Blake  <eblake@redhat.com>
33695         strerror_r: guarantee unchanged errno
33696         * lib/strerror_r.c (strerror_r): Guarantee unchanged errno.
33697         * lib/strerror-impl.h (strerror): Set errno to match strerror_r
33698         failure.
33699         * tests/test-strerror_r.c (main): Enhance test.
33701 2011-05-19  Bruno Haible  <bruno@clisp.org>
33703         strerror_r: Reorder #if blocks.
33704         * lib/strerror_r.c (strerror_r): Reorder conditionals in the function
33705         for consistency with the previous commit.
33707 2011-05-19  Bruno Haible  <bruno@clisp.org>
33709         perror: Avoid clobbering the strerror buffer when possible.
33710         * lib/strerror-impl.h: New file, extracted from lib/strerror.c.
33711         * lib/strerror.c: Include it.
33712         * modules/strerror (Files): Add lib/strerror-impl.h.
33713         * lib/perror.c: Include <stdlib.h>, intprops.h, verify.h.
33714         (my_strerror): New function, defined through lib/strerror-impl.h.
33715         (perror): Use it instead of strerror.
33716         * modules/perror (Files): Add lib/strerror-impl.h.
33717         (Depends-on): Remove strerror. Add intprops, verify, strerror_r-posix.
33719 2011-05-19  Eric Blake  <eblake@redhat.com>
33721         strerror_r: fix on newer cygwin
33722         * lib/strerror_r.c (strerror_r): Cygwin now has
33723         __xpg_strerror_r, use it.
33725 2011-05-19  Bruno Haible  <bruno@clisp.org>
33727         strerror_r: Avoid clobbering the strerror buffer when possible.
33728         * lib/strerror.c: Define _NETBSD_SOURCE. Include <nl_types.h>.
33729         (sys_nerr, sys_errlist): New declarations.
33730         (strerror_r): Be careful not to clobber the strerror buffer on NetBSD,
33731         HP-UX, native Win32, IRIX, and 32-bit Solaris.
33732         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Test whether catgets exists.
33734 2011-05-19  Bruno Haible  <bruno@clisp.org>
33736         strerror_r: Fix test failure on mingw.
33737         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't define
33738         EXTEND_STRERROR_R.
33739         * lib/strerror_r.c (strerror_r): Test the various GNULIB_defined_*
33740         macros from errno.in.h instead.
33742 2011-05-19  Eric Blake  <eblake@redhat.com>
33744         strerror: relax test for Solaris
33745         * tests/test-strerror.c (main): Permit Solaris behavior.
33746         * tests/test-strerror_r.c (main): Likewise.
33748         strerror: enforce POSIX ruling on strerror(0)
33749         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Expose BSD bug.
33750         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
33751         * lib/strerror_r.c (rpl_strerror_r): Work around it.
33752         * doc/posix-functions/strerror.texi (strerror): Document it.
33753         * doc/posix-functions/strerror_r.texi (strerror_r): Likewise.
33754         * tests/test-strerror.c (main): Strengthen test.
33755         * tests/test-strerror_r.c (main): Likewise.
33757 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
33759         intprop-tests: port to older and more-pedantic compilers
33760         * modules/intprops-tests (Files): Add tests/macros.h.
33761         * tests/test-intprops.c: Include macros.h.
33762         (TYPE_IS_INTEGER): Use ASSERT, not verify, to test this macro, as
33763         it's no longer documented to expand to an integer constant expression.
33764         (TYPE_SIGNED): Use ASSERT, not verify, to test this macro when the
33765         argument is floating point, as it's no longer documented to expand
33766         to an integer constant expression in that case.
33767         (UINT_MAX, ULONG_MAX, UINTMAX_MAX): Redefine to work around
33768         compiler bugs reported by Bruno Haible.  See
33769         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
33770         (U0, U1): New constants, to work around the same bugs.  Also,
33771         in tests, use e.g., "(unsigned int) 39" rather than "39u".
33773         intprops: work around C compiler bugs
33774         * lib/intprops.h (INT_MULTIPLY_RANGE_OVERFLOW): Work around compiler
33775         bug in Sun C 5.11 2010/08/13 and other compilers; see
33776         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
33778         intprops: TYPE_IS_INTEGER, TYPE_SIGNED not integer constant exprs
33779         * doc/intprops.texi (Integer Type Determination): Fix
33780         documentation for TYPE_IS_INTEGER: it returns an constant
33781         expression, not an integer constant expression.  Fix doc for
33782         TYPE_SIGNED: it returns an integer constant expression only if its
33783         argument is an integer type.  (TYPE_IS_INTEGER is the same, but is
33784         hardly worth documented that way....)
33786 2011-05-18  Bruno Haible  <bruno@clisp.org>
33788         strerror_r: Avoid clobbering the strerror buffer when possible.
33789         * lib/strerror_r.c (strerror_r): Merge the three implementations.
33790         Handle gnulib defined errno values here. When strerror() returns NULL
33791         or an empty string, return EINVAL.
33792         * lib/strerror.c (strerror): Always call strerror_r. Don't handle
33793         gnulib defined errno values here.
33794         * modules/strerror (Depends-on): Add verify, strerror_r-posix.
33796 2011-05-18  Eric Blake  <eblake@redhat.com>
33798         fnmatch: avoid compiler warning
33799         * lib/fnmatch_loop.c (FCT): Use correct type.
33800         Reported by Matthias Bolte.
33802 2011-05-13  Jim Meyering  <meyering@redhat.com>
33804         maint.mk: three new prohibit_<HDR>_without_use rules
33805         * top/maint.mk (sc_prohibit_stdio--_without_use): New rule.
33806         (sc_prohibit_stdio-safer_without_use): Likewise.
33807         (sc_prohibit_xfreopen_without_use): Likewise.
33809 2011-05-17  Jim Meyering  <meyering@redhat.com>
33811         announce-gen: fail if the NEWS delta is empty
33812         If there's nothing noteworthy in NEWS, then either you forgot
33813         or you shouldn't be releasing.
33814         * build-aux/announce-gen: Die if the NEWS delta is effectively empty.
33816 2011-05-17  Pádraig Brady  <P@draigBrady.com>
33818         * top/maint.mk (_gl_tight_scope:): Automatically exclude compiler
33819         reserved symbols starting with double underscore from the check.
33821 2011-05-17  Paul Eggert  <eggert@cs.ucla.edu>
33823         intprops: add doc
33824         * doc/intprops.texi: New file, documenting intprops.
33825         * doc/gnulib.texi (Particular Modules): Include it.
33827         verify: add doc to gnulib manual and fix example
33828         * doc/gnulib.texi (Compile-time Assertions): New node, for 'verify'.
33829         * doc/verify.texi (Compile-time Assertions): Update 'assert' doc.
33830         (Compile-time Assertions): Fix example so it can't overflow.
33832 2011-05-17  Jim Meyering  <meyering@redhat.com>
33834         warnings.m4: don't usurp save_CPPFLAGS variable name
33835         * m4/warnings.m4: Prefix local temporary variable name with gl_.
33837         doc: fix typo
33838         * doc/gnulib-intro.texi (Target Platforms): s/is/are/
33840 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
33841             Bruno Haible  <bruno@clisp.org>
33843         doc: Tweak recent change.
33844         * README (Portability guidelines): Tweak new text.
33845         * doc/gnulib-intro.texi (Target Platforms): Likewise. Mention
33846         Interix 6.1.
33848 2011-05-16  Eric Blake  <eblake@redhat.com>
33850         inttypes: avoid autoconf warning
33851         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Only expand once.
33852         * m4/stdint.m4 (gl_STDINT_H): Likewise.
33854 2011-05-16  Sam Steingold  <sds@gnu.org>
33855         and Eric Blake  <eblake@redhat.com>
33857         vc-list-files: accept multiple directory operands
33858         * build-aux/vc-list-files: Iterate over all remaining operands.
33860 2011-05-16  Bruno Haible  <bruno@clisp.org>
33862         Fix confusion regarding deprecated modules.
33863         * modules/calloc (Status, Notice): Mark module as deprecated, not
33864         obsolete.
33865         * modules/fnmatch-posix (Status, Notice): Likewise.
33866         * modules/getdate (Status, Notice): Likewise.
33867         * modules/getopt (Status, Notice): Likewise.
33868         * modules/malloc (Status, Notice): Likewise.
33869         * modules/pipe (Status, Notice): Likewise.
33870         * modules/realloc (Status, Notice): Likewise.
33871         * modules/rename-dest-slash (Status, Notice): Likewise.
33872         * modules/unictype/bidicategory-all (Status, Notice): Likewise.
33873         * modules/unictype/bidicategory-byname (Status, Notice): Likewise.
33874         * modules/unictype/bidicategory-name (Status, Notice): Likewise.
33875         * modules/unictype/bidicategory-of (Status, Notice): Likewise.
33876         * modules/unictype/bidicategory-test (Status, Notice): Likewise.
33878 2011-05-16  Bruno Haible  <bruno@clisp.org>
33880         doc: List the target platforms.
33881         * doc/gnulib-intro.texi (Target Platforms): New section.
33882         * doc/gnulib.texi (Introduction): Update menu.
33883         * README (Portability guidelines): Refer to the new section. Update
33884         statement about oldest supported environment. Remove rationale why
33885         <errno.h>, <string.h>, <stdlib.h> are assumed. Update example of an
33886         unportable C89 function.
33887         Reported by Bastien Roucariès <roucaries.bastien@gmail.com> and
33888         Charles Wilson <cygwin@cwilson.fastmail.fm>. Feedback from Paul Eggert.
33890 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
33892         * build-aux/bootstrap (gnulib_tool): Handle symlink timestamps better.
33894 2011-05-13  Paul Eggert  <eggert@cs.ucla.edu>
33896         intprops-tests: new module
33897         * modules/intprops-tests, tests/test-intprops.c: New files.
33899         intprops: add safe, portable integer overflow checking
33900         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_TWOS_COMPLEMENT):
33901         (_GL_INT_SIGNED, _GL_INT_MINIMUM, _GL_INT_MAXIMUM):
33902         (_GL_SIGNED_INT_MINIMUM, INT_ADD_RANGE_OVERFLOW):
33903         (INT__SUBTRACT__RANGE_OVERFLOW, INT_NEGATE_RANGE_OVERFLOW):
33904         (INT_MULTIPLY_RANGE_OVERFLOW, INT_REMAINDER_RANGE_OVERFLOW):
33905         (INT_LEFT_SHIFT_RANGE_OVERFLOW, _GL_ADD_OVERFLOW):
33906         (_GL__SUBTRACT__OVERFLOW, _GL_MULTIPLY_OVERFLOW, _GL_DIVIDE_OVERFLOW):
33907         (_GL_REMAINDER_OVERFLOW, _GL_UNSIGNED_NEG_MULTIPLE, INT_ADD_OVERFLOW):
33908         (INT__SUBTRACT__OVERFLOW, INT_NEGATE_OVERFLOW, INT_MULTIPLY_OVERFLOW):
33909         (INT_DIVIDE_OVERFLOW, INT_REMAINDER_OVERFLOW):
33910         (INT_LEFT_SHIFT_OVERFLOW, _GL_BINARY_OP_OVERFLOW): New macros.
33912 2011-05-12  James Youngman  <jay@gnu.org>
33914         Add a test for glibc's Bugzilla bug #12378.
33915         * m4/fnmatch.m4: Use gnulib's fnmatch if the system fnmatch
33916         doesn't allow the literal matching of a lone "[" (which is
33917         required by POSIX).
33918         * tests/test-fnmatch.c (main): Check that "[/b" matches itself.
33920 2011-05-11  Ulrich Drepper  <drepper@gmail.com>
33922         Sync glibc change fixing Bugzilla bug #12378.
33923         * lib/fnmatch_loop.c (FCT): When matching '[' keep track of
33924         beginning and fall back to matching as normal character if the
33925         string ends before the matching ']' is found.  This is what POSIX
33926         requires.
33928 2011-05-13  Eric Blake  <eblake@redhat.com>
33930         getcwd-lgpl: relax test for FreeBSD
33931         * doc/posix-functions/getcwd.texi (getcwd): Document portability
33932         issue.
33933         * tests/test-getcwd-lgpl.c (main): Relax test.
33934         Reported by Matthias Bolte.
33936 2011-05-11  Eric Blake  <eblake@redhat.com>
33938         test-fflush: silence compiler warning
33939         * tests/test-fflush.c (main): Don't fclose a NULL pointer.
33941 2011-05-11  Bruno Haible  <bruno@clisp.org>
33943         canonicalize, canonicalize-lgpl: Avoid crash dialog on MacOS X.
33944         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Add GL_NOCRASH code.
33945         * modules/canonicalize (Depends-on): Add 'nocrash'.
33946         * modules/canonicalize-lgpl (Depends-on): Likewise.
33947         * doc/posix-functions/realpath.texi: Update platforms list.
33948         Reported by Ryan Schmidt <ryandesign@macports.org>.
33950 2011-05-11  Bruno Haible  <bruno@clisp.org>
33952         group-member: Declare function in <unistd.h>.
33953         * lib/unistd.in.h (group_member): New declaration.
33954         * lib/group-member.h: Remove file.
33955         * lib/group-member.c: Include <unistd.h> instead of group-member.h.
33956         * tests/test-unistd-c++.cc: Check signature of group_member.
33957         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Require
33958         gl_UNISTD_H_DEFAULTS. Set HAVE_GROUP_MEMBER.
33959         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether group_member is declared.
33960         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GROUP_MEMBER,
33961         HAVE_GROUP_MEMBER.
33962         * modules/group-member (Files): Remove lib/group-member.h.
33963         (Depends-on): Add unistd. Specify conditions.
33964         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
33965         (Include): Change to <unistd.h>.
33966         * modules/unistd (Makefile.am): Substitute GNULIB_GROUP_MEMBER,
33967         HAVE_GROUP_MEMBER.
33968         * NEWS: Mention the change.
33969         * lib/euidaccess.c: Don't include group-member.h.
33971 2011-05-11  Bruno Haible  <bruno@clisp.org>
33973         group-member: Document module.
33974         * doc/glibc-functions/group_member.texi: Mention the 'group-member'
33975         module.
33977 2011-05-11  Bruno Haible  <bruno@clisp.org>
33979         fclose: Fix mistake earlier today.
33980         * lib/fclose.c (rpl_fclose): Don't assume that EOF < 0.
33982 2011-05-11  Eric Blake  <eblake@redhat.com>
33984         fclose: preserve fflush errors
33985         * lib/fclose.c (rpl_fclose): Don't lose fflush errors.
33986         Reported by Jim Meyering.
33988         bootstrap: support a prereq of 'rpcgen -' on RHEL5
33989         * build-aux/bootstrap (check_versions): When no specific version
33990         is required, merely check that the app produces an exit status
33991         that indicates its existence.
33993         maint.mk: drop redundant check
33994         * top/maint.mk (sc_the_the): Delete; sc_prohibit_doubled_word does
33995         the same but better.
33997 2011-05-11  Bruno Haible  <bruno@clisp.org>
33999         fclose: Fix possible link error.
34000         * lib/fclose.c (rpl_fclose): Invoke _gl_unregister_fd, not
34001         unregister_shadow_fd. Improve comments.
34002         * lib/sockets.c (close_fd_maybe_socket): Add comments. Reported by
34003         Eric Blake.
34005 2011-05-11  Jim Meyering  <meyering@redhat.com>
34007         maint.mk: improve "can not" detection and generalize rule name
34008         * top/maint.mk (sc_prohibit_undesirable_word_seq): Renamed from
34009         sc_prohibit_can_not, since we'll probably add a few more word pairs here.
34010         Use the same technique as in sc_prohibit_doubled_word, so that
34011         we recognize "can not" also when the words are separated by a newline.
34012         Suggested by Eric Blake.
34013         (perl_filename_lineno_text_): Define.  Factored out of...
34014         (prohibit_doubled_word_): ...here.  Use the new definition.
34015         (prohibit_undesirable_word_seq_): New var.  Use it here, too.
34016         (prohibit_undesirable_word_seq_RE_): New overridable variable.
34017         (ignore_undesirable_word_sequence_RE_): New overridable variable.
34019 2011-05-10  Eric Blake  <eblake@redhat.com>
34021         fclose: avoid double close race when possible
34022         * lib/fclose.c (rpl_fclose): Rewrite to avoid double-close race on
34023         all but WINDOWS_SOCKETS.
34025 2011-05-10  Bastien Roucariès  <roucaries.bastien@gmail.com>
34027         openat: correct new comment
34028         * lib/openat-proc.c (openat_proc_name): Correct the comment.
34030 2011-05-10  Jim Meyering  <meyering@redhat.com>
34032         openat: add comments
34033         * lib/openat-proc.c (openat_proc_name): Add comments,
34034         mostly from Eric Blake.
34036 2011-05-09  Eric Blake  <eblake@redhat.com>
34038         openat: reduce syscalls in first probe of /proc
34039         * lib/openat-proc.c (openat_proc_name): Require that /proc/self/fd
34040         be a directory.  Simplify the probe for .. bugs.
34041         * modules/openat (Depends-on): Drop same-inode.
34042         Reported by Bastien ROUCARIES.
34044 2011-05-09  Jim Meyering  <meyering@redhat.com>
34046         maint.mk: change semantics/name of tight_scope variables
34047         * top/maint.mk (_gl_TS_var_match, _gl_TS_function_match):
34048         Rename variables to align with semantics that make them more useful.
34050         maint.mk: tweak new rule's name not to impinge
34051         * top/maint.mk (_gl_tight_scope): Rename from sc_tight_scope-0.
34052         (sc_tight_scope): Use new rule name rather than $@-0.
34054         maint.mk: add a syntax-check rule to ensure tightly-scoped symbols
34055         * top/maint.mk (sc_tight_scope): New rule.
34056         (sc_tight_scope-0): New rule, ifdef'd out.
34057         (_gl_TS_dir): Default.
34058         (_gl_TS_unmarked_extern_functions, _gl_TS_function_regex): Define.
34059         (_gl_TS_unmarked_extern_vars, _gl_TS_var_regex): Define.
34061 2011-05-09  Simon Josefsson  <simon@josefsson.org>
34063         * m4/gc.m4: Remove gl_PREREQ_GC (not used).  Reported by Bruno
34064         Haible <bruno@clisp.org>.
34066 2011-05-08  Bruno Haible  <bruno@clisp.org>
34068         Comments.
34069         * m4/isnanf.m4: Add comment.
34070         * m4/isnanl.m4: Likewise.
34072 2011-05-08  Bruno Haible  <bruno@clisp.org>
34074         glob: Remove obsolete macro.
34075         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): Remove macro.
34077 2011-05-08  Paul Eggert  <eggert@cs.ucla.edu>
34079         intprops: Sun C 5.11 supports __typeof__
34080         * lib/intprops.h (_GL_HAVE___TYPEOF__): New macro, which is set
34081         for either GCC 2 or later, as before, or for Sun C 5.11 or later,
34082         which is new.
34083         (_GL_SIGNED_TYPE_OR_EXPR): Use it.
34085         intprops: switch to usual gnulib indenting and naming
34086         * lib/intprops.h (_GL_INTPROPS_H): Rename from GL_INTPROPS_H.
34087         (_GL_SIGNED_TYPE_OR_EXPR): Rename from signed_type_or_expr__.
34089         * tests/test-inttostr.c (IS_TIGHT): Adjust to above renaming.
34091 2011-05-08  Jim Meyering  <meyering@redhat.com>
34093         maint.mk: suppress "Entering/Leaving directory" diag in announcement
34094         * top/maint.mk (release-prep): Use make's --no-print-directory
34095         option when generating the announcement.  This eliminates the
34096         pesky "make[2]: Entering/Leaving directory" diagnostics in the
34097         generated announcement template.
34099 2011-05-08  Bruno Haible  <bruno@clisp.org>
34101         tzset: Fix gettimeofday wrapper on Solaris 2.6.
34102         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): When invoking
34103         gl_GETTIMEOFDAY_REPLACE_LOCALTIME, also set REPLACE_GETTIMEOFDAY.
34105 2011-05-07  Paul Eggert  <eggert@cs.ucla.edu>
34107         ignore-value, verify: Omit include files from lib_SOURCES.
34108         * modules/ignore-value, modules/verify (Makefile.am):
34109         Don't put ignore-value.h, or verify.h, into lib_SOURCES, as
34110         that leads Automake to duplicate use of am__objects_... variables
34111         in Makefile.in.  See
34112         <http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00257.html>.
34114 2011-05-07  Bruno Haible  <bruno@clisp.org>
34116         fclose: Simplify autoconf macro.
34117         * m4/fclose.m4 (gl_FUNC_FCLOSE): Assume gl_FUNC_FFLUSH_STDIN is
34118         defined.
34120 2011-05-07  Bruno Haible  <bruno@clisp.org>
34122         canonicalize-lgpl: Fix autoconf macro ordering bug.
34123         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Require
34124         gl_STDLIB_H_DEFAULTS.
34126 2011-05-06  Eric Blake  <eblake@redhat.com>
34128         maintainer-makefile: make sc_po_check easier to tune
34129         * top/maint.mk (sc_po_check): Allow overriding which non-VC files
34130         to probe for strings, such as an alternate location for gnulib.
34132         fclose: guarantee behavior on seekable stdin
34133         * modules/fclose (Depends-on): Add fflush.
34134         * doc/posix-functions/fclose.texi (fclose): Document this.
34135         * tests/test-fclose.c (main): Make test for this unconditional.
34137 2011-05-06  Bruno Haible  <bruno@clisp.org>
34139         fflush, fpurge: Relicense under LGPLv2+.
34140         * modules/fflush (License): Change from LGPLv3+ to LGPLv2+.
34141         * modules/fpurge (License): Likewise.
34142         With permission from Eric Blake and Jim Meyering.
34143         Suggested by Eric Blake.
34145 2011-05-06  Karl Berry  <karl@gnu.org>
34147         * MODULES.html.sh (func_all_modules): remove exit.
34149 2011-05-06  Jim Meyering  <meyering@redhat.com>
34151         maint.mk: use info-gnu@ as the default only for a stable release
34152         * top/maint.mk: Don't default to info-gnu for alpha or beta releases.
34153         For those, just use $(PACKAGE_BUGREPORT), in which case we don't have
34154         to set the Mail-Followup-To header.  Prompted by Reuben Thomas in
34155         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26488
34157 2011-05-05  Paul Eggert  <eggert@cs.ucla.edu>
34159         assert-h: new module, which supports C1X-style static_assert
34160         * lib/assert.in.h, m4/assert_h.m4, modules/assert-h: New files.
34161         * lib/verify.h: Revamp so that this can be copied into assert.h,
34162         while retaining the ability to use it standalone as before.
34163         Rename private identifiers so as not to encroach on the
34164         standard C namespace, since this is now used by assert.h.
34165         (_GL_VERIFY_TYPE): New macro, factoring out differing parts of
34166         the old verify_true.
34167         (_GL_VERIFY_TRUE): New macro, with much of the contents of
34168         the old verify_true.  Use _GL_VERIFY_TYPE.
34169         (_GL_VERIFY): New macro, with much of the contents of the old verify.
34170         (static_assert): New macro, if _GL_STATIC_ASSERT_H
34171         is defined and static_assert is not; _GL_STATIC_ASSERT_H is
34172         defined when this file is copied into the replacement assert.h.
34173         (_Static_assert): New macro, if _GL_STATIC_ASSERT_H is defined
34174         and _Static_assert is not built in.
34175         (verify_true, verify): Define only if _GL_STATIC_ASSERT_H is not
34176         defined, and use the new macros mentioned above.
34177         * doc/posix-headers/assert.texi: Document this.
34179 2011-05-05  Bruno Haible  <bruno@clisp.org>
34181         fclose, fflush: Respect rules for use of AC_LIBOBJ.
34182         * m4/fflush.m4 (gl_FUNC_FFLUSH): Don't invoke gl_REPLACE_FCLOSE.
34183         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_FFLUSH_STDIN and
34184         gl_REPLACE_FCLOSE here.
34185         * modules/fflush (Depends-on): Remove fclose.
34186         * doc/posix-functions/fclose.texi: Mention module 'fflush' only in
34187         combination with module 'fclose'.
34189 2011-05-05  Bruno Haible  <bruno@clisp.org>
34191         fflush, fseeko: Respect rules for use of AC_LIBOBJ.
34192         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): New macro, extracted from
34193         gl_FUNC_FFLUSH.
34194         (gl_FUNC_FFLUSH): Use it.
34195         (gl_REPLACE_FFLUSH): Don't invoke gl_REPLACE_FSEEKO.
34196         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Invoke gl_FUNC_FFLUSH_STDIN and
34197         gl_REPLACE_FSEEKO here.
34199 2011-05-05  Bruno Haible  <bruno@clisp.org>
34201         tzset: Relicense under LGPL.
34202         * modules/tzset (License): Change to LGPL.
34203         No agreement needed; it's a no-op.
34205         strtoimax, strtoumax: Relicense under LGPL.
34206         * modules/strtoimax (License): Change to LGPL.
34207         * modules/strtoumax (License): Likewise.
34208         With permission from Jim Meyering, Paul Eggert:
34209         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00124.html>
34210         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00109.html>
34212         getgroups: Relicense under LGPL.
34213         * modules/getgroups (License): Change to LGPL.
34214         With permission from Jim Meyering, Paul Eggert, Eric Blake:
34215         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00111.html>
34216         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00148.html>
34217         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
34219         nanosleep: Relicense under LGPL.
34220         * modules/nanosleep (License): Change to LGPL.
34221         With permission from Jim Meyering, Paul Eggert, Eric Blake, Bruno
34222         Haible:
34223         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00111.html>
34224         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00148.html>
34225         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
34226         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00131.html>
34228         futimens: Relicense under LGPL.
34229         * modules/futimens (License): Change to LGPL.
34230         With permission from Eric Blake:
34231         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
34233         fflush: Relicense under LGPL.
34234         * modules/fflush (License): Change to LGPL.
34235         With permission from Eric Blake, Bruno Haible, Jim Meyering:
34236         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
34237         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00131.html>
34238         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00133.html>
34240         tmpfile: Relicense under LGPL.
34241         * modules/tmpfile (License): Change to LGPL.
34242         With permission from Ben Pfaff:
34243         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
34245         isfinite: Relicense under LGPL.
34246         * modules/isfinite (License): Change to LGPL.
34247         With permission from Ben Pfaff, Bruno Haible:
34248         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
34249         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00130.html>
34251         acosl..tanl: Relicense under LGPL.
34252         * modules/acosl (License): Change to LGPL.
34253         * modules/asinl (License): Likewise.
34254         * modules/atanl (License): Likewise.
34255         * modules/cosl (License): Likewise.
34256         * modules/expl (License): Likewise.
34257         * modules/logl (License): Likewise.
34258         * modules/sinl (License): Likewise.
34259         * modules/sqrtl (License): Likewise.
34260         * modules/tanl (License): Likewise.
34261         Source code originally from glibc and Paolo Bonzini. Agreements:
34262         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00137.html>
34263         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00128.html>
34265 2011-05-05  Bruno Haible  <bruno@clisp.org>
34267         signal: Define sighandler_t.
34268         * lib/signal.in.h (sighandler_t): New type.
34269         * m4/signal_h.m4 (gl_SIGNAL_H): Require AC_USE_SYSTEM_EXTENSIONS. Test
34270         whether sighandler_t is defined.
34271         (gl_SIGNAL_H_DEFAULTS): Initialize HAVE_SIGHANDLER_T.
34272         * modules/signal (Depends-on): Add extensions.
34273         (Makefile.am): Substitute HAVE_SIGHANDLER_T.
34274         * doc/posix-headers/signal.texi: Mention the problem with sighandler_t.
34275         Suggested by Markus Steinborn <gnugv_maintainer@yahoo.de>.
34277 2011-05-05  Eric Blake  <eblake@redhat.com>
34279         maint: remove useless REPLACE_*_H macros
34280         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Delete.
34281         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
34282         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
34283         * m4/poll_h.m4 (gl_REPLACE_POLL_H): Likewise.
34284         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
34285         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
34286         * m4/wchar_h.m4 (gl_REPLACE_WCHAR_H): Likewise.
34287         * m4/btowc.m4: Update callers.
34288         * m4/dirfd.m4: Likewise.
34289         * m4/duplocale.m4: Likewise.
34290         * m4/fchdir.m4: Likewise.
34291         * m4/fdopendir.m4: Likewise.
34292         * m4/inet_ntop.m4: Likewise.
34293         * m4/inet_pton.m4: Likewise.
34294         * m4/ioctl.m4: Likewise.
34295         * m4/mbrlen.m4: Likewise.
34296         * m4/mbrtowc.m4: Likewise.
34297         * m4/mbsinit.m4: Likewise.
34298         * m4/mbsnrtowcs.m4: Likewise.
34299         * m4/mbsrtowcs.m4: Likewise.
34300         * m4/poll.m4: Likewise.
34301         * m4/setlocale.m4: Likewise.
34302         * m4/wcrtomb.m4: Likewise.
34303         * m4/wcsnrtombs.m4: Likewise.
34304         * m4/wcsrtombs.m4: Likewise.
34305         * m4/wctob.m4: Likewise.
34306         * m4/wcwidth.m4: Likewise.
34307         * modules/posix_spawn: Likewise.
34308         * modules/posix_spawn_file_actions_addclose: Likewise.
34309         * modules/posix_spawn_file_actions_adddup2: Likewise.
34310         * modules/posix_spawn_file_actions_addopen: Likewise.
34311         * modules/posix_spawn_file_actions_destroy: Likewise.
34312         * modules/posix_spawn_file_actions_init: Likewise.
34313         * modules/posix_spawnattr_destroy: Likewise.
34314         * modules/posix_spawnattr_getflags: Likewise.
34315         * modules/posix_spawnattr_getpgroup: Likewise.
34316         * modules/posix_spawnattr_getschedparam: Likewise.
34317         * modules/posix_spawnattr_getschedpolicy: Likewise.
34318         * modules/posix_spawnattr_getsigdefault: Likewise.
34319         * modules/posix_spawnattr_getsigmask: Likewise.
34320         * modules/posix_spawnattr_init: Likewise.
34321         * modules/posix_spawnattr_setflags: Likewise.
34322         * modules/posix_spawnattr_setpgroup: Likewise.
34323         * modules/posix_spawnattr_setschedparam: Likewise.
34324         * modules/posix_spawnattr_setschedpolicy: Likewise.
34325         * modules/posix_spawnattr_setsigdefault: Likewise.
34326         * modules/posix_spawnattr_setsigmask: Likewise.
34327         * modules/posix_spawnp: Likewise.
34329 2011-05-04  Reuben Thomas  <rrt@sc3d.org>
34331         Add option to do-release-commit-and-tag to specify branch.
34332         * build-aux/do-release-commit-and-tag: Add --branch.
34334 2011-05-03  Bruno Haible  <bruno@clisp.org>
34336         Avoid unnecessary compilation units, through conditional dependencies.
34337         * modules/accept (Depends-on): Add conditions to the dependencies.
34338         * modules/acosl (Depends-on): Likewise.
34339         * modules/argz (Depends-on): Likewise.
34340         * modules/asinl (Depends-on): Likewise.
34341         * modules/atanl (Depends-on): Likewise.
34342         * modules/atoll (Depends-on): Likewise.
34343         * modules/bind (Depends-on): Likewise.
34344         * modules/btowc (Depends-on): Likewise.
34345         * modules/canonicalize-lgpl (Depends-on): Likewise.
34346         * modules/ceil (Depends-on): Likewise.
34347         * modules/ceilf (Depends-on): Likewise.
34348         * modules/ceill (Depends-on): Likewise.
34349         * modules/chdir-long (Depends-on): Likewise.
34350         * modules/chown (Depends-on): Likewise.
34351         * modules/close (Depends-on): Likewise.
34352         * modules/connect (Depends-on): Likewise.
34353         * modules/cosl (Depends-on): Likewise.
34354         * modules/dirfd (Depends-on): Likewise.
34355         * modules/dprintf (Depends-on): Likewise.
34356         * modules/dprintf-posix (Depends-on): Likewise.
34357         * modules/error (Depends-on): Likewise.
34358         * modules/euidaccess (Depends-on): Likewise.
34359         * modules/expl (Depends-on): Likewise.
34360         * modules/faccessat (Depends-on): Likewise.
34361         * modules/fchdir (Depends-on): Likewise.
34362         * modules/fclose (Depends-on): Likewise.
34363         * modules/fcntl (Depends-on): Likewise.
34364         * modules/fdopendir (Depends-on): Likewise.
34365         * modules/fflush (Depends-on): Likewise.
34366         * modules/floor (Depends-on): Likewise.
34367         * modules/floorf (Depends-on): Likewise.
34368         * modules/floorl (Depends-on): Likewise.
34369         * modules/fnmatch (Depends-on): Likewise.
34370         * modules/fopen (Depends-on): Likewise.
34371         * modules/fprintf-posix (Depends-on): Likewise.
34372         * modules/frexp (Depends-on): Likewise.
34373         * modules/frexp-nolibm (Depends-on): Likewise.
34374         * modules/frexpl (Depends-on): Likewise.
34375         * modules/frexpl-nolibm (Depends-on): Likewise.
34376         * modules/fseek (Depends-on): Likewise.
34377         * modules/fsusage (Depends-on): Likewise.
34378         * modules/ftell (Depends-on): Likewise.
34379         * modules/ftello (Depends-on): Likewise.
34380         * modules/futimens (Depends-on): Likewise.
34381         * modules/getcwd (Depends-on): Likewise.
34382         * modules/getcwd-lgpl (Depends-on): Likewise.
34383         * modules/getdelim (Depends-on): Likewise.
34384         * modules/getdomainname (Depends-on): Likewise.
34385         * modules/getgroups (Depends-on): Likewise.
34386         * modules/gethostname (Depends-on): Likewise.
34387         * modules/getline (Depends-on): Likewise.
34388         * modules/getlogin_r (Depends-on): Likewise.
34389         * modules/getopt-posix (Depends-on): Likewise.
34390         * modules/getpeername (Depends-on): Likewise.
34391         * modules/getsockname (Depends-on): Likewise.
34392         * modules/getsockopt (Depends-on): Likewise.
34393         * modules/getsubopt (Depends-on): Likewise.
34394         * modules/getusershell (Depends-on): Likewise.
34395         * modules/glob (Depends-on): Likewise.
34396         * modules/grantpt (Depends-on): Likewise.
34397         * modules/iconv_open (Depends-on): Likewise.
34398         * modules/iconv_open-utf (Depends-on): Likewise.
34399         * modules/inet_ntop (Depends-on): Likewise.
34400         * modules/inet_pton (Depends-on): Likewise.
34401         * modules/ioctl (Depends-on): Likewise.
34402         * modules/isapipe (Depends-on): Likewise.
34403         * modules/isfinite (Depends-on): Likewise.
34404         * modules/isinf (Depends-on): Likewise.
34405         * modules/lchown (Depends-on): Likewise.
34406         * modules/ldexpl (Depends-on): Likewise.
34407         * modules/link (Depends-on): Likewise.
34408         * modules/linkat (Depends-on): Likewise.
34409         * modules/listen (Depends-on): Likewise.
34410         * modules/logl (Depends-on): Likewise.
34411         * modules/lstat (Depends-on): Likewise.
34412         * modules/mbrlen (Depends-on): Likewise.
34413         * modules/mbrtowc (Depends-on): Likewise.
34414         * modules/mbsinit (Depends-on): Likewise.
34415         * modules/mbsnrtowcs (Depends-on): Likewise.
34416         * modules/mbsrtowcs (Depends-on): Likewise.
34417         * modules/mbtowc (Depends-on): Likewise.
34418         * modules/memcmp (Depends-on): Likewise.
34419         * modules/mkdir (Depends-on): Likewise.
34420         * modules/mkdtemp (Depends-on): Likewise.
34421         * modules/mkfifo (Depends-on): Likewise.
34422         * modules/mkfifoat (Depends-on): Likewise.
34423         * modules/mknod (Depends-on): Likewise.
34424         * modules/mkostemp (Depends-on): Likewise.
34425         * modules/mkostemps (Depends-on): Likewise.
34426         * modules/mkstemp (Depends-on): Likewise.
34427         * modules/mkstemps (Depends-on): Likewise.
34428         * modules/mktime (Depends-on): Likewise.
34429         * modules/nanosleep (Depends-on): Likewise.
34430         * modules/open (Depends-on): Likewise.
34431         * modules/openat (Depends-on): Likewise.
34432         * modules/perror (Depends-on): Likewise.
34433         * modules/poll (Depends-on): Likewise.
34434         * modules/popen (Depends-on): Likewise.
34435         * modules/posix_spawn (Depends-on): Likewise.
34436         * modules/posix_spawn_file_actions_addclose (Depends-on): Likewise.
34437         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
34438         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
34439         * modules/posix_spawnp (Depends-on): Likewise.
34440         * modules/pread (Depends-on): Likewise.
34441         * modules/printf-posix (Depends-on): Likewise.
34442         * modules/ptsname (Depends-on): Likewise.
34443         * modules/putenv (Depends-on): Likewise.
34444         * modules/pwrite (Depends-on): Likewise.
34445         * modules/readline (Depends-on): Likewise.
34446         * modules/readlink (Depends-on): Likewise.
34447         * modules/readlinkat (Depends-on): Likewise.
34448         * modules/recv (Depends-on): Likewise.
34449         * modules/recvfrom (Depends-on): Likewise.
34450         * modules/regex (Depends-on): Likewise.
34451         * modules/remove (Depends-on): Likewise.
34452         * modules/rename (Depends-on): Likewise.
34453         * modules/renameat (Depends-on): Likewise.
34454         * modules/rmdir (Depends-on): Likewise.
34455         * modules/round (Depends-on): Likewise.
34456         * modules/roundf (Depends-on): Likewise.
34457         * modules/roundl (Depends-on): Likewise.
34458         * modules/rpmatch (Depends-on): Likewise.
34459         * modules/select (Depends-on): Likewise.
34460         * modules/send (Depends-on): Likewise.
34461         * modules/sendto (Depends-on): Likewise.
34462         * modules/setenv (Depends-on): Likewise.
34463         * modules/setlocale (Depends-on): Likewise.
34464         * modules/setsockopt (Depends-on): Likewise.
34465         * modules/shutdown (Depends-on): Likewise.
34466         * modules/sigaction (Depends-on): Likewise.
34467         * modules/signbit (Depends-on): Likewise.
34468         * modules/sigprocmask (Depends-on): Likewise.
34469         * modules/sinl (Depends-on): Likewise.
34470         * modules/sleep (Depends-on): Likewise.
34471         * modules/snprintf (Depends-on): Likewise.
34472         * modules/snprintf-posix (Depends-on): Likewise.
34473         * modules/socket (Depends-on): Likewise.
34474         * modules/sprintf-posix (Depends-on): Likewise.
34475         * modules/sqrtl (Depends-on): Likewise.
34476         * modules/stat (Depends-on): Likewise.
34477         * modules/strchrnul (Depends-on): Likewise.
34478         * modules/strdup-posix (Depends-on): Likewise.
34479         * modules/strerror (Depends-on): Likewise.
34480         * modules/strerror_r-posix (Depends-on): Likewise.
34481         * modules/strndup (Depends-on): Likewise.
34482         * modules/strnlen (Depends-on): Likewise.
34483         * modules/strptime (Depends-on): Likewise.
34484         * modules/strsep (Depends-on): Likewise.
34485         * modules/strsignal (Depends-on): Likewise.
34486         * modules/strstr-simple (Depends-on): Likewise.
34487         * modules/strtod (Depends-on): Likewise.
34488         * modules/strtoimax (Depends-on): Likewise.
34489         * modules/strtok_r (Depends-on): Likewise.
34490         * modules/strtoumax (Depends-on): Likewise.
34491         * modules/symlink (Depends-on): Likewise.
34492         * modules/symlinkat (Depends-on): Likewise.
34493         * modules/tanl (Depends-on): Likewise.
34494         * modules/tcgetsid (Depends-on): Likewise.
34495         * modules/tmpfile (Depends-on): Likewise.
34496         * modules/trunc (Depends-on): Likewise.
34497         * modules/truncf (Depends-on): Likewise.
34498         * modules/truncl (Depends-on): Likewise.
34499         * modules/uname (Depends-on): Likewise.
34500         * modules/unlink (Depends-on): Likewise.
34501         * modules/unlockpt (Depends-on): Likewise.
34502         * modules/unsetenv (Depends-on): Likewise.
34503         * modules/usleep (Depends-on): Likewise.
34504         * modules/utimensat (Depends-on): Likewise.
34505         * modules/vasprintf (Depends-on): Likewise.
34506         * modules/vdprintf (Depends-on): Likewise.
34507         * modules/vdprintf-posix (Depends-on): Likewise.
34508         * modules/vfprintf-posix (Depends-on): Likewise.
34509         * modules/vprintf-posix (Depends-on): Likewise.
34510         * modules/vsnprintf (Depends-on): Likewise.
34511         * modules/vsnprintf-posix (Depends-on): Likewise.
34512         * modules/vsprintf-posix (Depends-on): Likewise.
34513         * modules/wcrtomb (Depends-on): Likewise.
34514         * modules/wcscasecmp (Depends-on): Likewise.
34515         * modules/wcscspn (Depends-on): Likewise.
34516         * modules/wcsdup (Depends-on): Likewise.
34517         * modules/wcsncasecmp (Depends-on): Likewise.
34518         * modules/wcsnrtombs (Depends-on): Likewise.
34519         * modules/wcspbrk (Depends-on): Likewise.
34520         * modules/wcsrtombs (Depends-on): Likewise.
34521         * modules/wcsspn (Depends-on): Likewise.
34522         * modules/wcsstr (Depends-on): Likewise.
34523         * modules/wcstok (Depends-on): Likewise.
34524         * modules/wcswidth (Depends-on): Likewise.
34525         * modules/wctob (Depends-on): Likewise.
34526         * modules/wctomb (Depends-on): Likewise.
34527         * modules/wctype (Depends-on): Likewise.
34528         * modules/wcwidth (Depends-on): Likewise.
34529         * modules/write (Depends-on): Likewise.
34531 2011-05-03  Bruno Haible  <bruno@clisp.org>
34533         Support for conditional dependencies.
34534         * doc/gnulib.texi (Module description): Document the syntax of
34535         conditional dependencies.
34536         * gnulib-tool: New option --conditional-dependencies.
34537         (func_usage): Document it.
34538         (cond_dependencies): New variable.
34539         (func_get_automake_snippet_conditional,
34540         func_get_automake_snippet_unconditional): New functions, extracted from
34541         func_get_automake_snippet.
34542         (func_get_automake_snippet): Use them.
34543         (sed_first_32_chars): New variable.
34544         (func_module_shellfunc_name): New function.
34545         (func_module_shellvar_name): New function.
34546         (func_module_conditional_name): New function.
34547         (func_uncond_add_module, func_conddep_add_module, func_cond_module_p,
34548         func_cond_module_condition): New functions.
34549         (func_modules_transitive_closure): Add support for conditional
34550         dependencies.
34551         (func_emit_lib_Makefile_am): For a conditional module, enclose the
34552         conditional automake snippet in an automake conditional.
34553         (func_emit_autoconf_snippets): Emit shell functions that contain the
34554         code for conditional modules.
34555         (func_import, func_create_testdir): Update specification.
34557 2011-05-03  Eric Blake  <eblake@redhat.com>
34559         test-getaddrinfo: report error information
34560         * tests/test-getaddrinfo.c (simple): Use err outside of dbprintf.
34562 2011-05-03  Jim Meyering  <meyering@redhat.com>
34564         bootstrap: avoid build failure when $GZIP is set
34565         * build-aux/bootstrap (check_versions): Do not treat $GZIP as a
34566         program name.  If defined at all, it is supposed to list gzip options.
34567         Reported by Alan Curry in http://debbugs.gnu.org/8609
34569 2011-05-03  Reuben Thomas  <rrt@sc3d.org>
34571         readme-release: new module with release instructions
34572         * modules/readme-release: New module.
34573         * top/README-release: New file, from coreutils, grep, diffutils.
34574         * MODULES.html.sh (Support for maintaining and releasing): Add it.
34576 2011-05-02  Eric Blake  <eblake@redhat.com>
34578         fflush: also replace fclose when fixing fflush
34579         * modules/fflush (Depends-on): Add fclose.
34580         * m4/fflush.m4 (gl_FUNC_FFLUSH): Also replace fclose.
34581         * lib/fclose.c (rpl_fclose): Don't cause spurious failures on
34582         memstreams with no backing fd.
34583         * doc/posix-functions/fclose.texi (fclose): Document the use of
34584         fflush module to fix the bug.
34585         * tests/test-fclose.c (main): Relax test when fclose is used in
34586         isolation.
34588         fclose: add some tests
34589         * modules/fclose-tests: New test module.
34590         * tests/test-fclose.c: New file.
34591         * doc/posix-functions/fclose.texi (fclose): Document the bug.
34593         fclose: reduced dependencies
34594         * modules/fclose (Depends-on): Switch from fflush/fseeko to
34595         simpler lseek.
34596         * lib/fclose.c (rpl_fclose): Likewise.
34597         Reported by Simon Josefsson.
34599         exit: drop remaining clients
34600         * modules/argmatch (Depends-on): Replace exit with stdlib.
34601         * modules/copy-file (Depends-on): Likewise.
34602         * modules/execute (Depends-on): Likewise.
34603         * modules/exitfail (Depends-on): Likewise.
34604         * modules/obstack (Depends-on): Likewise.
34605         * modules/pagealign_alloc (Depends-on): Likewise.
34606         * modules/pipe-filter-gi (Depends-on): Likewise.
34607         * modules/pipe-filter-ii (Depends-on): Likewise.
34608         * modules/savewd (Depends-on): Likewise.
34609         * modules/spawn-pipe (Depends-on): Likewise.
34610         * modules/wait-process (Depends-on): Likewise.
34611         * modules/xsetenv (Depends-on): Likewise.
34612         * modules/chdir-long (Depends-on): Add stdlib, for EXIT_FAILURE.
34613         * modules/git-merge-changelog (Depends-on): Likewise.
34614         * modules/long-options (Depends-on): Likewise.
34615         * modules/pt_chown (Depends-on): Likewise.
34616         * modules/sysexits (Depends-on): Likewise.
34618         freading: relax license from LGPLv3+ to LGPLv2+
34619         * modules/freading (License): Relax LGPL version.
34621 2011-05-02  Bruno Haible  <bruno@clisp.org>
34623         fchdir: Remove unused dependencies.
34624         * modules/fchdir (Depends-on): Remove include_next.
34626 2011-05-02  Bruno Haible  <bruno@clisp.org>
34628         gnulib-tool: Refactor.
34629         * gnulib-tool (func_emit_autoconf_snippet): New function, extracted
34630         from func_emit_autoconf_snippets.
34631         (func_emit_autoconf_snippets): Use it.
34633 2011-05-02  Simon Josefsson  <simon@josefsson.org>
34635         * NEWS: Document removal of 'exit'.
34636         * modules/exit: Remove file.
34638 2011-05-01  Bruno Haible  <bruno@clisp.org>
34640         Update DEPENDENCIES.
34641         * DEPENDENCIES (gettext): Recommend the newest release.
34642         Reported by Simon Josefsson.
34644 2011-05-01  Bruno Haible  <bruno@clisp.org>
34646         gnulib-tool: Reduce code duplication.
34647         * gnulib-tool (func_emit_autoconf_snippets): New function.
34648         (func_import, func_create_testdir): Use it.
34650 2011-04-30  Eric Blake  <eblake@redhat.com>
34652         fclose: don't fail on non-seekable input stream
34653         * modules/fclose (Depends-on): Add freading, fflush, fseeko.
34654         * lib/fclose.c (rpl_fclose): Skip fflush for non-seekable input,
34655         since fflush is allowed to fail in that case.
34657 2011-04-30  Bruno Haible  <bruno@clisp.org>
34659         dup3: cleanup
34660         * lib/dup3.c: Remove old code, leftover from 2009-12-16.
34662 2011-04-30  Bruno Haible  <bruno@clisp.org>
34664         netdb: Make it work in C++ mode.
34665         * lib/netdb.in.h (struct addrinfo): In C++, define as a C struct.
34666         (getaddrinfo, freeaddrinfo, getnameinfo): Use macros from c++defs
34667         module.
34668         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Invoke
34669         gl_MODULE_INDICATOR_FOR_TESTS.
34670         * modules/netdb-tests (Depends-on): Add netdb-c++-tests.
34671         * modules/netdb-c++-tests: New file.
34672         * tests/test-netdb-c++.cc: New file.
34674 2011-04-30  Bruno Haible  <bruno@clisp.org>
34676         New modules 'vfscanf', 'vscanf'.
34677         * modules/vfscanf: New file.
34678         * modules/vscanf: New file.
34679         * m4/stdio_h.m4 (gl_STDIO_H): Don't set GNULIB_VFSCANF, GNULIB_VSCANF
34680         here.
34681         * doc/posix-functions/vfscanf.texi: Mention module 'vfscanf'.
34682         * doc/posix-functions/vscanf.texi: Mention module 'vscanf'.
34684 2011-04-30  Bruno Haible  <bruno@clisp.org>
34686         passfd: Add comments.
34687         * lib/passfd.c: Add comments about platforms.
34689 2011-04-30  Bruno Haible  <bruno@clisp.org>
34691         sys_uio: Make <sys/uio.h> self-contained.
34692         * lib/sys_uio.in.h: Include <sys/types.h> before <sys/uio.h>.
34693         * doc/posix-headers/sys_uio.texi: Mention the OpenBSD problem.
34695 2011-04-30  Bruno Haible  <bruno@clisp.org>
34697         sys_socket: Ensure 'struct iovec' definition.
34698         * lib/sys_socket.in.h: Include <sys/uio.h> also on platforms that have
34699         <sys/socket.h>.
34700         * doc/posix-headers/sys_socket.texi: Mention the OpenBSD problem.
34702 2011-04-30  Bruno Haible  <bruno@clisp.org>
34704         sys_uio: Protect definition of 'struct iovec'.
34705         * lib/sys_uio.in.h (struct iovec): Avoid redefinition. In C++, define
34706         it as a C struct.
34708 2011-04-30  Bruno Haible  <bruno@clisp.org>
34710         manywarnings: fix indentation
34711         * m4/manywarnings.m4: Indent by 2 spaces consistently.
34713 2011-04-30  Pádraig Brady  <P@draigBrady.com>
34715         manywarnings: add -Wno-missing-field-initializers if needed.
34716         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add the above
34717         option if it's needed to allow initialization with { 0, }
34719 2011-04-29  Reuben Thomas  <rrt@sc3d.org>
34721         announce-gen: cosmetic improvement
34722         * build-aux/announce-gen: Strip any leading ./ from the NEWS file name.
34724 2011-04-29  Jim Meyering  <meyering@redhat.com>
34726         vc-list-files: indent with spaces, not TABs
34727         * build-aux/vc-list-files: Convert leading TABs to spaces,
34728         to match the style of most other files in gnulib.
34730         announce-gen: indent with spaces, not TABs
34731         * build-aux/announce-gen: Convert all TABs to spaces, to match
34732         the style of most other files in gnulib.
34734 2011-04-29  Eric Blake  <eblake@redhat.com>
34736         quotearg: avoid uninitialized variable use
34737         * lib/quotearg.c (quoting_options_from_style): Initialize
34738         remaining fields, and ensure that custom styles are only used via
34739         quoting_options rather than quoting_style.
34741 2011-04-29  Jim Meyering  <meyering@redhat.com>
34743         maint.mk: remove unused VC-tag variable
34744         * top/maint.mk (VC-tag): Remove unused variable.
34746 2011-04-29  Bruno Haible  <bruno@clisp.org>
34748         netdb: fix gai_strerror replacements
34749         * lib/netdb.in.h: Add _GL_FUNCDECL_RPL definitions.
34750         * modules/netdb: Substitute it.
34752 2011-04-29  Jim Meyering  <meyering@redhat.com>
34754         test-getcwd.c: avoid new set-but-not-used warning
34755         * tests/test-getcwd.c (test_abort_bug): Exit nonzero for any problem,
34756         not just the glibc/abort one that getcwd-abort-bug.m4 detects.
34757         * m4/getcwd-abort-bug.m4: Update this now-duplicated code to match,
34758         and adjust the code that sets gl_cv_func_getcwd_abort_bug accordingly.
34760         test-hash.c: avoid a new shadowing warning
34761         * tests/test-hash.c (main): Don't shadow "dup".
34763 2011-04-28  Eric Blake  <eblake@redhat.com>
34765         getaddrinfo: fix gai_strerror signature
34766         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Detect broken signatures,
34767         and work around mingw with UNICODE defined.
34768         (gl_PREREQ_GETADDRINFO): Drop redundant decl check.
34769         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Add witness.
34770         * modules/netdb (Makefile.am): Substitute it.
34771         * lib/netdb.in.h (gai_strerror): Declare replacement.
34772         * lib/gai_strerror.c (rpl_gai_strerror): Fix signature.
34773         * doc/posix-functions/gai_strerror.texi (gai_strerror): Document
34774         the fix.
34776         getsockopt: avoid compiler warning
34777         * lib/getsockopt.c (rpl_getsockopt): Add a cast for mingw.
34778         Reported by Matthias Bolte.
34780         tests: drop unused link dependency
34781         * modules/areadlinkat-tests (Makefile.am): Drop stale LDADD.
34782         * modules/dirent-safer-tests (Makefile.am): Likewise.
34783         * modules/fdopendir-tests (Makefile.am): Likewise.
34784         * modules/mkfifoat-tests (Makefile.am): Likewise.
34785         * modules/openat-safer-tests (Makefile.am): Likewise.
34786         * modules/openat-tests (Makefile.am): Likewise.
34787         * modules/readlinkat-tests (Makefile.am): Likewise.
34788         * modules/symlinkat-tests (Makefile.am): Likewise.
34789         * modules/linkat-tests (Makefile.am): Likewise.
34790         (Depends-on): Switch to filenamecat-lgpl.
34791         * modules/fdutimensat-tests (test_fdutimensat_LDADD): Drop unused
34792         LIBINTL.
34793         * modules/utimensat-tests (test_utimensat_LDADD): Likewise.
34794         * tests/test-linkat.c (main): Don't require xalloc.
34796         hash, mgetgroups: drop xalloc dependency
34797         * lib/hash.c (includes): Adjust includes.
34798         * lib/mgetgroups.c (includes): Likewise.
34799         (xgetgroups): Move...
34800         * lib/xgetgroups.c: ...to new file.
34801         * lib/mgetgroups.h (xgetgroups): Make declaration conditional.
34802         * modules/xgetgroups: New file, split from...
34803         * modules/mgetgroups: ...here.
34804         (Depends-on): Add xalloc-oversized.
34805         * modules/hash (Depends-on): Likewise.
34806         * modules/hash-tests (Depends-on): Drop xalloc.
34807         (test_hash_LDADD): Drop unused library.
34808         * tests/test-hash.c (main): Break xalloc dependency.
34809         (includes): Drop unused include.
34811         xalloc-oversized: new module
34812         * modules/xalloc-oversized: New module.
34813         * modules/xalloc (Depends-on): Add it.
34814         * lib/xalloc.h (xalloc_oversized): Move...
34815         * lib/xalloc-oversized.h: ...into new file.
34817         utimecmp: drop dependency on xmalloc
34818         * lib/utimecmp.c (utimecmp): Work even if hash table cache fails
34819         due to memory pressure.
34820         * modules/utimecmp (Depends-on): Drop xalloc.
34822 2011-04-27  Eric Blake  <eblake@redhat.com>
34824         getcwd: fix mingw bugs
34825         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Detect one mingw bug.
34826         * doc/posix-functions/getcwd.texi (getcwd): Document the problems.
34827         * lib/getcwd-lgpl.c (rpl_getcwd): Fix return type.
34829 2011-04-27  Bruno Haible  <bruno@clisp.org>
34831         mkstemps: Ensure declaration on MacOS X 10.5.
34832         * lib/stdlib.in.h: Include <unistd.h> when mkstemps is requested.
34833         * doc/glibc-functions/mkstemps.texi: Document header file problem on
34834         MacOS X.
34836 2011-04-27  Bruno Haible  <bruno@clisp.org>
34838         mkstemp: More documentation.
34839         * doc/posix-functions/mkstemp.texi: Document header file problem on
34840         MacOS X.
34842 2011-04-27  Bruno Haible  <bruno@clisp.org>
34844         mkstemp: Tweak configure message when cross-compiling.
34845         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): When cross-compiling, qualify the
34846         result as a guess.
34848 2011-04-27  Bruno Haible  <bruno@clisp.org>
34850         clean-temp: Clarify what it does.
34851         * lib/clean-temp.h: Add more comments.
34852         * doc/posix-functions/mkstemp.texi: Tweak reference to 'clean-temp'
34853         module.
34854         * doc/glibc-functions/mkostemp.texi: Mention 'clean-temp' here too.
34855         * doc/glibc-functions/mkstemps.texi: Likewise.
34856         * doc/glibc-functions/mkostemps.texi: Likewise.
34858 2011-04-27  Eric Blake  <eblake@redhat.com>
34860         fchdir: avoid extra chdir and fix test
34861         * modules/fchdir (Depends-on): Add dosname, filenamecat-lgpl,
34862         getcwd-lgpl.
34863         * lib/fchdir.c (get_name): Any absolute name will do; it does not
34864         have to be canonical.
34865         (canonicalize_file_name): Drop unused macro.
34866         * m4/dup2.m4 (gl_REPLACE_DUP2): Ensure dup2 is replaced.
34868         filenamecat-lgpl: fix licence
34869         * modules/filenamecat-lgpl (License): Mark as LGPLv2+, as intended
34870         when it was first created.
34872         linkat, renameat: add missing dependency
34873         * modules/linkat (Depends-on): Require getcwd-lgpl.
34874         * modules/renameat (Depends-on): Likewise.
34876         tests: reduce dependencies
34877         * tests/test-linkat.c (main): Use lighter-weight getcwd.
34878         * tests/test-renameat.c (main): Likewise.
34879         * modules/linkat-tests (Depends-on): Relax dependency.
34880         * modules/renameat-tests (Depends-on): Likewise.
34881         * modules/fchdir-tests (Depends-on): Likewise.  Also make cloexec
34882         dependency explicit.
34884         save-cwd: reduce default dependency
34885         * modules/save-cwd (Depends-on): Use getcwd-lgpl.
34886         * lib/save-cwd.c: Update comments.
34887         * NEWS: Document the semantic change.
34889         getcwd: enhance tests
34890         * tests/test-getcwd-lgpl.c: New file, taken from...
34891         * tests/test-getcwd.c: ...old contents.  Rewrite this file to
34892         repeat long path stress tests from m4 probe.
34893         * modules/getcwd-lgpl-tests: New module.
34894         * modules/getcwd-tests (Depends-on): Depend on lgpl tests.
34895         * m4/getcwd-abort-bug.m4: Update comment.
34896         * m4/getcwd-path-max.m4: Likewise.
34898         getcwd-lgpl: new module
34899         * modules/getcwd-lgpl: New module.
34900         * lib/getcwd-lgpl.c: New file.
34901         * doc/posix-functions/getcwd.texi (getcwd): Document it.
34902         * MODULES.html.sh (lacking POSIX:2008): Likewise.
34903         * modules/getcwd (configure.ac): Set C witness.
34904         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): New macro.
34906         getcwd: tweak comments
34907         * m4/getcwd-abort-bug.m4: Fix comments.
34908         * m4/getcwd-path-max.m4: Likewise.
34909         * m4/getcwd.m4: Likewise.
34911 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
34912         and Eric Blake  <eblake@redhat.com>
34914         mkstemp: replace if system version uses wrong permissions
34915         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Add test for non-owner
34916         read/write mode bits set in file created by mkstemp.
34917         * doc/posix-functions/mkstemp.texi (mkstemp): Document the fix.
34919 2011-04-27  Eric Blake  <eblake@redhat.com>
34921         passfd: avoid compiler warning
34922         * lib/passfd.c (sendfd, recvfd): Avoid shadowing names.
34923         Reported by Laine Stump.
34925 2011-04-27  J.T. Conklin  <jtc@acorntoolworks.com>  (tiny change)
34927         * gnulib-tool: change "join -a 2" to "join -a2", the latter is
34928         required by the NetBSD (and perhaps other 4.4BSD derived) join.
34930 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
34931         and Eric Blake  <eblake@redhat.com>
34933         mkstemp: mention clean-temp module
34934         * lib/mkstemp.c: Add comment.
34935         * doc/posix-functions/mkstemp.texi (mkstemp): Likewise.
34937 2011-04-26  Paul Eggert  <eggert@cs.ucla.edu>
34939         inttypes: also provide default values for 32-bit tests
34940         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Also provide default values
34941         for INT32_MAX_LT_INTMAX_MAX and for UINT32_MAX_LT_UINTMAX_MAX.
34943 2011-04-25  Paul Eggert  <eggert@cs.ucla.edu>
34945         strtoumax: remove dependency on strtoimax
34946         This is like the strtoull change of yesterday.
34947         * modules/strtoumax (Files): Add lib/strtoimax.c.
34948         (Depends-on): Remove strtoimax and add verify.
34950         inttypes-incomplete: new module
34951         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): New macro, containing
34952         all but the PRI* and SCN* parts of gl_INTTYPES_H.
34953         (gl_INTTYPES_PRI_SCN): New macro, containing the PRI* and SCN* parts
34954         of gl_INTTYPES_H.
34955         (gl_INTTYPES_H): Rewrite in terms of these new macros.
34956         (gl_INTTYPES_H_DEFAULTS): Provide defaults for the PRI* and SCN*
34957         parts, in case gl_INTTYPE_PRI_SCN is not invoked.
34958         * modules/imaxabs, modules/imaxdiv, modules/strtoimax (Depends-on):
34959         * modules/strtoumax, modules/xstrtol (Depends-on):
34960         Depend on inttypes-incomplete, not inttypes.
34961         * modules/inttypes-incomplete: New module, containing the contents
34962         of the old modules/inttypes module, except that the Files: section
34963         omits m4/inttypes-pri.m4, and the configure.ac section invokes
34964         gl_INTTYPES_INCOMPLETE rather than gl_INTTYPES_H.
34965         * modules/inttypes (Files): Remove lib/inttypes.in.h, m4/inttypes.m4.
34966         (Depends-on): Depend only on inttypes-incomplete.
34967         (Makefile.am): Remove everything; this is now in inttypes-incomplete.
34969         inttypes: omit now-redundant strtoimax and strtoumax work
34970         * m4/inttypes.m4 (gl_INTTYPES_H): Do not check for strtoimax and
34971         strtoumax decls; gl_FUNC_STRTOIMAX and gl_FUNC_STRTOUMAX now do this.
34973         strtoimax, strtoumax: simplify, port to HP-UX 11.00 64-bit
34974         This supports apps that need pointers to strtoimax and strtoumax,
34975         and ports to HP-UX 11.00 64.bit, which has macros that expand to
34976         nonexistent functions.  See
34977         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00241.html>
34978         et seq.
34979         * lib/inttypes.in.h (strtoimax, strtoumax): #undef before declaring.
34980         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Don't check whether it's
34981         a macro.
34982         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
34984 2011-04-25  Simon Josefsson  <simon@josefsson.org>
34986         * modules/gnumakefile (configure.ac): Replace TAB with SPCs.
34988 2011-04-25  Bruno Haible  <bruno@clisp.org>
34990         strtol, strtoul: Mark modules as obsolete.
34991         * modules/strtol (Status, Notice): New sections.
34992         * modules/strtoul (Status, Notice): New sections.
34994 2011-04-25  Bruno Haible  <bruno@clisp.org>
34996         strtod: Remove check for strtod, unless supporting old platforms.
34997         * modules/strtod-obsolete: New file.
34998         * m4/strtod-obsolete.m4: New file.
34999         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't check whether strtod is declared
35000         if gl_FUNC_STRTOD_OBSOLETE is not also defined.
35001         * modules/strtod (Depends-on): Add strtod-obsolete.
35002         * doc/posix-functions/strtod.texi: Mention module strtod-obsolete.
35004 2011-04-25  Bruno Haible  <bruno@clisp.org>
35006         strcase: Make module obsolete.
35007         * modules/strcase (Status, Notice): New sections.
35009 2011-04-25  Bruno Haible  <bruno@clisp.org>
35011         dup2: Remove check for dup2, unless supporting old obsolete platforms.
35012         * modules/dup2-obsolete: New file.
35013         * m4/dup2-obsolete.m4: New file.
35014         * m4/dup2.m4 (gl_FUNC_DUP2): Don't check whether dup2 exists if
35015         gl_FUNC_DUP2_OBSOLETE is not also defined.
35016         * modules/dup2 (Depends-on): Add dup2-obsolete.
35017         * doc/posix-functions/dup2.texi: Mention module dup2-obsolete.
35019 2011-04-25  Bruno Haible  <bruno@clisp.org>
35021         strnlen: Avoid memchr related link error on old obsolete platforms.
35022         * modules/memchr-obsolete: New file.
35023         * m4/memchr-obsolete.m4: New file.
35024         * m4/memchr.m4 (gl_FUNC_MEMCHR): Don't check whether memchr exists if
35025         gl_FUNC_MEMCHR_OBSOLETE is not also defined.
35026         * modules/memchr (Depends-on): Add memchr-obsolete.
35027         * modules/strnlen (Depends-on): Likewise.
35028         * doc/posix-functions/memchr.texi: Mention module memchr-obsolete.
35030 2011-04-25  Jim Meyering  <meyering@redhat.com>
35032         maint.mk: makefile_at_at_check extend and clean up
35033         * top/maint.mk (sc_makefile_at_at_check): Check *.mk files
35034         in addition to */Makefile.am.
35035         Exempt legitimate uses of @VAR@ notation, e.g.,
35036         MAKEINFO = env LANG= LC_MESSAGES= LC_ALL= LANGUAGE= @MAKEINFO@
35037         Remove obsolete coreutils-specific comment.
35038         Prompted by discussion here:
35039         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26074
35041 2011-04-24  Paul Eggert  <eggert@cs.ucla.edu>
35043         strtoul: remove dependency on strtol
35044         This is so that 'configure' need not check for strtol merely because
35045         the application needs strtoul.
35046         * modules/strtoul (Files): Add lib/strtol.c.
35047         (Depends-on): Remove strtol.
35049         strtoull: remove dependency on strtoul
35050         This is like the strtoll change.
35051         * modules/strtoull (Files): Add lib/strtol.c, lib/strtoul.c.
35052         (Depends-on): Remove strtoul.
35054         strtoll: remove dependency on strtol
35055         This is so that 'configure' need not check for strtol merely because
35056         the application needs strtoll.
35057         * modules/strtoll (Files): Add lib/strtol.c.
35058         (Depends-on): Remove strtol.
35060 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
35062         inttypes: Move some configure check to module 'imaxdiv'.
35063         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Require gl_INTTYPES_H_DEFAULTS
35064         instead of gl_INTTYPES_H.  Check for imaxdiv decl here.
35065         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxdiv decl here.
35067 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
35069         inttypes: Move some configure check to module 'imaxabs'.
35070         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Require gl_INTTYPES_H_DEFAULTS
35071         instead of gl_INTTYPES_H.  Check for imaxabs decl here.
35072         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxabs decl here.
35074 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
35076         inttypes: Remove configure tests that are not needed since 2009-12-31.
35077         * m4/inttypes.m4 (gl_INTTYPES_H): Remove determination of
35078         gl_cv_header_working_inttypes_h.
35080 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
35082         * modules/strnlen (Depends-on): Remove memchr.
35083         The strnlen implementation doesn't need the memchr module's fixes; see
35084         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00237.html>.
35086         strtol: remove dependency on wchar
35087         * lib/strtol.c: Include <wchar.h> only if USE_WIDE_CHAR is defined.
35088         * modules/strtol (Depends-on): Remove wchar.
35090 2011-04-21  Eric Blake  <eblake@redhat.com>
35092         passfd: fix test regression on Linux
35093         * modules/passfd-tests (configure.ac): Correct socketpair check.
35095         passfd: speed up configure and drop unused code
35096         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Rename...
35097         * m4/passfd.m4 (gl_PASSFD): ...to something more fitting of
35098         its use.  Drop test for setting unused HAVE_UNIXSOCKET_SCM_RIGHTS.
35099         Instead of probing at configure for unix_scm_rights_bsd44_way,
35100         instead probe for CMSG_FIRSTHDR at compile time.  Simplify BSD 4.3
35101         check to a struct member probe.
35102         * lib/passfd.c (includes): Nothing here requires <sys/un.h>.
35103         (sendfd, recvfd): Update preprocessor checks.
35104         * modules/passfd (Files): Reflect rename, and drop unused file.
35105         (Depends-on): Drop unused dependency.
35107         passfd: allow compilation on mingw
35108         * modules/sys_socket (Depends-on): Add sys_uio.
35109         * lib/sys_socket.in.h [!@HAVE_SYS_SOCKET_H@]: Use it for struct
35110         iovec and a minimal struct msghdr.
35111         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Detect recvmsg/sendmsg.
35112         * tests/test-sys_socket.c (main): Enhance test.
35113         * lib/passfd.c (include): Drop <sys/uio.h>; <sys/sockets.h> is
35114         guaranteed to provide what we need.
35115         (sendmsg, recvmsg): Declare fallbacks if we lack sendmsg.
35116         * modules/passfd-tests (Depends-on): Add sys_wait.
35117         * tests/test-passfd.c (main): Skip test on mingw, for now.
35118         * doc/posix-headers/sys_socket.texi (sys/socket.h): Document the
35119         partial 'struct msghdr' implementation.
35121         sys_uio: new module
35122         * modules/sys_uio: New module.
35123         * modules/sys_uio-tests: Likewise.
35124         * lib/sys_uio.in.h: New file.
35125         * m4/sys_uio_h.m4: Likewise.
35126         * tests/test-sys_uio.c: Likewise.
35127         * doc/posix-headers/sys_uio.texi (sys/uio.h): Document it.
35128         * MODULES.html.sh (systems lacking POSIX:2008): Likewise.
35130 2011-04-20  Jim Meyering  <meyering@redhat.com>
35132         useless-if-before-free: avoid false-positive
35133         * build-aux/useless-if-before-free: Adjust regexp for the non-brace
35134         disjunct so that it too requires a terminating ";".  Without that,
35135         this script would identify as useless one statement from gcc that
35136         was not:
35137           if (aligned_ptr)
35138             free (((void **) aligned_ptr) [-1]);
35140 2011-04-20  Giuseppe Scrivano  <gscrivano@gnu.org>
35142         doc: update users.txt.
35143         * users.txt: Add barcode.
35145 2011-04-19  Bruno Haible  <bruno@clisp.org>
35147         ioctl: Remove link dependency on native Windows.
35148         * lib/fd-hook.h: Renamed from lib/close-hook.h.
35149         (gl_close_fn, gl_ioctl_fn): New types.
35150         (struct fd_hook): Renamed from struct close_hook. Change type of
35151         private_close_fn field. Add private_ioctl_fn field.
35152         (close_hook_fn): Add parameter for primary close method.
35153         (execute_close_hooks, execute_all_close_hooks): Likewise.
35154         (ioctl_hook_fn): New type.
35155         (execute_ioctl_hooks, execute_all_ioctl_hooks): New declarations.
35156         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
35157         argument.
35158         (unregister_fd_hook): Renamed from unregister_close_hook.
35159         * lib/fd-hook.c: Renamed from lib/close-hook.c.
35160         Don't include <unistd.h>.
35161         (close): Remove undef.
35162         (anchor): Update.
35163         (execute_close_hooks): Add argument for primary close method.
35164         (execute_all_close_hooks): Likewise.
35165         (execute_ioctl_hooks, execute_all_ioctl_hooks): New functions.
35166         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
35167         argument. Allow each argument to be NULL.
35168         (unregister_fd_hook): Renamed from unregister_close_hook.
35169         * lib/close.c (rpl_close): Pass 'close' function pointer to
35170         execute_all_close_hooks.
35171         * lib/ioctl.c: Include <errno.h>, fd-hook.h.
35172         (primary_ioctl): New function.
35173         (ioctl): Don't call ioctlsocket here. Instead, call
35174         execute_all_ioctl_hooks.
35175         * lib/sockets.c (close_fd_maybe_socket): Add argument for primary
35176         close method.
35177         (ioctl_fd_maybe_socket): New function, with code from lib/ioctl.c.
35178         (fd_sockets_hook): Renamed from close_sockets_hook.
35179         (gl_sockets_startup, gl_sockets_cleanup): Update.
35180         * modules/fd-hook: Renamed from modules/close-hook. Update.
35181         * modules/close (Depends-on): Add fd-hook, remove close-hook.
35182         * modules/sockets (Depends-on): Likewise.
35183         * modules/ioctl (Depends-on): Add fd-hook.
35184         * tests/test-nonblocking.c (main): Use GNULIB_TEST_SOCKET, not
35185         GNULIB_SOCKET.
35187 2011-04-19  Bruno Haible  <bruno@clisp.org>
35189         Move the support of O_NONBLOCK in open() to the 'open' module.
35190         * modules/nonblocking (Depends-on): Remove 'open'.
35191         * m4/nonblocking.m4 (gl_NONBLOCKING_IO_BODY): Set
35192         gl_cv_have_open_O_NONBLOCK.
35193         * m4/open.m4 (gl_FUNC_OPEN): Replace open() also when required for
35194         O_NONBLOCK support.
35195         * doc/posix-functions/open.texi: Document support for O_NONBLOCK.
35197 2011-04-17  Bruno Haible  <bruno@clisp.org>
35199         pipe2: Simplify code.
35200         * lib/pipe2.c (pipe2): Reduce code duplication.
35202 2011-04-17  Bruno Haible  <bruno@clisp.org>
35204         nonblocking: Add comment.
35205         * lib/fcntl.in.h (O_NONBLOCK): Add comment.
35207 2011-04-17  Bruno Haible  <bruno@clisp.org>
35209         nonblocking: Add tests for sockets.
35210         * tests/test-nonblocking-socket.sh: New file.
35211         * tests/test-nonblocking-socket-main.c: New file.
35212         * tests/test-nonblocking-socket-child.c: New file.
35213         * tests/test-nonblocking-socket.h: New file.
35214         * tests/socket-server.h: New file.
35215         * tests/socket-client.h: New file.
35216         * modules/nonblocking-socket-tests: New file.
35217         * modules/nonblocking-tests (Depends-on): Add nonblocking-socket-tests.
35219 2011-04-17  Bruno Haible  <bruno@clisp.org>
35221         nonblocking: Add tests for pipes.
35222         * tests/test-nonblocking-pipe.sh: New file.
35223         * tests/test-nonblocking-pipe-main.c: New file.
35224         * tests/test-nonblocking-pipe-child.c: New file.
35225         * tests/test-nonblocking-pipe.h: New file.
35226         * tests/test-nonblocking-writer.h: New file.
35227         * tests/test-nonblocking-reader.h: New file.
35228         * tests/test-nonblocking-misc.h: New file.
35229         * modules/nonblocking-pipe-tests: New file.
35230         * modules/nonblocking-tests (Depends-on): Add nonblocking-pipe-tests.
35232 2011-04-16  Bruno Haible  <bruno@clisp.org>
35234         gettext: Clarify the needed programmer actions.
35235         * modules/gettext (Notice): New field.
35236         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
35238 2011-04-16  Bruno Haible  <bruno@clisp.org>
35240         strchrnul: Tweak last commit.
35241         * doc/glibc-functions/strchrnul.texi: Add more details about Cygwin
35242         bug.
35243         * lib/string.in.h (strchrnul): Use same arguments in _GL_FUNCDECL_RPL
35244         as in _GL_FUNCDECL_SYS.
35245         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Invoke gl_PREREQ_STRCHRNUL after
35246         AC_LIBOBJ. When cross-compiling, say "guessing yes" not "yes".
35248 2011-04-15  Eric Blake  <eblake@redhat.com>
35250         strchrnul: work around cygwin bug
35251         * doc/glibc-functions/strchrnul.texi (strchrnul): Document bug.
35252         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Detect it.
35253         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New witness.
35254         * modules/string (Makefile.am): Substitute it.
35255         * lib/string.in.h (strchrnul): Use it.
35257 2011-04-15  Bruno Haible  <bruno@clisp.org>
35259         Don't require lib/stdio-write.c when only module 'stdio' is used.
35260         * m4/stdio_h.m4 (gl_STDIO_H): Move the AC_LIBOBJ back into the m4_ifdef
35261         invocation.
35262         Reported by Rob Vermaas <rob.vermaas@gmail.com>.
35264 2011-04-14  Bruno Haible  <bruno@clisp.org>
35266         Support non-blocking pipe I/O in read() on native Windows.
35267         * lib/unistd.in.h: Include <sys/types.h> also for 'read'.
35268         (read): New declaration.
35269         * lib/read.c: New file.
35270         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_SCANF,
35271         _GL_ATTRIBUTE_FORMAT_SCANF_SYSTEM): New macros.
35272         (fgetc, fgets, fread, fscanf, getc, getchar, gets, scanf, vfscanf,
35273         vscanf): New declarations.
35274         * lib/stdio-read.c: New file.
35275         * m4/read.m4: New file.
35276         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_READ,
35277         REPLACE_READ.
35278         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FGETC, GNULIB_FGETS,
35279         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
35280         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF. In non-blocking I/O is
35281         desired and needs workarounds, set REPLACE_STDIO_READ_FUNCS.
35282         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FGETC, GNULIB_FGETS,
35283         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
35284         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
35285         * modules/read: New file.
35286         * modules/nonblocking (Files): Add lib/stdio-read.c.
35287         * modules/unistd (Makefile.am): Substitute GNULIB_READ, REPLACE_READ.
35288         * modules/stdio (Makefile.am): Substitute GNULIB_FGETC, GNULIB_FGETS,
35289         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
35290         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
35291         * modules/pread (Depends-on): Add read.
35292         * modules/safe-read (Depends-on): Likewise.
35293         * tests/test-stdio-c++.cc (fgetc, fgets, fread, fscanf, getc, getchar,
35294         gets, scanf, vfscanf, vscanf): Verify signatures.
35295         * doc/posix-functions/read.texi: Mention 'nonblocking' module and
35296         problem with non-blocking pipes.
35297         * doc/posix-functions/fgetc.texi: Likewise.
35298         * doc/posix-functions/fgets.texi: Likewise.
35299         * doc/posix-functions/fread.texi: Likewise.
35300         * doc/posix-functions/fscanf.texi: Likewise.
35301         * doc/posix-functions/getc.texi: Likewise.
35302         * doc/posix-functions/getchar.texi: Likewise.
35303         * doc/posix-functions/gets.texi: Likewise.
35304         * doc/posix-functions/scanf.texi: Likewise.
35305         * doc/posix-functions/vfscanf.texi: Likewise.
35306         * doc/posix-functions/vscanf.texi: Likewise.
35308 2011-04-14  Bruno Haible  <bruno@clisp.org>
35310         Support non-blocking pipe I/O in write() on native Windows.
35311         * lib/write.c (rpl_write): Split a write request that failed merely
35312         because the byte count was larger than the pipe buffer's size.
35313         * doc/posix-functions/write.texi: Mention the problem with large byte
35314         counts.
35316 2011-04-14  Bruno Haible  <bruno@clisp.org>
35318         wchar: Ensure that wchar_t gets defined on uClibc.
35319         * lib/wchar.in.h: On uClibc, include <stddef.h>.
35320         Reported by Giuseppe Scrivano <gscrivano@gnu.org>.
35322 2011-04-13  Bruno Haible  <bruno@clisp.org>
35324         safe-write, full-read: Avoid unnecessary compilation units.
35325         * modules/safe-write (Files): Add lib/safe-read.c, m4/safe-read.m4.
35326         (Depends-on): Remove safe-read. Add ssize_t.
35327         * modules/full-read (Files): Add lib/full-write.c.
35328         (Depends-on): Add full-write.
35330 2011-04-13  Bruno Haible  <bruno@clisp.org>
35332         Support non-blocking pipe I/O and SIGPIPE in pwrite().
35333         * modules/pwrite (Depends-on): Add 'write'.
35335 2011-04-13  Bruno Haible  <bruno@clisp.org>
35337         Support non-blocking pipe I/O in write() on native Windows.
35338         * lib/unistd.in.h (write): Enable replacement also if
35339         GNULIB_UNISTD_H_NONBLOCKING is 1.
35340         * lib/write.c: Enable replacement also if GNULIB_NONBLOCKING.
35341         (rpl_write): When failing to write on a non-blocking pipe, change
35342         errno from ENOSPC to EAGAIN.
35343         * lib/stdio.in.h (fprintf, fputc, fputs, fwrite, printf, putc,
35344         putchar, puts, vfprintf, vprintf): Enable replacement also if
35345         GNULIB_STDIO_H_NONBLOCKING is 1.
35346         * lib/stdio-write.c: Enable replacements also if GNULIB_NONBLOCKING.
35347         (CLEAR_ERRNO, HANDLE_ENOSPC): New macros.
35348         (CLEAR_LastError, HANDLE_ERROR_NO_DATA): New macros, extracted from
35349         CALL_WITH_SIGPIPE_EMULATION.
35350         (CALL_WITH_SIGPIPE_EMULATION): Use them.
35351         * m4/nonblocking.m4: New file.
35352         * m4/write.m4 (gl_FUNC_WRITE): Enable REPLACE_WRITE also if required
35353         for non-blocking I/O support.
35354         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
35355         GNULIB_UNISTD_H_NONBLOCKING.
35356         * m4/stdio_h.m4 (gl_STDIO_H): Enable REPLACE_STDIO_WRITE_FUNCS also if
35357         required for non-blocking I/O support.
35358         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_STDIO_H_NONBLOCKING.
35359         * modules/nonblocking (Files): Add m4/nonblocking.m4,
35360         lib/stdio-write.c, m4/asm-underscore.m4.
35361         (Depends-on): Add stdio, unistd.
35362         (configure.ac): Invoke gl_NONBLOCKING_IO. Define GNULIB_NONBLOCKING.
35363         Set GNULIB_STDIO_H_NONBLOCKING, GNULIB_UNISTD_H_NONBLOCKING.
35364         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_NONBLOCKING.
35365         * modules/stdio (Makefile.am): Substitute GNULIB_STDIO_H_NONBLOCKING.
35366         * doc/posix-functions/fprintf.texi: Mention 'nonblocking' module and
35367         problem with non-blocking pipes.
35368         * doc/posix-functions/fputc.texi: Likewise.
35369         * doc/posix-functions/fputs.texi: Likewise.
35370         * doc/posix-functions/fwrite.texi: Likewise.
35371         * doc/posix-functions/printf.texi: Likewise.
35372         * doc/posix-functions/putc.texi: Likewise.
35373         * doc/posix-functions/putchar.texi: Likewise.
35374         * doc/posix-functions/puts.texi: Likewise.
35375         * doc/posix-functions/vfprintf.texi: Likewise.
35376         * doc/posix-functions/vprintf.texi: Likewise.
35377         * doc/posix-functions/write.texi: Likewise.
35379 2011-04-10  Jim Meyering  <meyering@redhat.com>
35381         maint.mk: prohibit doubled words
35382         Detect them also when they're separated by a newline.
35383         There are 3 ways to customize it:
35384           - disable the test on a per file basis, as usual with rules using
35385             $(VC_LIST_EXCEPT)
35386           - replace the default doubled-word-selecting regexp (affects all files)
35387           - ignore a particular file-vs-doubled-word match
35388         I nearly used that last one to ignore the "is is" match in
35389         coreutils' NEWS file, since the text was "ls -is is ..."
35390         To do that, I would have added this line to cfg.mk:
35391           ignore_doubled_word_match_RE_ = ^NEWS:[0-9]+:is[ ]is$
35392         but it would have ignored any "is is" match in NEWS.
35393         Low probability, but still...
35394         Instead, I changed the text, slightly:
35395           -  ls -is is now consistent with ls -lis in ignoring values returned
35396           +  "ls -is" is now consistent with ls -lis in ignoring values returned
35397         * top/maint.mk (prohibit_double_word_RE_): Provide default.
35398         (prohibit_doubled_word_): Define.
35399         (sc_prohibit_doubled_word): New rule.
35400         (sc_prohibit_the_the): Remove.  Subsumed by the above.
35402 2011-04-10  Jim Meyering  <meyering@redhat.com>
35404         maint: fix doubled-word typo in comment
35405         * m4/gethostname.m4: s/is is/it is/
35406         * m4/getdomainname.m4: Likewise.
35408 2011-04-10  Jim Meyering  <meyering@redhat.com>
35410         maint: remove doubled word: s/it it/it/
35411         * lib/stat-time.h (get_stat_birthtime): s/it it/it/
35413 2011-04-10  Jim Meyering  <meyering@redhat.com>
35415         maint.mk: remove useless semicolon and backslash
35416         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Remove stray
35417         semicolon and backslash.
35419 2011-04-10  Bruno Haible  <bruno@clisp.org>
35421         stdint test: Fix compilation failure on OSF/1 with DTK compiler.
35422         * modules/stdint-tests (Depends-on): Add wchar.
35424 2011-04-10  Jim Meyering  <meyering@redhat.com>
35426         maint: remove doubled words in comments, e.g., s/a a/a/
35427         * lib/strptime.c (day_of_the_week): s/the the/the/
35428         * tests/test-chown.h (test_chown): s/a a/a/
35430         test-chown.h: correct a cast
35431         * tests/test-chown.h (test_chown): Cast -1 to gid_t (not uid_t)
35432         when the destination is a stat.st_gid.
35434 2011-04-09  Mats Erik Andersson  <mats.andersson@gisladisker.se>  (tiny change)
35436         getaddrinfo: Fix test for sa_len member.
35437         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): When testing for sa_len,
35438         include <sys/types.h> before <sys/socket.h>.
35440 2011-04-09  Paul Eggert  <eggert@cs.ucla.edu>
35442         maint: change "can not" to "cannot"
35443         * doc/posix-functions/iconv.texi (iconv): This one crossed line
35444         boundaries.
35446 2011-04-09  Jim Meyering  <meyering@redhat.com>
35448         maint: change "a a" to "a"
35449         * tests/test-lchown.h (test_lchown): s/a a/a/
35451         maint.mk: prohibit \<the the\>
35452         * top/maint.mk (sc_prohibit_the_the): New rule.
35454         maint: fix "the the" in comment
35455         * lib/count-one-bits.h: s/the the/the/
35457         maint: change "can not" to "cannot"
35458         But do not change the occurrences in maintain.texi or in
35459         build-aux/po/Makefile.in.in, which I presume comes from gettext.
35460         * doc/gnulib-tool.texi: s/can not/cannot/
35461         * doc/posix-functions/accept.texi (accept): Likewise.
35462         * doc/posix-functions/socket.texi (socket): Likewise.
35463         * lib/mbrtowc.c: Likewise.
35465         maint.mk: prohibit use of "can not"
35466         * top/maint.mk (sc_prohibit_can_not): New rule.
35467         Writing "can not" (rather than "cannot") is too common.  Prohibit it.
35469 2011-04-09  Bruno Haible  <bruno@clisp.org>
35471         careadlinkat: Guard against misuse of careadlinkatcwd.
35472         * lib/careadlinkat.c: Include <stdlib.h>.
35473         (careadlinkatcwd): Check that the fd argument is as expected.
35475 2011-04-09  Bruno Haible  <bruno@clisp.org>
35477         careadlinkat: Use common coding style.
35478         * lib/careadlinkat.c: Move gnulib includes after system includes.
35480 2011-04-09  Bruno Haible  <bruno@clisp.org>
35482         careadlinkat: Clarify specification.
35483         * lib/careadlinkat.h (careadlinkat): Clarify preadlinkat argument.
35484         (careadlinkatcwd): Add comment.
35485         * lib/careadlinkat.c (careadlinkat): Clarify preadlinkat argument.
35487 2011-04-09  Bruno Haible  <bruno@clisp.org>
35489         areadlinkat: Avoid link error on many platforms.
35490         * modules/areadlinkat (Depends-on): Add areadlink.
35492 2011-04-09  Bruno Haible  <bruno@clisp.org>
35494         allocator, careadlinkat: Fix double-inclusion guard.
35495         * lib/allocator.h: Fix double-inclusion guard.
35496         * lib/careadlinkat.h: Likewise.
35498 2011-04-09  Bruno Haible  <bruno@clisp.org>
35500         relocatable-prog-wrapper: Update after module 'areadlink' changed.
35501         * lib/relocwrapper.c: Update dependencies hierarchy.
35502         * build-aux/install-reloc: Update list of files to be compiled.
35503         * modules/relocatable-prog-wrapper (Files): Add lib/careadlinkat.[hc],
35504         lib/allocator.[hc].
35506 2011-04-08  Eric Blake  <eblake@redhat.com>
35508         strftime: silence gnulib-tool warning
35509         * modules/strftime-tests (Depends-on): Drop automatic dependency.
35511 2011-04-08  Bruno Haible  <bruno@clisp.org>
35513         verify: Fix syntax error with GCC 4.6 in C++ mode.
35514         * lib/verify.h (HAVE__STATIC_ASSERT): Don't define in C++ mode.
35515         (HAVE_STATIC_ASSERT): New macro.
35516         (verify_true, verify): Use 'static_assert' if it is supported and
35517         '_Static_assert' is not supported.
35519 2011-04-08  Paul Eggert  <eggert@cs.ucla.edu>
35521         allocator: New module.
35522         * modules/allocator, lib/allocator.c: New files.
35523         * lib/allocator.h (stdlib_allocator): New decl.
35524         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC, standard_allocator):
35525         Remove.  Do not include <stdlib.h>.
35526         (careadlinkat): Use stdlib_allocator instead of rolling our own.
35527         * modules/careadlinkat (Files): Remove lib/allocator.h.
35528         (Depends-on): Add allocator.
35530         stdlib: let modules use system malloc, realloc
35531         * lib/stdlib.in.h (malloc, realloc): Don't #define or add warnings
35532         if !_GL_USE_STDLIB_ALLOC.
35533         (malloc, realloc): Limit this change to a smaller scope.
35535         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC): Define.
35536         (malloc, realloc): Don't #undef; no longer needed.
35537         * lib/malloca.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
35538         * lib/progreloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
35539         * lib/setenv.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
35540         * lib/canonicalize-lgpl.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
35541         * lib/relocatable.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
35542         * lib/relocwrapper.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
35543         * lib/malloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
35544         * lib/realloc.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
35546         careadlinkat: rename members to avoid problem
35547         * lib/allocator.h (struct allocator): Rename members from
35548         malloc/realloc to allocate/reallocate, to avoid problems if malloc
35549         and realloc are #define'd.  Reported by Eric Blake in
35550         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00091.html>.
35551         * lib/careadlinkat.c (careadlinkat): Adjust to renaming.
35553 2011-04-08  Eric Blake  <eblake@redhat.com>
35555         nonblocking: reduce dependency
35556         * tests/test-nonblocking.c: Only test sockets when in use.
35557         * modules/nonblocking-tests (Depends-on): Drop socket.
35558         (Makefile.am): Link even if sockets are not present.
35559         * modules/pipe2-tests (Makefile.am): Likewise.
35560         * lib/ioctl.c (ioctl) [WIN32]: Fail if sockets are not also in use.
35562         pipe2: fix O_NONBLOCK support on mingw
35563         * modules/pipe2 (Depends-on): Add nonblocking.
35564         * lib/pipe2.c (pipe2) [WIN32]: Add O_NONBLOCK support.
35565         * tests/test-pipe2.c (is_nonblocking): Adjust test accordingly.
35566         * tests/test-nonblocking.c (main): Likewise.
35567         * modules/pipe2-tests (Makefile.am): Avoid link failure.
35569         fcntl-h: fix O_ACCMODE on cygwin
35570         * doc/posix-headers/fcntl.texi (fcntl.h): Document the bug.
35571         * lib/fcntl.in.h (O_ACCMODE): Fix it.
35573         pipe-filter: drop O_NONBLOCK workarounds
35574         * modules/pipe-filter-gi (Depends-on): Add fcntl-h.
35575         * modules/pipe-filter-ii (Depends-on): Likewise.
35576         * lib/pipe-filter-aux.h (O_NONBLOCK): Delete workaround.
35578         nonblocking: provide O_NONBLOCK for mingw
35579         * modules/nonblocking (Depends-on): Add open.
35580         (configure.ac): Set new witness macro.
35581         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide default for it.
35582         * modules/fcntl-h (Makefile.am): Substitute it.
35583         * lib/fcntl.in.h (O_NONBLOCK): Guarantee non-zero definition when
35584         nonblocking module is in use.
35585         * lib/nonblocking.c: Adjust portability test.
35586         * lib/open.c (open): Don't let native open see gnulib flag.
35587         * tests/test-fcntl-h.c (main): Enhance test.
35588         * tests/test-open.h (test_open): Likewise.
35589         * doc/posix-headers/fcntl.texi (fcntl.h): Document the replacement.
35591         careadlinkat: fix compilation error on mingw
35592         * lib/careadlinkat.c (standard_allocator): Avoid renaming fields
35593         within struct allocator.
35595 2011-04-06  Eric Blake  <eblake@redhat.com>
35597         binary-io: relicense under LGPLv2+
35598         * modules/binary-io (License): Relax to LGPLv2+.
35599         Requested for libvirt, and required by pipe2.
35601 2011-04-06  Paul Eggert  <eggert@cs.ucla.edu>
35603         verify: use _Static_assert if available
35604         * lib/verify.h (HAVE__STATIC_ASSERT): New macro.
35605         (verify_true, verify): Use it if available.  This generates better
35606         diagnostics with GCC 4.6.0 and later.
35608 2011-04-05  Bruno Haible  <bruno@clisp.org>
35610         Remove leftover generated .h files after config.status changed.
35612         * m4/alloca.m4 (gl_FUNC_ALLOCA): New automake conditional
35613         GL_GENERATE_ALLOCA_H.
35614         * modules/alloca-opt (Makefile.am): Remove alloca.h if
35615         GL_GENERATE_ALLOCA_H evaluates to false.
35617         * m4/argz.m4 (gl_FUNC_ARGZ): New automake conditional
35618         GL_GENERATE_ARGZ_H.
35619         * modules/argz (Makefile.am): Remove argz.h if GL_GENERATE_ARGZ_H
35620         evaluates to false.
35622         * m4/byteswap.m4 (gl_BYTESWAP): New automake conditional
35623         GL_GENERATE_BYTESWAP_H.
35624         * modules/byteswap (Makefile.am): Remove byteswap.h if
35625         GL_GENERATE_BYTESWAP_H evaluates to false.
35627         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): New automake conditional
35628         GL_GENERATE_ERRNO_H.
35629         * modules/errno (Makefile.am): Remove errno.h if GL_GENERATE_ERRNO_H
35630         evaluates to false.
35632         * m4/float_h.m4 (gl_FLOAT_H): New automake conditional
35633         GL_GENERATE_FLOAT_H.
35634         * modules/float (Makefile.am): Remove float.h if GL_GENERATE_FLOAT_H
35635         evaluates to false.
35637         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): New automake conditional
35638         GL_GENERATE_FNMATCH_H.
35639         * modules/fnmatch (Makefile.am): Remove fnmatch.h if
35640         GL_GENERATE_FNMATCH_H evaluates to false.
35642         * m4/glob.m4 (gl_GLOB_SUBSTITUTE, gl_GLOB): New automake conditional
35643         GL_GENERATE_GLOB_H.
35644         * modules/glob (Makefile.am): Remove glob.h if GL_GENERATE_GLOB_H
35645         evaluates to false.
35647         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H, gl_ICONV_H_DEFAULTS): New
35648         automake conditional GL_GENERATE_ICONV_H.
35649         * modules/iconv-h (Makefile.am): Remove iconv.h if GL_GENERATE_ICONV_H
35650         evaluates to false.
35652         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): New automake conditional
35653         GL_GENERATE_NETINET_IN_H.
35654         * modules/netinet_in (Makefile.am): Remove netinet/in.h if
35655         GL_GENERATE_NETINET_IN_H evaluates to false.
35657         * m4/pthread.m4 (gl_PTHREAD_CHECK): Set PTHREAD_H here. New automake
35658         conditional GL_GENERATE_PTHREAD_H.
35659         (gl_PTHREAD_DEFAULTS): Don't set PTHREAD_H here.
35660         * modules/pthread (Makefile.am): Remove pthread.h if
35661         GL_GENERATE_PTHREAD_H evaluates to false.
35663         * m4/sched_h.m4 (gl_SCHED_H): New automake conditional
35664         GL_GENERATE_SCHED_H.
35665         * modules/sched (Makefile.am): Remove sched.h if GL_GENERATE_SCHED_H
35666         evaluates to false.
35668         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): New automake
35669         conditional GL_GENERATE_SELINUX_CONTEXT_H.
35670         * modules/selinux-h (Makefile.am): Remove selinux/context.h if
35671         GL_GENERATE_SELINUX_CONTEXT_H evaluates to false.
35673         * m4/stdarg.m4 (gl_STDARG_H): New automake conditional
35674         GL_GENERATE_STDARG_H.
35675         * modules/stdarg (Makefile.am): Remove stdarg.h if
35676         GL_GENERATE_STDARG_H evaluates to false.
35678         * m4/stdbool.m4 (AM_STDBOOL_H): New automake conditional
35679         GL_GENERATE_STDBOOL_H.
35680         * modules/stdbool (Makefile.am): Remove stdbool.h if
35681         GL_GENERATE_STDBOOL_H evaluates to false.
35683         * m4/stddef_h.m4 (gl_STDDEF_H): Set STDDEF_H here. New automake
35684         conditional GL_GENERATE_STDDEF_H.
35685         (gl_STDDEF_H_DEFAULTS): Don't set STDDEF_H here.
35686         * modules/stddef (Makefile.am): Remove stddef.h if
35687         GL_GENERATE_STDDEF_H evaluates to false.
35689         * m4/stdint.m4 (gl_STDINT_H): New automake conditional
35690         GL_GENERATE_STDINT_H.
35691         * modules/stdint (Makefile.am): Remove stdint.h if
35692         GL_GENERATE_STDINT_H evaluates to false.
35694         * m4/sysexits.m4 (gl_SYSEXITS): New automake conditional
35695         GL_GENERATE_SYSEXITS_H.
35696         * modules/sysexits (Makefile.am): Remove sysexits.h if
35697         GL_GENERATE_SYSEXITS_H evaluates to false.
35699         Reported by Karl Berry and Ralf Wildenhues.
35701 2011-04-05  Bruno Haible  <bruno@clisp.org>
35703         Ensure to rebuild generated .h files when config.status has changed.
35704         * modules/arpa_inet (Makefile.am): Add dependency from .h file to
35705         config.status.
35706         * modules/ctype (Makefile.am): Likewise.
35707         * modules/dirent (Makefile.am): Likewise.
35708         * modules/errno (Makefile.am): Likewise.
35709         * modules/fcntl-h (Makefile.am): Likewise.
35710         * modules/float (Makefile.am): Likewise.
35711         * modules/getopt-posix (Makefile.am): Likewise.
35712         * modules/glob (Makefile.am): Likewise.
35713         * modules/iconv-h (Makefile.am): Likewise.
35714         * modules/inttypes (Makefile.am): Likewise.
35715         * modules/langinfo (Makefile.am): Likewise.
35716         * modules/locale (Makefile.am): Likewise.
35717         * modules/math (Makefile.am): Likewise.
35718         * modules/netdb (Makefile.am): Likewise.
35719         * modules/netinet_in (Makefile.am): Likewise.
35720         * modules/poll-h (Makefile.am): Likewise.
35721         * modules/pthread (Makefile.am): Likewise.
35722         * modules/pty (Makefile.am): Likewise.
35723         * modules/sched (Makefile.am): Likewise.
35724         * modules/search (Makefile.am): Likewise.
35725         * modules/selinux-h (Makefile.am): Likewise.
35726         * modules/signal (Makefile.am): Likewise.
35727         * modules/spawn (Makefile.am): Likewise.
35728         * modules/stdarg (Makefile.am): Likewise.
35729         * modules/stdbool (Makefile.am): Likewise.
35730         * modules/stddef (Makefile.am): Likewise.
35731         * modules/stdint (Makefile.am): Likewise.
35732         * modules/stdio (Makefile.am): Likewise.
35733         * modules/stdlib (Makefile.am): Likewise.
35734         * modules/string (Makefile.am): Likewise.
35735         * modules/strings (Makefile.am): Likewise.
35736         * modules/sys_file (Makefile.am): Likewise.
35737         * modules/sys_ioctl (Makefile.am): Likewise.
35738         * modules/sys_select (Makefile.am): Likewise.
35739         * modules/sys_socket (Makefile.am): Likewise.
35740         * modules/sys_stat (Makefile.am): Likewise.
35741         * modules/sys_time (Makefile.am): Likewise.
35742         * modules/sys_times (Makefile.am): Likewise.
35743         * modules/sys_utsname (Makefile.am): Likewise.
35744         * modules/sys_wait (Makefile.am): Likewise.
35745         * modules/sysexits (Makefile.am): Likewise.
35746         * modules/termios (Makefile.am): Likewise.
35747         * modules/time (Makefile.am): Likewise.
35748         * modules/unistd (Makefile.am): Likewise.
35749         * modules/wchar (Makefile.am): Likewise.
35750         * modules/wctype-h (Makefile.am): Likewise.
35751         Reported by Karl Berry, Eric Blake, and Ralf Wildenhues.
35753 2011-04-05  Bruno Haible  <bruno@clisp.org>
35755         pipe2: Relicense under LGPLv2+.
35756         * modules/pipe2 (License): Change to LGPLv2+.
35757         Requested by Eric Blake, for libvirt.
35759 2011-04-05  Bruce Korb  <bkorb@gnu.org>
35761         bootstrap: compute gnulib_extra_files after updating build_aux
35762         * build-aux/bootstrap (gnulib_extra_files): bootstrap.conf may
35763         change build_aux or also supply gnulib_extra_files.  Handle correctly.
35765 2011-04-05  Eric Blake  <eblake@redhat.com>
35767         bootstrap: preserve git whitelist item sorting
35768         * build-aux/bootstrap (sort_patterns): New function.
35769         (insert_sorted_if_absent): Use it to sink ! lines to the bottom.
35771 2011-04-05  Simon Josefsson  <simon@josefsson.org>
35773         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Don't trigger
35774         sc_space_tab check.
35776 2011-04-05  Paul Eggert  <eggert@cs.ucla.edu>
35778         areadlink, areadlinkat: rewrite in terms of careadlinkat
35779         * lib/areadlink.c, lib/areadlinkat.c: Include careadlinkat.h
35780         instead of errno.h, limits.h, stdint.h, stdlib.h, string.h, unistd.h.
35781         (SSIZE_MAX, INITIAL_BUF_SIZE): Remove.
35782         (malloc, realloc): Remove #undefs.
35783         (areadlink, areadlinkat): Rewrite in terms of careadlinkat.
35784         * modules/areadlink (Depends-on): Add careadlinkat.  Remove
35785         readlink, ssize_t, stdint, unistd.
35786         * modules/areadlinkat (Depends-on): Add careadlinkat.  Remove
35787         areadlink, stdint.
35789         careadlinkat: new module
35790         * lib/allocator.h, lib/careadlinkat.h, lib/careadlinkat.c:
35791         * modules/careadlinkat: New files, written by me with
35792         a review and feedback from Ben Pfaff in
35793         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00008.html>.
35795 2011-04-01  Bruno Haible  <bruno@clisp.org>
35797         wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr: Avoid errors in C++ mode.
35798         * lib/wchar.in.h (wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr): Use
35799         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS. On glibc >= 2.10
35800         systems, use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN.
35801         Reported by Bruce Korb <bruce.korb@gmail.com>.
35803 2011-04-01  Bruno Haible  <bruno@clisp.org>
35805         wcpcpy, wcpncpy: Ensure declaration on glibc >= 2.13 systems.
35806         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Require AC_USE_SYSTEM_EXTENSIONS.
35807         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Likewise.
35808         * modules/wcpcpy (Depends-on): Add extensions.
35809         * modules/wcpncpy (Depends-on): Likewise.
35810         * doc/posix-functions/wcpcpy.texi: Mention missing declaration on glibc
35811         systems.
35812         * doc/posix-functions/wcpncpy.texi: Likewise.
35813         * doc/posix-functions/wcwidth.texi: Likewise.
35815 2011-03-31  Eric Blake  <eblake@redhat.com>
35817         nonblocking: fix mingw test failures
35818         * lib/nonblocking.c (set_nonblocking_flag): Succeed when clearing
35819         non-blocking flag on regular file.
35820         (get_nonblocking_flag): Set errno on invalid fd.
35821         * tests/test-nonblocking.c (main): Avoid test failure on
35822         directories if fchdir is not active.
35823         * modules/nonblocking-tests (Depends-on): Drop unused dependency.
35825 2011-03-31  Bruno Haible  <bruno@clisp.org>
35827         Fix bug with gl_WARN_ON_USE_PREPARE, introduced on 2011-01-23.
35828         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): Hide the
35829         gl_WARN_ON_USE_PREPARE definition from 'aclocal'.
35830         Reported by Simon Josefsson <simon@josefsson.org>.
35832 2011-03-31  Bruno Haible  <bruno@clisp.org>
35833         and Eric Blake  <eblake@redhat.com>
35835         nonblocking: new module
35836         * modules/nonblocking: New module.
35837         * modules/nonblocking-tests: Likewise.
35838         * lib/nonblocking.h: New file.
35839         * lib/nonblocking.c: Likewise.
35840         * tests/test-nonblocking.c: New test.
35841         * lib/ioctl.c (ioctl) [mingw]: Update comment.
35843 2011-03-30  Bruno Haible  <bruno@clisp.org>
35845         stdio: Avoid GCC >= 4.4 warnings when using %lld and similar on mingw.
35846         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_PRINTF): Use 'gnu_printf' format
35847         instead of 'printf' format for GCC >= 4.4.
35848         (_GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM): New macro.
35849         (fprintf, printf, vfprintf, vprintf): Declare with
35850         _GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM when the function ends up calling
35851         the system's vfprintf() function.
35852         Reported by Daniel P. Berrange <berrange@redhat.com> via Eric Blake.
35854 2011-03-30  Eric Blake  <eblake@redhat.com>
35856         passfd: fix scoping bug
35857         * lib/passfd.c (sendfd, recvfd): Don't let buf go out of scope
35858         before sendmsg/recvmsg.
35860         passfd: standardize coding conventions
35861         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Drop check for something that
35862         can be learned at compile time.
35863         * lib/passfd.c (MSG_CMSG_CLOEXEC): Reduce number of in-function
35864         ifdefs.
35865         (sendfd, recvfd): Follow gnulib code conventions.
35867         passfd: fix incorrect sendmsg arguments
35868         * lib/passfd.c (sendfd): Avoid uninitialized msg_flags field, and
35869         incorrect msg_controllen value.
35870         * modules/passfd-tests (Depends-on): Check for alarm.
35871         * tests/test-passfd.c (main) [HAVE_DECL_ALARM]: Avoid hanging test.
35872         Reported by Bastien ROUCARIES.
35874 2011-03-30  Bruno Haible  <bruno@clisp.org>
35876         c-strcasestr: Relicense under LGPLv2+.
35877         * modules/c-strcasestr (License): Change to LGPLv2+.
35878         Requested by Eric Blake, for libvirt.
35880 2011-03-30  Simon Josefsson  <simon@josefsson.org>
35882         * users.txt: Add libidn2.  Fix libtasn1 link.
35884 2011-03-30  Jim Meyering  <meyering@redhat.com>
35886         tests: readlink* ("",... fails with EINVAL on newer kernels
35887         readlink and readlinkat have typically failed with ENOENT for
35888         the invalid, empty file name,  "".  However, with the advent
35889         of linux-2.6.39, they fail with EINVAL.
35890         * tests/test-areadlink.h (test_areadlink): Also accept EINVAL
35891         when operating on the empty file name.
35892         * tests/test-readlink.h (test_readlink): Likewise.
35894 2011-03-29  Bruno Haible  <bruno@clisp.org>
35896         Relicense some modules under LGPLv2+, for libidn2.
35897         * modules/array-mergesort (License): Change to LGPLv2+.
35898         * modules/c-strcaseeq (License): Likewise.
35899         * modules/striconveh (License): Likewise.
35900         * modules/striconveha (License): Likewise.
35901         * modules/uniconv/base (License): Likewise.
35902         * modules/uniconv/u8-conv-from-enc (License): Likewise.
35903         * modules/uniconv/u8-strconv-from-enc (License): Likewise.
35904         * modules/uniconv/u8-strconv-from-locale (License): Likewise.
35905         * modules/unictype/base (License): Likewise.
35906         * modules/unictype/bidiclass-of (License): Likewise.
35907         * modules/unictype/category-M (License): Likewise.
35908         * modules/unictype/category-none (License): Likewise.
35909         * modules/unictype/category-of (License): Likewise.
35910         * modules/unictype/category-test (License): Likewise.
35911         * modules/unictype/category-test-withtable (License): Likewise.
35912         * modules/unictype/combining-class (License): Likewise.
35913         * modules/unictype/joiningtype-of (License): Likewise.
35914         * modules/unictype/scripts (License): Likewise.
35915         * modules/uninorm/base (License): Likewise.
35916         * modules/uninorm/canonical-decomposition (License): Likewise.
35917         * modules/uninorm/composition (License): Likewise.
35918         * modules/uninorm/decompose-internal (License): Likewise.
35919         * modules/uninorm/decomposition-table (License): Likewise.
35920         * modules/uninorm/nfc (License): Likewise.
35921         * modules/uninorm/nfd (License): Likewise.
35922         * modules/uninorm/u32-normalize (License): Likewise.
35923         * modules/unistr/base (License): Likewise.
35924         * modules/unistr/u32-cpy (License): Likewise.
35925         * modules/unistr/u32-mbtouc-unsafe (License): Likewise.
35926         * modules/unistr/u32-to-u8 (License): Likewise.
35927         * modules/unistr/u32-uctomb (License): Likewise.
35928         * modules/unistr/u8-check (License): Likewise.
35929         * modules/unistr/u8-mblen (License): Likewise.
35930         * modules/unistr/u8-mbtouc (License): Likewise.
35931         * modules/unistr/u8-mbtouc-unsafe (License): Likewise.
35932         * modules/unistr/u8-mbtoucr (License): Likewise.
35933         * modules/unistr/u8-prev (License): Likewise.
35934         * modules/unistr/u8-strlen (License): Likewise.
35935         * modules/unistr/u8-to-u32 (License): Likewise.
35936         * modules/unistr/u8-uctomb (License): Likewise.
35937         * modules/unitypes (License): Likewise.
35938         Requested by Simon Josefsson.
35940 2011-03-29  Simon Josefsson  <simon@josefsson.org>
35942         lib-symbol-visibility: Add a notice.
35943         * modules/lib-symbol-visibility (Notice): New field.
35945 2011-03-29  Bruno Haible  <bruno@clisp.org>
35947         getaddrinfo: Doc fix.
35948         * doc/posix-functions/getaddrinfo.texi: Mention Windows problem in the
35949         section "fixed in Gnulib".
35951 2011-03-28  Simon Josefsson  <simon@josefsson.org>
35953         * doc/posix-functions/getaddrinfo.texi: Drop netdb.h discussion.
35954         Reported by Bastien ROUCARIES <roucaries.bastien@gmail.com>.
35956 2011-03-26  Bruno Haible  <bruno@clisp.org>
35958         unictype/property-byname: Reduce the number of load-time relocations.
35959         * lib/unictype/pr_byname.c: Include <stdlib.h>.
35960         (UC_PROPERTY_INDEX_*): New enumeration values.
35961         (uc_property_byname): Convert an index from the lookup table to an
35962         uc_property_t.
35963         * lib/unictype/pr_byname.gperf: Store indices instead of uc_property_t
35964         values.
35966 2011-03-26  Bruno Haible  <bruno@clisp.org>
35968         unictype/property-byname: Allow omitted word separators and aliases.
35969         * lib/unictype/pr_byname.gperf: Add property names without word
35970         separators. Add aliases from Unicode 6.0 PropertyAliases.txt, except
35971         for 'space'.
35973 2011-03-26  Bruno Haible  <bruno@clisp.org>
35975         unictype/joininggroup-byname: Allow hyphens, omitted word separators.
35976         * lib/unictype/joininggroup_byname.c (uc_joining_group_byname): Convert
35977         also hyphens to space.
35978         * lib/unictype/joininggroup_byname.gperf: Recognize the names also
35979         without spaces.
35980         * tests/unictype/test-joininggroup_byname.c (main): Add more tests.
35982 2011-03-26  Bruno Haible  <bruno@clisp.org>
35984         unictype/joiningtype-byname: Recognize long names as well.
35985         * lib/unictype.in.h (uc_joiningtype_class_byname): Allow argument to be
35986         a long name.
35987         * lib/unictype/joiningtype_byname.c: Include <string.h>,
35988         unictype/joiningtype_byname.h.
35989         (uc_joiningtype_class_byname): Use uc_joining_type_lookup.
35990         * lib/unictype/joiningtype_byname.gperf: New file.
35991         * modules/unictype/joiningtype-byname (Files): Add
35992         lib/unictype/joiningtype_byname.gperf.
35993         (Depends-on): Add gperf.
35994         (Makefile.am): Add rule for generating unictype/joiningtype_byname.h.
35995         * tests/unictype/test-joiningtype_byname.c (main): Test the recognition of
35996         long names.
35998         Tests for module 'unictype/joiningtype-longname'.
35999         * modules/unictype/joiningtype-longname-tests: New file.
36000         * tests/unictype/test-joiningtype_longname.c: New file.
36002         New module 'unictype/joiningtype-longname'.
36003         * lib/unictype.in.h (uc_joiningtype_class_long_name): New declaration.
36004         * lib/unictype/joiningtype_longname.c: New file.
36005         * modules/unictype/joiningtype-longname: New file.
36006         * modules/unictype/joiningtype-all (Depends-on): Add
36007         unictype/joiningtype-longname.
36009 2011-03-26  Bruno Haible  <bruno@clisp.org>
36011         unictype/bidiclass-byname: Recognize long names as well.
36012         * lib/unictype.in.h (uc_bidi_class_byname): Allow argument to be a long
36013         name.
36014         * lib/unictype/bidi_byname.c: Include <string.h>,
36015         unictype/bidi_byname.h.
36016         (uc_bidi_class_byname): Use uc_bidi_class_lookup.
36017         * lib/unictype/bidi_byname.gperf: New file.
36018         * modules/unictype/bidiclass-byname (Files): Add
36019         lib/unictype/bidi_byname.gperf.
36020         (Depends-on): Add gperf.
36021         (Makefile.am): Add rule for generating unictype/bidi_byname.h.
36022         * tests/unictype/test-bidi_byname.c (main): Test the recognition of
36023         long names.
36025         Tests for module 'unictype/bidiclass-longname'.
36026         * modules/unictype/bidiclass-longname-tests: New file.
36027         * tests/unictype/test-bidi_longname.c: New file.
36029         New module 'unictype/bidiclass-longname'.
36030         * lib/unictype.in.h (uc_bidi_class_long_name): New declaration.
36031         * lib/unictype/bidi_longname.c: New file.
36032         * modules/unictype/bidiclass-longname: New file.
36033         * modules/unictype/bidiclass-all (Depends-on): Add
36034         unictype/bidiclass-longname.
36036 2011-03-26  Bruno Haible  <bruno@clisp.org>
36038         unictype/bidi*: Rename modules.
36039         * modules/unictype/bidiclass-all: Renamed from
36040         modules/unictype/bidicategory-all.
36041         * modules/unictype/bidiclass-name: Renamed from
36042         modules/unictype/bidiclass-name.
36043         (Description): Update.
36044         * modules/unictype/bidiclass-name-tests: Renamed from
36045         modules/unictype/bidicategory-name-tests.
36046         * modules/unictype/bidiclass-byname: Renamed from
36047         modules/unictype/bidicategory-byname.
36048         (Description): Update.
36049         * modules/unictype/bidiclass-byname-tests: Renamed from
36050         modules/unictype/bidicategory-byname-tests.
36051         * modules/unictype/bidiclass-of: Renamed from
36052         modules/unictype/bidicategory-of.
36053         (Description): Update.
36054         * modules/unictype/bidiclass-of-tests: Renamed from
36055         modules/unictype/bidicategory-of-tests.
36056         * modules/unictype/bidiclass-test: Renamed from
36057         modules/unictype/bidicategory-test.
36058         (Description): Update.
36059         * modules/unictype/bidiclass-test-tests: Renamed from
36060         modules/unictype/bidicategory-test-tests.
36061         * modules/unictype/bidicategory-all: New file, a simple redirection.
36062         * modules/unictype/bidicategory-name: Likewise.
36063         * modules/unictype/bidicategory-byname: Likewise.
36064         * modules/unictype/bidicategory-of: Likewise.
36065         * modules/unictype/bidicategory-test: Likewise.
36066         * modules/unictype/property-bidi-* (Dependencies): Update.
36067         * lib/unictype/bidi_*.c: Update comment.
36069 2011-03-26  Bruno Haible  <bruno@clisp.org>
36071         unictype/bidi*: Rename functions, part 2.
36072         * modules/unictype/bidicategory-name (configure.ac): Update required
36073         libunistring version.
36074         * modules/unictype/bidicategory-byname (configure.ac): Likewise.
36076 2011-03-25  Bruno Haible  <bruno@clisp.org>
36078         New module 'unictype/combining-class-all'.
36079         * modules/unictype/combining-class-all: New file.
36081         Tests for module 'unictype/combining-class-byname'.
36082         * modules/unictype/combining-class-byname-tests: New file.
36083         * tests/unictype/test-combiningclass_byname.c: New file.
36085         New module 'unictype/combining-class-byname'.
36086         * lib/unictype.in.h (uc_combining_class_byname): New declaration.
36087         * lib/unictype/combiningclass_byname.c: New file.
36088         * lib/unictype/combiningclass_byname.gperf: New file.
36089         * modules/unictype/combining-class-byname: New file.
36091         Tests for module 'unictype/combining-class-longname'.
36092         * modules/unictype/combining-class-longname-tests: New file.
36093         * tests/unictype/test-combiningclass_longname.c: New file.
36095         New module 'unictype/combining-class-longname'.
36096         * lib/unictype.in.h (uc_combining_class_long_name): New declaration.
36097         * lib/unictype/combiningclass_longname.c: New file.
36098         * modules/unictype/combining-class-longname: New file.
36100         Tests for module 'unictype/combining-class-name'.
36101         * modules/unictype/combining-class-name-tests: New file.
36102         * tests/unictype/test-combiningclass_name.c: New file.
36104         New module 'unictype/combining-class-name'.
36105         * lib/unictype.in.h (uc_combining_class_name): New declaration.
36106         * lib/unictype/combiningclass_name.c: New file.
36107         * modules/unictype/combining-class-name: New file.
36109 2011-03-25  Bruno Haible  <bruno@clisp.org>
36111         unictype/combining-class: Rename source files.
36112         * lib/gen-uni-tables.c (main): Emit unictype/combiningclass.h instead
36113         of unictype/combining.h.
36114         * lib/unictype/combiningclass.c: Renamed from lib/unictype/combining.c.
36115         Update.
36116         * lib/unictype/combiningclass.h: Renamed from lib/unictype/combining.h.
36117         * modules/unictype/combining-class (Description): Fix.
36118         (Files, Makefile.am): Update.
36119         * tests/unictype/test-combiningclass.c: Renamed from
36120         tests/unictype/test-combining.c.
36121         * modules/unictype/combining-class-tests (Files, Makefile.am): Update.
36123 2011-03-25  Bruno Haible  <bruno@clisp.org>
36125         unictype: Update list of canonical combining classes.
36126         * lib/unictype.in.h (UC_CCC_ATA): New enumeration value.
36128 2011-03-25  Bruno Haible  <bruno@clisp.org>
36130         unictype/category-byname: Recognize long names as well.
36131         * lib/unictype.in.h (uc_general_category_byname): Allow argument to be
36132         a long name.
36133         * lib/unictype/categ_byname.c: Include <stdlib.h>, <string.h>,
36134         unictype/categ_byname.h.
36135         (UC_CATEGORY_INDEX_*): New enumeration values.
36136         (uc_general_category_byname): Use uc_general_category_lookup and
36137         convert from index to value.
36138         * lib/unictype/categ_byname.gperf: New file.
36139         * modules/unictype/category-byname (Files): Add
36140         lib/unictype/categ_byname.gperf.
36141         (Depends-on): Add gperf.
36142         (Makefile.am): Add rule for generating unictype/categ_byname.h.
36143         * tests/unictype/test-categ_byname.c (main): Test the recognition of
36144         long names.
36146         Tests for module 'unictype/category-longname'.
36147         * modules/unictype/category-longname-tests: New file.
36148         * tests/unictype/test-categ_longname.c: New file.
36150         New module 'unictype/category-longname'.
36151         * lib/unictype.in.h (uc_general_category_long_name): New declaration.
36152         * lib/unictype/categ_longname.c: New file.
36153         * modules/unictype/category-longname: New file.
36154         * modules/unictype/category-all (Depends-on): Add it.
36156 2011-03-25  Bruno Haible  <bruno@clisp.org>
36158         Tests for module 'unictype/category-LC'.
36159         * modules/unictype/category-LC-tests: New file.
36160         * tests/unictype/test-categ_LC.c: New file, automatically generated.
36162         New module 'unictype/category-LC'.
36163         * lib/unictype.in.h (UC_CATEGORY_MASK_LC): New enumeration value.
36164         (UC_CATEGORY_LC): New declaration.
36165         (UC_CASED_LETTER): New macro.
36166         * lib/gen-uni-tables.c (is_category_LC): New function.
36167         (output_categories): Also handle category LC.
36168         (UC_CATEGORY_MASK_LC): New enumeration value.
36169         (general_category_byname): Also handle category LC.
36170         * lib/unictype/categ_LC.c: New file.
36171         * lib/unictype/categ_LC.h: New file, automatically generated.
36172         * lib/unictype/categ_name.c (uc_general_category_name): Also handle
36173         category LC.
36174         * lib/unictype/categ_byname.c (uc_general_category_byname): Likewise.
36175         * modules/unictype/category-LC: New file.
36176         * modules/unictype/category-byname (Depends-on): Add
36177         unictype/category-LC.
36178         * modules/unictype/category-all (Depends-on): Likewise.
36180 2011-03-25  Eric Blake  <eblake@redhat.com>
36182         xmalloc: revert yesterday's regression
36183         * lib/xmalloc.c (xrealloc): Once again forward xrealloc(NULL,0) to
36184         realloc's underlying behavior (allowing allocation of zero-size
36185         objects, especially if malloc-gnu is also in use).
36187 2011-03-25  Reuben Thomas  <rrt@sc3d.org>
36189         maint.mk: add missing version to VC-tag
36190         * top/maint.mk: git tag was missing actual tag name; add it.
36192         valgrind: do leak checking, and exit with code 1 on error (not 0)
36193         * m4/valgrind-tests.m4: Add `--error-exitcode=1 --leak-check=full'
36194         to VALGRIND.
36196 2010-11-30  Reuben Thomas  <rrt@sc3d.org>
36198         posix-modules: say what it does.
36199         * posix-modules: Add a line to the --help output saying what it does.
36201 2011-03-24  Paul Eggert  <eggert@cs.ucla.edu>
36203         xmalloc: Do not leak if underlying realloc is C99 compatible.
36204         * lib/xmalloc.c (xrealloc): If N is zero, call 'free' directly.
36205         This avoids a leak on C99-based systems.  See
36206         <http://lists.gnu.org/archive/html/bug-gnulib/2011-03/msg00243.html>.
36208 2011-03-24  Eric Blake  <eblake@redhat.com>
36210         realloc: document portability problem
36211         * doc/posix-functions/realloc.texi (realloc): Mention pitfalls of
36212         passing 0 size to realloc.
36214 2011-03-23  Ben Walton  <bwalton@artsci.utoronto.ca>
36216         doc: update users.txt
36217         * users.txt: Add cvsps, tmpwatch
36219 2011-03-23  Matt Rice  <ratmice@gmail.com>
36221         doc: update users.txt
36222         * users.txt: Add gdb.
36224 2011-03-23  Jim Meyering  <meyering@redhat.com>
36226         doc: update users.txt
36227         Looking through matches up to the following URL (there are still
36228         several more pages), I found several projects that use gnulib:
36229         http://codesearch.google.com/codesearch?start=50&q=gnulib-cache\.m4
36230         * users.txt: Add nagios plugins (nagiosplug), acct, gengetopt,
36231         gmediaserver, gtkreindeer, jugtail, libunistring, mini-httpd, reindeer.
36233 2011-03-22  Bruno Haible  <bruno@clisp.org>
36235         unictype/bidi*: Rename functions.
36236         * lib/unictype.in.h (uc_bidi_class_name, uc_bidi_class_byname,
36237         uc_bidi_class, uc_is_bidi_class): New declarations.
36238         * lib/unictype/bidi_byname.c (uc_bidi_class_byname): Renamed from
36239         uc_bidi_category_byname.
36240         (uc_bidi_category_byname): New function.
36241         * lib/unictype/bidi_name.c (u_bidi_class_name): Renamed from
36242         u_bidi_category_name.
36243         (uc_bidi_class_name): Renamed from uc_bidi_category_name.
36244         (uc_bidi_category_name): New function.
36245         * lib/unictype/bidi_of.c (uc_bidi_class): Renamed from
36246         uc_bidi_category.
36247         (uc_bidi_category): New function.
36248         * lib/unictype/bidi_test.c (uc_is_bidi_class): Renamed from
36249         uc_is_bidi_category. Invoke uc_bidi_class.
36250         (uc_is_bidi_category): New function.
36251         * tests/unictype/test-bidi_byname.c (main): Test uc_bidi_class_byname
36252         instead of uc_bidi_category_byname.
36253         * tests/unictype/test-bidi_name.c (main): Test uc_bidi_class_name
36254         instead of uc_bidi_category_name.
36255         * tests/unictype/test-bidi_of.c (main): Test uc_bidi_class instead of
36256         uc_bidi_category.
36257         * tests/unictype/test-bidi_test.c (main): Test uc_is_bidi_class
36258         instead of uc_is_bidi_category.
36260 2011-03-21  Bruno Haible  <bruno@clisp.org>
36262         New module 'unictype/joininggroup-all'.
36263         * modules/unictype/joininggroup-all: New file.
36265         Tests for module 'unictype/joininggroup-of'.
36266         * modules/unictype/joininggroup-of-tests: New file.
36267         * tests/unictype/test-joininggroup_of.c: New file.
36268         * tests/unictype/test-joininggroup_of.h: New file, automatically
36269         generated by gen-uni-tables.
36271         New module 'unictype/joininggroup-of'.
36272         * modules/unictype/joininggroup-of: New file.
36273         * lib/unictype/joininggroup_of.c: New file.
36274         * lib/unictype/joininggroup_of.h: New file, automatically generated by
36275         gen-uni-tables.
36277         Tests for module 'unictype/joininggroup-byname'.
36278         * modules/unictype/joininggroup-byname-tests: New file.
36279         * tests/unictype/test-joininggroup_byname.c: New file.
36281         New module 'unictype/joininggroup-byname'.
36282         * modules/unictype/joininggroup-byname: New file.
36283         * lib/unictype/joininggroup_byname.c: New file.
36284         * lib/unictype/joininggroup_byname.gperf: New file.
36286         Tests for module 'unictype/joininggroup-name'.
36287         * modules/unictype/joininggroup-name-tests: New file.
36288         * tests/unictype/test-joininggroup_name.c: New file.
36290         New module 'unictype/joininggroup-name'.
36291         * modules/unictype/joininggroup-name: New file.
36292         * lib/unictype/joininggroup_name.c: New file.
36293         * lib/unictype/joininggroup_name.h: New file.
36295         New module 'unictype/joiningtype-all'.
36296         * modules/unictype/joiningtype-all: New file.
36298         Tests for module 'unictype/joiningtype-of'.
36299         * modules/unictype/joiningtype-of-tests: New file.
36300         * tests/unictype/test-joiningtype_of.c: New file.
36301         * tests/unictype/test-joiningtype_of.h: New file, automatically
36302         generated by gen-uni-tables.
36304         New module 'unictype/joiningtype-of'.
36305         * modules/unictype/joiningtype-of: New file.
36306         * lib/unictype/joiningtype_of.c: New file.
36307         * lib/unictype/joiningtype_of.h: New file, automatically generated by
36308         gen-uni-tables.
36310         Tests for module 'unictype/joiningtype-byname'.
36311         * modules/unictype/joiningtype-byname-tests: New file.
36312         * tests/unictype/test-joiningtype_byname.c: New file.
36314         New module 'unictype/joiningtype-byname'.
36315         * modules/unictype/joiningtype-byname: New file.
36316         * lib/unictype/joiningtype_byname.c: New file.
36318         Tests for module 'unictype/joiningtype-name'.
36319         * modules/unictype/joiningtype-name-tests: New file.
36320         * tests/unictype/test-joiningtype_name.c: New file.
36322         New module 'unictype/joiningtype-name'.
36323         * modules/unictype/joiningtype-name: New file.
36324         * lib/unictype/joiningtype_name.c: New file.
36326         unictype: Add support for Arabic shaping properties.
36327         * lib/unictype.in.h (UC_JOINING_TYPE_*): New enumeration values.
36328         (uc_joining_type_name, uc_joining_type_byname, uc_joining_type): New
36329         declarations.
36330         (UC_JOINING_GROUP_*): New enumeration values.
36331         (uc_joining_group_name, uc_joining_group_byname, uc_joining_group): New
36332         declarations.
36333         * lib/gen-uni-tables.c (UC_JOINING_TYPE_*): New enumeration values.
36334         (unicode_joining_type): New variable.
36335         (UC_JOINING_GROUP_*): New enumeration values.
36336         (unicode_joining_group): New variable.
36337         (fill_arabicshaping, joining_type_as_c_identifier,
36338         output_joining_type_test, output_joining_type,
36339         joining_group_as_c_identifier, output_joining_group_test,
36340         output_joining_group): New functions.
36341         (main); Add an argument denoting the ArabicShaping.txt file. Invoke
36342         fill_arabicshaping and output_joining_type_test, output_joining_type,
36343         output_joining_group_test, output_joining_group.
36344         Reported by Simon Josefsson.
36346 2011-03-21  Jim Meyering  <meyering@redhat.com>
36348         strftime: fix a bug in yesterday's change
36349         * lib/strftime.c (add): Accommodate width's initial value of -1.
36350         Otherwise, nstrftime would copy uninitialized data into
36351         the result buffer.
36353 2011-03-21  Jim Meyering  <meyering@redhat.com>
36355         tests: add strftime-tests module
36356         * tests/test-strftime.c: New file.
36357         * modules/strftime-tests: New module.
36359 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
36361         strftime: don't assume a byte count fits in 'int'
36362         * lib/strftime.c (add): Don't assume first arg fits in 'int'.  I
36363         found this problem by static analysis, using gcc -Wstrict-overflow
36364         (GCC 4.5.2, x86-64).  This reported an optimization that depended
36365         on an integer overflow having undefined behavior, but it turns out
36366         that the argument is a size, which might not fit in 'int' anyway,
36368 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
36370         stdio: don't require ignore_value around fwrite
36372         This patch works around libc bug 11959
36373         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=11959>.
36374         Without this patch, applications must often write
36375         ignore_value (fwrite (...)) even though the ignore_value is
36376         not helpful here.  It's common to write many objects, using
36377         fwrite/printf/etc., and then use ferror to detect output error.
36379         I considered making this patch optional, but decided against it,
36380         because libc is obviously being inconsistent here: there is no
36381         reason libc should insist that user code must inspect fwrite
36382         return's value without also insisting that it inspect printf's,
36383         putchar's, etc.  If user code wants to have a strict style where
36384         all these functions' values are checked (so that ferror need not
36385         be checked), we could add support for that style in a new gnulib
36386         module, but in the meantime it's better to be consistent and to
36387         support common usage.
36389         * lib/stdio.in.h (rpl_fwrite): Define this wrapper around fwrite,
36390         to work around libc bug 11959, if __USE_FORTIFY_LEVEL indicates
36391         that we are compiling in checking mode, and if not C++, and
36392         if not already wrapping fwrite for some other reason.
36393         (fwrite): #define to rpl_fwrite if the latter is defined.
36395 2011-03-20  Bruno Haible  <bruno@clisp.org>
36397         verror: Fix compilation error introduced on 2011-02-13.
36398         * lib/verror.h (verror, verror_at_line): Use _GL_ATTRIBUTE_FORMAT macro
36399         instead of __attribute__.
36400         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
36402 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
36403             Bruno Haible  <bruno@clisp.org>
36405         socklen: do not depend on sys_socket
36406         While trying to modify Emacs to use gnulib's socklen module,
36407         I discovered a circular dependency: socklen depends on sys_socket
36408         and vice versa.  Emacs can use socklen, but it does not need
36409         sys_socket because it has its own substitute for sys/socket.h.
36410         * m4/socklen.m4 (gl_SOCKET_HEADERS): New macro, extracted from
36411         gl_TYPE_SOCKLEN_T.
36412         (gl_CHECK_SOCKET_HEADERS): New macro, taken from parts of
36413         gl_PREREQ_SYS_H_SOCKET.
36414         (gl_TYPE_SOCKLEN_T): Require it instead of requiring
36415         gl_PREREQ_SYS_H_SOCKET.
36416         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_SOCKET): Require
36417         gl_CHECK_SOCKET_HEADERS instead of doing its work ourselves.
36418         * modules/socklen (Depends-on): Do not depend on sys_socket.
36419         (Include): Adjust to match the code used in gl_SOCKET_HEADERS.
36421 2011-03-20  Jim Meyering  <meyering@redhat.com>
36423         maint.mk: sort file names *after* new transformation
36424         * top/maint.mk (sc_po_check): Sorting before removing the $(srcdir)/
36425         prefix would have led to an unwarranted failure in GNU parted.
36426         Sort after that transformation.
36428 2011-03-19  Jim Meyering  <meyering@redhat.com>
36430         maint.mk: fix po-file syntax-check rule
36431         * top/maint.mk (sc_po_check): Fix fatal typo in yesterday's change.
36432         Patch by Bruno Haible.
36434 2011-03-19  Bruno Haible  <bruno@clisp.org>
36436         socklen: Update comment.
36437         * m4/socklen.m4: Update comment about platforms.
36439 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
36440             Bruno Haible  <bruno@clisp.org>
36442         inet_ntop, inet_pton: Simplify.
36443         * modules/inet_ntop (Depends-on): Remove socklen, since sys_socket is
36444         documented to provide socklen_t and we already depend on sys_socket.
36445         * modules/inet_pton (Depends-on): Likewise.
36446         * lib/arpa_inet.in.h: Adjust comment.
36448 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
36449             Bruno Haible  <bruno@clisp.org>
36451         netdb: Simplify.
36452         * modules/netdb (Depends-on): Remove socklen, since sys_socket is
36453         documented to provide socklen_t and we already depend on sys_socket.
36454         * lib/netdb.in.h: Adjust comment.
36456 2011-03-19  Bruno Haible  <bruno@clisp.org>
36458         sys_socket, netdb: Document problem with socklen_t.
36459         * doc/posix-headers/sys_socket.texi: Mention lack of socklen_t on some
36460         platforms.
36461         * doc/posix-headers/netdb.texi: Likewise.
36463 2011-03-18  Eric Blake  <eblake@redhat.com>
36465         maint.mk: let po check work in VPATH build
36466         * top/maint.mk (po_file): Allow cfg.mk override.
36467         (sc_po_check): Allow VPATH use.
36468         Reported by Jiri Denemark.
36470 2011-03-16  Jim Meyering  <meyering@redhat.com>
36472         maint.mk: allow fine-grained syntax-check exclusion via Make variables
36473         Before, you would have had to create one .x-sc_ file per rule in order
36474         to exempt offending files.  Now, you may instead use a Make variable --
36475         usually defined in cfg.mk -- whose name identifies the affected rule.
36476         * top/maint.mk (_sc_excl): Define.
36477         (VC_LIST_EXCEPT): Use it to exclude names on a per-rule basis.
36478         (_sc_search_regexp): When not using VC_LIST_EXCEPT, exclude here, too.
36480 2011-03-13  Bruno Haible  <bruno@clisp.org>
36482         ignore-value tests: Avoid warnings.
36483         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Define to
36484         empty for gcc < 3.4.
36486 2011-03-13  Bruno Haible  <bruno@clisp.org>
36488         passfd: Fix link error on Solaris.
36489         * modules/passfd (Description): Correct.
36490         (Depends-on): Add socketlib.
36491         (Link): New section.
36492         * modules/passfd-tests (Makefile.am): Link test-passfd with LIBSOCKET.
36494 2011-03-13  Bruno Haible  <bruno@clisp.org>
36496         passfd: Fix link error on AIX 5.2.
36497         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Define _LINUX_SOURCE_COMPAT.
36499 2011-03-13  Bruno Haible  <bruno@clisp.org>
36501         passfd: Work around bug with CMSG_FIRSTHDR on FreeBSD 6.4.
36502         * lib/sys_socket.in.h: Include <stddef.h>.
36503         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Include <stddef.h> before using
36504         CMSG_FIRSTHDR. Remove unused variable.
36506 2011-03-13  Bruno Haible  <bruno@clisp.org>
36508         passfd: Fix compilation error on OpenBSD.
36509         * lib/passfd.c: Include <sys/uio.h>.
36511 2011-03-13  Bruno Haible  <bruno@clisp.org>
36513         passfd test: Fix warnings.
36514         * tests/test-passfd.c: Include <sys/wait.h>.
36515         (main): Fix typo.
36517 2011-03-13  Bruno Haible  <bruno@clisp.org>
36519         passfd module, part 4, tweaks.
36520         * tests/test-passfd.c: Reorder includes.
36521         (main): Fix perror and printf calls.
36523 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
36525         passfd module, part 4.
36526         * modules/passfd-tests: New file.
36527         * tests/test-passfd.c: New file.
36529 2011-03-13  Jim Meyering  <meyering@redhat.com>
36531         Makefile: rely on GNU make; derive syntax-check rule names
36532         Rather than requiring that each sc_ rule be listed as a dependent
36533         of "check", use features of GNU make to derive the list.
36534         * Makefile (syntax-check-rules): Define.
36535         (check): Depend on the new variable, not the hard-coded list.
36537 2011-03-13  Bastien Roucariès  <roucaries.bastien@gmail.com>
36538             Bruno Haible  <bruno@clisp.org>
36540         passfd module, part 3.
36541         * lib/passfd.h (recvfd): Add a flags argument.
36542         * lib/passfd.c: Include <fcntl.h>, cloexec.h.
36543         (recvfd): Add a flags argument.
36544         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Test whether MSG_CMSG_CLOEXEC
36545         exists.
36546         * modules/passfd (Depends-on): Add cloexec.
36547         Suggested by Eric Blake.
36549 2011-03-13  Bruno Haible  <bruno@clisp.org>
36551         passfd module, part 2, tweaks.
36552         * modules/passfd (Files): Reorder.
36553         (Depends-on): Remove errno.
36554         (Include): Remove <sys/socket.h>, <sys/un.h>.
36555         * lib/passfd.h: Use a GPLv3+ header. Make C++ safe.
36556         * lib/passfd.c: Untabify. Use a GPLv3+ header. Really include the
36557         specification header. Include <sys/socket.h> always. Don't include
36558         <winsock2.h>. Use "#if HAVE_..." instead of "#ifdef HAVE_...".
36559         (sendfd): Clarify that it sets errno when it fails.
36560         (recvfd): Fix specification.
36562 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
36564         passfd module, part 2.
36565         * modules/passfd: New file.
36566         * lib/passfd.h: New file.
36567         * lib/passfd.c: New file.
36569 2011-03-12  Bruno Haible  <bruno@clisp.org>
36571         wcswidth, mbswidth: Avoid integer overflow.
36572         * lib/wcswidth.c: Include <limits.h>.
36573         * lib/wcswidth-impl.h (wcswidth): Avoid 'int' overflow.
36574         * lib/mbswidth.c: Include <limits.h>.
36575         (mbsnwidth): Avoid 'int' overflow.
36576         Reported by Jim Meyering.
36578 2011-03-12  Bruno Haible  <bruno@clisp.org>
36580         futimens, utimensat: Avoid endless recursion on Solaris 10.
36581         * lib/sys_stat.in.h (futimens, utimensat): Define with rpl_ prefix on
36582         Solaris.
36583         Reported by Ben Walton <bwalton@artsci.utoronto.ca> via Eric Blake
36584         in <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=8230>.
36586 2011-03-11  Jim Meyering  <meyering@redhat.com>
36588         maint.mk: relax a regexp to accommodate other formatting styles
36589         * top/maint.mk (sc_unmarked_diagnostics): Allow 0 or 1 space
36590         between "ngettext" and the following "(".
36592 2011-03-11  Pádraig Brady  <P@draigBrady.com>
36594         maint.mk: suppress a false positive warning
36595         * top/maint.mk ((sc_unmarked_diagnostics): Don't warn when
36596         diagnostics are marked with ngettext.
36598 2011-03-10  Eric Blake  <eblake@redhat.com>
36600         wchar: add explicit dependencies, for Tru64
36601         * modules/mbmemcasecoll (Depends-on): Add wchar.
36602         * modules/mbtowc (Depends-on): Likewise.
36603         * modules/vasnprintf (Depends-on): Likewise.
36604         * modules/unistdio/u-printf-args (Depends-on): Likewise.
36605         * modules/wctomb (Depends-on): Likewise.
36606         Reported by Peter O'Gorman.
36608 2011-03-08  Bruno Haible  <bruno@clisp.org>
36610         passfd module, part 1, tweaks.
36611         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Update AC_REQUIRE invocation.
36612         Improve indentation. Improve AC_MSG_CHECKING messages.
36613         * m4/sockpfaf.m4 (gl_SOCKET_FAMILY_UNIX): New macro, extracted from
36614         gl_SOCKET_FAMILIES.
36616 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
36618         passfd module, part 1.
36619         * m4/afunix.m4: New file.
36620         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Also test for UNIX domain
36621         sockets.
36623 2011-03-08  Bruno Haible  <bruno@clisp.org>
36625         regex-quote: New API.
36626         * lib/regex-quote.h: Include <stdbool.h>.
36627         (struct regex_quote_spec): New type.
36628         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
36629         New declarations.
36630         (regex_quote_length, regex_quote_copy, regex_quote): Take a
36631         'const struct regex_quote_spec *' argument.
36632         * lib/regex-quote.c (RE_*, PCRE_*): New macros.
36633         (pcre_special): New constant.
36634         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
36635         New functions.
36636         (regex_quote_length, regex_quote_copy, regex_quote): Take a
36637         'const struct regex_quote_spec *' argument.
36638         * modules/regex-quote (Depends-on): Add stdbool.
36639         * tests/test-regex-quote.c (check): Update for new API. Add test for
36640         anchored results.
36641         * NEWS: Mention the API change.
36642         Reported by Reuben Thomas and Eric Blake.
36644 2011-03-06  Bruno Haible  <bruno@clisp.org>
36646         regex-quote: Fix creation of POSIX extended regular expressions.
36647         * lib/regex-quote.c (ere_special): Add grouping and alternation
36648         operators.
36650 2011-03-05  Bruno Haible  <bruno@clisp.org>
36652         doc: Improve doc regarding autopoint vs. gnulib.
36653         * doc/gnulib-tool.texi (gettextize and autopoint): Recommend to
36654         disable autopoint while running autoreconf.
36655         Suggested by Ralf Wildenhues.
36657 2011-03-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36659         Update AC_OPENMP macro for Lahey compiler on GNU/Linux.
36660         * m4/openmp.m4 (AC_OPENMP): Sync from Autoconf.
36662 2011-03-03  Bruce Korb  <bkorb@gnu.org>
36664         parse-duration: remove xalloc.h dependency
36665         * lib/parse-duration.c (parse_period): handle NULL return from
36666         strdup instead of calling xstrdup().
36667         * modules/parse-duration: remove "xalloc" dependency
36669 2011-03-03  Matthew Booth  <mbooth@redhat.com>
36671         bootstrap: honor m4_base when running aclocal
36672         * build-aux/bootstrap: Fix hard-coded use of m4 directory name.
36674 2011-03-02  Jim Meyering  <meyering@redhat.com>
36676         getopt-gnu: relax license from LGPLv3+ to LGPLv2+
36677         * modules/getopt-gnu (License): Relax to LGPLv2+, for augeas,
36678         on request from Matt Booth.
36680 2011-03-01  Eric Blake  <eblake@redhat.com>
36682         test-link: work on Hurd
36683         * tests/test-link.h (test_link): Hurd rejects linking directories
36684         with EISDIR instead of the POSIX-mandated EPERM.
36686 2011-02-28  Paul Eggert  <eggert@cs.ucla.edu>
36688         stdio: simplify by moving files to printf-posix, sigpipe
36689         * m4/stdio_h.m4 (gl_STDIO_H): Do not require gl_ASM_SYMBOL_PREFIX,
36690         since this symbol is needed only if printf is replaced.
36691         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF):
36692         Require gl_ASM_SYMBOL_PREFIX.
36693         * modules/printf-posix (Files): Add m4/asm-underscore.m4.
36694         * modules/sigpipe (Files): Likewise.  Also, add m4/stdio-write.c.
36695         (Depends-on): Add 'raise'.
36696         (configure.ac): Require gl_ASM_SYMBOL_PREFIX.
36697         * modules/stdio (Files): Remove lib/stdio-write.c,
36698         m4/asm-underscore.m4.
36699         (Depends-on): Remove 'raise'.
36701         stdio: simplify by moving gl_STDIN_LARGE_OFFSET to fseeko, ftello
36702         * m4/fseeko.m4 (gl_STDIN_LARGE_OFFSET): Moved here, from ...
36703         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): ... here, because
36704         * modules/ftello (Files): Add m4/fseeko.m4, for gl_STDIN_LARGE_OFFSET.
36706 2011-02-28  Bruno Haible  <bruno@clisp.org>
36708         localcharset: Assume ANSI C behaviour of free().
36709         * lib/localcharset.c (get_charset_aliases): Remove NULL test before
36710         calling free().
36711         Suggested by Simon Josefsson <simon@josefsson.org>.
36713 2011-02-28  Corinna Vinschen  <vinschen@redhat.com>  (tiny change)
36714             Charles Wilson  <cygwin@cwilson.fastmail.fm>  (tiny change)
36715             Bruno Haible  <bruno@clisp.org>  (tiny change)
36717         On Cygwin, use /proc file system instead of win32 API.
36718         * lib/relocatable.c: On Cygwin, use file names from /proc, rather than
36719         Win32 file names.
36720         (DllMain): Simplify by removing Cygwin specific code.
36721         (find_shared_library_fullname): Use Linux specific implementation also
36722         for Cygwin.
36723         (get_shared_library_fullname): Update accordingly.
36724         * lib/progreloc.c: On Cygwin, use file names from /proc, rather than
36725         Win32 file names.
36726         (find_executable): On Cygwin, use /proc, like on Linux. Remove previous
36727         Cygwin specific code.
36729 2011-02-28  Christian Rössel  <christian.roessel@gmx.de>  (tiny change)
36730             Markus Geimer  <m.geimer@fz-juelich.de>  (tiny change)
36732         Fix OpenMP flag detection for various Fortran compilers.
36733         * m4/openmp.m4 (_AC_LANG_OPENMP(Fortran 77)): Use '!$'
36734         OpenMP-conditional compilation construct, to force compile
36735         failure with missing OpenMP flag.
36736         (AC_OPENMP): Add flags for Cray CCE and NEC SX compilers.
36738 2011-02-25  Eric Blake  <eblake@redhat.com>
36740         strstr: expand test coverage
36741         * tests/test-strstr.c (main): Add much shorter trigger.  Fix C89
36742         compilation.
36743         * tests/test-memmem.c (main): Duplicate tests.
36744         * tests/test-strcasestr.c (main): Likewise.
36745         * tests/test-c-strcasestr.c (main): Likewise.
36747 2011-02-25  Jim Meyering  <meyering@redhat.com>
36749         maint.mk: detect missing-NL-at-EOF, too
36750         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Adjust so that
36751         it also detects when a file lacks a newline at EOF.
36752         (require_exactly_one_NL_at_EOF_): Renamed from
36753         detect_empty_lines_at_EOF_.  I opted not to rename the rule,
36754         since people may well have .x-sc_... file names tied to the
36755         existing name.  Suggested by Eric Blake.
36757 2011-02-25  Paul Eggert  <eggert@cs.ucla.edu>
36759         dirname: move m4/dos.m4 functionality into lib/dosname.h
36761         m4/dos.m4 needs to go.  It laboriously invokes the C compiler, and
36762         extracts symbols from it, puts them into config.h; but it's much
36763         easier to use the symbols directly.  filename.h already does this,
36764         but it disagrees with dos.m4 in some respects.  This patch
36765         introduces a different include file dosname.h that packages up
36766         dos.m4, and then later we can work on merging filename.h and
36767         dosname.h.  Applications that need only the easy-to-configure
36768         symbols should consider including dosname.h rather than dirname.h.
36769         * NEWS: Mention incompatible changes.
36770         * m4/dos.m4: Remove.
36771         * lib/dosname.h, modules/dosname: New files.
36772         * lib/dirname.h (ISSLASH, FILE_SYSTEM_PREFIX_LEN):
36773         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE):
36774         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): Move to lib/dosname.h.
36775         * lib/at-func.c, lib/at-func2.c, lib/openat.c, lib/savewd.c:
36776         Include dosname.h, not dirname.h.
36777         * lib/rmdir.c, lib/stat.c, lib/unlink.c, lib/unlinkat.c:
36778         Include dosname.h, for definitions of symbols like ISSLASH
36779         that used to be in config.h.
36780         * m4/dirname.m4 (gl_DIRNAME_LGPL): Do not require gl_AC_DOS.
36781         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
36782         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
36783         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
36784         * modules/dirname-lgpl (Files): Omit m4/dos.m4.
36785         * modules/rmdir (Files): Likewise.
36786         * modules/stat (Files): Likewise.
36787         * modules/unlink (Files): Likewise.
36788         * modules/dirname-lgpl (Depends-on): Add dosname.
36789         * modules/lstat (Depends-on): Likewise.
36790         * modules/openat (Depends-on): Likewise.
36791         * modules/rmdir (Depends-on): Likewise.
36792         * modules/savewd (Depends-on): Likewise.
36793         * modules/stat (Depends-on): Likewise.
36794         * modules/unlink (Depends-on): Likewise.
36795         * modules/openat (Depends-on): Remove dirname-lgpl.
36796         * modules/savewd (Depends-on): Likewise.
36797         * tests/test-dirname.c: Do not use removed symbols like
36798         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.  Instead, use
36799         the remaining symbols, e.g., ISSLASH ('\\').
36801 2011-02-25  Eric Blake  <eblake@redhat.com>
36803         strstr: revert patches that introduced bug and pessimization
36804         * lib/str-two-way.h: Add another reference.
36805         (two_way_short_needle, two_way_long_needle): Revert changes from
36806         2011-02-24; they pessimize search speed.
36807         (critical_factorization): Partially revert changes from
36808         2010-06-22; they violate the requirement that the left half of the
36809         needle be smaller than the period of the needle.
36811 2011-02-24  Paul Eggert  <eggert@cs.ucla.edu>
36813         filenamecat: remove unnecessary dependency on dirname-lgpl
36814         * modules/filenamecat (Depends-on): Remove dirname-lgpl, as there
36815         is no direct dependency, just an indirect one via filenamecat-lgpl.
36817         remove: remove unnecessary use of m4/dos.m4
36818         * m4/remove.m4 (gl_FUNC_REMOVE): Don't require gl_AC_DOS; not needed.
36819         * modules/remove (FILES): Remove m4/dos.m4.
36821         * lib/openat-proc.c: Don't include dirname.h; not needed.
36823         backupfile: remove unnecessary use of m4/dos.m4
36824         * m4/backupfile.m4 (gl_BACKUPFILE): Don't require gl_AC_DOS; none
36825         of its symbols are used by the backupfile code.  backupfile.c does
36826         use a symbol HAVE_DOS_FILE_NAMES, but that symbol is meant only
36827         for the rare case of programs that want all their backup file
36828         names to live within 8+3 limits, and dos.m4 doesn't address that.
36829         * modules/backupfile (Files): Remove m4/dos.m4.
36831 2011-02-24  Jim Meyering  <meyering@redhat.com>
36833         strstr: fix a bug whereby strstr would mistakenly return NULL
36834         * lib/str-two-way.h (two_way_short_needle): Correct off-by-one error
36835         in period calculation.
36836         (two_way_long_needle): Likewise.
36837         The original problem was reported by Mike Stump in
36838         http://thread.gmane.org/gmane.comp.sysutils.autoconf.bugs/7834
36839         Ralf Wildenhues provided the short needle and haystack.
36840         * tests/test-strstr.c: Add Ralf's test case to trigger the bug.
36841         Add a more involved test to trigger the bug in two_way_long_needle.
36843 2011-02-24  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
36845         gnulib-tool: remove use of bold display in help screen
36846         * gnulib-tool (func_usage): Do not use bold display anymore in the
36847         help screen.  That was just meant to be a temporary emphasis for a
36848         backward-incompatible change.
36850 2011-02-23  Bruno Haible  <bruno@clisp.org>
36852         Fix misindentation of preprocessor directives.
36853         * lib/argp-namefrob.h: Reindent preprocessor directives.
36854         * lib/getopt_int.h (struct _getopt_data): Likewise.
36855         * lib/progreloc.c (maybe_executable, find_executable): Likewise.
36856         * lib/vasnprintf.c (decode_long_double): Likewise.
36857         * tests/test-argmatch.c: Insert blank lines, for clarity.
36858         * tests/test-exclude.c: Likewise.
36860 2011-02-22  Bruno Haible  <bruno@clisp.org>
36862         ioctl: Fix for MacOS X in 64-bit mode.
36863         * lib/ioctl.c (rpl_ioctl): Zero-extend, not sign-extend, the request
36864         value.
36865         Suggested by Eric Blake.
36866         Reported by Markus Gothe <nietzsche@lysator.liu.se>.
36868 2011-02-22  Jim Meyering  <meyering@redhat.com>
36870         maint: sc_cpp_indent_check: remove the "only in lib/" restriction
36871         * Makefile (sc_cpp_indent_check): Don't limit the check to files
36872         in lib/.
36874 2011-02-22  Eric Blake  <eblake@redhat.com>
36876         maint: avoid any CDPATH issue
36877         * Makefile (sc_cpp_indent_check): Anchor cd argument.
36879         maint: adjust cpp indentation for my modules, as well
36880         * Makefile (sc_cpp_indent_check): Add my name.
36881         * lib/fbufmode.c: Filter through cppi.
36882         * lib/fpurge.c: Likewise.
36883         * lib/freadable.c: Likewise.
36884         * lib/freading.c: Likewise.
36885         * lib/fwritable.c: Likewise.
36886         * lib/fwriting.c: Likewise.
36887         * lib/sigaction.c: Likewise.
36889 2011-02-22  Jim Meyering  <meyering@redhat.com>
36891         maint: adjust cpp indentation to reflect nesting depth
36892         I.e., in a block of code that begins with an unnested "#if",
36893         put one space between the "#" in column 1 and following token.
36894         For example,
36895         -#include <sys/vfs.h>
36896         +# include <sys/vfs.h>
36897         Do this only in .c files that are part of a module I maintain.
36898         * lib/linkat.c: Filter through cppi.
36899         * lib/nanosleep.c: Likewise.
36900         * lib/openat.c: Likewise.
36901         * lib/openat-die.c: Likewise.
36902         * lib/dup3.c: Likewise.
36903         * lib/fchownat.c: Likewise.
36904         * lib/flock.c: Likewise.
36905         * lib/fsync.c: Likewise.
36906         * lib/fts.c: Likewise.
36907         * lib/getpass.c: Likewise.
36908         * lib/gettimeofday.c: Likewise.
36909         * lib/userspec.c: Likewise.
36910         * Makefile (sc_cpp_indent_check): New rule, to check this.
36912 2011-02-22  Bruno Haible  <bruno@clisp.org>
36914         New module 'wctomb'.
36915         * lib/stdlib.in.h (wctomb): New declaration.
36916         * lib/wctomb.c: New file.
36917         * lib/wctomb-impl.h: New file.
36918         * m4/wctomb.m4: New file.
36919         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_WCTOMB,
36920         REPLACE_WCTOMB.
36921         * modules/stdlib (Makefile.am): Substitute GNULIB_WCTOMB,
36922         REPLACE_WCTOMB.
36923         * modules/wctomb: New file.
36924         * tests/test-stdlib-c++.cc: Test signature of wctomb.
36925         * doc/posix-functions/wctomb.texi: Mention the new module.
36926         * modules/wctob (Depends-on): Add wctomb.
36928 2011-02-22  Bruno Haible  <bruno@clisp.org>
36930         New module 'mbtowc'.
36931         * lib/stdlib.in.h (mbtowc): New declaration.
36932         * lib/mbtowc.c: New file.
36933         * lib/mbtowc-impl.h: New file, from libutf8 with modifications.
36934         * m4/mbtowc.m4: New file.
36935         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MBTOWC,
36936         REPLACE_MBTOWC.
36937         * modules/stdlib (Makefile.am): Substitute GNULIB_MBTOWC,
36938         REPLACE_MBTOWC.
36939         * modules/mbtowc: New file.
36940         * tests/test-stdlib-c++.cc: Test signature of mbtowc.
36941         * doc/posix-functions/mbtowc.texi: Mention the new module.
36942         * modules/btowc (Depends-on): Add mbtowc.
36944 2011-02-22  Bruno Haible  <bruno@clisp.org>
36946         wcrtomb: Add more tests for native Windows platforms.
36947         * tests/test-wcrtomb-w32-1.sh: New file.
36948         * tests/test-wcrtomb-w32-2.sh: New file.
36949         * tests/test-wcrtomb-w32-3.sh: New file.
36950         * tests/test-wcrtomb-w32-4.sh: New file.
36951         * tests/test-wcrtomb-w32-5.sh: New file.
36952         * tests/test-wcrtomb-w32.c: New file.
36953         * modules/wcrtomb-tests (Files): Add them.
36954         (Makefile.am): Arrange to run these tests.
36955         * tests/test-wcrtomb-w32-6.sh: New file, currently unused.
36956         * tests/test-wcrtomb-w32-7.sh: New file, currently unused.
36958 2011-02-20  Bruno Haible  <bruno@clisp.org>
36960         wcrtomb: Enhance test.
36961         * tests/test-wcrtomb.c (main): Add test against bug with NULL argument.
36963 2011-02-20  Bruno Haible  <bruno@clisp.org>
36965         mbrtowc: Tiny optimization.
36966         * lib/mbrtowc.c (mbrtowc): Delay pstate assignment until it is needed.
36968 2011-02-20  Jim Meyering  <meyering@redhat.com>
36970         test-exclude.c: remove unmatched #endif
36971         * tests/test-exclude.c: Remove stray #endif, left over from
36972         the change of a week ago.
36974 2011-02-19  Jim Meyering  <meyering@redhat.com>
36976         git-version-gen: skip "-dirty" check when appropriate
36977         * build-aux/git-version-gen: Don't run any git commands when the
36978         version string comes from .tarball-version.  Prior to this, we
36979         would run git update-index --refresh even from a just-unpacked
36980         tarball directory, and that could affect a .git/ directory in a
36981         parent of the build directory.  Reported by Mike Frysinger.
36983 2011-02-19  Bruno Haible  <bruno@clisp.org>
36985         unictype/property-byname: Reduce the size of the 'data' segment.
36986         * lib/unictype/pr_byname.gperf: Add gperf option '%pic'.
36988 2011-02-19  Bruno Haible  <bruno@clisp.org>
36990         unictype/scripts: Reduce the size of the 'data' segment.
36991         * lib/gen-uni-tables.c (output_scripts_byname): Emit gperf option
36992         '%pic'.
36993         * lib/unictype/scripts_byname.gperf: Regenerated.
36995 2011-02-19  Bruno Haible  <bruno@clisp.org>
36997         stdint: Update documentation.
36998         * doc/posix-headers/stdint.texi: Mention WCHAR_MIN, WCHAR_MAX problem.
37000 2011-02-18  Paul Eggert  <eggert@cs.ucla.edu>
37002         stdint: omit redundant check for wchar.h
37003         * m4/stdint.m4 (gl_STDINT_H): The earlier part of this macro now
37004         always tests whether wchar.h exists, so remove the now-redundant test.
37006 2011-02-18  Bruno Haible  <bruno@clisp.org>
37008         stdint: Cut dependency to module 'wchar'.
37009         * lib/stdint.in.h: Include wchar.h only when HAVE_WCHAR_H is 1. Also
37010         include the necessary prerequisites.
37011         * m4/stdint.m4 (gl_STDINT_H): Test whether wchar.h exists.
37012         * modules/stdint (Depends-on): Remove wchar.
37013         (Makefile.am): Substitute HAVE_WCHAR_H.
37014         This reverts part of a 2007-01-06 commit. Reported by Paul Eggert.
37016 2011-02-18  Eric Blake  <eblake@redhat.com>
37018         longlong: skip, rather than fail, on cross-compilation
37019         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Avoid aborting configure
37020         when cross-compiling; regression from 2011-02-16.
37022 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
37024         * NEWS: Mention 2011-02-08 change to stdlib.
37026 2011-02-17  Bruno Haible  <bruno@clisp.org>
37028         getloadavg: Add comments about platforms.
37029         * m4/getloadavg.m4: Add comment.
37030         * lib/getloadavg.c: Likewise.
37032 2011-02-17  Bruno Haible  <bruno@clisp.org>
37034         getloadavg: Fix link error on Solaris 2.6.
37035         * modules/getloadavg (Link): New section.
37036         * modules/getloadavg-tests (Makefile.am): Use GETLOADAVG_LIBS for
37037         linking test-getloadavg.
37038         * doc/glibc-functions/getloadavg.texi: Mention that Solaris 2.6 lacks
37039         getloadavg.
37041 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
37043         * lib/getloadavg.c (getloadavg) [sgi]: Make ldav_off of type ptrdiff_t.
37044         It was 'int', but this doesn't match the IRIX 6.5 manual.
37045         Suggested by Bruno Haible in
37046         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00207.html>.
37048 2011-02-17  Bruno Haible  <bruno@clisp.org>
37050         havelib: Fix comments.
37051         * m4/lib-link.m4 (AC_LIB_RPATH): Update comments after 2007-01-02
37052         change.
37054 2011-02-17  Bruno Haible  <bruno@clisp.org>
37056         havelib: Update config.rpath.
37057         * build-aux/config.rpath: Update to match libtool.m4 from libtool-2.4.
37059 2011-02-17  Bruno Haible  <bruno@clisp.org>
37061         getloadavg test: Add some plausibility checks.
37062         * tests/test-getloadavg.c (check_avg): Print a warning when the value
37063         is improbable.
37065 2011-02-16  Eric Blake  <eblake@redhat.com>
37067         maintainer-makefile: make syntax-check a no-op from tarballs
37068         * top/maint.mk (no-vc-detected): New rule.
37069         (local-checks-available): Use it to avoid hanging if someone tries
37070         'make syntax-check' from a tarball.  Also append to any non-syntax
37071         checks already defined in cfg.mk.
37073 2011-02-16  Paul Eggert  <eggert@cs.ucla.edu>
37075         longlong: tune, particularly for common case of c99
37077         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Don't bother compiling
37078         or running anything if c99, or if unsigned long long int does not
37079         work.  In either case, we know the answer without further tests.
37080         Do not compile _AC_TYPE_LONG_LONG_SNIPPET twice.  Instead, compile
37081         it at most once, and use its results for both long long int and
37082         unsigned long long int.  This is more likely to be efficient in
37083         the common case where the program wants to check for both long
37084         long int and unsigned long long int.
37085         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Don't bother compiling if c99,
37086         since the answer is already known.
37088 2011-02-15  Paul Eggert  <eggert@cs.ucla.edu>
37090         getloadavg: set errno
37091         * lib/getloadavg.c: Set errno when returning -1.  If no other
37092         error number looks appropriate, set it to ENOSYS if the getloadavg
37093         looks like it can't possibly ever work, ENOTSUP otherwise.
37094         Suggested by Bruno Haible in
37095         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00187.html>.
37097         getloadavg: trim unused parts and speed up 'configure'
37098         * NEWS: Document this.
37099         * lib/getloadavg.c: Ignore HAVE_GETLOADAVG; this file is now
37100         always compiled if getloadavg is absent.
37101         Move test code to ...
37102         * tests/test-getloadavg.c: New file, containing previous
37103         contents of test from lib/getloadavg.c.  It also contains
37104         suggestions by Bruno Haible in
37105         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00186.html>.
37106         * modules/getloadavg-tests: New file.
37107         * m4/getloadavg.m4 (gl_GETLOADAVG): Do not check for getloadavg twice.
37108         Do tests in the same order as they're needed for getloadavg.c.
37109         Omit setgid-related tests that generate symbols KMEM_GROUP,
37110         NEET_SETGID, GETLOADAVG_PRIVILEGED; nobody seems to use those any more.
37111         Do only the tests that are needed to see whether the system has
37112         getloadavg, moving the other tests into ...
37113         (gl_PREREQ_GETLOADAVG): ... here.  Do not define obsolete symbol
37114         NLIST_NAME_UNION; nobody should be using it.  Do not define
37115         symbols C_GETLOADAVG and HAVE_GETLOADAVG; they're no longer
37116         relevant, as the user of this module shouldn't care how getloadavg
37117         is implemented.
37119         getloadavg: omit unused var
37120         * lib/getloadavg.c (getloadavg): Omit unused local variable.
37122 2011-02-15  Jim Meyering  <meyering@redhat.com>
37124         doc: update users.txt
37125         * users.txt: Update iwhd's URL.
37127 2011-02-13  Bruno Haible  <bruno@clisp.org>
37129         Consistent macro naming for macros that use GCC __attribute__.
37130         * lib/di-set.h (_GL_ATTRIBUTE_NONNULL): Renamed from
37131         _ATTRIBUTE_NONNULL_.
37132         * lib/ino-map.h (_GL_ATTRIBUTE_NONNULL): Likewise.
37133         * lib/hash.h (_GL_ATTRIBUTE_WUR): Renamed from ATTRIBUTE_WUR.
37134         * lib/ignore-value.h (_GL_ATTRIBUTE_DEPRECATED): Renamed from
37135         ATTRIBUTE_DEPRECATED.
37136         * lib/openat.h (_GL_ATTRIBUTE_NORETURN): Renamed from
37137         ATTRIBUTE_NORETURN.
37138         * lib/sigpipe-die.h (_GL_ATTRIBUTE_NORETURN): Likewise.
37139         * lib/xmemdup0.h (_GL_ATTRIBUTE_NORETURN): Likewise.
37140         * lib/xstrtol.h (_GL_ATTRIBUTE_NORETURN): Likewise.
37141         * lib/xalloc.h (_GL_ATTRIBUTE_NORETURN): Likewise.
37142         (_GL_ATTRIBUTE_MALLOC): Renamed from ATTRIBUTE_MALLOC.
37143         (_GL_ATTRIBUTE_ALLOC_SIZE): Renamed from ATTRIBUTE_ALLOC_SIZE.
37144         * lib/version-etc.h (_GL_ATTRIBUTE_SENTINEL): Renamed from
37145         ATTRIBUTE_SENTINEL.
37146         * lib/safe-alloc.h (_GL_ATTRIBUTE_RETURN_CHECK): Renamed from
37147         ATTRIBUTE_RETURN_CHECK.
37148         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Likewise.
37149         * tests/test-argmatch.c (_GL_ATTRIBUTE_NORETURN): Renamed from
37150         ATTRIBUTE_NORETURN.
37151         * tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN): Likewise.
37152         Reported by Paul Eggert.
37154 2011-02-13  Bruno Haible  <bruno@clisp.org>
37156         Don't interfere with a program's definition of __attribute__.
37157         * lib/argp.h (__attribute__): Remove definition.
37158         (_GL_ATTRIBUTE_FORMAT): New macro.
37159         (argp_error, __argp_error, argp_failure, __argp_failure): Use it.
37160         * lib/argp-fmtstream.h (__attribute__): Remove definition.
37161         (_GL_ATTRIBUTE_FORMAT): New macro.
37162         (__argp_fmtstream_printf, argp_fmtstream_printf): Use it.
37163         * lib/argp-help.c (hol_entry_long_iterate): Use __attribute__ only for
37164         GCC 3 or newer.
37165         * lib/error.h (__attribute__): Remove definition.
37166         (_GL_ATTRIBUTE_FORMAT): New macro.
37167         (error, error_at_line): Use it.
37168         * lib/hash.h (__attribute__): Remove definition.
37169         (ATTRIBUTE_WUR): Update definition. Define always.
37170         * lib/openat.h (__attribute__): Remove definition.
37171         (ATTRIBUTE_NORETURN): Update definition. Define always.
37172         * lib/sigpipe-die.h (__attribute__): Remove definition.
37173         (ATTRIBUTE_NORETURN): Update definition. Define always.
37174         * lib/vasnprintf.h (__attribute__): Remove definition.
37175         (_GL_ATTRIBUTE_FORMAT): New macro.
37176         (asnprintf, vasnprintf): Use it.
37177         * lib/xalloc.h (__attribute__): Remove definition.
37178         (ATTRIBUTE_NORETURN): Update definition. Define always.
37179         (ATTRIBUTE_MALLOC, ATTRIBUTE_ALLOC_SIZE): Define always.
37180         * lib/xmemdup0.h (__attribute__): Remove definition.
37181         (ATTRIBUTE_NORETURN): Update definition. Define always.
37182         * lib/xprintf.h (__attribute__): Remove definition.
37183         (_GL_ATTRIBUTE_FORMAT): New macro.
37184         (xprintf, xvprintf, xfprintf, xvfprintf): Use it.
37185         * lib/xstrtol.h (__attribute__): Remove definition.
37186         (ATTRIBUTE_NORETURN): Update definition. Define always.
37187         * lib/xvasprintf.h (__attribute__): Remove definition.
37188         (_GL_ATTRIBUTE_FORMAT): New macro.
37189         (xasprintf, xvasprintf): Use it.
37190         * tests/test-argmatch.c (__attribute__): Remove definition.
37191         (ATTRIBUTE_NORETURN): Update definition. Define always.
37192         * tests/test-exclude.c (__attribute__): Remove definition.
37193         (ATTRIBUTE_NORETURN): Update definition. Define always.
37194         Reported by Paul Eggert.
37196 2011-02-13  Bruno Haible  <bruno@clisp.org>
37198         mbrtowc: Add more tests for native Windows platforms.
37199         * tests/test-mbrtowc-w32-1.sh: New file.
37200         * tests/test-mbrtowc-w32-2.sh: New file.
37201         * tests/test-mbrtowc-w32-3.sh: New file.
37202         * tests/test-mbrtowc-w32-4.sh: New file.
37203         * tests/test-mbrtowc-w32-5.sh: New file.
37204         * tests/test-mbrtowc-w32.c: New file.
37205         * modules/mbrtowc-tests (Files): Add them.
37206         (Makefile.am): Arrange to run these tests.
37207         * tests/test-mbrtowc-w32-6.sh: New file, currently unused.
37208         * tests/test-mbrtowc-w32-7.sh: New file, currently unused.
37210 2011-02-13  Bruno Haible  <bruno@clisp.org>
37212         mbrtowc: Work around native Windows bug.
37213         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Detect native Windows bug. Use the
37214         guess when no suitable locale for testing was found.
37215         * doc/posix-functions/mbrtowc.texi: Mention the native Windows bug.
37217 2011-02-13  Bruno Haible  <bruno@clisp.org>
37219         mbsinit: Work around mingw bug.
37220         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Replace mbsinit also on mingw.
37221         * lib/mbsinit.c (mbsinit): Provide an alternate definition for native
37222         Windows.
37223         * doc/posix-functions/mbsinit.texi: Mention the mingw bug.
37225 2011-02-13  Bruno Haible  <bruno@clisp.org>
37227         mbsinit: Don't crash for a NULL argument.
37228         * lib/mbsinit.c (mbsinit): When the argument is NULL, return 1.
37229         * tests/test-mbsinit.c (mbsinit): Check this behaviour.
37231 2011-02-13  Bruno Haible  <bruno@clisp.org>
37233         Don't interfere with a program's definition of __attribute__.
37234         * lib/stdio.in.h (__attribute__): Remove definition.
37235         (_GL_ATTRIBUTE_FORMAT, _GL_ATTRIBUTE_FORMAT_PRINTF): New macros.
37236         (dprintf, fprintf, obstack_printf, obstack_printf, obstack_vprintf,
37237         printf, snprintf, sprintf, asprintf, vasprintf, vdprintf, vfprintf,
37238         vsnprintf, vsprintf): Use _GL_ATTRIBUTE_FORMAT_PRINTF.
37239         * lib/string.in.h (__attribute__): Remove definition.
37240         Reported by Paul Eggert.
37242 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
37244         stdlib: don't get in the way of non-GCC __attribute__
37245         See thread starting at
37246         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00161.html>.
37247         Revert previous stdlib change, installing the following instead:
37248         * lib/stdlib.in.h (__attribute__): Remove.  We do not want
37249         to get in the way of a non-GCC compiler that supports __attribute__.
37250         (_GL_ATTRIBUTE_RETURN): New macro.
37251         (_Exit): Use it instead of __attribute__.
37253 2011-02-12  Bruno Haible  <bruno@clisp.org>
37255         quotearg test: Avoid test failure on mingw.
37256         * tests/test-quotearg.sh: Convert the locale identifier from native
37257         Windows syntax to Unix syntax.
37259 2011-02-12  Bruno Haible  <bruno@clisp.org>
37261         setlocale: Prefer gnulib's override over libintl's override.
37262         * lib/locale.in.h (GNULIB_defined_setlocale): New macro.
37263         * lib/gettext.h (setlocale): Redefine to rpl_setlocale if
37264         GNULIB_defined_setlocale is set.
37266 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
37268         stdlib: support non-GCC __attribute__
37270         Fix a serious and tricky problem encountered when attempting to
37271         add the getloadavg module to Emacs.  Emacs worked fine on RHEL
37272         5.5, but it crashed due to memory corruption on Solaris 10 with
37273         Sun C 5.11.  Emacs normally ORs 3-bit tags into their low-order
37274         bits that are otherwise zero.  This tagging is optional inside
37275         Emacs but is preferred and is used when __attribute__ ((__aligned
37276         (8))) works, as it does with both recent-enough GCC and with Sun C
37277         5.11.  However, Sun C 5.11 is not GCC and does not #define
37278         __GNUC__ and __GNUC_MINOR__.
37280         When I added the getloadavg module to Emacs, it brought in
37281         stdlib.in.h, which contained this fragment:
37283            #ifndef __attribute__
37284            # if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 8)
37285            #  define __attribute__(Spec)   /* empty */
37286            # endif
37287            #endif
37289         When files that include <stdlib.h> were compiled with Sun C 5.11,
37290         the above code disabled __attribute__ ((__aligned (8))), which
37291         caused variables to not be properly aligned, which eventually led
37292         to the pointer corruption mentioned above.  (This was a bit hard
37293         to diagnose, unfortunately.)
37295         Several "#define __attribute__(X) /* empty */" code snippets need
37296         to be eradicated from Gnulib to work with non-GCC compilers that
37297         support __attribute__.  The Autoconf way to do this is to test for
37298         each kind of attribute that we want support for, and selectively
37299         enable that in source code.
37301         Fix this problem just for stdlib.h, by adding a test for the
37302         __noreturn__ attribute, and change stdlib.in.h to use that test
37303         when needed.  This technique can be easily generalized to the
37304         other *.in.h files and attributes, and a similar technique can be
37305         used for *.h and *.c files.  This patch is enough to solve the
37306         problem for Emacs + getloadavg, and I thought I'd publish it for
37307         feedback before undertaking further, similar fixes in other
37308         modules.
37310         This patch does not arrange to #define HAVE_ATTRIBUTE_NORETURN
37311         because it's not needed for stdlib.h.  It merely substitutes the
37312         value directly into stdlib.h.  We may well need to #define it, or
37313         similar symbols, for other modules, but it's nice to also have an
37314         option to not #define it for applications like Emacs that do not
37315         need it.
37317         * lib/stdlib.in.h (__attribute__): Do not #define.
37318         (_GL_ATTRIBUTE_NORETURN): New macro, which in stdlib.h needs to
37319         be defined only if the _Exit module is also used.
37320         * m4/_Exit.m4 (gl_FUNC__EXIT): Require gl_ATTRIBUTE_NORETURN.
37321         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Subst
37322         HAVE_ATTRIBUTE_NORETURN and default it to 1, its value on GNU
37323         platforms.
37324         * modules/_Exit (Files): Add m4/attribute.m4.
37325         * modules/stdlib (Makefile.am): Substitute HAVE_ATTRIBUTE_NORETURN.
37326         * m4/attribute.m4: New file.
37328 2011-02-12  Bruno Haible  <bruno@clisp.org>
37330         wcsrtombs: Work around bug on native Windows.
37331         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_NULL): Test against mingw bug.
37332         * lib/wcsrtombs.c (rpl_wcsrtombs): When dest is NULL, pass SIZE_MAX
37333         instead of len.
37334         * doc/posix-functions/wcsrtombs.texi: Document mingw bug.
37336 2011-02-12  Bruno Haible  <bruno@clisp.org>
37338         mbsrtowcs: Work around bug on native Windows.
37339         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Require gt_LOCALE_FR. Test
37340         against mingw bug.
37341         * doc/posix-functions/mbsrtowcs.texi: Document mingw bug.
37343 2011-02-12  Bruno Haible  <bruno@clisp.org>
37345         Avoid setlocale bugs in tests.
37346         * modules/btowc (Dependencies): Add setlocale.
37347         * modules/c-strcase (Dependencies): Likewise.
37348         * modules/mbmemcasecmp (Dependencies): Likewise.
37349         * modules/mbmemcasecoll (Dependencies): Likewise.
37350         * modules/mbrtowc (Dependencies): Likewise.
37351         * modules/mbscasecmp (Dependencies): Likewise.
37352         * modules/mbscasestr (Dependencies): Likewise.
37353         * modules/mbschr (Dependencies): Likewise.
37354         * modules/mbscspn (Dependencies): Likewise.
37355         * modules/mbsinit (Dependencies): Likewise.
37356         * modules/mbsncasecmp (Dependencies): Likewise.
37357         * modules/mbsnrtowcs (Dependencies): Likewise.
37358         * modules/mbspbrk (Dependencies): Likewise.
37359         * modules/mbspcasecmp (Dependencies): Likewise.
37360         * modules/mbsrchr (Dependencies): Likewise.
37361         * modules/mbsrtowcs (Dependencies): Likewise.
37362         * modules/mbsspn (Dependencies): Likewise.
37363         * modules/mbsstr (Dependencies): Likewise.
37364         * modules/nl_langinfo (Dependencies): Likewise.
37365         * modules/quotearg (Dependencies): Likewise.
37366         * modules/unicase/locale-language (Dependencies): Likewise.
37367         * modules/unicase/ulc-casecmp (Dependencies): Likewise.
37368         * modules/unicase/ulc-casecoll (Dependencies): Likewise.
37369         * modules/unigbrk/ulc-grapheme-breaks (Dependencies): Likewise.
37370         * modules/unistdio/u8-vasnprintf (Dependencies): Likewise.
37371         * modules/unistdio/u16-vasnprintf (Dependencies): Likewise.
37372         * modules/unistdio/u32-vasnprintf (Dependencies): Likewise.
37373         * modules/unistdio/ulc-vasnprintf (Dependencies): Likewise.
37374         * modules/uniwbrk/ulc-wordbreaks (Dependencies): Likewise.
37375         * modules/vasnprintf-posix (Dependencies): Likewise.
37376         * modules/wcrtomb (Dependencies): Likewise.
37377         * modules/wcsnrtombs (Dependencies): Likewise.
37378         * modules/wcsrtombs (Dependencies): Likewise.
37380 2011-02-12  Bruno Haible  <bruno@clisp.org>
37382         setlocale: Workaround native Windows bug.
37383         * lib/setlocale.c (rpl_setlocale): On native Windows, when setlocale
37384         succeeds but sets LC_CTYPE to "C", report a failure.
37385         * tests/test-setlocale2.sh: New file.
37386         * tests/test-setlocale2.c: New file.
37387         * modules/setlocale-tests (Files): Add the new files.
37388         (Makefile.am): Enable test-setlocale2.sh test.
37389         * doc/posix-functions/setlocale.texi: Mention workaround.
37391 2011-02-11  Bruno Haible  <bruno@clisp.org>
37393         Tests for module 'setlocale'.
37394         * modules/setlocale-tests: New file.
37395         * tests/test-setlocale1.sh: New file.
37396         * tests/test-setlocale1.c: New file.
37398         New module 'setlocale'.
37399         * lib/locale.in.h (setlocale): New declaration.
37400         * lib/setlocale.c: New file, based on
37401         gettext/gettext-runtime/intl/setlocale.c.
37402         * m4/setlocale.m4: New file.
37403         * m4/locale_h.m4 (gl_LOCALE_H): Test whether setlocale is declared.
37404         (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_SETLOCALE, REPLACE_SETLOCALE.
37405         * modules/locale (Makefile.am): Substitute GNULIB_SETLOCALE,
37406         REPLACE_SETLOCALE.
37407         * modules/setlocale: New file.
37408         * tests/test-locale-c++.cc: Test the declaration of setlocale.
37409         * doc/posix-functions/setlocale.texi: Mention the new module.
37411 2011-02-11  Bruno Haible  <bruno@clisp.org>
37413         Prepare for locale dependent tests on mingw.
37414         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, don't try "ar"
37415         because it has the wrong locale encoding.
37416         * m4/locale-fr.m4 (gt_LOCALE_FR): On native Windows, try
37417         French_France.1252 instead of "fr".
37418         (gt_LOCALE_FR_UTF8): On native Windows, try French_France.65001.
37419         * m4/locale-ja.m4 (gt_LOCALE_JA): On native Windows, don't try "ja"
37420         because it has the wrong locale encoding.
37421         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Require AC_CANONICAL_HOST. On
37422         native Windows, try Turkish_Turkey.65001.
37423         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On native Windows, try
37424         Chinese_China.54936.
37426         Prepare for locale dependent tests on mingw.
37427         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, call setlocale
37428         differently.
37429         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Likewise.
37430         * m4/locale-ja.m4 (gt_LOCALE_JA): Likewise.
37431         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
37432         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
37434 2011-02-11  Eric Blake  <eblake@redhat.com>
37436         strptime: avoid compiler warnings
37437         * lib/strptime.c (__strptime_internal) [!_NL_CURRENT]: Avoid
37438         compiler warnings about dead code.
37439         Reported by Daniel P. Berrange.
37441 2011-02-11  Thien-Thi Nguyen  <ttn@gnuvola.org>
37443         doc: update users.txt
37444         * users.txt: Add rcs.
37446 2011-02-10  John W. Eaton  <jwe@gnu.org>
37448         doc: update users.txt
37449         * users.txt: Add octave.
37451 2011-02-10  Jim Meyering  <meyering@redhat.com>
37453         doc: update users.txt
37454         * users.txt: Add iwhd.
37456 2011-02-09  Bruno Haible  <bruno@clisp.org>
37458         gnulib-tool: Make copyright notice adjustment more robust.
37459         * gnulib-tool (func_import): In sed_transform_main_lib_file,
37460         sed_transform_build_aux_file, sed_transform_testsrelated_lib_file,
37461         allow a line break to occur after "GNU" in "GNU [Lesser] General Public
37462         License".
37463         Reported by Glenn Morris <rgm@gnu.org> via Paul Eggert.
37465 2011-02-06  Bruno Haible  <bruno@clisp.org>
37467         New module 'towctrans'.
37468         * modules/towctrans: New file.
37469         * lib/wctype.in.h (towctrans): New declaration.
37470         * lib/towctrans.c: New file.
37471         * lib/towctrans-impl.h: New file.
37472         * m4/towctrans.m4: New file.
37473         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towctrans is declared.
37474         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_TOWCTRANS.
37475         * modules/wctype-h (Makefile.am): Substitute GNULIB_TOWCTRANS.
37476         * tests/test-wctype-h-c++.cc: Test the declaration of towctrans.
37477         * doc/posix-functions/towctrans.texi: Mention the new module.
37479 2011-02-06  Bruno Haible  <bruno@clisp.org>
37481         New module 'wctrans'.
37482         * modules/wctrans: New file.
37483         * lib/wctype.in.h (wctrans): New declaration.
37484         * lib/wctrans.c: New file.
37485         * lib/wctrans-impl.h: New file.
37486         * m4/wctrans.m4: New file.
37487         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctrans is declared.
37488         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTRANS.
37489         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTRANS.
37490         * tests/test-wctype-h-c++.cc: Test the declaration of wctrans.
37491         * doc/posix-functions/wctrans.texi: Mention the new module.
37493 2011-02-06  Bruno Haible  <bruno@clisp.org>
37495         New module 'iswctype'.
37496         * modules/iswctype: New file.
37497         * lib/wctype.in.h (iswctype): New declaration.
37498         * lib/iswctype.c: New file.
37499         * lib/iswctype-impl.h: New file.
37500         * m4/iswctype.m4: New file.
37501         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether iswctype is declared.
37502         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_ISWCTYPE.
37503         * modules/wctype-h (Makefile.am): Substitute GNULIB_ISWCTYPE.
37504         * tests/test-wctype-h-c++.cc: Test the declaration of iswctype.
37505         * doc/posix-functions/iswctype.texi: Mention the new module and the
37506         HP-UX 11.00 problem.
37508 2011-02-06  Bruno Haible  <bruno@clisp.org>
37510         New module 'wctype'.
37511         * modules/wctype: Change to represent the wctype() substitute.
37512         * lib/wctype.in.h (wctype): New declaration.
37513         * lib/wctype.c: New file.
37514         * lib/wctype-impl.h: New file.
37515         * m4/wctype.m4: New file.
37516         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctype is declared.
37517         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTYPE.
37518         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTYPE.
37519         * tests/test-wctype-h-c++.cc: Test the declaration of wctype.
37520         * doc/posix-functions/wctype.texi: Mention the new module and the
37521         HP-UX 11.00 problem.
37523 2011-02-06  Bruno Haible  <bruno@clisp.org>
37525         wctype-h: Ensure wctype_t and wctrans_t are defined.
37526         * lib/wctype.in.h (wctype_t, wctrans_t): New type declarations.
37527         * m4/wctype_h.m4 (gl_WCTYPE_H): Determine HAVE_WCTYPE_T, HAVE_WCTRANS_T.
37528         (gl_WCTYPE_H_DEFAULTS): Initialize HAVE_WCTYPE_T, HAVE_WCTRANS_T.
37529         * modules/wctype-h (Makefile.am): Substitute HAVE_WCTYPE_T,
37530         HAVE_WCTRANS_T.
37531         * tests/test-wctype-h.c: Check that wctype_t and wctrans_t are defined.
37533 2011-02-09  Paul Eggert  <eggert@cs.ucla.edu>
37535         flock: fix license typo
37537         * lib/flock.c: Fix typo in license.  One of the "Lesser"s was
37538         omitted.
37540 2011-02-08  Bruno Haible  <bruno@clisp.org>
37542         Split large sed scripts, for HP-UX sed.
37543         * modules/math (Makefile.am): Split sed scripts around 50 sed commands,
37544         to avoid HP-UX limit of 99 commands, in the near future.
37545         * modules/stdlib (Makefile.am): Likewise.
37546         * modules/unistd (Makefile.am): Likewise.
37547         * modules/wchar (Makefile.am): Likewise.
37548         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
37549         Suggestion by Ralf Wildenhues <Ralf.Wildenhues@gmx.de> in
37550         <http://lists.gnu.org/archive/html/bug-gnulib/2010-01/msg00216.html>.
37552 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
37553             Bruno Haible  <bruno@clisp.org>
37555         stdlib: improve random_r modularization
37556         * lib/stdlib.in.h: Encapsulate all the stuff having to do with
37557         random_r inside "#if @GNULIB_RANDOM_R@", so that it's clearer that
37558         you also need the random_r module to get this material right.
37559         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move check for random.h here ...
37560         * m4/stdlib_h.m4 (gl_STDLIB_H): ... from here.
37561         (gl_STDLIB_H_DEFAULTS): Default HAVE_RANDOM_H to 1, and AC_SUBST it.
37563 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
37565         stdlib: don't depend on stdint
37566         * lib/stdlib.in.h: Don't include <stdint.h> merely because
37567         GNULIB_POSIXCHECK is defined.  GNULIB_POSIXCHECK seems to
37568         be independent of whether stdint.h is needed.
37569         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Check for struct random_data
37570         here, instead of ...
37571         * m4/stdlib_h.m4 (gl_STDLIB_H): ... here.  Applications that need
37572         struct random_data should be using the random_r module, not just
37573         the stdlib module (which wouldn't make sense: what package needs
37574         just struct random_data without also needing random_r?).
37575         * modules/stdlib (Depends-on): Remove stdint.
37577         getloadavg: don't depend on c-strtod, cloexec, fcntl-safer
37578         See the thread rooted at
37579         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00090.html>.
37580         * lib/getloadavg.c: Do not include c-strtod.h, cloexec.h, or fcntl--.h.
37581         Include <fcntl.h> only if (defined __linux__ || defined __CYGWIN__
37582         || defined SUNOS_5 || (defined LOAD_AVE_TYPE && !  defined
37583         __VMS)); previously it was always included (via fcntl--.h).
37584         (getloadavg): Do not use c_strtod.  Instead, approximate it by
37585         hand; this is good enough for load averages.  Also, do not use
37586         set_cloexec_flag; instead, use the O_CLOEXEC and F_DUPFD_CLOEXEC
37587         flags directly if available and don't bother otherwise.  (Packages
37588         that need the extra reliability should use the modules that define
37589         these flags on older platforms that lack them.)
37590         * modules/getloadavg (Depends-on): Remove c-strtod, cloexec,
37591         fcntl-safer.
37593 2011-02-08  Jim Meyering  <meyering@redhat.com>
37595         di-set.h, ino-map.h: add multiple-inclusion guard
37596         Technically, the guard is required only for ino-map.h, due to its
37597         INO_MAP_INSERT_FAILURE definition, but do both for consistency.
37598         * lib/di-set.h: Add file-spanning #ifndef _GL_DI_SET_H.
37599         * lib/ino-map.h: Likewise.
37601 2011-02-06  Bruno Haible  <bruno@clisp.org>
37603         iswblank: Ensure declaration on glibc systems.
37604         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Require gl_USE_SYSTEM_EXTENSIONS.
37605         * modules/iswblank (Dependencies): Add 'extensions'.
37606         * doc/posix-functions/iswblank.texi: Document the glibc problem.
37608 2011-02-06  Bruno Haible  <bruno@clisp.org>
37610         New module 'iswblank'.
37611         * lib/wctype.in.h (iswblank): Don't declare if GNULIB_ISWBLANK is 0.
37612         * modules/iswblank: New file.
37613         * modules/wctype-h (Files): Remove lib/iswblank.c.
37614         (Makefile.am): Substitute GNULIB_ISWBLANK.
37615         * m4/iswblank.m4: New file, partially extracted from m4/wctype_h.m4.
37616         * m4/wctype_h.m4 (gl_WCTYPE_MODULE_INDICATOR): New macro.
37617         (gl_WCTYPE_H_DEFAULTS): New macro.
37618         (gl_WCTYPE_H): Require it. Remove iswblank related code.
37619         * modules/iswblank-tests: New file.
37620         * tests/test-iswblank.c: New file, extraced from tests/test-wctype-h.c.
37621         * tests/test-wctype-h.c (main): Remove iswblank tests.
37622         * tests/test-wctype-h-c++.cc: Guard the signature test of iswblank.
37623         * doc/posix-functions/iswblank.texi: Mention module 'iswblank' instead
37624         of 'wctype-h'.
37625         * NEWS: Mention the change.
37626         * modules/mbchar (Depends-on): Add iswblank.
37628 2011-02-08  Bruno Haible  <bruno@clisp.org>
37630         di-set tests: Refactor.
37631         * tests/test-di-set.c: Include di-set.h early. Include macros.h. Drop
37632         unnecessary includes.
37633         (ASSERT): Remove macro.
37634         (main): Make C90 compliant by avoiding variable declaration after
37635         statement.
37636         * modules/di-set-tests (Files): Add tests/macros.h.
37638 2011-02-08  Bruno Haible  <bruno@clisp.org>
37640         ino-map tests: Refactor.
37641         * tests/test-ino-map.c: Include ino-map.h early. Include macros.h. Drop
37642         unnecessary includes.
37643         (ASSERT): Remove macro.
37644         (main): Make C90 compliant by avoiding variable declaration after
37645         statement.
37646         * modules/ino-map-tests (Files): Add tests/macros.h.
37648 2011-02-08  Jim Meyering  <meyering@redhat.com>
37650         di-set: add "const" to a cast
37651         * lib/di-set.c (di_set_insert): Cast hash_insert0 argument to
37652         "(void const *)", not "(void *)".  Spotted by Bruno Haible.
37654 2011-02-06  Bruno Haible  <bruno@clisp.org>
37656         Rename module 'wctype' to 'wctype-h'.
37657         * modules/wctype-h: Renamed from modules/wctype.
37658         * modules/wctype: Simplyfy to a redirection to 'wctype-h'.
37659         * modules/wctype-h-tests: Renamed from modules/wctype-tests.
37660         (Files, Depends-on, Makefile.am): Update.
37661         * modules/wctype-h-c++-tests: Renamed from modules/wctype-c++-tests.
37662         (Files, Makefile.am): Update.
37663         * tests/test-wctype-h.c: Renamed from tests/test-wctype.c.
37664         * tests/test-wctype-h-c++.cc: Renamed from tests/test-wctype-c++.cc.
37665         * doc/posix-headers/wctype.texi: Update.
37666         * doc/posix-functions/iswalnum.texi: Update.
37667         * doc/posix-functions/iswalpha.texi: Update.
37668         * doc/posix-functions/iswblank.texi: Update.
37669         * doc/posix-functions/iswcntrl.texi: Update.
37670         * doc/posix-functions/iswdigit.texi: Update.
37671         * doc/posix-functions/iswgraph.texi: Update.
37672         * doc/posix-functions/iswlower.texi: Update.
37673         * doc/posix-functions/iswprint.texi: Update.
37674         * doc/posix-functions/iswpunct.texi: Update.
37675         * doc/posix-functions/iswspace.texi: Update.
37676         * doc/posix-functions/iswupper.texi: Update.
37677         * doc/posix-functions/iswxdigit.texi: Update.
37678         * doc/posix-functions/towlower.texi: Update.
37679         * doc/posix-functions/towupper.texi: Update.
37680         * NEWS: Mention the change.
37681         * modules/fnmatch (Dependencies): Add wctype-h, remove wctype.
37682         * modules/mbchar (Dependencies): Likewise.
37683         * modules/mbswidth (Dependencies): Likewise.
37684         * modules/quotearg (Dependencies): Likewise.
37685         * modules/regex (Dependencies): Likewise.
37686         * modules/wcscasecmp (Dependencies): Likewise.
37687         * modules/wcsncasecmp (Dependencies): Likewise.
37688         * modules/wcwidth (Dependencies): Likewise.
37690 2011-02-06  Bruno Haible  <bruno@clisp.org>
37692         New module 'wcswidth'.
37693         * modules/wcswidth: New file.
37694         * lib/wchar.in.h (wcswidth): New declaration.
37695         * lib/wcswidth.c: New file.
37696         * lib/wcswidth-impl.h: New file, from libutf8 with modifications.
37697         * m4/wcswidth.m4: New file.
37698         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcswidth is declared.
37699         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSWIDTH, HAVE_WCSWIDTH,
37700         REPLACE_WCSWIDTH.
37701         * modules/wchar (Makefile.am): Substitute GNULIB_WCSWIDTH,
37702         HAVE_WCSWIDTH, REPLACE_WCSWIDTH.
37703         * tests/test-wchar-c++.cc: Test the declaration of wcswidth.
37704         * doc/posix-functions/wcswidth.texi: Mention the new module.
37706 2011-02-06  Bruno Haible  <bruno@clisp.org>
37708         New module 'wcstok'.
37709         * modules/wcstok: New file.
37710         * lib/wchar.in.h (wcstok): New declaration.
37711         * lib/wcstok.c: New file.
37712         * lib/wcstok-impl.h: New file, from libutf8 with modifications.
37713         * m4/wcstok.m4: New file.
37714         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcstok is declared.
37715         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSTOK, HAVE_WCSTOK.
37716         * modules/wchar (Makefile.am): Substitute GNULIB_WCSTOK, HAVE_WCSTOK.
37717         * tests/test-wchar-c++.cc: Test the declaration of wcstok.
37718         * doc/posix-functions/wcstok.texi: Mention the new module.
37720 2011-02-06  Bruno Haible  <bruno@clisp.org>
37722         New module 'wcsstr'.
37723         * modules/wcsstr: New file.
37724         * lib/wchar.in.h (wcsstr): New declaration.
37725         * lib/wcsstr.c: New file.
37726         * lib/wcsstr-impl.h: New file, from libutf8 with modifications.
37727         * m4/wcsstr.m4: New file.
37728         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsstr is declared.
37729         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSTR, HAVE_WCSSTR.
37730         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSTR, HAVE_WCSSTR.
37731         * tests/test-wchar-c++.cc: Test the declaration of wcsstr.
37732         * doc/posix-functions/wcsstr.texi: Mention the new module.
37734 2011-02-06  Bruno Haible  <bruno@clisp.org>
37736         New module 'wcspbrk'.
37737         * modules/wcspbrk: New file.
37738         * lib/wchar.in.h (wcspbrk): New declaration.
37739         * lib/wcspbrk.c: New file.
37740         * lib/wcspbrk-impl.h: New file, from libutf8 with modifications.
37741         * m4/wcspbrk.m4: New file.
37742         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcspbrk is declared.
37743         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSPBRK, HAVE_WCSPBRK.
37744         * modules/wchar (Makefile.am): Substitute GNULIB_WCSPBRK, HAVE_WCSPBRK.
37745         * tests/test-wchar-c++.cc: Test the declaration of wcspbrk.
37746         * doc/posix-functions/wcspbrk.texi: Mention the new module.
37748 2011-02-06  Bruno Haible  <bruno@clisp.org>
37750         New module 'wcsspn'.
37751         * modules/wcsspn: New file.
37752         * lib/wchar.in.h (wcsspn): New declaration.
37753         * lib/wcsspn.c: New file.
37754         * lib/wcsspn-impl.h: New file, from libutf8 with modifications.
37755         * m4/wcsspn.m4: New file.
37756         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsspn is declared.
37757         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSPN, HAVE_WCSSPN.
37758         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSPN, HAVE_WCSSPN.
37759         * tests/test-wchar-c++.cc: Test the declaration of wcsspn.
37760         * doc/posix-functions/wcsspn.texi: Mention the new module.
37762 2011-02-06  Bruno Haible  <bruno@clisp.org>
37764         New module 'wcscspn'.
37765         * modules/wcscspn: New file.
37766         * lib/wchar.in.h (wcscspn): New declaration.
37767         * lib/wcscspn.c: New file.
37768         * lib/wcscspn-impl.h: New file, from libutf8 with modifications.
37769         * m4/wcscspn.m4: New file.
37770         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscspn is declared.
37771         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCSPN, HAVE_WCSCSPN.
37772         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCSPN, HAVE_WCSCSPN.
37773         * tests/test-wchar-c++.cc: Test the declaration of wcscspn.
37774         * doc/posix-functions/wcscspn.texi: Mention the new module.
37776 2011-02-06  Bruno Haible  <bruno@clisp.org>
37778         New module 'wcsrchr'.
37779         * modules/wcsrchr: New file.
37780         * lib/wchar.in.h (wcsrchr): New declaration.
37781         * lib/wcsrchr.c: New file.
37782         * lib/wcsrchr-impl.h: New file, from libutf8 with modifications.
37783         * m4/wcsrchr.m4: New file.
37784         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsrchr is declared.
37785         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRCHR, HAVE_WCSRCHR.
37786         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRCHR, HAVE_WCSRCHR.
37787         * tests/test-wchar-c++.cc: Test the declaration of wcsrchr.
37788         * doc/posix-functions/wcsrchr.texi: Mention the new module.
37790 2011-02-06  Bruno Haible  <bruno@clisp.org>
37792         New module 'wcschr'.
37793         * modules/wcschr: New file.
37794         * lib/wchar.in.h (wcschr): New declaration.
37795         * lib/wcschr.c: New file.
37796         * lib/wcschr-impl.h: New file, from libutf8 with modifications.
37797         * m4/wcschr.m4: New file.
37798         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcschr is declared.
37799         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCHR, HAVE_WCSCHR.
37800         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCHR, HAVE_WCSCHR.
37801         * tests/test-wchar-c++.cc: Test the declaration of wcschr.
37802         * doc/posix-functions/wcschr.texi: Mention the new module.
37804 2011-02-06  Bruno Haible  <bruno@clisp.org>
37806         New module 'wcsdup'.
37807         * modules/wcsdup: New file.
37808         * lib/wchar.in.h (wcsdup): New declaration.
37809         * lib/wcsdup.c: New file.
37810         * lib/wcsdup-impl.h: New file, from libutf8 with modifications.
37811         * m4/wcsdup.m4: New file.
37812         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsdup is declared.
37813         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSDUP, HAVE_WCSDUP.
37814         * modules/wchar (Makefile.am): Substitute GNULIB_WCSDUP, HAVE_WCSDUP.
37815         * tests/test-wchar-c++.cc: Test the declaration of wcsdup.
37816         * doc/posix-functions/wcsdup.texi: Mention the new module.
37818 2011-02-06  Bruno Haible  <bruno@clisp.org>
37820         New module 'wcsxfrm'.
37821         * modules/wcsxfrm: New file.
37822         * lib/wchar.in.h (wcsxfrm): New declaration.
37823         * lib/wcsxfrm.c: New file.
37824         * lib/wcsxfrm-impl.h: New file.
37825         * m4/wcsxfrm.m4: New file.
37826         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsxfrm is declared.
37827         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSXFRM, HAVE_WCSXFRM.
37828         * modules/wchar (Makefile.am): Substitute GNULIB_WCSXFRM, HAVE_WCSXFRM.
37829         * tests/test-wchar-c++.cc: Test the declaration of wcsxfrm.
37830         * doc/posix-functions/wcsxfrm.texi: Mention the new module.
37832 2011-02-06  Bruno Haible  <bruno@clisp.org>
37834         New module 'wcscoll'.
37835         * modules/wcscoll: New file.
37836         * lib/wchar.in.h (wcscoll): New declaration.
37837         * lib/wcscoll.c: New file.
37838         * lib/wcscoll-impl.h: New file.
37839         * m4/wcscoll.m4: New file.
37840         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscoll is declared.
37841         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCOLL, HAVE_WCSCOLL.
37842         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCOLL, HAVE_WCSCOLL.
37843         * tests/test-wchar-c++.cc: Test the declaration of wcscoll.
37844         * doc/posix-functions/wcscoll.texi: Mention the new module.
37846 2011-02-06  Bruno Haible  <bruno@clisp.org>
37848         New module 'wcsncasecmp'.
37849         * modules/wcsncasecmp: New file.
37850         * lib/wchar.in.h (wcsncasecmp): New declaration.
37851         * lib/wcsncasecmp.c: New file.
37852         * lib/wcsncasecmp-impl.h: New file, from libutf8 with modifications.
37853         * m4/wcsncasecmp.m4: New file.
37854         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncasecmp is declared.
37855         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCASECMP, HAVE_WCSNCASECMP.
37856         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCASECMP,
37857         HAVE_WCSNCASECMP.
37858         * tests/test-wchar-c++.cc: Test the declaration of wcsncasecmp.
37859         * doc/posix-functions/wcsncasecmp.texi: Mention the new module.
37861 2011-02-06  Bruno Haible  <bruno@clisp.org>
37863         New module 'wcscasecmp'.
37864         * modules/wcscasecmp: New file.
37865         * lib/wchar.in.h (wcscasecmp): New declaration.
37866         * lib/wcscasecmp.c: New file.
37867         * lib/wcscasecmp-impl.h: New file, from libutf8 with modifications.
37868         * m4/wcscasecmp.m4: New file.
37869         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscasecmp is declared.
37870         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCASECMP, HAVE_WCSCASECMP.
37871         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCASECMP,
37872         HAVE_WCSCASECMP.
37873         * tests/test-wchar-c++.cc: Test the declaration of wcscasecmp.
37874         * doc/posix-functions/wcscasecmp.texi: Mention the new module.
37876 2011-02-05  Bruno Haible  <bruno@clisp.org>
37878         New module 'wcsncmp'.
37879         * modules/wcsncmp: New file.
37880         * lib/wchar.in.h (wcsncmp): New declaration.
37881         * lib/wcsncmp.c: New file.
37882         * lib/wcsncmp-impl.h: New file, from libutf8 with modifications.
37883         * m4/wcsncmp.m4: New file.
37884         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncmp is declared.
37885         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCMP, HAVE_WCSNCMP.
37886         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCMP, HAVE_WCSNCMP.
37887         * tests/test-wchar-c++.cc: Test the declaration of wcsncmp.
37888         * doc/posix-functions/wcsncmp.texi: Mention the new module.
37890 2011-02-05  Bruno Haible  <bruno@clisp.org>
37892         New module 'wcscmp'.
37893         * modules/wcscmp: New file.
37894         * lib/wchar.in.h (wcscmp): New declaration.
37895         * lib/wcscmp.c: New file.
37896         * lib/wcscmp-impl.h: New file, from libutf8 with modifications.
37897         * m4/wcscmp.m4: New file.
37898         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscmp is declared.
37899         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCMP, HAVE_WCSCMP.
37900         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCMP, HAVE_WCSCMP.
37901         * tests/test-wchar-c++.cc: Test the declaration of wcscmp.
37902         * doc/posix-functions/wcscmp.texi: Mention the new module.
37904 2011-02-05  Bruno Haible  <bruno@clisp.org>
37906         New module 'wcsncat'.
37907         * modules/wcsncat: New file.
37908         * lib/wchar.in.h (wcsncat): New declaration.
37909         * lib/wcsncat.c: New file.
37910         * lib/wcsncat-impl.h: New file, from libutf8 with modifications.
37911         * m4/wcsncat.m4: New file.
37912         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncat is declared.
37913         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCAT, HAVE_WCSNCAT.
37914         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCAT, HAVE_WCSNCAT.
37915         * tests/test-wchar-c++.cc: Test the declaration of wcsncat.
37916         * doc/posix-functions/wcsncat.texi: Mention the new module.
37918 2011-02-05  Bruno Haible  <bruno@clisp.org>
37920         New module 'wcscat'.
37921         * modules/wcscat: New file.
37922         * lib/wchar.in.h (wcscat): New declaration.
37923         * lib/wcscat.c: New file.
37924         * lib/wcscat-impl.h: New file, from libutf8 with modifications.
37925         * m4/wcscat.m4: New file.
37926         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscat is declared.
37927         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCAT, HAVE_WCSCAT.
37928         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCAT, HAVE_WCSCAT.
37929         * tests/test-wchar-c++.cc: Test the declaration of wcscat.
37930         * doc/posix-functions/wcscat.texi: Mention the new module.
37932 2011-02-05  Bruno Haible  <bruno@clisp.org>
37934         New module 'wcpncpy'.
37935         * modules/wcpncpy: New file.
37936         * lib/wchar.in.h (wcpncpy): New declaration.
37937         * lib/wcpncpy.c: New file.
37938         * lib/wcpncpy-impl.h: New file, from libutf8 with modifications.
37939         * m4/wcpncpy.m4: New file.
37940         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpncpy is declared.
37941         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPNCPY, HAVE_WCPNCPY.
37942         * modules/wchar (Makefile.am): Substitute GNULIB_WCPNCPY, HAVE_WCPNCPY.
37943         * tests/test-wchar-c++.cc: Test the declaration of wcpncpy.
37944         * doc/posix-functions/wcpncpy.texi: Mention the new module.
37946 2011-02-05  Bruno Haible  <bruno@clisp.org>
37948         New module 'wcsncpy'.
37949         * modules/wcsncpy: New file.
37950         * lib/wchar.in.h (wcsncpy): New declaration.
37951         * lib/wcsncpy.c: New file.
37952         * lib/wcsncpy-impl.h: New file, from libutf8 with modifications.
37953         * m4/wcsncpy.m4: New file.
37954         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncpy is declared.
37955         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCPY, HAVE_WCSNCPY.
37956         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCPY, HAVE_WCSNCPY.
37957         * tests/test-wchar-c++.cc: Test the declaration of wcsncpy.
37958         * doc/posix-functions/wcsncpy.texi: Mention the new module.
37960 2011-02-05  Bruno Haible  <bruno@clisp.org>
37962         New module 'wcpcpy'.
37963         * modules/wcpcpy: New file.
37964         * lib/wchar.in.h (wcpcpy): New declaration.
37965         * lib/wcpcpy.c: New file.
37966         * lib/wcpcpy-impl.h: New file, from libutf8 with modifications.
37967         * m4/wcpcpy.m4: New file.
37968         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpcpy is declared.
37969         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPCPY, HAVE_WCPCPY.
37970         * modules/wchar (Makefile.am): Substitute GNULIB_WCPCPY, HAVE_WCPCPY.
37971         * tests/test-wchar-c++.cc: Test the declaration of wcpcpy.
37972         * doc/posix-functions/wcpcpy.texi: Mention the new module.
37974 2011-02-05  Bruno Haible  <bruno@clisp.org>
37976         New module 'wcscpy'.
37977         * modules/wcscpy: New file.
37978         * lib/wchar.in.h (wcscpy): New declaration.
37979         * lib/wcscpy.c: New file.
37980         * lib/wcscpy-impl.h: New file, from libutf8 with modifications.
37981         * m4/wcscpy.m4: New file.
37982         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscpy is declared.
37983         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCPY, HAVE_WCSCPY.
37984         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCPY, HAVE_WCSCPY.
37985         * tests/test-wchar-c++.cc: Test the declaration of wcscpy.
37986         * doc/posix-functions/wcscpy.texi: Mention the new module.
37988 2011-02-05  Bruno Haible  <bruno@clisp.org>
37990         New module 'wcsnlen'.
37991         * modules/wcsnlen: New file.
37992         * lib/wchar.in.h (wcsnlen): New declaration.
37993         * lib/wcsnlen.c: New file.
37994         * lib/wcsnlen-impl.h: New file, from libutf8 with modifications.
37995         * m4/wcsnlen.m4: New file.
37996         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsnlen is declared.
37997         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNLEN, HAVE_WCSNLEN.
37998         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNLEN, HAVE_WCSNLEN.
37999         * tests/test-wchar-c++.cc: Test the declaration of wcsnlen.
38000         * doc/posix-functions/wcsnlen.texi: Mention the new module.
38002 2011-02-05  Bruno Haible  <bruno@clisp.org>
38004         New module 'wcslen'.
38005         * modules/wcslen: New file.
38006         * lib/wchar.in.h (wcslen): New declaration.
38007         * lib/wcslen.c: New file.
38008         * lib/wcslen-impl.h: New file, from libutf8 with modifications.
38009         * m4/wcslen.m4: New file.
38010         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcslen is declared.
38011         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSLEN, HAVE_WCSLEN.
38012         * modules/wchar (Makefile.am): Substitute GNULIB_WCSLEN, HAVE_WCSLEN.
38013         * tests/test-wchar-c++.cc: Test the declaration of wcslen.
38014         * doc/posix-functions/wcslen.texi: Mention the new module.
38016 2011-02-05  Bruno Haible  <bruno@clisp.org>
38018         New module 'wmemset'.
38019         * modules/wmemset: New file.
38020         * lib/wchar.in.h (wmemset): New declaration.
38021         * lib/wmemset.c: New file.
38022         * lib/wmemset-impl.h: New file, from libutf8 with modifications.
38023         * m4/wmemset.m4: New file.
38024         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemset is declared.
38025         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMSET, HAVE_WMEMSET.
38026         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMSET, HAVE_WMEMSET.
38027         * tests/test-wchar-c++.cc: Test the declaration of wmemset.
38028         * doc/posix-functions/wmemset.texi: Mention the new module.
38030 2011-02-05  Bruno Haible  <bruno@clisp.org>
38032         New module 'wmemmove'.
38033         * modules/wmemmove: New file.
38034         * lib/wchar.in.h (wmemmove): New declaration.
38035         * lib/wmemmove.c: New file.
38036         * lib/wmemmove-impl.h: New file, from libutf8 with modifications.
38037         * m4/wmemmove.m4: New file.
38038         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemmove is declared.
38039         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMMOVE, HAVE_WMEMMOVE.
38040         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMMOVE,
38041         HAVE_WMEMMOVE.
38042         * tests/test-wchar-c++.cc: Test the declaration of wmemmove.
38043         * doc/posix-functions/wmemmove.texi: Mention the new module.
38045 2011-02-05  Bruno Haible  <bruno@clisp.org>
38047         New module 'wmemcpy'.
38048         * modules/wmemcpy: New file.
38049         * lib/wchar.in.h (wmemcpy): New declaration.
38050         * lib/wmemcpy.c: New file.
38051         * lib/wmemcpy-impl.h: New file, from libutf8 with modifications.
38052         * m4/wmemcpy.m4: New file.
38053         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcpy is declared.
38054         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCPY, HAVE_WMEMCPY.
38055         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCPY, HAVE_WMEMCPY.
38056         * tests/test-wchar-c++.cc: Test the declaration of wmemcpy.
38057         * doc/posix-functions/wmemcpy.texi: Mention the new module.
38059 2011-02-05  Bruno Haible  <bruno@clisp.org>
38061         New module 'wmemcmp'.
38062         * modules/wmemcmp: New file.
38063         * lib/wchar.in.h (wmemcmp): New declaration.
38064         * lib/wmemcmp.c: New file.
38065         * lib/wmemcmp-impl.h: New file, from libutf8 with modifications.
38066         * m4/wmemcmp.m4: New file.
38067         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcmp is declared.
38068         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCMP, HAVE_WMEMCMP.
38069         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCMP, HAVE_WMEMCMP.
38070         * tests/test-wchar-c++.cc: Test the declaration of wmemcmp.
38071         * doc/posix-functions/wmemcmp.texi: Mention the new module.
38073 2011-02-07  Jim Meyering  <meyering@redhat.com>
38075         di-set, ino-map: new modules, from coreutils
38076         * lib/di-set.c: New file.
38077         * lib/di-set.h: Likewise.
38078         * lib/ino-map.c: Likewise.
38079         * lib/ino-map.h: Likewise.
38080         * modules/di-set: Likewise.
38081         * modules/di-set-tests: Likewise.
38082         * modules/ino-map: Likewise.
38083         * modules/ino-map-tests: Likewise.
38084         * tests/test-di-set.c: Likewise.
38085         * tests/test-ino-map.c: Likewise.
38087 2011-02-06  Paul Eggert  <eggert@cs.ucla.edu>
38089         getloadavg: merge minor changes from Emacs
38091         * lib/getloadavg.c (getloadavg_initialized): More-accurate comment.
38092         (getloadavg): Use memset, not bzero.
38094         2008-07-25  Chong Yidong  <cyd@stupidchicken.com>
38095         * lib/getloadavg.c (nl): Rename to name_list to avoid ncurses.h
38096         clash (bug#86).
38098 2010-11-14  Bruno Haible  <bruno@clisp.org>
38100         Allow multiple gnulib generated replacements to coexist.
38101         * lib/getopt.in.h (struct option): Avoid identical redefinition.
38102         * lib/inttypes.in.h (imaxdiv_t): Likewise.
38103         * lib/langinfo.in.h (nl_item): Likewise.
38104         * lib/math.in.h (_NaN, NAN): Likewise.
38105         * lib/netdb.in.h (struct addrinfo): Likewise.
38106         * lib/poll.in.h (struct pollfd, nfds_t): Likewise.
38107         * lib/pthread.in.h (pthread_t, pthread_attr_t, pthread_barrier_t,
38108         pthread_barrierattr_t, pthread_cond_t, pthread_condattr_t,
38109         pthread_key_t, pthread_mutex_t, pthread_mutexattr_t, pthread_once_t,
38110         pthread_rwlock_t, pthread_rwlockattr_t, pthread_cond_destroy,
38111         pthread_cond_init, pthread_cond_signal, pthread_cond_wait,
38112         pthread_create, pthread_exit, pthread_join, pthread_mutexattr_destroy,
38113         pthread_mutexattr_init, pthread_mutexattr_settype,
38114         pthread_mutex_destroy, pthread_mutex_init, pthread_mutex_lock,
38115         pthread_mutex_trylock, pthread_mutex_unlock, pthread_spinlock_t,
38116         pthread_spin_init, pthread_spin_destroy, pthread_spin_lock,
38117         pthread_spin_trylock, pthread_spin_unlock): Likewise.
38118         * lib/sched.in.h (struct sched_param): Likewise.
38119         * lib/se-selinux.in.h (security_class_t, security_context_t,
38120         is_selinux_enabled, getcon, freecon, getfscreatecon, setfscreatecon,
38121         matchpathcon, getfilecon, lgetfilecon, fgetfilecon, setfilecon,
38122         lsetfilecon, fsetfilecon, security_check_context,
38123         security_check_context_raw, setexeccon, matchpathcon_init_prefix):
38124         Likewise.
38125         * lib/search.in.h (VISIT, _gl_search_compar_fn, _gl_search_action_fn):
38126         Likewise.
38127         * lib/signal.in.h (sig_atomic_t, sigset_t, verify_NSIG_constraint,
38128         _gl_function_taking_int_returning_void_t, union sigval,
38129         struct siginfo_t, siginfo_t, struct sigaction): Likewise.
38130         * lib/spawn.in.h (posix_spawnattr_t, posix_spawn_file_actions_t,
38131         verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
38132         * lib/stdint.in.h (gl_int8_t, gl_uint8_t, gl_int16_t, gl_uint16_t,
38133         gl_int32_t, gl_uint32_t, gl_int64_t, gl_uint64_t, int_least8_t,
38134         uint_least8_t, int_least16_t, uint_least16_t, int_least32_t,
38135         uint_least32_t, int_least64_t, uint_least64_t, gl_int_fast8_t,
38136         gl_uint_fast8_t, gl_int_fast16_t, gl_uint_fast16_t, gl_int_fast32_t,
38137         gl_uint_fast32_t, int_fast64_t, uint_fast64_t, gl_intptr_t,
38138         gl_uintptr_t, intmax_t, uintmax_t, _verify_intmax_size): Likewise.
38139         * lib/stdio.in.h (rpl_fseek, rpl_ftell): Likewise.
38140         * lib/sys_socket.in.h (sa_family_t, struct sockaddr_storage,
38141         socklen_t, rpl_fd_isset): Likewise.
38142         * lib/sys_stat.in.h (rpl_mkdir): Likewise.
38143         * lib/sys_time.in.h (struct timeval): Likewise.
38144         * lib/sys_times.in.h (struct tms): Likewise.
38145         * lib/sys_utsname.in.h (struct utsname):
38146         * lib/time.in.h (struct timespec, __time_t_must_be_integral): Likewise.
38147         * lib/unistd.in.h (getpagesize): Likewise.
38148         * lib/wchar.in.h (mbstate_t): Likewise.
38149         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
38150         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit,
38151         towlower, towupper): Likewise.
38152         Reported by Sam Steingold <sds@gnu.org>.
38154 2011-02-05  Eric Blake  <eblake@redhat.com>
38156         unsetenv: work around Haiku issues
38157         * m4/setenv.m4 (gl_FUNC_UNSETENV): Also detect Haiku issue.
38158         * doc/posix-functions/unsetenv.texi (unsetenv): Document it.
38160 2010-12-30  Bruce Korb  <bkorb@gnu.org>
38162         libposix: avoid calling error() within libposix
38163         * lib/openat-die.c: remove error module stuff when GNULIB_LIBPOSIX
38164         is defined.
38166 2011-02-05  Eric Blake  <eblake@redhat.com>
38168         strerror_r-posix: port to cygwin
38169         * lib/strerror_r.c (strerror_r) [__CYGWIN__]: Add cygwin
38170         implementation.
38171         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Adjust comment.
38172         * tests/test-strerror_r.c (main): Fix test.
38173         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
38174         issue.
38176 2011-02-05  Bruno Haible  <bruno@clisp.org>
38178         New module 'wmemchr'.
38179         * modules/wmemchr: New file.
38180         * lib/wchar.in.h (wmemchr): New declaration.
38181         * lib/wmemchr.c: New file.
38182         * lib/wmemchr-impl.h: New file, from libutf8 with modifications.
38183         * m4/wmemchr.m4: New file.
38184         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemchr is declared.
38185         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCHR, HAVE_WMEMCHR.
38186         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCHR, HAVE_WMEMCHR.
38187         * tests/test-wchar-c++.cc: Test the declaration of wmemchr.
38188         * doc/posix-functions/wmemchr.texi: Mention the new module.
38190 2011-02-04  Eric Blake  <eblake@redhat.com>
38192         fdopendir: detect FreeBSD bug
38193         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Detect bug.
38194         * doc/posix-functions/fdopendir.texi (fdopendir): Document it.
38196 2011-02-04  Paul Eggert  <eggert@cs.ucla.edu>
38198         stdbool: do not define HAVE_STDBOOL_H
38199         * m4/stdbool.m4 (AC_CHECK_HEADER_STDBOOL): Renamed from
38200         AC_HEADER_STDBOOL.  All uses changed.  Do not define
38201         HAVE_STDBOOL_H, as gnulib does not need this.  This change is
38202         imported from the latest Autoconf git.  It was motivated by Emacs,
38203         which uses gnulib but does not need HAVE_STDBOOL_H.
38205 2011-02-04  Bruno Haible  <bruno@clisp.org>
38207         wcsnrtombs: Prepare for new module wwcsnrtombs.
38208         * lib/wcsnrtombs-impl.h: New file, extracted from lib/wcsnrtombs.c.
38209         * lib/wcsnrtombs.c: Include it.
38210         * modules/wcsnrtombs (Files): Add lib/wcsnrtombs-impl.h.
38212         wcsrtombs: Prepare for new module wwcsrtombs.
38213         * lib/wcsrtombs-impl.h: New file, extracted from lib/wcsrtombs.c.
38214         * lib/wcsrtombs.c: Include it.
38215         * modules/wcsrtombs (Files): Add lib/wcsrtombs-impl.h.
38217         mbsnrtowcs: Prepare for new module mbsnrtowwcs.
38218         * lib/mbsnrtowcs-impl.h: New file, extracted from lib/mbsnrtowcs.c.
38219         * lib/mbsnrtowcs.c: Include it.
38220         * modules/mbsnrtowcs (Files): Add lib/mbsnrtowcs-impl.h.
38222         mbsrtowcs: Prepare for new module mbsrtowwcs.
38223         * lib/mbsrtowcs-impl.h: New file, extracted from lib/mbsrtowcs.c.
38224         * lib/mbsrtowcs.c: Include it.
38225         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-impl.h.
38227 2011-02-04  Bruno Haible  <bruno@clisp.org>
38229         vasnprintf: Reduce use of malloc for small format strings.
38230         * lib/printf-args.h (N_DIRECT_ALLOC_ARGUMENTS): New macro.
38231         (arguments): Add room for the first 7 arguments.
38232         * lib/printf-parse.h (N_DIRECT_ALLOC_DIRECTIVES): New macro.
38233         (char_directives, u8_directives, u16_directives, u32_directives): Add
38234         room for the first 7 directives.
38235         * lib/printf-parse.c: Include <string.h>.
38236         (PRINTF_PARSE): Change memory handling code so that it uses the first
38237         7 preallocated elements in an 'arguments' or 'DIRECTIVES' struct.
38238         * lib/vasnprintf.c (VASNPRINTF): Update memory handling code.
38239         Reported by Pádraig Brady <P@draigbrady.com>.
38241 2011-01-31  Eric Blake  <eblake@redhat.com>
38243         dup2: work around Haiku bug
38244         * m4/dup2.m4 (gl_FUNC_DUP2): Test for bug.
38245         * lib/dup2.c (rpl_dup2) [!WIN32]: Add workaround.
38246         * doc/posix-functions/dup2.texi (dup2): Document the bug.
38247         * tests/test-dup2.c (main): Enhance test.
38249 2011-01-31  Simon Josefsson  <simon@josefsson.org>
38251         doc: off_t is not available in eglibc 2.11.2 stdio.h.
38252         * doc/posix-headers/stdio.texi (stdio.h): Mention that off_t isn't
38253         declared by eglibc 2.11.2.
38254         * lib/stdio.in.h: Likewise.
38256 2011-01-31  Eric Blake  <eblake@redhat.com>
38258         ignore-value: add missing test dependency
38259         * tests/test-ignore-value.c: Revert previous change; stdio.h
38260         provides off_t.
38261         * modules/ignore-value-tests (Depends-on): Add missing dependency.
38263 2011-01-30  Paul Eggert  <eggert@cs.ucla.edu>
38265         mktime: clarify long_int width checking
38266         * lib/mktime.c (long_int_is_wide_enough): Move this assertion to
38267         the top level, to make it clearer that the assumption about
38268         long_int width is being checked.  See
38269         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00554.html>.
38271 2011-01-30  Simon Josefsson  <simon@josefsson.org>
38273         ignore-value: Fix self-test.
38274         * tests/test-ignore-value.c: Include sys/types.h for off_t.
38276 2011-01-29  Paul Eggert  <eggert@cs.ucla.edu>
38278         TYPE_MAXIMUM: avoid theoretically undefined behavior
38279         * lib/intprops.h (TYPE_MINIMUM, TYPE_MAXIMUM): Do not shift a
38280         negative number, which the C Standard says has undefined behavior.
38281         In practice this is not a problem, but might as well do it by the book.
38282         Reported by Rich Felker and Eric Blake; see
38283         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00493.html>.
38284         * lib/strtol.c (TYPE_MINIMUM, TYPE_MAXIMUM): Likewise.
38285         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
38286         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
38287         * m4/parse-datetime.m4 (gl_PARSE_DATETIME): Likewise.
38288         * m4/stdint.m4 (gl_STDINT_H): Likewise.
38289         * lib/mktime.c (TYPE_MAXIMUM): Redo slightly to match the others.
38291         mktime: #undef mktime before #defining it
38292         * lib/mktime.c (mktime) [DEBUG]: #undef mktime before #defining it.
38294         mktime: systematically normalize tm_isdst comparisons
38295         * lib/mktime.c (isdst_differ): New function.
38296         (__mktime_internal): Use it systematically for all isdst comparisons.
38297         This completes the fix for libc BZ #6723, and removes the need for
38298         normalizing tm_isdst.  See
38299         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>
38300         (not_equal_tm) [DEBUG]: Use isdst_differ here, too.
38302         mktime: fix some integer overflow issues and sidestep the rest
38304         This was prompted by a bug report by Benjamin Lindner for MinGW
38305         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00472.html>.
38306         His bug is due to signed integer overflow (0 - INT_MIN), and I
38307         I scanned through mktime.c looking for other integer overflow
38308         problems, fixing all the bugs I found.
38310         Although the C Standard says the resulting code is still not safe
38311         in the presence of integer overflow, in practice it should be good
38312         enough for all real-world two's-complement implementations, except
38313         for debugging environments that deliberately trap on integer
38314         overflow (e.g., gcc -ftrapv).
38316         * lib/mktime.c (WRAPV): New macro.
38317         (SHR): Also check that long_int and time_t shift right in the
38318         usual way, before using the fast-but-unportable method.
38319         (TYPE_ONES_COMPLEMENT, TYPE_SIGNED_MAGNITUDE): Remove, no longer
38320         used.  The code already assumed two's complement, so there's
38321         no need to test for alternatives.  All uses removed.
38322         (TYPE_MAXIMUM): Don't rely here on overflow behavior not defined by
38323         the C standard.  Problem reported by Rich Felker in
38324         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00488.html>.
38325         (twos_complement_arithmetic): Also check long_int and time_t.
38326         (time_t_avg, time_t_add_ok, time_t_int_add_ok): New functions.
38327         (guess_time_tm, ranged_convert, __mktime_internal): Use them.
38328         (__mktime_internal): Avoid integer overflow with unary subtraction
38329         in two instances where -1 - X is an adequate replacement for -X,
38330         since the calculations are approximate.
38332 2011-01-29  Eric Blake  <eblake@redhat.com>
38334         mktime: avoid infinite loop
38335         * m4/mktime.m4 (AC_FUNC_MKTIME): Avoid overflow on possibly-signed
38336         type; behavior is still undefined but portable to all known targets.
38337         Reported by Rich Felker.
38339 2011-01-29  Simon Josefsson  <simon@josefsson.org>
38341         rename, unlink, same-inode: Relicense.
38342         * modules/rename (License): Relax from LGPLv3+ to LGPLv2+.
38343         * modules/unlink (License): Likewise.
38344         * modules/same-inode (License): Likewise.
38346 2011-01-28  Paul Eggert  <eggert@cs.ucla.edu>
38348         mktime: avoid problems on NetBSD 5 / i386
38349         * lib/mktime.c (long_int): New type.  This works around a problem
38350         on NetBSD 5 / i386, where 'long int' and 'int' are both 32 bits
38351         but time_t is 64 bits, and where I expect the existing code is
38352         wrong in some cases.
38353         (leapyear, ydhms_diff, guess_time_tm, __mktime_internal): Use it.
38354         (ydhms_diff): Bring back the compile-time check for wide-enough
38355         year and yday.
38357         mktime: fix misspelling in comment
38358         * lib/mktime.c (__mktime_internal): Fix misspelling in comment.
38359         This merges all recent glibc changes of importance.
38361 2011-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38363         move-if-change: cope with concurrent mv of identical file.
38364         * build-aux/move-if-change (CMPPROG): Accept environment
38365         variable as an override for `cmp'.
38366         (usage): Document CMPPROG.
38367         Adjust comparison to drop stdout.  Cope with failure of mv if
38368         the target file exists and is identical to the source, for
38369         parallel builds.
38370         Report from H.J. Lu against binutils in PR binutils/12283.
38372 2011-01-28  Bruce Korb  <bkorb@gnu.org>
38374         * users.txt: Mention sharutils.
38376 2011-01-28  Simon Josefsson  <simon@josefsson.org>
38378         * users.txt: Mention OATH Toolkit.
38380 2011-01-27  Bruno Haible  <bruno@clisp.org>
38382         Prepare for supporting FreeBSD 10.
38383         * build-aux/config.libpath: Remove handling of freebsd1*.
38385 2011-01-27  Gerald Pfeifer  <gerald@pfeifer.com>  (tiny change)
38387         Prepare for supporting FreeBSD 10.
38388         * build-aux/config.rpath: Remove handling of freebsd1* which soon would
38389         match FreeBSD 10.0.
38391 2011-01-27  Bruno Haible  <bruno@clisp.org>
38393         vma-iter, get-rusage-as: Add OpenBSD support.
38394         * modules/vma-iter (configure.ac): Test for mquery.
38395         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on OpenBSD.
38396         * lib/vma-iter.c: Include <sys/mman.h>.
38397         (vma_iterate): Add an implementation based on mquery().
38398         * lib/resource-ext.h (get_rusage_as): Update comments.
38399         * lib/get-rusage-as.c: Likewise.
38400         * lib/get-rusage-data.c: Likewise.
38402 2011-01-26  Karl Berry  <karl@gnu.org>
38404         * doc/Makefile (lang_env, makeinfo_prog, manual_opts): new
38405         variables to make it easier to override the makeinfo program used.
38407 2011-01-26  Eric Blake  <eblake@redhat.com>
38409         fcntl: work around Haiku F_DUPFD bugs
38410         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also catch Haiku errno bug.
38411         * lib/fcntl.c (rpl_fcntl) [F_DUPFD]: Work around Haiku losing
38412         cloexec bit on duplication.
38413         * doc/posix-functions/fcntl.texi (fcntl): Document the bug.
38415 2011-01-26  Bruno Haible  <bruno@clisp.org>
38417         Enable memory leak tests on AIX.
38418         * tests/test-dprintf-posix2.c (main): Don't skip the test on AIX.
38419         * tests/test-fprintf-posix3.c (main): Likewise.
38421 2011-01-26  Bruno Haible  <bruno@clisp.org>
38423         Tests for module 'get-rusage-data'.
38424         * modules/get-rusage-data-tests: New file.
38425         * tests/test-get-rusage-data.c: New file.
38427         New module 'get-rusage-data'.
38428         * lib/resource-ext.h (get_rusage_data): New declaration.
38429         * lib/get-rusage-data.c: New file.
38430         * modules/get-rusage-data: New file.
38432 2011-01-25  Bruno Haible  <bruno@clisp.org>
38434         get-rusage-as: Allow for easier testing.
38435         * lib/resource-ext.h (get_rusage_as): Add comment.
38436         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Define always.
38437         (main): New function for interactive testing.
38439 2011-01-25  Bruno Haible  <bruno@clisp.org>
38441         vma-iter: Treat Haiku like BeOS.
38442         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define on Haiku as well.
38443         * lib/vma-iter.c (vma_iterate) [Haiku]: Use the BeOS API.
38445 2011-01-25  Eric Blake  <eblake@redhat.com>
38447         c-stack: fix regression on cygwin when libsigsegv is present
38448         * lib/c-stack.c (die): Don't flatten error if sigsegv is present.
38450 2011-01-24  Bruno Haible  <bruno@clisp.org>
38452         vma-iter: Avoid empty intervals.
38453         * lib/vma-iter.c (vma_iterate) [IRIX, OSF/1]: Don't call the callback
38454         on an empty interval.
38456 2011-01-24  Jim Meyering  <meyering@redhat.com>
38458         u64: remove unnecessary #include
38459         * lib/u64.h: Don't include <stddef.h>.  It was not used.
38461 2011-01-23  Paul Eggert  <eggert@cs.ucla.edu>
38463         Allow the user to avoid the HAVE_RAW_DECL_* macros.
38464         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): New macro.
38466 2011-01-23  Bruno Haible  <bruno@clisp.org>
38468         New module 'vma-iter'.
38469         * lib/vma-iter.h: New file.
38470         * lib/vma-iter.c: New file, based on lib/get-rusage-as.c.
38471         * modules/vma-iter: New file.
38472         * lib/get-rusage-as.c: Include vma-iter.h. Don't include system headers
38473         for get_rusage_as_via_iterator.
38474         (vma_iterate_callback): New function.
38475         (get_rusage_as_via_iterator): Rewritten to use vma_iterate.
38476         * modules/get-rusage-as (Depends-on): Add vma-iter.
38478 2011-01-23  Bruno Haible  <bruno@clisp.org>
38480         uninorm: Tweak includes.
38481         * lib/uninorm/normalize-internal.h: Don't include <stddef.h>.
38482         Reported by Jim Meyering.
38484 2011-01-23  Bruno Haible  <bruno@clisp.org>
38486         get-rusage-as: Improve on NetBSD.
38487         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On NetBSD, use
38488         /proc, like on FreeBSD.
38490 2011-01-23  Jim Meyering  <meyering@redhat.com>
38492         xreadlink.h: remove unnecessary #include
38493         * lib/xreadlink.h: Don't include <stddef.h>.  It was not used.
38495         maint.mk: add syntax-check rule: detect unnecessary #include <stddef.h>
38496         * top/maint.mk (sc_prohibit_stddef_without_use): New rule.
38498 2011-01-23  Bruno Haible  <bruno@clisp.org>
38500         get-rusage-as: Fix bug.
38501         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Restore the
38502         original limit when aborting the first loop.
38504 2011-01-23  Bruno Haible  <bruno@clisp.org>
38506         wctype: Ensure valid C syntax.
38507         * m4/wctype_h.m4 (gl_WCTYPE_H): Invoke gl_CHECK_NEXT_HEADERS
38508         unconditionally, instead of gl_NEXT_HEADERS conditionally.
38510 2011-01-21  Paul Eggert  <eggert@cs.ucla.edu>
38512         getopt: omit HAVE_OPTRESET, HAVE_GETOPT_CLIP from config.h
38513         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not put the
38514         symbols HAVE_OPTRESET and HAVE_GETOPT_CLIP into config.h,
38515         as they are needed only for configure's test case.
38516         This removes two unnecessary symbols from config.h.
38518         gl_CHECK_NEXT_HEADERS implies AC_CHECK_HEADERS_ONCE
38519         * m4/include_next.m4 (gl_CHECK_HEXT_HEADERS): Document this.
38520         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Don't bother to invoke
38521         AC_CHECK_HEADERS_ONCE on a header that we also invoke
38522         gl_CHECK_NEXT_HEADERS on, since the latter invokes the former.
38523         * m4/netdb_h.m4 (gl_HEADER_NETDB): Likewise.
38524         * m4/pthread.m4 (gl_PTHREAD_CHECK): Likewise.
38525         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
38526         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
38527         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
38528         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
38529         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
38530         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
38531         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
38532         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
38533         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
38534         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
38535         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
38537 2011-01-21  Eric Blake  <eblake@redhat.com>
38539         maintainer-makefile: work with older git for submodule check
38540         * top/maint.mk (public-submodule-commit): Rewrite to avoid
38541         merge-base --independent, which Ubuntu 10.04 git 1.7.0.4 lacks.
38542         Reported by Matthias Bolte.
38544         bootstrap: minor portability fixes
38545         * build-aux/bootstrap (me): Use $me instead of $0 in functions.
38546         (usage): Omit leading capital and trailing . on help phrases, per
38547         GNU Coding Standards.
38548         (check_versions, top level): Prefix messages with script name.
38550 2011-01-21  Benjamin Lindner  <bjmldn@gmail.com>  (tiny change)
38552         bootstrap: support --no-git option
38553         * build-aux/bootstrap: Add --no-git option, to be used when
38554         --gnulib-srcdir points to the exact desired checkout.
38556 2011-01-21  Eric Blake  <eblake@redhat.com>
38558         strerror_r-posix: work with glibc 2.13
38559         * lib/strerror_r.c (strerror_r): Fix return type.
38561 2011-01-21  Pádraig Brady  <P@draigBrady.com>
38562             Bruno Haible  <bruno@clisp.org>
38564         uN_strstr: New unit tests.
38565         * modules/unistr/u8-strstr-tests: New file.
38566         * modules/unistr/u16-strstr-tests: New file.
38567         * modules/unistr/u32-strstr-tests: New file.
38568         * tests/unistr/test-u-strstr.h: New file, based on tests/test-strstr.c.
38569         * tests/unistr/test-u8-strstr.c: New file.
38570         * tests/unistr/test-u16-strstr.c: New file.
38571         * tests/unistr/test-u32-strstr.c: New file.
38573 2011-01-21  Pádraig Brady  <P@draigBrady.com>
38574             Bruno Haible  <bruno@clisp.org>
38576         Make uN_strstr functions O(n) worst-case.
38577         * lib/unistr/u-strstr.h (FUNC): In the 8-bit case, use strstr. In the
38578         16-bit and 32-bit unit cases, use the unibyte algorithm from
38579         lib/mbsstr.c.
38580         * lib/unistr/u8-strstr.c: Include <string.h>.
38581         (UNIT_IS_UINT8_T): New macro.
38582         * lib/unistr/u16-strstr.c: Include malloca.h and str-kmp.h.
38583         (U_STRLEN, U_STRNLEN): New macros.
38584         * lib/unistr/u32-strstr.c: Include malloca.h and str-kmp.h.
38585         (U_STRLEN, U_STRNLEN): New macros.
38586         * modules/unistr/u8-strstr (Depends-on): Add strstr.
38587         (configure.ac): Update required libunistring version.
38588         * modules/unistr/u16-strstr (Files): Add lib/str-kmp.h.
38589         (Depends-on): Add unistr/u16-strlen, unistr/u16-strnlen, stdbool,
38590         malloca.
38591         (configure.ac): Update required libunistring version.
38592         * modules/unistr/u32-strstr (Files): Add lib/str-kmp.h.
38593         (Depends-on): Add unistr/u32-strlen, unistr/u32-strnlen, stdbool,
38594         malloca.
38595         (configure.ac): Update required libunistring version.
38597 2011-01-21  Pádraig Brady  <P@draigBrady.com>
38598             Bruno Haible  <bruno@clisp.org>
38600         Prepare for faster uN_strstr functions.
38601         * lib/str-kmp.h: Support definable UNITs.
38602         (knuth_morris_pratt): Renamed from knuth_morris_pratt_unibyte. Add
38603         needle_len argument.
38604         * lib/mbsstr.c (mbsstr): Adjust for the changed str-kmp.h.
38605         * lib/mbscasestr.c (mbscasestr): Likewise.
38607 2011-01-21  Pádraig Brady  <P@draigBrady.com>
38609         malloca-tests: make faster by unsetting MALLOC_PERTURB_
38610         * tests/test-malloca.c (main): Unset the environment variable
38611         to greatly speed up the test.
38612         * tests/init.sh: Don't say that MALLOC_PERTURB_ is cheap.
38613         * modules/malloca-tests: Depend on unsetenv.
38615 2011-01-21  Pádraig Brady  <P@draigBrady.com>
38617         ignore-value: remove stdint dependency
38618         * lib/ignore-value.h: Remove <stdint.h>
38619         * modules/ignore-value: Remove stdint dependency.
38621 2011-01-21  Jim Meyering  <meyering@redhat.com>
38623         maint.mk: adjust variable name to be consistent with other gl_ vars
38624         * top/maint.mk (gl_public_submodule_commit): Rename the variable
38625         to be lower case.
38627 2011-01-20  Jim Meyering  <meyering@redhat.com>
38629         maint.mk: make "check" depend on public-submodule-commit by default
38630         * top/maint.mk (GL_PUBLIC_SUBMODULE_COMMIT): New overridable variable.
38632 2011-01-20  Bruno Haible  <bruno@clisp.org>
38634         mbfile, mbiter: Complete change from 2008-12-21.
38635         * m4/mbfile.m4 (gl_MBFILE): Don't require AC_FUNC_MBRTOWC.
38636         * m4/mbiter.m4 (gl_MBITER): Likewise.
38638 2011-01-20  Jim Meyering  <meyering@redhat.com>
38640         init.sh: insert space between each function name and "()"
38641         * tests/init.sh: Make it a little easier to see that a function's
38642         name is "warn_", and not "warn" when looking at the first part of
38643         its definition: "warn_ ()".  Suggested by Ralf Wildenhues.
38645 2011-01-20  Jim Meyering  <meyering@redhat.com>
38647         mountlist: clean up code formatting
38648         * lib/mountlist.c (read_file_system_list): Split a long line,
38649         correct bracing style, use NULL in place of "(struct statfs *)0",
38650         don't parenthesize return value, add spaces around "=" and after
38651         ";-in-for-stmt".
38653 2011-01-14  Markus Duft  <mduft@gentoo.org>
38655         mountlist: add support for Interix
38656         * lib/mountlist.c (read_file_system_list) [MOUNTED_INTERIX_STATVFS]:
38657         Apply statvfs to all entries of /dev/fs.
38658         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for statvfs,
38659         and if found, AC_DEFINE MOUNTED_INTERIX_STATVFS.
38661 2011-01-20  Jim Meyering  <meyering@redhat.com>
38663         maint.mk: improve the public-submodule-commit rule
38664         * top/maint.mk (public-submodule-commit): Prefix with $(AM_V_GEN),
38665         to suppress printing of its commands... unless V=1.
38666         Add git submodule's --quiet option to suppress printing of e.g.,
38667         "Entering gnulib" output.
38668         "cd" into $(srcdir) before running git submodule.
38670 2011-01-20  Bruno Haible  <bruno@clisp.org>
38672         include_next: Fix bug introduced on 2011-01-18.
38673         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): New macro, extracted
38674         from gl_CHECK_NEXT_HEADERS and gl_NEXT_HEADERS. Omit test of
38675         ac_cv_header_... variable if the second argument is not 'check'.
38676         (gl_CHECK_NEXT_HEADERS, gl_NEXT_HEADERS): Invoke
38677         gl_NEXT_HEADERS_INTERNAL.
38679 2011-01-20  Bruno Haible  <bruno@clisp.org>
38681         Allow the user to avoid the GNULIB_TEST_* macros.
38682         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_TESTS): New macro.
38683         Suggested by Paul Eggert.
38685 2011-01-14  Jim Meyering  <meyering@redhat.com>
38687         bootstrap: avoid failure when there is no .gitmodules file
38688         ": ${gnulib_path=gnulib}" fails to set $gnulib_path when that variable
38689         has been assigned to, even when its value is the empty string.
38690         * build-aux/bootstrap (gnulib_path): Test explicitly for an empty
38691         "$gnulib_path", rather than using ${gnulib_path=gnulib}.
38692         Reported by John W. Eaton <jwe@gnu.org>.
38694 2011-01-19  Paul Eggert  <eggert@cs.ucla.edu>
38696         assume <ctype.h>, ..., <time.h> exist
38697         For years gnulib has been assuming the existence of the headers
38698         <ctype.h>, <errno.h>, <fcntl.h>, <locale.h>, <signal.h>,
38699         <stdio.h>, <stdlib.h>, <string.h>, and <time.h>.  Omit checks for
38700         them, since they don't appear to be needed.
38701         * README (Portability guidelines): Document this.
38702         * lib/flock.c: Assume <fcntl.h> exists.
38703         * lib/regex_internal.h: Assume <locale.h> exists.
38704         * m4/ctype.m4 (gl_CTYPE_H): Assume <ctype.h> exists.
38705         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Assume <errno.h> exists.
38706         * m4/fcntl_h.m4 (gl_FCNTL_H): Assume <fcntl.h> exists.
38707         * m4/flock.m4 (gl_PREREQ_FLOCK): Likewise.
38708         * m4/locale_h.m4 (gl_LOCALE_H): Assume <locale.h> exists.
38709         * m4/regex.m4 (gl_REGEX): Likewise.
38710         * m4/signal_h.m4 (gl_SIGNAL_H): Assume <signal.h> exists.
38711         * m4/stdio_h.m4 (gl_STDIO_H): Assume <stdio.h> exists.
38712         * m4/stdlib_h.m4 (gl_STDLIB_H): Assume <stdlib.h> exists.
38713         * m4/string_h.m4 (gl_STRING_H): Assume <string.h> exists.
38714         * tests/test-argp.c: Likewise.
38715         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Assume <time.h> exists.
38717         multiarch: remove AA_APPLE_UNIVERSAL_BUILD
38718         * m4/multiarch.m4 (gl_MULTIARCH): Don't AC_DEFINE
38719         AA_APPLE_UNIVERSAL_BUILD.  See
38720         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00247.html>.
38721         * NEWS: Document this.
38723 2011-01-19  Eric Blake  <eblake@redhat.com>
38725         c-stack: assume stack overflow if SA_SIGINFO unsupported
38726         * lib/c-stack.c (SIGACTION_WORKS): Rename...
38727         (SIGINFO_WORKS): ...since gnulib module guarantees that (most) of
38728         sigaction will work.
38729         (die): Assume stack overflow if siginfo doesn't work, to let Haiku
38730         behavior match Linux.
38731         * tests/test-c-stack.c (main): Prefer NULL for pointers.
38733         stdbool-tests: accommodate Haiku
38734         * tests/test-stdbool.c: Haiku's gcc 2.95 lacks native _Bool.
38736         binary-io: fix O_TEXT on Haiku
38737         * modules/binary-io (Depends-on): Add fcntl-h.
38738         * lib/binary-io.h (O_TEXT): Rely on replacement <fcntl.h> rather
38739         than blindly undefining O_TEXT.
38740         Reported by Scott McCreary.
38742 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
38744         include_next: do not check for standard headers like stddef.h
38746         I found this problem when modifying Emacs to use gnulib.
38747         I noticed that it added HAVE_STDDEF_H to config.h, even though
38748         gnulib always assumes <stddef.h> exists as per README and this
38749         symbol is unnecessary.
38750         * m4/include_next.m4 (gl_NEXT_HEADERS): New macro, which does not
38751         use AC_CHECK_HEADERS_ONCE, but which otherwise contains what
38752         gl_CHECK_NEXT_HEADERS used to contain.  This makes 'configure' run
38753         faster for headers like stddef.h that are known to exist.
38754         (gl_CHECK_NEXT_HEADERS): Use it.
38755         * m4/float_h.m4 (gl_FLOAT_H): For float.h, use gl_NEXT_HEADERS
38756         rather than gl_CHECK_NEXT_HEADERS.
38757         * m4/stdarg.m4 (gl_STDARG_H): Likewise, for stdarg.h.
38758         * m4/stddef_h.m4 (gl_STDDEF_H): Likewise, for stddef.h.
38760 2011-01-18  Eric Blake  <eblake@redhat.com>
38762         ansi-c++-opt: skip C++ dependency style if C++ is unused
38763         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Avoid full-blown dependency
38764         tests when we know C++ compilation is not desired.
38765         Reported by Scott McCreary.
38767 2011-01-18  Bruno Haible  <bruno@clisp.org>
38769         *printf-posix: Avoid test failures. Make tests work on MacOS X, Cygwin.
38770         * tests/test-fprintf-posix3.c: Include "resource-ext.h".
38771         (main): Perform test also when getrlimit and setrlimit don't exist or
38772         when setrlimit of RLIMIT_DATA fails (like on Cygwin). Instead of
38773         limiting the address space size using setrlimit, compare the address
38774         space size before and after the test.
38775         * tests/test-dprintf-posix2.c: Likewise.
38776         * tests/test-fprintf-posix3.sh: Update skip messages.
38777         * tests/test-dprintf-posix2.sh: Likewise.
38778         * modules/fprintf-posix-tests (Depends-on): Add get-rusage-as.
38779         * modules/dprintf-posix-tests (Depends-on): Likewise.
38780         Reported by Bruce Korb <bkorb@gnu.org> and
38781         Gary V. Vaughan <gary@gnu.org>.
38783 2011-01-18  Bruno Haible  <bruno@clisp.org>
38785         get-rusage-as: Improvement for Cygwin.
38786         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On Windows, ignore
38787         areas that are merely reserved.
38789 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
38791         strftime: remove dependencies on multibyte modules
38793         strftime depended on mbrlen, mbsinit, and wchar, but these modules
38794         are needed only if ! MULTIBYTE_IS_FORMAT_SAFE, and that is true
38795         only if __osf__ is defined, and I suspect OSF doesn't need these
38796         other modules.  If my guess is wrong, we'll need to come up with a
38797         variant of strftime that doesn't need the multibyte modules.
38799         I discovered this problem when attempting modify Emacs to use the
38800         strftime module.  With the previous gnulib, this caused Emacs to
38801         need 31 new files, ranging from lib/config.charset to
38802         m4/wint_t.m4.  This was overkill and I expect would be offputting
38803         to the Emacs maintainers.  After this change, only 6 new files are
38804         needed, namely strftime.[ch], srtftime.m4, stdbool.in.h,
38805         stdbool.m4, and tm_gmtoff.m4.
38807         * lib/strftime.c (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 always.
38808         Suggested by Bruno Haible in
38809         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00238.html>.
38810         * m4/strftime.m4 (gl_FUNC_STRFTIME): Do not require AC_TYPE_MBSTATE_T,
38811         and do not check for wchar.h.
38812         * modules/strftime (Files): Remove m4/mbstate_t.m4.
38813         (Depends-on): Remove mbrlen, mbsinit, wchar.
38815 2011-01-18  Bruno Haible  <bruno@clisp.org>
38817         Tests for module 'get-rusage-as'.
38818         * modules/get-rusage-as-tests: New file.
38819         * tests/test-get-rusage-as.c: New file.
38821         New module 'get-rusage-as'.
38822         * modules/get-rusage-as: New file.
38823         * lib/resource-ext.h: New file.
38824         * lib/get-rusage-as.c: New file.
38826 2011-01-17  Eric Blake  <eblake@redhat.com>
38828         sigaction: relax license from LGPLv3+ to LGPLv2+
38829         * modules/sigaction (License): Relax to LGPLv2+.
38831 2011-01-14  Bruno Haible  <bruno@clisp.org>
38833         filemode: Make function declarations usable in C++ mode.
38834         * lib/filemode.h: Enclose function declarations in extern "C" block.
38835         Reported by John W. Eaton <jwe@gnu.org>.
38837 2011-01-12  Rob Vermaas  <rob.vermaas@gmail.com>
38839         save-cwd: no longer include "xgetcwd.h"
38840         * lib/save-cwd.c: Don't include "xgetcwd.h"; it's no longer used.
38841         This avoids a compilation failure in projects that use save-cwd
38842         without also using the xgetcwd module.
38844 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
38846         ftoastr: split into 3 modules ftoastr, dtoastr, ldtoastr
38847         This is so that a program like Emacs, which needs only dtoastr,
38848         does not have to bother with distributing and compiling ftoastr
38849         and ldtoastr.
38850         * MODULES.html.sh: Document these modules (ftoastr wasn't documented).
38851         * modules/dtoastr, modules/ldtoastr: New files.
38852         * modules/ftoastr: Now works just for 'float'.
38853         (Files): Remove lib/dtoastr.c, lib/ldtoastr.c.
38854         (Makefile.am): Remove ftoastr.h (not needed and no effect),
38855         dtoastr.c, ldtoastr.c.
38857 2011-01-11  Jim Meyering  <meyering@redhat.com>
38859         save-cwd: remove #if-!HAVE_FCHDIR'd code; use the fchdir module
38860         There is no need to work around the lack of the fchdir function,
38861         since gnulib can now provide a replacement when required.
38862         * lib/save-cwd.c: Remove #if !HAVE_FCHDIR...#endif code.
38863         * modules/save-cwd (Depends-on): Add fchdir.
38865 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
38867         openat, save-cwd: avoid xmalloc
38869         This removes a direct (but undocumented) dependency of openat on
38870         xalloc, along with an indirect dependency via save-cwd.  It also
38871         removes a dependency of save-cwd on xgetcwd, and thereby
38872         indirectly on xalloc.  This change causes the openat substitute
38873         to fall back on save_cwd when memory is tight, and for save_cwd to
38874         fail instead of dying when memory is tight, but that's good enough.
38875         Problem and initial idea for fix reported by Bastien Roucaries in
38876         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00170.html>.
38878         * lib/openat-proc.c: Include stdlib.h (for malloc), not
38879         xalloc.h (for xmalloc).
38880         (openat_proc_name): Use malloc, not xmalloc.
38881         * lib/save-cwd.c (save_cwd): Use getcwd, not xgetcwd.
38882         * modules/save-cwd (Files): Depend on getcwd, not xgetcwd.
38884         openat: Increase OPENAT_BUFFER_SIZE from 512 to at least 1024
38885         This avoids heap allocation for file names whose lengths are in
38886         the range 512..1023, with the upper bound increasing to at most
38887         4031 depending on the platform's PATH_MAX.  (We do not want
38888         pathmax.h here as it might supply a non-constant PATH_MAX.)
38889         * lib/openat-priv.h (SAFER_ALLOCA_MAX, SAFER_ALLOCA): New macros.
38890         Perhaps they should be moved to malloca.h?
38891         (OPENAT_BUFFER_SIZE): Use them.
38893 2011-01-10  Bruno Haible  <bruno@clisp.org>
38895         doc: Update users.txt.
38896         * users.txt: Add recutils.
38898 2011-01-09  Karl Berry  <karl@gnu.org>
38900         * doc/posix-functions/gai_strerror.texi: Insert missing @item.
38902         * doc/configmake.texi: New file.
38903         * doc/gnulib.texi: Include it.
38904         * modules/configmake: Move documentation from here.
38906 2011-01-09  Bruno Haible  <bruno@clisp.org>
38908         Update to Unicode 6.0.0.
38909         * lib/gen-uni-tables.c (symbolic_width): Fix bounds of planes.
38910         (get_lbp): Update for Unicode 6.0.0.
38911         * lib/uniwidth/width.c (nonspacing_table_data): Add U+065F,
38912         U+0859..U+085B, U+093A, U+0956..U+0957, U+0F8D..U+0F8F, U+135D..U+135E,
38913         U+1BE6, U+1BE8..U+1BE9, U+1BED, U+1BEF..U+1BF1, U+1DFC, U+2D7F,
38914         U+11001, U+11038..U+11046. Remove U+06DE.
38915         (uc_width): Fix bounds of planes.
38916         * tests/uniwidth/test-uc_width2.sh: Same updates as in
38917         lib/uniwidth/width.c.
38918         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 6.0.0, with
38919         trailing whitespace removed.
38920         * tests/uninorm/NormalizationTest.txt: Update from Unicode 6.0.0,
38921         without comments, but with the original copyright notice.
38922         * lib/unicase/cased.h: Regenerated for Unicode 6.0.0.
38923         * lib/unicase/ignorable.h: Likewise.
38924         * lib/unicase/tocasefold.h: Likewise.
38925         * lib/unicase/tolower.h: Likewise.
38926         * lib/unicase/totitle.h: Likewise.
38927         * lib/unicase/toupper.h: Likewise.
38928         * lib/unictype/bidi_of.h: Likewise.
38929         * lib/unictype/blocks.h: Likewise.
38930         * lib/unictype/categ_C.h: Likewise.
38931         * lib/unictype/categ_Cn.h: Likewise.
38932         * lib/unictype/categ_L.h: Likewise.
38933         * lib/unictype/categ_Ll.h: Likewise.
38934         * lib/unictype/categ_Lm.h: Likewise.
38935         * lib/unictype/categ_Lo.h: Likewise.
38936         * lib/unictype/categ_Lu.h: Likewise.
38937         * lib/unictype/categ_M.h: Likewise.
38938         * lib/unictype/categ_Mc.h: Likewise.
38939         * lib/unictype/categ_Me.h: Likewise.
38940         * lib/unictype/categ_Mn.h: Likewise.
38941         * lib/unictype/categ_N.h: Likewise.
38942         * lib/unictype/categ_Nd.h: Likewise.
38943         * lib/unictype/categ_No.h: Likewise.
38944         * lib/unictype/categ_P.h: Likewise.
38945         * lib/unictype/categ_Po.h: Likewise.
38946         * lib/unictype/categ_S.h: Likewise.
38947         * lib/unictype/categ_Sc.h: Likewise.
38948         * lib/unictype/categ_Sk.h: Likewise.
38949         * lib/unictype/categ_Sm.h: Likewise.
38950         * lib/unictype/categ_So.h: Likewise.
38951         * lib/unictype/categ_of.h: Likewise.
38952         * lib/unictype/combining.h: Likewise.
38953         * lib/unictype/ctype_alnum.h: Likewise.
38954         * lib/unictype/ctype_alpha.h: Likewise.
38955         * lib/unictype/ctype_graph.h: Likewise.
38956         * lib/unictype/ctype_lower.h: Likewise.
38957         * lib/unictype/ctype_print.h: Likewise.
38958         * lib/unictype/ctype_punct.h: Likewise.
38959         * lib/unictype/ctype_upper.h: Likewise.
38960         * lib/unictype/decdigit.h: Likewise.
38961         * lib/unictype/digit.h: Likewise.
38962         * lib/unictype/numeric.h: Likewise.
38963         * lib/unictype/pr_alphabetic.h: Likewise.
38964         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
38965         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
38966         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
38967         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
38968         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
38969         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
38970         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
38971         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
38972         * lib/unictype/pr_case_ignorable.h: Likewise.
38973         * lib/unictype/pr_cased.h: Likewise.
38974         * lib/unictype/pr_changes_when_casefolded.h: Likewise.
38975         * lib/unictype/pr_changes_when_casemapped.h: Likewise.
38976         * lib/unictype/pr_changes_when_lowercased.h: Likewise.
38977         * lib/unictype/pr_changes_when_titlecased.h: Likewise.
38978         * lib/unictype/pr_changes_when_uppercased.h: Likewise.
38979         * lib/unictype/pr_combining.h: Likewise.
38980         * lib/unictype/pr_composite.h: Likewise.
38981         * lib/unictype/pr_currency_symbol.h: Likewise.
38982         * lib/unictype/pr_decimal_digit.h: Likewise.
38983         * lib/unictype/pr_deprecated.h: Likewise.
38984         * lib/unictype/pr_format_control.h: Likewise.
38985         * lib/unictype/pr_grapheme_base.h: Likewise.
38986         * lib/unictype/pr_grapheme_extend.h: Likewise.
38987         * lib/unictype/pr_grapheme_link.h: Likewise.
38988         * lib/unictype/pr_id_continue.h: Likewise.
38989         * lib/unictype/pr_id_start.h: Likewise.
38990         * lib/unictype/pr_ideographic.h: Likewise.
38991         * lib/unictype/pr_lowercase.h: Likewise.
38992         * lib/unictype/pr_math.h: Likewise.
38993         * lib/unictype/pr_numeric.h: Likewise.
38994         * lib/unictype/pr_other_alphabetic.h: Likewise.
38995         * lib/unictype/pr_other_id_continue.h: Likewise.
38996         * lib/unictype/pr_other_math.h: Likewise.
38997         * lib/unictype/pr_punctuation.h: Likewise.
38998         * lib/unictype/pr_sentence_terminal.h: Likewise.
38999         * lib/unictype/pr_terminal_punctuation.h: Likewise.
39000         * lib/unictype/pr_unassigned_code_value.h: Likewise.
39001         * lib/unictype/pr_unified_ideograph.h: Likewise.
39002         * lib/unictype/pr_uppercase.h: Likewise.
39003         * lib/unictype/pr_xid_continue.h: Likewise.
39004         * lib/unictype/pr_xid_start.h: Likewise.
39005         * lib/unictype/scripts.h: Likewise.
39006         * lib/unictype/scripts_byname.gperf: Likewise.
39007         * lib/unictype/sy_java_ident.h: Likewise.
39008         * lib/unigbrk/gbrkprop.h: Likewise.
39009         * lib/unilbrk/lbrkprop1.h: Likewise.
39010         * lib/unilbrk/lbrkprop2.h: Likewise.
39011         * lib/uninorm/decomposition-table2.h: Likewise.
39012         * lib/uniwbrk/wbrkprop.h: Likewise.
39013         * tests/unicase/test-cased.c: Likewise.
39014         * tests/unicase/test-ignorable.c: Likewise.
39015         * tests/unicase/test-uc_tolower.c: Likewise.
39016         * tests/unicase/test-uc_totitle.c: Likewise.
39017         * tests/unicase/test-uc_toupper.c: Likewise.
39018         * tests/unictype/test-categ_C.c: Likewise.
39019         * tests/unictype/test-categ_Cn.c: Likewise.
39020         * tests/unictype/test-categ_L.c: Likewise.
39021         * tests/unictype/test-categ_Ll.c: Likewise.
39022         * tests/unictype/test-categ_Lm.c: Likewise.
39023         * tests/unictype/test-categ_Lo.c: Likewise.
39024         * tests/unictype/test-categ_Lu.c: Likewise.
39025         * tests/unictype/test-categ_M.c: Likewise.
39026         * tests/unictype/test-categ_Mc.c: Likewise.
39027         * tests/unictype/test-categ_Me.c: Likewise.
39028         * tests/unictype/test-categ_Mn.c: Likewise.
39029         * tests/unictype/test-categ_N.c: Likewise.
39030         * tests/unictype/test-categ_Nd.c: Likewise.
39031         * tests/unictype/test-categ_No.c: Likewise.
39032         * tests/unictype/test-categ_P.c: Likewise.
39033         * tests/unictype/test-categ_Po.c: Likewise.
39034         * tests/unictype/test-categ_S.c: Likewise.
39035         * tests/unictype/test-categ_Sc.c: Likewise.
39036         * tests/unictype/test-categ_Sk.c: Likewise.
39037         * tests/unictype/test-categ_Sm.c: Likewise.
39038         * tests/unictype/test-categ_So.c: Likewise.
39039         * tests/unictype/test-ctype_alnum.c: Likewise.
39040         * tests/unictype/test-ctype_alpha.c: Likewise.
39041         * tests/unictype/test-ctype_graph.c: Likewise.
39042         * tests/unictype/test-ctype_lower.c: Likewise.
39043         * tests/unictype/test-ctype_print.c: Likewise.
39044         * tests/unictype/test-ctype_punct.c: Likewise.
39045         * tests/unictype/test-ctype_upper.c: Likewise.
39046         * tests/unictype/test-decdigit.h: Likewise.
39047         * tests/unictype/test-digit.h: Likewise.
39048         * tests/unictype/test-numeric.h: Likewise.
39049         * tests/unictype/test-pr_alphabetic.c: Likewise.
39050         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
39051         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
39052         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
39053         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
39054         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
39055         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
39056         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
39057         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
39058         * tests/unictype/test-pr_case_ignorable.c: Likewise.
39059         * tests/unictype/test-pr_cased.c: Likewise.
39060         * tests/unictype/test-pr_changes_when_casefolded.c: Likewise.
39061         * tests/unictype/test-pr_changes_when_casemapped.c: Likewise.
39062         * tests/unictype/test-pr_changes_when_lowercased.c: Likewise.
39063         * tests/unictype/test-pr_changes_when_titlecased.c: Likewise.
39064         * tests/unictype/test-pr_changes_when_uppercased.c: Likewise.
39065         * tests/unictype/test-pr_combining.c: Likewise.
39066         * tests/unictype/test-pr_composite.c: Likewise.
39067         * tests/unictype/test-pr_currency_symbol.c: Likewise.
39068         * tests/unictype/test-pr_decimal_digit.c: Likewise.
39069         * tests/unictype/test-pr_deprecated.c: Likewise.
39070         * tests/unictype/test-pr_format_control.c: Likewise.
39071         * tests/unictype/test-pr_grapheme_base.c: Likewise.
39072         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
39073         * tests/unictype/test-pr_grapheme_link.c: Likewise.
39074         * tests/unictype/test-pr_id_continue.c: Likewise.
39075         * tests/unictype/test-pr_id_start.c: Likewise.
39076         * tests/unictype/test-pr_ideographic.c: Likewise.
39077         * tests/unictype/test-pr_lowercase.c: Likewise.
39078         * tests/unictype/test-pr_math.c: Likewise.
39079         * tests/unictype/test-pr_numeric.c: Likewise.
39080         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
39081         * tests/unictype/test-pr_other_id_continue.c: Likewise.
39082         * tests/unictype/test-pr_other_math.c: Likewise.
39083         * tests/unictype/test-pr_punctuation.c: Likewise.
39084         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
39085         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
39086         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
39087         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
39088         * tests/unictype/test-pr_uppercase.c: Likewise.
39089         * tests/unictype/test-pr_xid_continue.c: Likewise.
39090         * tests/unictype/test-pr_xid_start.c: Likewise.
39091         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
39092         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
39093         changes.
39094         * lib/unictype/categ_Cc.h: Likewise.
39095         * lib/unictype/categ_Cf.h: Likewise.
39096         * lib/unictype/categ_Co.h: Likewise.
39097         * lib/unictype/categ_Cs.h: Likewise.
39098         * lib/unictype/categ_Lt.h: Likewise.
39099         * lib/unictype/categ_Nl.h: Likewise.
39100         * lib/unictype/categ_Pc.h: Likewise.
39101         * lib/unictype/categ_Pd.h: Likewise.
39102         * lib/unictype/categ_Pe.h: Likewise.
39103         * lib/unictype/categ_Pf.h: Likewise.
39104         * lib/unictype/categ_Pi.h: Likewise.
39105         * lib/unictype/categ_Ps.h: Likewise.
39106         * lib/unictype/categ_Z.h: Likewise.
39107         * lib/unictype/categ_Zl.h: Likewise.
39108         * lib/unictype/categ_Zp.h: Likewise.
39109         * lib/unictype/categ_Zs.h: Likewise.
39110         * lib/unictype/ctype_blank.h: Likewise.
39111         * lib/unictype/ctype_cntrl.h: Likewise.
39112         * lib/unictype/ctype_digit.h: Likewise.
39113         * lib/unictype/ctype_space.h: Likewise.
39114         * lib/unictype/ctype_xdigit.h: Likewise.
39115         * lib/unictype/mirror.h: Likewise.
39116         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
39117         * lib/unictype/pr_bidi_block_separator.h: Likewise.
39118         * lib/unictype/pr_bidi_common_separator.h: Likewise.
39119         * lib/unictype/pr_bidi_control.h: Likewise.
39120         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
39121         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
39122         * lib/unictype/pr_bidi_european_digit.h: Likewise.
39123         * lib/unictype/pr_bidi_pdf.h: Likewise.
39124         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
39125         * lib/unictype/pr_bidi_whitespace.h: Likewise.
39126         * lib/unictype/pr_dash.h: Likewise.
39127         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
39128         * lib/unictype/pr_diacritic.h: Likewise.
39129         * lib/unictype/pr_extender.h: Likewise.
39130         * lib/unictype/pr_hex_digit.h: Likewise.
39131         * lib/unictype/pr_hyphen.h: Likewise.
39132         * lib/unictype/pr_ids_binary_operator.h: Likewise.
39133         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
39134         * lib/unictype/pr_ignorable_control.h: Likewise.
39135         * lib/unictype/pr_iso_control.h: Likewise.
39136         * lib/unictype/pr_join_control.h: Likewise.
39137         * lib/unictype/pr_left_of_pair.h: Likewise.
39138         * lib/unictype/pr_line_separator.h: Likewise.
39139         * lib/unictype/pr_logical_order_exception.h: Likewise.
39140         * lib/unictype/pr_non_break.h: Likewise.
39141         * lib/unictype/pr_not_a_character.h: Likewise.
39142         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
39143         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
39144         * lib/unictype/pr_other_id_start.h: Likewise.
39145         * lib/unictype/pr_other_lowercase.h: Likewise.
39146         * lib/unictype/pr_other_uppercase.h: Likewise.
39147         * lib/unictype/pr_paired_punctuation.h: Likewise.
39148         * lib/unictype/pr_paragraph_separator.h: Likewise.
39149         * lib/unictype/pr_pattern_syntax.h: Likewise.
39150         * lib/unictype/pr_pattern_white_space.h: Likewise.
39151         * lib/unictype/pr_private_use.h: Likewise.
39152         * lib/unictype/pr_quotation_mark.h: Likewise.
39153         * lib/unictype/pr_radical.h: Likewise.
39154         * lib/unictype/pr_soft_dotted.h: Likewise.
39155         * lib/unictype/pr_space.h: Likewise.
39156         * lib/unictype/pr_titlecase.h: Likewise.
39157         * lib/unictype/pr_variation_selector.h: Likewise.
39158         * lib/unictype/pr_white_space.h: Likewise.
39159         * lib/unictype/pr_zero_width.h: Likewise.
39160         * lib/unictype/sy_c_ident.h: Likewise.
39161         * lib/unictype/sy_c_whitespace.h: Likewise.
39162         * lib/unictype/sy_java_whitespace.h: Likewise.
39163         * lib/uninorm/composition-table.gperf: Likewise.
39164         * lib/uninorm/decomposition-table1.h: Likewise.
39165         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Add test for rule
39166         LB8.
39167         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
39168         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
39169         * modules/unictype/*: Bump version number of expected libunistring
39170         version.
39172 2011-01-09  Bruno Haible  <bruno@clisp.org>
39174         Update to Unicode 5.2.0.
39175         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 5.2.0, with
39176         trailing whitespace removed.
39178 2011-01-09  Bruno Haible  <bruno@clisp.org>
39180         New Unicode character properties, from Unicode 5.2.0.
39181         * lib/unictype.in.h (UC_PROPERTY_CASED, UC_PROPERTY_CASE_IGNORABLE,
39182         UC_PROPERTY_CHANGES_WHEN_LOWERCASED,
39183         UC_PROPERTY_CHANGES_WHEN_UPPERCASED,
39184         UC_PROPERTY_CHANGES_WHEN_TITLECASED,
39185         UC_PROPERTY_CHANGES_WHEN_CASEFOLDED,
39186         UC_PROPERTY_CHANGES_WHEN_CASEMAPPED,
39187         uc_is_property_cased, uc_is_property_case_ignorable,
39188         uc_is_property_changes_when_lowercased,
39189         uc_is_property_changes_when_uppercased,
39190         uc_is_property_changes_when_titlecased,
39191         uc_is_property_changes_when_casefolded,
39192         uc_is_property_changes_when_casemapped): New declarations.
39193         * lib/unictype/pr_byname.gperf: Add the new properties.
39194         * modules/unictype/property-byname (Depends-on): Depend on the new
39195         properties modules.
39196         * modules/unictype/property-all (Depends-on): Likewise.
39197         * MODULES.html.sh (Unicode string functions): Add
39198         unictype/property-case-ignorable, unictype/property-cased,
39199         unictype/property-changes-when-casefolded,
39200         unictype/property-changes-when-casemapped,
39201         unictype/property-changes-when-lowercased,
39202         unictype/property-changes-when-titlecased,
39203         unictype/property-changes-when-uppercased.
39205         New module 'unictype/property-changes-when-casemapped'.
39206         * modules/unictype/property-changes-when-casemapped: New file.
39207         * lib/unictype/pr_changes_when_casemapped.c: New file.
39208         * lib/unictype/pr_changes_when_casemapped.h: New file, automatically
39209         generated by gen-uni-tables.
39210         * modules/unictype/property-changes-when-casemapped-tests: New file.
39211         * tests/unictype/test-pr_changes_when_casemapped.c: New file,
39212         automatically generated by gen-uni-tables.
39214         New module 'unictype/property-changes-when-casefolded'.
39215         * modules/unictype/property-changes-when-casefolded: New file.
39216         * lib/unictype/pr_changes_when_casefolded.c: New file.
39217         * lib/unictype/pr_changes_when_casefolded.h: New file, automatically
39218         generated by gen-uni-tables.
39219         * modules/unictype/property-changes-when-casefolded-tests: New file.
39220         * tests/unictype/test-pr_changes_when_casefolded.c: New file,
39221         automatically generated by gen-uni-tables.
39223         New module 'unictype/property-changes-when-titlecased'.
39224         * modules/unictype/property-changes-when-titlecased: New file.
39225         * lib/unictype/pr_changes_when_titlecased.c: New file.
39226         * lib/unictype/pr_changes_when_titlecased.h: New file, automatically
39227         generated by gen-uni-tables.
39228         * modules/unictype/property-changes-when-titlecased-tests: New file.
39229         * tests/unictype/test-pr_changes_when_titlecased.c: New file,
39230         automatically generated by gen-uni-tables.
39232         New module 'unictype/property-changes-when-uppercased'.
39233         * modules/unictype/property-changes-when-uppercased: New file.
39234         * lib/unictype/pr_changes_when_uppercased.c: New file.
39235         * lib/unictype/pr_changes_when_uppercased.h: New file, automatically
39236         generated by gen-uni-tables.
39237         * modules/unictype/property-changes-when-uppercased-tests: New file.
39238         * tests/unictype/test-pr_changes_when_uppercased.c: New file,
39239         automatically generated by gen-uni-tables.
39241         New module 'unictype/property-changes-when-lowercased'.
39242         * modules/unictype/property-changes-when-lowercased: New file.
39243         * lib/unictype/pr_changes_when_lowercased.c: New file.
39244         * lib/unictype/pr_changes_when_lowercased.h: New file, automatically
39245         generated by gen-uni-tables.
39246         * modules/unictype/property-changes-when-lowercased-tests: New file.
39247         * tests/unictype/test-pr_changes_when_lowercased.c: New file,
39248         automatically generated by gen-uni-tables.
39250         New module 'unictype/property-case-ignorable'.
39251         * modules/unictype/property-case-ignorable: New file.
39252         * lib/unictype/pr_case_ignorable.c: New file.
39253         * lib/unictype/pr_case_ignorable.h: New file, automatically generated
39254         by gen-uni-tables.
39255         * modules/unictype/property-case-ignorable-tests: New file.
39256         * tests/unictype/test-pr_case_ignorable.c: New file, automatically
39257         generated by gen-uni-tables.
39259         New module 'unictype/property-cased'.
39260         * modules/unictype/property-cased: New file.
39261         * lib/unictype/pr_cased.c: New file.
39262         * lib/unictype/pr_cased.h: New file, automatically generated by
39263         gen-uni-tables.
39264         * modules/unictype/property-cased-tests: New file.
39265         * tests/unictype/test-pr_cased.c: New file, automatically generated by
39266         gen-uni-tables.
39268 2011-01-09  Bruno Haible  <bruno@clisp.org>
39270         Update to Unicode 5.2.0.
39271         * lib/gen-uni-tables.c (output_predicate, output_category,
39272         output_combclass, output_bidi_category, output_decimal_digit_test,
39273         output_decimal_digit, output_digit_test, output_digit,
39274         output_numeric_test, output_numeric, output_mirror, output_scripts,
39275         output_scripts_byname, output_blocks, output_ident_category): Fix
39276         comment header.
39277         (is_WBP_MIDNUMLET, is_WBP_MIDLETTER): New functions, extracted from
39278         get_wbp.
39279         (PROP_CASED, PROP_CASE_IGNORABLE, PROP_CHANGES_WHEN_*): New enumeration
39280         items.
39281         (fill_properties): Also fill the peoperties Cased, Case_Ignorable,
39282         Changes_When_Lowercased, Changes_When_Uppercased,
39283         Changes_When_Titlecased, Changes_When_Casefolded,
39284         Changes_When_Casemapped.
39285         (is_property_alphabetic, is_property_default_ignorable_code_point):
39286         Update for Unicode 5.2.0.
39287         (is_property_cased, is_property_case_ignorable,
39288         is_property_changes_when_lowercased,
39289         is_property_changes_when_uppercased,
39290         is_property_changes_when_titlecased,
39291         is_property_changes_when_casefolded,
39292         is_property_changes_when_casemapped): New functions.
39293         (output_properties): Output also the properties cased, case_ignorable,
39294         changes_when_lowercased, changes_when_uppercased,
39295         changes_when_titlecased, changes_when_casefolded,
39296         changes_when_casemapped.
39297         (symbolic_width): Update for Unicode 5.2.0, incorporating changes from
39298         Unicode TR#11 revision 17 -> 19.
39299         (LBP_CP): New enumeration value.
39300         (LBP_*): Adjust values accordingly.
39301         (get_lbp): Update for Unicode 5.2.0, incorporating changes from Unicode
39302         TR#14 revision 22 -> 24.
39303         (debug_output_lbp): Allow for LBP_* bits >= 32. Support LBP_CP.
39304         (fill_org_lbp, debug_output_org_lbp, output_lbp): Support LBP_CP.
39305         (get_wbp): Update for Unicode 5.2.0, incorporating changes from Unicode
39306         TR#29 revision 13 -> 15. Use functions is_WBP_MIDNUMLET,
39307         is_WBP_MIDLETTER.
39308         (output_composition_tables): Allow for 24 bits instead of 16 bits in
39309         the code1 and code2 of each composition rule.
39310         * lib/unicase/cased.h: Regenerated for Unicode 5.2.0.
39311         * lib/unicase/ignorable.h: Likewise.
39312         * lib/unicase/tocasefold.h: Likewise.
39313         * lib/unicase/tolower.h: Likewise.
39314         * lib/unicase/totitle.h: Likewise.
39315         * lib/unicase/toupper.h: Likewise.
39316         * lib/unictype/bidi_of.h: Likewise.
39317         * lib/unictype/blocks.h: Likewise.
39318         * lib/unictype/categ_C.h: Likewise.
39319         * lib/unictype/categ_Cf.h: Likewise.
39320         * lib/unictype/categ_Cn.h: Likewise.
39321         * lib/unictype/categ_L.h: Likewise.
39322         * lib/unictype/categ_Ll.h: Likewise.
39323         * lib/unictype/categ_Lm.h: Likewise.
39324         * lib/unictype/categ_Lo.h: Likewise.
39325         * lib/unictype/categ_Lu.h: Likewise.
39326         * lib/unictype/categ_M.h: Likewise.
39327         * lib/unictype/categ_Mc.h: Likewise.
39328         * lib/unictype/categ_Mn.h: Likewise.
39329         * lib/unictype/categ_N.h: Likewise.
39330         * lib/unictype/categ_Nd.h: Likewise.
39331         * lib/unictype/categ_Nl.h: Likewise.
39332         * lib/unictype/categ_No.h: Likewise.
39333         * lib/unictype/categ_P.h: Likewise.
39334         * lib/unictype/categ_Pd.h: Likewise.
39335         * lib/unictype/categ_Po.h: Likewise.
39336         * lib/unictype/categ_S.h: Likewise.
39337         * lib/unictype/categ_Sc.h: Likewise.
39338         * lib/unictype/categ_So.h: Likewise.
39339         * lib/unictype/categ_of.h: Likewise.
39340         * lib/unictype/combining.h: Likewise.
39341         * lib/unictype/ctype_alnum.h: Likewise.
39342         * lib/unictype/ctype_alpha.h: Likewise.
39343         * lib/unictype/ctype_graph.h: Likewise.
39344         * lib/unictype/ctype_lower.h: Likewise.
39345         * lib/unictype/ctype_print.h: Likewise.
39346         * lib/unictype/ctype_punct.h: Likewise.
39347         * lib/unictype/ctype_upper.h: Likewise.
39348         * lib/unictype/decdigit.h: Likewise.
39349         * lib/unictype/digit.h: Likewise.
39350         * lib/unictype/numeric.h: Likewise.
39351         * lib/unictype/pr_alphabetic.h: Likewise.
39352         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
39353         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
39354         * lib/unictype/pr_bidi_european_digit.h: Likewise.
39355         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
39356         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
39357         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
39358         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
39359         * lib/unictype/pr_combining.h: Likewise.
39360         * lib/unictype/pr_composite.h: Likewise.
39361         * lib/unictype/pr_currency_symbol.h: Likewise.
39362         * lib/unictype/pr_dash.h: Likewise.
39363         * lib/unictype/pr_decimal_digit.h: Likewise.
39364         * lib/unictype/pr_deprecated.h: Likewise.
39365         * lib/unictype/pr_diacritic.h: Likewise.
39366         * lib/unictype/pr_extender.h: Likewise.
39367         * lib/unictype/pr_grapheme_base.h: Likewise.
39368         * lib/unictype/pr_grapheme_extend.h: Likewise.
39369         * lib/unictype/pr_grapheme_link.h: Likewise.
39370         * lib/unictype/pr_id_continue.h: Likewise.
39371         * lib/unictype/pr_id_start.h: Likewise.
39372         * lib/unictype/pr_ideographic.h: Likewise.
39373         * lib/unictype/pr_ignorable_control.h: Likewise.
39374         * lib/unictype/pr_logical_order_exception.h: Likewise.
39375         * lib/unictype/pr_lowercase.h: Likewise.
39376         * lib/unictype/pr_numeric.h: Likewise.
39377         * lib/unictype/pr_other_alphabetic.h: Likewise.
39378         * lib/unictype/pr_punctuation.h: Likewise.
39379         * lib/unictype/pr_sentence_terminal.h: Likewise.
39380         * lib/unictype/pr_terminal_punctuation.h: Likewise.
39381         * lib/unictype/pr_unassigned_code_value.h: Likewise.
39382         * lib/unictype/pr_unified_ideograph.h: Likewise.
39383         * lib/unictype/pr_uppercase.h: Likewise.
39384         * lib/unictype/pr_xid_continue.h: Likewise.
39385         * lib/unictype/pr_xid_start.h: Likewise.
39386         * lib/unictype/pr_zero_width.h: Likewise.
39387         * lib/unictype/scripts.h: Likewise.
39388         * lib/unictype/scripts_byname.gperf: Likewise.
39389         * lib/unictype/sy_java_ident.h: Likewise.
39390         * lib/unigbrk/gbrkprop.h: Likewise.
39391         * lib/unilbrk/lbrkprop1.h: Likewise.
39392         * lib/unilbrk/lbrkprop2.h: Likewise.
39393         * lib/unilbrk/lbrktables.h: Likewise.
39394         * lib/unilbrk/lbrktables.c (unilbrk_table): Add a row and column for
39395         LBP_CP. Implement rule LB30.
39396         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0816..U+0819,
39397         U+081B..U+0823, U+0825..U+0827, U+0829..U+082D, U+0900, U+0955, U+109D,
39398         U+1A56, U+1A58..U+1A5E, U+1A60, U+1A62, U+1A65..U+1A6C, U+1A73..U+1A7C,
39399         U+1A7F, U+1CD0..U+1CD2, U+1CD4..U+1CE0, U+1CE2..U+1CE8, U+1CED, U+1DFD,
39400         U+2CEF..U+2CF1, U+A6F0..U+A6F1, U+A8E0..U+A8F1, U+A980..U+A982, U+A9B3,
39401         U+A9B6..U+A9B9, U+A9BC, U+AAB0, U+AAB2..U+AAB4, U+AAB7..U+AAB8,
39402         U+AABE..U+AABF, U+AAC1, U+ABE5, U+ABE8, U+ABED, U+11080..U+11081,
39403         U+110B3..U+110B6, U+110B9..U+110BA, U+110BD.
39404         (uc_width): Return 2 also for unassigned code points of planes 2 and 3.
39405         * lib/uninorm/composition-table.gperf: Regenerated for Unicode 5.2.0.
39406         * lib/uninorm/composition.c (struct composition_rule): Allow for 24
39407         bits instead of 16 bits in the code1 and code2 of each composition
39408         rule.
39409         (uc_composition): Update for Unicode 5.2.0.
39410         * lib/uninorm/decomposition-table1.h: Regenerated for Unicode 5.2.0.
39411         * lib/uninorm/decomposition-table2.h: Likewise.
39412         * lib/uniwbrk/wbrkprop.h: Likewise.
39413         * tests/unicase/test-cased.c: Likewise.
39414         * tests/unicase/test-ignorable.c: Likewise.
39415         * tests/unicase/test-uc_tolower.c: Likewise.
39416         * tests/unicase/test-uc_totitle.c: Likewise.
39417         * tests/unicase/test-uc_toupper.c: Likewise.
39418         * tests/unictype/test-categ_C.c: Likewise.
39419         * tests/unictype/test-categ_Cf.c: Likewise.
39420         * tests/unictype/test-categ_Cn.c: Likewise.
39421         * tests/unictype/test-categ_L.c: Likewise.
39422         * tests/unictype/test-categ_Ll.c: Likewise.
39423         * tests/unictype/test-categ_Lm.c: Likewise.
39424         * tests/unictype/test-categ_Lo.c: Likewise.
39425         * tests/unictype/test-categ_Lu.c: Likewise.
39426         * tests/unictype/test-categ_M.c: Likewise.
39427         * tests/unictype/test-categ_Mc.c: Likewise.
39428         * tests/unictype/test-categ_Mn.c: Likewise.
39429         * tests/unictype/test-categ_N.c: Likewise.
39430         * tests/unictype/test-categ_Nd.c: Likewise.
39431         * tests/unictype/test-categ_Nl.c: Likewise.
39432         * tests/unictype/test-categ_No.c: Likewise.
39433         * tests/unictype/test-categ_P.c: Likewise.
39434         * tests/unictype/test-categ_Pd.c: Likewise.
39435         * tests/unictype/test-categ_Po.c: Likewise.
39436         * tests/unictype/test-categ_S.c: Likewise.
39437         * tests/unictype/test-categ_Sc.c: Likewise.
39438         * tests/unictype/test-categ_So.c: Likewise.
39439         * tests/unictype/test-ctype_alnum.c: Likewise.
39440         * tests/unictype/test-ctype_alpha.c: Likewise.
39441         * tests/unictype/test-ctype_graph.c: Likewise.
39442         * tests/unictype/test-ctype_lower.c: Likewise.
39443         * tests/unictype/test-ctype_print.c: Likewise.
39444         * tests/unictype/test-ctype_punct.c: Likewise.
39445         * tests/unictype/test-ctype_upper.c: Likewise.
39446         * tests/unictype/test-decdigit.h: Likewise.
39447         * tests/unictype/test-digit.h: Likewise.
39448         * tests/unictype/test-numeric.h: Likewise.
39449         * tests/unictype/test-pr_alphabetic.c: Likewise.
39450         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
39451         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
39452         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
39453         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
39454         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
39455         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
39456         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
39457         * tests/unictype/test-pr_combining.c: Likewise.
39458         * tests/unictype/test-pr_composite.c: Likewise.
39459         * tests/unictype/test-pr_currency_symbol.c: Likewise.
39460         * tests/unictype/test-pr_dash.c: Likewise.
39461         * tests/unictype/test-pr_decimal_digit.c: Likewise.
39462         * tests/unictype/test-pr_deprecated.c: Likewise.
39463         * tests/unictype/test-pr_diacritic.c: Likewise.
39464         * tests/unictype/test-pr_extender.c: Likewise.
39465         * tests/unictype/test-pr_grapheme_base.c: Likewise.
39466         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
39467         * tests/unictype/test-pr_grapheme_link.c: Likewise.
39468         * tests/unictype/test-pr_id_continue.c: Likewise.
39469         * tests/unictype/test-pr_id_start.c: Likewise.
39470         * tests/unictype/test-pr_ideographic.c: Likewise.
39471         * tests/unictype/test-pr_ignorable_control.c: Likewise.
39472         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
39473         * tests/unictype/test-pr_lowercase.c: Likewise.
39474         * tests/unictype/test-pr_numeric.c: Likewise.
39475         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
39476         * tests/unictype/test-pr_punctuation.c: Likewise.
39477         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
39478         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
39479         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
39480         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
39481         * tests/unictype/test-pr_uppercase.c: Likewise.
39482         * tests/unictype/test-pr_xid_continue.c: Likewise.
39483         * tests/unictype/test-pr_xid_start.c: Likewise.
39484         * tests/unictype/test-pr_zero_width.c: Likewise.
39485         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
39486         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update for
39487         changed behaviour: line breaking is now disallowed between a letter
39488         or '=' and '('.
39489         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
39490         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
39491         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
39492         * tests/unilbrk/test-ulc-width-linebreaks.c (main): Likewise.
39493         * tests/uniwidth/test-uc_width2.sh: Same updates as in
39494         lib/uniwidth/width.c.
39495         * tests/uninorm/NormalizationTest.txt: Update from Unicode 5.2.0,
39496         without comments, but with the original copyright notice.
39497         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
39498         changes.
39499         * lib/unictype/categ_Cc.h: Likewise.
39500         * lib/unictype/categ_Co.h: Likewise.
39501         * lib/unictype/categ_Cs.h: Likewise.
39502         * lib/unictype/categ_Lt.h: Likewise.
39503         * lib/unictype/categ_Me.h: Likewise.
39504         * lib/unictype/categ_Pc.h: Likewise.
39505         * lib/unictype/categ_Pe.h: Likewise.
39506         * lib/unictype/categ_Pf.h: Likewise.
39507         * lib/unictype/categ_Pi.h: Likewise.
39508         * lib/unictype/categ_Ps.h: Likewise.
39509         * lib/unictype/categ_Sk.h: Likewise.
39510         * lib/unictype/categ_Sm.h: Likewise.
39511         * lib/unictype/categ_Z.h: Likewise.
39512         * lib/unictype/categ_Zl.h: Likewise.
39513         * lib/unictype/categ_Zp.h: Likewise.
39514         * lib/unictype/categ_Zs.h: Likewise.
39515         * lib/unictype/ctype_blank.h: Likewise.
39516         * lib/unictype/ctype_cntrl.h: Likewise.
39517         * lib/unictype/ctype_digit.h: Likewise.
39518         * lib/unictype/ctype_space.h: Likewise.
39519         * lib/unictype/ctype_xdigit.h: Likewise.
39520         * lib/unictype/mirror.h: Likewise.
39521         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
39522         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
39523         * lib/unictype/pr_bidi_block_separator.h: Likewise.
39524         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
39525         * lib/unictype/pr_bidi_common_separator.h: Likewise.
39526         * lib/unictype/pr_bidi_control.h: Likewise.
39527         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
39528         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
39529         * lib/unictype/pr_bidi_pdf.h: Likewise.
39530         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
39531         * lib/unictype/pr_bidi_whitespace.h: Likewise.
39532         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
39533         * lib/unictype/pr_format_control.h: Likewise.
39534         * lib/unictype/pr_hex_digit.h: Likewise.
39535         * lib/unictype/pr_hyphen.h: Likewise.
39536         * lib/unictype/pr_ids_binary_operator.h: Likewise.
39537         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
39538         * lib/unictype/pr_iso_control.h: Likewise.
39539         * lib/unictype/pr_join_control.h: Likewise.
39540         * lib/unictype/pr_left_of_pair.h: Likewise.
39541         * lib/unictype/pr_line_separator.h: Likewise.
39542         * lib/unictype/pr_math.h: Likewise.
39543         * lib/unictype/pr_non_break.h: Likewise.
39544         * lib/unictype/pr_not_a_character.h: Likewise.
39545         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
39546         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
39547         * lib/unictype/pr_other_id_continue.h: Likewise.
39548         * lib/unictype/pr_other_id_start.h: Likewise.
39549         * lib/unictype/pr_other_lowercase.h: Likewise.
39550         * lib/unictype/pr_other_math.h: Likewise.
39551         * lib/unictype/pr_other_uppercase.h: Likewise.
39552         * lib/unictype/pr_paired_punctuation.h: Likewise.
39553         * lib/unictype/pr_paragraph_separator.h: Likewise.
39554         * lib/unictype/pr_pattern_syntax.h: Likewise.
39555         * lib/unictype/pr_pattern_white_space.h: Likewise.
39556         * lib/unictype/pr_private_use.h: Likewise.
39557         * lib/unictype/pr_quotation_mark.h: Likewise.
39558         * lib/unictype/pr_radical.h: Likewise.
39559         * lib/unictype/pr_soft_dotted.h: Likewise.
39560         * lib/unictype/pr_space.h: Likewise.
39561         * lib/unictype/pr_titlecase.h: Likewise.
39562         * lib/unictype/pr_variation_selector.h: Likewise.
39563         * lib/unictype/pr_white_space.h: Likewise.
39564         * lib/unictype/sy_c_ident.h: Likewise.
39565         * lib/unictype/sy_c_whitespace.h: Likewise.
39566         * lib/unictype/sy_java_whitespace.h: Likewise.
39567         * modules/uni*/*: Bump version number of expected libunistring version.
39568         Reported by Simon Josefsson.
39570 2011-01-09  Karl Heuer  <kwzh@gnu.org>
39572         useless-if-before-free: fix typo in --help and make the internal,
39573         automatic version date update process work once again.
39574         --help output contained a NUL character instead of the
39575         backslash-zero that was intended.  Also, the "must lie within
39576         the first 8 lines" line is on line 9, and hence not getting
39577         automatically updated.
39578         * build-aux/useless-if-before-free: Fix the former by adding a
39579         backslash, and the latter by condensing the three lines of what-it-does
39580         to a single line, leaving one line of slack for the future.
39582 2011-01-09  Bruno Haible  <bruno@clisp.org>
39584         uniwidth/width: Fix width of U+1D173..U+1D17A.
39585         * lib/gen-uni-tables.c (is_nonspacing, output_nonspacing_property,
39586         symbolic_width, output_width_property_test): New functions.
39587         (main): Invoke output_nonspacing_property, output_width_property_test.
39588         * lib/uniwidth/width.c (nonspacing_table_data): Set bits for
39589         U+1D173..U+1D17A.
39590         * tests/uniwidth/test-uc_width2.sh: For U+1D173..U+1D17A, expect 0, not
39591         1.
39592         * modules/uniwidth/*: Bump version number of expected libunistring
39593         version.
39594         * modules/unilbrk/*: Likewise.
39596 2011-01-08  Bruno Haible  <bruno@clisp.org>
39598         uninorm tests: Preserve copyright of Unicode data file.
39599         * tests/uninorm/NormalizationTest.txt: Re-add original copyright.
39600         Mention modifications.
39602 2011-01-08  Bruno Haible  <bruno@clisp.org>
39604         gen-uni-tables: Prepare for Unicode 5.2.0.
39605         * lib/gen-uni-tables.c (get_lbp): Allow for more than 32 LBP_* values.
39606         (debug_output_lbp, output_lbp): Update.
39608 2011-01-08  Bruno Haible  <bruno@clisp.org>
39610         unilbrk: Clarify gen-uni-tables.c code.
39611         * lib/gen-uni-tables.c (get_lbp): Assume REVISION_22 to be false. These
39612         were mistakes in UAX #14 revision 22 that are corrected in revision 24.
39613         Clarify what to do with unilbrk/lbrkprop.txt and uniwbrk/wbrkprop.txt.
39615 2011-01-07  Bruno Haible  <bruno@clisp.org>
39617         strtod: Restore errno when successfully parsing Infinity or NaN.
39618         * lib/strtod.c (strtod): After successfully parsing an Infinity or NaN,
39619         restore the original errno.
39621 2011-01-07  Bruno Haible  <bruno@clisp.org>
39623         remove test: Avoid failure on HP-UX 11.
39624         * tests/test-remove.c (main): Allow EEXIST as alternative error code.
39626 2011-01-07  Bruno Haible  <bruno@clisp.org>
39628         mkdir, mkdirat tests: Avoid failure on HP-UX 11.11.
39629         * tests/test-mkdir.h (test_mkdir): Allow EOPNOTSUPP as alternative
39630         error code.
39632 2011-01-07  Pádraig Brady  <P@draigBrady.com>
39634         ignore-value: fixup comments, and add Eric Blake
39635         as an author since he rewrote the macros.
39636         * lib/ignore-value.h (ignore_value):  State that
39637         we now support aggregates.  Also specify exactly
39638         when the GCC warn_unused_result feature was added.
39640 2011-01-06  Eric Blake  <eblake@redhat.com>
39642         ignore-value: support aggregate types
39643         * lib/ignore-value.h (ignore_value): Provide separate gcc
39644         definition.
39645         * modules/ignore-value-tests: New test module.
39646         * tests/test-ignore-value.c: New test.
39648         maint.mk: improve sc_prohibit_strcmp regex
39649         * top/maint.mk (sc_prohibit_strcmp): Detect strcmp()!=0, as
39650         documented.  Also, detect strcmp((expr),expr) == 0.  Exempt the
39651         definition of STRNEQ.
39653         signal: work around Haiku issue with SIGBUS
39654         * lib/siglist.h: Add comment.
39655         * lib/sig2str.c (numname_table): Swap SIGBUS order, to match
39656         strsignal's favoring of SIGSEGV.
39657         * tests/test-signal.c (main): Avoid test failure.
39658         * doc/posix-headers/signal.texi (signal.h): Document the issue.
39659         Reported by Scott McCreary.
39661         maint.mk: add pre-release check to ensure submodule commits are public
39662         * top/maint.mk (public-submodule-commit): New rule.
39663         (submodule-checks): New variable.
39664         (alpha beta stable): Depend on the variable.
39666 2011-01-05  Pádraig Brady  <P@draigBrady.com>
39667         and Jim Meyering  <meyering@redhat.com>
39669         ignore-value: make ignore_value more generic; deprecate ignore_ptr
39670         * lib/ignore-value.h: Include <stdint.h>, for decl of intptr_t.
39671         (ATTRIBUTE_DEPRECATED): Define.
39672         (_ignore_case): New function.
39673         (ignore_value): New macro, to replace the old function.
39674         (ignore_ptr): Arrange for any use to evoke a deprecation warning.
39675         * modules/ignore-value (Depends-on): Add stdint.
39677 2011-01-04  Eric Blake  <eblake@redhat.com>
39679         doc: regenerate INSTALL
39680         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Re-add
39681         @firstparagraphindent support, now that autoconf dropped it.
39682         (INSTALL_PRELUDE): Reinstate old macro.
39683         * doc/install.texi: Resync from autoconf.
39684         * doc/INSTALL: Reflect recent autoconf update.
39685         * doc/INSTALL.ISO: Likewise.
39686         * doc/INSTALL.UTF-8: Likewise.
39687         Reported by Karl Berry.
39689 2011-01-04  Bruce Korb  <address@hidden>
39691         git-version-gen: avoid a sub-shell
39692         * build-aux/git-version-gen: Redirect stderr in `...` via
39693         "exec 2>...", rather than via an added sub-shell.
39695 2011-01-03  Ben Pfaff  <blp@cs.stanford.edu>
39697         git-version-gen: use (...) rather than sh -c '...'
39698         * build-aux/git-version-gen: Rather than hard-coding a shell's name
39699         with "sh -c '...'", just use "(...)".  Less syntax is better, too.
39701 2011-01-03  Jim Meyering  <meyering@redhat.com>
39703         git-version-gen: convert leading TABs to spaces
39704         * build-aux/git-version-gen: Expand leading TABs.
39706         git-version-gen: handle failed "git rev-list"
39707         * build-aux/git-version-gen: Rather than leaking a "fatal" error
39708         from git and proceeding as if it had succeeded but printed no SHA1
39709         checksums, suppress the diagnostic and handle the failure.
39710         Reported by Bruce Korb in http://marc.info/?l=git&m=129399145930450&w=2
39712         git-version-gen: include command name in one more diagnostic
39713         * build-aux/git-version-gen: When the required .tarball-version file
39714         was missing or unreadable, you might see the diagnostic from "cat",
39715         but no trace of the name of the invoking script.  Now, you still see
39716         the diagnostic from cat, but also get one from "git-version-gen: ".
39717         Inspired by a patch from Bruce Korb.
39719         update-copyright: adjust test to match changed code
39720         * tests/test-update-copyright.sh: Change test's expected output
39721         to match new actual output.
39723 2011-01-02  Bruno Haible  <bruno@clisp.org>
39725         getlogin_r: Avoid test failure on HP-UX 11.
39726         * tests/test-getlogin_r.c (main): Allow an error code EINVAL instead of
39727         ERANGE when the second argument is zero.
39728         * doc/posix-functions/getlogin_r.texi: Document the HP-UX 11
39729         portability problem.
39731 2011-01-02  Bruce Korb  <bkorb@gnu.org>
39733         * build-aux/update-copyright: doc Simon's changes
39735 2011-01-02  Simon Josefsson  <simon@josefsson.org>
39737         * build-aux/update-copyright: Support UPDATE_COPYRIGHT_HOLDER
39738         environment variable.
39740 2011-01-02  Bruno Haible  <bruno@clisp.org>
39742         unigbrk: Avoid gcc warnings.
39743         * lib/unigbrk/u16-grapheme-breaks.c (u16_grapheme_breaks): Remove
39744         unused variable.
39745         * lib/unigbrk/u16-grapheme-prev.c (u16_grapheme_prev): Likewise.
39746         * lib/unigbrk/u8-grapheme-prev.c (u8_grapheme_prev): Likewise.
39747         * tests/unigbrk/test-u16-grapheme-breaks.c (main): Likewise.
39748         * tests/unigbrk/test-u32-grapheme-breaks.c (main): Likewise.
39749         * tests/unigbrk/test-u8-grapheme-breaks.c (test_u8_grapheme_breaks):
39750         Change type of first argument to 'const char *'.
39751         (main): Remove unused variable.
39752         * tests/unigbrk/test-u8-grapheme-next.c (test_u8_grapheme_next): Change
39753         type of first argument to 'const char *'.
39754         * tests/unigbrk/test-u8-grapheme-prev.c (test_u8_grapheme_prev):
39755         Likewise.
39756         (main): Change type of variable 's'.
39757         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Cast column number
39758         to 'int'.
39760 2011-01-02  Bruno Haible  <bruno@clisp.org>
39762         pwrite: Fix test whether it works and make it work on HP-UX 11.11.
39763         * m4/pwrite.m4 (gl_FUNC_PWRITE): Use AC_LANG_PROGRAM, not
39764         AC_LANG_SOURCE. Extend the test program to catch another HP-UX 11.11
39765         bug.
39766         * lib/pwrite.c: Undo 2010-12-31 patch.
39767         * doc/posix-functions/pwrite.texi: Document another HP-UX 11.11 bug.
39769 2011-01-02  Bruno Haible  <bruno@clisp.org>
39771         pread: Fix test whether it works.
39772         * m4/pread.m4 (gl_FUNC_PREAD): Use AC_LANG_PROGRAM, not AC_LANG_SOURCE.
39774 2011-01-02  Bruno Haible  <bruno@clisp.org>
39776         Fix detection of traditional Arabic locale on HP-UX, Solaris, Cygwin.
39777         * m4/locale-ar.m4 (gt_LOCALE_AR): Require that the locale encoding name
39778         ends in "6". Don't require a specific month name. Try also the locale
39779         names found on HP-UX 11 and Solaris 7.
39781 2011-01-02  Bruno Haible  <bruno@clisp.org>
39783         tcgetsid: Correct linkage in C++ mode on HP-UX 11.00.
39784         * lib/termios.in.h: In C++ mode, on HP-UX, include <sys/termios.h> with
39785         C linkage.
39786         * doc/posix-functions/tcgetsid.texi: Mention the HP-UX 11.00 bug.
39788 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
39790         Rename uc_is_grapheme_cluster_break() to uc_is_grapheme_break()
39791         for consistency, since the "cluster" term is not used elsewhere.
39792         * lib/unigbrk.in.h: Update name.
39793         * lib/unigbrk/u16-grapheme-breaks.c: Update name.
39794         * lib/unigbrk/u16-grapheme-next.c: Update name.
39795         * lib/unigbrk/u16-grapheme-prev.c: Update name.
39796         * lib/unigbrk/u32-grapheme-breaks.c: Update name.
39797         * lib/unigbrk/u32-grapheme-next.c: Update name.
39798         * lib/unigbrk/u32-grapheme-prev.c: Update name.
39799         * lib/unigbrk/u8-grapheme-breaks.c: Update name.
39800         * lib/unigbrk/u8-grapheme-next.c: Update name.
39801         * lib/unigbrk/u8-grapheme-prev.c: Update name.
39802         * lib/unigbrk/uc-is-grapheme-break.c: Update name.
39803         * tests/unigbrk/test-uc-is-grapheme-break.c: Update name.
39804         Suggested by Bruno Haible.
39806 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
39808         Remove module 'u8-grapheme-len' as too redundant with
39809         'u8-grapheme-next'.
39810         * modules/unigbrk/u8-grapheme-len: Delete file.
39811         * modules/unigbrk/u8-grapheme-len-tests: Delete file.
39812         * lib/unigbrk.in.h: Remove prototype for deleted function.
39813         * lib/unigbrk/u8-grapheme-len.c: Delete file.
39814         * tests/unigbrk/test-u8-grapheme-len.c: Delete file.
39816         Remove module 'u16-grapheme-len' as too redundant with
39817         'u16-grapheme-next'.
39818         * modules/unigbrk/u16-grapheme-len: Delete file.
39819         * modules/unigbrk/u16-grapheme-len-tests: Delete file.
39820         * lib/unigbrk.in.h: Remove prototype for deleted function.
39821         * lib/unigbrk/u16-grapheme-len.c: Delete file.
39822         * tests/unigbrk/test-u16-grapheme-len.c: Delete file.
39824         Remove module 'u32-grapheme-len' as too redundant with
39825         'u32-grapheme-next'.
39826         * modules/unigbrk/u32-grapheme-len: Delete file.
39827         * modules/unigbrk/u32-grapheme-len-tests: Delete file.
39828         * lib/unigbrk.in.h: Remove prototype for deleted function.
39829         * lib/unigbrk/u32-grapheme-len.c: Delete file.
39830         * tests/unigbrk/test-u32-grapheme-len.c: Delete file.
39832         Suggested by Bruno Haible.
39834 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
39836         * unigbrk.in.h: Fix typo: "ben" => "been".
39837         Reported by Bruno Haible.
39839 2011-01-01  Jim Meyering  <meyering@redhat.com>
39841         maint: update almost all copyright ranges to include 2011
39842         Run the new "make update-copyright" rule.
39844 2011-01-01  Jim Meyering  <meyering@redhat.com>
39846         maint: update-copyright: exempt doc/INSTALL*
39847         * Makefile (update-copyright): Also exclude doc/INSTALL*,
39848         since they are generated.  Suggested by Bruno Haible.
39850 2011-01-01  Jim Meyering  <meyering@redhat.com>
39852         maint: refine the update-copyright rule
39853         * Makefile (update-copyright): Also exclude any file that includes
39854         the "GENERATED AUTOMATICALLY" comment, being careful not to exclude
39855         code that merely generates the comment.
39857 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
39859         New module 'u8-grapheme-len'.
39860         * modules/unigbrk/u8-grapheme-len: New file.
39861         * modules/unigbrk/u8-grapheme-len-tests: New file.
39862         * lib/unigbrk.in.h: Add prototype for new function.
39863         * lib/unigbrk/u8-grapheme-len.c: New file.
39864         * tests/unigbrk/test-u8-grapheme-len.c: New file.
39866         New module 'u16-grapheme-len'.
39867         * modules/unigbrk/u16-grapheme-len: New file.
39868         * modules/unigbrk/u16-grapheme-len-tests: New file.
39869         * lib/unigbrk.in.h: Add prototype for new function.
39870         * lib/unigbrk/u16-grapheme-len.c: New file.
39871         * tests/unigbrk/test-u16-grapheme-len.c: New file.
39873         New module 'u32-grapheme-len'.
39874         * modules/unigbrk/u32-grapheme-len: New file.
39875         * modules/unigbrk/u32-grapheme-len-tests: New file.
39876         * lib/unigbrk.in.h: Add prototype for new function.
39877         * lib/unigbrk/u32-grapheme-len.c: New file.
39878         * tests/unigbrk/test-u32-grapheme-len.c: New file.
39880         New module 'u8-grapheme-next'.
39881         * modules/unigbrk/u8-grapheme-next: New file.
39882         * modules/unigbrk/u8-grapheme-next-tests: New file.
39883         * lib/unigbrk.in.h: Add prototype for new function.
39884         * lib/unigbrk/u8-grapheme-next.c: New file.
39885         * tests/unigbrk/test-u8-grapheme-next.c: New file.
39887         New module 'u16-grapheme-next'.
39888         * modules/unigbrk/u16-grapheme-next: New file.
39889         * modules/unigbrk/u16-grapheme-next-tests: New file.
39890         * lib/unigbrk.in.h: Add prototype for new function.
39891         * lib/unigbrk/u16-grapheme-next.c: New file.
39892         * tests/unigbrk/test-u16-grapheme-next.c: New file.
39894         New module 'u32-grapheme-next'.
39895         * modules/unigbrk/u32-grapheme-next: New file.
39896         * modules/unigbrk/u32-grapheme-next-tests: New file.
39897         * lib/unigbrk.in.h: Add prototype for new function.
39898         * lib/unigbrk/u32-grapheme-next.c: New file.
39899         * tests/unigbrk/test-u32-grapheme-next.c: New file.
39901         New module 'u8-grapheme-prev'.
39902         * modules/unigbrk/u8-grapheme-prev: New file.
39903         * modules/unigbrk/u8-grapheme-prev-tests: New file.
39904         * lib/unigbrk.in.h: Add prototype for new function.
39905         * lib/unigbrk/u8-grapheme-prev.c: New file.
39906         * tests/unigbrk/test-u8-grapheme-prev.c: New file.
39908         New module 'u16-grapheme-prev'.
39909         * modules/unigbrk/u16-grapheme-prev: New file.
39910         * modules/unigbrk/u16-grapheme-prev-tests: New file.
39911         * lib/unigbrk.in.h: Add prototype for new function.
39912         * lib/unigbrk/u16-grapheme-prev.c: New file.
39913         * tests/unigbrk/test-u16-grapheme-prev.c: New file.
39915         New module 'u32-grapheme-prev'.
39916         * modules/unigbrk/u32-grapheme-prev: New file.
39917         * modules/unigbrk/u32-grapheme-prev-tests: New file.
39918         * lib/unigbrk.in.h: Add prototype for new function.
39919         * lib/unigbrk/u32-grapheme-prev.c: New file.
39920         * tests/unigbrk/test-u32-grapheme-prev.c: New file.
39922         New module 'u8-grapheme-breaks'.
39923         * modules/unigbrk/u8-grapheme-breaks: New file.
39924         * modules/unigbrk/u8-grapheme-breaks-tests: New file.
39925         * lib/unigbrk.in.h: Add prototype for new function.
39926         * lib/unigbrk/u8-grapheme-breaks.c: New file.
39927         * tests/unigbrk/test-u8-grapheme-breaks.c: New file.
39929         New module 'u16-grapheme-breaks'.
39930         * modules/unigbrk/u16-grapheme-breaks: New file.
39931         * modules/unigbrk/u16-grapheme-breaks-tests: New file.
39932         * lib/unigbrk.in.h: Add prototype for new function.
39933         * lib/unigbrk/u16-grapheme-breaks.c: New file.
39934         * tests/unigbrk/test-u16-grapheme-breaks.c: New file.
39936         New module 'u32-grapheme-breaks'.
39937         * modules/unigbrk/u32-grapheme-breaks: New file.
39938         * modules/unigbrk/u32-grapheme-breaks-tests: New file.
39939         * lib/unigbrk.in.h: Add prototype for new function.
39940         * lib/unigbrk/u32-grapheme-breaks.c: New file.
39941         * tests/unigbrk/test-u32-grapheme-breaks.c: New file.
39943         New module 'ulc-grapheme-breaks'.
39944         * modules/unigbrk/ulc-grapheme-breaks: New file.
39945         * modules/unigbrk/ulc-grapheme-breaks-tests: New file.
39946         * m4/locale-ar.m4: New file.
39947         * lib/unigbrk/ulc-grapheme-breaks.c: New file.
39948         * tests/unigbrk/test-ulc-grapheme-breaks.c: New file.
39949         * tests/unigbrk/test-ulc-grapheme-breaks.sh: New file.
39951 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
39953         gbrkprop: Fix implementation of uc_graphemeclusterbreak_property.
39954         * lib/unigbrk/gbrkprop.h: Regenerate with gen-uni-tables.c.  I had
39955         modified how this file was generated before I initially submitted
39956         the module, but failed to regenerate it.  This meant that several
39957         of the level2 entries were wrong.
39958         * lib/unigbrk/uc-gbrk-prop.h (uc_graphemeclusterbreak_property):
39959         Remove the division-by-2 that is folded into the table now that
39960         gbrkprop.h has been regenerated properly.  Now -1 entries are
39961         handled correctly.
39963         New module 'unigbrk/uc-gbrk-prop-tests'.
39964         * modules/unigbrk/uc-gbrk-prop-tests: New file.
39965         * lib/gen-uni-tables.c: Generate tests/test-uc-gbrk-prop.h.
39966         * tests/unigbrk/test-uc-gbrk-prop.c: New file.
39967         * tests/unigbrk/test-uc-gbrk-prop.h: New file.
39969 2011-01-01  Bruno Haible  <bruno@clisp.org>
39971         Avoid use of hexadecimal escapes.
39972         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Use octal escapes
39973         instead of hexadecimal escapes.
39975 2011-01-01  Jim Meyering  <meyering@redhat.com>
39977         maint: new rule to update copyright year ranges
39978         * Makefile (update-copyright): New rule.
39980         maint: indent with TABs in Makefile
39981         * Makefile: Expand leading sequences of spaces to TABs
39983         version-etc: update the copyright year it reports
39984         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2011.
39986 2010-12-31  Bruno Haible  <bruno@clisp.org>
39988         isfinite: Avoid compiler bug of "cc -O" on HP-UX 11.11.
39989         * lib/isfinite.c (zerof, zerod, zerol): New variables.
39990         (gl_isfinitef, gl_isfinited, gl_isfinitel): Use them instead of literal
39991         zero.
39993 2010-12-31  Bruno Haible  <bruno@clisp.org>
39995         pwrite: Work around HP-UX 11.11 bug.
39996         * m4/pwrite.m4 (gl_FUNC_PWRITE): When pwrite exists, test whether it
39997         works and set REPLACE_PWRITE if not.
39998         * lib/pwrite.c (pwrite): Add an implementation that uses the system
39999         function.
40000         * doc/posix-functions/pwrite.texi: Document the HP-UX 11 bug.
40002 2010-12-31  Bruno Haible  <bruno@clisp.org>
40004         pread: Work around HP-UX 11 bugs.
40005         * m4/pread.m4 (gl_FUNC_PREAD): When pread exists, test whether it works
40006         and set REPLACE_PREAD if not.
40007         * doc/posix-functions/pread.texi: Document the HP-UX 11 bugs.
40009 2010-12-31  Eric Blake  <eblake@redhat.com>
40011         nl_langinfo: fix YESEXPR on Irix 6.5
40012         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Test for Irix bug.
40013         * lib/nl_langinfo.c (rpl_nl_langinfo): Work around it.
40014         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Document
40015         it.
40017 2010-12-31  Bruno Haible  <bruno@clisp.org>
40019         iconv: Document HP-UX 11 bug.
40020         * doc/posix-functions/iconv.texi: Document HP-UX 11 return value bug.
40022 2010-12-31  Bruno Haible  <bruno@clisp.org>
40024         ldexpl: Fix link error on HP-UX 11.
40025         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When replacing ldexpl, set
40026         LDEXPL_LIBM, using $ISNANL_LIBM.
40028 2010-12-31  Eric Blake  <eblake@redhat.com>
40030         ftello: avoid compilation failure with SunStudio c89
40031         * lib/ftello.c (ftello): Use lseek, not llseek.
40033         tests: avoid failing coreutils tests on cygwin
40034         * tests/init.sh (find_exe_basenames_): Exempt [.exe.
40035         (create_exe_shims_): Return 0 when skipping.
40037 2010-12-31  Bruno Haible  <bruno@clisp.org>
40039         sys_select: Avoid warning about missing memset declaration on HP-UX 11.
40040         * lib/sys_select.in.h: On HP-UX, include also <string.h>.
40042 2010-12-31  Bruno Haible  <bruno@clisp.org>
40044         waitpid: Fix link error in C++ mode.
40045         * lib/sys_wait.in.h: Remove extern "C" { ... } group.
40047 2010-12-31  Bruno Haible  <bruno@clisp.org>
40049         isnan: Use GCC built-ins when possible.
40050         * lib/math.in.h (gl_isnan_f): Use __builtin_isnanf instead of
40051         __builtin_isnan.
40052         (gl_isnan_l): Use __builtin_isnanl instead of __builtin_isnan.
40053         (isnan): Define using GCC built-ins for GCC >= 4.0.
40055 2010-12-31  Bruno Haible  <bruno@clisp.org>
40057         isnand: Fix mistake.
40058         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM): Use __builtin_isnan, not
40059         __builtin_isnand.
40061 2010-12-31  Bruno Haible  <bruno@clisp.org>
40063         open: Avoid C++ error on HP-UX 11.
40064         * lib/fcntl.in.h (open): Disable _GL_CXXALIASWARN invocation on HP-UX.
40066 2010-12-31  Bruno Haible  <bruno@clisp.org>
40068         time_r: Add missing declarations on HP-UX 11.
40069         * lib/time.in.h (localtime_r, gmtime_r): Test HAVE_DECL_LOCALTIME_R
40070         instead of HAVE_LOCALTIME_R.
40071         * m4/time_r.m4 (gl_TIME_R): Test whether localtime_r is declared. Set
40072         HAVE_LOCALTIME_R always.
40073         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize
40074         HAVE_DECL_LOCALTIME_R, not HAVE_LOCALTIME_R.
40075         * modules/time (Makefile.am): Substitute HAVE_DECL_LOCALTIME_R, not
40076         HAVE_LOCALTIME_R.
40077         * doc/posix-functions/gmtime_r.texi: Document the HP-UX 11 problem.
40078         * doc/posix-functions/localtime_r.texi: Likewise.
40080 2010-12-29  Eric Blake  <eblake@redhat.com>
40082         mountlist: tweak previous commit
40083         * lib/mountlist.c (me_remote): Guarantee trailing backslash.
40084         Reported by Paul Eggert.
40086         mountlist: fix local drive detection on cygwin
40087         * lib/mountlist.c (ME_REMOTE) [__CYGWIN__]: Provide implementation
40088         that works for cygwin.
40090 2010-12-29  Paul Eggert  <eggert@cs.ucla.edu>
40092         ftoastr, snprintf: ftoastr + snprintf module
40093         * lib/ftoastr.c: Use GNULIB_SNPRINTF, not GNULIB_SNPRINTF_POSIX,
40094         since the snprintf module now should be good enough here.
40095         * modules/snprintf (configure.ac): Add gl_MODULE_INDICATOR([snprintf]).
40096         It seems odd to have both gl_STDIO_MODULE_INDICATOR([snprintf])
40097         and gl_MODULE_INDICATOR([snprintf]), but the former enables
40098         GNULIB_SNPRINTF only for the test directory, and the latter
40099         doesn't arrange for gl_STDIO_H_DEFAULTS to be called, so neither
40100         seems to suffice by itself.
40102 2010-12-28  Paul Eggert  <eggert@cs.ucla.edu>
40104         alloca: one step towards thread-safety
40105         * lib/alloca.c (find_stack_direction): New arg PTR, to avoid the
40106         need for a static variable.  All callers changed.  This does not
40107         make the alloca replacement thread-safe, but it's one step.
40109         tests: minor indenting change
40110         * tests/init.sh: Sync from coreutils housekeeping patch
40111         <http://lists.gnu.org/archive/html/coreutils/2010-12/msg00116.html>
40112         to keep lines within 80 columns.
40114 2010-12-28  Jim Meyering  <meyering@redhat.com>
40116         regex: don't infloop on persistent failing calloc
40117         * lib/regexec.c (build_trtable): Return failure indication upon
40118         calloc failure.  Otherwise, re_search_internal could infloop on OOM.
40119         In glibc, this was fixed for version 2.13:
40120         http://sourceware.org/bugzilla/show_bug.cgi?id=12348
40122 2010-12-28  Bruno Haible  <bruno@clisp.org>
40123             Paul Eggert <eggert@cs.ucla.edu>
40125         linkat: Make implementation robust against system behaviour variations.
40126         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Define
40127         LINK_FOLLOWS_SYMLINKS to -1 if it needs a runtime test in the Solaris
40128         way, and to -2 if it needs a generic runtime test.
40129         * lib/linkat.c (solaris_optimized_link_immediate,
40130         solaris_optimized_link_follow): New functions.
40131         * tests/test-linkat.c (EXPECT_LINK_HARDLINKS_SYMLINKS): New macro.
40132         (check_same_link): Use it.
40134 2010-12-26  Ben Pfaff  <blp@cs.stanford.edu>
40136         New module 'unigbrk/base'.
40137         * modules/unigbrk/base: New file.
40138         * lib/unigbrk.in.h: New file.
40140         New module 'unigbrk/uc-gbrk-prop'.
40141         * lib/gen-uni-tables.c: Generate lib/unigbrk/gbrkprop.h.
40142         * modules/unigbrk/uc-gbrk-prop: New file.
40143         * lib/unigbrk/gbrkprop.h: New file.
40144         * lib/unigbrk/uc-gbrk-prop.c: New file.
40146         New module 'unigbrk/uc-is-grapheme-break'.
40147         * modules/unigbrk/uc-is-grapheme-break: New file.
40148         * modules/unigbrk/uc-is-grapheme-break-tests: New file.
40149         * lib/unigbrk/uc-is-grapheme-break.c: New file.
40150         * tests/unigbrk/test-uc-is-grapheme-break.c: New file.
40151         * tests/unigbrk/test-uc-is-grapheme-break.sh: New file.
40152         * tests/unigbrk/GraphemeBreakTest.txt: New file.
40154         With corrections and tweaks by Bruno Haible <bruno@clisp.org>.
40156 2010-12-27  Bruno Haible  <bruno@clisp.org>
40158         linkat test: Avoid failure on Solaris 11 2010-11.
40159         * tests/test-linkat.c (main): Allow ENOTDIR as alternative error code.
40161 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
40163         utimens: work around glibc rounding bug on more platforms
40164         * lib/utimens.c (fdutimens): Work around rounding bug even if
40165         HAVE_WORKING_UTIMES.  Reported for Linux 2.4.21 by Bruno Haible in
40166         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00298.html>.
40168 2010-12-27  Bruno Haible  <bruno@clisp.org>
40170         select tests: Improve comments.
40171         * tests/test-select.c (do_select): Add comments.
40173 2010-12-27  Bruno Haible  <bruno@clisp.org>
40175         select tests: Safer way of handling timeout.
40176         * tests/test-select.c (do_select_nowait): Zero-initialize the timeout
40177         at every invocation.
40179 2010-12-27  Bruno Haible  <bruno@clisp.org>
40181         select tests: Use 'bool' where appropriate.
40182         * tests/test-select.c (connect_to_socket): Change argument type to
40183         'bool'.
40185 2010-12-27  Bruno Haible  <bruno@clisp.org>
40187         select tests: Use existing modules.
40188         * modules/select-tests (Depends-on): Add pipe-posix, unistd.
40189         (configure.ac): Don't test for unistd.h.
40190         * tests/test-select.c: Include <unistd.h> always. Use pipe() as
40191         declared in <unistd.h>.
40193 2010-12-27  Bruno Haible  <bruno@clisp.org>
40195         mbrtowc: Work around a Solaris 7 bug.
40196         * m4/mbrtowc.m4 (gl_MBRTOWC_NULL_ARG1): New macro.
40197         (gl_MBRTOWC_NULL_ARG2): Renamed from gl_MBRTOWC_NULL_ARG.
40198         (gl_FUNC_MBRTOWC): Update. Define MBRTOWC_NULL_ARG2_BUG instead of
40199         MBRTOWC_NULL_ARG_BUG. Invoke gl_MBRTOWC_NULL_ARG1 and define
40200         MBRTOWC_NULL_ARG1_BUG.
40201         * lib/mbrtowc.c (rpl_mbrtowc): Use MBRTOWC_NULL_ARG2_BUG instead of
40202         MBRTOWC_NULL_ARG_BUG. Handle MBRTOWC_NULL_ARG1_BUG.
40203         * tests/test-mbrtowc.c (main): Test support of a NULL first argument.
40204         * doc/posix-functions/mbrtowc.texi: Mention the Solaris 7 bug.
40206 2010-12-27  Jim Meyering  <meyering@redhat.com>
40208         read-file.c: tweak syntax
40209         * lib/read-file.c (fread_file): Remove space after "*" in function
40210         definitions.
40212 2010-12-27  Bruno Haible  <bruno@clisp.org>
40214         times test: Avoid gcc warnings on OSF/1.
40215         * tests/test-times.c (main): Cast printf arguments from clock_t to
40216         'long int'.
40218 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
40220         utimens: work around glibc rounding bug on older Linux kernels
40221         * lib/utimens.c (fdutimens): If invoking futimesat or futimes
40222         on Linux with a glibc whose utimes might not work, then work
40223         around a longstanding glibc bug involving rounding rather than
40224         truncated time stamps.  Reported for Linux 2.4.21 by Bruno Haible in
40225         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
40227 2010-12-26  Bruno Haible  <bruno@clisp.org>
40229         inet_ntop: Hide mismatch of declaration on NonStop Kernel.
40230         * lib/arpa_inet.in.h (inet_ntop): Use _GL_CXXALIAS_SYS_CAST instead of
40231         _GL_CXXALIAS_SYS.
40232         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
40234 2010-12-26  Bruno Haible  <bruno@clisp.org>
40236         inet_ntop, inet_pton: Ensure declaration on NonStop Kernel.
40237         * lib/arpa_inet.in.h: On NonStop Kernel, include also <netdb.h>.
40238         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
40239         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Include also <netdb.h> when
40240         looking for the declaration.
40241         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
40242         * doc/posix-functions/inet_ntop.texi: Document the NonStop Kernel
40243         problem.
40244         * doc/posix-functions/inet_pton.texi: Likewise.
40246 2010-12-26  Bruno Haible  <bruno@clisp.org>
40248         arpa_inet: Use the common idioms with C++ support.
40249         * lib/arpa_inet.in.h: Include c++defs.h.
40250         (inet_ntop, inet_pton): Declare using the macros with C++ namespace
40251         support.
40252         * modules/arpa_inet (Depends-on): Add c++defs.
40253         (Makefile.am): Substitute the contents of c++defs.h.
40254         * modules/arpa_inet-tests (Depends-on): Add arpa_inet-c++-tests.
40255         * modules/arpa_inet-c++-tests: New file.
40256         * tests/test-arpa_inet-c++.cc: New file.
40258 2010-12-25  Bruno Haible  <bruno@clisp.org>
40260         Fix more C++ link errors on Solaris 8.
40261         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Add
40262         $(LIB_EACCESS).
40263         * modules/stdio-c++-tests (test_stdio_c___LDADD): Likewise.
40264         * modules/stdlib-c++-tests (test_stdlib_c___LDADD): Likewise.
40265         * modules/sys_ioctl-c++-tests (test_sys_ioctl_c___LDADD): Likewise.
40266         * modules/wchar-c++-tests (test_wchar_c___LDADD): Likewise.
40267         * modules/wctype-c++-tests (test_wctype_c___LDADD): Likewise.
40269 2010-12-25  Bruno Haible  <bruno@clisp.org>
40271         printf-posix: Fix link error when a non-GCC compiler is used.
40272         * lib/stdio.in.h (printf): When not using GCC, override printf
40273         correctly.
40274         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
40276 2010-12-25  Bruno Haible  <bruno@clisp.org>
40278         strerror_r-posix: Update doc.
40279         * doc/posix-functions/strerror_r.texi: Update doc about the return
40280         value. See <http://sources.redhat.com/bugzilla/show_bug.cgi?id=12204>.
40282 2010-12-25  Paul Eggert  <eggert@cs.ucla.edu>
40284         utimens: simplify the logic of the previous change
40285         * m4/utimes.m4 (gl_FUNC_UTIMES): Simplify the logic a bit.
40286         This should not affect whether the test succeeds or fails.
40288         utimens: configure better on hosts with NFS clock skew
40289         * m4/utimes.m4 (gl_FUNC_UTIMES): Don't assume that utimes (f, NULL)
40290         uses the clock of the local host.  It might use the clock of the
40291         NFS server.  Reported for Linux 2.4.21 client by Bruno Haible in
40292         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
40294 2010-12-25  Bruno Haible  <bruno@clisp.org>
40296         ptsname test: Avoid failure on Solaris.
40297         * tests/test-ptsname.c (main): For Solaris, use the recommended way to
40298         open a pseudo-terminal; don't use BSD-style ptys.
40299         * doc/posix-functions/ptsname.texi: Document the limitation on Solaris.
40301 2010-12-25  Bruno Haible  <bruno@clisp.org>
40303         ptsname: Avoid ERANGE failure on some systems.
40304         * lib/ptsname.c (buffer): Increase size.
40306 2010-12-25  Bruno Haible  <bruno@clisp.org>
40308         rename, renameat: Avoid test failures at NFS mounted locations.
40309         * tests/test-rename.h (assert_nonexistent): Remove the old directory,
40310         so that subsequent mkdir calls succeed.
40312 2010-12-25  Bruno Haible  <bruno@clisp.org>
40314         iswblank: Fix C++ link error on Solaris 8.
40315         * lib/wctype.in.h (iswblank): Declare using _GL_FUNCDECL_RPL or
40316         _GL_FUNCDECL_SYS.
40318 2010-12-25  Bruno Haible  <bruno@clisp.org>
40320         unistd: Fix C++ link error on Solaris 8.
40321         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add $(LIB_EACCESS).
40323 2010-12-25  Bruno Haible  <bruno@clisp.org>
40325         readlink doc: Mention an old glibc bug.
40326         * doc/posix-functions/readlink.texi: Mention glibc 2.4 bug (BZ #2450).
40328 2010-12-25  Bruno Haible  <bruno@clisp.org>
40330         fcntl-h: Fix for use of C++ on glibc systems.
40331         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
40332         also on glibc systems in C++ mode.
40333         Reported by Gary V. Vaughan <gary@gnu.org>.
40335 2010-12-25  Bruno Haible  <bruno@clisp.org>
40337         roundl-ieee: Make it work on OSF/1 5.1 with cc.
40338         * modules/roundl-ieee (Depends-on): Add floorl-ieee, ceill-ieee.
40340 2010-12-25  Bruno Haible  <bruno@clisp.org>
40342         truncl-ieee: Make it work on OSF/1 5.1 with cc.
40343         * doc/posix-functions/truncl.texi: Mention the OSF/1 5.1 bug.
40344         * m4/truncl.m4 (gl_FUNC_TRUNCL): If gl_FUNC_TRUNCL_IEEE is also used,
40345         test whether truncl works according to ISO C 99 with IEC 60559.
40346         * m4/truncl-ieee.m4: New file.
40347         * modules/truncl-ieee (Files): Add it and m4/minus-zero.m4,
40348         m4/signbit.m4.
40349         (configure.ac): Invoke gl_FUNC_TRUNCL_IEEE.
40351 2010-12-25  Bruno Haible  <bruno@clisp.org>
40353         ceill-ieee: Make it work on OSF/1 5.1 with cc.
40354         * doc/posix-functions/ceill.texi: Mention the OSF/1 5.1 bug.
40355         * m4/ceill.m4 (gl_FUNC_CEILL): If gl_FUNC_CEILL_IEEE is also used,
40356         test whether ceill works according to ISO C 99 with IEC 60559.
40357         * m4/ceill-ieee.m4: New file.
40358         * modules/ceill-ieee (Files): Add it and m4/minus-zero.m4,
40359         m4/signbit.m4.
40360         (configure.ac): Invoke gl_FUNC_CEILL_IEEE.
40362 2010-12-25  Bruno Haible  <bruno@clisp.org>
40364         Ensure all prerequisites of <wchar.h> are included.
40365         * m4/btowc.m4 (gl_FUNC_BTOWC): Include <stddef.h>, <stdio.h>, <time.h>
40366         before <wchar.h>.
40367         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
40368         gl_MBRLEN_NUL_RETVAL): Likewise.
40369         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
40370         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL,
40371         AC_FUNC_MBRTOWC): Likewise.
40372         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
40373         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
40374         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
40375         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
40376         Likewise.
40377         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
40378         * m4/wchar_h.m4 (gl_WCHAR_H_INLINE_OK): Likewise.
40379         (gl_WCHAR_H): Improve comments.
40380         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
40382 2010-12-25  Bruno Haible  <bruno@clisp.org>
40384         strtok_r: Fix C syntax error in autoconf macro.
40385         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't use UTF-8 encoded U+00A0
40386         characters in test program.
40388 2010-12-24  Bruno Haible  <bruno@clisp.org>
40390         ceil, trunc, round: Fix gcc warnings.
40391         * lib/ceil.c (MIN): Undefine before redefining.
40392         * lib/trunc.c (MIN): Likewise.
40393         * lib/round.c (MIN): Likewise.
40394         Include <math.h> first.
40396 2010-12-24  Bruno Haible  <bruno@clisp.org>
40398         select tests: Avoid failures on OSF/1 5.1.
40399         * tests/test-select.c (test_accept_first, test_socket_pair): Ignore
40400         failure of closing the last socket; it may fail with ECONNRESET.
40402 2010-12-24  Eric Blake  <eblake@redhat.com>
40404         stdint: avoid HP-UX 10.20 preprocessor bug
40405         * lib/stdint.in.h (INT64_MAX, UINT64_MAX): Check via #ifdef rather
40406         than #if.
40407         * tests/test-floor2.c (main): Likewise.
40408         Reported by Peter O'Gorman.
40410         pipe: make obsoletion transition easier
40411         * lib/pipe.h: Restore file as thin shim around "spawn-pipe.h".
40412         * modules/pipe (Files): Include revived file.
40413         (Include): Drop reference, to mirror getdate's behavior.
40415 2010-12-24  Bruno Haible  <bruno@clisp.org>
40417         sys_socket: Hide mismatch of declarations on NonStop Kernel.
40418         * lib/sys_socket.in.h (connect, bind, sendto, setsockopt): Use
40419         _GL_CXXALIAS_SYS_CAST instead of _GL_CXXALIAS_SYS.
40420         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
40422 2010-12-24  Bruno Haible  <bruno@clisp.org>
40424         gethostname: Ensure declaration on NonStop Kernel.
40425         * lib/unistd.in.h: Include <netdb.h> also on NonStop Kernel systems.
40426         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
40428 2010-12-24  Bruno Haible  <bruno@clisp.org>
40430         sys_select: Ensure all necessary types on NonStop Kernel.
40431         * lib/sys_select.in.h: If the system does not have <sys/select.h>,
40432         include <sys/time.h>.
40433         * doc/posix-headers/sys_select.texi: Mention that it's missing on
40434         NonStop Kernel.
40435         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
40437 2010-12-24  Bruno Haible  <bruno@clisp.org>
40439         sys_select: Remove unneeded include.
40440         * lib/sys_select.in.h: Don't include <sys/socket.h> on platforms that
40441         have <sys/select.h>.
40443 2010-12-24  Bruno Haible  <bruno@clisp.org>
40445         gethostname: Provide a fallback for HOST_NAME_MAX.
40446         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): When neither HOST_NAME_MAX
40447         nor MAXHOSTNAMELEN is found in the usual system headers, use 256
40448         instead.
40449         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
40451 2010-12-24  Bruno Haible  <bruno@clisp.org>
40453         sigaction tests: Allow missing SA_RESETHAND and SA_RESTART.
40454         * tests/test-sigaction.c (SA_RESETHAND): Fall back to 0.
40455         (SA_RESTART): Likewise.
40456         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
40458 2010-12-24  Bruno Haible  <bruno@clisp.org>
40460         signal: Define NSIG.
40461         * lib/signal.in.h (NSIG): Define to 32 on NonStop Kernel.
40462         * tests/test-signal.c (nsig): New variable.
40463         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
40465 2010-12-24  Bruno Haible  <bruno@clisp.org>
40467         rename, renameat: Avoid test failures on OSF/1 5.1.
40468         * tests/test-rename.h (test_rename): Allow EEXIST and ENOTDIR as
40469         alternative error codes.
40470         * tests/test-renameat.c (main): Likewise.
40472 2010-12-24  Bruno Haible  <bruno@clisp.org>
40474         *printf: Detect large precisions bug on Solaris 10/SPARC.
40475         * m4/printf.m4 (gl_PRINTF_PRECISION): Add one more test code, provided
40476         by Paul Eggert.
40477         * tests/test-snprintf-posix.h (test_function): Add this test code here
40478         too.
40479         * tests/test-sprintf-posix.h (test_function): Likewise.
40480         * tests/test-vasnprintf-posix.c (test_function): Likewise.
40481         * tests/test-vasprintf-posix.c (test_function): Likewise.
40482         * doc/posix-functions/fprintf.texi: Mention Solaris 10 bug as worked
40483         around by gnulib.
40484         * doc/posix-functions/printf.texi: Likewise.
40485         * doc/posix-functions/snprintf.texi: Likewise.
40486         * doc/posix-functions/sprintf.texi: Likewise.
40487         * doc/posix-functions/vfprintf.texi: Likewise.
40488         * doc/posix-functions/vprintf.texi: Likewise.
40489         * doc/posix-functions/vsnprintf.texi: Likewise.
40490         * doc/posix-functions/vsprintf.texi: Likewise.
40491         * doc/posix-functions/dprintf.texi: Undo last commit.
40492         * doc/posix-functions/vdprintf.texi: Likewise.
40494 2010-12-23  Paul Eggert  <eggert@cs.ucla.edu>
40496         tests: port test-fdutimensat.c to Solaris 8
40497         * tests/test-fdutimensat.c (do_fdutimens): Don't assume
40498         fdutimensat works with a nonnegative fd and AT_SYMLINK_NOFOLLOW.
40499         On Solaris 8, it fails with errno == ENOSYS, because there is no
40500         futimens (so it can't use the fd), and there is no lutimens (so it
40501         can't implement AT_SYMLINK_NOFOLLOW on symlinks).
40503         vsnprintf: make more consistent with snprintf; doc fixes
40505         * doc/posix-functions/snprintf.texi (snprintf): The workaround for
40506         the byte count return problem was promoted from the snprintf-posix
40507         to the snprintf module.
40508         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
40509         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Also check
40510         gl_SNPRINTF_RETVAL_C99, for consistency with gl_FUNC_SNPRINTF.
40511         * tests/test-snprintf.c (main): Check the byte count returned.
40512         * tests/test-vsnprintf.c (main): Likewise.
40514 2010-12-23  Eric Blake  <eblake@redhat.com>
40516         sigpipe: relax to LGPLv2+, since it did not have any LGPLv3+ parts
40517         * modules/sigpipe (License): Relax license.
40519 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
40521         doc: document Solaris printf bug with large float precisions
40522         * doc/posix-functions/dprintf.texi (dprintf):
40523         * doc/posix-functions/fprintf.texi (fprintf):
40524         * doc/posix-functions/printf.texi (printf):
40525         * doc/posix-functions/snprintf.texi (snprintf):
40526         * doc/posix-functions/sprintf.texi (sprintf):
40527         * doc/posix-functions/vdprintf.texi (vdprintf):
40528         * doc/posix-functions/vfprintf.texi (vfprintf):
40529         * doc/posix-functions/vprintf.texi (vprintf):
40530         * doc/posix-functions/vsnprintf.texi (vsnprintf):
40531         * doc/posix-functions/vsprintf.texi (vsprintf):
40532         Mention that these functions mishandle large floating point
40533         precisions on Solaris 10.  The same bug is also present in Solaris
40534         8, and I assume earlier.  This causes "cd gnulib-tests; make
40535         check" to fail on Solaris 8 (and I assume, later) when building
40536         the latest coreutils, in test-vasprintf-posix's call to
40537         my_asprintf (&result, "%.4000f %d", 1.0, 99).  I have not checked
40538         the wide flavors (e.g., wprintf) so this patch just updates the
40539         documentation for the narrow ones.
40541         test-posixtm.c: add two tests
40542         * tests/test-posixtm.c: Add two tests, to highlight the
40543         bug in Solaris 10 (and earlier) localtime.  Gnulib doesn't work
40544         around this bug; this is merely to document it.
40546 2010-12-22  Bruno Haible  <bruno@clisp.org>
40548         getlogin_r: Work around portability problem on OSF/1.
40549         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Detect the OSF/1 problem.
40550         * lib/unistd.in.h (getlogin_r): Replace if REPLACE_GETLOGIN_R is set.
40551         * lib/getlogin_r.c (getlogin_r): When getlogin_r exists, invoke it and
40552         test for a truncated result.
40553         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_GETLOGIN_R.
40554         * modules/unistd (Makefile.am): Substitute REPLACE_GETLOGIN_R.
40555         * modules/getlogin_r (Depends-on): Add memchr.
40556         * doc/posix-functions/getlogin_r.texi: Mention the OSF/1 problem.
40558 2010-12-22  Bruno Haible  <bruno@clisp.org>
40560         ptsname: Avoid test failure on OSF/1 5.1.
40561         * modules/ptsname-tests (Depends-on): Add 'same-inode'.
40562         * tests/test-ptsname.c: Include <sys/stat.h>, same-inode.h.
40563         (same_slave): New function.
40564         (main): Use it to compare ptsname's result with the expected file name.
40566 2010-12-22  Bruno Haible  <bruno@clisp.org>
40568         Port extended stdio modules to HP NonStop Kernel.
40569         * lib/stdio-impl.h (_IOERR, _IOREAD, _IOWRT, _IORW) [__TANDEM]: New
40570         macros.
40571         * lib/fbufmode.c: Update comments.
40572         * lib/fflush.c: Likewise.
40573         * lib/fpurge.c: Likewise.
40574         * lib/freadable.c: Likewise.
40575         * lib/freadahead.c: Likewise.
40576         * lib/freading.c: Likewise.
40577         * lib/freadptr.c: Likewise.
40578         * lib/freadseek.c: Likewise.
40579         * lib/fseeko.c: Likewise.
40580         * lib/fseterr.c: Likewise.
40581         * lib/fwritable.c: Likewise.
40582         * lib/fwriting.c: Likewise.
40583         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
40585 2010-12-22  Bruno Haible  <bruno@clisp.org>
40587         ttyname_r: Work around bug on OSF/1 5.1.
40588         * doc/posix-functions/ttyname_r.texi: Mention the OSF/1 bug.
40589         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Detect the OSF/1 bug. Say "no"
40590         instead of "guessing no" when the OSF/1 bug or the Solaris bug is
40591         present.
40592         * lib/ttyname_r.c (ttyname_r): Update comments.
40594 2010-12-22  Bruno Haible  <bruno@clisp.org>
40596         round: Implement result sign according to IEEE 754.
40597         * lib/round.c (MIN, MINUS_ZERO): New macros.
40598         (FLOOR_FREE_ROUND): Return -0.0 for -0.5 < x < 0.
40599         * tests/test-roundf-ieee.c (main): Test also values between -1 and 1.
40600         * tests/test-round-ieee.c (main): Likewise.
40601         * tests/test-roundl-ieee.c (main): Likewise.
40603         trunc: Implement result sign according to IEEE 754.
40604         * lib/trunc.c (MIN, MINUS_ZERO): New macros.
40605         (FUNC): Return +0.0 for 0 < x < 1 and -0.0 for -1 < x < 0.
40606         * tests/test-trunc2.c: Include minus-zero.h.
40607         (MINUS_ZERO): New macro.
40608         (trunc_reference): Keep in sync with lib/trunc.c.
40609         * tests/test-truncf2.c: Include minus-zero.h.
40610         (MINUS_ZERO): New macro.
40611         (truncf_reference): Keep in sync with lib/trunc.c.
40612         * tests/test-truncf-ieee.c (main): Test also values between -1 and 1.
40613         * tests/test-trunc-ieee.c (main): Likewise.
40614         * tests/test-truncl-ieee.c (main): Likewise.
40616         ceil: Implement result sign according to IEEE 754.
40617         * lib/ceil.c (MIN, MINUS_ZERO): New macros.
40618         (FUNC): Return -0.0 for -1 < x < 0.
40619         * tests/test-ceil2.c: Include minus-zero.h.
40620         (MINUS_ZERO): New macro.
40621         (ceil_reference): Keep in sync with lib/ceil.c.
40622         * tests/test-ceilf2.c: Include minus-zero.h.
40623         (MINUS_ZERO): New macro.
40624         (ceilf_reference): Keep in sync with lib/ceil.c.
40625         * tests/test-ceilf-ieee.c (main): Test also values between -1 and 1.
40626         * tests/test-ceil-ieee.c (main): Likewise.
40627         * tests/test-ceill-ieee.c (main): Likewise.
40629         floor: Implement result sign according to IEEE 754.
40630         * lib/floor.c (FUNC): Return +0.0 for 0 < x < 1.
40631         * tests/test-floor2.c (floor_reference): Keep in sync with lib/floor.c.
40632         * tests/test-floorf2.c (floorf_reference): Likewise.
40633         * tests/test-floorf-ieee.c (main): Test also values between -1 and 1.
40634         * tests/test-floor-ieee.c (main): Likewise.
40635         * tests/test-floorl-ieee.c (main): Likewise.
40637 2010-12-22  Bruno Haible  <bruno@clisp.org>
40639         getaddrinfo: Update doc.
40640         * doc/posix-functions/gai_strerror.texi: Return type is also different
40641         on AIX and HP-UX.
40643 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
40645         getaddrinfo, inet_ntop: Update doc for Solaris.
40646         * doc/posix-functions/gai_strerror.texi: Return type is also an
40647         issue on Solaris 9 and earlier.
40648         * doc/posix-functions/inet_ntop.texi: 4th arg type is also an issue
40649         on Solaris 10 and earlier.
40651 2010-12-21  Bruno Haible  <bruno@clisp.org>
40653         New module 'roundl-ieee'.
40654         * modules/roundl-ieee: New file.
40655         * m4/roundl.m4 (gl_FUNC_ROUNDL): If gl_FUNC_ROUNDL_IEEE is also used,
40656         test whether roundl works according to ISO C 99 with IEC 60559.
40657         * m4/roundl-ieee.m4: New file.
40658         * modules/roundl-ieee-tests: New file.
40659         * tests/test-roundl-ieee.c: New file, based on tests/test-roundl.c.
40660         * tests/test-roundl.c (main): Remove signbit tests.
40661         * modules/roundl-tests (Depends-on): Remove signbit.
40662         * doc/posix-functions/roundl.texi: Mention the new module.
40664 2010-12-21  Bruno Haible  <bruno@clisp.org>
40666         New module 'truncl-ieee'.
40667         * modules/truncl-ieee: New file.
40668         * modules/truncl-ieee-tests: New file.
40669         * tests/test-truncl-ieee.c: New file, based on tests/test-truncl.c.
40670         * tests/test-truncl.c (main): Remove signbit tests.
40671         * modules/truncl-tests (Depends-on): Remove signbit.
40672         * doc/posix-functions/truncl.texi: Mention the new module.
40674 2010-12-21  Bruno Haible  <bruno@clisp.org>
40676         New module 'ceill-ieee'.
40677         * modules/ceill-ieee: New file.
40678         * modules/ceill-ieee-tests: New file.
40679         * tests/test-ceill-ieee.c: New file, based on tests/test-ceill.c.
40680         * tests/test-ceill.c (main): Remove signbit tests.
40681         * modules/ceill-tests (Depends-on): Remove signbit.
40682         * doc/posix-functions/ceill.texi: Mention the new module.
40684 2010-12-21  Bruno Haible  <bruno@clisp.org>
40686         New module 'floorl-ieee'.
40687         * modules/floorl-ieee: New file.
40688         * modules/floorl-ieee-tests: New file.
40689         * tests/test-floorl-ieee.c: New file, based on tests/test-floorl.c.
40690         * tests/test-floorl.c (main): Remove signbit tests.
40691         * modules/floorl-tests (Depends-on): Remove signbit.
40692         * doc/posix-functions/floorl.texi: Mention the new module.
40694 2010-12-21  Bruno Haible  <bruno@clisp.org>
40696         New module 'round-ieee'.
40697         * modules/round-ieee: New file.
40698         * m4/round.m4 (gl_FUNC_ROUND): If gl_FUNC_ROUND_IEEE is also used, test
40699         whether round works according to ISO C 99 with IEC 60559.
40700         * m4/round-ieee.m4: New file.
40701         * modules/round-ieee-tests: New file.
40702         * tests/test-round-ieee.c: New file, based on tests/test-roundf-ieee.c.
40703         * tests/test-round1.c (main): Remove signbit tests.
40704         * modules/round-tests (Depends-on): Remove 'signbit'.
40705         * doc/posix-functions/round.texi: Mention the new module.
40707 2010-12-21  Bruno Haible  <bruno@clisp.org>
40709         New module 'trunc-ieee'.
40710         * modules/trunc-ieee: New file.
40711         * m4/trunc.m4 (gl_FUNC_TRUNC): If gl_FUNC_TRUNC_IEEE is also used, test
40712         whether trunc works according to ISO C 99 with IEC 60559.
40713         * m4/trunc-ieee.m4: New file.
40714         * lib/math.in.h (trunc): Replace if REPLACE_TRUNC is set.
40715         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNC.
40716         * modules/math (Makefile.am): Substitute REPLACE_TRUNC.
40717         * modules/trunc-ieee-tests: New file.
40718         * tests/test-trunc-ieee.c: New file, based on tests/test-truncf-ieee.c.
40719         * tests/test-trunc1.c (main): Remove signbit tests.
40720         * modules/trunc-tests (Depends-on): Remove 'signbit'.
40721         * doc/posix-functions/trunc.texi: Mention the new module.
40723 2010-12-21  Bruno Haible  <bruno@clisp.org>
40725         New module 'ceil-ieee'.
40726         * modules/ceil-ieee: New file.
40727         * m4/ceil.m4 (gl_FUNC_CEIL): Require gl_MATH_H_DEFAULTS. If
40728         gl_FUNC_CEIL_IEEE is also used, test whether ceil works according to
40729         ISO C 99 with IEC 60559.
40730         * m4/ceil-ieee.m4: New file.
40731         * modules/ceil (Files): Add lib/ceil.c.
40732         (Depends-on): Add 'float'.
40733         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
40734         * lib/math.in.h (ceil): New declaration.
40735         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEIL,
40736         REPLACE_CEIL.
40737         * modules/math (Makefile.am): Substitute GNULIB_CEIL, REPLACE_CEIL.
40738         * modules/ceil-ieee-tests: New file.
40739         * tests/test-ceil-ieee.c: New file, based on tests/test-ceilf-ieee.c.
40740         * tests/test-math-c++.cc: Check the signature of 'ceil'.
40741         * doc/posix-functions/ceil.texi: Mention the new module.
40743 2010-12-21  Bruno Haible  <bruno@clisp.org>
40745         New module 'floor-ieee'.
40746         * modules/floor-ieee: New file.
40747         * m4/floor.m4 (gl_FUNC_FLOOR): Require gl_MATH_H_DEFAULTS. If
40748         gl_FUNC_FLOOR_IEEE is also used, test whether floor works according to
40749         ISO C 99 with IEC 60559.
40750         * m4/floor-ieee.m4: New file.
40751         * modules/floor (Files): Add lib/floor.c.
40752         (Depends-on): Add 'float'.
40753         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
40754         * lib/math.in.h (floor): New declaration.
40755         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOOR,
40756         REPLACE_FLOOR.
40757         * modules/math (Makefile.am): Substitute GNULIB_FLOOR, REPLACE_FLOOR.
40758         * modules/floor-ieee-tests: New file.
40759         * tests/test-floor-ieee.c: New file, based on tests/test-floorf-ieee.c.
40760         * tests/test-math-c++.cc: Check the signature of 'floor'.
40761         * doc/posix-functions/floor.texi: Mention the new module.
40763 2010-12-21  Bruno Haible  <bruno@clisp.org>
40765         New module 'roundf-ieee'.
40766         * modules/roundf-ieee: New file.
40767         * m4/roundf.m4 (gl_FUNC_ROUNDF): If gl_FUNC_ROUNDF_IEEE is also used,
40768         test whether roundf works according to ISO C 99 with IEC 60559.
40769         * m4/roundf-ieee.m4: New file.
40770         * modules/roundf-ieee-tests: New file.
40771         * tests/test-roundf-ieee.c: New file, based on tests/test-roundf1.c.
40772         * tests/test-roundf1.c (main): Remove signbit tests.
40773         * modules/roundf-tests (Depends-on): Remove 'signbit'.
40774         * doc/posix-functions/roundf.texi: Mention the new module.
40776 2010-12-21  Bruno Haible  <bruno@clisp.org>
40778         New module 'truncf-ieee'.
40779         * modules/truncf-ieee: New file.
40780         * m4/truncf.m4 (gl_FUNC_TRUNCF): If gl_FUNC_TRUNCF_IEEE is also used,
40781         test whether truncf works according to ISO C 99 with IEC 60559.
40782         * m4/truncf-ieee.m4: New file.
40783         * lib/math.in.h (truncf): Replace if REPLACE_TRUNCF is set.
40784         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCF.
40785         * modules/math (Makefile.am): Substitute REPLACE_TRUNCF.
40786         * modules/truncf-ieee-tests: New file.
40787         * tests/test-truncf-ieee.c: New file, based on tests/test-truncf1.c.
40788         * tests/test-truncf1.c (main): Remove signbit tests.
40789         * modules/truncf-tests (Depends-on): Remove 'signbit'.
40790         * doc/posix-functions/truncf.texi: Mention the new module.
40792 2010-12-21  Bruno Haible  <bruno@clisp.org>
40794         New module 'ceilf-ieee'.
40795         * modules/ceilf-ieee: New file.
40796         * m4/ceilf.m4 (gl_FUNC_FLOORF): If gl_FUNC_CEILF_IEEE is also used,
40797         test whether ceilf works according to ISO C 99 with IEC 60559.
40798         * m4/ceilf-ieee.m4: New file.
40799         * modules/ceilf-ieee-tests: New file.
40800         * tests/test-ceilf-ieee.c: New file, based on tests/test-ceilf1.c.
40801         * tests/test-ceilf1.c (main): Remove signbit tests.
40802         * modules/ceilf-tests (Depends-on): Remove 'signbit'.
40803         * doc/posix-functions/ceilf.texi: Mention the new module.
40805 2010-12-21  Bruno Haible  <bruno@clisp.org>
40807         New module 'floorf-ieee'.
40808         * modules/floorf-ieee: New file.
40809         * m4/floorf.m4 (gl_FUNC_FLOORF): If gl_FUNC_FLOORF_IEEE is also used,
40810         test whether floorf works according to ISO C 99 with IEC 60559.
40811         * m4/floorf-ieee.m4: New file.
40812         * modules/floorf-ieee-tests: New file.
40813         * tests/test-floorf-ieee.c: New file, based on tests/test-floorf1.c.
40814         * tests/test-floorf1.c (main): Remove signbit tests.
40815         * modules/floorf-tests (Depends-on): Remove 'signbit'.
40816         * doc/posix-functions/floorf.texi: Mention the new module.
40818 2010-12-21  Bruno Haible  <bruno@clisp.org>
40820         Support for minus zero in autoconf macros.
40821         * m4/minus-zero.m4: New file, based on tests/minus-zero.h.
40822         * m4/signbit.m4 (gl_FLOAT_SIGNBIT_CODE, gl_DOUBLE_SIGNBIT_CODE,
40823         gl_LONG_DOUBLE_SIGNBIT_CODE, gl_FLOATTYPE_SIGNBIT_CODE): New macros.
40824         * tests/minus-zero.h: Update comments.
40826 2010-12-21  Bruno Haible  <bruno@clisp.org>
40828         Tests for module 'ceil'.
40829         * modules/ceil-tests: New file.
40830         * tests/test-ceil1.c: New file, based on tests/test-ceill.c.
40831         * tests/test-ceil2.c: New file, based on tests/test-ceilf2.c.
40833 2010-12-21  Bruno Haible  <bruno@clisp.org>
40835         Tests for module 'floor'.
40836         * modules/floor-tests: New file.
40837         * tests/test-floor1.c: New file, based on tests/test-floorl.c.
40838         * tests/test-floor2.c: New file, based on tests/test-floorf2.c.
40840 2010-12-21  Bruno Haible  <bruno@clisp.org>
40842         math: Fix indentation.
40843         * lib/math.in.h (floorf): Fix indentation.
40845 2010-12-21  Bruno Haible  <bruno@clisp.org>
40847         Fix cross-compilation guesses on Solaris.
40848         * m4/fopen.m4 (gl_FUNC_FOPEN): Correct shell pattern so that it does
40849         not match "solaris2.10".
40850         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
40851         * m4/printf.m4 (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_DIRECTIVE_N,
40852         gl_VSNPRINTF_ZEROSIZE_C99): Likewise.
40854 2010-12-21  Paul Eggert  <eggert@cs.ucla.edu>
40856         snprintf: port snprintf (NULL, 0, ...) to Solaris 8 and 9
40857         This fixes a problem observed with the latest coreutils snapshot
40858         that caused a test to fail on Solaris 8.  src/csplit.c's call
40859         snprintf (NULL, 0, format, UINT_MAX) returns -1 on Solaris 9 and
40860         earlier, instead of returning the number of bytes that would have
40861         been generated; this causes csplit to incorrectly report memory
40862         exhaustion.
40863         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Also check for
40864         snprintf (NULL, 0, ...) and (for good measure) snprintf (buf, 0, ...).
40865         Guess that it doesn't work on Solaris 2.6 through 9.  Adjust
40866         comments to match.
40867         (gl_PRINTF_SIZES_C99, gl_PRINTF_DIRECTIVE_F, gl_SNPRINTF_RETVAL_C99):
40868         Fix typo in matching older versions of Solaris: "solaris2.10"
40869         is matched by the shell pattern "solaris2.[0-9]*".  This matters
40870         only for guessing while cross-compiling.
40871         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Also check gl_SNPRINTF_RETVAL_C99.
40873 2010-12-20  Paul Eggert  <eggert@cs.ucla.edu>
40875         ftoastr: fix comment again
40876         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
40877         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00149.html>.
40878         Also, simplify example a bit by using flags = 0.
40880 2010-12-20  Bruno Haible  <bruno@clisp.org>
40882         round*, trunc*: Update documentation regarding glibc.
40883         * doc/posix-functions/roundf.texi: Mention missing declaration problem.
40884         * doc/posix-functions/round.texi: Likewise.
40885         * doc/posix-functions/roundl.texi: Likewise.
40886         * doc/posix-functions/truncf.texi: Likewise.
40887         * doc/posix-functions/trunc.texi: Likewise.
40888         * doc/posix-functions/truncl.texi: Likewise.
40890 2010-12-20  Bruno Haible  <bruno@clisp.org>
40892         roundf, round, roundl: Update documentation regarding OSF/1 5.1.
40893         * doc/posix-functions/roundf.texi: Mention OSF/1 5.1 problem.
40894         * doc/posix-functions/round.texi: Likewise.
40895         * doc/posix-functions/roundl.texi: Likewise.
40897 2010-12-20  Bruno Haible  <bruno@clisp.org>
40899         ttyname_r: Add missing declaration on HP-UX 11.
40900         * lib/unistd.in.h (ttyname_r): Test HAVE_DECL_TTYNAME_R instead of
40901         HAVE_TTYNAME_R.
40902         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether ttyname_r is
40903         declared. Set HAVE_TTYNAME_R always.
40904         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
40905         HAVE_DECL_TTYNAME_R, not HAVE_TTYNAME_R.
40906         * modules/unistd (Makefile.am): Substitute HAVE_DECL_TTYNAME_R, not
40907         HAVE_TTYNAME_R.
40908         * doc/posix-functions/ttyname_r.texi: Document the HP-UX 11 problem.
40910 2010-12-20  Bruno Haible  <bruno@clisp.org>
40912         getlogin, getlogin_r: Document HP-UX 11.11 bugs.
40913         * doc/posix-functions/getlogin.texi: Document HP-UX 11.11 bug.
40914         * doc/posix-functions/getlogin_r.texi: Likewise.
40915         * tests/test-getlogin.c: Include <errno.h>.
40916         (main): Avoid test failure on HP-UX 11.11.
40917         * tests/test-getlogin_r.c (main): Likewise.
40919 2010-12-20  Bruno Haible  <bruno@clisp.org>
40921         getlogin_r: Add missing declaration on HP-UX 11.
40922         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Test whether getlogin_r is
40923         declared also when it exists as a function.
40924         * doc/posix-functions/getlogin_r.texi: Document this workaround.
40926 2010-12-20  Bruno Haible  <bruno@clisp.org>
40928         wcsrtombs: Don't confuse mbstate_t with rpl_mbstate_t.
40929         * lib/wcsrtombs.c: If gnulib overrides mbstate_t, define wcsrtombs
40930         through wcrtomb.
40932 2010-12-19  Paul Eggert  <eggert@cs.ucla.edu>
40934         ftoastr: fix comment
40935         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
40936         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00130.html>.
40938 2010-12-19  Bruno Haible  <bruno@clisp.org>
40940         isnan: Ensure it is a macro.
40941         * lib/math.in.h (isnan): Define as a macro if not already a macro.
40942         * doc/posix-functions/isnan.texi: Mention problem on IRIX, OSF/1,
40943         Solaris.
40945 2010-12-19  Bruno Haible  <bruno@clisp.org>
40947         ldexpl test: Fix link error on OSF/1 5.1.
40948         * modules/ldexpl-tests (Makefile.am): Define test_ldexpl_LDADD.
40950 2010-12-19  Bruno Haible  <bruno@clisp.org>
40952         wctype: Make it work in C++ mode on OSF/1 5.1.
40953         * lib/wctype.in.h (iswblank): Declare but not define here.
40954         * lib/iswblank.c: New file, extracted from lib/wctype.in.h.
40955         * m4/wctype_h.m4 (gl_WCTYPE_H): Arrange to compile it if needed.
40956         * modules/wctype (Files): Add lib/iswblank.c.
40958 2010-12-19  Bruno Haible  <bruno@clisp.org>
40960         signal: Document problem with type of SIGRTMIN, SIGRTMAX on OSF/1 5.1.
40961         * doc/posix-headers/signal.texi: Document OSF/1 5.1 problem.
40962         * lib/strsignal.c (strsignal): Cast SIGRTMIN to 'int'.
40964 2010-12-19  Bruno Haible  <bruno@clisp.org>
40966         sys_socket: Use POSIX compatible declarations on OSF/1 5.1.
40967         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): On OSF/1, define
40968         _POSIX_PII_SOCKET.
40969         * doc/posix-functions/recv.texi: Document the OSF/1 problem.
40970         * doc/posix-functions/recvfrom.texi: Likewise.
40971         * doc/posix-functions/send.texi: Likewise.
40972         * doc/posix-functions/sendto.texi: Likewise.
40974 2010-12-19  Bruno Haible  <bruno@clisp.org>
40976         tcgetsid: Add missing declaration on OSF/1 5.1.
40977         * lib/termios.in.h (tcgetsid): Test HAVE_DECL_TCGETSID instead of
40978         HAVE_TCGETSID.
40979         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Test whether tcgetsid is declared.
40980         Don't set HAVE_TCGETSID.
40981         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Initialize
40982         HAVE_DECL_TCGETSID, not HAVE_TCGETSID.
40983         * modules/termios (Makefile.am): Substitute HAVE_DECL_TCGETSID, not
40984         HAVE_TCGETSID.
40985         * doc/posix-functions/tcgetsid.texi: Mention the OSF/1 5.1 problem.
40987 2010-12-19  Bruno Haible  <bruno@clisp.org>
40989         stdio: Fix problem with popen() declaration on OSF/1 5.1.
40990         * lib/stdio.in.h: During the include_next statement, let recursive
40991         includes of this file include only the system header file.
40993 2010-12-19  Bruno Haible  <bruno@clisp.org>
40995         iconv_open: Fix regression from 2010-12-04.
40996         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Fix typo.
40997         Reported by Noah Lavine <noah.b.lavine@gmail.com>.
40999 2010-12-19  Bruno Haible  <bruno@clisp.org>
41001         stdbool test: Avoid a gcc warning.
41002         * tests/test-stdbool.c (main): Fail if e1 is false.
41003         Reported by Jim Meyering.
41005 2010-12-19  Jim Meyering  <meyering@redhat.com>
41007         setenv: restore to working order
41008         $HAVE_SETENV is used in gl_FUNC_SETENV, yet its definitions were
41009         mistakenly removed.
41010         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Restore code to set
41011         HAVE_SETENV.
41012         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Restore code to initialize
41013         HAVE_SETENV.
41015 2010-12-19  Bruno Haible  <bruno@clisp.org>
41017         Document some different function declarations on OSF/1 5.1.
41018         * doc/posix-functions/gai_strerror.texi: Mention different declaration.
41019         * doc/posix-functions/inet_ntop.texi: Likewise.
41020         * doc/posix-functions/gethostname.texi: Likewise.
41021         * lib/unistd.in.h (gethostname): Update comment.
41023 2010-12-19  Bruno Haible  <bruno@clisp.org>
41025         doc: Mention vasprintf-posix module.
41026         * doc/glibc-functions/asprintf.texi: Mention the workarounds present in
41027         the 'vasprintf-posix' module.
41028         * doc/glibc-functions/vasprintf.texi: Likewise.
41030 2010-12-19  Bruno Haible  <bruno@clisp.org>
41032         unsetenv: Add missing declaration on OSF/1 5.1.
41033         * lib/stdlib.in.h (setenv): Test HAVE_DECL_UNSETENV, not HAVE_UNSETENV.
41034         * m4/setenv.m4 (gl_FUNC_UNSETENV): Test whether unsetenv is declared.
41035         Don't set HAVE_UNSETENV. In the test program, set _BSD.
41036         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_UNSETENV,
41037         not HAVE_UNSETENV.
41038         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_UNSETENV, not
41039         HAVE_UNSETENV.
41040         * doc/posix-functions/unsetenv.texi: Mention the OSF/1 5.1 problem.
41042 2010-12-19  Bruno Haible  <bruno@clisp.org>
41044         setenv: Add missing declaration on OSF/1 5.1.
41045         * lib/stdlib.in.h (setenv): Test HAVE_DECL_SETENV, not HAVE_SETENV.
41046         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test whether setenv is
41047         declared. Don't set HAVE_SETENV.
41048         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_SETENV,
41049         not HAVE_SETENV.
41050         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_SETENV, not
41051         HAVE_SETENV.
41052         * doc/posix-functions/setenv.texi: Mention the OSF/1 5.1 problem.
41054 2010-12-19  Bruno Haible  <bruno@clisp.org>
41056         nl_langinfo tests: Avoid gcc warning.
41057         * tests/test-nl_langinfo.c: Don't enable the GCC pragma for GCC 4.2.
41059 2010-12-19  Bruno Haible  <bruno@clisp.org>
41061         mknod: Avoid error in C++ mode on OSF/1 with GCC.
41062         * lib/sys_stat.in.h (mknod): Use _GL_CXXALIAS_SYS_CAST instead of
41063         _GL_CXXALIAS_SYS.
41065 2010-12-19  Bruno Haible  <bruno@clisp.org>
41067         stdbool: Relax test.
41068         * tests/test-stdbool.c (e): Don't require that casts from a variable's
41069         address to 'bool' work in static initializer, for compilers other than
41070         GCC.
41072 2010-12-19  Bruno Haible  <bruno@clisp.org>
41074         ftello: Add missing declaration on OSF/1 5.1.
41075         * lib/stdio.in.h (ftello): Test HAVE_DECL_FTELLO, not HAVE_FTELLO.
41076         * m4/ftello.m4 (gl_FUNC_FTELLO): Test whether ftello is declared.
41077         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FTELLO.
41078         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FTELLO.
41079         * doc/posix-functions/ftello.texi: Mention the OSF/1 5.1 problem.
41081 2010-12-19  Bruno Haible  <bruno@clisp.org>
41083         fseeko: Add missing declaration on OSF/1 5.1.
41084         * lib/stdio.in.h (fseeko): Test HAVE_DECL_FSEEKO, not HAVE_FSEEKO.
41085         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Test whether fseeko is declared.
41086         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FSEEKO.
41087         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FSEEKO.
41088         * doc/posix-functions/fseeko.texi: Mention the OSF/1 5.1 problem.
41090 2010-12-19  Bruno Haible  <bruno@clisp.org>
41092         fchdir: Add missing declaration on OSF/1 5.1.
41093         * lib/unistd.in.h (fchdir): Provide declaration if systems lacks it.
41094         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check whether fchdir is declared.
41095         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_DECL_FCHDIR.
41096         * modules/unistd (Makefile.am): Substitute HAVE_DECL_FCHDIR.
41097         * doc/posix-functions/fchdir.texi: Mention the OSF/1 5.1 problem.
41099 2010-12-19  Bruno Haible  <bruno@clisp.org>
41101         relocatable-prog-wrapper: Separate from relocatable-prog.
41102         * modules/relocatable-prog (Makefile.am): Define uninstall-hook and
41103         uninstall-relocwrapper rule here.
41104         * modules/relocatable-prog-wrapper (Makefile.am): ... not here.
41105         Reported by Ian Beckwith <ianb@erislabs.net>.
41107 2010-12-19  Bruno Haible  <bruno@clisp.org>
41109         unistr/u8-mbsnlen: Add missing dependency.
41110         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtouc.
41111         Reported by Ian Beckwith <ianb@erislabs.net>.
41113 2010-12-19  Bruno Haible  <bruno@clisp.org>
41115         iconv: Make it possible again to use this module without 'iconv-h'.
41116         * modules/iconv (configure.ac): Don't invoke gl_ICONV_MODULE_INDICATOR
41117         if it is not defined.
41118         Reported by Ian Beckwith <ianb@erislabs.net>.
41120 2010-12-18  Paul Eggert  <eggert@cs.ucla.edu>
41122         acl: port to Solaris 8 when copying from tmpfs to ufs
41123         * lib/copy-acl.c (qcopy_acl): Also allow EINVAL as an ignorable
41124         error number.  Problem observed on Solaris 8 with latest
41125         coreutils, with "mv A B", where A is on a tmpfs file system and B
41126         is on a ufs file system.  This caused coreutils' mv/part-symlink
41127         test to fail.
41129         tests: set fail=0 at start
41130         * tests/init.sh (setup_): Move fail=0 initialization here ...
41131         (mktempd_): ... from here, so that tests can rely on fail being
41132         set to 0 initially.  This fixes a problem in coreutils; see:
41133         http://lists.gnu.org/archive/html/coreutils/2010-12/msg00083.html
41135 2010-12-18  Bruno Haible  <bruno@clisp.org>
41137         memmem-simple: Stylistic changes.
41138         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Avoid possible gcc warning.
41139         Fix preprocessor directive indentation.
41141 2010-12-15  Pádraig Brady  <P@draigBrady.com>
41143         memmem, memmem-simple: reorganize and expand empty needle check
41144         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Move all
41145         functional checks to memmem-simple so that one has a fully functional
41146         memmem by using just this module.
41147         Restrict the performance only check to the memmem module.
41148         Also expand the empty needle check to ensure the correct
41149         pointer is returned, not just a non NULL pointer.
41150         * doc/glibc-functions/memmem.texi: Rearrange the portability
41151         documentation to correlate with the rearranged checks.
41152         Clarify exactly how the memmem and memmem-simple modules
41153         relate to each other.
41155 2010-12-15  Pádraig Brady  <P@draigBrady.com>
41156             Bruno Haible  <bruno@clisp.org>
41158         Improve cross-compilation guesses for uClibc.
41159         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): When cross-compiling, assume
41160         that uClibc does not have the glibc bug.
41161         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Likewise.
41162         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): Likewise.
41164 2010-12-14  Eric Blake  <eblake@redhat.com>
41166         configmake: provide fallbacks for oldest supported autotools
41167         * m4/configmake.m4: New file.
41168         * modules/configmake (Files): Ship it.
41169         (configure.ac): Use it to guarantee fallbacks.
41171 2010-12-13  Pádraig Brady  <P@draigBrady.com>
41173         read-file: Improve handling of large files
41174         * lib/read-file.c (fread_file): Minimize realloc()s
41175         for regular files, and better manage sizes around SIZE_MAX.
41177 2010-12-13  Eric Blake  <eblake@redhat.com>
41179         cloexec, fcntl: relax license
41180         * modules/cloexec (License): Change from LGPLv3+ to LGPLv2+, with
41181         consent from all contributors.
41182         * modules/fcntl (License): Likewise.
41184 2010-12-10  Bruno Haible  <bruno@clisp.org>
41186         Tests for module 'pipe-posix'.
41187         * modules/pipe-posix-tests: New file.
41188         * tests/test-pipe.c: New file, based on tests/test-pipe2.c.
41190 2010-12-10  Bruno Haible  <bruno@clisp.org>
41192         pipe-posix: Make it work in C++ mode.
41193         * lib/unistd.in.h: Don't include <io.h>, <fcntl.h> for pipe.
41194         (pipe): Use common idiom, not a macro definition.
41195         * lib/pipe.c: New file.
41196         * m4/pipe.m4: New file.
41197         * modules/pipe-posix (Description): Enhance.
41198         (Files): Add lib/pipe.c, m4/pipe.m4.
41199         (configure.ac): Invoke gl_FUNC_PIPE.
41200         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_PIPE.
41201         * modules/unistd (Makefile.am): Substitute HAVE_PIPE.
41202         * tests/test-unistd-c++.cc: Check the signature of pipe.
41204 2010-12-10  Bruno Haible  <bruno@clisp.org>
41206         Rename module 'pipe' to 'spawn-pipe'.
41207         * modules/spawn-pipe: New file, renamed from modules/pipe.
41208         (Files, configure.ac, Makefile.am): Update.
41209         (Include): Mention "spawn-pipe.h" instead of "pipe.h".
41210         * modules/pipe: Reduce to an obsolete indirection to 'spawn-pipe'.
41211         * lib/spawn-pipe.h: New file, renamed from lib/pipe.h.
41212         * lib/spawn-pipe.c: New file, renamed from lib/pipe.c. Include
41213         "spawn-pipe.h" instead of "pipe.h".
41214         * m4/spawn-pipe.m4: New file, renamed from m4/pipe.m4. Rename gl_PIPE
41215         to gl_SPAWN_PIPE.
41216         * modules/spawn-pipe-tests: New file, renamed from modules/pipe-tests.
41217         (Files, Makefile.am): Update.
41218         * tests/test-spawn-pipe.sh: New file, renamed from tests/test-pipe.sh.
41219         Update.
41220         * tests/test-spawn-pipe.c: New file, renamed from tests/test-pipe.c.
41221         Include "spawn-pipe.h" instead of "pipe.h".
41222         * lib/csharpcomp.c: Include "spawn-pipe.h" instead of "pipe.h".
41223         * lib/javacomp.c: Likewise.
41224         * lib/javaversion.c: Likewise.
41225         * lib/pipe-filter-gi.c: Likewise.
41226         * lib/pipe-filter-ii.c: Likewise.
41227         * modules/csharpcomp (Depends-on): Add 'spawn-pipe', remove 'pipe'.
41228         * modules/javacomp (Depends-on): Likewise.
41229         * modules/javaversion (Depends-on): Likewise.
41230         * modules/pipe-filter-gi (Depends-on): Likewise.
41231         * modules/pipe-filter-ii (Depends-on): Likewise.
41232         * MODULES.html.sh (Executing programs): Update.
41233         * NEWS: Mention the change.
41235 2010-12-10  Eric Blake  <eblake@redhat.com>
41237         pipe-posix: new module
41238         * modules/pipe-posix: New file.
41239         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set default.
41240         (gl_UNISTD_H): Check for declaration.
41241         * modules/unistd (Makefile.am): Substitute it.
41242         * lib/unistd.in.h (pipe): Provide it for mingw.
41243         * doc/posix-functions/pipe.texi (pipe): Update documentation.
41244         * MODULES.html.sh (File descriptor based Input/Output): Likewise.
41246 2010-12-07  Bruno Haible  <bruno@clisp.org>
41248         unistr/u8-strcmp: Avoid collision with libc function on Solaris 11.
41249         * lib/unistr.in.h (u8_strcmp) [__sun]: Declare with real name
41250         u8_strcmp_gnu.
41251         * modules/unistr/u8-strcmp (configure.ac): Bump version number.
41253 2010-12-06  Bruno Haible  <bruno@clisp.org>
41255         Update internal documentation.
41256         * m4/README: Document new idioms for AC_RUN_IFELSE invocations.
41258 2010-12-04  Bruno Haible  <bruno@clisp.org>
41260         Put more information about failed tests into the test return codes.
41261         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Change test
41262         program so that it returns an enumerated value (0, 1, 2, 3, 4, ...).
41263         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
41264         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
41265         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Likewise.
41266         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
41267         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
41268         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
41269         * m4/isapipe.m4 (gl_PREREQ_ISAPIPE): Likewise.
41270         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
41271         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Likewise.
41272         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
41273         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
41274         * m4/stdint.m4 (gl_STDINT_H): Likewise.
41275         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Change test program so that it
41276         returns a bit mask.
41277         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Likewise.
41278         * m4/chown.m4 (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Likewise.
41279         * m4/dup2.m4 (gl_FUNC_DUP2): Likewise.
41280         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Likewise.
41281         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
41282         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
41283         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
41284         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
41285         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
41286         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
41287         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
41288         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
41289         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
41290         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
41291         * m4/link.m4 (gl_FUNC_LINK): Likewise.
41292         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
41293         * m4/mbrlen.m4 (gl_MBRLEN_RETVAL): Likewise.
41294         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Likewise.
41295         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
41296         * m4/memchr.m4 (gl_FUNC_MEMCHR): Likewise.
41297         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
41298         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
41299         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Likewise.
41300         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
41301         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
41302         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
41303         * m4/popen.m4 (gl_FUNC_POPEN): Likewise.
41304         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
41305         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
41306         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_LS,
41307         gl_PRINTF_PRECISION): Likewise.
41308         * m4/regex.m4 (gl_REGEX): Likewise.
41309         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
41310         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
41311         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Likewise.
41312         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
41313         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
41314         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
41315         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
41316         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Likewise.
41317         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
41318         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
41319         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
41320         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
41321         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
41322         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
41323         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
41324         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
41325         * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
41326         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
41327         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
41328         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Likewise.
41329         (gl_FLOATTYPE_SIGN_LOCATION): Change test program so that it returns an
41330         enumerated value.
41331         * m4/acl.m4 (gl_ACL_GET_FILE): Use "if ... return 1; return 0;" style.
41333 2010-12-04  Bruno Haible  <bruno@clisp.org>
41335         Update for Solaris 11 2010-11.
41336         * doc/{glibc,posix}-{functions,headers}: Add info about Solaris 11
41337         Express, released in November 2010.
41339 2010-12-04  Bruno Haible  <bruno@clisp.org>
41341         nproc: Relax license.
41342         * modules/nproc (License): Change to LGPL, with consent by Glen Lenker
41343         and Paul Eggert.
41344         Requested by Ludovic Courtès <ludo@gnu.org>.
41346 2010-12-01  Paul Eggert  <eggert@cs.ucla.edu>
41348         utimecmp: fine-grained src to nearby coarse-grained dest
41350         * lib/utimecmp.c (utimecmp): When UTIMECMP_TRUNCATE_SOURCE is set,
41351         and the source is on a file system with higher-resolution time
41352         stamps, than the destination, and _PC_TIMESTAMP_RESOLUTION does
41353         not work, and the time stamps are close together, the algorithm to
41354         determine the exact resolution from the read-back mtime was buggy:
41355         it had a "!=" where it should have had an "==".  This bug has been
41356         in the code ever since it was introduced to gnulib.
41357         Problem reported by Dan Jacobson in
41358         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=7529>.
41360 2010-11-30  Bruno Haible  <bruno@clisp.org>
41362         strerror_r-posix: Fix autoconf test.
41363         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Fix typo.
41365 2010-11-28  Bruno Haible  <bruno@clisp.org>
41366             Paul Eggert  <eggert@cs.ucla.edu>
41368         Tests for module 'getdomainname'.
41369         * modules/getdomainname-tests: New file.
41370         * tests/test-getdomainname.c: New file, based on
41371         tests/test-gethostname.c.
41373 2010-11-28  Bruno Haible  <bruno@clisp.org>
41374             Paul Eggert  <eggert@cs.ucla.edu>
41376         getdomainname: Use the system function when possible.
41377         * lib/unistd.in.h: Include <netdb.h>, for getdomainname's declaration.
41378         (getdomainname): Replace if needed. Provide the declaration if it is
41379         missing. Don't use _GL_CXXALIAS_SYS_CAST.
41380         * lib/getdomainname.c: Include <limits.h> and <sys/systeminfo.h>.
41381         (getdomainname): When the system has getdomainname, call the system
41382         function. When sysinfo (SI_SRPC_DOMAIN, ...) is possible, use that.
41383         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
41384         gl_HEADER_SYS_SOCKET and gl_HEADER_NETDB. Test whether the function is
41385         found in libnsl. Look for the declaration also in <netdb.h>. Replace
41386         the function if its second argument is of type 'int' or if it is found
41387         in libnsl.
41388         (gl_PREREQ_GETDOMAINNAME): Define HAVE_GETDOMAINNAME. Check for
41389         <sys/systeminfo.h> and sysinfo().
41390         * modules/getdomainname (Depends-on): Add netdb, sys_socket.
41391         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
41392         HAVE_DECL_GETDOMAINNAME and REPLACE_GETDOMAINNAME instead of
41393         HAVE_GETDOMAINNAME.
41394         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETDOMAINNAME and
41395         REPLACE_GETDOMAINNAME instead of HAVE_GETDOMAINNAME.
41396         * doc/glibc-functions/getdomainname.texi: Document the problems with
41397         the getdomainname declaration.
41399 2010-11-28  Bruno Haible  <bruno@clisp.org>
41401         sys_socket: Ensure ss_family field on AIX.
41402         * lib/sys_socket.in.h (ss_family): New macro definition.
41403         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Set
41404         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY. Set SYS_SOCKET_H if necessary.
41405         (gl_SYS_SOCKET_H_DEFAULTS): Initialize
41406         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
41407         * modules/sys_socket (Makefile.am): Substitute
41408         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
41409         * doc/posix-headers/sys_socket.texi: Mention the AIX bug.
41411 2010-11-27  Bruno Haible  <bruno@clisp.org>
41413         readline: Improve configure output.
41414         * m4/readline.m4 (gl_FUNC_READLINE): Make the
41415         "checking for readline..." result understandable.
41417 2010-11-27  Bruno Haible  <bruno@clisp.org>
41419         *printf-posix: Detect a bug on Solaris 10/x86.
41420         * m4/printf.m4 (gl_PRINTF_PRECISION): Detect crash with large precision
41421         for floating-point output.
41422         * tests/test-vasnprintf-posix.c (test_function): Test precision with %f
41423         directive.
41424         * tests/test-snprintf-posix.h (test_function): Likewise.
41425         * tests/test-sprintf-posix.h (test_function): Likewise.
41426         * tests/test-vasprintf-posix.c (test_function): Likewise.
41427         * doc/posix-functions/fprintf.texi: Mention Solaris/x86 bug.
41428         * doc/posix-functions/printf.texi: Likewise.
41429         * doc/posix-functions/snprintf.texi: Likewise.
41430         * doc/posix-functions/sprintf.texi: Likewise.
41431         * doc/posix-functions/vfprintf.texi: Likewise.
41432         * doc/posix-functions/vprintf.texi: Likewise.
41433         * doc/posix-functions/vsnprintf.texi: Likewise.
41434         * doc/posix-functions/vsprintf.texi: Likewise.
41435         * doc/glibc-functions/obstack_printf.texi: Likewise.
41436         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
41438 2010-11-27  Bruno Haible  <bruno@clisp.org>
41440         Fix link error when module libunistring-optional is in use.
41441         * modules/striconveh-tests (Makefile.am): Link with $(LIBUNISTRING).
41442         * modules/striconveha-tests (Makefile.am): Likewise.
41444 2010-11-27  Bruno Haible  <bruno@clisp.org>
41446         regex: Mention link dependencies.
41447         * modules/regex (Link): New section.
41448         * modules/rpmatch (Link): Likewise.
41449         * modules/regex-quote-tests (Makefile.am): Link with $(LIBINTL).
41451 2010-11-27  Bruno Haible  <bruno@clisp.org>
41453         ftoastr: Fix compilation error on Solaris.
41454         * lib/ftoastr.c: Include <config.h>.
41456 2010-11-27  Bruno Haible  <bruno@clisp.org>
41458         getloadavg: Update documentation.
41459         * doc/glibc-functions/getloadavg.texi: Mention the Solaris problem.
41461 2010-11-27  Bruno Haible  <bruno@clisp.org>
41463         sys_socket: Fix test whether the functions are declared.
41464         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Include <sys/socket.h>,
41465         not <sys/select.h>.
41467 2010-11-27  Bruno Haible  <bruno@clisp.org>
41469         getpass: Make sure to get system declaration on some platforms.
41470         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU): Require
41471         gl_USE_SYSTEM_EXTENSIONS.
41472         * modules/getpass (Depends-on): Add extensions.
41474 2010-11-26  Bruno Haible  <bruno@clisp.org>
41476         iconv-h: Fix test-iconv-h-c++ failure on Solaris 11 2010-11.
41477         * lib/iconv.in.h (iconv_open, iconv, iconv_close): Define only if the
41478         'iconv' module is present.
41479         (ICONV_CONST): New macro.
41480         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize GNULIB_ICONV and
41481         ICONV_CONST.
41482         * m4/iconv.m4 (AM_ICONV): If the gnulib module 'iconv-h' is present,
41483         set ICONV_CONST.
41484         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Don't set ICONV_CONST
41485         here.
41486         * modules/iconv (configure.ac): Invoke gl_ICONV_MODULE_INDICATOR.
41487         * modules/iconv-h (Makefile.am): Substitute GNULIB_ICONV.
41488         * tests/test-iconv-h.c (ICONV_CONST): Don't define here.
41489         * tests/test-iconv-h-c++.cc (ICONV_CONST): Don't define here.
41490         (iconv_open, iconv, iconv_close): Test only if the 'iconv' module is
41491         present.
41493 2010-11-25  Paul Eggert  <eggert@cs.ucla.edu>
41495         ftoastr: comment fix
41496         * lib/ftoastr.c: "little" -> "little or no" in comment
41498 2010-11-24  Paul Eggert  <eggert@cs.ucla.edu>
41500         stdint: port to GCC 4.3 + OSX + Octave
41501         On this platform, stdint.h is buggy and defines int64_t to long
41502         long int.  The replacement defined it to long int, causing
41503         problems with C++ style name mangling.  Instead, trust the system
41504         definition if INT64_MAX is defined, and likewise for the unsigned
41505         variant.   Problem reported by Jarno Rajahalme in
41506         <http://lists.gnu.org/archive/html/bug-gnulib/2010-04/msg00143.html>.
41507         * lib/stdint.in.h (GL_INT64_T): Define if INT64_MAX is defined,
41508         and don't mess with int64_t and INT64_MAX in this case.
41509         (GL_UINT64_T): Likewise for UINT64_MAX and uint64_t.
41511 2010-11-24  Bruno Haible  <bruno@clisp.org>
41513         doc: Corrections regarding MacOS X 10.4 and 10.5.
41514         * doc/{glibc,posix,pastposix}-functions/*.texi: Update info about
41515         MacOS X.
41516         Reported by Simon Josefsson.
41518 2010-11-22  Ben Pfaff  <blp@cs.stanford.edu>
41520         Uninstall ".bin" files installed by relocwrapper.
41521         * modules/relocatable-prog-wrapper (uninstall-relocwrapper):
41522         Recursively run "make uninstall" with ".bin" prefixed to EXEEXT,
41523         unless it is already there.
41525 2010-11-21  Bruno Haible  <bruno@clisp.org>
41527         Update for NetBSD 5.0.
41528         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
41529         NetBSD; the test fails on NetBSD 5.0.
41530         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
41531         about NetBSD.
41533 2010-11-21  Bruno Haible  <bruno@clisp.org>
41535         Update for HP-UX 11.23 and HP-UX 11.31.
41536         * doc/{glibc,posix}-{headers,functions}/*.texi: Update info about
41537         HP-UX.
41539 2010-11-21  Bruno Haible  <bruno@clisp.org>
41541         Update for MacOS X 10.5.
41542         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
41543         MacOS X; the test fails on MacOS X 10.5.8.
41544         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
41545         about MacOS X.
41547 2010-11-20  Joel E. Denny  <joeldenny@joeldenny.org>
41549         bootstrap: add bootstrap_sync option.
41550         See discussion at
41551         <http://lists.gnu.org/archive/html/bug-gnulib/2010-10/msg00369.html>,
41552         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00200.html>.
41553         * build-aux/bootstrap: Accept --bootstrap-sync to update
41554         bootstrap if it is not identical to the local gnulib's
41555         bootstrap.  Accept bootstrap_sync=true in bootstrap.conf to
41556         enable this by default.  Accept --no-bootstrap-sync to disable
41557         it.
41559 2010-11-20  Bruno Haible  <bruno@clisp.org>
41561         Ensure that <features.h> is included before __GLIBC__ is tested.
41562         * lib/printf-parse.h: Include <features.h>.
41563         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gl_FEATURES_H.
41564         Reported by Mike Frysinger <vapier@gentoo.org>.
41566         Ensure that <features.h> is included before __GLIBC__ is tested.
41567         * lib/wchar.in.h: Include <features.h>.
41568         * m4/wchar_h.m4 (gl_WCHAR_H): Require gl_FEATURES_H.
41569         * modules/wchar (Makefile.am): Substitute HAVE_FEATURES_H.
41570         Reported by Mike Frysinger <vapier@gentoo.org>.
41572         Ensure that <features.h> is included before __GLIBC__ is tested.
41573         * lib/arpa_inet.in.h: Include <features.h>.
41574         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Require gl_FEATURES_H.
41575         * modules/arpa_inet (Makefile.am): Substitute HAVE_FEATURES_H.
41576         Reported by Mike Frysinger <vapier@gentoo.org>.
41578         Ensure that <features.h> is included before __GLIBC__ is tested.
41579         * build-aux/link-warning.h: Include <features.h>.
41580         * modules/link-warning (configure.ac): Require gl_FEATURES_H.
41581         (Makefile.am): Substitute HAVE_FEATURES_H into link-warning.h.
41582         Reported by Mike Frysinger <vapier@gentoo.org>.
41584         Ensure that <features.h> is included before __GLIBC__ is tested.
41585         * m4/gnulib-common.m4 (gl_FEATURES_H): New macro.
41586         Reported by Mike Frysinger <vapier@gentoo.org>.
41588 2010-11-20  Bruno Haible  <bruno@clisp.org>
41590         memmem: Fix autoconf test.
41591         * m4/memmem.m4 (gl_FUNC_MEMMEM): Test HAVE_DECL_MEMMEM, not HAVE_MEMMEM.
41593 2010-11-20  Bruno Haible  <bruno@clisp.org>
41595         Port to uClibc.
41596         * build-aux/link-warning.h (GL_LINK_WARNING): Treat uClibc like glibc.
41597         * lib/fcntl.in.h: Likewise.
41598         * lib/hard-locale.c (GLIBC_VERSION): Likewise.
41599         * lib/mbrtowc.c (mbrtowc): Likewise.
41600         * lib/relocatable.c (find_shared_library_fullname): Likewise.
41601         * lib/strerror_r.c: Likewise.
41602         * lib/unistr/u8-strnlen.c: Likewise.
41603         * lib/vasnprintf.c (decimal_point_char): Likewise.
41604         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
41605         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
41606         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
41607         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
41608         * tests/test-sigaction.c (handler, main): Likewise.
41609         * lib/freading.h: Treat uClibc like a non-glibc platform.
41610         * lib/freading.c: Likewise.
41611         * lib/gettext.h: Likewise.
41612         * lib/localename.c (gl_locale_name_thread_unsafe, HAVE_LOCALE_NULL):
41613         Likewise.
41614         * lib/printf-parse.h (FLAG_LOCALIZED): Likewise.
41615         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
41616         * lib/propername.c (proper_name_utf8): Likewise.
41617         * lib/spawn.in.h: Likewise.
41618         * lib/striconv.c (mem_cd_iconv, str_cd_iconv, str_iconv): Likewise.
41619         * lib/striconveh.c (iconveh_open, iconv_carefully, iconv_carefully_1,
41620         mem_cd_iconveh_internal): Likewise.
41621         * lib/striconveha.c (mem_iconveha, str_iconveha): Likewise.
41622         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
41623         strstr, strcasestr): Likewise.
41624         * lib/unicodeio.c (unicode_to_mb): Likewise.
41625         * lib/uniconv/u16-conv-from-enc.c (UTF16_NAME): Likewise.
41626         * lib/uniconv/u16-conv-to-enc.c (UTF16_NAME): Likewise.
41627         * lib/uniconv/u16-strconv-to-enc.c (UTF16_NAME): Likewise.
41628         * lib/uniconv/u32-conv-from-enc.c (UTF32_NAME): Likewise.
41629         * lib/uniconv/u32-conv-to-enc.c (UTF32_NAME): Likewise.
41630         * lib/uniconv/u32-strconv-to-enc.c (UTF32_NAME): Likewise.
41631         * lib/unistr/u8-stpncpy.c: Likewise.
41632         * lib/vasnprintf.c (VASNPRINTF): Likewise.
41633         * lib/xmalloc.c (HAVE_GNU_CALLOC): Likewise.
41634         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
41635         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
41636         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
41637         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Likewise.
41638         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Likewise.
41639         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Likewise.
41640         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
41641         Likewise.
41642         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
41643         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
41644         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
41645         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
41646         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
41647         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
41648         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
41649         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
41650         * tests/test-getopt.h (OPTIND_MIN): Likewise.
41651         * tests/test-striconveha.c (main): Likewise.
41652         * tests/test-vasnprintf-posix.c (test_function): Likewise.
41653         * tests/test-vasnprintf-posix3.c (test_function, main): Likewise.
41654         * doc/posix-functions/getdelim.texi: Mention an uClibc bug.
41655         * doc/posix-functions/getline.texi: Likewise.
41656         Reported by Mike Frysinger <vapier@gentoo.org>.
41658 2010-11-20  Bruno Haible  <bruno@clisp.org>
41660         nproc: Fix condition.
41661         * lib/nproc.c: Test HAVE_PTHREAD_GETAFFINITY_NP, not
41662         HAVE_PTHREAD_AFFINITY_NP.
41664 2010-11-20  Bruno Haible  <bruno@clisp.org>
41666         Fix a comment.
41667         * lib/vasnprintf.c (VASNPRINTF): Fix comment.
41669 2010-11-19  Paul Eggert  <eggert@cs.ucla.edu>
41671         ftoastr: don't assume snprintf
41672         * lib/ftoastr.c (snprintf) [! GNULIB_SNPRINTF_POSIX]:
41673         Implement a subset of snprintf here, by using sprintf safely.
41674         * modules/ftoastr (Depends-on): Remove snprintf.
41676 2010-11-19  Jim Meyering  <meyering@redhat.com>
41678         test-rename.h: fix compilation failure
41679         * tests/test-rename.h (test_rename): Add omitted "}".
41681 2010-11-17  Jim Meyering  <meyering@redhat.com>
41683         maint.mk: add a URL discussing the no-@acronym policy
41684         * top/maint.mk (sc_texinfo_acronym): Add a URL in a comment.
41686 2010-11-18  Paul Eggert  <eggert@cs.ucla.edu>
41688         ftoastr: depend on snprintf, improve comments
41689         * lib/ftoastr.c: Also mention Loitsch's draft.
41690         * lib/ftoastr.h: Require WIDTH to be nonnegative.  This isn't
41691         needed in the current implementation, but it might simplify
41692         speeding up the code later.
41693         * modules/ftoastr: Depend on snprintf; this improves portability.
41694         Suggested by Bruno Haible in the same email.
41696         ftoastr: port to hosts lacking strtof and strtold
41697         Problem reported by Bruno Haible in
41698         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00242.html>.
41699         * lib/ftoastr.c (STRTOF): Define to strtod if in a pre-C99
41700         environment and strtold (and presumably strtof) are not available.
41701         * modules/ftoastr (Files): Add m4/c-strtod.m4.
41702         (configure.ac): Require gl_C99_STRTOLD.
41704 2010-11-18  Bruno Haible  <bruno@clisp.org>
41706         c-strtold: Avoid link error on AIX 7.
41707         * lib/c-strtod.c: Test also HAVE_STRTOD_L or HAVE_STRTOLD_L.
41708         * m4/c-strtod.m4 (gl_C_STRTOD): Test whether strtod_l exists.
41709         (gl_C_STRTOLD): Test whether strtold_l exists.
41710         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
41712 2010-11-17  Paul Eggert  <eggert@cs.ucla.edu>
41714         intprops: new macro INT_BITS_STRLEN_BOUND
41715         * lib/intprops.h (INT_BITS_STRLEN_BOUND): New macro, needed by
41716         ftoastr.h.  This exposes an internal of intprops.h that was formerly
41717         not exposed.  Also, it uses a slightly tighter bound than before;
41718         though this makes no practical difference, we might as well be as
41719         tight as we easily can.
41721         ftoastr: new module, for lossless conversion of floats to short strings
41722         * lib/ftoastr.h, lib/ftoastr.c, lib/dtoastr.c, lib/ldtoastr.c:
41723         * modules/ftoastr: New files.
41725 2010-11-15  Paul Eggert  <eggert@cs.ucla.edu>
41727         bootstrap: port to Solaris sed
41728         * build-aux/bootstrap (get_version): Port to Solaris sed.
41729         See Ralf Wildenhues's note in
41730         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00156.html>.
41732 2010-11-14  Jim Meyering  <meyering@redhat.com>
41734         maint.mk: rename variable: s/noteworthy/gl_noteworthy_news_/
41735         * top/maint.mk (gl_noteworthy_news_): Rename from "noteworthy"
41736         and move definition closer to sole use.
41738 2010-11-13  Jim Meyering  <meyering@redhat.com>
41740         remove autoconf-2.57 work-around requiring AC_PROG_EGREP and AC_PROG_CPP
41741         Now we require at least autoconf-2.59, which means the work-around
41742         is no longer needed.
41743         * m4/alloca.m4 (gl_FUNC_ALLOCA): Remove work-around.
41744         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
41745         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
41746         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
41747         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
41749 2010-11-13  Bruno Haible  <bruno@clisp.org>
41751         rename, renameat: Avoid test failures at NFS mounted locations.
41752         * tests/test-rename.h (dentry_exists, assert_nonexistent): New
41753         functions.
41754         (test_rename): Use assert_nonexistent.
41755         * tests/test-rename.c: Include <dirent.h>.
41756         * tests/test-renameat.c: Likewise.
41757         Reported by Gary V. Vaughan <gary@gnu.org>.
41759         rename, renameat: Document Linux bug with NFS
41760         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00154.html>.
41761         * doc/posix-functions/rename.texi: Mention the NFS bug on Linux.
41762         * doc/posix-functions/renameat.texi: Likewise.
41763         Suggested by Eric Blake.
41765 2010-11-13  Bruno Haible  <bruno@clisp.org>
41767         rename test: Add comments.
41768         * tests/test-rename.h (test_rename): Add structure and comments.
41770 2010-11-13  Eric Blake  <eblake@redhat.com>
41772         maintainer-makefile: cover a few more files
41773         * top/maint.mk (sc_prohibit_test_double_equal): Also cover shell
41774         scripts generated within C files, for libvirt.
41776 2010-11-13  Bruno Haible  <bruno@clisp.org>
41778         unistr/u8-mbtouc: Improve handling of ill-formed UTF-8 input.
41779         * lib/unistr/u8-mbtouc.c (u8_mbtouc): For an invalid multibyte
41780         character, return the number of bytes that belong together, not always
41781         1.
41782         * lib/unistr/u8-mbtouc-unsafe.c (u8_mbtouc_unsafe): Likewise.
41783         * lib/unistr/u8-mbtouc-aux.c (u8_mbtouc_aux): Likewise.
41784         * lib/unistr/u8-mbtouc-unsafe-aux.c (u8_mbtouc_unsafe_aux): Likewise.
41785         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtouc to determine the
41786         number of bytes of an invalid character.
41787         * tests/unistr/test-u8-mbtouc.c (test_safe_function): New function.
41788         (main): Invoke it.
41789         * tests/unistr/test-u8-mbtouc.h (test_function): Update two test
41790         results.
41791         * tests/unistr/test-u8-mbsnlen.c (main): Test various kinds of
41792         malformed byte sequences.
41793         * modules/unistr/u8-mbtouc (configure.ac): Bump version number.
41794         * modules/unistr/u8-mbtouc-unsafe (configure.ac): Likewise.
41795         * modules/unistr/u8-mbsnlen (configure.ac): Likewise.
41796         Reported by Ben Pfaff and Paolo Bonzini.
41798 2010-11-13  Bruno Haible  <bruno@clisp.org>
41800         openat: Work around glibc bug with fchownat() and empty file names.
41801         * m4/openat.m4 (gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG): New macro.
41802         (gl_FUNC_FCHOWNAT): Invoke it.
41803         * lib/fchownat.c (rpl_fchownat): Handle the empty file name specially.
41804         * doc/posix-functions/fchownat.texi: Document the glibc bug.
41805         Reported by Gary V. Vaughan <gary@gnu.org>.
41807 2010-11-13  Bruno Haible  <bruno@clisp.org>
41809         openat: Ensure autoconf macro ordering.
41810         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Require
41811         gl_USE_SYSTEM_EXTENSIONS.
41812         (gl_FUNC_FCHOWNAT): Require gl_UNISTD_H_DEFAULTS.
41814 2010-11-13  Bruno Haible  <bruno@clisp.org>
41816         Update comments.
41817         * lib/unistr/u8-check.c: Update file name in comments.
41818         * lib/unistr/u8-mblen.c: Likewise.
41819         * lib/unistr/u8-prev.c: Likewise.
41820         * lib/unistr/u8-strmblen.c: Likewise.
41821         * lib/unistr/u8-strmbtouc.c: Likewise.
41823 2010-11-13  Jim Meyering  <meyering@redhat.com>
41825         tests: avoid test failure on Solaris 10 due to lack of PATH export
41826         * tests/test-update-copyright.sh: Don't forget to export PATH.
41828         init.sh: ensure that IFS is defined, just in case...
41829         * tests/init.sh (setup_): Ensure that IFS is defined,
41830         so that saving and restoring it works as expected.  This
41831         appears to be useful at least for an old version of dash
41832         from a long time ago (RH 6).  See here for details:
41833         http://thread.gmane.org/gmane.comp.gnu.coreutils.general/436/focus=455
41835         maint.mk: tighten "test a == b" check
41836         * top/maint.mk (sc_prohibit_test_double_equal): Restrict this
41837         test to files that contain something like #!/bin/sh.
41838         Without this, coreutils would get two false positives in
41839         the comments of C source files.
41841 2010-11-12  Eric Blake  <eblake@redhat.com>
41843         bootstrap: fix typo in previous attempt
41844         * build-aux/bootstrap (buildreq): Correct the grouping.
41845         Reported by Paul Eggert.
41847         maintainer-makefile: prohibit test x == x
41848         * top/maint.mk (sc_prohibit_test_double_equal): New rule.
41849         Based on a report by Matthias Bolte.
41851         bootstrap: allow FreeBSD gzip
41852         * build-aux/bootstrap (get_version): Parse FreeBSD gzip version,
41853         which has no '.' and goes to stderr.
41854         * build-aux/bootstrap.conf (buildreq): Improve the sample file.
41855         Reported by Matthias Bolte.
41857         maintainer-makefile: check for i18n setup
41858         * top/maint.mk (sc_bindtextdomain): Check for evidence that _()
41859         will likely work.
41861 2010-11-12  Bruno Haible  <bruno@clisp.org>
41863         sleep, nanosleep: Work around Linux 2.6.9 nanosleep bug.
41864         * lib/sleep.c (rpl_sleep): Split in chunks no larger than 24 days.
41865         * lib/nanosleep.c (nanosleep): Likewise.
41867 2010-11-11  Bruno Haible  <bruno@clisp.org>
41869         fcntl-h: Fix for use of C++ on glibc systems.
41870         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
41871         also on glibc systems in C++ mode.
41872         Reported by Gary V. Vaughan <gary@gnu.org>.
41874 2010-11-11  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
41876         mknod: avoid false failure with dash
41877         * m4/mknod.m4 (gl_FUNC_MKNOD): Use portable shell syntax.
41879 2010-11-11  Paul Eggert  <eggert@cs.ucla.edu>
41881         unlink: Fix "is it should" typo in diagnostic.
41882         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix typo, as per Reuben Thomas in
41883         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00106.html>.
41885 2010-11-11  Bruno Haible  <bruno@clisp.org>
41887         Tests for module 'strerror_r-posix'.
41888         * modules/strerror_r-posix-tests: New file.
41889         * tests/test-strerror_r.c: New file.
41890         * tests/test-string-c++.cc: Check the signature of strerror_r.
41892         New module 'strerror_r-posix'.
41893         * lib/string.in.h (strerror_r): New declaration.
41894         * lib/strerror_r.c: New file.
41895         * m4/strerror_r.m4: New file.
41896         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Check for the declaration
41897         of strerror_r.
41898         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRERROR_R,
41899         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
41900         * modules/strerror_r-posix: New file.
41901         * modules/string (Makefile.am): Substitute GNULIB_STRERROR_R,
41902         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
41903         * doc/posix-functions/strerror_r.texi: Mention the new module and the
41904         portability problems.
41906 2010-11-11  Torsten Scheck  <Torsten.Scheck@Leica-Microsystems.com> (tiny change)
41908         * build-aux/pmccabe2html: Fixed a off-by-one error, so last input
41909         line is also considered for output. Quoted function name in shell
41910         command, so temporary files for functions like MyClass::operator()
41911         are removed correctly without errors.
41913 2010-11-09  Bruno Haible  <bruno@clisp.org>
41915         * doc/posix-functions/strerror.texi: List more failing platforms.
41917         * doc/posix-functions/strerror.texi: Add a comment.
41919 2010-11-07  Paul Eggert  <eggert@cs.ucla.edu>
41921         fdopendir: fix bug on MacOS X when low on file descriptors
41923         * lib/fdopendir.c (REPLACE_FCHDIR): #define to 0 if not defined.
41924         (fdopendir_with_dup, fd_clone_opendir): Now have extra CWD arg.
41925         All callers changed.
41926         (fdopendir): Invoke save_cwd at the top level, not after using
41927         multiple dup() calls to use up file descriptors.  Then retry
41928         fdopendir_with_dup.  This avoids failure with EMFILE if FD is 1
41929         less than the maximum number of open file descriptors, because
41930         save_cwd fails with errno == EMFILE.  Problem reported by tsteven4
41931         on Mac OS X 10.6.4 for tar 1.24
41932         <http://lists.gnu.org/archive/html/bug-tar/2010-10/msg00084.html>
41933         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00000.html>
41934         and for tar 1.25
41935         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00038.html>.
41937 2010-11-07  Bruno Haible  <bruno@clisp.org>
41939         vasnprintf: Support I flag on glibc systems.
41940         * lib/printf-parse.h (FLAG_LOCALIZED): New macro.
41941         * lib/printf-parse.c (PRINTF_PARSE): Handle the 'I' flag.
41942         * lib/vasnprintf.c (VASNPRINTF): Pass the 'I' flag on to the system's
41943         snprintf function.
41944         * tests/test-vasnprintf-posix.c (test_function): Test the 'I' flag on
41945         glibc systems.
41946         * tests/test-vasnprintf-posix3.c: New file.
41947         * modules/vasnprintf-posix-tests (Files): Add it.
41948         (TESTS, check_PROGRAMS): Add test-vasnprintf-posix3.
41950 2010-11-05  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
41952         [html] Fix copy/paste bug: Use unique name for compiler warnings.
41953         * MODULES.html.sh: For compiler warnings, use name
41954         `ansic_ext_compwarn' since `ansic_ext_misc' is already taken.
41956 2010-11-05  Eric Blake  <eblake@redhat.com>
41958         ceil, floor: avoid spurious failure with icc
41959         * tests/test-ceilf2.c (ceilf_reference): Avoid icc's use of DAZ
41960         [denormals-as-zero] when optimizing without -mieee-fp option.
41961         * tests/test-floorf2.c (floorf_reference): Likewise.
41962         * tests/test-ceilf1.c (dummy): New function.
41963         (main): Use it to outsmart icc's optimization.
41964         * tests/test-floorf1.c (dummy, main): Likewise.
41966         tests: require working signbit
41967         * modules/ceilf-tests (Depends-on): Add signbit.
41968         * modules/ceill-tests (Depends-on): Likewise.
41969         * modules/floorf-tests (Depends-on): Likewise.
41970         * modules/floorl-tests (Depends-on): Likewise.
41971         * modules/round-tests (Depends-on): Likewise.
41972         * modules/roundf-tests (Depends-on): Likewise.
41973         * modules/roundl-tests (Depends-on): Likewise.
41974         * modules/trunc-tests (Depends-on): Likewise.
41975         * modules/truncf-tests (Depends-on): Likewise.
41976         * modules/truncl-tests (Depends-on): Likewise.
41978         strtod: work around icc bug
41979         * lib/strtod.c (minus_zero): Define to working value.
41980         (strtod): Use it to avoid icc bug.
41982         copysign: enhance tests
41983         * modules/copysign-tests (Files): Add minus-zero.h.
41984         * tests/test-copysign.c (main): Also test zeros.
41986 2010-11-04  Eric Blake  <eblake@redhat.com>
41988         ceil, floor, round, trunc: enhance tests of -0
41989         * tests/test-ceilf1.c (main): Ensure correct sign of result.
41990         * tests/test-ceill.c (main): Likewise.
41991         * tests/test-floorf1.c (main): Likewise.
41992         * tests/test-floorl.c (main): Likewise.
41993         * tests/test-round1.c (main): Likewise.
41994         * tests/test-roundf1.c (main): Likewise.
41995         * tests/test-roundl.c (main): Likewise.
41996         * tests/test-trunc1.c (main): Likewise.
41997         * tests/test-truncf1.c (main): Likewise.
41998         * tests/test-truncl.c (main): Likewise.
42000 2010-11-04  Eric Blake  <eblake@redhat.com>
42002         frexp, tests: work around ICC bug with -zero
42003         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Compute -0.0 in a way that
42004         works with more compilers.
42005         * tests/minus-zero.h: New file.
42006         * modules/ceilf-tests (Files): Include it.
42007         * modules/ceill-tests (Files): Likewise.
42008         * modules/floorf-tests (Files): Likewise.
42009         * modules/floorl-tests (Files): Likewise.
42010         * modules/frexp-nolibm-tests (Files): Likewise.
42011         * modules/frexp-tests (Files): Likewise.
42012         * modules/frexpl-nolibm-tests (Files): Likewise.
42013         * modules/frexpl-tests (Files): Likewise.
42014         * modules/isnan-tests (Files): Likewise.
42015         * modules/isnand-nolibm-tests (Files): Likewise.
42016         * modules/isnand-tests (Files): Likewise.
42017         * modules/isnanf-nolibm-tests (Files): Likewise.
42018         * modules/isnanf-tests (Files): Likewise.
42019         * modules/isnanl-nolibm-tests (Files): Likewise.
42020         * modules/isnanl-tests (Files): Likewise.
42021         * modules/round-tests (Files): Likewise.
42022         * modules/roundf-tests (Files): Likewise.
42023         * modules/roundl-tests (Files): Likewise.
42024         * modules/ldexpl-tests (Files): Likewise.
42025         * modules/signbit-tests (Files): Likewise.
42026         * modules/snprintf-posix-tests (Files): Likewise.
42027         * modules/sprintf-posix-tests (Files): Likewise.
42028         * modules/strtod-tests (Files): Likewise.
42029         * modules/trunc-tests (Files): Likewise.
42030         * modules/truncf-tests (Files): Likewise.
42031         * modules/truncl-tests (Files): Likewise.
42032         * modules/vsnprintf-posix-tests (Files): Likewise.
42033         * modules/vsprintf-posix-tests (Files): Likewise.
42034         * modules/vasnprintf-posix-tests (Files): Likewise.
42035         * modules/vasprintf-posix-tests (Files): Likewise.
42036         * tests/test-ceilf1.c (main): Use it.
42037         * tests/test-ceill.c (main): Likewise.
42038         * tests/test-floorf1.c (main): Likewise.
42039         * tests/test-floorl.c (main): Likewise.
42040         * tests/test-frexp.c (main): Likewise.
42041         * tests/test-frexpl.c (main): Likewise.
42042         * tests/test-isnan.c (main): Likewise.
42043         * tests/test-isnand.h (main): Likewise.
42044         * tests/test-isnanf.h (main): Likewise.
42045         * tests/test-isnanl.h (main): Likewise.
42046         * tests/test-ldexpl.c (main): Likewise.
42047         * tests/test-round.c (main): Likewise.
42048         * tests/test-roundf.c (main): Likewise.
42049         * tests/test-roundl.c (main): Likewise.
42050         * tests/test-signbit.c (test_signbitf, test_signbitd)
42051         (test_signbitl): Likewise.
42052         * tests/test-snprintf-posix.h (test_function): Likewise.
42053         * tests/test-sprintf-posix.h (test_function): Likewise.
42054         * tests/test-strtod.c (main): Likewise.
42055         * tests/test-trunc1.c (main): Likewise.
42056         * tests/test-truncf1.c (main): Likewise.
42057         * tests/test-truncl.c (main): Likewise.
42059         isnanl: work around icc bug
42060         * lib/isnan.c (FUNC): Compute run-time NaN under ICC as well.
42062 2010-11-03  Eric Blake  <eblake@redhat.com>
42064         tests: fix compiler warnings
42065         * tests/test-getopt.h (test_getopt): Fix condition.
42066         * tests/test-getopt_long.h (test_getopt_long): Likewise.
42067         * tests/test-pipe2.c (main): Likewise.
42068         * tests/test-quotearg-simple.c (main): Avoid icc warning.
42070         utimens: fix broken m4 test
42071         * m4/utimens.m4 (gl_UTIMENS): Include correct headers.
42073 2010-10-28  Bruno Haible  <bruno@clisp.org>
42075         posix_spawn*, getdtablesize: Relax license.
42076         * modules/posix_spawn (License): Change to LGPLv2+.
42077         * modules/posix_spawnp (License): Likewise.
42078         * modules/posix_spawn-internal (License): Likewise.
42079         * modules/posix_spawnattr_init (License): Likewise.
42080         * modules/posix_spawnattr_getflags (License): Likewise.
42081         * modules/posix_spawnattr_setflags (License): Likewise.
42082         * modules/posix_spawnattr_getpgroup (License): Likewise.
42083         * modules/posix_spawnattr_setpgroup (License): Likewise.
42084         * modules/posix_spawnattr_getschedparam (License): Likewise.
42085         * modules/posix_spawnattr_setschedparam (License): Likewise.
42086         * modules/posix_spawnattr_getschedpolicy (License): Likewise.
42087         * modules/posix_spawnattr_setschedpolicy (License): Likewise.
42088         * modules/posix_spawnattr_getsigdefault (License): Likewise.
42089         * modules/posix_spawnattr_setsigdefault (License): Likewise.
42090         * modules/posix_spawnattr_getsigmask (License): Likewise.
42091         * modules/posix_spawnattr_setsigmask (License): Likewise.
42092         * modules/posix_spawnattr_destroy (License): Likewise.
42093         * modules/posix_spawn_file_actions_init (License): Likewise.
42094         * modules/posix_spawn_file_actions_addclose (License): Likewise.
42095         * modules/posix_spawn_file_actions_adddup2 (License): Likewise.
42096         * modules/posix_spawn_file_actions_addopen (License): Likewise.
42097         * modules/posix_spawn_file_actions_destroy (License): Likewise.
42098         * modules/getdtablesize (License): Likewise.
42099         Requested by Adam Stokes <ajs@redhat.com> for use in netcf.
42101 2010-10-26  Bruno Haible  <bruno@clisp.org>
42103         unistd: Refine workaround from 2009-12-23 against Cygwin bug.
42104         * lib/unistd.in.h: Don't include <stdio.h> and <fcntl.h>, except on
42105         Cygwin and mingw.
42106         Suggested by Eric Blake.
42108 2010-10-26  Bruno Haible  <bruno@clisp.org>
42110         stdio: Work around compilation error due to renameat() on Solaris 10.
42111         * lib/stdio.in.h: Include <unistd.h> on Solaris.
42112         * lib/renameat.c: Don't include <unistd.h> here.
42113         * doc/posix-functions/renameat.texi: Mention the Solaris problem.
42114         Reported by Paul Eggert and Eric Blake.
42116 2010-10-26  Paul Eggert  <eggert@cs.ucla.edu>
42118         renameat: port to Solaris 10, which declares renameat in unistd.h
42120         * lib/renameat.c: Include unistd.h before stdio.h, because
42121         Solaris 10 declares renameat in unistd.h.  Problem encountered
42122         when building GNU tar 1.24 on Solaris 10.
42124 2010-10-26  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
42126         fdopendir: fix C89 compilation
42127         * lib/fdopendir.c (fd_clone_opendir): Move declaration for older
42128         compilers.
42130 2010-10-23  Paul Eggert  <eggert@cs.ucla.edu>
42132         inttostr: simplify by removing unnecessary redundancy
42133         * lib/anytostr.c: Don't include verify.h.
42134         (anytostr): Don't verify that TYPE_SIGNED (inttype) equals
42135         inttype_is_signed.  Instead, disable the bogus GCC warnings, so that
42136         there's no need for inttype_is_signed and for calling TYPE_SIGNED.
42137         * lib/imaxtostr.c (inttype_is_signed): Remove; no longer needed.
42138         * lib/inttostr.c, lib/offtostr.c, lib/uinttostr.c, lib/umaxtostr.c:
42139         Likewise.
42140         * modules/inttostr (Depends-on): Remove 'verify'.
42142 2010-10-23  Bruno Haible  <bruno@clisp.org>
42144         nl_langinfo: Mention problem with CRNCYSTR on NetBSD 5.0.
42145         * doc/posix-functions/nl_langinfo.texi: Mention problem with CRNCYSTR.
42146         Reported by Eric Blake.
42148 2010-10-23  Bruno Haible  <bruno@clisp.org>
42150         Tests: Fix LOCALE_JA on MirBSD 10.
42151         * m4/locale-ja.m4 (gt_LOCALE_JA): Reject a locale identifier that leads
42152         to an UTF-8 locale.
42153         * m4/locale-fr.m4 (gt_LOCALE_FR): Likewise.
42154         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
42155         Reported by Eric Blake.
42157 2010-10-21  Bruno Haible  <bruno@clisp.org>
42159         nl_langinfo test: Avoid test failure on NetBSD 5.
42160         * tests/test-nl_langinfo.c (main): Relax test of nl_langinfo(CRNCYSTR).
42161         Reported by Eric Blake.
42163 2010-10-21  Eric Blake  <eblake@redhat.com>
42165         c-stack: work around libsigsegv 2.8 bug
42166         * lib/c-stack.c (SIGSTKSZ): Increase size to avoid alternate stack
42167         overflow on at least PowerPC64.
42169 2010-10-17  Bruno Haible  <bruno@clisp.org>
42171         userspec: Drop redundant file.
42172         * modules/userspec (Files): Remove lib/inttostr.h.
42174 2010-10-17  Bruno Haible  <bruno@clisp.org>
42176         nl_langinfo tests: Silence some warnings.
42177         * tests/test-nl_langinfo.c: Silence -Wtype-limits warnings.
42178         Reported by Jim Meyering.
42180 2010-10-17  Bruno Haible  <bruno@clisp.org>
42182         Make use of GCC's attribute __alloc_size__.
42183         * lib/xalloc.h (ATTRIBUTE_ALLOC_SIZE): New macro.
42184         (xmalloc, xzalloc, xcalloc, xrealloc, xmemdup, xnmalloc, xnrealloc,
42185         xcharalloc): Declare with ATTRIBUTE_ALLOC_SIZE.
42186         * lib/eealloc.h (eemalloc, eerealloc): Declare with attribute
42187         __alloc_size__.
42188         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
42189         Suggested by Jim Meyering.
42191 2010-10-16  Joel E. Denny  <joeldenny@joeldenny.org>
42193         bootstrap: anchor .gitignore entries.
42194         * build-aux/bootstrap (insert_sorted_if_absent): Replace all uses
42195         with...
42196         (insert_vc_ignore): ... this new function, which prepends `/' to
42197         all .gitignore entries before passing them to
42198         insert_sorted_if_absent.
42200 2010-10-16  Bruno Haible  <bruno@clisp.org>
42202         nextafter: Fix configure check.
42203         * modules/nextafter (configure.ac): Correct expected prototype.
42205 2010-10-16  Bruno Haible  <bruno@clisp.org>
42207         termios: Update documentation.
42208         * doc/posix-headers/termios.texi: Mention remaining mingw problems.
42210 2010-10-16  Bruno Haible  <bruno@clisp.org>
42212         tests: Make them compile with TinyCC.
42213         * tests/test-strstr.c (main): Remove parentheses around array
42214         initializer.
42216 2010-10-15  Eric Blake  <eblake@redhat.com>
42218         ignore-value: make header idempotent
42219         * lib/ignore-value.h: Add double-inclusion guards.
42220         Reported by Stefan Berger.
42222 2010-10-15  Jim Meyering  <meyering@redhat.com>
42224         GNUmakefile: handle "stable" target, not "major"
42225         * top/GNUmakefile (_is-dist-target): s/major/stable/ to match the
42226         lists in maint.mk and announce-gen.  Without this, "make stable"
42227         would fail to ensure that $(VERSION) is up to date.
42229 2010-10-15  Ludovic Courtès  <ludo@gnu.org>
42231         * lib/isnan.c (FUNC): Treat TinyCC (`__TINYC__') like `__SUNPRO_C'
42232         & co.
42234 2010-10-14  Bruno Haible  <bruno@clisp.org>
42236         vasnprintf: Don't set errno to 0.
42237         * lib/vasnprintf.c (VASNPRINTF): Save and restore errno around the
42238         block that sets it to 0.
42239         Reported by Gianluigi Tiesi <sherpya@netfarm.it>.
42241 2010-10-14  Bruno Haible  <bruno@clisp.org>
42243         socketlib: Fix.
42244         * modules/socketlib (Files): Add m4/sys_socket_h.m4. Needed for
42245         gl_PREREQ_SYS_H_WINSOCK2.
42246         Reported by Ian Beckwith <ianb@erislabs.net>.
42248 2010-10-13  Jim Meyering  <meyering@redhat.com>
42250         test-select-stdin.c: avoid warn_unused_result warnings
42251         * tests/test-select-stdin.c: Include "macros.h".
42252         ASSERT that read and fflush succeed.
42254 2010-10-13  Jim Meyering  <meyering@redhat.com>
42256         git-version-gen: do require git-VC'd files in cwd
42257         * build-aux/git-version-gen: Reject a git version string
42258         if there are no commits associated with the current directory.
42259         This avoids an unlikely false-positive (unrelated dir whose parent
42260         repository also contains a tag matching v*), as pointed out
42261         by Giuseppe Scrivano in
42262         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=23664
42264 2010-10-13  Paul Eggert  <eggert@cs.ucla.edu>
42266         argv-iter: omit nonconforming declaration
42267         * lib/argv-iter.h (enum argv_iter_err): Omit the useless
42268         enum arg_iter_err declaration, which doesn't conform to C99.
42269         Solaris 10 cc warns about this.
42271 2010-10-13  Eric Blake  <eblake@redhat.com>
42273         termios: fix compilation on mingw
42274         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Set default.
42275         (gl_TERMIOS_H): Adjust it on mingw.
42276         * modules/termios (Makefile.am): Substitute new key.
42277         * lib/termios.in.h (includes): Make include_next conditional.
42278         * doc/posix-headers/termios.texi (termios.h): Update
42279         documentation.
42280         Reported by Daniel P. Berrange.
42282 2010-10-13  Jim Meyering  <meyering@redhat.com>
42284         git-version-gen: don't require that .git/ be in the current dir
42285         * build-aux/git-version-gen: Adjust this script so that it works
42286         when run from any working directory beneath the top-level .git/-
42287         containing directory.  Inspired by a patch from Giuseppe Scrivano,
42288         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=21847
42290         test-select: avoid warn_unused_result warnings
42291         * tests/test-select.c: Include "macros.h".
42292         ASSERT that each call to read, write, and pipe succeeds.
42293         While not technically required, also check each "close".
42294         * modules/select-tests (Files): Add tests/macros.h.
42296         test-symlinkat: remove declaration of unused local
42297         * tests/test-symlinkat.c (main): Remove unused local, "buf".
42299         test-inttostr: avoid shadowing warnings
42300         * tests/test-inttostr.c (main): Rename local, "buf" to "b",
42301         and use malloc rather than the stack for the same reason as
42302         mentioned in the comment justifying the other allocation.
42304 2010-10-11  Bruno Haible  <bruno@clisp.org>
42306         stdlib: Allow multiple gnulib generated replacements to coexist.
42307         * lib/stdlib.in.h (struct random_data): Avoid identical redefinition.
42308         Reported by Sam Steingold <sds@gnu.org>.
42310 2010-10-11  Jim Meyering  <meyering@redhat.com>
42312         fix a documentation typo
42313         * doc/posix-functions/futimens.texi (futimens): Fix typo: s/itme/item/
42315 2010-10-11  Eric Blake  <eblake@redhat.com>
42317         futimens: work around Solaris 11 bug
42318         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect the bug.
42319         * tests/test-futimens.h (test_futimens): Enhance, rather than
42320         weaken test.
42321         * doc/posix-functions/futimens.texi (futimens): Document the bug.
42323 2010-10-11  Paul Eggert  <eggert@cs.ucla.edu>
42325         Indentation.
42326         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Indent
42327         higher-level operators more to the left.
42329 2010-10-11  Jim Meyering  <meyering@redhat.com>
42331         test-futimens: avoid unwarranted test failure on Solaris 5.11
42332         * tests/test-futimens.h (test_futimens): When provoking EBADF, use an
42333         invalid file descriptor, so we don't provoke EFAULT from Solaris 5.11,
42334         because it tries to dereference the NULL name argument.
42336 2010-10-11  Bruno Haible  <bruno@clisp.org>
42338         Indentation.
42339         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Improve
42340         indentation.
42342 2010-10-11  Jim Meyering  <meyering@redhat.com>
42344         spawn.in.h: make indentation consistent with parentheses
42345         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap):
42346         Make indentation consistent with parentheses.
42348 2010-10-11  Gary V. Vaughan  <gary@gnu.org>
42350         Fix mismatched parens in previous commit
42351         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Fix mismatched
42352         parens.
42354 2010-10-10  Paul Eggert  <eggert@cs.ucla.edu>
42356         rewrite int foo[2*X-1] to verify(X) or to int foo[X?1:-1]
42358         * lib/float+.h (verify_sizeof_flt, verify_sizeof_dbl):
42359         (verify_sizeof_ldbl): Rewrite 2*X-1 to X?1:-1.
42360         * lib/malloca.c: Include "verify.h".
42361         (verify1): Remove, replacing with a verify call.
42362         * lib/relocwrapper.c (verify1): Likewise.
42363         * lib/vasnprintf.c (mp_limb_verify, mp_twolimb_verify, TCHAR_T_verify):
42364         Likewise.
42365         * modules/malloca (Depends-on): Add 'verify'.
42366         * modules/relocatable-prog-wrapper (Depends-on): Add 'verify'.
42367         * modules/vasnprintf (Depends-on): Add 'verify'.
42368         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
42369         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
42370         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
42371         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
42372         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
42373         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
42374         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
42376         prefer (X ? 1 : -1) when converting from boolean (1,0) to int (1,-1)
42378         Formerly the style was sometimes 2*X - 1, because the C standard
42379         was wrongly thought to disallow ?: in integral constant expressions.
42380         * lib/inet_ntop.c (verify_int_size): Rewrite 2*X-7 (!) to 4<=X?1:-1.
42381         * lib/signal.in.h (verify_NSIG_constraint): Rewrite 2*X-1 to X?1:-1.
42382         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
42383         * lib/stdint.in.h (_verify_intmax_size): Likewise.
42384         * lib/time.in.h (struct __time_t_must_be_integral): Rewrite
42385         2 * ((time_t) 1 / 2 == 0) - 1 to (time_t) 1; this suffices to
42386         verify that time_t cannot be floating.
42388 2010-10-08  Eric Blake  <eblake@redhat.com>
42390         time: enforce recent POSIX ruling that time_t is integral
42391         * lib/time.in.h (__time_t_must_be_integral): Detect any
42392         problematic systems, allowing the rest of gnulib to assume POSIX.
42394 2010-10-08  Jim Meyering  <meyering@redhat.com>
42396         fdopendir: fix a bug on systems lacking openat and /proc support
42397         OpenBSD 4.7 is one such system.  The most noticeable effect was
42398         failure of any application making nontrivial use of fts: rm, du,
42399         chown, chmod etc.  E.g., "mkdir -p a/b; ./rm -rf a" would fail with
42400           ./rm: traversal failed: `a': Bad file descriptor
42401         Debugging that, you see that even though FD 6 was closed just
42402         prior to the opendir call in fd_clone_opendir, its resulting
42403         dir->dd_fd was 8, rather than the expected value of 6:
42405         Breakpoint 3, fdopendir_with_dup (fd=6, older_dupfd=-1) at fdopendir.c:93
42406         93                close (fd);
42407         (gdb) n
42408         94                dir = fd_clone_opendir (dupfd);
42409         (gdb) n
42410         95                saved_errno = errno;
42411         (gdb) p dir->dd_fd
42412         $11 = 8
42414         Notice how it closes FD 6, then gets a DIR* pointer using FD 8.
42415         The problem is that on OpenBSD, fd_clone_opendir has to resort
42416         to using the old-style save/restore CWD mechanism, due to its
42417         lack of openat/proc support, and *that* would steal the FD (6)
42418         that opendir was supposed to use.
42420         The fix is to squirrel away the desired FD so that save_cwd uses a
42421         different one, and then free the dest FD right before calling opendir.
42422         That guarantees opendir will use the required file descriptor.
42424         * lib/fdopendir.c (fd_clone_opendir): Handle the above.
42426 2010-10-08  Bruno Haible  <bruno@clisp.org>
42428         sys_select: Avoid warning due to undeclared memset() on OpenBSD 4.5.
42429         * lib/sys_select.in.h: Include <string.h> also on OpenBSD.
42431 2010-10-08  Bruno Haible  <bruno@clisp.org>
42433         nanosleep: Make replacement POSIX compliant.
42434         * lib/nanosleep.c (nanosleep): Return -1/EINVAL if the delay's tv_nsec
42435         is out of range.
42436         Reported by Jim Meyering.
42438 2010-10-08  Paul Eggert  <eggert@cs.ucla.edu>
42440         bootstrap: add hook for altering gnulib.mk, for Bison
42441         * build-aux/bootstrap (gnulib_mk_hook): New function, so that
42442         the Bison bootstrapping process can rewrite file names and variables
42443         in this file before later parts of 'bootstrap' use the file.
42444         Bison wants to include lib/gnulib.mk from the top-level makefile,
42445         so it needs the file names in this file to be relative to the top
42446         level, not relative to lib; plus it needs variable names to be
42447         rewritten.
42448         (slurp): Use the new function.
42450         bootstrap: reformat for readability
42451         * build-aux/bootstrap: Rewrite to avoid lines longer than 80 columns.
42453 2010-10-08  Eric Blake  <eblake@redhat.com>
42455         docs: update cygwin progress
42456         * doc/posix-functions/cacos.texi (cacos): Added after cygwin
42457         1.7.7.
42458         * doc/posix-functions/cacosf.texi (cacosf): Likewise.
42459         * doc/posix-functions/cacosh.texi (cacosh): Likewise.
42460         * doc/posix-functions/cacoshf.texi (cacoshf): Likewise.
42461         * doc/posix-functions/carg.texi (carg): Likewise.
42462         * doc/posix-functions/cargf.texi (cargf): Likewise.
42463         * doc/posix-functions/casin.texi (casin): Likewise.
42464         * doc/posix-functions/casinf.texi (casinf): Likewise.
42465         * doc/posix-functions/casinh.texi (casinh): Likewise.
42466         * doc/posix-functions/casinhf.texi (casinhf): Likewise.
42467         * doc/posix-functions/catan.texi (catan): Likewise.
42468         * doc/posix-functions/catanf.texi (catanf): Likewise.
42469         * doc/posix-functions/catanh.texi (catanh): Likewise.
42470         * doc/posix-functions/catanhf.texi (catanhf): Likewise.
42471         * doc/posix-functions/ccos.texi (ccos): Likewise.
42472         * doc/posix-functions/ccosf.texi (ccosf): Likewise.
42473         * doc/posix-functions/ccosh.texi (ccosh): Likewise.
42474         * doc/posix-functions/ccoshf.texi (ccoshf): Likewise.
42475         * doc/posix-functions/cexp.texi (cexp): Likewise.
42476         * doc/posix-functions/cexpf.texi (cexpf): Likewise.
42477         * doc/posix-functions/cimag.texi (cimag): Likewise.
42478         * doc/posix-functions/cimagf.texi (cimagf): Likewise.
42479         * doc/posix-functions/clog.texi (clog): Likewise.
42480         * doc/posix-functions/clogf.texi (clogf): Likewise.
42481         * doc/posix-functions/conj.texi (conj): Likewise.
42482         * doc/posix-functions/conjf.texi (conjf): Likewise.
42483         * doc/posix-functions/cpow.texi (cpow): Likewise.
42484         * doc/posix-functions/cpowf.texi (cpowf): Likewise.
42485         * doc/posix-functions/cproj.texi (cproj): Likewise.
42486         * doc/posix-functions/cprojf.texi (cprojf): Likewise.
42487         * doc/posix-functions/creal.texi (creal): Likewise.
42488         * doc/posix-functions/crealf.texi (crealf): Likewise.
42489         * doc/posix-functions/csin.texi (csin): Likewise.
42490         * doc/posix-functions/csinf.texi (csinf): Likewise.
42491         * doc/posix-functions/csinh.texi (csinh): Likewise.
42492         * doc/posix-functions/csinhf.texi (csinhf): Likewise.
42493         * doc/posix-functions/csqrt.texi (csqrt): Likewise.
42494         * doc/posix-functions/csqrtf.texi (csqrtf): Likewise.
42495         * doc/posix-functions/ctan.texi (ctan): Likewise.
42496         * doc/posix-functions/ctanf.texi (ctanf): Likewise.
42497         * doc/posix-functions/ctanh.texi (ctanh): Likewise.
42498         * doc/posix-functions/ctanhf.texi (ctanhf): Likewise.
42499         * doc/posix-headers/complex.texi (complex.h): Likewise.
42501 2010-10-07  Jim Meyering  <meyering@redhat.com>
42503         parse-datetime: avoid compilation failure on OpenBSD 4.7
42504         * lib/parse-datetime.y (_STDLIB_H) [_STDLIB_H_]: Define.
42505         This works around a compilation failure on OpenBSD 4.7:
42506         http://thread.gmane.org/gmane.comp.parsers.bison.bugs/3418
42508 2010-10-07  Eric Blake  <eblake@redhat.com>
42510         docs: update cygwin progress
42511         * doc/glibc-functions/mkostemp.texi (mkostemp): Added in cygwin
42512         1.7.6.
42513         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
42514         * doc/posix-headers/fenv.texi (fenv.h): Added after cygwin 1.7.7.
42515         * doc/posix-functions/feclearexcept.texi (feclearexcept): Likewise.
42516         * doc/posix-functions/fegetenv.texi (fegetenv): Likewise.
42517         * doc/posix-functions/fegetexceptflag.texi (fegetexceptflag):
42518         Likewise.
42519         * doc/posix-functions/fegetround.texi (fegetround): Likewise.
42520         * doc/posix-functions/feholdexcept.texi (feholdexcept): Likewise.
42521         * doc/posix-functions/feraiseexcept.texi (feraiseexcept):
42522         Likewise.
42523         * doc/posix-functions/fesetenv.texi (fesetenv): Likewise.
42524         * doc/posix-functions/fesetexceptflag.texi (fesetexceptflag):
42525         Likewise.
42526         * doc/posix-functions/fesetround.texi (fesetround): Likewise.
42527         * doc/posix-functions/fetestexcept.texi (fetestexcept): Likewise.
42528         * doc/posix-functions/feupdateenv.texi (feupdateenv): Likewise.
42529         * doc/glibc-functions/feenableexcept.texi (feenableexcept):
42530         Likewise.
42531         * doc/glibc-functions/fedisableexcept.texi (fedisableexcept):
42532         Likewise.
42533         * doc/glibc-functions/fegetexcept.texi (fegetexcept): Likewise.
42535         docs: update parse-datetime history
42536         * doc/parse-datetime.texi (Authors of parse_datetime): Better
42537         documentation of this function's history and alternatives.
42539         cygwin: use more robust version check
42540         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Don't
42541         exclude an eventual cygwin 1.9.1.
42542         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
42543         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
42544         (gl_FUNC_STRCASESTR): Likewise.
42545         Reported by Bruno Haible.
42547 2010-10-06  Bruno Haible  <bruno@clisp.org>
42549         string, sys_select: Avoid #including large headers unless necessary.
42550         * lib/string.in.h: Don't include <unistd.h> except on NetBSD.
42551         * lib/sys_select.in.h: Don't include <string.h> except on Solaris,
42552         OSF/1, BeOS, Haiku.
42553         Reported by Jim Meyering.
42555 2010-10-05  Eric Blake  <eblake@redhat.com>
42557         memmem, strstr, strcasestr: fix bug with long periodic needle
42558         * lib/str-two-way.h (two_way_long_needle): Avoid bug with long
42559         periodic needle having false positive.
42560         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Detect bug in glibc 2.12
42561         and cygwin 1.7.7.
42562         (gl_FUNC_MEMMEM): Be more pessimistic when cross-compiling.
42563         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
42564         (gl_FUNC_STRCASESTR): Likewise.
42565         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
42566         * tests/test-memmem.c (main): Expose the bug.
42567         * tests/test-strcasestr.c (main): Likewise.
42568         * tests/test-strstr.c (main): Likewise.
42569         * tests/test-c-strcasestr.c (main): Likewise.
42570         * doc/glibc-functions/memmem.texi (memmem): Document the bug.
42571         * doc/posix-functions/strstr.texi (strstr): Likewise.
42572         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
42573         Reported via http://sourceware.org/bugzilla/show_bug.cgi?id=12092
42575 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
42577         parse-datetime: do some more renaming
42578         * doc/parse-datetime.texi (Authors of parse_datetime): Call it
42579         parse_datetime, not get_date.  Mention the renaming.
42580         * lib/parse-datetime.y:  Call it parse_datetime, not getdate,
42581         in comments.
42582         * m4/bison.m4: Likewise.
42584 2010-10-05  Eric Blake  <eblake@redhat.com>
42586         parse-datetime: better name than get_date
42587         * NEWS: Reword the deprecation notice.
42588         * modules/get_date: Rename to modules/parse-datetime.
42589         * modules/get_date-tests: Rename to modules/parse-datetime-tests.
42590         * m4/get_date.m4: Rename to m4/parse-datetime.m4.
42591         * lib/get_date.y: Rename to lib/parse-datetime.y.
42592         * tests/test-get_date.c: Rename to tests/test-parse-datetime.c.
42593         * doc/get_date.texi: Rename to doc/parse-datetime.texi.
42594         * doc/getdate.texi: Provide fallback wrapper.
42595         * lib/getdate.h: Move guts, and wrap...
42596         * lib/parse-datetime.h: ...new file.
42597         * lib/parse-datetime.y (get_date): Rename...
42598         (parse_datetime): ...to this.
42599         * m4/parse-datetime.m4 (gl_GET_DATE): Rename...
42600         (gl_PARSE_DATETIME): ...to this.
42601         * doc/posix-functions/getdate.texi (get_date): Provide fallback
42602         documentation.
42603         * modules/getdate (Files): Provide fallback docs and header.
42604         (Notice, Depends-on): Update references.
42605         * tests/test-parse-datetime.c: Likewise.
42606         * DEPENDENCIES: Likewise.
42607         * MODULES.html.sh (Date and time <time.h>): Likewise.
42608         * doc/parse-datetime.texi (Date input formats)
42609         (Authors of parse_datetime): Likewise.
42610         * modules/parse-datetime (Files, configure.ac, Makefile.am)
42611         (Include): Likewise.
42612         * modules/parse-datetime-tests (Files, Makefile.am): Likewise.
42613         * gnulib-tool: Likewise.
42614         * m4/bison.m4 (gl_BISON): Likewise.
42615         Suggested by Bruno Haible.
42617 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
42619         more ports to Solaris tr, which needs [] around ranges
42620         * gnulib-tool: Solaris tr needs [] around ranges.
42621         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
42622         * tests/test-pipe-filter-gi1.c (main): Likewise.
42623         * tests/test-pipe-filter-ii1.c (main): Likewise.
42625 2010-10-05  Eric Blake  <eblake@redhat.com>
42627         bootstrap: fix Solaris regression
42628         * build-aux/bootstrap (check_versions): Solaris tr still needs []
42629         around ranges.
42630         Reported by Pádraig Brady.
42632         bootstrap: work with pkg-config
42633         * build-aux/bootstrap (check_versions): Also transliterate - in
42634         prerequisite name.
42635         (print_versions): Be robust to any \ in $buildreq.  Avoid listing
42636         prerequisites that were already found, to avoid confusion.
42637         Reported by Justin Clift.
42639         faccessat: remove unused wrappers
42640         * lib/openat.h (accessat, euidaccesat): Delete, since the mere
42641         presence of these wrappers dragged in -lgen on Solaris.
42642         Reported by Clemens Brogi; fix suggested by Paul Eggert.
42644 2010-10-05  Jim Meyering  <meyering@redhat.com>
42646         tests: require @PRAGMA_COLUMNS@ with each @PRAGMA_SYSTEM_HEADER@
42647         * Makefile (sc_pragma_columns): New syntax-check rule.
42649 2010-10-04  Bruno Haible  <bruno@clisp.org>
42651         gnulib-tool: Synthesize appropriate _LDFLAGS for a libtool library.
42652         * gnulib-tool (func_emit_lib_Makefile_am): When preparing for a libtool
42653         library, put '-no-undefined' and the link dependencies into _LDFLAGS.
42654         Reported by Bruce Korb and Eric Blake.
42656 2010-10-04  Bruno Haible  <bruno@clisp.org>
42658         threadlib: Make option --with-libpth-prefix work.
42659         * m4/threadlib.m4 (gl_THREADLIB_BODY): When testing whether pth works,
42660         use $LIBPTH, not just -lpth.
42662 2010-10-04  Bruno Haible  <bruno@clisp.org>
42664         Avoid line length limitation from HP NonStop system header files.
42665         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define also PRAGMA_COLUMNS.
42666         * lib/arpa_inet.in.h: Use PRAGMA_COLUMNS.
42667         * lib/ctype.in.h: Likewise.
42668         * lib/dirent.in.h: Likewise.
42669         * lib/errno.in.h: Likewise.
42670         * lib/fcntl.in.h: Likewise.
42671         * lib/float.in.h: Likewise.
42672         * lib/getopt.in.h: Likewise.
42673         * lib/iconv.in.h: Likewise.
42674         * lib/inttypes.in.h: Likewise.
42675         * lib/langinfo.in.h: Likewise.
42676         * lib/locale.in.h: Likewise.
42677         * lib/math.in.h: Likewise.
42678         * lib/netdb.in.h: Likewise.
42679         * lib/netinet_in.in.h: Likewise.
42680         * lib/poll.in.h: Likewise.
42681         * lib/pthread.in.h: Likewise.
42682         * lib/pty.in.h: Likewise.
42683         * lib/sched.in.h: Likewise.
42684         * lib/se-selinux.in.h: Likewise.
42685         * lib/search.in.h: Likewise.
42686         * lib/signal.in.h: Likewise.
42687         * lib/spawn.in.h: Likewise.
42688         * lib/stdarg.in.h: Likewise.
42689         * lib/stddef.in.h: Likewise.
42690         * lib/stdint.in.h: Likewise.
42691         * lib/stdio.in.h: Likewise.
42692         * lib/stdlib.in.h: Likewise.
42693         * lib/string.in.h: Likewise.
42694         * lib/strings.in.h: Likewise.
42695         * lib/sys_file.in.h: Likewise.
42696         * lib/sys_ioctl.in.h: Likewise.
42697         * lib/sys_select.in.h: Likewise.
42698         * lib/sys_socket.in.h: Likewise.
42699         * lib/sys_stat.in.h: Likewise.
42700         * lib/sys_time.in.h: Likewise.
42701         * lib/sys_times.in.h: Likewise.
42702         * lib/sys_utsname.in.h: Likewise.
42703         * lib/sys_wait.in.h: Likewise.
42704         * lib/sysexits.in.h: Likewise.
42705         * lib/termios.in.h: Likewise.
42706         * lib/time.in.h: Likewise.
42707         * lib/unistd.in.h: Likewise.
42708         * lib/wchar.in.h: Likewise.
42709         * lib/wctype.in.h: Likewise.
42710         * modules/arpa_inet (Makefile.am): Substitute PRAGMA_COLUMNS.
42711         * modules/ctype (Makefile.am): Likewise.
42712         * modules/dirent (Makefile.am): Likewise.
42713         * modules/errno (Makefile.am): Likewise.
42714         * modules/fcntl-h (Makefile.am): Likewise.
42715         * modules/float (Makefile.am): Likewise.
42716         * modules/getopt-posix (Makefile.am): Likewise.
42717         * modules/iconv-h (Makefile.am): Likewise.
42718         * modules/inttypes (Makefile.am): Likewise.
42719         * modules/langinfo (Makefile.am): Likewise.
42720         * modules/locale (Makefile.am): Likewise.
42721         * modules/math (Makefile.am): Likewise.
42722         * modules/netdb (Makefile.am): Likewise.
42723         * modules/netinet_in (Makefile.am): Likewise.
42724         * modules/poll-h (Makefile.am): Likewise.
42725         * modules/pthread (Makefile.am): Likewise.
42726         * modules/pty (Makefile.am): Likewise.
42727         * modules/sched (Makefile.am): Likewise.
42728         * modules/search (Makefile.am): Likewise.
42729         * modules/selinux-h (Makefile.am): Likewise.
42730         * modules/signal (Makefile.am): Likewise.
42731         * modules/spawn (Makefile.am): Likewise.
42732         * modules/stdarg (Makefile.am): Likewise.
42733         * modules/stddef (Makefile.am): Likewise.
42734         * modules/stdint (Makefile.am): Likewise.
42735         * modules/stdio (Makefile.am): Likewise.
42736         * modules/stdlib (Makefile.am): Likewise.
42737         * modules/string (Makefile.am): Likewise.
42738         * modules/strings (Makefile.am): Likewise.
42739         * modules/sys_file (Makefile.am): Likewise.
42740         * modules/sys_ioctl (Makefile.am): Likewise.
42741         * modules/sys_select (Makefile.am): Likewise.
42742         * modules/sys_socket (Makefile.am): Likewise.
42743         * modules/sys_stat (Makefile.am): Likewise.
42744         * modules/sys_time (Makefile.am): Likewise.
42745         * modules/sys_times (Makefile.am): Likewise.
42746         * modules/sys_utsname (Makefile.am): Likewise.
42747         * modules/sys_wait (Makefile.am): Likewise.
42748         * modules/sysexits (Makefile.am): Likewise.
42749         * modules/termios (Makefile.am): Likewise.
42750         * modules/time (Makefile.am): Likewise.
42751         * modules/unistd (Makefile.am): Likewise.
42752         * modules/wchar (Makefile.am): Likewise.
42753         * modules/wctype (Makefile.am): Likewise.
42755 2010-10-04  Bruno Haible  <bruno@clisp.org>
42757         read-file tests: Avoid a test failure on NonStop Kernel.
42758         * tests/test-read-file.c (main): Don't assume that /etc/resolv.conf is
42759         a regular file.
42760         Reported by Joachim Schmitz <schmitz@hp.com>.
42762 2010-10-03  Bruno Haible  <bruno@clisp.org>
42764         gnulib-tool: Fixes for --create-testdir with --libtool.
42765         * gnulib-tool (func_get_automake_snippet): Don't augment
42766         EXTRA_lib_SOURCES for the pt_chown module, since pt_chown.o goes into
42767         an executable.
42768         (func_create_testdir): Handle module 'alloca' like func_import.
42769         Reported by Bruce Korb <bruce.korb@gmail.com>.
42771 2010-10-03  Paul Eggert  <eggert@cs.ucla.edu>
42773         Avoid some lines longer than 80 characters.
42774         * lib/stdint.in.h: Break long comment lines.
42775         * lib/math.in.h: Likewise.
42776         (_GL_NUM_UINT_WORDS): New macro, for readability.
42777         (gl_signbitf, gl_signbitd, gl_signbitl): Use it.
42778         * lib/stdio.in.h: Break lines in _GL_WARN_ON_USE calls.
42779         * lib/stdlib.in.h: Likewise.
42780         * lib/spawn.in.h: Likewise.
42781         * lib/sys_socket.in.h: Update an URL.
42782         * lib/sys_stat.in.h: Break long line.
42784 2010-10-03  Reuben Thomas  <rrt@sc3d.org>
42786         Improve pmccabe2html.
42787         * build-aux/pmccabe2html: Add CYCLO_SRCS variable, and make
42788         cyclo-$(PACKAGE).html depend on it, so the HTML file is remade
42789         when the sources change. Remove the line in the HTML about "Used
42790         ranges" (which implied that there might be other unused ranges),
42791         rename "Resume" to "Summary" (easier to understand for more users).
42792         * build-aux/pmccabe.css: Removing the dashed dividers, some unused
42793         styles, and some unnecessary blank lines.
42795 2010-10-03  Bruno Haible  <bruno@clisp.org>
42796             Joachim Schmitz  <schmitz@hp.com>  (tiny change)
42798         acl: Add support for ACLs on NonStop Kernel.
42799         * m4/acl.m4 (gl_FUNC_ACL): For Solaris, test for facl(), not for acl().
42800         Check whether the function aclsort() exists.
42801         * lib/acl-internal.h: For Solaris, test HAVE_FACL, not HAVE_ACL.
42802         (acl_nontrivial) [HAVE_ACLSORT]: New declaration.
42803         * lib/file-has-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
42804         (acl_nontrivial [HAVE_ACLSORT]: New function.
42805         (file_has_acl): Implement for NonStop Kernel.
42806         * lib/set-mode-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
42807         (qset_acl): Implement for NonStop Kernel.
42808         * lib/copy-acl.c (qcopy_acl): Implement for NonStop Kernel.
42809         * tests/test-sameacls.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
42810         (main): Implement for NonStop Kernel.
42811         * tests/test-file-has-acl.sh (acl_flavor): Set to 'nsk' on NonStop
42812         Kernel. Handle this flavor.
42813         * tests/test-set-mode-acl.sh: Likewise.
42814         * tests/test-copy-acl.sh: Likewise.
42815         * tests/test-copy-file.sh: Likewise.
42817 2010-10-03  Bruno Haible  <bruno@clisp.org>
42819         Info about ACLs on NonStop Kernel.
42820         * doc/acl-resources.txt: Add info about NonStop Kernel.
42821         References by Joachim Schmitz <schmitz@hp.com>.
42823 2010-10-02  Bruno Haible  <bruno@clisp.org>
42825         Define missing EDQUOT on NonStop Kernel.
42826         * lib/errno.in.h (EDQUOT): Assign a value if missing.
42827         * lib/strerror.c (rpl_strerror): Handle missing EDQUOT.
42828         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether EDQUOT is
42829         missing.
42830         * doc/posix-headers/errno.texi: Mention the NSK bug.
42831         * doc/posix-functions/strerror.texi: Mention the workaround on NSK.
42832         Reported by Joachim Schmitz <schmitz@hp.com>.
42834 2010-10-02  Bruno Haible  <bruno@clisp.org>
42836         Update doc for POSIX:2008.
42837         * doc/posix-headers/*.texi [except ucontext.texi, sys_timeb.texi]:
42838         Update URL of POSIX specification.
42840 2010-10-02  Bruno Haible  <bruno@clisp.org>
42842         gnulib-tool: In testdirs, use the newest available config.{guess.sub}.
42843         * gnulib-tool (func_create_testdir): Use config.guess and config.sub
42844         from gnulib, not from Automake.
42846 2010-10-02  Bruno Haible  <bruno@clisp.org>
42848         New module 'system-posix'.
42849         * modules/system-posix: New file.
42850         * lib/stdlib.in.h: Include <sys/wait.h> only when the 'system-posix'
42851         module is present.
42852         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
42853         GNULIB_SYSTEM_POSIX.
42854         * modules/stdlib (Depends-on): Remove sys_wait.
42855         (Makefile.am): Substitute GNULIB_SYSTEM_POSIX.
42856         * doc/posix-functions/system.texi: Mention the new module.
42857         * doc/posix-headers/stdlib.texi: Likewise.
42858         * tests/test-stdlib.c: If GNULIB_TEST_SYSTEM_POSIX is not defined,
42859         define test_sys_wait_macros to a no-op.
42860         Reported by Sam Steingold <sds@gnu.org>.
42862 2010-09-30  Bruno Haible  <bruno@clisp.org>
42864         More renaming from 'getdate' to 'get_date'.
42865         * doc/get_date.texi: Renamed from doc/getdate.texi.
42866         * modules/get_date (Files): Update.
42867         * MODULES.html.sh (Date and time <time.h>): Update.
42868         * DEPENDENCIES: Update.
42869         * gnulib-tool: Update comment.
42870         * m4/bison.m4 (gl_BISON): Likewise.
42871         * m4/get_date.m4 (gl_GET_DATE): Likewise.
42873 2010-09-30  Justin Clift  <jclift@redhat.com>  (tiny change)
42875         bootstrap: support ACLOCAL_FLAGS during aclocal
42876         * build-aux/bootstrap (aclocal): Honor ACLOCAL_FLAGS, so the user
42877         can add additional -I dir for third-party .m4 files.
42879 2010-09-30  Eric Blake  <eblake@redhat.com>
42881         bootstrap: use glibtoolize on MacOS
42882         * build-aux/bootstrap (check_versions): Convert libtool into
42883         libtoolize.
42884         (tool search): Move libtool check earlier, and look for
42885         glibtoolize for MacOS.
42886         (gnulib_tool_options): Auto-add --libtool when appropriate.
42887         Reported by Justin Clift.
42889         poll: fix typo that broke test on MacOS
42890         * m4/poll.m4 (gl_FUNC_POLL): Add missing test.
42891         Reported by Justin Clift.
42893         getdate: rename to get_date
42894         Note: getdate.h is not renamed, to minimize client impact.
42895         * modules/getdate: Mark obsolete.  Move old contents...
42896         * modules/get_date: ...to new module name.
42897         * modules/getdate-tests: Move...
42898         * modules/get_date-tests: ...here.
42899         * m4/getdate.m4: Move...
42900         * m4/get_date.m4: ...here, and rename gl_GETDATE to gl_GET_DATE.
42901         * lib/getdate.y: Move...
42902         * lib/get_date.y: ...here.
42903         * tests/test-getdate.c: Move...
42904         * tests/test-get_date.c: ...here.
42905         * doc/posix-functions/getdate.texi (getdate): Update name.
42906         * NEWS: Mention the change.
42908 2010-09-29  Bruno Haible  <bruno@clisp.org>
42910         Separate the module 'waitpid' from the module 'sys_wait'.
42911         * lib/sys_wait.in.h (waitpid): Declare only if the 'waitpid' module is
42912         present.
42913         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Invoke
42914         gl_MODULE_INDICATOR_FOR_TESTS.
42915         (gl_SYS_WAIT_H_DEFAULTS): Initialize GNULIB_WAITPID.
42916         * modules/sys_wait (Depends-on): Remove waitpid.
42917         (Makefile.am): Substitute GNULIB_WAITPID.
42918         * modules/waitpid (configure.ac): Invoke gl_SYS_WAIT_MODULE_INDICATOR.
42919         * tests/test-sys_wait-c++.cc (GNULIB_NAMESPACE::waitpid): Check the
42920         signature only if the 'waitpid' module is present.
42921         * doc/posix-functions/waitpid.texi: Mention the 'waitpid' module.
42922         * NEWS: Mention the change.
42923         * modules/grantpt (Depends-on): Add waitpid.
42924         * modules/wait-process (Depends-on): Likewise.
42926 2010-09-29  Bruno Haible  <bruno@clisp.org>
42928         More tests for module 'sys_wait'.
42929         * modules/sys_wait-c++-tests: New file.
42930         * tests/test-sys_wait-c++.cc: New file.
42931         * modules/sys_wait-tests (Depends-on): Add sys_wait-c++-tests.
42932         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
42934 2010-09-29  Bruno Haible  <bruno@clisp.org>
42936         New module 'waitpid'.
42937         * lib/waitpid.c: New file, extracted from lib/sys_wait.in.h.
42938         * lib/sys_wait.in.h: Include <sys/types.h>, c++defs.h, warn-on-use.h.
42939         Don't include <process.h>.
42940         (waitpid): Declare only, using modern idiom.
42941         * m4/waitpid.m4: New file.
42942         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Check whether waitpid is declared.
42943         * modules/waitpid: New file.
42944         * modules/sys_wait (Depends-on): Add c++defs, warn-on-use, waitpid.
42945         (Makefile.am): Update.
42946         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
42948 2010-09-28  Bruno Haible  <bruno@clisp.org>
42950         poll: Assume ANSI C.
42951         * lib/poll.c (poll): Use an ANSI C declaration.
42953 2010-09-28  Bruno Haible  <bruno@clisp.org>
42955         poll-h: Create poll.h on all platforms.
42956         * lib/poll.in.h: Use double-inclusion guard. Don't define POLL*,
42957         struct pollfd, nfds_t, INFTIM when the system has <poll.h>.
42958         * m4/poll_h.m4 (gl_POLL_H): Set HAVE_POLL_H. Invoke
42959         gl_CHECK_NEXT_HEADERS. Don't set POLL_H.
42960         (gl_REPLACE_POLL_H): Don't set POLL_H.
42961         (gl_POLL_H_DEFAULTS): Don't initialize POLL_H.
42962         * modules/poll-h (Depends-on): Add include_next.
42963         (Makefile.am): Create poll.h unconditionally. Substitute also
42964         HAVE_POLL_H, INCLUDE_NEXT, PRAGMA_SYSTEM_HEADER, NEXT_POLL_H.
42966 2010-09-28  Bruno Haible  <bruno@clisp.org>
42968         Tests for module 'poll-h'.
42969         * modules/poll-h-c++-tests: New file.
42970         * tests/test-poll-h-c++.cc: New file.
42972         Tests for module 'poll-h'.
42973         * modules/poll-h-tests: New file.
42974         * tests/test-poll-h.c: New file.
42976 2010-09-28  Bruno Haible  <bruno@clisp.org>
42978         poll-h: Ensure POLL{RD,WR}{NORM,BAND} are defined on glibc platforms.
42979         * modules/poll-h (Depends-on): Add 'extensions'.
42981 2010-09-28  Bruno Haible  <bruno@clisp.org>
42983         New module 'poll-h'.
42984         * lib/poll.in.h: Include c++defs.h and warn-on-use.h.
42985         (poll): Use modern idiom.
42986         * modules/poll-h: New file.
42987         * modules/poll (Files): Remove lib/poll.in.h.
42988         (Depends-on): Add poll-h.
42989         (configure.ac): Invoke gl_POLL_MODULE_INDICATOR.
42990         (Makefile.am): Move code for generation of poll.h to modules/poll-h.
42991         * m4/poll_h.m4: New file.
42992         * m4/poll.m4 (gl_FUNC_POLL): Require gl_POLL_H. Don't check for poll.h
42993         here. Don't set POLL_H here. Instead, set HAVE_POLL and REPLACE_POLL
42994         and invoke gl_REPLACE_POLL_H.
42995         * lib/poll.c: Use common idiom.
42996         * tests/test-poll.c: Likewise.
42997         * doc/posix-headers/poll.texi: Mention the poll-h module.
42998         Suggested by Eric Blake.
43000 2010-09-26  Bruno Haible  <bruno@clisp.org>
43002         sys_wait: Implement WSTOPSIG.
43003         * lib/sys_wait.in.h (WSTOPSIG): New macro.
43004         Reported by Simon Josefsson.
43006 2010-09-26  Simon Josefsson  <simon@josefsson.org>
43008         stdlib, sys_wait: Avoid compilation error on mingw.
43009         * lib/sys_wait.in.h: Include <signal.h>, for SIGTERM.
43011 2010-09-26  Bruno Haible  <bruno@clisp.org>
43013         stdlib tests: Avoid code duplication.
43014         * modules/stdlib-tests (Files): Add tests/test-sys_wait.h.
43015         * modules/sys_wait-tests (Files): Likewise.
43016         * tests/test-sys_wait.h: New file, extracted from tests/test-stdlib.c.
43017         * tests/test-stdlib.c: Include test-sys_wait.h.
43018         (main): Invoke test_sys_wait_macros.
43019         * tests/test-sys_wait.c: Include test-sys_wait.h.
43020         (main): Invoke test_sys_wait_macros.
43022 2010-09-25  Simon Josefsson  <simon@josefsson.org>
43024         * modules/getaddrinfo (Depends-on): Depend on the sockets module.
43025         * lib/getaddrinfo.c (use_win32_p): Call gl_sockets_startup to make
43026         sure Windows sockets are working before calling getaddrinfo.
43027         * tests/test-getaddrinfo.c (main): Don't call WSAStartup here.
43028         * doc/gnulib.texi (Windows sockets): Fix typo.
43030 2010-09-25  Bruno Haible  <bruno@clisp.org>
43032         Tests for module 'regex-quote'.
43033         * modules/regex-quote-tests: New file.
43034         * tests/test-regex-quote.c: New file.
43036         New module 'regex-quote'.
43037         * lib/regex-quote.h: New file.
43038         * lib/regex-quote.c: New file.
43039         * modules/regex-quote: New file.
43040         Suggested by Reuben Thomas <rrt@sc3d.org>.
43042 2010-09-24  Bruno Haible  <bruno@clisp.org>
43044         unistr/u8-strchr: Fix a test failure on i586 glibc systems.
43045         * tests/unistr/test-strchr.h (test_strchr): Disable an invalid check.
43047 2010-09-23  Bruno Haible  <bruno@clisp.org>
43049         setenv: Relax license.
43050         * modules/setenv (License): Change to LGPLv2+, with consent by Eric
43051         Blake.
43052         Requested by Eric Blake.
43054 2010-09-22  Bruno Haible  <bruno@clisp.org>
43056         termios: Relax license.
43057         * modules/termios (License): Change to LGPLv2+.
43058         Requested by Eric Blake.
43060 2010-09-22  Bruno Haible  <bruno@clisp.org>
43062         threadlib: Allow the package to change the default to 'no'.
43063         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): When
43064         gl_THREADLIB_DEFAULT_NO is defined, change the default to 'no'.
43065         Reported by Paul Eggert.
43067 2010-09-22  Pádraig Brady  <P@draigbrady.com>
43068             Bruno Haible  <bruno@clisp.org>
43070         Fix endless loop in mbmemcasecoll.
43071         * lib/mbmemcasecoll.c (apply_towlower): When mbrtowc returns 0, copy 1
43072         byte.
43073         * tests/test-mbmemcasecmp.h (test_ascii): Test embedded NULs.
43075 2010-09-22  Bruno Haible  <bruno@clisp.org>
43077         Tests for module 'memcoll'.
43078         * modules/memcoll-tests: New file.
43079         * tests/test-memcoll.c: New file, based on tests/test-memcmp.c.
43081         memcoll, xmemcoll: Clarify size vs. length.
43082         * modules/memcoll.c (memcoll0): Clarify specification.
43083         * modules/xmemcoll.c (xmemcoll0): Likewise. Reduce by 1 the lengths
43084         passed to collate_error.
43086 2010-09-22  Bruno Haible  <bruno@clisp.org>
43088         Tests for module 'memcasecmp'.
43089         * modules/memcasecmp-tests: New file.
43090         * tests/test-memcasecmp.c: New file, based on tests/test-memcmp.c.
43092 2010-09-22  Paul Eggert  <eggert@cs.ucla.edu>
43094         * lib/pthread.in.h: Add split double-inclusion guard, and include
43095         system <pthread.h> if there is one.  Use @@-style as in other
43096         .in.h files.  Define PTHREAD_COND_INITIALIZER etc. only if system
43097         pthread.h doesn't.
43098         (pthread_mutexattr_destroy, pthread_mutexattr_init):
43099         (pthread_mutexattr_settype, pthread_mutex_trylock):
43100         New static inline functions, if there's no system <pthread.h>.
43101         (pthread_spinlock_t, pthread_spin_init, pthread_spin_destroy):
43102         (pthread_spin_lock, pthread_spin_trylock, pthread_spin_unlock):
43103         Approximate with mutexes if the system lacks spinlocks, as in
43104         MacOS.
43105         * m4/pthread.m4 (gl_PTHREAD_CHECK): Require gl_PTHREAD_DEFAULTS.
43106         Add gl_CHECK_NEXT_HEADERS for pthread.h, and support the usual
43107         @@-style.  Check for spinlocks separately.
43108         (gl_PTHREAD_DEFAULTS): New macro.
43109         * modules/pthread: Redo to use a more typical style for in.h files.
43111 2010-09-21  Eric Blake  <eblake@redhat.com>
43113         net_if: enhance tests
43114         * tests/test-net_if.c (main): Move signature checks earlier.
43115         Print failures to stderr.
43116         * doc/posix-functions/if_freenameindex.texi (if_freenameindex):
43117         Document the bug that we do not yet fix.
43119 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
43121         * doc/gnulib.texi (Out of memory handling): Rewrite section to be
43122         about gnulib, not GSS.
43124 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
43126         * build-aux/pmccabe2html: Look for sources in src/ instead of lib/.
43127         * build-aux/pmccabe2html: Set cut_dir properly, and add mode line
43128         for Emacs.
43129         * build-aux/pmccabe2html: Make Makefile.am example code more
43130         cut-and-paste friendly.
43132 2010-09-21  Simon Josefsson  <simon@josefsson.org>
43134         * tests/test-net_if.c: New file.
43135         * modules/net_if-tests: New file.
43137 2010-09-20  Paul Eggert  <eggert@cs.ucla.edu>
43139         pthread: add pthread_spin_destroy
43140         * lib/pthread.in.h (pthread_spin_destroy): New function.
43142 2010-09-19  Bruno Haible  <bruno@clisp.org>
43144         gnulib-tool: Fix --help output.
43145         * gnulib-tool (func_usage): Fix help message.
43146         Reported by Reuben Thomas <rrt@sc3d.org>.
43148 2010-09-18  Jim Meyering  <meyering@redhat.com>
43150         maint.mk: avoid unexpanded \n in two diagnostics
43151         * top/maint.mk (sc_prohibit_always_true_header_tests):
43152         Don't use a literal \n in a halt=... assignment.  It would not be
43153         expanded, and the two \n bytes would appear in the diagnostic output
43154         rather than the desired newline.  Use halt=$$(printf ... instead.
43155         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
43157 2010-09-18  Bruno Haible  <bruno@clisp.org>
43159         netinet_in: Doc tweak.
43160         * doc/posix-headers/netinet_in.texi: Mention an affected platform.
43161         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
43163 2010-09-18  Jim Meyering  <meyering@redhat.com>
43165         init.sh: correct an outdated comment
43166         * tests/init.sh (create_exe_shims_):  s/function/alias/
43168         init.sh: don't let an ephemeral "*.exe" make us skip all dir entries
43169         * tests/init.sh (find_exe_basenames_): Don't give up on a directory if
43170         a file named "*.exe" is removed between the glob expansion and the
43171         processing of that oddly named file.
43173 2010-09-17  Eric Blake  <eblake@redhat.com>
43175         mirbsd: add some more support
43176         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): MirBSD is
43177         in BSD family.
43178         * m4/gc-random.m4 (gl_GC_RANDOM): MirBSD supports same random
43179         devices as OpenBSD.
43180         * m4/host-os.m4 (mirbsd): Add MirBSD.
43182         tests: fix unportable assumption on sys/wait.h
43183         * tests/test-sys_wait.c (main): Relax test.
43184         * tests/test-stdlib.c (main): Likewise.
43186         init.sh: accommodate directory with no .exes
43187         * tests/init.sh: Accomodate directory containing only scripts.
43189         tests: avoid compiler warning
43190         * tests/test-stdlib.c (main): Use the variable.
43192         fdutimens, fdutimensat: update signature, again
43193         * lib/utimens.h (gl_futimens): Delete, and move signature...
43194         (fdutimens): ...here.
43195         (fdutimensat): Rearrange signature.
43196         (lutimensat): Rename variable for clarity.
43197         * lib/fdutimensat.c (fdutimensat): Update signature.
43198         * lib/utimens.c (fdutimens): Likewise.
43199         (gl_futimens): Delete.
43200         (utimens, lutimens): Update callers.
43201         * lib/futimens.c (futimens): Likewise.
43202         * tests/test-fdutimensat.c: Likewise.
43203         * tests/test-utimens.c: Likewise.
43204         * tests/test-futimens.h: Update comment.
43205         * NEWS: Mention this.
43206         Suggested by Paul Eggert.
43208 2010-09-17  Bruno Haible  <bruno@clisp.org>
43210         Take over the maintenance of some older macros from Autoconf.
43211         * m4/error.m4 (AC_FUNC_ERROR_AT_LINE): New macro, from GNU Autoconf.
43212         * m4/lstat.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): New macro, from
43213         GNU Autoconf.
43214         * m4/memcmp.m4 (AC_FUNC_MEMCMP): New macro, from GNU Autoconf.
43215         * m4/mktime.m4 (AC_FUNC_MKTIME): Change comment.
43217 2010-09-17  Eric Blake  <eblake@redhat.com>
43219         fdutimensat: drop atflag validation
43220         * lib/fdutimensat.c (fdutimensat): Allow AT_SYMLINK_NOFOLLOW even
43221         with valid fd, to close a race scenario where futimens is
43222         unsupported and FILE was replaced by a symlink.
43223         * tests/test-fdutimensat.c (do_fdutimens, main): Adjust test
43224         accordingly.
43225         Suggested by Paul Eggert.
43227 2010-09-16  Bruno Haible  <bruno@clisp.org>
43229         unlockpt: Fix declaration within GNULIB_POSIXCHECK.
43230         * lib/stdlib.in.h (unlockpt): Fix warning declaration.
43232 2010-09-16  Bruno Haible  <bruno@clisp.org>
43234         login_tty: Fix detection of function on FreeBSD, OpenBSD, NetBSD.
43235         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Augment LIBS while checking whether
43236         login_tty exists.
43237         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
43239 2010-09-16  Bruno Haible  <bruno@clisp.org>
43241         login_tty: Make the replacement code work on BSD systems.
43242         * lib/login_tty.c: Include <sys/ioctl.h>.
43243         (login_tty): Use ioctl TIOCSCTTY when available.
43244         * modules/login_tty (Depends-on): Add sys_ioctl.
43245         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
43247 2010-09-16  Bruno Haible  <bruno@clisp.org>
43249         login_tty: Stricter unit test.
43250         * modules/login_tty-tests (Depends-on): Add tcgetsid.
43251         * tests/test-login_tty.c (main): Also check the results of tcgetpgrp()
43252         and tcgetsid() after login_tty.
43253         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
43255 2010-09-16  Bruno Haible  <bruno@clisp.org>
43257         New module 'tcgetsid'.
43258         * lib/tcgetsid.c: New file.
43259         * m4/tcgetsid.m4: New file.
43260         * modules/tcgetsid: New file.
43261         * modules/termios (Depends-on): Add c++defs, warn-on-use.
43262         (Makefile.am): Ensure c++defs.h, warn-on-use.h get included. Substitute
43263         GNULIB_TCGETSID, HAVE_TCGETSID.
43264         * lib/termios.in.h: Include <sys/types.h>.
43265         (tcgetsid): New declaration.
43266         * m4/termios_h.m4 (gl_TERMIOS_H): Check whether tcgetsid is declared.
43267         (gl_TERMIOS_H_DEFAULTS): Initialize GNULIB_TCGETSID, HAVE_TCGETSID.
43268         * doc/posix-functions/tcgetsid.texi: Mention the new module.
43269         * tests/test-termios-c++.cc: Check GNULIB_NAMESPACE::tcgetsid.
43271 2010-09-16  Bruno Haible  <bruno@clisp.org>
43273         Tests for module 'termios'.
43274         * modules/termios-c++-tests: New file.
43275         * modules/termios-tests: New file.
43276         * tests/test-termios-c++.cc: New file.
43277         * tests/test-termios.c: New file.
43279         New module 'termios'.
43280         * modules/termios: New file.
43281         * lib/termios.in.h: New file.
43282         * m4/termios_h.m4: New file.
43283         * doc/posix-headers/termios.texi: Mention the new module.
43285 2010-09-16  Eric Blake  <eblake@redhat.com>
43287         fdutimensat: add an atflag parameter
43288         * lib/fdutimensat.c (fdutimensat): Add new parameter.
43289         * lib/utimens.h (fdutimensat): Update prototype.
43290         * tests/test-fdutimensat.c: Adjust test to match.
43291         * NEWS: Document the change.
43292         Suggested by Paul Eggert.
43294 2010-09-16  Bruno Haible  <bruno@clisp.org>
43296         Fix typos in comments.
43297         * lib/striconveh.h: Fix typo in comment.
43298         * lib/login_tty.c (login_tty): Likewise.
43300 2010-09-15  Bruno Haible  <bruno@clisp.org>
43302         stdlib: clarify MirBSD WEXITSTATUS bug
43303         * lib/stdlib.in.h: Clarify the MirBSD bug regarding WEXITSTATUS.
43304         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
43306 2010-09-15  Eric Blake  <eblake@redhat.com>
43308         stdlib: work around MirBSD WEXITSTATUS bug
43309         * lib/stdlib.in.h (includes): Guarantee WEXITSTATUS.
43310         * modules/stdlib (Depends-on): Add sys_wait.
43311         * tests/test-sys_wait.c (main): Enhance test.
43312         * tests/test-stdlib.c (main): Likewise.
43313         * doc/posix-headers/stdlib.texi (stdlib.h): Document the bug.
43315         docs: mention MacOS issue with WEXITSTATUS(constant)
43316         * doc/posix-headers/sys_wait.texi (sys/wait.h): Document the
43317         issue.
43318         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
43320         strnlen: add tests
43321         * modules/strnlen-tests: New file.
43322         * tests/test-strnlen.c: Likewise.
43324 2010-09-14  Bruno Haible  <bruno@clisp.org>
43326         unistr/base: Avoid link errors when module 'libunistring' is also used.
43327         * lib/unistr.in.h (u8_mbtouc_unsafe, u16_mbtouc_unsafe,
43328         u32_mbtouc_unsafe, u8_mbtouc, u16_mbtouc, u32_mbtouc, u8_mbtoucr,
43329         u16_mbtoucr, u32_mbtoucr, u8_uctomb_aux, u16_uctomb_aux, u32_uctomb):
43330         Declare also when HAVE_LIBUNISTRING is set.
43331         Reported by Pádraig Brady <P@draigbrady.com>.
43333 2010-09-14  Eric Blake  <eblake@redhat.com>
43335         test-rawmemchr: make more robust
43336         * modules/rawmemchr-tests (Files): Add zerosize-ptr.h, mmap-anon.m4.
43337         (Depends-on, configure.ac): Add needed prerequisites to use it.
43338         * modules/memchr-tests (Files, Depends-on, configure.ac):
43339         Likewise, to avoid implicit reliance on memchr module prereqs.
43340         * tests/test-memchr.c (main): Ensure proper masking.
43341         * tests/test-rawmemchr.c (main): Likewise.  Detect oversized
43342         reads.
43344         memchr: detect glibc Alpha bug
43345         Avoids http://sourceware.org/bugzilla/show_bug.cgi?id=12019.
43346         * m4/memchr.m4 (gl_FUNC_MEMCHR): Detect glibc 2.11.2 failure on
43347         Alpha.
43348         * doc/posix-functions/memchr.texi (memchr): Tweak wording.
43349         * tests/test-memchr.c (main): Enhance test.
43350         Reported by Nelson H. F. Beebe.
43352 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
43354         fts, getcwd, glob: audit for dirfd returning -1
43355         * lib/fts.c (opendir): Remove #define; no longer used.
43356         (opendirat): New arg PDIR_FD.  All callers changed.
43357         (fts_build, _opendir2): Use new opendirat to avoid the need for
43358         dirfd, or for checking whether dirfd returns a negative value.
43359         Don't use opendir; always use openat followed by fdopendir.
43360         * lib/getcwd.c (__getcwd): Don't reset fd; fdopendir no longer clobbers
43361         it.
43362         * lib/glob.c (link_exists_p): Add comment explaining why dirfd never
43363         returns -1 here.
43364         * modules/fts (Depends-on): Remove dirfd.
43365         * modules/getcwd (Depends-on): Likewise.
43367 2010-09-13  Eric Blake  <eblake@redhat.com>
43369         float: fix broken MirBSD header
43370         * m4/float_h.m4 (gl_FLOAT_H): MirBSD copied OpenBSD's bug.
43371         * doc/posix-headers/float.texi (float.h): Document it.
43373 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
43375         fts: use O_NOFOLLOW to avoid race condition when opening a directory
43376         * lib/fts.c (opendirat): New arg extra_flags.
43377         (__opendir2): Use it to avoid following symlinks when opening
43378         a directory, if symlinks are not supposed to be followed.  See
43379         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00213.html>.
43381         fdopendir: preserve argument fd before returning
43382         * lib/fdopendir.c: Adjust comments to say POSIX, not Solaris.
43383         (fdopendir_with_dup, fd_clone_opendir): New static functions.
43384         (fdopendir): Use them, arranging for FD to be open to the same
43385         directory that it was when it started.  (It might be temporarily
43386         closed while fdopendir is running, so this not thread- or
43387         signal-safe.)  Be careful to do the right thing even when file
43388         descriptors are scarce and dup fails with errno == EMFILE.  See
43389         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00208.html>.
43391 2010-09-10  Paolo Bonzini  <bonzini@gnu.org>
43393         regex: Pass the system regex if its only problem is 32-bit regoff_t.
43394         * NEWS: Document change.
43395         * m4/regex.m4: Disable test for regoff_t size.
43397 2010-09-13  Jim Meyering  <meyering@redhat.com>
43399         fts: don't operate on an invalid file descriptor after failed dup
43400         * lib/fts.c (fts_build): Don't call set_cloexec_flag on a
43401         negative file descriptor.
43403 2010-09-12  Paul Eggert  <eggert@cs.ucla.edu>
43405         savedir: add streamsavedir, deprecate fdsavedir
43406         * NEWS: Mention deprecation of fdsavedir.
43407         * lib/savedir.c (streamsavedir): New extern function, whose name
43408         ends in "savedir" to be consistent with the others.  This differs
43409         from savedirstream in that it doesn't close its argument.  The
43410         next version of GNU tar will use this instead of fdsavedir, to
43411         avoid some race conditions and conserve file descriptors.
43412         (savedirstream): Reimplement as a wrapper around streamsavedir.
43413         (fdsavedir): Add a comment deprecating this function.  As far as
43414         I know, only GNU tar used it, and GNU tar doesn't need it any more.
43415         * lib/savedir.h (streamsavedir): New decl.
43416         (fdsavedir): Add a comment deprecating this.
43418 2010-09-10  Bruno Haible  <bruno@clisp.org>
43420         langinfo: Fix last commit.
43421         * m4/langinfo_h.m4 (gl_LANGINFO_H): Initialize
43422         HAVE_LANGINFO_T_FMT_AMPM, HAVE_LANGINFO_YESEXPR.
43423         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
43425 2010-09-10  Bruno Haible  <bruno@clisp.org>
43427         relocatable-prog-wrapper: Fix compilation failure due to O_EXEC.
43428         * lib/progreloc.c (O_EXEC): Define fallback.
43430 2010-09-10  Paul Eggert  <eggert@cs.ucla.edu>
43432         fcntl-h: define O_CLOEXEC and O_EXEC if not defined; use new defines
43433         * NEWS: Document recent changes to fcntl-h.
43434         * doc/posix-headers/fcntl.texi (fcntl.h): Document that
43435         O_CLOEXEC is now defined to 0 if it is not defined, like other flags.
43436         Also, O_EXEC is now defined to be O_RDONLY if O_EXEC is not defined.
43437         Similarly for O_SEARCH; this last was already true, but not documented.
43438         * lib/fcntl.in.h (O_CLOEXEC): Define to 0 if not defined.
43439         * lib/dup-safer-flag.c (O_CLOEXEC): Remove now-useless #define.
43440         * lib/dup3.c, lib/pipe2.c, tests/test-dup-safer.c, tests/test-fcntl.c:
43441         Likewise.
43442         * lib/popen-safer.c (open_noinherit): Check whether O_CLOEXEC
43443         is zero, not whether it is defined.
43444         * tests/test-dup3.c, tests/test-pipe2.c (main): Likewise.
43445         * lib/progreloc.c (find_executable): Use O_EXEC rather than O_RDONLY.
43446         * lib/open.c (open): Check for O_SEARCH as well as for O_RDONLY.
43448 2010-09-10  Bruno Haible  <bruno@clisp.org>
43450         langinfo, nl_langinfo: Fix for IRIX 5.3.
43451         * m4/langinfo_h.m4 (gl_LANGINFO_H): Test whether langinfo.h defines
43452         T_FMT_AMPM, YESEXPR. Set HAVE_LANGINFO_T_FMT_AMPM,
43453         HAVE_LANGINFO_YESEXPR.
43454         * modules/langinfo (Makefile.am): Substitute HAVE_LANGINFO_T_FMT_AMPM,
43455         HAVE_LANGINFO_YESEXPR.
43456         * lib/langinfo.in.h (T_FMT_AMPM, GNULIB_defined_T_FMT_AMPM): Define if
43457         HAVE_LANGINFO_T_FMT_AMPM is 0.
43458         (YESEXPR, NOEXPR, GNULIB_defined_YESEXPR): Define if
43459         HAVE_LANGINFO_YESEXPR is 0.
43460         * lib/nl_langinfo.c (rpl_nl_langinfo): Handle also T_FMT_AMPM, YESEXPR,
43461         NOEXPR.
43462         * doc/posix-headers/langinfo.texi: Mention the IRIX 5.3 problem.
43463         * doc/posix-functions/nl_langinfo.texi: Likewise.
43464         Reported by Eric Blake.
43466 2010-09-10  Bruno Haible  <bruno@clisp.org>
43468         pty, readutmp: Fix for FreeBSD 8.0 and OpenBSD 4.6.
43469         * doc/glibc-functions/login_tty.texi: Mention the include file problem
43470         on FreeBSD 8.0 and OpenBSD 4.6.
43471         * lib/pty.in.h: Include <sys/types.h> before <libutil.h>.
43472         * m4/pty_h.m4 (gl_PTY_H): Likewise.
43473         * m4/pty.m4 (gl_FUNC_FORKPTY, gl_FUNC_OPENPTY): Likewise.
43474         * m4/readutmp.m4 (gl_READUTMP): Include <sys/types.h> before <utmp.h>.
43475         Invoke AC_INCLUDES_DEFAULT instead of using the undocumented variable
43476         ac_includes_default.
43477         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
43479 2010-09-09  Eric Blake  <eblake@redhat.com>
43481         strsignal: work around NetBSD bug
43482         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check in <unistd.h>.
43483         * lib/string.in.h (includes): Likewise.
43484         * doc/posix-functions/strsignal.texi (strsignal): Document the
43485         bug.
43486         Reported by Nelson H. F. Beebe.
43488         gnulib-tool: work with NetBSD /bin/sh
43489         * gnulib-tool (func_cache_var, func_cache_lookup_module)
43490         (func_get_description, func_get_comment, func_get_status)
43491         (func_get_notice, func_get_applicability, func_get_filelist)
43492         (func_get_dependencies, func_get_autoconf_early_snippet)
43493         (func_get_autoconf_snippet, func_get_automake_snippet)
43494         (func_get_include_directive, func_get_link_directive)
43495         (func_get_license, func_get_maintainer, func_import): Avoid
43496         shell syntax errors from parsing syntax extensions.
43498 2010-09-09  Bruno Haible  <bruno@clisp.org>
43500         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
43501         * gnulib-tool: Don't fiddle with file descriptors 0, 1, 2. Instead, use
43502         a reliable way to determine whether the 'alias' command works.
43504 2010-09-08  Jim Meyering  <meyering@redhat.com>
43506         init.sh: penalize a set-x-impaired shell; don't disqualify it
43507         * tests/init.sh: Too many shells corrupt application stderr when
43508         you set -x, so we can't afford to disqualify them, since at least
43509         on Irix-6.5, that would disqualify all bourne shells.
43510         Instead, use a two-pass approach.
43511         On the first pass, try to find a shell that meets the stricter
43512         condition that set -x does not corrupt stderr.
43513         If no shell meets the stricter condition, retest each candidate
43514         shell, but without that extra condition.  Finally, when
43515         VERBOSE=yes is requested and set -x might cause trouble, simply
43516         issue a warning and refrain from enabling debug output.
43518 2010-09-08  Eric Blake  <eblake@redhat.com>
43520         unsetenv: fix OpenBSD bug
43521         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for OpenBSD bug.
43522         * doc/posix-functions/unsetenv.texi (unsetenv): Update
43523         documentation.
43524         Reported by Jim Meyering.
43526         strtod: work around IRIX 6.5 bug
43527         * lib/strtod.c (strtod): Reparse number on shorter string if
43528         exponent parse was invalid.
43529         * tests/test-strtod.c (main): Add check for "0x1p 2".
43530         Reported by Tom G. Christensen.
43532         getopt: optimize previous patch
43533         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Correctly check for
43534         empty variable.  Speed up awk script.
43535         Reported by Paolo Bonzini.
43537 2010-09-08  Jim Meyering  <meyering@redhat.com>
43539         test.sh: disqualify shells for which set -x corrupts stderr
43540         * tests/init.sh: Add a test to disqualify /bin/sh from SunOS 5.11
43541         and OpenBSD 4.7.  They make it so with "set -x", environment settings
43542         appear in stderr output.  For example, this command:
43543             /bin/sh -c 'set -x; P=1 true 2> err' 2>/dev/null; cat err
43544         prints "P=1" on those two systems:
43546 2010-09-08  Bruno Haible  <bruno@clisp.org>
43548         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
43549         * gnulib-tool: Use stderr redirection around the 'alias' and 'unalias'
43550         commands, because some shells ignore redirections when there is an
43551         error in the command lookup.
43552         Reported by Eric Blake.
43554 2010-09-07  Reuben Thomas  <rrt@sc3d.org>
43556         * lib/regex.h: Fix a mention of `regex_compile' (should be
43557         `re_compile_pattern').
43558         Correct and clarify documentation for RE_CONTEXT_INVALID_DUP.
43559         (re_set_registers): Correct name of parameter in comment.
43561         * doc/regex.texi: Add documentation for missing syntax flags.
43562         Remove commented-out documentation of defunct syntax option
43563         RE_NO_EMPTY_ALTS.
43564         Correct name of RE_CHAR_CLASSES in one incorrect occurrence.
43565         Add documentation of re_set_registers.
43566         Document trick to re-use a pattern buffer by setting fastmap manually.
43567         Update documentation of struct re_pattern_buffer per public members.
43568         Uncomment documentation of equivalence class operators and
43569         collating symbol operators, since they are now implemented,
43570         Explain leftmost-longest matching in relation to alternatives.
43571         Tidy documentation of substring matching.
43572         Remove POSIX documentation, which is done better in
43573         glibc, and refer the reader there. Keep BSD API documentation, as
43574         that is not readily available elsewhere.
43576 2010-09-07  Eric Blake  <eblake@redhat.com>
43578         getopt: handle POSIXLY_CORRECT set but not exported
43579         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Restore pre-existing
43580         export state of POSIXLY_CORRECT, due to bash set -o posix.
43581         Reported by Dustin J. Mitchell.
43583 2010-09-05  Bruno Haible  <bruno@clisp.org>
43585         gnulib-tool: Highlight the changed options.
43586         * gnulib-tool (func_usage): Display the --import, --add-import,
43587         --remove-import explanations in bold font.
43589 2010-09-06  Karl Berry  <karl@gnu.org>
43591         * doc/gnulib-tool.texi (Modified imports): doc tweaks.
43593 2010-09-05  Bruno Haible  <bruno@clisp.org>
43595         uniwidth/width: Update comment.
43596         * lib/uniwidth/width.c (uc_width): Update comment for Unicode >= 3.1.
43597         Reported by Emanuele Giaquinta <emanuele.giaquinta@gmail.com>.
43599 2010-09-05  Bruno Haible  <bruno@clisp.org>
43601         isinf, isnan: Relax license.
43602         * modules/isinf (License): Change from GPL to LGPL, with consent from
43603         Ben Pfaff.
43604         * modules/isnan (License): Likewise.
43605         Requested by Ludovic Courtès.
43607 2010-09-04  Bruno Haible  <bruno@clisp.org>
43609         gnulib-tool: Help migration from --import to --add-import or --update.
43610         * gnulib-tool: Emit a verbose error message when --import is used
43611         without any module name.
43613 2010-09-04  Bruno Haible  <bruno@clisp.org>
43615         Update doc about gnulib-tool.
43616         * doc/gnulib-tool.texi (VCS Issues): Explain 'gnulib-tool --import' vs.
43617         'gnulib-tool --update' in more detail.
43618         Reported by Eric Blake.
43620 2010-09-04  Bruno Haible  <bruno@clisp.org>
43622         gnulib-tool: Change --import. New options --add/remove-import.
43623         * gnulib-tool: New options --add-import, --remove-import.
43624         (func_usage): Document them.
43625         (have_associative): Define always.
43626         (func_import): In import mode, don't merge the specified settings with
43627         the cached settings. Implement remove-import mode.
43628         * doc/gnulib-tool.texi (Modified imports): Mention the new options.
43629         Explain when to use them versus --import.
43630         (Simple update): Use --add-import instead of --import.
43631         * NEWS: Mention the change.
43633 2010-09-04  Bruno Haible  <bruno@clisp.org>
43635         * doc/gnulib-tool.texi (Initial import): Update paragraph about
43636         separate gnulib.mk.
43638 2010-09-04  Bruno Haible  <bruno@clisp.org>
43640         gnulib-tool: Don't talk about CVS any more.
43641         * gnulib-tool (func_usage, func_import): Write "version control"
43642         instead of CVS.
43644 2010-09-04  Jim Meyering  <meyering@redhat.com>
43646         maint.mk: avoid obscure sc_copyright_check failure in coreutils
43647         * top/maint.mk (v_etc_file): Prepend $(gnulib_dir)/, to avoid
43648         false positives (whose names may be ill-chosen) when searching
43649         non-VC'd files.  Otherwise, a file named "a b/lib/version-etc.c"
43650         would cause a false-positive.
43652         avoid coreutils "make distcheck" failure
43653         Coreutils tests with an absolute build directory name that contains
43654         a space.  Not quoting this directory name caused a failure.
43655         * tests/test-vc-list-files-git.sh: Quote PATH dir name.
43656         * tests/test-vc-list-files-cvs.sh: Likewise.
43658 2010-09-04  Bruno Haible  <bruno@clisp.org>
43660         gnulib-tool: Avoid error when run in a package without Makefile.am.
43661         * gnulib-tool: When collecting the m4dirs in a package that does not
43662         have a Makefile.am, eliminate those directories that contain no
43663         gnulib-cache.m4. Fix expression that counts these directories.
43665 2010-09-04  Bruno Haible  <bruno@clisp.org>
43667         update-copyright test: Improve output when perl is missing or too old.
43668         * tests/test-update-copyright.sh: Move test of Perl version down after
43669         the test whether Perl exists. Provide an explanation relating Perl's
43670         error message to Automake's SKIP: message.
43672 2010-09-04  Bruno Haible  <bruno@clisp.org>
43674         Don't augment PATH in TESTS_ENVIRONMENT.
43675         * modules/update-copyright-tests (Makefile.am): In TESTS_ENVIRONMENT,
43676         set abs_aux_dir instead of augmenting PATH.
43677         * modules/vc-list-files-tests (Makefile.am): Likewise.
43678         * tests/test-update-copyright.sh: Augment PATH here.
43679         * tests/test-vc-list-files-cvs.sh: Augment PATH here, through
43680         path_prepend_.
43681         * tests/test-vc-list-files-git.sh: Likewise.
43683 2010-09-04  Jim Meyering  <meyering@redhat.com>
43685         tests: prohibit augmenting PATH via TESTS_ENVIRONMENT
43686         * Makefile (sc_prohibit_augmenting_PATH_via_TESTS_ENVIRONMENT): New rule.
43688 2010-09-04  Bruno Haible  <bruno@clisp.org>
43690         strdup: Fix compilation error in C++ mode.
43691         * lib/string.in.h (strdup): In C++ mode with GNULIB_NAMESPACE, undefine
43692         the macro.
43694 2010-09-04  Bruno Haible  <bruno@clisp.org>
43696         dirfd: Fix compilation error in C++ mode on MacOS X, *BSD, IRIX.
43697         * lib/dirent.in.h (dirfd): In C++ mode with GNULIB_NAMESPACE, turn the
43698         macro into a function.
43699         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
43701 2010-09-04  Bruno Haible  <bruno@clisp.org>
43703         Set PATH_SEPARATOR the same way autoconf does.
43704         * build-aux/relocatable.sh.in (func_find_curr_installdir): Determine
43705         the value of PATH_SEPARATOR the same way autoconf-generated configure
43706         scripts do.
43707         * m4/lib-ld.m4 (AC_LIB_PROG_LD): Likewise.
43708         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
43710 2010-09-04  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
43712         Set PATH_SEPARATOR the same way autoconf does.
43713         * gnulib-tool (func_gnulib_dir): Determine the value of PATH_SEPARATOR
43714         the same way autoconf-generated configure scripts do.
43715         * posix-modules: Likewise.
43717 2010-09-02  Paul Eggert  <eggert@cs.ucla.edu>
43719         hash: fix safe_hasher const typo
43720         * lib/hash.c (safe_hasher): Result is pointer, not pointer to
43721         const; otherwise, there is a type error later.
43723 2010-09-02  Jim Meyering  <meyering@redhat.com>
43725         test-update-copyright.sh: require perl 5.8.0
43726         * tests/test-update-copyright.sh: Require 5.8.0,
43727         which Tom G. Christensen has confirmed is adequate,
43728         while 5.6.1 is not.
43730 2010-09-02  Eric Blake  <eblake@redhat.com>
43732         tests: init.sh improvements for re-exec'ing with zsh
43733         * tests/init.sh: Borrow autoconf POSIX-mode sanitization.  Pass
43734         -vx through shell re-exec.
43735         Reported by Tom G. Christensen.
43737         wctype: fix typo in previous commit
43738         * m4/wctype_h.m4 (gl_WCTYPE_H): Fix spelling.
43739         Reported by Ludovic Courtès.
43741 2010-09-02  Jim Meyering  <meyering@redhat.com>
43743         test-update-copyright.sh: skip test if Perl is too old
43744         * tests/test-update-copyright.sh: Exit 77 if Perl is too old.
43745         Reported by Tom G. Christensen.
43747 2010-09-02  Bruno Haible  <bruno@clisp.org>
43749         wctype: Avoid compilation error on IRIX 6.5.30.
43750         * lib/wctype.in.h (iswblank): Declare with a replacement if
43751         REPLACE_ISWBLANK is set.
43752         * m4/wctype_h.m4 (gl_WCTYPE_H): Check also whether iswblank is
43753         declared. Set REPLACE_ISWBLANK.
43754         * modules/wctype (Makefile.am): Substitute REPLACE_ISWBLANK.
43755         * doc/posix-functions/iswblank.texi: Mention the IRIX 6.5.30 problem.
43756         * doc/posix-headers/wctype.texi: Likewise.
43757         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
43759 2010-09-01  Bruno Haible  <bruno@clisp.org>
43761         New module 'socketlib'.
43762         * modules/socketlib: New file.
43763         * m4/socketlib.m4: New file, extracted from m4/sockets.m4.
43764         * m4/sockets.m4 (gl_SOCKETS): Require gl_SOCKETLIB.
43765         * modules/sockets (Depends-on): Add socketlib.
43766         Suggested by Sam Steingold <sds@gnu.org>.
43768 2010-09-01  Paul Eggert  <eggert@cs.ucla.edu>
43770         fcntl-h, etc.: prefer O_SEARCH to O_RDONLY when applicable
43772         POSIX 2008 specifies a new 'open' flag O_SEARCH, which can be used
43773         when one needs search access to a directory but not read access.
43774         On systems where it is available, it works in some cases where
43775         O_RDONLY does not, namely on directories that are searchable but
43776         not readable, and which need only to be searchable.  If O_SEARCH
43777         is not available, fall back to the traditional method of using
43778         O_RDONLY.
43780         * lib/fcntl.in.h (O_SEARCH): #define to O_RDONLY if not defined.
43781         * lib/chdir-long.c (cdb_advance_fd): Use O_SEARCH, not O_RDONLY,
43782         when opening a directory that needs only to be searchable.
43783         * lib/chdir-safer.c (chdir_no_follow): Likewise.
43784         * lib/fts.c (diropen, fts_open, fd_ring_check): Likewise.
43785         * lib/openat-proc.c (openat_proc_name): Likewise.
43786         * lib/openat.c (openat_needs_fchdir): Likewise.
43787         * lib/save-cwd.c (save_cwd): Likewise.
43788         * lib/savewd.c (savewd_save, savewd_chdir): Likewise.
43790 2010-08-28  Bruno Haible  <bruno@clisp.org>
43792         New module 'host-cpu-c-abi'.
43793         * modules/host-cpu-c-abi: New file.
43794         * m4/host-cpu-c-abi.m4: New file, based on part of
43795         clisp/src/m4/general.m4.
43796         Requested by Sam Steingold <sds@gnu.org>.
43798 2010-08-31  Eric Blake  <eblake@redhat.com>
43799         and Jim Meyering  <meyering@redhat.com>
43801         hash: factor, and guard against misbehaving hasher function
43802         * lib/hash.c (safe_hasher): New function, to encapsulate the checking
43803         of table->hasher's return value.  Also protect against a hash value
43804         so large that adding it to table->bucket results in a NULL pointer.
43805         (hash_lookup, hash_get_next, hash_find_entry, transfer_entries):
43806         Use it in place of open-coded check-and-abort.
43808 2010-08-30  Bruno Haible  <bruno@clisp.org>
43810         hash: silence spurious clang warning
43811         * lib/hash.c (hash_get_next): Remove unnecessary test against NULL.
43812         Reported by Eric Blake.
43814 2010-08-30  Eric Blake  <eblake@redhat.com>
43816         strstr, memmem, strcasestr: avoid leaked shell message
43817         * m4/strstr.m4 (gl_FUNC_STRSTR): Avoid "Alarm clock" message from
43818         FreeBSD.
43819         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
43820         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
43822         tests: silence clang warning
43823         * tests/test-malloca.c (do_allocation): Avoid dead store.
43825 2010-08-29  Bruno Haible  <bruno@clisp.org>
43827         gettext: Fix recent mistake.
43828         * m4/intl.m4 (gt_CHECK_DECL): Fix typo introduced on 2010-08-26.
43830 2010-08-29  Bruno Haible  <bruno@clisp.org>
43832         selinux-h: Offer a --without-selinux option.
43833         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): If
43834         --without-selinux was specified, skip all tests and define
43835         HAVE_SELINUX_SELINUX_H to 0.
43836         (gl_LIBSELINUX): Offer --without-selinux option. If it is specified,
43837         set LIB_SELINUX to empty.
43838         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): Require
43839         gl_LIBSELINUX. If --without-selinux was specified, replace
43840         selinux/context.h.
43841         Reported by Johan Hattne <johan.hattne@utsouthwestern.edu>.
43843 2010-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43844             Bruno Haible  <bruno@clisp.org>
43846         Make the module 'realloc-gnu' work again on AIX and OSF/1.
43847         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): Define HAVE_REALLOC_GNU instead
43848         of HAVE_REALLOC.
43849         * lib/realloc.c (NEED_REALLOC_GNU): Enable behaviour also when
43850         GNULIB_REALLOC_GNU && !HAVE_REALLOC_GNU.
43851         (SYSTEM_MALLOC_GLIBC_COMPATIBLE): Adjust definition.
43852         * modules/realloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
43854 2010-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43855             Bruno Haible  <bruno@clisp.org>
43857         Make the module 'calloc-gnu' work again on AIX and OSF/1.
43858         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Define HAVE_CALLOC_GNU instead of
43859         HAVE_CALLOC.
43860         * lib/xmalloc.c: Update accordingly.
43861         * lib/calloc.c (NEED_CALLOC_GNU): Enable also when
43862         GNULIB_CALLOC_GNU && !HAVE_CALLOC_GNU.
43863         * modules/calloc-gnu (configure.ac): Invoke gl_MODULE_INDICATOR.
43865 2010-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43866             Bruno Haible  <bruno@clisp.org>
43868         Make the module 'malloc-gnu' work again on AIX and OSF/1.
43869         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): Define HAVE_MALLOC_GNU instead of
43870         HAVE_MALLOC.
43871         * lib/malloc.c (NEED_MALLOC_GNU): Enable behaviour also when
43872         GNULIB_MALLOC_GNU && !HAVE_MALLOC_GNU.
43873         * modules/malloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
43875 2010-08-29  Bruno Haible  <bruno@clisp.org>
43877         Update modules list.
43878         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
43879         malloc-gnu, calloc-gnu, realloc-gnu. Remove malloc, calloc, realloc.
43880         (String handling <string.h>): Add astrxfrm.
43881         (File system functions): Add readlinkat.
43883 2010-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43885         Tests for module 'realloc-gnu'.
43886         * modules/realloc-gnu-tests: New file.
43887         * tests/test-realloc-gnu.c: New file.
43889         Tests for module 'calloc-gnu'.
43890         * modules/calloc-gnu-tests: New file.
43891         * tests/test-calloc-gnu.c: New file.
43893         Tests for module 'malloc-gnu'.
43894         * modules/malloc-gnu-tests: New file.
43895         * tests/test-malloc-gnu.c: New file.
43897 2010-08-28  Bruno Haible  <bruno@clisp.org>
43899         Rename module 'realloc' -> 'realloc-gnu'.
43900         * modules/realloc-gnu: New file, copied from modules/realloc.
43901         * modules/realloc: Convert to a redirection to 'realloc-gnu'. Mark as
43902         obsolete.
43903         * modules/mgetgroups (Depends-on): Update.
43904         * doc/posix-functions/realloc.texi: Update.
43905         * NEWS: Mention the change.
43907         Rename module 'calloc' -> 'calloc-gnu'.
43908         * modules/calloc-gnu: New file, copied from modules/calloc.
43909         * modules/calloc: Convert to a redirection to 'calloc-gnu'. Mark as
43910         obsolete.
43911         * doc/posix-functions/calloc.texi: Update.
43912         * NEWS: Mention the change.
43914         Rename module 'malloc' -> 'malloc-gnu'.
43915         * modules/malloc-gnu: New file, copied from modules/malloc.
43916         * modules/malloc: Convert to a redirection to 'malloc-gnu'. Mark as
43917         obsolete.
43918         * modules/argp (Depends-on): Update.
43919         * modules/regex (Depends-on): Update.
43920         * doc/posix-functions/malloc.texi: Update.
43921         * NEWS: Mention the change.
43923 2010-08-28  Eric Blake  <eblake@redhat.com>
43925         pread, pwrite: add missing dependency
43926         * modules/pread (Depends-on): Add extensions.
43927         * modules/pwrite (Depends-on): Likewise.
43929 2010-08-28  Bruno Haible  <bruno@clisp.org>
43931         unistr/u*-strchr: Fix tests dependencies.
43932         * modules/unistr/u8-strchr-tests (Depends-on): Add unistr/u32-to-u8.
43933         * modules/unistr/u16-strchr-tests (Depends-on): Add unistr/u32-to-u16.
43934         Reported by Ian Beckwith <ianb@erislabs.net>.
43936 2010-08-28  Bruno Haible  <bruno@clisp.org>
43938         read-file: Don't occupy too much unused memory.
43939         * lib/read-file.c (fread_file): Shrink the buffer at the end.
43941 2010-08-28  Giuseppe Scrivano  <gscrivano@gnu.org>
43942             Eric Blake  <eblake@redhat.com>
43943             Bruno Haible  <bruno@clisp.org>
43945         read-file: Avoid memory reallocations with regular files.
43946         * lib/read-file.c: Include <sys/stat.h>, <stdio.h>, <stdint.h>.
43947         (fread_file): With regular files, use the remaining length as the
43948         initial buffer size.  Check against overflow.
43949         * modules/read-file (Depends-on): Add ftello, malloc-posix, stdint,
43950         sys_stat.
43952 2010-08-28  Bruno Haible  <bruno@clisp.org>
43954         ftello: Relax license.
43955         * modules/ftello (License): Relax to LGPLv2+.
43956         Reported by Eric Blake.
43958 2010-08-28  Bruno Haible  <bruno@clisp.org>
43960         Avoid relocwrapper link errors due to gnulib replacement functions.
43961         * lib/canonicalize-lgpl.c [IN_RELOCWRAPPER]: Use the system's getcwd
43962         function.
43963         Reported by Ben Pfaff <blp@cs.stanford.edu>.
43965 2010-08-28  Bruno Haible  <bruno@clisp.org>
43967         Prefer using AC_DEFUN_ONCE over AC_DEFUN in projects with gnulib.
43968         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Use AC_DEFUN_ONCE if gl_00GNULIB is
43969         defined.
43970         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): Likewise.
43971         Suggested by Eric Blake.
43973 2010-08-28  Bruno Haible  <bruno@clisp.org>
43975         sys_socket, netdb: Ensure socklen_t gets defined.
43976         * modules/sys_socket (Depends-on): Add socklen.
43977         * modules/netdb (Depends-on): Likewise.
43978         * modules/getaddrinfo (Depends-on): Remove socklen.
43979         * modules/getsockopt (Depends-on): Likewise.
43980         * modules/setsockopt (Depends-on): Likewise.
43981         * tests/test-sys_socket.c: Check that socklen_t is defined.
43982         * tests/test-netdb.c: Likewise.
43983         * m4/socklen.m4: Update comments.
43984         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
43986 2010-08-27  Eric Blake  <eblake@redhat.com>
43988         login_tty: add missing dependency
43989         * modules/login_tty (Depends-on): Add pty.
43991 2010-08-26  Eric Blake  <eblake@redhat.com>
43993         lib-symbol-versions: fix m4 quoting
43994         * m4/ld-version-script.m4 (gl_LD_VERSION_SCRIPT): Use correct
43995         format for AC_LINK_IFELSE.
43997         glob: fix compile test
43998         * m4/glob.m4 (gl_GLOB): Use correct format for AC_COMPILE_IFELSE.
44000         btowc: fix missing file
44001         * modules/btowc (Files): Also ship locale-fr.m4.
44003         lseek: fix link test
44004         * m4/lseek.m4 (gl_FUNC_LSEEK): Use correct format for
44005         AC_LINK_IFELSE.
44007         include_next: silence autoconf 2.68 warning
44008         * m4/include_next.m4 (gl_INCLUDE_NEXT): Mark this use of
44009         AC_COMPILE_IFELSE as special.
44010         (AC_LANG_DEFINES_PROVIDED): Provide dummy implementation for
44011         autoconf < 2.68.
44013         acl: fix compilation test
44014         * m4/acl.m4 (gl_FUNC_ALL): Use correct format for
44015         AC_COMPILE_IFELSE.
44017 2010-08-26  Bruno Haible  <bruno@clisp.org>
44019         Modernize AC_TRY_RUN invocations.
44020         * m4/btowc.m4 (gl_FUNC_BTOWC): Use AC_RUN_IFELSE instead of AC_TRY_RUN.
44021         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
44022         * m4/exponentd.m4 (gl_DOUBLE_EXPONENT_LOCATION): Likewise.
44023         * m4/exponentf.m4 (gl_FLOAT_EXPONENT_LOCATION): Likewise.
44024         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Likewise.
44025         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
44026         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
44027         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
44028         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
44029         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
44030         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
44031         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
44032         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
44033         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
44034         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
44035         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
44036         gl_MBRLEN_NUL_RETVAL): Likewise.
44037         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
44038         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
44039         Likewise.
44040         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
44041         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
44042         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
44043         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
44044         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_N,
44045         gl_PRINTF_DIRECTIVE_LS, gl_PRINTF_POSITIONS, gl_PRINTF_FLAG_GROUPING,
44046         gl_PRINTF_FLAG_LEFTADJUST, gl_PRINTF_FLAG_ZERO, gl_PRINTF_PRECISION,
44047         gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
44048         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99):
44049         Likewise.
44050         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
44051         * m4/signbit.m4 (gl_SIGNBIT, gl_FLOATTYPE_SIGN_LOCATION): Likewise.
44052         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
44053         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
44054         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
44055         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
44056         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
44057         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION): Likewise.
44058         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
44059         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
44061 2010-08-26  Bruno Haible  <bruno@clisp.org>
44063         Modernize AC_TRY_LINK invocations.
44064         * m4/acosl.m4 (gl_FUNC_ACOSL): Use AC_LINK_IFELSE instead of
44065         AC_TRY_LINK.
44066         * m4/argp.m4 (gl_ARGP): Likewise.
44067         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
44068         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
44069         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
44070         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
44071         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
44072         * m4/codeset.m4 (AM_LANGINFO_CODESET): Likewise.
44073         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
44074         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
44075         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
44076         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
44077         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
44078         * m4/frexp.m4 (gl_FUNC_FREXP, gl_CHECK_FREXP_NO_LIBM): Likewise.
44079         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_CHECK_FREXPL_NO_LIBM): Likewise.
44080         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
44081         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
44082         * m4/hostent.m4 (gl_HOSTENT): Likewise.
44083         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
44084         * m4/intl.m4 (gt_INTL_SUBDIR_CORE): Likewise.
44085         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
44086         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM, gl_HAVE_ISNAND_NO_LIBM):
44087         Likewise.
44088         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_HAVE_ISNANF_IN_LIBM):
44089         Likewise.
44090         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM):
44091         Likewise.
44092         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
44093         * m4/ldexpl.m4 (gl_FUNC_LDEXPL, gl_CHECK_LDEXPL_NO_LIBM): Likewise.
44094         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Likewise.
44095         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
44096         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
44097         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
44098         * m4/servent.m4 (gl_SERVENT): Likewise.
44099         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
44100         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
44101         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
44102         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
44103         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
44104         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
44105         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
44106         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
44107         * modules/tsearch-tests (configure.ac): Likewise.
44109 2010-08-26  Bruno Haible  <bruno@clisp.org>
44111         Modernize AC_TRY_COMPILE invocations.
44112         * m4/environ.m4 (gt_CHECK_VAR_DECL): Use AC_COMPILE_IFELSE instead of
44113         AC_TRY_COMPILE.
44114         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Likewise.
44115         * m4/intl.m4 (gt_CHECK_DECL): Likewise.
44116         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
44117         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
44118         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
44119         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
44120         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
44121         * m4/lock.m4 (gl_LOCK): Likewise.
44122         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): Likewise.
44123         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
44124         * m4/minmax.m4 (gl_MINMAX_IN_HEADER): Likewise.
44125         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
44126         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
44127         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Likewise.
44128         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
44129         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Likewise.
44130         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
44131         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
44132         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
44133         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
44134         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Likewise. Remove
44135         extraneous semicolon.
44137 2010-08-26  Jim Meyering  <meyering@redhat.com>
44139         stat-time: relax license LGPL
44140         * modules/stat-time (License): Change from GPL to LGPL,
44141         with consent from all contributors, for use in libguile.
44142         Requested by Ludovic Courtès.
44144 2010-08-26  Erik Faye-Lund  <kusmabite@gmail.com>
44146         poll: return immediately on POLLHUP.
44147         * lib/poll.c (poll): Always set timeout before wait_timeout is
44148         computed.
44150 2010-08-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44152         Fix test-unlinkat, test-rmdir failure on AIX 5.3.
44153         * tests/test-rmdir.h (test_rmdir_func): Also accept EEXIST for
44154         rmdir ("dir/.//"), unlinkat.
44156 2010-08-24  Paul Eggert  <eggert@cs.ucla.edu>
44158         stdbool: avoid spurious failure with modern xlc
44159         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
44161 2010-08-24  Bruno Haible  <bruno@clisp.org>
44163         getloadavg: simplify code
44164         * m4/getloadavg.m4 (gl_GETLOADAVG): Remove useless test of
44165         gl_have_func. Update comments.
44167 2010-08-24  Eric Blake  <eblake@redhat.com>
44169         getloadavg: don't define SVR4 on cygwin
44170         * m4/getloadavg.m4 (gl_GETLOADAVG): Sync with autoconf fix, to
44171         only define SVR4 when -lkvm is required.
44172         Reported by Yaakov Selkowitz.
44174 2010-08-24  Bruno Haible  <bruno@clisp.org>
44176         priv-set: fix comment
44177         * lib/priv-set.c (priv_set_restore): Fix typo in comment.
44179 2010-08-23  Paul Eggert  <eggert@cs.ucla.edu>
44181         priv-set: fix comments
44182         * lib/priv-set.c (priv_set_remove, priv_set_restore): Fix comments
44183         to match code, as suggested by David Bartley in:
44184         http://lists.gnu.org/archive/html/bug-tar/2010-08/msg00018.html
44186 2010-08-23  Eric Blake  <eblake@redhat.com>
44188         stdbool: avoid rejecting clang
44189         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
44190         * tests/test-stdbool.c: Enable more tests if using the system
44191         <stdbool.h> instead of the gnulib replacement.
44192         (main): Move xlc bug test to a runtime test for all compilers.
44193         Reported by Anders Kaseorg.
44195         argz: fix shell quoting issue
44196         * m4/argz.m4 (gl_FUNC_ARGZ): Allow for spaces in argument.
44197         Reported by Charles Wilson.
44199 2010-08-22  Paolo Bonzini  <bonzini@gnu.org>
44200             Erik Faye-Lund <kusmabite@gmail.com>
44202         poll, select: handle ERROR_BROKEN_PIPE.
44203         * lib/poll.c (win32_compute_revents): Return POLLHUP when
44204         PeekNamedPipe fails with ERROR_BROKEN_PIPE.
44205         * lib/select.c (win32_compute_revents): Do not mark a pipe
44206         as writeable if PeekNamedPipe fails with ERROR_BROKEN_PIPE.
44208 2010-08-22  Giuseppe Scrivano  <gscrivano@gnu.org>
44210         fts: allow compilation with C++
44211         * lib/fts_.h: Specify extern "C" linkage with C++.
44213 2010-08-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44215         Fix gnulib-tool sed script de-commentation for AIX sed.
44216         * gnulib-tool (sed_comments): Try indented comments, for AIX 5.3
44217         sed.
44219 2010-08-17  Eric Blake  <eblake@redhat.com>
44221         test-stddef: test for (some) offsetof bugs
44222         * tests/test-stddef.c: Enhance test to ensure correct type of
44223         offsetof.
44224         * doc/posix-headers/stddef.texi (stddef.h): Document a Solaris bug
44225         that we are not fixing at this time.
44227 2010-08-15  Bruno Haible  <bruno@clisp.org>
44229         stpncpy: Allow stpncpy to be defined as a macro.
44230         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Don't attempt to redeclare stpncpy
44231         if it's already correctly declared.
44232         * lib/string.in.h (stpncpy): Undefine before redefining.
44233         Reported by Jeremy Huddleston <jeremyhu@macports.org>.
44235 2010-08-14  Bruno Haible  <bruno@clisp.org>
44237         Rename module 'memxfrm' to 'amemxfrm'.
44238         * lib/amemxfrm.h: Renamed from lib/memxfrm.h.
44239         (amemxfrm): Renamed from memxfrm.
44240         * lib/amemxfrm.c: Renamed from lib/memxfrm.h. Include amemxfrm.h.
44241         (amemxfrm): Renamed from memxfrm.
44242         * modules/amemxfrm: Renamed from modules/memxfrm. Update.
44243         * NEWS: Mention the change.
44244         * MODULES.html.sh (String handling <string.h>): Update.
44245         * lib/unicase/u-casexfrm.h: Invoke amemxfrm instead of memxfrm.
44246         * lib/unicase/u8-casexfrm.c: Include amemxfrm.h instead of memxfrm.h.
44247         * lib/unicase/u16-casexfrm.c: Likewise.
44248         * lib/unicase/u32-casexfrm.c: Likewise.
44249         * lib/uninorm/u-normxfrm.h: Invoke amemxfrm instead of memxfrm.
44250         * lib/uninorm/u8-normxfrm.c: Include amemxfrm.h instead of memxfrm.h.
44251         * lib/uninorm/u16-normxfrm.c: Likewise.
44252         * lib/uninorm/u32-normxfrm.c: Likewise.
44253         * modules/unicase/u8-casexfrm (Depends-on): Add amemxfrm, remove
44254         memxfrm.
44255         * modules/unicase/u16-casexfrm (Depends-on): Likewise.
44256         * modules/unicase/u32-casexfrm (Depends-on): Likewise.
44257         * modules/uninorm/u8-normxfrm (Depends-on): Likewise.
44258         * modules/uninorm/u16-normxfrm (Depends-on): Likewise.
44259         * modules/uninorm/u32-normxfrm (Depends-on): Likewise.
44260         Suggested by Paul Eggert.
44262 2010-08-14  Bruno Haible  <bruno@clisp.org>
44264         Tests for module 'astrxfrm'.
44265         * modules/astrxfrm-tests: New file.
44266         * tests/test-astrxfrm.c: New file.
44268         New module 'astrxfrm'.
44269         * lib/astrxfrm.h: New file.
44270         * lib/astrxfrm.c: New file, based on lib/memxfrm.c.
44271         * modules/astrxfrm: New file.
44273 2010-08-14  Reuben Thomas  <rrt@sc3d.org>
44275         regex: Tweak doc.
44276         * doc/regex.texi (Overview): Don't mention regex.c.
44277         (GNU Regular Expression Compiling): Likewise.
44278         (Match-end-of-line Operator): Mention 'not_eol'.
44280 2010-08-14  Brian Gough  <bjg@gnu.org>
44281             Bruno Haible  <bruno@clisp.org>
44283         git-merge-changelog: add doc relating to use with bzr and hg.
44284         * lib/git-merge-changelog.c: Add comments regarding bzr, hg, diff3.
44286 2010-08-14  Matthias Bolte  <matthias.bolte@googlemail.com>
44288         pthread: fix pthread.h creation for srcdir != builddir
44289         * modules/pthread (Makefile.am): Fix the rule to work also in a
44290         non-srcdir build.
44292 2010-08-13  Karl Berry  <karl@gnu.org>
44294         * doc/regex.texi (Predefined Syntaxes): @smallexample.
44295         * doc/posix-*/*: force line break before @url of POSIX
44296         specifications.
44297         Suggested by Werner Lemberg.
44299 2010-08-10  Paul Eggert  <eggert@cs.ucla.edu>
44301         strtod: fix const diagnostic
44302         * lib/strtod.c (strtod): Don't assign const char * to char *,
44303         as this elicits a warning from GCC when warnings are enabled.
44305 2010-08-10  Pádraig Brady  <P@draigbrady.com>
44306         and Eric Blake  <eblake@redhat.com>
44308         copy-acl: ignore ENOTSUP on HP-UX
44309         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Move definition up,
44310         so that it is available for HP-UX.
44311         * lib/copy-acl.c (qcopy_acl): Use it.
44312         Reported by Patrick M. Callahan.
44314 2010-08-10  Eric Blake  <eblake@redhat.com>
44316         open, chown: relax license
44317         * modules/open (License): Change to LGPLv2+, with consent by all
44318         authors, for use in augeas.
44319         * modules/chown (License): Likewise.
44320         * modules/lchown (Likewise): Likewise.
44321         Requested by Adam Stokes.
44323 2010-08-09  Karl Berry  <karl@gnu.org>
44325         * build-aux/ar-lib: new file, import from Automake.
44326         * config/srclist.txt: autocheck for updates.
44328 2010-08-09  Eric Blake  <eblake@redhat.com>
44330         readlinkat: adjust client modules
44331         * modules/areadlinkat (Depends-on): Use readlinkat, not
44332         symlinkat.
44333         * modules/areadlinkat-with-size (Depends-on): Likewise.
44335         mknod: be more vocal about danger of running tests as root
44336         * m4/mknod.m4 (gl_FUNC_MKNOD): Make it harder to run configure as
44337         root, since that is just asking for problems.
44338         Suggested by Bruno Haible, based on a report by Rainer Tammer.
44340         readlinkat: split into its own module
44341         * modules/symlinkat: Split readlinkat...
44342         * modules/readlinkat: ...into separate module.
44343         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move readlinkat check...
44344         * m4/readlinkat.m4 (gl_FUNC_READLINAT): ...to new file.
44345         * lib/symlinkat.c (readlinkat): Move...
44346         * lib/readlinkat.c: ...into new file.
44347         * modules/symlinkat-tests: Split readlinkat test...
44348         * modules/readlinkat-tests: ...into separate module.
44349         * tests/test-symlinkat.c: Split...
44350         * tests/test-readlinkat.c: ...into new file.
44351         * NEWS: Document the split.
44352         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
44353         * lib/unistd.in.h (readlinkat): Likewise.
44354         Suggested by Bruno Haible.
44356 2010-08-08  Bruno Haible  <bruno@clisp.org>
44358         memxfrm: Speed up.
44359         * lib/memxfrm.c (memxfrm): Allocate enough memory ahead of time, so
44360         that usually only one call to strxfrm is necessary for each string
44361         part.
44362         Reported by Paul Eggert <eggert@cs.ucla.edu>.
44364 2010-08-07  Karl Berry  <karl@gnu.org>
44366         * doc/posix-headers/limits.texi,
44367         * doc/posix-functions/malloc.texi,
44368         * doc/posix-functions/strsignal.texi: missing @item.
44369         * doc/ld-version-script.texi: spurious leading i.
44370         * doc/regex.texi (Interval Operators): no commas inside @var.
44372 2010-08-01  Bruno Haible  <bruno@clisp.org>
44374         Integrate the regex documentation.
44375         * doc/gnulib.texi: Define 'cn' index.
44376         (Regular expressions): New a chapter that includes regex.texi and
44377         regexprops-generic.texi.
44378         * doc/regex.texi: Remove boilerplate stuff. Use simplified @node
44379         syntax.
44381         Whitespace cleanup.
44382         * doc/regex.texi: Remove trailing spaces.
44384         Add regex documentation.
44385         * doc/regex.texi: New file. Taken from regex-0.12/doc/regex.texi in
44386         http://ftp.gnu.org/old-gnu/regex/regex-0.12.tar.gz.
44387         Written by Kathy A. Hargreaves and Karl Berry.
44389 2010-08-01  Bruno Haible  <bruno@clisp.org>
44391         link: Update documentation.
44392         * doc/posix-functions/link.texi: Update regarding Solaris.
44394 2010-07-31  Bruno Haible  <bruno@clisp.org>
44396         Update modules list.
44397         * MODULES.html.sh (Sorting functions <stdlib.h>): Add array-mergesort.
44398         (String handling <string.h>): Add memcmp2, memxfrm.
44399         (Container data structures): Add xlist, xsublist, xoset.
44400         (Core language properties): Add alignof, unused-parameter.
44401         (Process control, Numeric conversion functions <stdlib.h>): Renamed
44402         from Numeric conversion functions <stdlib.h>. Add _Exit, atoll.
44403         (Unibyte characters <ctype.h>): New section.
44404         (String handling <string.h>): New section.
44405         (Mathematics <math.h>): Add acos, acosl, asin, asinl, atan, atan2,
44406         atanl, cbrt, copysign, cos, cosh, cosl, erf, erfc, exp, expl, fabs,
44407         fmod, hypot, j0, j1, jn, ldexp, lgamma, log, log10, log1p, logb, logl,
44408         modf, nextafter, pow, remainder, rint, sin, sinh, sinl, sqrt, sqrtl,
44409         tan, tanh, tanl, y0, y1, yn.
44410         (Support for systems lacking POSIX:2008): Add alphasort, dirent,
44411         dprintf, dprintf-posix, duplocale, fcntl, getlogin, getopt-posix,
44412         grantpt, iconv-h, ioctl, isblank, langinfo, nl_langinfo, pread,
44413         ptsname, pwrite, scandir, servent, sys_utsname, ttyname_r, uname,
44414         unlockpt, vdprintf, vdprintf-posix.
44415         (Enhancements for POSIX:2008 functions): Add getopt-gnu. Remove getopt.
44416         (File system functions): Add concat-filename, sys_file, sys_ioctl,
44417         xconcat-filename.
44418         (File descriptor based Input/Output): Add dup3, fd-safer-flag,
44419         getdtablesize, pipe2, pipe2-safer.
44420         (Security): New section.
44421         (Networking functions): Add accept4.
44422         (Signal handling): Add sigpipe.
44423         (Internationalization functions): Add xstriconveh, mbmemcasecmp,
44424         mbmemcasecoll.
44425         (Unicode string functions): Add libunistring-optional, unistr/u*-cmp2,
44426         unistr/u*-strcoll, uniwbrk/*, uninorm/*, unicase/*.
44427         (Executing programs): Add findprog-lgpl, pipe-filter-gi,
44428         pipe-filter-ii.
44429         (Misc): Add argp-version-etc, login_tty, parse-duration.
44431 2010-07-31  Bruno Haible  <bruno@clisp.org>
44433         Improve doc in MODULES.html.
44434         * modules/linkat (Description): Add the word "function".
44435         * modules/mkfifo (Description): Likewise.
44436         * modules/mknod (Description): Likewise.
44437         * modules/remove (Description): Likewise.
44438         * modules/renameat (Description): Likewise.
44439         * modules/stat (Description): Likewise.
44440         * modules/symlink (Description): Likewise.
44441         * modules/unlink (Description): Likewise.
44443 2010-07-31  Bruno Haible  <bruno@clisp.org>
44445         ansi-c++-opt: Provide option --enable-c++/--disable-c++ when possible.
44446         * m4/ansi-c++.m4 (gl_CXX_CHOICE): In Autoconf 2.66 or newer, provide
44447         option --enable/disable-c++ instead of --enable/disable-cxx.
44448         * NEWS: Mention the change.
44450 2010-07-31  Bruno Haible  <bruno@clisp.org>
44452         readlink, areadlink: Relax test a bit.
44453         * tests/test-readlink.h (test_readlink): Accept EINVAL as an
44454         alternative to ENOTDIR.
44455         * tests/test-areadlink.h (test_areadlink): Likewise.
44456         Reported by Rainer Tammer.
44458 2010-07-31  Bruno Haible  <bruno@clisp.org>
44460         unistr/u8-strstr, unistr/u16-strstr: Optimize the one-character case.
44461         * lib/unistr/u-strstr.h (FUNC): When the needle contains only one
44462         character, perform the search using U_STRCHR.
44463         * lib/unistr/u8-strstr.c (U_STRMBTOUC): New macro.
44464         * lib/unistr/u16-strstr.c (U_STRMBTOUC): Likewise.
44465         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strmbtouc.
44466         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strmbtouc.
44467         Suggested by Paolo Bonzini.
44469 2010-07-31  Bruno Haible  <bruno@clisp.org>
44471         unistr/u*-strstr: Fix dependencies.
44472         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strchr.
44473         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strchr.
44474         * modules/unistr/u32-strstr (Depends-on): Add unistr/u32-strchr.
44476 2010-07-31  Bruno Haible  <bruno@clisp.org>
44478         unistr/u8-chr, unistr/u8-strchr: Optimize and add comments.
44479         * lib/unistr/u8-chr.c (u8_chr): Add comments. Remove a useless test at
44480         the beginning of the loop.
44481         * lib/unistr/u8-strchr.c (u8_strchr): Add comments. Don't fall through
44482         cases in 'switch' statement.
44484         unistr/u8-strchr: Fix several bugs.
44485         * lib/unistr/u8-strchr.c (u8_strchr): Don't search beyond the end of
44486         the string. When not found, return NULL, not a pointer near the end.
44488         More tests for unistr/u8-strchr.
44489         * tests/unistr/test-strchr.h (test_strchr): Renamed from main. Check
44490         that the function does not read past the first occurrence of the byte
44491         being searched.
44492         * tests/unistr/test-u8-strchr.c (main): New function, with more tests.
44493         * tests/unistr/test-u16-strchr.c (main): New function.
44494         * tests/unistr/test-u32-strchr.c (main): New function.
44496 2010-07-31  Bruno Haible  <bruno@clisp.org>
44498         posix-modules: Ignore backup files of documentation files.
44499         * posix-modules: grep only through files named *.texi.
44501 2010-07-31  Bruno Haible  <bruno@clisp.org>
44503         symlinkat: Fix documentation.
44504         * doc/posix-functions/readlinkat.texi: Fix module name.
44506 2010-07-31  Bruno Haible  <bruno@clisp.org>
44508         fchownat: Replace also when chown has the trailing slash bug.
44509         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Move the test of REPLACE_CHOWN
44510         outside the gl_FUNC_FCHOWNAT_DEREF_BUG invocation. Fixes regression
44511         introduced on 2010-04-10.
44512         Reported by Rainer Tammer.
44514 2010-07-31  Bruno Haible  <bruno@clisp.org>
44516         linkat: Work around AIX 7.1 bug.
44517         * m4/linkat.m4 (gl_FUNC_LINKAT): Require AC_CANONICAL_HOST. Test
44518         whether linkat handles trailing slash correctly. If not, replace linkat
44519         and define LINKAT_TRAILING_SLASH_BUG.
44520         * lib/linkat.c (rpl_linkat): If LINKAT_TRAILING_SLASH_BUG is defined,
44521         check whether (fd1,file1) points to a directory if file1 or file2 ends
44522         in a slash. Code taken from lib/link.c.
44523         * doc/posix-functions/linkat.texi: Mention trailing slash bug.
44524         Reported by Rainer Tammer.
44526 2010-07-31  Bruno Haible  <bruno@clisp.org>
44528         Correctly determine whether pow is available in libc on AIX 7 with xlc.
44529         * m4/mathfunc.m4 (gl_MATHFUNC): Actually use the 'funcptr' variable.
44530         This disables an xlc optimization that was causing wrong test results.
44531         Reported by Rainer Tammer.
44533 2010-07-31  Bruno Haible  <bruno@clisp.org>
44535         iconv: Work around AIX 6.1..7.1 bug.
44536         * doc/posix-functions/iconv.texi: Mention AIX 6.1, 7.1 bug.
44537         * m4/iconv.m4 (AM_ICONV_LINK): Test against AIX 6.1, 7.1 bug. When
44538         cross-compiling, guess no on all versions of AIX.
44539         Reported by Rainer Tammer.
44541 2010-07-31  Bruno Haible  <bruno@clisp.org>
44543         readlink: Relax test a bit.
44544         * tests/test-readlink.h (test_readlink): Allow different errno value
44545         when readlink is called with a file name that ends in / and refers to
44546         a file.
44547         Suggested by Eric Blake.
44548         Reported by Rainer Tammer.
44550 2010-07-31  Bruno Haible  <bruno@clisp.org>
44552         copysign: Does not require -lm on glibc systems.
44553         * modules/copysign (configure.ac): Use gl_MATHFUNC, not
44554         gl_COMMON_DOUBLE_MATHFUNC.
44555         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC): Update comments.
44557 2010-07-31  Bruno Haible  <bruno@clisp.org>
44559         duplocale: Work around AIX 7.1 bug.
44560         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Let the test fail also when
44561         duplocale(LC_GLOBAL_LOCALE) returns (locale_t)0.
44562         * lib/duplocale.c (rpl_duplocale): Update comment.
44563         * doc/posix-functions/duplocale.texi: Mention the AIX 7.1 bug.
44564         Reported by Rainer Tammer.
44566 2010-07-30  Bruno Haible  <bruno@clisp.org>
44568         dirfd: Avoid link error on AIX 7.1.
44569         * lib/dirent.in.h (dirfd): Use modern idiom with REPLACE_DIRFD.
44570         * m4/dirfd.m4 (gl_FUNC_DIRFD): If the function is declared but does not
44571         exist, set REPLACE_DIRFD.
44572         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize REPLACE_DIRFD.
44573         * modules/dirent (Makefile.am): Substitute REPLACE_DIRFD.
44574         * doc/posix-functions/dirfd.texi: Update.
44575         Reported by Rainer Tammer.
44577 2010-07-30  Eric Blake  <eblake@redhat.com>
44579         strtod: next round of AIX fixes
44580         * lib/strtod.c (strtod): Work around AIX bug of parsing p with no
44581         exponent.
44582         * tests/test-strtod.c (main): Enhance tests.
44583         * doc/posix-functions/strtod.texi (strtod): Document next bug.
44584         Reported by Rainer Tammer.
44586         futimens: fix configure check
44587         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Use correct logic.
44588         Reported by Bruno Haible.
44590 2010-07-30  Bruno Haible  <bruno@clisp.org>
44592         getline: Update regarding AIX.
44593         * doc/posix-functions/getline.texi: Mention bug on AIX 7.1.
44594         Reported by Rainer Tammer.
44596 2010-07-30  Bruno Haible  <bruno@clisp.org>
44598         wcwidth: Drop replacement on AIX 7.
44599         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): When cross-compiling, guess yes on
44600         AIX 7.
44601         Reported by Rainer Tammer.
44603 2010-07-30  Bruno Haible  <bruno@clisp.org>
44605         strtok_r: Avoid triggering bug in AIX 7.1 xlc compiler.
44606         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't cast an invalid address to
44607         a 'char *'.
44608         Reported by Rainer Tammer.
44610 2010-07-30  Bruno Haible  <bruno@clisp.org>
44612         unlink: Update regarding AIX.
44613         * doc/posix-functions/unlink.texi: Mention bug on AIX 7.1.
44614         * m4/unlink.m4 (gl_FUNC_UNLINK): Update comment.
44615         Reported by Rainer Tammer.
44617 2010-07-30  Bruno Haible  <bruno@clisp.org>
44619         symlink: Update regarding AIX.
44620         * doc/posix-functions/symlink.texi: Mention bug on AIX 7.1.
44621         * m4/symlink.m4 (gl_FUNC_SYMLINK): Update comment.
44622         Reported by Rainer Tammer.
44624 2010-07-30  Bruno Haible  <bruno@clisp.org>
44626         strndup: Update regarding AIX.
44627         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, guess yes on
44628         AIX 7.
44629         Reported by Rainer Tammer.
44631 2010-07-30  Bruno Haible  <bruno@clisp.org>
44633         stat: Update regarding AIX.
44634         * doc/posix-functions/stat.texi: Mention bug on AIX 7.1.
44635         * m4/stat.m4 (gl_FUNC_STAT): Update comment.
44636         Reported by Rainer Tammer.
44638 2010-07-30  Bruno Haible  <bruno@clisp.org>
44640         truncl: Fix autoconf test.
44641         * m4/truncl.m4 (gl_FUNC_TRUNCL): Add TRUNCL_LIBM to LIBS while testing
44642         whether truncl works.
44643         Reported by Rainer Tammer.
44645 2010-07-30  Bruno Haible  <bruno@clisp.org>
44647         round: Update regarding AIX.
44648         * m4/round.m4 (gl_FUNC_ROUND): When cross-compiling, guess no on AIX 7.
44649         * doc/posix-functions/round.texi: Mention bug on AIX 7.1.
44650         Reported by Rainer Tammer.
44652 2010-07-30  Bruno Haible  <bruno@clisp.org>
44654         rename: Update regarding AIX.
44655         * doc/posix-functions/rename.texi: Mention bug on AIX 7.1.
44656         * m4/rename.m4 (gl_FUNC_RENAME): Update comment.
44657         Reported by Rainer Tammer.
44659 2010-07-30  Bruno Haible  <bruno@clisp.org>
44661         printf.m4: Update regarding AIX.
44662         * m4/printf.m4: Update comments regarding AIX.
44663         Reported by Rainer Tammer.
44665 2010-07-30  Bruno Haible  <bruno@clisp.org>
44667         iconv: Update regarding AIX.
44668         * m4/iconv.m4 (AM_ICONV_LINK): When cross-compiling, guess yes on
44669         AIX 7.
44670         Reported by Rainer Tammer.
44672 2010-07-30  Bruno Haible  <bruno@clisp.org>
44674         getopt: Update regarding AIX.
44675         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): When cross-compiling, guess
44676         no on AIX.
44677         * doc/posix-functions/getopt.texi: Mention that AIX has the optind bug.
44678         Reported by Rainer Tammer.
44680 2010-07-30  Bruno Haible  <bruno@clisp.org>
44682         ldexpl; Update regarding AIX.
44683         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): When cross-compiling, guess yes
44684         on AIX 7.
44685         Reported by Rainer Tammer.
44687 2010-07-30  Bruno Haible  <bruno@clisp.org>
44689         frexpl: Update regarding AIX.
44690         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): When cross-compiling, guess yes
44691         on AIX 7.
44692         Reported by Rainer Tammer.
44694 2010-07-30  Bruno Haible  <bruno@clisp.org>
44696         open, fopen: Update regarding AIX.
44697         * m4/open.m4 (gl_FUNC_OPEN): Adjust cross-compiling guess for AIX.
44698         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
44699         * doc/posix-functions/open.texi: Mention the trailing-slash bug on AIX.
44700         * doc/posix-functions/fopen.texi: Likewise.
44701         Reported by Rainer Tammer.
44703 2010-07-30  Bruno Haible  <bruno@clisp.org>
44705         chown: Update doc regarding AIX.
44706         * doc/posix-functions/chown.texi: Mention bug on AIX 7.1.
44707         * m4/chown.m4 (gl_FUNC_CHOWN): Update comment.
44708         Reported by Rainer Tammer.
44710 2010-07-30  Eric Blake  <eblake@redhat.com>
44712         strtod: fix bug in replacement function on AIX
44713         * lib/strtod.c (strtod): Special case broken "0x" parse in
44714         underlying strtod.
44715         * tests/test-strtod.c (main): Document AIX 7.1 bugs.
44716         * doc/posix-functions/strtod.texi (strtod): Likewise.
44717         Reported by Rainer Tammer.
44719 2010-07-30  Bruno Haible  <bruno@clisp.org>
44721         mbrlen: Fix cross-compilation guess for AIX.
44722         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE): Fix cross-compilation
44723         guess. Leftover from 2008-12-22.
44725 2010-07-30  Bruno Haible  <bruno@clisp.org>
44727         mbrtowc: Fix cross-compilation guess for AIX.
44728         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Fix cross-compilation
44729         guess. Leftover from 2008-12-21.
44731 2010-07-29  Peter O'Gorman  <pogma@thewrittenword.com>  (tiny change)
44733         init.sh: work around trap limitation of some shells
44734         * tests/init.sh (setup_): Move exit trap outside of shell function.
44736 2010-07-29  Eric Blake  <eblake@redhat.com>
44738         strtod: aid debugging
44739         * m4/strtod.m4(gl_FUNC_STRTOD): Use distinct exit status to aid
44740         understanding why strtod is rejected.
44742 2010-07-28  Bruno Haible  <bruno@clisp.org>
44744         unistr/u*-chr, unistr/u*-strchr: Fix link errors and warnings.
44745         * lib/unistr/u8-chr.c: Include <string.h>.
44746         * tests/unistr/test-u8-chr.c: Likewise.
44747         * tests/unistr/test-u16-chr.c: Likewise.
44748         * tests/unistr/test-u32-chr.c: Likewise.
44749         * tests/unistr/test-u8-strchr.c: Likewise.
44750         * tests/unistr/test-u16-strchr.c: Likewise.
44751         * tests/unistr/test-u32-strchr.c: Likewise.
44752         * modules/unistr/u8-chr-tests (Depends-on): Add unistr/u32-set.
44753         * modules/unistr/u16-chr-tests (Depends-on): Likewise.
44754         * modules/unistr/u8-strchr-tests (Depends-on): Likewise.
44755         * modules/unistr/u16-strchr-tests (Depends-on): Likewise.
44757 2010-07-28  Bruno Haible  <bruno@clisp.org>
44759         Use spaces for indentation, not tabs.
44760         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
44762 2010-07-27  Bruno Haible  <bruno@clisp.org>
44764         mbspcasecmp: Fix function specification.
44765         * lib/string.in.h (mbspcasecmp): Fix specification comment.
44766         * lib/mbspcasecmp.c (mbspcasecmp): Likewise.
44767         Reported by Eric Blake <eblake@redhat.com>.
44769 2010-07-26  Paul R. Eggert  <eggert@cs.ucla.edu>
44771         timespec: use cast and not conditional, as truncation isn't possible
44772         * lib/timespec.h (timespec_cmp): Use cast to pacify gcc -Wconversion
44773         instead of a conditional.  Comment about the situation in more detail.
44774         This undoes most of the 2009-10-29 patch.
44776 2010-07-23  Paolo Bonzini  <pbonzini@redhat.com>
44778         unistr/u8-chr, unistr/u8-strchr: use Boyer-Moore like algorithm.
44779         * lib/unistr/u8-chr.c: Add Boyer-Moore like operation.
44780         * lib/unistr/u8-strchr.c: Likewise.
44781         * modules/unistr/u8-chr: Depend on memchr.
44783         unistr/u*-strchr: add tests
44784         * modules/unistr/u8-strchr-tests: New file.
44785         * modules/unistr/u16-strchr-tests: New file.
44786         * modules/unistr/u32-strchr-tests: New file.
44787         * tests/unistr/test-strchr.h: New file.
44788         * tests/unistr/test-u8-strchr.c: New file.
44789         * tests/unistr/test-u16-strchr.c: New file.
44790         * tests/unistr/test-u32-strchr.c: New file.
44792         unistr/u*-chr: test multibyte sequences more
44793         * tests/unistr/test-chr.h: Do complete testing of the characters in the
44794         test vector.
44795         * tests/unistr/test-u8-chr.c (U_UCTOMB): Define.
44796         * tests/unistr/test-u16-chr.c (U_UCTOMB): Likewise.
44797         * tests/unistr/test-u32-chr.c (U_UCTOMB): Likewise.
44799         unistr/u*-chr: test multibyte sequences
44800         * tests/unistr/test-chr.h: Put characters above 0-127 in the test input.
44802         unistr/u*-chr: prepare for multibyte tests
44803         * modules/unistr/u8-chr-tests: Depend on u32-to-u8.
44804         * modules/unistr/u16-chr-tests: Depend on u32-to-u16.
44805         * tests/unistr/test-chr.h: Build initial version as UCS-4 then convert.
44806         * tests/unistr/test-u8-chr.c (U32_TO_U): Define.
44807         * tests/unistr/test-u16-chr.c (U32_TO_U): Likewise.
44808         * tests/unistr/test-u32-chr.c (U32_TO_U): Likewise.
44810 2010-07-18  Bruno Haible  <bruno@clisp.org>
44812         unistr/u8-strchr: Optimize non-ASCII argument case.
44813         * lib/unistr/u8-strchr.c (u8_strchr): Compare the last byte first,
44814         because the first byte often matches anyway.
44815         Reported by Pádraig Brady <P@draigbrady.com>.
44817 2010-07-15  Karl Berry  <karl@gnu.org>
44819         * config/srclist.txt (fdl.texi): only one copy, from gnustandards.
44821 2010-07-14  Paul R. Eggert  <eggert@cs.ucla.edu>
44823         getcwd: on Solaris, work better if ancestors are inaccessible
44824         * lib/getcwd.c (__getcwd): If getcwd returns EINVAL for zero
44825         buffer and size, try again with a large buffer.  This works better
44826         on Solaris, since its getcwd succeeds even if the path to the root
44827         is inaccessible, and this is helpful in common cases such as .zfs
44828         hidden directories.  Problem reported by J Chapman Flack in
44829         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00000.html
44830         Use system getcwd if it's declared, not merely if it's partly
44831         working; use the partly-working test only to avoid needless effort
44832         if the system getcwd fails.
44833         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Omit
44834         comment that was already obsolete and is now even more obsolete.
44835         * modules/getcwd (Depends-on): Depend on strdup, since __getcwd
44836         now might call strdup.
44838 2010-07-13  Paul R. Eggert  <eggert@cs.ucla.edu>
44840         pthread: Add enough so that coreutils/src/sort.c compiles.
44841         * lib/pthread.in.h: Add self to author comment.  Conditionalize on
44842         _GL_PTHREAD_H, not PTHREAD_H_, for consistency with the rest of
44843         gnulib. Include <sched.h> and <time.h>, as per POSIX.
44844         Include <sys/types.h>, in case it defines pthread_t.
44845         (pthread_t, pthread_attr_t, pthread_barrier_t, pthread_barrierattr_t):
44846         (pthread_cond_t, pthread_condattr_t, pthread_key_t, pthread_mutex_t):
44847         (pthread_mutexattr_t, pthread_once_t, pthread_rwlock_t):
44848         (pthread_rwlockattr_t, pthread_spinlock_t):
44849         New typedefs, if HAVE_PTHREAD_T is not defined.
44850         (PTHREAD_COND_INITIALIZER, PTHREAD_MUTEX_INITIALIZER):
44851         (PTHREAD_ONCE_INIT, PTHREAD_RWLOCK_INITIALIZER):
44852         (PTHREAD_BARRIER_SERIAL_THREAD, PTHREAD_CANCEL_DEFERRED):
44853         (PTHREAD_CANCEL_ASYNCHRONOUS, PTHREAD_CANCEL_ENABLE):
44854         (PTHREAD_CANCEL_DISABLE, PTHREAD_CANCELED, PTHREAD_CREATE_JOINABLE):
44855         (PTHREAD_CREATE_DETACHED, PTHREAD_INHERIT_SCHED):
44856         (PTHREAD_EXPLICIT_SCHED, PTHREAD_MUTEX_DEFAULT, PTHREAD_MUTEX_NORMAL):
44857         (PTHREAD_MUTEX_ERRORCHECK, PTHREAD_MUTEX_RECURSIVE):
44858         (PTHREAD_MUTEX_STALLED, PTHREAD_MUTEX_ROBUST, PTHREAD_PRIO_NONE):
44859         (PTHREAD_PRIO_INHERIT, PTHREAD_PRIO_PROTECT, PTHREAD_PROCESS_PRIVATE):
44860         (PTHREAD_PROCESS_SHARED, PTHREAD_SCOPE_SYSTEM, PTHREAD_SCOPE_PROCESS):
44861         New macros.
44862         (pthread_cond_destroy, pthread_cond_init, pthread_cond_signal):
44863         (pthread_cond_wait, pthread_exit, pthread_mutex_destroy):
44864         (pthread_mutex_init, pthread_mutex_lock, pthread_mutex_unlock):
44865         (pthread_spin_init, pthread_spin_lock, pthread_spin_trylock);
44866         (pthread_spin_unlock): New dummy functions.
44867         (pthread_create): Return EAGAIN; don't set errno.
44868         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_t, and
44869         require AC_C_INLINE.
44870         * modules/pthread (Depends-on): Add sched, time.
44871         (pthread.h): Use AM_V_GEN.
44873 2010-07-13  Bruno Haible  <bruno@clisp.org>
44875         striconveh: Don't malloc memory if the result buffer is sufficient.
44876         * lib/striconveh.c (mem_cd_iconveh_internal): Use the provided result
44877         buffer if its size is sufficient.
44878         Reported by Ludovic Courtès <ludo@gnu.org>.
44880 2010-07-13  Bruno Haible  <bruno@clisp.org>
44882         strtod: Add safety check.
44883         * lib/strtod.c (ldexp): Abort if this dummy replacement gets called.
44885 2010-07-12  Bruno Haible  <bruno@clisp.org>
44887         Unify tests that set gl_cv_func_ldexpl_no_libm.
44888         * m4/ldexpl.m4 (gl_CHECK_LDEXPL_NO_LIBM): New macro, extracted from
44889         gl_FUNC_LDEXPL.
44890         (gl_FUNC_LDEXPL): Invoke it.
44891         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
44893 2010-07-12  Bruno Haible  <bruno@clisp.org>
44895         Unify tests that set gl_cv_func_ldexp_no_libm.
44896         * m4/ldexp.m4: New file, based on m4/mathfunc.m4.
44897         * m4/strtod.m4 (gl_PREREQ_STRTOD): Require gl_CHECK_LDEXP_NO_LIBM.
44898         * modules/ldexp (Files): Remove m4/mathfunc.m4. Add m4/ldexp.m4.
44899         (configure.ac): Simply invoke gl_FUNC_LDEXP.
44900         * modules/strtod (Files): Add m4/ldexp.m4.
44902 2010-07-12  Bruno Haible  <bruno@clisp.org>
44904         Unify tests that set gl_cv_func_frexpl_no_libm.
44905         * m4/frexpl.m4 (gl_CHECK_FREXPL_NO_LIBM): New macro, extracted from
44906         gl_FUNC_FREXPL_NO_LIBM.
44907         (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Invoke it.
44908         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
44910 2010-07-12  Bruno Haible  <bruno@clisp.org>
44912         Unify tests that set gl_cv_func_frexp_no_libm.
44913         * m4/frexp.m4 (gl_CHECK_FREXP_NO_LIBM): New macro, extracted from
44914         gl_FUNC_FREXP_NO_LIBM.
44915         (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Require it.
44916         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
44918 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
44920         memcoll: clarify sizes versus lengths, document better, and tweak perf
44921         * lib/memcoll.c (strcoll_loop, memcoll0):
44922         Improve quality of descriptive comments.  Name variables
44923         consistently as to whether they are lengths (which do not include
44924         terminating null) versus sizes (which do).
44925         * lib/xmemcoll.c (xmemcoll0): Likewise.
44926         * lib/memcoll.c (strcoll_loop): Tweak the way that the diff is
44927         returned when s1size == 0; this is easier to compile and saves
44928         about 17% of memcoll's code space on x86-64 with GCC 4.1.2.
44930 2010-07-12  Bruno Haible  <bruno@clisp.org>
44932         Tests for module '_Exit'.
44933         * modules/_Exit-tests: New file.
44934         * tests/test-_Exit.sh: New file.
44935         * tests/test-_Exit.c: New file.
44937         New module '_Exit'.
44938         * lib/stdlib.in.h (__attribute__): New macro.
44939         (_Exit): New declaration.
44940         * lib/_Exit.c: New file.
44941         * m4/_Exit.m4: New file.
44942         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether _Exit is declared.
44943         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB__EXIT and HAVE__EXIT.
44944         * modules/stdlib (Makefile.am): Substitute GNULIB__EXIT and HAVE__EXIT.
44945         * modules/_Exit: New file.
44946         * tests/test-stdlib-c++.cc (_Exit): Check signature.
44947         * doc/posix-functions/_Exit_C99.texi: Mention the new module.
44949 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
44951         strtod: make it more-accurate typically, and don't require libm
44952         * lib/strtod.c (_GL_ARG_NONNULL): Remove; no longer needed.
44953         Include limits.h.  Don't include string.h.
44954         (HAVE_LDEXP_IN_LIBC, HAVE_RAW_DECL_STRTOD): Define to 0 if not defined.
44955         (locale_isspace): New function, so that no casts are needed to
44956         check whether *s is a space.
44957         (ldexp): Provide an unused dummy if not available.
44958         (scale_radix_exp, parse_number, underlying_strtod): New functions.
44959         (strtod): Use them.  This implementation prefers to use the
44960         underlying strtod if available, falling back on our own code
44961         only to fix known bugs.  This is more likely to produce an
44962         accurate result.  Also, it avoids the use of libm functions.
44963         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't invoke _AC_LIBOBJ_STRTOD;
44964         no longer needed.  Invoke AC_LIBOBJ([strtod]); don't know why this
44965         was absent, but it caused a test failure with coreutils.
44966         (gl_PREREQ_STRTOD): Check wither ldexp can be used without linking
44967         with libm.
44968         * modules/strtod (Makefile.am, Link): libm is no longer needed.
44969         * modules/strtod-tests (Makefile.am): Likewise.
44971 2010-07-11  Pádraig Brady  <P@draigBrady.com>
44972             Bruno Haible  <bruno@clisp.org>
44974         unistr/u8-strchr: Optimize ASCII argument case.
44975         * lib/unistr/u8-strchr.c (u8_strchr): For ASCII arguments, use strchr.
44977 2010-07-08  Paul Eggert  <eggert@cs.ucla.edu>
44979         (x)memcoll: minor tweaks
44980         * lib/memcoll.c (strcoll_loop): Prefer the style where 'const'
44981         is after the type that it qualifies.
44982         (memcoll0): Likewise.
44983         * lib/memcoll.h (memcoll0): Likewise.
44984         * lib/xmemcoll.c (collate_error, xmemcoll0): Likewise.
44985         * lib/xmemcoll.h (xmemcoll0): Likewise.
44986         * lib/memcoll.c (memcoll0): Correct the comment.  This function
44987         differs from memcoll in that the NUL byte is part of the argument.
44988         Omit the abort-checks, as performance is a real issue here.  Plus,
44989         the checks were wrong anyway (an off-by-one error).  Omit local
44990         variable 'diff', as it's a bit clearer that way.
44991         * m4/memcoll.m4 (gl_MEMCOLL): Omit AC_FUNC_STRCOLL, as it's
44992         no longer needed.
44994 2010-07-08  Chen Guo  <chenguo4@yahoo.com>
44996         (x)memcoll: speedup when input is known to be NUL delimited
44997         * lib/memcoll.c: Include stdlib.
44998         (memcoll0): New function.
44999         (strcoll_loop): New function, refactored for use in both memcoll
45000         and memcoll0.
45001         * lib/memcoll.h (memcoll0): Add prototype.
45002         * lib/xmemcoll.c (xmemcoll0): New function.
45003         (collate_error): New function, refactored for use in both xmemcoll
45004         and xmemcoll0.
45005         * lib/xmemcoll.h (xmemcoll0): Add prototype.
45006         * m4/memcoll.m4: add inline invocation.
45008 2010-07-06  Pádraig Brady  <P@draigBrady.com>
45010         * build-aux/bootstrap: Remove any local translations
45011         from the translation project synchronization directory,
45012         so that local only translations are not distributed.
45014 2010-07-04  Bruno Haible  <bruno@clisp.org>
45016         fsusage: Clarify which code applies to which platforms.
45017         * m4/fsusage.m4 (gl_FSUSAGE): Clarify which test succeeds on which
45018         platform.
45019         * lib/fsusage.c (get_fs_usage): Likewise.
45021 2010-07-04  Bruno Haible  <bruno@clisp.org>
45023         havelib: Fix bug when AC_LIB_FROMPACKAGE is used more than twice.
45024         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): Use m4_defn.
45025         Reported by Martin Lambers <marlam@marlam.de>.
45027 2010-07-04  Jim Meyering  <meyering@redhat.com>
45029         hash: once again explicitly disallow insertion of NULL
45030         * lib/hash.c (hash_insert0): Reinstate just-removed test:
45031         inserting a NULL pointer cannot work with these functions.
45032         Add a comment with details.
45033         This reverts part of the 2010-07-01 commit, 5bef1a35
45034         "hash: extend module to deal with non-pointer keys".
45036 2010-07-01  Bruno Haible  <bruno@clisp.org>
45038         stdbool: Update doc.
45039         * doc/posix-headers/stdbool.texi: Mention OpenBSD bug.
45040         Info from Christian Weisgerber <naddy@mips.inka.de>.
45042 2010-07-01  Jim Meyering  <meyering@redhat.com>
45044         hash: extend module to deal with non-pointer keys
45045         * lib/hash.c (hash_insert0): New interface, much like hash_insert
45046         but that allows insertion of non-pointer entries.
45047         Do not disallow an ENTRY value of NULL.
45048         (hash_insert): This is now just a thin wrapper.  Call hash_insert0.
45049         * lib/hash.h (hash_insert0): Declare.
45051 2010-07-01  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
45053         gettext: Use AC_GNU_SOURCE as a fallback for AC_USE_SYSTEM_EXTENSIONS.
45054         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): When AC_USE_SYSTEM_EXTENSIONS is
45055         not present (i.e. with autoconf 2.59 and when using gettextize, not
45056         gnulib), require AC_GNU_SOURCE instead.
45058 2010-07-01  Ian Beckwith  <ianb@erislabs.net>
45060         idpriv-drop: Fix tests.
45061         * tests/test-idpriv-drop.su.sh: Refer to the test-idpriv-drop program,
45062         not to the test-idpriv-droptemp program.
45064 2010-06-29  Bruno Haible  <bruno@clisp.org>
45066         string: Fix syntax error with g++ 2.96.
45067         * lib/string.in.h (__pure__): Remove definition.
45068         (_GL_ATTRIBUTE_PURE): New macro.
45069         (memchr, memmem, memrchr, rawmemchr, strchrnul, strnlen, strpbrk,
45070         strstr, strcasestr): Use it instead of __attribute__ ((__pure__)).
45071         Reported by Christian Weisgerber <naddy@mips.inka.de>.
45073 2010-06-28  Ian Beckwith  <ianb@erislabs.net>
45075         unitypes: Fix bug introduced on 2010-05-18.
45076         * modules/unitypes (Files): Really add m4/libunistring-base.m4.
45078 2010-06-22  Eric Blake  <eblake@redhat.com>
45080         memmem: slight optimization
45081         * lib/str-two-way.h (critical_factorization): Update comments.
45082         Reduce work during factorization phase.
45083         Reported by Carlos Bueno <carlos@bueno.org>.
45085 2010-06-21  Bruno Haible  <bruno@clisp.org>
45087         Fix HAVE_CALLOC_POSIX misnomer.
45088         * lib/stdlib.in.h (calloc): Use REPLACE_CALLOC instead of
45089         !HAVE_CALLOC_POSIX.
45090         * m4/calloc.m4 (gl_REPLACE_CALLOC): Set REPLACE_CALLOC instead of
45091         HAVE_CALLOC_POSIX.
45092         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_CALLOC
45093         instead of HAVE_CALLOC_POSIX.
45094         * modules/stdlib (Makefile.am): Substitute REPLACE_CALLOC instead of
45095         HAVE_CALLOC_POSIX.
45097         Use modern idiom for calloc() replacement.
45098         * modules/calloc (configure.ac): Invoke gl_FUNC_CALLOC_GNU instead of
45099         AC_FUNC_CALLOC.
45100         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Renamed from AC_FUNC_CALLOC.
45101         Require gl_STDLIB_H_DEFAULTS. Invoke gl_REPLACE_CALLOC.
45102         (gl_FUNC_CALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
45103         HAVE_CALLOC_POSIX. Invoke gl_REPLACE_CALLOC.
45104         (gl_REPLACE_CALLOC): New macro.
45106 2010-06-21  Bruno Haible  <bruno@clisp.org>
45108         Fix HAVE_REALLOC_POSIX misnomer.
45109         * lib/stdlib.in.h (realloc): Use REPLACE_REALLOC instead of
45110         !HAVE_REALLOC_POSIX.
45111         * m4/realloc.m4 (gl_REPLACE_REALLOC): Set REPLACE_REALLOC instead of
45112         HAVE_REALLOC_POSIX.
45113         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_REALLOC
45114         instead of HAVE_REALLOC_POSIX.
45115         * modules/stdlib (Makefile.am): Substitute REPLACE_REALLOC instead of
45116         HAVE_REALLOC_POSIX.
45118         Use modern idiom for realloc() replacement.
45119         * modules/realloc (configure.ac): Invoke gl_FUNC_REALLOC_GNU instead of
45120         AC_FUNC_REALLOC.
45121         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): New macro, mostly copied from
45122         Autoconf's AC_FUNC_REALLOC.
45123         (gl_FUNC_REALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
45124         HAVE_REALLOC_POSIX. Invoke gl_REPLACE_REALLOC.
45125         (gl_REPLACE_REALLOC): New macro.
45126         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
45128 2010-06-21  Bruno Haible  <bruno@clisp.org>
45130         Fix HAVE_MALLOC_POSIX misnomer.
45131         * lib/stdlib.in.h (malloc): Use REPLACE_MALLOC instead of
45132         !HAVE_MALLOC_POSIX.
45133         * m4/malloc.m4 (gl_REPLACE_MALLOC): Set REPLACE_MALLOC instead of
45134         HAVE_MALLOC_POSIX.
45135         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_MALLOC
45136         instead of HAVE_MALLOC_POSIX.
45137         * modules/stdlib (Makefile.am): Substitute REPLACE_MALLOC instead of
45138         HAVE_MALLOC_POSIX.
45140         Use modern idiom for malloc() replacement.
45141         * modules/malloc (configure.ac): Invoke gl_FUNC_MALLOC_GNU instead of
45142         AC_FUNC_MALLOC.
45143         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): New macro, mostly copied from
45144         Autoconf's AC_FUNC_MALLOC.
45145         (gl_FUNC_MALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
45146         HAVE_MALLOC_POSIX. Invoke gl_REPLACE_MALLOC.
45147         (gl_REPLACE_MALLOC): New macro.
45148         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
45150 2010-06-20  Richard Lloyd  <richard.lloyd@connectinternetsolutions.com>
45152         stdio.in.h: fix compilation failure when using HP-UX 11's C compiler
45153         * lib/stdio.in.h: Remove excess _GL_CXXALIAS_RPL macro argument.
45154         This macro takes 3 arguments, not 4.
45156 2010-06-15  Giuseppe Scrivano  <gscrivano@gnu.org>
45158         ipv6: fix detection under mingw
45159         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Include <ws2tcpip.h> for struct
45160         in6_addr.
45162 2010-06-14  Ben Pfaff  <blp@cs.stanford.edu>
45164         * m4/strtod.m4 (gl_FUNC_STRTOD): Factor out common code.  Assume
45165         that strtod() works when cross-compiling to a glibc version known
45166         to work.
45168 2010-06-15  Bruno Haible  <bruno@clisp.org>
45170         * m4/strtod.m4 (gl_FUNC_STRTOD): Stop using AC_FUNC_STRTOD.
45172 2010-06-15  René Berber  <r.berber@computer.org>  (tiny change)
45174         select: Correct timeout.
45175         * lib/select.c (rpl_select): Compute wait_timeout correctly.
45177 2010-06-14  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
45179         git-version-gen: init shell var to avoid env var influence
45180         * build-aux/git-version-gen (v): Init shell var to empty.
45182 2010-06-14  Paul Eggert  <eggert@cs.ucla.edu>
45184         priv-set: Don't assume that priv.h exists merely because getppriv does.
45185         See Jan Andersen's bug report about AIX 5L in
45186         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00019.html
45187         * m4/priv-set.m4 (gl_PRIV_SET): Check for priv.h.
45188         * lib/priv-set.c: Do nothing unless HAVE_PRIV_H.
45189         * lib/priv-set.h: Likewise.
45190         * tests/test-priv-set.c: Likewise.
45192 2010-06-13  Bruno Haible  <bruno@clisp.org>
45194         relocatable: Make it easier to test whether to install wrappers.
45195         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): New automake conditional
45196         RELOCATABLE_VIA_WRAPPER.
45198 2010-06-13  Bruno Haible  <bruno@clisp.org>
45200         gnulib-tool: Display specified modules and dependencies differently.
45201         * gnulib-tool (func_show_module_list): New function.
45202         (func_import, func_create_testdir): Invoke it.
45203         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
45205 2010-06-13  Bruno Haible  <bruno@clisp.org>
45207         gnulib-tool: Align code of func_import and func_create_testdir.
45208         * gnulib-tool (func_create_testdir): Rename variable saved_modules to
45209         specified_modules.
45211 2010-06-12  Jim Meyering  <meyering@redhat.com>
45213         test-inttostr: avoid spurious failure on Solaris 9
45214         * tests/test-inttostr.c (main): Skip the test when snprintf fails
45215         to accept "%ju".  Reported by Bruno Haible.
45217 2010-06-11  Jim Meyering  <meyering@redhat.com>
45219         test-sys_socket: mark variables as used more readably
45220         * tests/test-sys_socket.c (main): Mark otherwise unused variables
45221         as "used" explicitly via (void) statement casts.  This is more
45222         readable than using them in an artificial return expression.
45223         Suggestion from Bruno Haible.
45225 2010-06-11  Bruno Haible  <bruno@clisp.org>
45227         Avoid some more warnings from "gcc -Wwrite-strings".
45228         * tests/test-argp.c (test_optional): Change 5th and 6th argument type
45229         to 'const char *'.
45230         * tests/test-c-strstr.c (main): Add 'const' to variable declaration.
45231         * tests/test-c-strcasestr.c (main): Likewise.
45232         * tests/test-mbscasestr1.c (main): Likewise.
45233         * tests/test-mbscasestr2.c (main): Likewise.
45234         * tests/test-memmem.c (main): Likewise.
45235         * tests/test-strstr.c (main): Likewise.
45236         * tests/test-strcasestr.c (main): Likewise.
45238 2010-06-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45240         init.sh: change framework_failure_ to fail with status 99, not 1
45241         * tests/init.sh (framework_failure_): Exit 99, not 1.  This informs
45242         automake's parallel-tests rule that this is an unexpected failure,
45243         even if the test is listed in XFAIL_TESTS.
45245 2010-06-11  Jim Meyering  <meyering@redhat.com>
45247         test-inttostr: avoid warnings about 4-6KB literal strings
45248         * tests/test-inttostr.c: Don't use <assert.h>.  Instead, ...
45249         Include "macros.h", for its definition of ASSERT.
45250         (CK): s/assert/ASSERT/
45251         * modules/inttostr-tests (Files): Add macros.h.
45253         init.sh: don't use $ME_ or skip_ before they are defined
45254         * tests/init.sh: Hoist definitions of $ME_ and skip_ to precede
45255         their first uses.  Also hoist their companions: warn_, fail_,
45256         framework_failure_, $stderr_fileno.  Prompted by a patch from
45257         Stefano Lattarini.
45259         test-sys_socket: avoid set-but-not-used warnings from gcc
45260         * tests/test-sys_socket.c (main): Use "i" and "x", in order to
45261         avoid warning about set-but-not-used variables.
45263         test-xvasprintf: avoid 'const' discard warnings
45264         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Use
45265         "const" when assigning from literal strings.
45266         (test_xasprintf): Add "void" in function argument list to placate
45267         -Wstrict-prototypes and to be consistent with test_xvasprintf above.
45269         tests: avoid compilation warnings in argmatch and exclude tests...
45270         in packages that define ARGMATCH_DIE_DECL, like coreutils.
45271         * tests/test-exclude.c [ARGMATCH_DIE_DECL]: Also declare the function.
45272         Since it always exits, declare with the "noreturn" attribute.
45273         * tests/test-argmatch.c: Likewise.
45275         tests: avoid 'const' discard warnings in mbsstr tests
45276         * tests/test-mbsstr1.c (main): Add "const" to avoid trivial warning.
45277         * tests/test-mbsstr2.c (main): Likewise.
45279         test-verify: avoid warning from gcc's -Wmissing-declarations
45280         * tests/test-verify.c (function): Declare to be static.
45282         test-inttostr.c: include <string.h> for use of strcmp
45283         * tests/test-inttostr.c: Include <string.h> for strcmp declaration.
45285         test-linkat: avoid failed assertion on "other" architectures
45286         * tests/test-linkat.c: Include <sys/stat.h>, for declarations of stat,
45287         lstat, mkdir.  Patch by John Rigby, to fix FTBFS on armel, powerpc,
45288         sparc: https://bugs.launchpad.net/bugs/591968
45290 2010-06-11  Jim Meyering  <meyering@redhat.com>
45292         printf.m4: avoid autoconf's "Expanded Before Required" warning
45293         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Define using AC_DEFUN_ONCE,
45294         rather than AC_DEFUN, to avoid the classic "Expanded Before Required"
45295         autoconf warning.
45297 2010-06-10  Ben Pfaff  <blp@cs.stanford.edu>
45299         Replacement header templates are now named with ".in", not "_".
45300         * doc/gnulib-intro.texi: Correct.
45302 2010-06-10  Jim Meyering  <meyering@redhat.com>
45304         inttostr-tests: depend on snprintf, not snprintf-posix
45305         * modules/inttostr-tests (Depends-on): Depend on snprintf, not
45306         snprintf-posix, to avoid this aclocal failure:
45307           missing file gnulib-tests/vasnprintf.c
45308           configure.ac:45: error: expected source file, required through \
45309           AC_LIBSOURCES, not found
45311 2010-06-10  Jim Meyering  <meyering@redhat.com>
45313         inttostr: add a new function, inttostr, and tests
45314         The namesake function was not available.  The existence of the
45315         template file, inttostr.c makes its addition nontrivial.
45316         * lib/anytostr.c: Rename from inttostr.c.
45317         (anytostr): Rename from inttostr.
45318         * lib/inttostr.c: New file.
45319         * modules/inttostr (Files): Add anytostr.c.
45320         (Makefile.am): Set lib_SOURCES instead of ...
45321         * m4/inttostr.m4: Remove uses of AC_LIBOBJ.
45322         * lib/imaxtostr.c: Update use.  s/inttostr/anytostr/
45323         * lib/offtostr.c: Likewise.
45324         * lib/uinttostr.c: Likewise.
45325         * lib/umaxtostr.c: Likewise.
45326         * modules/inttostr-tests: New file.
45327         * tests/test-inttostr.c: New file.  Test these functions.
45329 2010-06-09  Ben Pfaff  <blp@cs.stanford.edu>
45330             Bruno Haible  <bruno@clisp.org>
45332         Add "Extending Gnulib" chapter to manual.
45333         * doc/gnulib.texi (Writing Modules): Add cross-reference to new
45334         chapter.
45335         (Extending Gnulib): New chapter.
45336         * doc/gnulib-intro.texi (Openness): Add cross-reference to new
45337         chapter.
45339 2010-06-09  Bruno Haible  <bruno@clisp.org>
45341         Avoid relocwrapper link errors due to gnulib replacement functions.
45342         * lib/areadlink.c: Use the system's malloc, realloc functions.
45343         (areadlink): Set errno to ENOMEM explicitly.
45344         * modules/areadlink (Depends-on): Remove malloc-posix.
45345         Reported by Ben Pfaff <blp@cs.stanford.edu>.
45347 2010-06-09  Bruno Haible  <bruno@clisp.org>
45349         Avoid relocwrapper link errors due to gnulib replacement functions.
45350         * lib/canonicalize-lgpl.c: Use the system's malloc function.
45351         * lib/malloca.c: Likewise.
45352         * lib/relocatable.c: Likewise.
45353         * lib/progreloc.c: Use the system's malloc, sprintf functions.
45354         * lib/relocwrapper.c: Use the system's fprintf, malloc functions.
45355         * lib/setenv.c: Use the system's malloc, realloc functions.
45356         * lib/strerror.c: Use the system's sprintf function.
45357         Reported by Ben Pfaff <blp@cs.stanford.edu>.
45359 2010-06-04  Bruno Haible  <bruno@clisp.org>
45361         Prefer documented low-level autoconf macro names.
45362         * m4/lib-link.m4: Use m4_translit instead of translit.
45363         * m4/environ.m4: Likewise.
45364         * m4/mathfunc.m4: Likewise.
45365         * m4/onceonly.m4: Likewise.
45366         * m4/stdint.m4: Likewise.
45367         Suggested by Eric Blake.
45369 2010-06-04  Martin Lambers  <marlam@marlam.de>
45370             Bruno Haible  <bruno@clisp.org>
45372         havelib: Allow library names with '+' characters.
45373         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
45374         AC_LIB_FROMPACKAGE, AC_LIB_LINKFLAGS_BODY): Convert '+' in name to '_'.
45376 2010-06-09  Bruno Haible  <bruno@clisp.org>
45378         Module setenv does not depend on 'malloc-posix', 'realloc-posix'.
45379         * lib/setenv.c (__add_to_environ): Set errno to ENOMEM when malloc or
45380         realloc failed.
45382 2010-06-08  Peter Simons  <simons@cryp.to>
45384         maint.mk: make the news-check rule more configurable
45385         * top/maint.mk (news-check-lines-spec): New variable.
45386         (news-check): Use "sed -n 1,10p" in place of "head".
45388 2010-06-07  Jim Meyering  <meyering@redhat.com>
45390         do-release-commit-and-tag: fix typo in --help
45391         * build-aux/do-release-commit-and-tag (Usage): Fix typo in --help.
45393         regex: avoid new dead-code warning with gcc-4.6.0
45394         * lib/regex_internal.c (re_string_reconstruct): #if-0-out a dead
45395         if-block containing a while-loop.  It's been unused for at least
45396         5 years.
45398 2010-06-05  Bruno Haible  <bruno@clisp.org>
45400         * doc/posix-functions/strcoll.texi: Mention Solaris limitation.
45401         Reported by River Tarnell <river.tarnell@wikimedia.de> via Eric Blake.
45403 2010-06-04  Bruno Haible  <bruno@clisp.org>
45405         Update to GNU gettext 0.18.1.
45406         * modules/gettext (configure.ac): Require gettext infrastructure from
45407         version 0.18.1.
45409 2010-06-03  Bruno Haible  <bruno@clisp.org>
45411         Don't use AC_LIBOBJ with file names in subdirectories.
45412         * m4/libunistring-base.m4 (gl_LIBUNISTRING_MODULE): Renamed from
45413         gl_LIBUNISTRING_LIBSOURCE. Take a module name as argument, not a file
45414         name. Define an automake conditional. Don't invoke AC_LIBOBJ.
45415         * m4/libunistring.m4 (gl_LIBUNISTRING): Update AC_BEFORE invocation.
45416         * modules/uni*/* (configure.ac): Use gl_LIBUNISTRING_MODULE instead of
45417         gl_LIBUNISTRING_LIBSOURCE.
45418         (Makefile.am): Augment lib_SOURCES here, conditionally.
45419         * NEWS: Drop requirement for Automake option 'subdir-objects'.
45421 2010-06-03  Bruno Haible  <bruno@clisp.org>
45423         Simplify gl_LIBUNISTRING_VERSION_CMP expansion.
45424         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Ensure
45425         expansion does not end with a newline.
45426         (gl_LIBUNISTRING_LIBSOURCE, gl_LIBUNISTRING_LIBHEADER): Avoid
45427         unnecessary newline.
45429 2010-06-03  Bruno Haible  <bruno@clisp.org>
45431         Reduce dependencies.
45432         * tests/test-quotearg.h: New file, extracted from
45433         tests/test-quotearg.c.
45434         * tests/test-quotearg-simple.c: New file, extracted from
45435         tests/test-quotearg.c.
45436         * tests/test-quotearg.c: Don't include <ctype.h>.
45437         (struct result_strings, struct result_groups, LQ, RQ, LQ_ENC, RQ_ENC,
45438         RQ_ESC, inputs, compare, use_quotearg_buffer, use_quotearg,
45439         use_quote_double_quotes, use_quotearg_colon): Moved to
45440         tests/test-quotearg.h.
45441         (results_g, flag_results, custom_quotes, custom_results): Moved
45442         to tests/test-quotearg-simple.c.
45443         (main): Moved the part that does not depend on gettext to
45444         tests/test-quotearg-simple.c. Return 77 if the test cannot be
45445         performed.
45446         * modules/quotearg-simple: New file.
45447         * modules/quotearg-simple-tests: New file.
45448         * modules/quotearg (Depends-on): Add quotearg-simple.
45449         * modules/quotearg-tests (Status): Mark as gettext-dependent-test.
45450         (Files): Add tests/test-quotearg.h.
45451         Reported by Paolo Bonzini.
45453 2010-06-03  Bruno Haible  <bruno@clisp.org>
45455         Reduce dependencies.
45456         * modules/acl (Depends-on): Add gettext-h. Remove gettext.
45458 2010-06-03  Bruno Haible  <bruno@clisp.org>
45460         time: Undefine more broken macros.
45461         * lib/time.in.h: Undefine broken localtime_r and gmtime_r macros only
45462         for pthread-win32. Undefine also asctime_r, ctime_r, rand_r, strtok_r.
45463         Reported by Eric Blake.
45465 2010-06-03  Bruno Haible  <bruno@clisp.org>
45467         Choose among AC_DEFUN_ONCE, AC_DEFUN in a way that aclocal understands.
45468         * m4/iconv.m4 (gl_iconv_AC_DEFUN): New macro.
45469         (AM_ICONV): Define it through gl_iconv_AC_DEFUN.
45470         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): New macro.
45471         (gl_LIBUNISTRING): Define it through gl_libunistring_AC_DEFUN.
45472         Reported by Ludovic Courtès <ludo@gnu.org>.
45474 2010-06-02  Eric Blake  <eblake@redhat.com>
45476         time: work with mingw + pthreads-win32 library
45477         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Set new variable
45478         if timespec is defined only in pthread.h.
45479         * modules/time (Makefile.am): Substitute it.
45480         * lib/time.in.h (!TIME_H_DEFINES_STRUCT_TIMESPEC): Include
45481         <pthread.h>, when needed.
45482         (GNULIB_TIME_R): Undefine broken localtime_r and gmtime_r macros
45483         from the library.
45485 2010-05-31  Bruno Haible  <bruno@clisp.org>
45487         Avoid expanding two macros in the wrong order.
45488         * m4/libunistring-base.m4 (gl_LIBUNISTRING_LIB_PREPARE): Require
45489         gl_LIBUNISTRING if it is defined.
45490         * m4/libunistring.m4 (gl_LIBUNISTRING): Define using AC_DEFUN_ONCE for
45491         autoconf >= 2.64.
45492         Reported by Ludovic Courtès <ludo@gnu.org>.
45494 2010-05-27  Jim Meyering  <meyering@redhat.com>
45496         maint.mk: also prohibit "#undef" of always-defined symbols
45497         * top/maint.mk (def_sym_regex): Handle #undef as well as #define.
45498         Allow more than one space before the symbol name.
45499         (sc_prohibit_always-defined_macros): Use grep's -E, now that
45500         the regexp uses alternation.
45502 2010-05-26  Eric Blake  <eblake@redhat.com>
45504         maint.mk: avoid echo -e
45505         * top/maint.mk (gzip_rsyncable, _ignore_case, _sc_say_and_exit):
45506         Convert all uses of echo -* to printf.
45507         Reported by Matthias Bolte.
45509 2010-05-25  Bruno Haible  <bruno@clisp.org>
45511         Update to GNU gettext 0.18, part 2.
45512         * build-aux/po/Makefile.in.in: Update to GNU gettext 0.18.
45513         Reported by Martin von Gagern <Martin.vGagern@gmx.net>.
45515 2010-05-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45517         Add missing include in test-pwrite.c.
45518         * tests/test-pwrite.c: Include string.h, for strcmp.
45520 2010-05-24  Bruno Haible  <bruno@clisp.org>
45522         * NEWS: Mention requirement for Automake option 'subdir-objects'.
45524 2010-05-24  Bruno Haible  <bruno@clisp.org>
45526         Don't use conversion with transliteration in u{8,16,32}_strcoll.
45527         * lib/unistr/u-strcoll.h (FUNC): Use U_STRCONV_TO_ENCODING with
45528         iconveh_error argument.
45529         * lib/unistr/u8-strcoll.c: Define U_STRCONV_TO_ENCODING instead of
45530         U_STRCONV_TO_LOCALE.
45531         * lib/unistr/u16-strcoll.c: Likewise.
45532         * lib/unistr/u32-strcoll.c: Likewise.
45533         * modules/unistr/u8-strcoll (Depends-on): Add
45534         uniconv/u8-strconv-to-enc, localcharset. Remove
45535         uniconv/u8-strconv-to-locale.
45536         (configure.ac): Bump version number.
45537         * modules/unistr/u16-strcoll (Depends-on): Add
45538         uniconv/u16-strconv-to-enc, localcharset. Remove
45539         uniconv/u16-strconv-to-locale.
45540         (configure.ac): Bump version number.
45541         * modules/unistr/u32-strcoll (Depends-on): Add
45542         uniconv/u32-strconv-to-enc, localcharset. Remove
45543         uniconv/u32-strconv-to-locale.
45544         (configure.ac): Bump version number.
45546 2010-05-24  Bruno Haible  <bruno@clisp.org>
45548         Avoid a test failure on NetBSD 5.0.
45549         * tests/test-striconveh.c (main): On NetBSD, skip a test that triggers
45550         an iconv() bug.
45552 2010-05-24  Bruno Haible  <bruno@clisp.org>
45554         Adjust #include directive style.
45555         * modules/regex (Includes): Recommend to write <regex.h>.
45557 2010-05-24  Bruno Haible  <bruno@clisp.org>
45559         regex: Don't require alloca.
45560         * modules/regex (Depends-on): Remove alloca. Add alloca-opt.
45561         * lib/regex_internal.h (alloca): Ensure it's defined even if we call it
45562         only inside if (0).
45564 2010-05-23  Jim Meyering  <meyering@redhat.com>
45566         test-renameat.c: include <sys/stat.h>
45567         * tests/test-renameat.c: Include <sys/stat.h>; required for
45568         definition of S_IS* macros.
45570 2010-05-23  Ben Pfaff  <blp@cs.stanford.edu>
45572         Update maintainer documentation for 'relocatable-prog' module.
45573         * doc/relocatable-maint.texi: Update.
45574         Comments by Bruno Haible.
45576 2010-05-23  Bruno Haible  <bruno@clisp.org>
45578         git-merge-changelog: Enable --split-merged-entry by default.
45579         * lib/git-merge-changelog.c (main): Set split_merged_entry to true.
45580         (usage): Don't mention this option any more.
45581         Reported by Ralf Wildenhues.
45583 2010-05-23  Jim Meyering  <meyering@redhat.com>
45585         test-pwrite: do not leave behind a test file named "out"
45586         Revert commit d8fa18472a54c1cb2674c296b3d82443f234d5f7.
45587         The trivial-looking use of init.sh is really necessary.
45588         It ensures that the temporary file, "out", is created in
45589         a temporary directory, and removed upon termination.
45590         * tests/test-pwrite.sh: Re-add file.
45591         * modules/pwrite-tests: Reference it.
45593 2010-05-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45595         Fix output redirection buglet in init.sh.
45596         * tests/init.sh: Fix redirection of stderr.
45598 2010-05-20  Simon Josefsson  <simon@josefsson.org>
45600         * modules/valgrind-tests (configure.ac): Invoke gl_VALGRIND_TESTS.
45602 2010-05-17  Simon Josefsson  <simon@josefsson.org>
45604         * modules/valgrind-tests: New file.
45605         * m4/valgrind-tests.m4: New file.
45606         * doc/valgrind-tests.texi: New file.
45607         * doc/gnulib.texi (Running self-tests under valgrind): New
45608         section.
45610 2010-05-19  Bruno Haible  <bruno@clisp.org>
45612         Clean up dead code in recent commit.
45613         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Include the
45614         body of gl_LIBUNISTRING_VERSION_CMP_ORIG as fallback.
45615         (gl_LIBUNISTRING_VERSION_CMP_ORIG): Remove macro.
45616         Suggested by Paolo Bonzini.
45618 2010-05-19  Bruno Haible  <bruno@clisp.org>
45620         Avoid valgrind error reports from libunistring.
45621         * lib/libunistring.valgrind: New file, based on lib/malloca.valgrind.
45622         * modules/libunistring (Files): Add it.
45623         * modules/libunistring-optional (Files): Likewise.
45625 2010-05-18  Paolo Bonzini  <bonzini@gnu.org>
45626             Bruno Haible  <bruno@clisp.org>
45628         New module 'libunistring-optional'.
45629         * modules/libunistring-optional: New file.
45630         * m4/libunistring-base.m4: New file.
45631         * m4/libunistring-optional.m4: New file.
45632         * lib/unicase.in.h: Renamed from lib/unicase.h.
45633         * lib/uniconv.in.h: Renamed from lib/uniconv.h.
45634         * lib/unictype.in.h: Renamed from lib/unictype.h.
45635         * lib/unilbrk.in.h: Renamed from lib/unilbrk.h.
45636         * lib/uniname.in.h: Renamed from lib/uniname.h.
45637         * lib/uninorm.in.h: Renamed from lib/uninorm.h.
45638         * lib/unistdio.in.h: Renamed from lib/unistdio.h.
45639         * lib/unistr.in.h: Renamed from lib/unistr.h.
45640         * lib/unitypes.in.h: Renamed from lib/unitypes.h.
45641         * lib/uniwbrk.in.h: Renamed from lib/uniwbrk.h.
45642         * lib/uniwidth.in.h: Renamed from lib/uniwidth.h.
45643         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Renamed from
45644         gl_LIBUNISTRING. If the library was found, determine the installed
45645         version and set LIBUNISTRING_VERSION.
45646         (gl_LIBUNISTRING): New macro, as a wrapper arount it. Document that it
45647         sets LIBUNISTRING_VERSION. If the module libunistring-optional is used,
45648         handle a configuration option --with-included-libunistring.
45649         * modules/libunistring (Files): Add m4/absolute-header.m4.
45650         * modules/unicase/base (Files): Use unicase.in.h instead of unicase.h.
45651         Add m4/libunistring-base.m4.
45652         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
45653         (Makefile.am): Build unicase.h from unicase.in.h.
45654         * modules/uniconv/base (Files): Use uniconv.in.h instead of uniconv.h.
45655         Add m4/libunistring-base.m4.
45656         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
45657         (Makefile.am): Build uniconv.h from uniconv.in.h.
45658         * modules/unictype/base (Files): Use unictype.in.h instead of
45659         unictype.h. Add m4/libunistring-base.m4.
45660         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
45661         (Makefile.am): Build unictype.h from unictype.in.h.
45662         * modules/unilbrk/base (Files): Use unilbrk.in.h instead of unilbrk.h.
45663         Add m4/libunistring-base.m4.
45664         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
45665         (Makefile.am): Build unilbrk.h from unilbrk.in.h.
45666         * modules/uniname/base (Files): Use uniname.in.h instead of uniname.h.
45667         Add m4/libunistring-base.m4.
45668         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
45669         (Makefile.am): Build uniname.h from uniname.in.h.
45670         * modules/uninorm/base (Files): Use uninorm.in.h instead of uninorm.h.
45671         Add m4/libunistring-base.m4.
45672         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
45673         (Makefile.am): Build uninorm.h from uninorm.in.h.
45674         * modules/unistdio/base (Files): Use unistdio.in.h instead of
45675         unistdio.h. Add m4/libunistring-base.m4.
45676         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
45677         (Makefile.am): Build unistdio.h from unistdio.in.h.
45678         * modules/unistr/base (Files): Use unistr.in.h instead of unistr.h.
45679         Add m4/libunistring-base.m4.
45680         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
45681         (Makefile.am): Build unistr.h from unistr.in.h.
45682         * modules/unitypes (Files): Use unitypes.in.h instead of unitypes.h.
45683         Add m4/libunistring-base.m4.
45684         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
45685         (Makefile.am): Build unitypes.h from unitypes.in.h.
45686         * modules/uniwbrk/base (Files): Use uniwbrk.in.h instead of uniwbrk.h.
45687         Add m4/libunistring-base.m4.
45688         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
45689         (Makefile.am): Build uniwbrk.h from uniwbrk.in.h.
45690         * modules/uniwidth/base (Files): Use uniwidth.in.h instead of
45691         uniwidth.h. Add m4/libunistring-base.m4.
45692         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
45693         (Makefile.am): Build uniwidth.h from uniwidth.in.h.
45694         * modules/unicase/empty-prefix-context: Use gl_LIBUNISTRING_LIBSOURCE
45695         instead of augmenting lib_SOURCES.
45696         * modules/unicase/empty-suffix-context: Likewise.
45697         * modules/unicase/locale-language: Likewise.
45698         * modules/unicase/tolower: Likewise.
45699         * modules/unicase/totitle: Likewise.
45700         * modules/unicase/toupper: Likewise.
45701         * modules/unicase/u8-casecmp: Likewise.
45702         * modules/unicase/u8-casecoll: Likewise.
45703         * modules/unicase/u8-casefold: Likewise.
45704         * modules/unicase/u8-casexfrm: Likewise.
45705         * modules/unicase/u8-ct-casefold: Likewise.
45706         * modules/unicase/u8-ct-tolower: Likewise.
45707         * modules/unicase/u8-ct-totitle: Likewise.
45708         * modules/unicase/u8-ct-toupper: Likewise.
45709         * modules/unicase/u8-is-cased: Likewise.
45710         * modules/unicase/u8-is-casefolded: Likewise.
45711         * modules/unicase/u8-is-lowercase: Likewise.
45712         * modules/unicase/u8-is-titlecase: Likewise.
45713         * modules/unicase/u8-is-uppercase: Likewise.
45714         * modules/unicase/u8-prefix-context: Likewise.
45715         * modules/unicase/u8-suffix-context: Likewise.
45716         * modules/unicase/u8-tolower: Likewise.
45717         * modules/unicase/u8-totitle: Likewise.
45718         * modules/unicase/u8-toupper: Likewise.
45719         * modules/unicase/u16-casecmp: Likewise.
45720         * modules/unicase/u16-casecoll: Likewise.
45721         * modules/unicase/u16-casefold: Likewise.
45722         * modules/unicase/u16-casexfrm: Likewise.
45723         * modules/unicase/u16-ct-casefold: Likewise.
45724         * modules/unicase/u16-ct-tolower: Likewise.
45725         * modules/unicase/u16-ct-totitle: Likewise.
45726         * modules/unicase/u16-ct-toupper: Likewise.
45727         * modules/unicase/u16-is-cased: Likewise.
45728         * modules/unicase/u16-is-casefolded: Likewise.
45729         * modules/unicase/u16-is-lowercase: Likewise.
45730         * modules/unicase/u16-is-titlecase: Likewise.
45731         * modules/unicase/u16-is-uppercase: Likewise.
45732         * modules/unicase/u16-prefix-context: Likewise.
45733         * modules/unicase/u16-suffix-context: Likewise.
45734         * modules/unicase/u16-tolower: Likewise.
45735         * modules/unicase/u16-totitle: Likewise.
45736         * modules/unicase/u16-toupper: Likewise.
45737         * modules/unicase/u32-casecmp: Likewise.
45738         * modules/unicase/u32-casecoll: Likewise.
45739         * modules/unicase/u32-casefold: Likewise.
45740         * modules/unicase/u32-casexfrm: Likewise.
45741         * modules/unicase/u32-ct-casefold: Likewise.
45742         * modules/unicase/u32-ct-tolower: Likewise.
45743         * modules/unicase/u32-ct-totitle: Likewise.
45744         * modules/unicase/u32-ct-toupper: Likewise.
45745         * modules/unicase/u32-is-cased: Likewise.
45746         * modules/unicase/u32-is-casefolded: Likewise.
45747         * modules/unicase/u32-is-lowercase: Likewise.
45748         * modules/unicase/u32-is-titlecase: Likewise.
45749         * modules/unicase/u32-is-uppercase: Likewise.
45750         * modules/unicase/u32-prefix-context: Likewise.
45751         * modules/unicase/u32-suffix-context: Likewise.
45752         * modules/unicase/u32-tolower: Likewise.
45753         * modules/unicase/u32-totitle: Likewise.
45754         * modules/unicase/u32-toupper: Likewise.
45755         * modules/unicase/ulc-casecmp: Likewise.
45756         * modules/unicase/ulc-casecoll: Likewise.
45757         * modules/unicase/ulc-casexfrm: Likewise.
45758         * modules/uniconv/u8-conv-from-enc: Likewise.
45759         * modules/uniconv/u8-conv-to-enc: Likewise.
45760         * modules/uniconv/u8-strconv-from-enc: Likewise.
45761         * modules/uniconv/u8-strconv-from-locale: Likewise.
45762         * modules/uniconv/u8-strconv-to-enc: Likewise.
45763         * modules/uniconv/u8-strconv-to-locale: Likewise.
45764         * modules/uniconv/u16-conv-from-enc: Likewise.
45765         * modules/uniconv/u16-conv-to-enc: Likewise.
45766         * modules/uniconv/u16-strconv-from-enc: Likewise.
45767         * modules/uniconv/u16-strconv-from-locale: Likewise.
45768         * modules/uniconv/u16-strconv-to-enc: Likewise.
45769         * modules/uniconv/u16-strconv-to-locale: Likewise.
45770         * modules/uniconv/u32-conv-from-enc: Likewise.
45771         * modules/uniconv/u32-conv-to-enc: Likewise.
45772         * modules/uniconv/u32-strconv-from-enc: Likewise.
45773         * modules/uniconv/u32-strconv-from-locale: Likewise.
45774         * modules/uniconv/u32-strconv-to-enc: Likewise.
45775         * modules/uniconv/u32-strconv-to-locale: Likewise.
45776         * modules/unictype/bidicategory-byname: Likewise.
45777         * modules/unictype/bidicategory-name: Likewise.
45778         * modules/unictype/bidicategory-of: Likewise.
45779         * modules/unictype/bidicategory-test: Likewise.
45780         * modules/unictype/block-list: Likewise.
45781         * modules/unictype/block-test: Likewise.
45782         * modules/unictype/category-C: Likewise.
45783         * modules/unictype/category-Cc: Likewise.
45784         * modules/unictype/category-Cf: Likewise.
45785         * modules/unictype/category-Cn: Likewise.
45786         * modules/unictype/category-Co: Likewise.
45787         * modules/unictype/category-Cs: Likewise.
45788         * modules/unictype/category-L: Likewise.
45789         * modules/unictype/category-Ll: Likewise.
45790         * modules/unictype/category-Lm: Likewise.
45791         * modules/unictype/category-Lo: Likewise.
45792         * modules/unictype/category-Lt: Likewise.
45793         * modules/unictype/category-Lu: Likewise.
45794         * modules/unictype/category-M: Likewise.
45795         * modules/unictype/category-Mc: Likewise.
45796         * modules/unictype/category-Me: Likewise.
45797         * modules/unictype/category-Mn: Likewise.
45798         * modules/unictype/category-N: Likewise.
45799         * modules/unictype/category-Nd: Likewise.
45800         * modules/unictype/category-Nl: Likewise.
45801         * modules/unictype/category-No: Likewise.
45802         * modules/unictype/category-P: Likewise.
45803         * modules/unictype/category-Pc: Likewise.
45804         * modules/unictype/category-Pd: Likewise.
45805         * modules/unictype/category-Pe: Likewise.
45806         * modules/unictype/category-Pf: Likewise.
45807         * modules/unictype/category-Pi: Likewise.
45808         * modules/unictype/category-Po: Likewise.
45809         * modules/unictype/category-Ps: Likewise.
45810         * modules/unictype/category-S: Likewise.
45811         * modules/unictype/category-Sc: Likewise.
45812         * modules/unictype/category-Sk: Likewise.
45813         * modules/unictype/category-Sm: Likewise.
45814         * modules/unictype/category-So: Likewise.
45815         * modules/unictype/category-Z: Likewise.
45816         * modules/unictype/category-Zl: Likewise.
45817         * modules/unictype/category-Zp: Likewise.
45818         * modules/unictype/category-Zs: Likewise.
45819         * modules/unictype/category-and: Likewise.
45820         * modules/unictype/category-and-not: Likewise.
45821         * modules/unictype/category-byname: Likewise.
45822         * modules/unictype/category-name: Likewise.
45823         * modules/unictype/category-none: Likewise.
45824         * modules/unictype/category-of: Likewise.
45825         * modules/unictype/category-or: Likewise.
45826         * modules/unictype/category-test: Likewise.
45827         * modules/unictype/combining-class: Likewise.
45828         * modules/unictype/ctype-alnum: Likewise.
45829         * modules/unictype/ctype-alpha: Likewise.
45830         * modules/unictype/ctype-blank: Likewise.
45831         * modules/unictype/ctype-cntrl: Likewise.
45832         * modules/unictype/ctype-digit: Likewise.
45833         * modules/unictype/ctype-graph: Likewise.
45834         * modules/unictype/ctype-lower: Likewise.
45835         * modules/unictype/ctype-print: Likewise.
45836         * modules/unictype/ctype-punct: Likewise.
45837         * modules/unictype/ctype-space: Likewise.
45838         * modules/unictype/ctype-upper: Likewise.
45839         * modules/unictype/ctype-xdigit: Likewise.
45840         * modules/unictype/decimal-digit: Likewise.
45841         * modules/unictype/digit: Likewise.
45842         * modules/unictype/mirror: Likewise.
45843         * modules/unictype/numeric: Likewise.
45844         * modules/unictype/property-alphabetic: Likewise.
45845         * modules/unictype/property-ascii-hex-digit: Likewise.
45846         * modules/unictype/property-bidi-arabic-digit: Likewise.
45847         * modules/unictype/property-bidi-arabic-right-to-left: Likewise.
45848         * modules/unictype/property-bidi-block-separator: Likewise.
45849         * modules/unictype/property-bidi-boundary-neutral: Likewise.
45850         * modules/unictype/property-bidi-common-separator: Likewise.
45851         * modules/unictype/property-bidi-control: Likewise.
45852         * modules/unictype/property-bidi-embedding-or-override: Likewise.
45853         * modules/unictype/property-bidi-eur-num-separator: Likewise.
45854         * modules/unictype/property-bidi-eur-num-terminator: Likewise.
45855         * modules/unictype/property-bidi-european-digit: Likewise.
45856         * modules/unictype/property-bidi-hebrew-right-to-left: Likewise.
45857         * modules/unictype/property-bidi-left-to-right: Likewise.
45858         * modules/unictype/property-bidi-non-spacing-mark: Likewise.
45859         * modules/unictype/property-bidi-other-neutral: Likewise.
45860         * modules/unictype/property-bidi-pdf: Likewise.
45861         * modules/unictype/property-bidi-segment-separator: Likewise.
45862         * modules/unictype/property-bidi-whitespace: Likewise.
45863         * modules/unictype/property-byname: Likewise.
45864         * modules/unictype/property-combining: Likewise.
45865         * modules/unictype/property-composite: Likewise.
45866         * modules/unictype/property-currency-symbol: Likewise.
45867         * modules/unictype/property-dash: Likewise.
45868         * modules/unictype/property-decimal-digit: Likewise.
45869         * modules/unictype/property-default-ignorable-code-point: Likewise.
45870         * modules/unictype/property-deprecated: Likewise.
45871         * modules/unictype/property-diacritic: Likewise.
45872         * modules/unictype/property-extender: Likewise.
45873         * modules/unictype/property-format-control: Likewise.
45874         * modules/unictype/property-grapheme-base: Likewise.
45875         * modules/unictype/property-grapheme-extend: Likewise.
45876         * modules/unictype/property-grapheme-link: Likewise.
45877         * modules/unictype/property-hex-digit: Likewise.
45878         * modules/unictype/property-hyphen: Likewise.
45879         * modules/unictype/property-id-continue: Likewise.
45880         * modules/unictype/property-id-start: Likewise.
45881         * modules/unictype/property-ideographic: Likewise.
45882         * modules/unictype/property-ids-binary-operator: Likewise.
45883         * modules/unictype/property-ids-trinary-operator: Likewise.
45884         * modules/unictype/property-ignorable-control: Likewise.
45885         * modules/unictype/property-iso-control: Likewise.
45886         * modules/unictype/property-join-control: Likewise.
45887         * modules/unictype/property-left-of-pair: Likewise.
45888         * modules/unictype/property-line-separator: Likewise.
45889         * modules/unictype/property-logical-order-exception: Likewise.
45890         * modules/unictype/property-lowercase: Likewise.
45891         * modules/unictype/property-math: Likewise.
45892         * modules/unictype/property-non-break: Likewise.
45893         * modules/unictype/property-not-a-character: Likewise.
45894         * modules/unictype/property-numeric: Likewise.
45895         * modules/unictype/property-other-alphabetic: Likewise.
45896         * modules/unictype/property-other-default-ignorable-code-point: Likewise.
45897         * modules/unictype/property-other-grapheme-extend: Likewise.
45898         * modules/unictype/property-other-id-continue: Likewise.
45899         * modules/unictype/property-other-id-start: Likewise.
45900         * modules/unictype/property-other-lowercase: Likewise.
45901         * modules/unictype/property-other-math: Likewise.
45902         * modules/unictype/property-other-uppercase: Likewise.
45903         * modules/unictype/property-paired-punctuation: Likewise.
45904         * modules/unictype/property-paragraph-separator: Likewise.
45905         * modules/unictype/property-pattern-syntax: Likewise.
45906         * modules/unictype/property-pattern-white-space: Likewise.
45907         * modules/unictype/property-private-use: Likewise.
45908         * modules/unictype/property-punctuation: Likewise.
45909         * modules/unictype/property-quotation-mark: Likewise.
45910         * modules/unictype/property-radical: Likewise.
45911         * modules/unictype/property-sentence-terminal: Likewise.
45912         * modules/unictype/property-soft-dotted: Likewise.
45913         * modules/unictype/property-space: Likewise.
45914         * modules/unictype/property-terminal-punctuation: Likewise.
45915         * modules/unictype/property-test: Likewise.
45916         * modules/unictype/property-titlecase: Likewise.
45917         * modules/unictype/property-unassigned-code-value: Likewise.
45918         * modules/unictype/property-unified-ideograph: Likewise.
45919         * modules/unictype/property-uppercase: Likewise.
45920         * modules/unictype/property-variation-selector: Likewise.
45921         * modules/unictype/property-white-space: Likewise.
45922         * modules/unictype/property-xid-continue: Likewise.
45923         * modules/unictype/property-xid-start: Likewise.
45924         * modules/unictype/property-zero-width: Likewise.
45925         * modules/unictype/scripts: Likewise.
45926         * modules/unictype/syntax-c-ident: Likewise.
45927         * modules/unictype/syntax-c-whitespace: Likewise.
45928         * modules/unictype/syntax-java-ident: Likewise.
45929         * modules/unictype/syntax-java-whitespace: Likewise.
45930         * modules/unilbrk/u8-possible-linebreaks: Likewise.
45931         * modules/unilbrk/u8-width-linebreaks: Likewise.
45932         * modules/unilbrk/u16-possible-linebreaks: Likewise.
45933         * modules/unilbrk/u16-width-linebreaks: Likewise.
45934         * modules/unilbrk/u32-possible-linebreaks: Likewise.
45935         * modules/unilbrk/u32-width-linebreaks: Likewise.
45936         * modules/unilbrk/ulc-possible-linebreaks: Likewise.
45937         * modules/unilbrk/ulc-width-linebreaks: Likewise.
45938         * modules/uniname/uniname: Likewise.
45939         * modules/uninorm/canonical-decomposition: Likewise.
45940         * modules/uninorm/composition: Likewise.
45941         * modules/uninorm/decomposing-form: Likewise.
45942         * modules/uninorm/decomposition: Likewise.
45943         * modules/uninorm/filter: Likewise.
45944         * modules/uninorm/nfc: Likewise.
45945         * modules/uninorm/nfd: Likewise.
45946         * modules/uninorm/nfkc: Likewise.
45947         * modules/uninorm/nfkd: Likewise.
45948         * modules/uninorm/u8-normalize: Likewise.
45949         * modules/uninorm/u8-normcmp: Likewise.
45950         * modules/uninorm/u8-normcoll: Likewise.
45951         * modules/uninorm/u8-normxfrm: Likewise.
45952         * modules/uninorm/u16-normalize: Likewise.
45953         * modules/uninorm/u16-normcmp: Likewise.
45954         * modules/uninorm/u16-normcoll: Likewise.
45955         * modules/uninorm/u16-normxfrm: Likewise.
45956         * modules/uninorm/u32-normalize: Likewise.
45957         * modules/uninorm/u32-normcmp: Likewise.
45958         * modules/uninorm/u32-normcoll: Likewise.
45959         * modules/uninorm/u32-normxfrm: Likewise.
45960         * modules/unistdio/u8-asnprintf: Likewise.
45961         * modules/unistdio/u8-asprintf: Likewise.
45962         * modules/unistdio/u8-snprintf: Likewise.
45963         * modules/unistdio/u8-sprintf: Likewise.
45964         * modules/unistdio/u8-u8-asnprintf: Likewise.
45965         * modules/unistdio/u8-u8-asprintf: Likewise.
45966         * modules/unistdio/u8-u8-snprintf: Likewise.
45967         * modules/unistdio/u8-u8-sprintf: Likewise.
45968         * modules/unistdio/u8-u8-vasnprintf: Likewise.
45969         * modules/unistdio/u8-u8-vasprintf: Likewise.
45970         * modules/unistdio/u8-u8-vsnprintf: Likewise.
45971         * modules/unistdio/u8-u8-vsprintf: Likewise.
45972         * modules/unistdio/u8-vasnprintf: Likewise.
45973         * modules/unistdio/u8-vasprintf: Likewise.
45974         * modules/unistdio/u8-vsnprintf: Likewise.
45975         * modules/unistdio/u8-vsprintf: Likewise.
45976         * modules/unistdio/u16-asnprintf: Likewise.
45977         * modules/unistdio/u16-asprintf: Likewise.
45978         * modules/unistdio/u16-snprintf: Likewise.
45979         * modules/unistdio/u16-sprintf: Likewise.
45980         * modules/unistdio/u16-u16-asnprintf: Likewise.
45981         * modules/unistdio/u16-u16-asprintf: Likewise.
45982         * modules/unistdio/u16-u16-snprintf: Likewise.
45983         * modules/unistdio/u16-u16-sprintf: Likewise.
45984         * modules/unistdio/u16-u16-vasnprintf: Likewise.
45985         * modules/unistdio/u16-u16-vasprintf: Likewise.
45986         * modules/unistdio/u16-u16-vsnprintf: Likewise.
45987         * modules/unistdio/u16-u16-vsprintf: Likewise.
45988         * modules/unistdio/u16-vasnprintf: Likewise.
45989         * modules/unistdio/u16-vasprintf: Likewise.
45990         * modules/unistdio/u16-vsnprintf: Likewise.
45991         * modules/unistdio/u16-vsprintf: Likewise.
45992         * modules/unistdio/u32-asnprintf: Likewise.
45993         * modules/unistdio/u32-asprintf: Likewise.
45994         * modules/unistdio/u32-snprintf: Likewise.
45995         * modules/unistdio/u32-sprintf: Likewise.
45996         * modules/unistdio/u32-u32-asnprintf: Likewise.
45997         * modules/unistdio/u32-u32-asprintf: Likewise.
45998         * modules/unistdio/u32-u32-snprintf: Likewise.
45999         * modules/unistdio/u32-u32-sprintf: Likewise.
46000         * modules/unistdio/u32-u32-vasnprintf: Likewise.
46001         * modules/unistdio/u32-u32-vasprintf: Likewise.
46002         * modules/unistdio/u32-u32-vsnprintf: Likewise.
46003         * modules/unistdio/u32-u32-vsprintf: Likewise.
46004         * modules/unistdio/u32-vasnprintf: Likewise.
46005         * modules/unistdio/u32-vasprintf: Likewise.
46006         * modules/unistdio/u32-vsnprintf: Likewise.
46007         * modules/unistdio/u32-vsprintf: Likewise.
46008         * modules/unistdio/ulc-asnprintf: Likewise.
46009         * modules/unistdio/ulc-asprintf: Likewise.
46010         * modules/unistdio/ulc-fprintf: Likewise.
46011         * modules/unistdio/ulc-snprintf: Likewise.
46012         * modules/unistdio/ulc-sprintf: Likewise.
46013         * modules/unistdio/ulc-vasnprintf: Likewise.
46014         * modules/unistdio/ulc-vasprintf: Likewise.
46015         * modules/unistdio/ulc-vfprintf: Likewise.
46016         * modules/unistdio/ulc-vsnprintf: Likewise.
46017         * modules/unistdio/ulc-vsprintf: Likewise.
46018         * modules/unistr/u8-check: Likewise.
46019         * modules/unistr/u8-chr: Likewise.
46020         * modules/unistr/u8-cmp: Likewise.
46021         * modules/unistr/u8-cmp2: Likewise.
46022         * modules/unistr/u8-cpy: Likewise.
46023         * modules/unistr/u8-cpy-alloc: Likewise.
46024         * modules/unistr/u8-endswith: Likewise.
46025         * modules/unistr/u8-mblen: Likewise.
46026         * modules/unistr/u8-mbsnlen: Likewise.
46027         * modules/unistr/u8-mbtouc: Likewise.
46028         * modules/unistr/u8-mbtouc-unsafe: Likewise.
46029         * modules/unistr/u8-mbtoucr: Likewise.
46030         * modules/unistr/u8-move: Likewise.
46031         * modules/unistr/u8-next: Likewise.
46032         * modules/unistr/u8-prev: Likewise.
46033         * modules/unistr/u8-set: Likewise.
46034         * modules/unistr/u8-startswith: Likewise.
46035         * modules/unistr/u8-stpcpy: Likewise.
46036         * modules/unistr/u8-stpncpy: Likewise.
46037         * modules/unistr/u8-strcat: Likewise.
46038         * modules/unistr/u8-strchr: Likewise.
46039         * modules/unistr/u8-strcmp: Likewise.
46040         * modules/unistr/u8-strcoll: Likewise.
46041         * modules/unistr/u8-strcpy: Likewise.
46042         * modules/unistr/u8-strcspn: Likewise.
46043         * modules/unistr/u8-strdup: Likewise.
46044         * modules/unistr/u8-strlen: Likewise.
46045         * modules/unistr/u8-strmblen: Likewise.
46046         * modules/unistr/u8-strmbtouc: Likewise.
46047         * modules/unistr/u8-strncat: Likewise.
46048         * modules/unistr/u8-strncmp: Likewise.
46049         * modules/unistr/u8-strncpy: Likewise.
46050         * modules/unistr/u8-strnlen: Likewise.
46051         * modules/unistr/u8-strpbrk: Likewise.
46052         * modules/unistr/u8-strrchr: Likewise.
46053         * modules/unistr/u8-strspn: Likewise.
46054         * modules/unistr/u8-strstr: Likewise.
46055         * modules/unistr/u8-strtok: Likewise.
46056         * modules/unistr/u8-to-u16: Likewise.
46057         * modules/unistr/u8-to-u32: Likewise.
46058         * modules/unistr/u8-uctomb: Likewise.
46059         * modules/unistr/u16-check: Likewise.
46060         * modules/unistr/u16-chr: Likewise.
46061         * modules/unistr/u16-cmp: Likewise.
46062         * modules/unistr/u16-cmp2: Likewise.
46063         * modules/unistr/u16-cpy: Likewise.
46064         * modules/unistr/u16-cpy-alloc: Likewise.
46065         * modules/unistr/u16-endswith: Likewise.
46066         * modules/unistr/u16-mblen: Likewise.
46067         * modules/unistr/u16-mbsnlen: Likewise.
46068         * modules/unistr/u16-mbtouc: Likewise.
46069         * modules/unistr/u16-mbtouc-unsafe: Likewise.
46070         * modules/unistr/u16-mbtoucr: Likewise.
46071         * modules/unistr/u16-move: Likewise.
46072         * modules/unistr/u16-next: Likewise.
46073         * modules/unistr/u16-prev: Likewise.
46074         * modules/unistr/u16-set: Likewise.
46075         * modules/unistr/u16-startswith: Likewise.
46076         * modules/unistr/u16-stpcpy: Likewise.
46077         * modules/unistr/u16-stpncpy: Likewise.
46078         * modules/unistr/u16-strcat: Likewise.
46079         * modules/unistr/u16-strchr: Likewise.
46080         * modules/unistr/u16-strcmp: Likewise.
46081         * modules/unistr/u16-strcoll: Likewise.
46082         * modules/unistr/u16-strcpy: Likewise.
46083         * modules/unistr/u16-strcspn: Likewise.
46084         * modules/unistr/u16-strdup: Likewise.
46085         * modules/unistr/u16-strlen: Likewise.
46086         * modules/unistr/u16-strmblen: Likewise.
46087         * modules/unistr/u16-strmbtouc: Likewise.
46088         * modules/unistr/u16-strncat: Likewise.
46089         * modules/unistr/u16-strncmp: Likewise.
46090         * modules/unistr/u16-strncpy: Likewise.
46091         * modules/unistr/u16-strnlen: Likewise.
46092         * modules/unistr/u16-strpbrk: Likewise.
46093         * modules/unistr/u16-strrchr: Likewise.
46094         * modules/unistr/u16-strspn: Likewise.
46095         * modules/unistr/u16-strstr: Likewise.
46096         * modules/unistr/u16-strtok: Likewise.
46097         * modules/unistr/u16-to-u32: Likewise.
46098         * modules/unistr/u16-to-u8: Likewise.
46099         * modules/unistr/u16-uctomb: Likewise.
46100         * modules/unistr/u32-check: Likewise.
46101         * modules/unistr/u32-chr: Likewise.
46102         * modules/unistr/u32-cmp: Likewise.
46103         * modules/unistr/u32-cmp2: Likewise.
46104         * modules/unistr/u32-cpy: Likewise.
46105         * modules/unistr/u32-cpy-alloc: Likewise.
46106         * modules/unistr/u32-endswith: Likewise.
46107         * modules/unistr/u32-mblen: Likewise.
46108         * modules/unistr/u32-mbsnlen: Likewise.
46109         * modules/unistr/u32-mbtouc: Likewise.
46110         * modules/unistr/u32-mbtouc-unsafe: Likewise.
46111         * modules/unistr/u32-mbtoucr: Likewise.
46112         * modules/unistr/u32-move: Likewise.
46113         * modules/unistr/u32-next: Likewise.
46114         * modules/unistr/u32-prev: Likewise.
46115         * modules/unistr/u32-set: Likewise.
46116         * modules/unistr/u32-startswith: Likewise.
46117         * modules/unistr/u32-stpcpy: Likewise.
46118         * modules/unistr/u32-stpncpy: Likewise.
46119         * modules/unistr/u32-strcat: Likewise.
46120         * modules/unistr/u32-strchr: Likewise.
46121         * modules/unistr/u32-strcmp: Likewise.
46122         * modules/unistr/u32-strcoll: Likewise.
46123         * modules/unistr/u32-strcpy: Likewise.
46124         * modules/unistr/u32-strcspn: Likewise.
46125         * modules/unistr/u32-strdup: Likewise.
46126         * modules/unistr/u32-strlen: Likewise.
46127         * modules/unistr/u32-strmblen: Likewise.
46128         * modules/unistr/u32-strmbtouc: Likewise.
46129         * modules/unistr/u32-strncat: Likewise.
46130         * modules/unistr/u32-strncmp: Likewise.
46131         * modules/unistr/u32-strncpy: Likewise.
46132         * modules/unistr/u32-strnlen: Likewise.
46133         * modules/unistr/u32-strpbrk: Likewise.
46134         * modules/unistr/u32-strrchr: Likewise.
46135         * modules/unistr/u32-strspn: Likewise.
46136         * modules/unistr/u32-strstr: Likewise.
46137         * modules/unistr/u32-strtok: Likewise.
46138         * modules/unistr/u32-to-u16: Likewise.
46139         * modules/unistr/u32-to-u8: Likewise.
46140         * modules/unistr/u32-uctomb: Likewise.
46141         * modules/uniwbrk/u8-wordbreaks: Likewise.
46142         * modules/uniwbrk/u16-wordbreaks: Likewise.
46143         * modules/uniwbrk/u32-wordbreaks: Likewise.
46144         * modules/uniwbrk/ulc-wordbreaks: Likewise.
46145         * modules/uniwbrk/wordbreak-property: Likewise.
46146         * modules/uniwidth/u8-strwidth: Likewise.
46147         * modules/uniwidth/u8-width: Likewise.
46148         * modules/uniwidth/u16-strwidth: Likewise.
46149         * modules/uniwidth/u16-width: Likewise.
46150         * modules/uniwidth/u32-strwidth: Likewise.
46151         * modules/uniwidth/u32-width: Likewise.
46152         * modules/uniwidth/width: Likewise.
46153         * modules/unicase/cased-tests (Makefile.am): Link all test programs
46154         with $(LIBUNISTRING).
46155         * modules/unicase/ignorable-tests: Likewise.
46156         * modules/unicase/locale-language-tests: Likewise.
46157         * modules/unicase/tolower-tests: Likewise.
46158         * modules/unicase/totitle-tests: Likewise.
46159         * modules/unicase/toupper-tests: Likewise.
46160         * modules/unicase/u8-casecmp-tests: Likewise.
46161         * modules/unicase/u8-casecoll-tests: Likewise.
46162         * modules/unicase/u8-casefold-tests: Likewise.
46163         * modules/unicase/u8-is-cased-tests: Likewise.
46164         * modules/unicase/u8-is-casefolded-tests: Likewise.
46165         * modules/unicase/u8-is-lowercase-tests: Likewise.
46166         * modules/unicase/u8-is-titlecase-tests: Likewise.
46167         * modules/unicase/u8-is-uppercase-tests: Likewise.
46168         * modules/unicase/u8-tolower-tests: Likewise.
46169         * modules/unicase/u8-totitle-tests: Likewise.
46170         * modules/unicase/u8-toupper-tests: Likewise.
46171         * modules/unicase/u16-casecmp-tests: Likewise.
46172         * modules/unicase/u16-casecoll-tests: Likewise.
46173         * modules/unicase/u16-casefold-tests: Likewise.
46174         * modules/unicase/u16-is-cased-tests: Likewise.
46175         * modules/unicase/u16-is-casefolded-tests: Likewise.
46176         * modules/unicase/u16-is-lowercase-tests: Likewise.
46177         * modules/unicase/u16-is-titlecase-tests: Likewise.
46178         * modules/unicase/u16-is-uppercase-tests: Likewise.
46179         * modules/unicase/u16-tolower-tests: Likewise.
46180         * modules/unicase/u16-totitle-tests: Likewise.
46181         * modules/unicase/u16-toupper-tests: Likewise.
46182         * modules/unicase/u32-casecmp-tests: Likewise.
46183         * modules/unicase/u32-casecoll-tests: Likewise.
46184         * modules/unicase/u32-casefold-tests: Likewise.
46185         * modules/unicase/u32-is-cased-tests: Likewise.
46186         * modules/unicase/u32-is-casefolded-tests: Likewise.
46187         * modules/unicase/u32-is-lowercase-tests: Likewise.
46188         * modules/unicase/u32-is-titlecase-tests: Likewise.
46189         * modules/unicase/u32-is-uppercase-tests: Likewise.
46190         * modules/unicase/u32-tolower-tests: Likewise.
46191         * modules/unicase/u32-totitle-tests: Likewise.
46192         * modules/unicase/u32-toupper-tests: Likewise.
46193         * modules/unicase/ulc-casecmp-tests: Likewise.
46194         * modules/unicase/ulc-casecoll-tests: Likewise.
46195         * modules/uniconv/u8-conv-from-enc-tests: Likewise.
46196         * modules/uniconv/u8-conv-to-enc-tests: Likewise.
46197         * modules/uniconv/u8-strconv-from-enc-tests: Likewise.
46198         * modules/uniconv/u8-strconv-to-enc-tests: Likewise.
46199         * modules/uniconv/u16-conv-from-enc-tests: Likewise.
46200         * modules/uniconv/u16-conv-to-enc-tests: Likewise.
46201         * modules/uniconv/u16-strconv-from-enc-tests: Likewise.
46202         * modules/uniconv/u16-strconv-to-enc-tests: Likewise.
46203         * modules/uniconv/u32-conv-from-enc-tests: Likewise.
46204         * modules/uniconv/u32-conv-to-enc-tests: Likewise.
46205         * modules/uniconv/u32-strconv-from-enc-tests: Likewise.
46206         * modules/uniconv/u32-strconv-to-enc-tests: Likewise.
46207         * modules/unictype/bidicategory-byname-tests: Likewise.
46208         * modules/unictype/bidicategory-name-tests: Likewise.
46209         * modules/unictype/bidicategory-of-tests: Likewise.
46210         * modules/unictype/bidicategory-test-tests: Likewise.
46211         * modules/unictype/block-list-tests: Likewise.
46212         * modules/unictype/block-of-tests: Likewise.
46213         * modules/unictype/block-test-tests: Likewise.
46214         * modules/unictype/category-C-tests: Likewise.
46215         * modules/unictype/category-Cc-tests: Likewise.
46216         * modules/unictype/category-Cf-tests: Likewise.
46217         * modules/unictype/category-Cn-tests: Likewise.
46218         * modules/unictype/category-Co-tests: Likewise.
46219         * modules/unictype/category-Cs-tests: Likewise.
46220         * modules/unictype/category-L-tests: Likewise.
46221         * modules/unictype/category-Ll-tests: Likewise.
46222         * modules/unictype/category-Lm-tests: Likewise.
46223         * modules/unictype/category-Lo-tests: Likewise.
46224         * modules/unictype/category-Lt-tests: Likewise.
46225         * modules/unictype/category-Lu-tests: Likewise.
46226         * modules/unictype/category-M-tests: Likewise.
46227         * modules/unictype/category-Mc-tests: Likewise.
46228         * modules/unictype/category-Me-tests: Likewise.
46229         * modules/unictype/category-Mn-tests: Likewise.
46230         * modules/unictype/category-N-tests: Likewise.
46231         * modules/unictype/category-Nd-tests: Likewise.
46232         * modules/unictype/category-Nl-tests: Likewise.
46233         * modules/unictype/category-No-tests: Likewise.
46234         * modules/unictype/category-P-tests: Likewise.
46235         * modules/unictype/category-Pc-tests: Likewise.
46236         * modules/unictype/category-Pd-tests: Likewise.
46237         * modules/unictype/category-Pe-tests: Likewise.
46238         * modules/unictype/category-Pf-tests: Likewise.
46239         * modules/unictype/category-Pi-tests: Likewise.
46240         * modules/unictype/category-Po-tests: Likewise.
46241         * modules/unictype/category-Ps-tests: Likewise.
46242         * modules/unictype/category-S-tests: Likewise.
46243         * modules/unictype/category-Sc-tests: Likewise.
46244         * modules/unictype/category-Sk-tests: Likewise.
46245         * modules/unictype/category-Sm-tests: Likewise.
46246         * modules/unictype/category-So-tests: Likewise.
46247         * modules/unictype/category-Z-tests: Likewise.
46248         * modules/unictype/category-Zl-tests: Likewise.
46249         * modules/unictype/category-Zp-tests: Likewise.
46250         * modules/unictype/category-Zs-tests: Likewise.
46251         * modules/unictype/category-and-not-tests: Likewise.
46252         * modules/unictype/category-and-tests: Likewise.
46253         * modules/unictype/category-byname-tests: Likewise.
46254         * modules/unictype/category-name-tests: Likewise.
46255         * modules/unictype/category-none-tests: Likewise.
46256         * modules/unictype/category-of-tests: Likewise.
46257         * modules/unictype/category-or-tests: Likewise.
46258         * modules/unictype/category-test-withtable-tests: Likewise.
46259         * modules/unictype/combining-class-tests: Likewise.
46260         * modules/unictype/ctype-alnum-tests: Likewise.
46261         * modules/unictype/ctype-alpha-tests: Likewise.
46262         * modules/unictype/ctype-blank-tests: Likewise.
46263         * modules/unictype/ctype-cntrl-tests: Likewise.
46264         * modules/unictype/ctype-digit-tests: Likewise.
46265         * modules/unictype/ctype-graph-tests: Likewise.
46266         * modules/unictype/ctype-lower-tests: Likewise.
46267         * modules/unictype/ctype-print-tests: Likewise.
46268         * modules/unictype/ctype-punct-tests: Likewise.
46269         * modules/unictype/ctype-space-tests: Likewise.
46270         * modules/unictype/ctype-upper-tests: Likewise.
46271         * modules/unictype/ctype-xdigit-tests: Likewise.
46272         * modules/unictype/decimal-digit-tests: Likewise.
46273         * modules/unictype/digit-tests: Likewise.
46274         * modules/unictype/mirror-tests: Likewise.
46275         * modules/unictype/numeric-tests: Likewise.
46276         * modules/unictype/property-alphabetic-tests: Likewise.
46277         * modules/unictype/property-ascii-hex-digit-tests: Likewise.
46278         * modules/unictype/property-bidi-arabic-digit-tests: Likewise.
46279         * modules/unictype/property-bidi-arabic-right-to-left-tests: Likewise.
46280         * modules/unictype/property-bidi-block-separator-tests: Likewise.
46281         * modules/unictype/property-bidi-boundary-neutral-tests: Likewise.
46282         * modules/unictype/property-bidi-common-separator-tests: Likewise.
46283         * modules/unictype/property-bidi-control-tests: Likewise.
46284         * modules/unictype/property-bidi-embedding-or-override-tests: Likewise.
46285         * modules/unictype/property-bidi-eur-num-separator-tests: Likewise.
46286         * modules/unictype/property-bidi-eur-num-terminator-tests: Likewise.
46287         * modules/unictype/property-bidi-european-digit-tests: Likewise.
46288         * modules/unictype/property-bidi-hebrew-right-to-left-tests: Likewise.
46289         * modules/unictype/property-bidi-left-to-right-tests: Likewise.
46290         * modules/unictype/property-bidi-non-spacing-mark-tests: Likewise.
46291         * modules/unictype/property-bidi-other-neutral-tests: Likewise.
46292         * modules/unictype/property-bidi-pdf-tests: Likewise.
46293         * modules/unictype/property-bidi-segment-separator-tests: Likewise.
46294         * modules/unictype/property-bidi-whitespace-tests: Likewise.
46295         * modules/unictype/property-byname-tests: Likewise.
46296         * modules/unictype/property-combining-tests: Likewise.
46297         * modules/unictype/property-composite-tests: Likewise.
46298         * modules/unictype/property-currency-symbol-tests: Likewise.
46299         * modules/unictype/property-dash-tests: Likewise.
46300         * modules/unictype/property-decimal-digit-tests: Likewise.
46301         * modules/unictype/property-default-ignorable-code-point-tests: Likewise.
46302         * modules/unictype/property-deprecated-tests: Likewise.
46303         * modules/unictype/property-diacritic-tests: Likewise.
46304         * modules/unictype/property-extender-tests: Likewise.
46305         * modules/unictype/property-format-control-tests: Likewise.
46306         * modules/unictype/property-grapheme-base-tests: Likewise.
46307         * modules/unictype/property-grapheme-extend-tests: Likewise.
46308         * modules/unictype/property-grapheme-link-tests: Likewise.
46309         * modules/unictype/property-hex-digit-tests: Likewise.
46310         * modules/unictype/property-hyphen-tests: Likewise.
46311         * modules/unictype/property-id-continue-tests: Likewise.
46312         * modules/unictype/property-id-start-tests: Likewise.
46313         * modules/unictype/property-ideographic-tests: Likewise.
46314         * modules/unictype/property-ids-binary-operator-tests: Likewise.
46315         * modules/unictype/property-ids-trinary-operator-tests: Likewise.
46316         * modules/unictype/property-ignorable-control-tests: Likewise.
46317         * modules/unictype/property-iso-control-tests: Likewise.
46318         * modules/unictype/property-join-control-tests: Likewise.
46319         * modules/unictype/property-left-of-pair-tests: Likewise.
46320         * modules/unictype/property-line-separator-tests: Likewise.
46321         * modules/unictype/property-logical-order-exception-tests: Likewise.
46322         * modules/unictype/property-lowercase-tests: Likewise.
46323         * modules/unictype/property-math-tests: Likewise.
46324         * modules/unictype/property-non-break-tests: Likewise.
46325         * modules/unictype/property-not-a-character-tests: Likewise.
46326         * modules/unictype/property-numeric-tests: Likewise.
46327         * modules/unictype/property-other-alphabetic-tests: Likewise.
46328         * modules/unictype/property-other-default-ignorable-code-point-tests:
46329         Likewise.
46330         * modules/unictype/property-other-grapheme-extend-tests: Likewise.
46331         * modules/unictype/property-other-id-continue-tests: Likewise.
46332         * modules/unictype/property-other-id-start-tests: Likewise.
46333         * modules/unictype/property-other-lowercase-tests: Likewise.
46334         * modules/unictype/property-other-math-tests: Likewise.
46335         * modules/unictype/property-other-uppercase-tests: Likewise.
46336         * modules/unictype/property-paired-punctuation-tests: Likewise.
46337         * modules/unictype/property-paragraph-separator-tests: Likewise.
46338         * modules/unictype/property-pattern-syntax-tests: Likewise.
46339         * modules/unictype/property-pattern-white-space-tests: Likewise.
46340         * modules/unictype/property-private-use-tests: Likewise.
46341         * modules/unictype/property-punctuation-tests: Likewise.
46342         * modules/unictype/property-quotation-mark-tests: Likewise.
46343         * modules/unictype/property-radical-tests: Likewise.
46344         * modules/unictype/property-sentence-terminal-tests: Likewise.
46345         * modules/unictype/property-soft-dotted-tests: Likewise.
46346         * modules/unictype/property-space-tests: Likewise.
46347         * modules/unictype/property-terminal-punctuation-tests: Likewise.
46348         * modules/unictype/property-test-tests: Likewise.
46349         * modules/unictype/property-titlecase-tests: Likewise.
46350         * modules/unictype/property-unassigned-code-value-tests: Likewise.
46351         * modules/unictype/property-unified-ideograph-tests: Likewise.
46352         * modules/unictype/property-uppercase-tests: Likewise.
46353         * modules/unictype/property-variation-selector-tests: Likewise.
46354         * modules/unictype/property-white-space-tests: Likewise.
46355         * modules/unictype/property-xid-continue-tests: Likewise.
46356         * modules/unictype/property-xid-start-tests: Likewise.
46357         * modules/unictype/property-zero-width-tests: Likewise.
46358         * modules/unictype/scripts-tests: Likewise.
46359         * modules/unictype/syntax-c-ident-tests: Likewise.
46360         * modules/unictype/syntax-c-whitespace-tests: Likewise.
46361         * modules/unictype/syntax-java-ident-tests: Likewise.
46362         * modules/unictype/syntax-java-whitespace-tests: Likewise.
46363         * modules/unilbrk/u8-possible-linebreaks-tests: Likewise.
46364         * modules/unilbrk/u8-width-linebreaks-tests: Likewise.
46365         * modules/unilbrk/u16-possible-linebreaks-tests: Likewise.
46366         * modules/unilbrk/u16-width-linebreaks-tests: Likewise.
46367         * modules/unilbrk/u32-possible-linebreaks-tests: Likewise.
46368         * modules/unilbrk/u32-width-linebreaks-tests: Likewise.
46369         * modules/unilbrk/ulc-possible-linebreaks-tests: Likewise.
46370         * modules/unilbrk/ulc-width-linebreaks-tests: Likewise.
46371         * modules/uniname/uniname-tests: Likewise.
46372         * modules/uninorm/canonical-decomposition-tests: Likewise.
46373         * modules/uninorm/compat-decomposition-tests: Likewise.
46374         * modules/uninorm/composition-tests: Likewise.
46375         * modules/uninorm/decomposing-form-tests: Likewise.
46376         * modules/uninorm/decomposition-tests: Likewise.
46377         * modules/uninorm/filter-tests: Likewise.
46378         * modules/uninorm/nfc-tests: Likewise.
46379         * modules/uninorm/nfd-tests: Likewise.
46380         * modules/uninorm/nfkc-tests: Likewise.
46381         * modules/uninorm/nfkd-tests: Likewise.
46382         * modules/uninorm/u8-normcmp-tests: Likewise.
46383         * modules/uninorm/u8-normcoll-tests: Likewise.
46384         * modules/uninorm/u16-normcmp-tests: Likewise.
46385         * modules/uninorm/u16-normcoll-tests: Likewise.
46386         * modules/uninorm/u32-normcmp-tests: Likewise.
46387         * modules/uninorm/u32-normcoll-tests: Likewise.
46388         * modules/unistdio/u8-asnprintf-tests: Likewise.
46389         * modules/unistdio/u8-vasnprintf-tests: Likewise.
46390         * modules/unistdio/u8-vasprintf-tests: Likewise.
46391         * modules/unistdio/u8-vsnprintf-tests: Likewise.
46392         * modules/unistdio/u8-vsprintf-tests: Likewise.
46393         * modules/unistdio/u16-asnprintf-tests: Likewise.
46394         * modules/unistdio/u16-vasnprintf-tests: Likewise.
46395         * modules/unistdio/u16-vasprintf-tests: Likewise.
46396         * modules/unistdio/u16-vsnprintf-tests: Likewise.
46397         * modules/unistdio/u16-vsprintf-tests: Likewise.
46398         * modules/unistdio/u32-asnprintf-tests: Likewise.
46399         * modules/unistdio/u32-vasnprintf-tests: Likewise.
46400         * modules/unistdio/u32-vasprintf-tests: Likewise.
46401         * modules/unistdio/u32-vsnprintf-tests: Likewise.
46402         * modules/unistdio/u32-vsprintf-tests: Likewise.
46403         * modules/unistdio/ulc-asnprintf-tests: Likewise.
46404         * modules/unistdio/ulc-vasnprintf-tests: Likewise.
46405         * modules/unistdio/ulc-vasprintf-tests: Likewise.
46406         * modules/unistdio/ulc-vsnprintf-tests: Likewise.
46407         * modules/unistdio/ulc-vsprintf-tests: Likewise.
46408         * modules/unistr/u8-check-tests: Likewise.
46409         * modules/unistr/u8-chr-tests: Likewise.
46410         * modules/unistr/u8-cmp-tests: Likewise.
46411         * modules/unistr/u8-cmp2-tests: Likewise.
46412         * modules/unistr/u8-cpy-alloc-tests: Likewise.
46413         * modules/unistr/u8-cpy-tests: Likewise.
46414         * modules/unistr/u8-mblen-tests: Likewise.
46415         * modules/unistr/u8-mbsnlen-tests: Likewise.
46416         * modules/unistr/u8-mbtouc-tests: Likewise.
46417         * modules/unistr/u8-mbtouc-unsafe-tests: Likewise.
46418         * modules/unistr/u8-mbtoucr-tests: Likewise.
46419         * modules/unistr/u8-move-tests: Likewise.
46420         * modules/unistr/u8-next-tests: Likewise.
46421         * modules/unistr/u8-prev-tests: Likewise.
46422         * modules/unistr/u8-set-tests: Likewise.
46423         * modules/unistr/u8-stpcpy-tests: Likewise.
46424         * modules/unistr/u8-stpncpy-tests: Likewise.
46425         * modules/unistr/u8-strcat-tests: Likewise.
46426         * modules/unistr/u8-strcmp-tests: Likewise.
46427         * modules/unistr/u8-strcoll-tests: Likewise.
46428         * modules/unistr/u8-strcpy-tests: Likewise.
46429         * modules/unistr/u8-strdup-tests: Likewise.
46430         * modules/unistr/u8-strlen-tests: Likewise.
46431         * modules/unistr/u8-strmblen-tests: Likewise.
46432         * modules/unistr/u8-strmbtouc-tests: Likewise.
46433         * modules/unistr/u8-strncat-tests: Likewise.
46434         * modules/unistr/u8-strncmp-tests: Likewise.
46435         * modules/unistr/u8-strncpy-tests: Likewise.
46436         * modules/unistr/u8-strnlen-tests: Likewise.
46437         * modules/unistr/u8-to-u16-tests: Likewise.
46438         * modules/unistr/u8-to-u32-tests: Likewise.
46439         * modules/unistr/u8-uctomb-tests: Likewise.
46440         * modules/unistr/u16-check-tests: Likewise.
46441         * modules/unistr/u16-chr-tests: Likewise.
46442         * modules/unistr/u16-cmp-tests: Likewise.
46443         * modules/unistr/u16-cmp2-tests: Likewise.
46444         * modules/unistr/u16-cpy-alloc-tests: Likewise.
46445         * modules/unistr/u16-cpy-tests: Likewise.
46446         * modules/unistr/u16-mblen-tests: Likewise.
46447         * modules/unistr/u16-mbsnlen-tests: Likewise.
46448         * modules/unistr/u16-mbtouc-tests: Likewise.
46449         * modules/unistr/u16-mbtouc-unsafe-tests: Likewise.
46450         * modules/unistr/u16-mbtoucr-tests: Likewise.
46451         * modules/unistr/u16-move-tests: Likewise.
46452         * modules/unistr/u16-next-tests: Likewise.
46453         * modules/unistr/u16-prev-tests: Likewise.
46454         * modules/unistr/u16-set-tests: Likewise.
46455         * modules/unistr/u16-stpcpy-tests: Likewise.
46456         * modules/unistr/u16-stpncpy-tests: Likewise.
46457         * modules/unistr/u16-strcat-tests: Likewise.
46458         * modules/unistr/u16-strcmp-tests: Likewise.
46459         * modules/unistr/u16-strcoll-tests: Likewise.
46460         * modules/unistr/u16-strcpy-tests: Likewise.
46461         * modules/unistr/u16-strdup-tests: Likewise.
46462         * modules/unistr/u16-strlen-tests: Likewise.
46463         * modules/unistr/u16-strmblen-tests: Likewise.
46464         * modules/unistr/u16-strmbtouc-tests: Likewise.
46465         * modules/unistr/u16-strncat-tests: Likewise.
46466         * modules/unistr/u16-strncmp-tests: Likewise.
46467         * modules/unistr/u16-strncpy-tests: Likewise.
46468         * modules/unistr/u16-strnlen-tests: Likewise.
46469         * modules/unistr/u16-to-u32-tests: Likewise.
46470         * modules/unistr/u16-to-u8-tests: Likewise.
46471         * modules/unistr/u16-uctomb-tests: Likewise.
46472         * modules/unistr/u32-check-tests: Likewise.
46473         * modules/unistr/u32-chr-tests: Likewise.
46474         * modules/unistr/u32-cmp-tests: Likewise.
46475         * modules/unistr/u32-cmp2-tests: Likewise.
46476         * modules/unistr/u32-cpy-alloc-tests: Likewise.
46477         * modules/unistr/u32-cpy-tests: Likewise.
46478         * modules/unistr/u32-mblen-tests: Likewise.
46479         * modules/unistr/u32-mbsnlen-tests: Likewise.
46480         * modules/unistr/u32-mbtouc-tests: Likewise.
46481         * modules/unistr/u32-mbtouc-unsafe-tests: Likewise.
46482         * modules/unistr/u32-mbtoucr-tests: Likewise.
46483         * modules/unistr/u32-move-tests: Likewise.
46484         * modules/unistr/u32-next-tests: Likewise.
46485         * modules/unistr/u32-prev-tests: Likewise.
46486         * modules/unistr/u32-set-tests: Likewise.
46487         * modules/unistr/u32-stpcpy-tests: Likewise.
46488         * modules/unistr/u32-stpncpy-tests: Likewise.
46489         * modules/unistr/u32-strcat-tests: Likewise.
46490         * modules/unistr/u32-strcmp-tests: Likewise.
46491         * modules/unistr/u32-strcoll-tests: Likewise.
46492         * modules/unistr/u32-strcpy-tests: Likewise.
46493         * modules/unistr/u32-strdup-tests: Likewise.
46494         * modules/unistr/u32-strlen-tests: Likewise.
46495         * modules/unistr/u32-strmblen-tests: Likewise.
46496         * modules/unistr/u32-strmbtouc-tests: Likewise.
46497         * modules/unistr/u32-strncat-tests: Likewise.
46498         * modules/unistr/u32-strncmp-tests: Likewise.
46499         * modules/unistr/u32-strncpy-tests: Likewise.
46500         * modules/unistr/u32-strnlen-tests: Likewise.
46501         * modules/unistr/u32-to-u16-tests: Likewise.
46502         * modules/unistr/u32-to-u8-tests: Likewise.
46503         * modules/unistr/u32-uctomb-tests: Likewise.
46504         * modules/uniwbrk/u8-wordbreaks-tests: Likewise.
46505         * modules/uniwbrk/u16-wordbreaks-tests: Likewise.
46506         * modules/uniwbrk/u32-wordbreaks-tests: Likewise.
46507         * modules/uniwbrk/ulc-wordbreaks-tests: Likewise.
46508         * modules/uniwidth/u8-strwidth-tests: Likewise.
46509         * modules/uniwidth/u8-width-tests: Likewise.
46510         * modules/uniwidth/u16-strwidth-tests: Likewise.
46511         * modules/uniwidth/u16-width-tests: Likewise.
46512         * modules/uniwidth/u32-strwidth-tests: Likewise.
46513         * modules/uniwidth/u32-width-tests: Likewise.
46514         * modules/uniwidth/width-tests: Likewise.
46516 2010-05-18  Richard Jones  <rjones@redhat.com>
46518         doc: users.txt: list hivex
46519         * users.txt: Add hivex.
46521 2010-05-18  Richard Jones  <rjones@redhat.com>
46523         doc: users.txt: list febootstrap
46524         * users.txt: Add febootstrap.
46526 2010-05-17  Giuseppe Scrivano  <gscrivano@gnu.org>
46528         bootstrap: fix an error when gnulib is not used as a git submodule
46529         * build-aux/bootstrap (gnulib_path): If its length is zero then
46530         assign "gnulib" to it.
46531         * build-aux/bootstrap: Redirect "git clone -h" stderr to stdout.
46533 2010-05-16  Bruno Haible  <bruno@clisp.org>
46535         Avoid autoconf warnings about AM_ICONV.
46536         * m4/iconv.m4 (AM_ICONV): Define using AC_DEFUN_ONCE for autoconf >=
46537         2.64.
46539 2010-05-16  Bruno Haible  <bruno@clisp.org>
46541         absolute-header: Make the macro usable in more situations.
46542         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): New macro, extracted
46543         from gl_ABSOLUTE_HEADER.
46544         (gl_ABSOLUTE_HEADER): Use it. Fix comment.
46546 2010-05-16  James Youngman  <jay@gnu.org>
46548         doc: update users.txt
46549         * users.txt: Add CSSC.
46551 2010-05-16  Jim Meyering  <meyering@redhat.com>
46553         init.sh: fix an error in the previous change; add more comments
46554         * tests/init.sh: Compare exit code in loop against 9, not 2.
46555         Patch by Bruno Haible.
46556         Make the two tests more similar by adding an empty "then" clause.
46557         Add comments.
46559         init.sh: avoid unnecessary shell re-exec
46560         * tests/init.sh: Improve the re-exec-required check to first test the
46561         current shell.  If it passes the test, do not search for a shell that
46562         does pass, and do not re-exec.  This test is particularly contorted to
46563         avoid triggering misbehavior in Solaris 10's /bin/sh whereby any use
46564         of $(...) evokes a syntax error and causes immediate shell exit with
46565         status 2.  Bruno Haible reported that the re-exec made it impossible
46566         to single-step through any init.sh-using script.
46568 2010-05-16  Bruno Haible  <bruno@clisp.org>
46570         Fix collision between gnulib's and libintl's printf replacements.
46571         * lib/stdio.in.h (_GL_STDIO_STRINGIZE,
46572         _GL_STDIO_MACROEXPAND_AND_STRINGIZE): New macros.
46573         (printf): When using GNU C, map the __printf__ function to rpl_printf
46574         via __asm__. When not using GNU C, define rpl_printf instead of
46575         __printf__.
46576         * lib/printf.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2010-03-25
46577         commit.
46578         * lib/stdio-write.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2009-08-10
46579         commit.
46580         * m4/asm-underscore.m4: New file.
46581         * m4/stdio_h.m4 (gl_STDIO_H): Require gl_ASM_SYMBOL_PREFIX.
46582         * modules/stdio (Files): Add m4/asm-underscore.m4.
46583         (Makefile.am): Substitute ASM_SYMBOL_PREFIX.
46584         Reported by Ben Pfaff.
46586 2010-05-16  Bruno Haible  <bruno@clisp.org>
46588         verify: Avoid skipping the test on openSUSE 11.0.
46589         * tests/test-verify.sh: Unset MALLOC_PERTURB_.
46591 2010-05-13  Bruno Haible  <bruno@clisp.org>
46593         Avoid useless warnings from G++.
46594         * build-aux/c++defs.h (_GL_CXXALIASWARN_2, _GL_CXXALIASWARN1_2): Don't
46595         use _GL_WARN_ON_USE or _GL_WARN_ON_USE_CXX when optimizing.
46596         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
46598 2010-05-11  Jim Meyering  <meyering@redhat.com>
46600         maint.mk: tweak preceding change
46601         * top/maint.mk (gl_extract_significant_defines_): Make exclusion
46602         regexps tighter by anchoring at EOL, and make the new group "shy"
46603         for slightly decreased overhead.
46605 2010-05-11  Eric Blake  <eblake@redhat.com>
46607         maint.mk: gnulib doesn't guarantee NSIG
46608         * top/maint.mk (gl_extract_significant_defines_): Exclude NSIG.
46610 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
46612         test-pwrite.c: Remove unused variable declaration.
46613         * tests/test-pwrite.c (main): Remove read_buf declaration.
46615         Remove useless test-pwrite.sh file.
46616         * tests/test-pwrite.sh: Delete file.
46617         * modules/pwrite-tests: Remove references.
46618         Reported by Bruno Haible.
46620 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
46622         init.sh: fix a typo
46623         * tests/init.sh: Correct typo in MALLOC_PERTURB_ initialization.
46625 2010-05-10  Jim Meyering  <meyering@redhat.com>
46627         maint.mk: avoid using a temporary file in the always-defined-macros check
46628         * top/maint.mk (.re-defmac): Remove rule.
46629         (gl_trap_): Remove definition.
46630         (sc_prohibit_always-defined_macros): Rewrite not to create and
46631         depend on a temporary file.  Instead, depend on GNU grep's ability
46632         to read a list of regular expressions from stdin when given "-f -".
46634 2010-05-09  Bruno Haible  <bruno@clisp.org>
46636         Update to GNU gettext 0.18, part 1.
46637         * m4/gettext.m4: Update to GNU gettext 0.18.
46638         * m4/intl.m4: Likewise.
46639         * m4/po.m4: Likewise.
46640         * modules/gettext (Files): Add m4/fcntl-o.m4.
46641         (configure.ac): Require gettext infrastructure from version 0.18.
46643 2010-05-09  Jim Meyering  <meyering@redhat.com>
46645         init.sh: enable MALLOC_PERTURB_
46646         * tests/init.sh: Enable glibc's malloc-perturbing option.
46648         maint.mk: improve sc_cross_check_PATH_usage_in_tests
46649         With my recent change in init.sh from the two-line form:
46650             -#   : ${srcdir=.}
46651             -#   . "$srcdir/init.sh"; path_prepend_ .
46652             +#   . "${srcdir=.}/init.sh"; path_prepend_ .
46653         I noticed that using the one-line form would cause this test
46654         to fail with a false-positive, or to stop working altogether,
46655         depending on whether help-version changed or all the tests did.
46656         * top/maint.mk (_hv_regex): Remove this definition.
46657         (_hv_regex_weak): Use a weak regex to select all init.sh-sourcing files.
46658         (_hv_regex_strong): Use a stronger regex to check for conformance.
46659         (sc_cross_check_PATH_usage_in_tests): Rewrite to use the above.
46660         Give a separate diagnostic for lack of conforming use.
46662         maint.mk: prohibit definition of symbols defined by gnulib
46663         * top/maint.mk (sc_prohibit_always-defined_macros): Reject the
46664         definition of symbols defined by gnulib.
46666 2010-05-09  Bruno Haible  <bruno@clisp.org>
46668         acl: Avoid test failure on Cygwin-hosted mingw.
46669         * tests/test-set-mode-acl.sh: Skip test if USE_ACL is 0.
46671 2010-05-09  Bruno Haible  <bruno@clisp.org>
46673         error: Use system's fcntl function.
46674         * lib/error.c (fcntl): Undefine.
46676 2010-05-09  Jim Meyering  <meyering@redhat.com>
46678         verify: adjust formatting to be more consistent
46679         * lib/verify.h (_GL_GENSYM): Add a space before each of a few
46680         argument-list '('s, and after one comma.
46682 2010-05-09  Bruno Haible  <bruno@clisp.org>
46684         error: More reliable output on mingw.
46685         * lib/error.c: Include <windows.h>.
46686         (is_open): New function.
46687         (flush_stdout): Call it instead of fcntl, also if F_GETFL is not
46688         defined.
46690 2010-05-09  Bruno Haible  <bruno@clisp.org>
46692         vasnprintf: Fix syntax errors in libintl build on mingw.
46693         * lib/vasnprintf.c (VASNPRINTF): Move a closing brace. Undefine
46694         pad_ourselves and prec_ourselves after use.
46696 2010-05-08  Bruno Haible  <bruno@clisp.org>
46698         * lib/config.charset: Update comments for Cygwin 1.7.
46699         * lib/localcharset.c: Likewise.
46701 2010-05-07  Jim Meyering  <meyering@redhat.com>
46703         init.sh: improve comments
46704         * tests/init.sh: Recommend the one-line init.sh-sourcing idiom:
46705         . "${srcdir=.}/init.sh"; path_prepend_ .
46706         Add a note about path_prepend_ and the alternative of using
46707         TESTS_ENVIRONMENT.
46709 2010-05-06  Sergey Poznyakoff  <gray@gnu.org.ua>
46711         exclude: Unescape hashed patterns in wildcard mode.
46712         * lib/exclude.c (add_exclude): Unescape the pattern before adding it
46713         to the hash list.
46714         * tests/test-exclude8.sh: New test case.
46715         * modules/exclude-tests: Add new test.
46717 2010-05-05  Eric Blake  <eblake@redhat.com>
46719         verify: automate tests
46720         * modules/verify-tests: New module.
46721         * tests/test-verify.sh: New file.
46722         * tests/test-verify.c: Guard each negative test with a unique id.
46723         Also avoid warning about unused left hand of comma expressions.
46725 2010-05-05  Paul Eggert  <eggert@cs.ucla.edu>
46727         Further improvements to verify.h, suggested by Eric Blake.
46728         * lib/verify.h (_GL_CONCAT, _GL_CONCAT0, _GL_GENSYM): Renamed from
46729         the GL_* versions, to avoid collision with OpenGL.
46730         (_GL_COUNTER): New macro, so that we can fall back on __LINE__ if
46731         __COUNTER__ doesn't work.  Test that __COUNTER__ increments rather
46732         than testing merely whether it's defined.
46734         Modify verify.h to pacify gcc -Wredundant_decls.
46735         * lib/verify.h (GL_CONCAT, GL_CONCAT0, GL_GENSYM): New macros.
46736         These use the prefix "GL_" since they're likely to be useful elsewhere.
46737         We may need to break them out into a different .h file.
46738         (__COUNTER__): Define to 0 if the compiler doesn't support it.
46739         (verify) [!defined __cplusplus]: Use them to avoid duplicate decls
46740         of verify_function__.
46742 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
46744         Tests for module pwrite.
46745         * modules/pwrite-tests: New file.
46746         * tests/test-pwrite.sh: New file.
46747         * tests/test-pwrite.c: New file.
46749         New module pwrite.
46750         * lib/unistd.in.h (pwrite): New declaration.
46751         * lib/pwrite.c: New file, from glibc with modifications.
46752         * m4/pwrite.m4: New file.
46753         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether pwrite is declared.
46754         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PWRITE, HAVE_PWRITE,
46755         REPLACE_PWRITE.
46756         * modules/pwrite: New file.
46757         * modules/unistd (Makefile.am): Substitute GNULIB_PWRITE, HAVE_PWRITE,
46758         REPLACE_PWRITE.
46759         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::pwrite.
46760         * doc/posix-functions/pwrite.texi: Mention the new module.
46762 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
46764         pread: Update documentation.
46765         * doc/posix-functions/pread.texi: Mention the 'pread' module.
46767 2010-05-04  Eric Blake  <eblake@redhat.com>
46769         docs: update cygwin progress
46770         * doc/posix-functions/wctob.texi (wctob): Cygwin 1.7.6 will fix
46771         this bug.
46772         * doc/glibc-functions/get_nprocs_conf.texi (get_nprocs_conf):
46773         Added in cygwin 1.7.2.
46774         * doc/glibc-functions/get_phys_pages.texi (get_phys_pages):
46775         Likewise.
46776         * doc/glibc-functions/get_avphys_pages.texi (get_avphys_pages):
46777         Likewise.
46778         * doc/glibc-functions/dup3.texi (dup3): Likewise.
46779         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
46780         * doc/glibc-functions/accept4.texi (accept4): Likewise.
46781         * doc/posix-functions/strfmon.texi (strfmon): Likewise.
46782         * doc/glibc-functions/get_nprocs.texi (get_nprocs): Likewise.
46783         Mention nproc module.
46784         * doc/glibc-functions/xdr_uint16_t.texi (xdr_uint16_t): Mention
46785         bug in cygwin 1.7.5 addition.
46786         * doc/glibc-functions/xdr_uint32_t.texi (xdr_uint32_t): Likewise.
46787         * doc/glibc-functions/xdr_uint64_t.texi (xdr_uint64_t): Likewise.
46788         * doc/glibc-functions/xdr_uint8_t.texi (xdr_uint8_t): Likewise.
46789         * doc/glibc-functions/xdr_array.texi (xdr_array): Added in cygwin
46790         1.7.5.
46791         * doc/glibc-functions/xdr_bool.texi (xdr_bool): Likewise.
46792         * doc/glibc-functions/xdr_bytes.texi (xdr_bytes): Likewise.
46793         * doc/glibc-functions/xdr_char.texi (xdr_char): Likewise.
46794         * doc/glibc-functions/xdr_double.texi (xdr_double): Likewise.
46795         * doc/glibc-functions/xdr_enum.texi (xdr_enum): Likewise.
46796         * doc/glibc-functions/xdr_float.texi (xdr_float): Likewise.
46797         * doc/glibc-functions/xdr_free.texi (xdr_free): Likewise.
46798         * doc/glibc-functions/xdr_hyper.texi (xdr_hyper): Likewise.
46799         * doc/glibc-functions/xdr_int.texi (xdr_int): Likewise.
46800         * doc/glibc-functions/xdr_int16_t.texi (xdr_int16_t): Likewise.
46801         * doc/glibc-functions/xdr_int32_t.texi (xdr_int32_t): Likewise.
46802         * doc/glibc-functions/xdr_int64_t.texi (xdr_int64_t): Likewise.
46803         * doc/glibc-functions/xdr_int8_t.texi (xdr_int8_t): Likewise.
46804         * doc/glibc-functions/xdr_long.texi (xdr_long): Likewise.
46805         * doc/glibc-functions/xdr_longlong_t.texi (xdr_longlong_t):
46806         Likewise.
46807         * doc/glibc-functions/xdr_netobj.texi (xdr_netobj): Likewise.
46808         * doc/glibc-functions/xdr_opaque.texi (xdr_opaque): Likewise.
46809         * doc/glibc-functions/xdr_pointer.texi (xdr_pointer): Likewise.
46810         * doc/glibc-functions/xdr_reference.texi (xdr_reference):
46811         Likewise.
46812         * doc/glibc-functions/xdr_short.texi (xdr_short): Likewise.
46813         * doc/glibc-functions/xdr_sizeof.texi (xdr_sizeof): Likewise.
46814         * doc/glibc-functions/xdr_string.texi (xdr_string): Likewise.
46815         * doc/glibc-functions/xdr_u_char.texi (xdr_u_char): Likewise.
46816         * doc/glibc-functions/xdr_u_hyper.texi (xdr_u_hyper): Likewise.
46817         * doc/glibc-functions/xdr_u_int.texi (xdr_u_int): Likewise.
46818         * doc/glibc-functions/xdr_u_long.texi (xdr_u_long): Likewise.
46819         * doc/glibc-functions/xdr_u_longlong_t.texi (xdr_u_longlong_t):
46820         Likewise.
46821         * doc/glibc-functions/xdr_u_short.texi (xdr_u_short): Likewise.
46822         * doc/glibc-functions/xdr_union.texi (xdr_union): Likewise.
46823         * doc/glibc-functions/xdr_vector.texi (xdr_vector): Likewise.
46824         * doc/glibc-functions/xdr_void.texi (xdr_void): Likewise.
46825         * doc/glibc-functions/xdr_wrapstring.texi (xdr_wrapstring):
46826         Likewise.
46827         * doc/glibc-functions/xdrmem_create.texi (xdrmem_create):
46828         Likewise.
46829         * doc/glibc-functions/xdrrec_create.texi (xdrrec_create):
46830         Likewise.
46831         * doc/glibc-functions/xdrrec_endofrecord.texi
46832         (xdrrec_endofrecord): Likewise.
46833         * doc/glibc-functions/xdrrec_eof.texi (xdrrec_eof): Likewise.
46834         * doc/glibc-functions/xdrrec_skiprecord.texi (xdrrec_skiprecord):
46835         Likewise.
46836         * doc/glibc-functions/xdrstdio_create.texi (xdrstdio_create):
46837         Likewise.
46839 2010-05-04  Jim Meyering  <meyering@redhat.com>
46841         gendocs.sh: make its "-s FILE" option more useful
46842         * build-aux/gendocs.sh: When honoring the -s FILE option, update
46843         $PACKAGE to reflect the probably-different basename of "FILE".
46845 2010-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
46847         bootstrap: don't ignore download_po_files failure
46848         * build-aux/bootstrap (update_po_files): Don't ignore download_po_files
46849         failure.
46851 2010-05-03  Jim Meyering  <meyering@redhat.com>
46853         maint.mk: allow to pass options to gendocs.sh
46854         * top/maint.mk (web-manual): Pass gendocs_options_ to gendocs.sh.
46855         (gendocs_options_): New overridable variable.
46857         gnu-web-doc-update: don't ignore configure or build failure
46858         * build-aux/gnu-web-doc-update: Exit nonzero upon internal failure.
46860         announce-gen: backslash-escape '@'s in --help output
46861         * build-aux/announce-gen: Fix syntax errors.
46863         maint.mk, announce-gen: allow project-specific announcement mail headers
46864         * top/maint.mk (translation_project_): Define default.
46865         (announcement_Cc_, announcement_mail_headers_): Likewise.
46866         (announcement): Invoke announce-gen with new --mail-headers option.
46867         * build-aux/announce-gen: New option: --mail-headers=HEADERS.
46869         test-xalloc-die: avoid unwarranted test failure on OpenSolaris 5.11
46870         * tests/test-xalloc-die.sh: Redirect stdout before stderr, (i.e.,
46871         "> out 2> err", rather than "2> err > out").  Otherwise, with /bin/sh
46872         on OpenSolaris 5.11 snv_134, we would end up with a stray "1> out"
46873         line in the "err2" output file when running "make check" in verbose
46874         mode (i.e., with set -x enabled).
46876 2010-05-03  Bruno Haible  <bruno@clisp.org>
46878         wctob: Fix for weird platforms.
46879         * lib/wctob.c (wctob): When wint_t is larger than wchar_t, check the
46880         argument value.
46882 2010-05-03  Jim Meyering  <meyering@redhat.com>
46884         maint.mk: prohibit unwarranted use of <strings.h>
46885         * top/maint.mk (sc_prohibit_strings_without_use): Reject inclusion of
46886         strings.h in a file that does not also use strcasecmp, strncasecmp,
46887         ffs or ffsll.
46889         maint.mk: remove obsolete comments
46890         * top/maint.mk: Remove stale, commented-out rules.
46892 2010-05-02  Bruno Haible  <bruno@clisp.org>
46894         wcwidth: Declare also when it's aliased.
46895         * lib/wchar.in.h (wcwidth): Don't test whether wcwidth is defined as a
46896         macro.
46898 2010-05-02  Bruno Haible  <bruno@clisp.org>
46900         Fix regression from 2010-04-25.
46901         * gnulib-tool (func_modules_transitive_closure): Check the status of
46902         all modules, not only of the tests that are of the form foo-tests where
46903         foo is a module.
46905 2010-05-02  Bruno Haible  <bruno@clisp.org>
46907         wctob: Work around nasty Cygwin 1.7.2 bug.
46908         * m4/wctob.m4 (gl_FUNC_WCTOB): Detect the Cygwin bug.
46909         * doc/posix-functions/wctob.texi: Mention the Cygwin bug.
46911 2010-05-01  Bruno Haible  <bruno@clisp.org>
46913         fpurge: Sharper test.
46914         * tests/test-fpurge.c (main): Add one more ftell check.
46915         * modules/fpurge-tests (Depends-on): Add ftell.
46916         Suggested by Eric Blake.
46918 2010-05-01  Bruno Haible  <bruno@clisp.org>
46920         ftello: Another test.
46921         * tests/test-ftello3.c: New file.
46922         * modules/ftello-tests (Files): Add it.
46923         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
46924         MOSTLYCLEANFILES.
46926         ftell: Another test.
46927         * tests/test-ftell3.c: New file.
46928         * modules/ftell-tests (Files): Add it.
46929         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
46930         MOSTLYCLEANFILES.
46932 2010-05-01  Bruno Haible  <bruno@clisp.org>
46934         ftell, ftello: Work around Solaris bug.
46935         * m4/ftello.m4 (gl_FUNC_FTELLO): Detect Solaris bug.
46936         * lib/ftello.c: Include stdio-impl.h.
46937         (ftello): On Solaris, when _IOWRT is set, compute the result without
46938         looking at _IOREAD.
46939         * modules/ftello (Files): Add lib/stdio-impl.h.
46940         * doc/posix-functions/ftell.texi: Mention Solaris bug.
46941         * doc/posix-functions/ftello.texi: Likewise.
46942         Reported by Eric Blake.
46944 2010-05-01  Bruno Haible  <bruno@clisp.org>
46946         freading: Adapt to special meaning of _IOREAD flag on Solaris.
46947         * lib/freading.c (freading): On Solaris, ignore the _IOREAD flag if
46948         the _IOWRT flag is also set.
46950 2010-05-01  Bruno Haible  <bruno@clisp.org>
46952         Fix doc about a HP-UX stdio bug.
46953         * doc/posix-functions/ftell.texi: Mark HP-UX bug as unfixed.
46954         * doc/posix-functions/ftello.texi: Likewise.
46956 2010-05-01  Bruno Haible  <bruno@clisp.org>
46958         lseek test: Fix failure on Solaris.
46959         * tests/test-lseek.sh: Partially revert 2010-04-20 commit. Consume all
46960         output.
46962 2010-04-30  Jim Meyering  <meyering@redhat.com>
46964         bootstrap: don't ignore failure to generate po*/Makevars
46965         * build-aux/bootstrap (with_gettext): Don't ignore failure
46966         to create po/Makevars or runtime-po/Makevars.
46968 2010-04-29  Eric Blake  <eblake@redhat.com>
46970         headers: relax license to LGPLv2+
46971         * modules/fcntl-h (License): Relax license.
46972         * modules/getopt-posix (License): Likewise.
46973         * modules/locale (License): Likewise.
46974         * modules/math (License): Likewise.
46975         * modules/pty (License): Likewise.
46976         * modules/sched (License): Likewise.
46977         * modules/search (License): Likewise.
46978         * modules/spawn (License): Likewise.
46979         * modules/stdarg (License): Likewise.
46980         * modules/sysexits (License): Likewise.
46982 2010-04-29  Jim Meyering  <meyering@redhat.com>
46984         inttypes: relax license to LGPLv2+
46985         * modules/inttypes (License): Relax license.
46987 2010-04-29  Simon Josefsson  <simon@josefsson.org>
46989         * top/maint.mk (indent): Run twice to produce idempotent results.
46991 2010-04-28  Bruno Haible  <bruno@clisp.org>
46993         getdate: Generate getdate.c in the source directory.
46994         * modules/getdate (Makefile.am): Add rule for getdate.c. Augment
46995         MOSTLYCLEANFILES.
46996         Suggested by Daniel Richard G. <skunk@iskunk.org> and Ralf Wildenhues.
46998 2010-04-27  Andreas Gruenbacher  <agruen@suse.de>  (tiny change)
47000         * lib/utimens.c: On Tru64, the timestamp parameter of utimens(2)
47001         is not declared as a const *; avoid warnings in that case.
47003 2010-04-28  Eric Blake  <eblake@redhat.com>
47005         canonicalize-lgpl: avoid compiler warning
47006         * lib/canonicalize-lgpl.c (versioned_symbol): Avoid an 'empty
47007         declaration' / 'extraneous semicolon' warning with some compilers.
47008         Reported by Andreas Gruenbacher.
47010 2010-04-28  Jim Meyering  <meyering@redhat.com>
47012         init.sh: ensure a more reliable exit status when exiting via trap
47013         * tests/init.sh (setup_): Don't rely on $? in signal handler.
47014         Inspired by patches from Dmitry V. Levin.
47015         Also trap on signal 3 (SIGQUIT).
47017 2010-04-27  Bruno Haible  <bruno@clisp.org>
47019         Update doc about utimes().
47020         * doc/posix-functions/utimes.texi: Mention the OSF/1 problem and the
47021         'utimens' module.
47022         Reported by Andreas Gruenbacher <agruen@suse.de>.
47024 2010-04-27  Eric Blake  <eblake@redhat.com>
47026         full-read, full-write: relax license
47027         * modules/full-read (License): Drop to LGPLv2+.
47028         * modules/full-write (License): Likewise.
47029         * modules/safe-read (License): Likewise.
47030         * modules/safe-write (License): Likewise.
47032         pthread: mention library for linking
47033         * modules/pthread (Link): Mention $(LIB_PTHREAD).
47035 2010-04-27  Jim Meyering  <meyering@redhat.com>
47037         maint.mk: fix a bug introduced in last change
47038         * top/maint.mk (gl_assured_headers_): Now that all names are on
47039         one line, use sed's "g" modifier.  Note that while the \.in\.h LHS
47040         is not anchored to end of word, it should be adequate.
47042         maint.mk: avoid side-effect in latest syntax-check
47043         * top/maint.mk (sc_prohibit_always_true_header_tests): Rework not
47044         to run commands via $(shell...), and hence to incur cost only when
47045         the new rule is actually run.
47047         maint.mk: syntax-check: prohibit HAVE_<header>_H that are always true
47048         Derive the list of guaranteed header names from gnulib/lib/*.in.h,
47049         and use that to create a regexp used to detect all #if HAVE_..._H uses.
47050         * top/maint.mk (sc_prohibit_always_true_header_tests): New rule.
47051         (gl_assured_headers_, az_, AZ_): Define.
47052         (gl_header_upper_case_or_, gl_have_header_regex_): Define.
47054 2010-04-26  Jim Meyering  <jim@meyering.net>
47055             Bruno Haible  <bruno@clisp.org>
47057         gnulib-common.m4: make glibc write diagnostics to stderr, not /dev/tty
47058         * m4/gnulib-common.m4 (gl_COMMON_BODY): Set LIBC_FATAL_STDERR_.
47059         Prompted by an exchange with Gilles Espinasse.
47061 2010-04-26  Jim Meyering  <meyering@redhat.com>
47063         git-version-gen: aesthetic tweak
47064         * build-aux/git-version-gen: Use "$nl" rather than a literal,
47065         so that the command remains on a single line.
47067 2010-04-26  Eric Blake  <eblake@redhat.com>
47069         git-version-gen: allow use on EBCDIC hosts
47070         * build-aux/git-version-gen (dirty): Use literal rather than tying
47071         ourselves to ascii.
47072         Reported by Steve Goetze.
47074 2010-04-25  Bruno Haible  <bruno@clisp.org>
47076         netdb: Add support for GNULIB_POSIXCHECK.
47077         * lib/netdb.in.h: Include warn-on-use.h.
47078         (getaddrinfo, freeaddrinfo, gai_strerror, getnameinfo): Warn if these
47079         functions are used when GNULIB_POSIXCHECK is defined and the
47080         getaddrinfo module is not in use.
47081         * m4/netdb_h.m4 (gl_HEADER_NETDB): Test whether getaddrinfo,
47082         freeaddrinfo, gai_strerror, getnameinfo are declared.
47083         * modules/netdb (Depends-on): Add warn-on-use.
47084         (Makefile.am): Include warn-on-use.h in netdb.h.
47086 2010-04-24  Ian Beckwith  <ianb@erislabs.net>
47088         build: avoid "make check" failure without .git/ directory
47089         * Makefile (sc_prefer_ac_check_funcs_once): Skip this test when
47090         there is no .git/ directory.
47092 2010-04-25  Bruno Haible  <bruno@clisp.org>
47094         ptsname: Fix misuse of ttyname_r.
47095         * lib/ptsname.c (__ptsname_r): Use __ttyname_r's return value instead
47096         of errno.
47098 2010-04-25  Bruno Haible  <bruno@clisp.org>
47100         ttyname_r: Make it work on Solaris 10.
47101         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Define HAVE_POSIXDECL_TTYNAME_R
47102         if the system function has the POSIX declaration. Test whether the
47103         function fails if the buffer is less than 128 bytes large.
47104         * lib/ttyname_r.c (ttyname_r): Handle both possible declarations of the
47105         system's ttyname_r function. Provide a reasonably large buffer.
47106         * modules/ttyname_r (Depends-on): Add extensions.
47107         * doc/posix-functions/ttyname_r.texi: Mention the Solaris problem.
47109 2010-04-25  Bruno Haible  <bruno@clisp.org>
47111         Use the 'extensions' module for some more functions on Solaris.
47112         * doc/posix-functions/asctime_r.texi: Recommend to use the 'extensions'
47113         module.
47114         * doc/posix-functions/ctime_r.texi: Likewise.
47115         * doc/posix-functions/getgrgid_r.texi: Likewise.
47116         * doc/posix-functions/getgrnam_r.texi: Likewise.
47117         * doc/posix-functions/getpwnam_r.texi: Likewise.
47118         * doc/posix-functions/getpwuid_r.texi: Likewise.
47119         * doc/posix-functions/readdir_r.texi: Likewise.
47120         * doc/posix-functions/sigwait.texi: Likewise.
47121         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Add comment.
47122         * doc/posix-functions/getlogin_r.texi: Mark Solaris problem as fixed.
47124 2010-04-25  Bruno Haible  <bruno@clisp.org>
47126         ttyname_r: Make it work on MacOS X 10.4 and Solaris 10.
47127         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether the system function
47128         has the POSIX declaration. Set REPLACE_TTYNAME_R if not.
47129         * lib/ttyname_r.c: Include <limits.h>.
47130         (ttyname_r): Define using the system's ttyname_r function, if it exists
47131         and not on Solaris.
47132         * lib/unistd.in.h (ttyname_r): Replace function if REPLACE_TTYNAME_R is
47133         set.
47134         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_TTYNAME_R.
47135         * modules/unistd (Makefile.am): Substitute REPLACE_TTYNAME_R.
47136         * doc/posix-functions/ttyname_r.texi: Mark the problem as fixed.
47137         Reported by Simon Josefsson.
47139 2010-04-25  Bruno Haible  <bruno@clisp.org>
47141         Mention effects of _POSIX_PTHREAD_SEMANTICS on Solaris.
47142         * doc/posix-functions/asctime_r.texi: Mention the Solaris problem.
47143         * doc/posix-functions/ctime_r.texi: Likewise.
47144         * doc/posix-functions/getgrgid_r.texi: Likewise.
47145         * doc/posix-functions/getgrnam_r.texi: Likewise.
47146         * doc/posix-functions/getlogin_r.texi: Likewise.
47147         * doc/posix-functions/getpwnam_r.texi: Likewise.
47148         * doc/posix-functions/getpwuid_r.texi: Likewise.
47149         * doc/posix-functions/readdir_r.texi: Likewise.
47150         * doc/posix-functions/sigwait.texi: Likewise.
47151         * doc/posix-functions/ttyname_r.texi: Likewise.
47152         Reported by Simon Josefsson.
47154 2010-04-25  Bruno Haible  <bruno@clisp.org>
47156         gnulib-tool: Don't include hairy tests of dependencies in testdirs.
47157         * gnulib-tool (func_usage): Document that --with-*-tests options apply
47158         also to --create-testdir.
47159         (func_acceptable): Don't consider the status of *-tests modules here.
47160         (func_modules_transitive_closure): Consider it here, before including a
47161         test module.
47162         (func_import, func_create_testdir): Set inc_all_direct_tests,
47163         inc_all_indirect_tests.
47164         * doc/gnulib.texi (Extra tests modules): Document new behaviour of
47165         --create-testdir and --create-megatestdir.
47167 2010-04-25  Bruno Haible  <bruno@clisp.org>
47169         gnulib-tool: Add --without-*-tests options.
47170         * gnulib-tool (func_usage): Document the --without-*-tests options.
47171         (excl_cxx_tests, excl_longrunning_tests, excl_privileged_tests,
47172         excl_unportable_tests): New variables.
47173         Fail if they are specified with --import or --update.
47174         (func_acceptable): Respect the excl_*_tests variables.
47175         (func_import): Set the excl_*_tests variables to empty.
47177 2010-04-25  Simon Josefsson  <simon@josefsson.org>
47178             Bruno Haible  <bruno@clisp.org>
47180         Work around a MacOS X 10.4 bug with openpty.
47181         * doc/glibc-functions/openpty.texi: Mention the MacOS X 10.4 bug.
47182         * tests/test-openpty.c (main): Close the master side explicitly.
47184 2010-04-25  Bruno Haible  <bruno@clisp.org>
47186         strnlen: Fix a C++ test error on MacOS X and Solaris.
47187         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Don't set REPLACE_STRNLEN to 1 if
47188         the function is not declared.
47189         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com> and
47190         Simon Josefsson.
47192 2010-04-24  Bruno Haible  <bruno@clisp.org>
47194         Avoid a gcc warning.
47195         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Pass argument
47196         of correct type for %08lx directive.
47197         Reported by Eric Blake.
47199 2010-04-24  Bruno Haible  <bruno@clisp.org>
47201         vasnprintf: Correct errno value in case of out-of-memory.
47202         * lib/vasnprintf.c (VASNPRINTF): Set errno to 0 before calling SNPRINTF
47203         or sprintf. Use the errno value from SNPRINTF or sprintf.
47204         Reported by Ian Beckwith <ianb@erislabs.net>.
47206 2010-04-24  Bruno Haible  <bruno@clisp.org>
47208         ansi-c++-opt: Find correct compiler when cross-compiling.
47209         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Use AC_CHECK_TOOLS instead of
47210         AC_CHECK_PROGS.
47211         Reported by Simon Josefsson.
47213 2010-04-24  Giuseppe Scrivano  <gscrivano@gnu.org>
47215         vc-list-files: Add support for subversion
47216         * build-aux/vc-list-files: Use "svn list" to generate the list of
47217         files controlled by subversion.
47219 2010-04-23  Jim Meyering  <meyering@redhat.com>
47221         vc-list-files tests: convert to use init.sh
47222         * tests/test-vc-list-files-cvs.sh: Invoke "$srcdir/init.sh" and
47223         path_prepend_.
47224         Use Exit, not exit.
47225         Use skip_ rather than open coding it.
47226         Remove trap set-up and compare definitions.
47227         * tests/test-vc-list-files-git.sh: Likewise.
47228         * modules/vc-list-files-tests (Files): Add tests/init.sh.
47230 2010-04-22  Simon Josefsson  <simon@josefsson.org>
47232         * top/maint.mk (sc_prohibit_backup_files): Prohibit checked in
47233         backup files.
47235 2010-04-21  Simon Josefsson  <simon@josefsson.org>
47237         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Test %08lx.
47239 2010-04-20  Eric Blake  <eblake@redhat.com>
47241         tests: be robust to ignored SIGPIPE
47242         * tests/test-select-in.sh: Consume all output.
47243         * tests/test-lseek.sh: Check correct exit status, while avoiding
47244         EPIPE.
47246 2010-04-20  Simon Josefsson  <simon@josefsson.org>
47247             Bruno Haible  <bruno@clisp.org>
47249         visibility: Don't use -fvisibility if it leads to a warning.
47250         * m4/visibility.m4 (gl_VISIBILITY): Check whether -Werror is usable. If
47251         yes, don't pretend that visibility works if it leads to a warning.
47252         Reported by Mike Gran <spk121@yahoo.com>.
47254 2010-04-20  Andreas Gruenbacher  <agruen@suse.de>
47256         * build-aux/bootstrap: Use "git -h" for testing for supported options
47257         instead of "git --help".  The short-form option only shows a summary,
47258         and doesn't layout the full man page.  Grep for the full option name
47259         in the summary, too.
47261 2010-04-19  Bruno Haible  <bruno@clisp.org>
47263         relocatable: Drop the need to define RELOCATABLE_STRIP in Makefile.am.
47264         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Set RELOCATABLE_STRIP.
47265         * doc/relocatable-maint.texi (Supporting Relocation): Remove the
47266         mention of RELOCATABLE_STRIP.
47267         Reported by Sylvain Beucler <beuc@beuc.net>.
47269 2010-04-19  Bruno Haible  <bruno@clisp.org>
47271         * lib/diffseq.h: Fix typo in comment.
47272         Reported by Eric Blake.
47274 2010-04-19  Bruno Haible  <bruno@clisp.org>
47276         ioctl: Move autoconf macro to a .m4 file.
47277         * m4/ioctl.m4: New file, extracted from modules/ioctl.
47278         * modules/ioctl (Files): Add it.
47279         (configure.ac): Simply invoke gl_FUNC_IOCTL.
47280         Reported by Ian Beckwith <ianb@erislabs.net>.
47282 2010-04-18  Andreas Gruenbacher  <agruen@suse.de>
47283             Bruno Haible  <bruno@clisp.org>
47285         diffseq: Accommodate use-case with abstract arrays.
47286         * lib/diffseq.h (struct context): Remove xvec, yvec fields if ELEMENT
47287         is not defined.
47288         (diag, compareseq): Remove local variables xv, yv if ELEMENT is not
47289         defined. Use local macro XREF_YREF_EQUAL instead of EQUAL.
47291 2010-04-18  Bruno Haible  <bruno@clisp.org>
47293         * doc/posix-headers/stdbool.texi: More precise wording.
47295 2010-04-17  Jim Meyering  <meyering@redhat.com>
47297         maint.mk: use gnu-style indentation in an embedded perl script
47298         * top/maint.mk (detect_empty_lines_at_EOF_): Clean up formatting.
47299         Rename variable: s/two/last_two_bytes/
47301 2010-04-16  Eric Blake  <eblake@redhat.com>
47303         test-stdbool: skip test that fails with Solaris CC
47304         * tests/test-stdbool.c (f): Skip test that causes compilation
47305         error under buggy C++ compiler.
47306         * lib/stdbool.in.h: Document the limitation.
47307         * doc/posix-headers/stdbool.texi (stdbool.h): Likewise.
47309         setenv: allow compilation with C++
47310         * lib/setenv.c (__add_to_environ): Add a cast.  Also, drop use of
47311         register keyword.
47313         stdint: allow test to pass with C++
47314         * tests/test-stdint.c: Define __STDC_CONSTANT_MACROS, for glibc.
47316         getopt: allow compilation with C++
47317         * lib/getopt_int.h (__ordering): Hoist enum declaration outside
47318         struct.
47319         * lib/getopt.c (_getopt_internal_r): Use correct type.
47320         Reported by Dagobert Michelson, via Joel E. Denny.
47322 2010-04-16  Bruno Haible  <bruno@clisp.org>
47324         Override netdb.h always.
47325         * modules/netdb (Makefile.am): Augment BUILT_SOURCES always.
47326         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't set NETDB_H.
47327         Reported by Ludovic Courtès <ludo@gnu.org>.
47329 2010-04-15  Bruno Haible  <bruno@clisp.org>
47331         openpty: Fix mistake from 2010-03-21.
47332         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when openpty exists.
47333         Reported by Simon Josefsson.
47335 2010-04-15  Eric Blake  <eblake@redhat.com>
47337         test-forkpty: fix expected signature
47338         * tests/test-forkpty.c (SIGNATURE_CHECK): Add appropriate const.
47339         Reported by Simon Josefsson.
47341 2010-04-15  Jim Meyering  <meyering@redhat.com>
47343         maint.mk: texinfo_suffix_re_: correct the default regexp
47344         * top/maint.mk (texinfo_suffix_re_): Fix default regexp.
47346         * top/maint.mk (sc_texinfo_acronym): Improve filename regexp, and
47347         make it configurable via texinfo_suffix_re_.
47349 2010-04-14  Eric Blake  <eblake@redhat.com>
47351         strtok_r: relax license to LGPLv2+
47352         * modules/strtok_r (License): Relax license.
47353         Reported by Matthias Bolte.
47355 2010-04-14  Simon Josefsson  <simon@josefsson.org>
47357         * lib/gc-libgcrypt.c (gc_init): Use MIN_GCRYPT_VERSION set to
47358         version 1.4.4 by default instead of requiring the libgcrypt
47359         version used during build.  This makes it possible to use the
47360         application with older but still binary compatible libgcrypt
47361         versions.
47363 2010-04-13  Eric Blake  <eblake@redhat.com>
47365         getopt-gnu: match recent glibc fixes and posix ruling
47366         * tests/test-getopt.h (test_getopt): Strengthen tests of leading
47367         '+' handling, when requesting extensions.
47368         * tests/test-getopt_long.h (test_getopt_long): Strengthen test of
47369         'W;' handling.
47370         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Detect glibc 2.11 bug.
47371         * doc/posix-functions/getopt.texi (getopt): Document this.
47372         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
47373         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
47374         Likewise.
47376         getopt: merge bug fixes from glibc
47377         * lib/getopt.c (_getopt_internal_r): Use correct message for 'W;'
47378         diagnostics.  Honor '+:' correctly.  Reject ';'.
47380         getopt-posix: detect MacOS bug
47381         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Reject MacOS botch of
47382         optind when missing a required argument.
47383         * doc/posix-functions/getopt.texi (getopt): Document the bug.
47384         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
47385         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
47386         Likewise.
47388         getopt-posix: avoid spurious failure on Solaris
47389         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for getopt_clip as
47390         an indicator that setting optind=1 is sufficient for reset.
47392         getopt-posix: avoid spurious failure on FreeBSD
47393         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for optreset even
47394         in POSIX mode, since the m4 test uses it.
47396         gnulib-tool: silence warning on BSD sh
47397         * gnulib-tool: Avoid leaking warning about unknown 'declare'.
47399 2010-04-13  Jim Meyering  <meyering@redhat.com>
47401         doc: users.txt: GNU patch now uses gnulib
47402         * users.txt: Add patch.
47404 2010-04-12  Jim Meyering  <meyering@redhat.com>
47406         maint.mk: generate more concise timing data for syntax-check rules
47407         * top/maint.mk ($(sc_z_rules_)): Remove the ":", "sc_" prefix and
47408         " done" from each line that reports a syntax-check test duration.
47410 2010-04-12  Andreas Gruenbacher  <agruen@suse.de>
47412         git-version-gen: use "git update-index..." rather than "git status"
47413         * build-aux/git-version-gen: Use git update-index --refresh, not
47414         "git status".  With some versions of git, "git status" would fail
47415         to update the index and result in an unwarranted "-dirty" suffix.
47417 2010-04-11  Jim Meyering  <meyering@redhat.com>
47419         openat: correct formatting (no semantic change)
47420         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Correct formatting in AC_DEFINE.
47421         Suggested by Bruno Haible.
47423 2010-04-11  Bruno Haible  <bruno@clisp.org>
47425         Stricter declaration checking in testdirs.
47426         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
47427         If for_tests is true, augment AM_CPPFLAGS to define
47428         GNULIB_STRICT_CHECKING.
47429         * build-aux/warn-on-use.h (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): When
47430         GNULIB_STRICT_CHECKING is defined, verify that the function is
47431         declared.
47433 2010-04-11  Paolo Bonzini  <bonzini@gnu.org>
47434             Bruno Haible  <bruno@clisp.org>
47436         libunistring: Improve configure output.
47437         * m4/libunistring.m4 (gl_LIBUNISTRING): Check for libiconv first.
47438         Don't say "consider installing GNU libunistring" when checking again
47439         with libiconv.
47441 2010-04-11  Bruno Haible  <bruno@clisp.org>
47443         libunistring: Correct value of $LTLIBUNISTRING.
47444         * m4/libunistring.m4 (gl_LIBUNISTRING): When it depends on libiconv,
47445         correct the value of $LTLIBUNISTRING.
47447 2010-04-11  Bruno Haible  <bruno@clisp.org>
47449         havelib: Add static libraries to LIBS in the right order.
47450         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): When $LIB[]NAME contains no
47451         -l options, prepend it to $LIBS, instead of appending it to $LIBS.
47453 2010-04-11  Bruno Haible  <bruno@clisp.org>
47455         libunistring: Detect libunistring also when it depends on libiconv.
47456         * m4/libunistring.m4 (gl_LIBUNISTRING): Unset the cached result before
47457         the second AC_LIB_HAVE_LINKFLAGS invocation.
47459 2010-04-11  James Youngman  <jay@gnu.org>
47461         close-stream: declare local scalars to be "const"
47462         * lib/close-stream.c (close_stream): Make boolean variables const
47463         to document the fact that we set but do not change them.
47465 2010-04-11  Bruno Haible  <bruno@clisp.org>
47467         * m4/libunistring.m4 (gl_LIBUNISTRING): Fix typo in comment.
47469 2010-04-11  Jim Meyering  <meyering@redhat.com>
47471         maint.mk: don't include dist-check.mk
47472         * top/maint.mk: Remove bogus include directive.
47474         maint.mk: improve empty-line-at-EOF check
47475         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Use Perl-based
47476         solution, rather than tail+Perl-based one.  The latter would read
47477         a few kilobytes from the end of each file, and did not handle empty
47478         files properly.
47480         maint.mk: print the elapsed time for each syntax-check rule
47481         * top/maint.mk (sc_m_rules_): Save start time in a file.
47482         (sc_z_rules_): New rules: remove temp file and print elapsed time.
47483         (local-check): Interpose the .z rules
47485 2010-04-11  Jim Meyering  <meyering@redhat.com>
47487         maint.mk: detect_empty_lines_at_EOF_: avoid FP for an empty file
47488         * top/maint.mk (detect_empty_lines_at_EOF_): Don't confuse an
47489         empty file with one that ends in an empty line.
47491 2010-04-10  Bruno Haible  <bruno@clisp.org>
47493         mkdir: Make it work on mingw64.
47494         * lib/sys_stat.in.h: Include <direct.h> together with <io.h>.
47495         * lib/mkdir.c: Update comment.
47496         Reported by Roman Donchenko (Роман Донченко) <dxdragon@yandex.ru>.
47498 2010-04-10  Bruno Haible  <bruno@clisp.org>
47500         Don't override improved macro from newer autoconf.
47501         * m4/gnulib-common.m4 (AC_C_RESTRICT): Don't define for
47502         autoconf >= 2.62.
47503         Reported by Joel E. Denny <jdenny@clemson.edu>.
47505 2010-04-10  Jim Meyering  <meyering@redhat.com>
47507         maint.mk: new syntax-check rule: prohibit empty lines at end of file
47508         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): New rule.
47510         maint.mk: correct a diagnostic
47511         * top/maint.mk (sc_prohibit_HAVE_MBRTOWC): Fix obsolete use of $re
47512         in diagnostic; now use $prohibit.
47514 2010-04-10  Bruno Haible  <address@hidden>
47516         fchownat: Fix a C++ test error on Solaris 8.
47517         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Don't set REPLACE_FCHOWNAT to 1 if
47518         the function does not exist.
47520 2010-04-10  Bruno Haible  <bruno@clisp.org>
47522         vasnprintf: Add more tests.
47523         * tests/test-vasnprintf-posix.c: Include <errno.h>.
47524         (test_function): Test converting an invalid wide string.
47526         vasnprintf: Correct handling of unconvertible wide string arguments.
47527         * lib/vasnprintf.c (MAX_ROOM_NEEDED): New function, extracted from
47528         VASNPRINTF.
47529         (VASNPRINTF): Use it. After snprintf failed, allocate more memory only
47530         if HAVE_SNPRINTF_RETVAL_C99 is false and the allocated memory is
47531         smaller than the expected maximum need for the directive. Set errno to
47532         EILSEQ, not EINVAL, when the directive is 'c' or 's'.
47533         (local_strnlen, local_wcslen, local_wcsnlen): Update conditions.
47534         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require AC_C_INLINE and
47535         gl_SNPRINTF_RETVAL_C99. Define HAVE_SNPRINTF_RETVAL_C99.
47536         * modules/vasnprintf (Files): Add m4/printf.m4.
47537         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
47539 2010-04-10  Bruno Haible  <bruno@clisp.org>
47541         vasnprintf: Fix crash in %ls directive.
47542         * lib/vasnprintf.c (VASNPRINTF): Don't abort when a unconvertible wide
47543         string is passed as argument to %ls, with no precision and no width.
47544         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
47546 2010-04-10  Bruno Haible  <bruno@clisp.org>
47548         vasnprintf: Fix multiple test failures on mingw.
47549         * lib/vasnprintf.c (SNPRINTF) [mingw]: Define to snprintf, not
47550         _snprintf, or snwprintf, not _snwprintf.
47552 2010-04-10  Bruno Haible  <bruno@clisp.org>
47554         write: Fix a C++ test error on mingw.
47555         * lib/unistd.in.h (write): Use _GL_CXXALIAS_SYS_CAST.
47557 2010-04-10  Bruno Haible  <bruno@clisp.org>
47559         vasnprintf test: Reduce code duplication.
47560         * tests/test-vasnprintf.c (test_function): New function, extracted from
47561         test_vasnprintf.
47562         (test_vasnprintf, test_asnprintf): Invoke it.
47564 2010-04-10  Bruno Haible  <bruno@clisp.org>
47566         strnlen: Fix warning in C++ mode on MacOS X.
47567         * lib/string.in.h (strnlen): Use the modern idiom.
47568         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set REPLACE_STRNLEN to 1, instead of
47569         defining strnlen as a macro already in <config.h>.
47570         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
47571         REPLACE_STRNLEN.
47572         * modules/string (Makefile.am): Substitute REPLACE_STRNLEN.
47573         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
47575 2010-04-08  James Youngman  <jay@gnu.org>
47577         * doc/manywarnings.texi (manywarnings): Add missing parenthesis in
47578         the example.
47580 2010-04-09  Jim Meyering  <meyering@redhat.com>
47582         maint.mk: print better diagnostic when there is no $(_hv_file)
47583         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): Skip test and
47584         announce that when $(_hv_file) (aka help-version) does not exist.
47586         init.sh: run tr in the "C" locale to avoid multibyte interpretation
47587         * tests/init.sh (rand_bytes_): Run tr in the "C" locale so it does
47588         not try to interpret its random input bytes.  Jarno Rajahalme reported
47589         that ./test-xalloc-die.sh would fail with "tr: Illegal byte sequence".
47590         on Darwin 10.3.0 with LC_CTYPE=UTF-8.
47591         (mktempd_): Likewise, just in case.
47593         ftruncate: add two years to projected module removal date: 2012
47594         * m4/ftruncate.m4: Adjust comments.
47596         ftruncate: mark module as obsolete; even MinGW provides it, now
47597         * modules/ftruncate (Status): Obsolete.
47598         (Notice): Say that.
47599         * doc/posix-functions/ftruncate.texi: Don't say MinGW lacks it.
47600         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/9203
47602 2010-04-08  Bruno Haible  <bruno@clisp.org>
47604         Fix side effects from tests-related modules.
47605         * modules/dprintf-posix (Comment): New section.
47606         * modules/fprintf-posix (Comment): Likewise.
47607         * modules/obstack-printf-posix (Comment): Likewise.
47608         * modules/printf-posix (Comment): Likewise.
47609         * modules/snprintf-posix (Comment): Likewise.
47610         * modules/sprintf-posix (Comment): Likewise.
47611         * modules/vasnprintf-posix (Comment): Likewise.
47612         * modules/vasprintf-posix (Comment): Likewise.
47613         * modules/vdprintf-posix (Comment): Likewise.
47614         * modules/vfprintf-posix (Comment): Likewise.
47615         * modules/vprintf-posix (Comment): Likewise.
47616         * modules/vsnprintf-posix (Comment): Likewise.
47617         * modules/vsprintf-posix (Comment): Likewise.
47618         * modules/xprintf-posix (Comment): Likewise.
47619         * modules/xvasprintf-posix (Comment): Likewise.
47620         * modules/ceilf-tests (Depends-on): Remove fprintf-posix.
47621         * modules/floorf-tests (Depends-on): Likewise.
47622         * modules/round-tests (Depends-on): Likewise.
47623         * modules/roundf-tests (Depends-on): Likewise.
47624         * modules/trunc-tests (Depends-on): Likewise.
47625         * modules/truncf-tests (Depends-on): Likewise.
47626         * tests/test-ceilf2.c (check): Don't invoke fprintf if the
47627         'fprintf-posix' module is not present.
47628         * tests/test-floorf2.c (check): Likewise.
47629         * tests/test-trunc2.c (check): Likewise.
47630         * tests/test-truncf2.c (check): Likewise.
47631         * tests/test-round2.c (equal): Likewise.
47632         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
47634 2010-04-07  Karl Berry  <karl@gnu.org>
47636         * config/srclist.txt,
47637         * config/srclistvars.sh,
47638         * config/srclist-update: doc fixes.
47640 2010-04-07  Jim Meyering  <meyering@redhat.com>
47642         maint.mk: add a PATH crosschecking syntax-check rule
47643         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): New rule.
47644         Useful if you use a test like the one in help-version (coreutils,
47645         diffutils, grep, gzip) that ensures $(VERSION) matches what is
47646         printed by prog --version.
47648 2010-04-06  Bruno Haible  <bruno@clisp.org>
47650         Fix link error on mingw.
47651         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add LIBSOCKET.
47652         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Likewise.
47654 2010-04-06  Bruno Haible  <bruno@clisp.org>
47656         Assume rmdir exists.
47657         * lib/rmdir.c (rpl_rmdir): Remove code that invokes the rmdir program.
47659 2010-04-06  Giuseppe Scrivano  <gscrivano@gnu.org>
47661         doc: update users.txt
47662         * users.txt: Add gcal.
47664 2010-04-06  Jim Meyering  <meyering@redhat.com>
47666         init.sh: simply unset TMPDIR rather than risking env -i
47667         * tests/init.sh (mktempd_): Using env -i is rather harsh, and
47668         although it probably works fine on all Unix-based systems, some
47669         systems (Cygwin?) cannot tolerate a totally cleared environment.
47670         Suggestion from Eric Blake.
47672 2010-04-06  Jim Meyering  <meyering@redhat.com>
47674         init.sh: portability fix: use env's POSIX-specified -i option not -u
47675         * tests/init.sh (mktempd_): Use env -i and set PATH explicitly rather
47676         than unportable env -u.  Solaris 5.11's env lacks support for -u.
47678 2010-04-05  Bruno Haible  <bruno@clisp.org>
47680         btowc: Work around Cygwin 1.7.2 bug.
47681         * m4/btowc.m4 (gl_FUNC_BTOWC): Set REPLACE_BTOWC to 1 if the function
47682         does not map NUL to 0.
47683         * doc/posix-functions/btowc.texi: Mention the Cygwin bug.
47685 2010-04-05  Bruno Haible  <bruno@clisp.org>
47687         Make the multithread modules work on Cygwin 1.7.2.
47688         * m4/threadlib.m4 (gl_THREADLIB_BODY): Improve the test whether
47689         imported symbols can be declared weak, so that it returns "no" on
47690         Cygwin 1.7.2.
47692 2010-04-05  Bruno Haible  <bruno@clisp.org>
47694         Use the module 'strncat'.
47695         * modules/unistr/u8-strncat (Depends-on): Add strncat.
47697         Tests for module 'strncat'.
47698         * modules/strncat-tests: New file.
47699         * tests/test-strncat.c: New file.
47701         New module 'strncat'.
47702         * lib/string.in.h (strncat): New declaration.
47703         * lib/strncat.c: New file, based on lib/unistr/u-strncat.h.
47704         * m4/strncat.m4: New file, based on m4/memchr.m4.
47705         * modules/strncat: New file.
47706         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Also check whether strncat
47707         is declared.
47708         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRNCAT,
47709         REPLACE_STRNCAT.
47710         * modules/string (Makefile.am): Substitute GNULIB_STRNCAT,
47711         REPLACE_STRNCAT.
47712         * doc/posix-functions/strncat.texi: Mention the Solaris bug and the new
47713         module.
47714         * tests/test-string-c++.cc: Check signature of strncat.
47716 2010-04-05  Jim Meyering  <meyering@redhat.com>
47718         xstrtoumax-tests: convert to use init.sh
47719         * modules/xstrtoumax-tests (Files): Add tests/init.sh.
47720         * tests/test-xstrtoumax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
47721         Use Exit, not exit.
47722         Remove uses of $EXEEXT and "./" to run a program in the current dir.
47724         xstrtoimax-tests: convert to use init.sh
47725         * modules/xstrtoimax-tests (Files): Add tests/init.sh.
47726         * tests/test-xstrtoimax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
47727         Use Exit, not exit.
47728         Remove uses of $EXEEXT and "./" to run a program in the current dir.
47730 2010-04-05  Bruno Haible  <bruno@clisp.org>
47732         sys_socket: Avoid #define replacements in C++ mode.
47733         * lib/sys_socket.in.h (close, gethostname, select): In C++, attach a
47734         warning to the function if possible, rather than #defining the symbol
47735         to a dysfunctional alias.
47737 2010-04-05  Bruno Haible  <bruno@clisp.org>
47739         fseeko: Fix C++ test error on mingw.
47740         * m4/fseeko.m4 (gl_HAVE_FSEEKO): New macro, extracted from
47741         gl_FUNC_FSEEKO.
47742         (gl_REPLACE_FSEEKO): Also set REPLACE_FSEEKO if appropriate.
47743         (gl_FUNC_FSEEKO): Require gl_HAVE_FSEEKO. Update.
47744         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't fiddle with internals of the
47745         fseeko module. Instead, invoke gl_REPLACE_FSEEKO.
47747 2010-04-05  Bruno Haible  <bruno@clisp.org>
47749         duplocale: Improve test output.
47750         * tests/test-duplocale.c (main): Print reason for skipped test.
47752 2010-04-05  Bruno Haible  <bruno@clisp.org>
47754         Assume rmdir exists.
47755         * m4/rmdir.m4 (gl_FUNC_RMDIR): Remove test whether rmdir exists.
47756         * doc/posix-functions/rmdir.texi: Remove mention of "old platforms".
47758 2010-04-05  Bruno Haible  <bruno@clisp.org>
47760         Fix link error on Solaris 8 with cc.
47761         * modules/pty-c++-tests (test_pty_c___LDADD): Add LIBINTL.
47763 2010-04-05  Bruno Haible  <bruno@clisp.org>
47765         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
47766         * lib/math.in.h (frexpl): Fix condition on _GL_CXXALIASWARN invocation.
47768 2010-04-05  Bruno Haible  <bruno@clisp.org>
47770         vasprintf: Update documentation.
47771         * doc/glibc-functions/asprintf.texi: Mention the 'vasprintf' module.
47773 2010-04-05  Bruno Haible  <bruno@clisp.org>
47775         ptsname: Improve test.
47776         * tests/test-ptsname.c (main): Also try the various master names of BSD
47777         systems.
47779 2010-04-05  Bruno Haible  <bruno@clisp.org>
47781         memchr: Avoid a possible C++ test error.
47782         * lib/string.in.h (memchr): Provide declaration if function is missing.
47783         * m4/memchr.m4 (gl_FUNC_MEMCHR): If the function is missing, set
47784         HAVE_MEMCHR to 0, not REPLACE_MEMCHR to 1.
47785         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MEMCHR.
47786         * modules/string (Makefile.am): Substitute HAVE_MEMCHR.
47788 2010-04-05  Bruno Haible  <bruno@clisp.org>
47790         strtok_r: Improve idiom.
47791         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Invoke gl_PREREQ_STRDUP only when
47792         AC_LIBOBJ is used.
47794 2010-04-05  Bruno Haible  <bruno@clisp.org>
47796         strdup: Improve idiom.
47797         * m4/strdup.m4 (gl_FUNC_STRDUP): Invoke gl_PREREQ_STRDUP only when
47798         AC_LIBOBJ is used.
47799         (gl_FUNC_STRDUP_POSIX): When strdup is missing and malloc is not POSIX
47800         compliant, don't set REPLACE_STRDUP to 1. Invoke gl_PREREQ_STRDUP only
47801         when AC_LIBOBJ is used.
47803 2010-04-05  Bruno Haible  <bruno@clisp.org>
47805         mbsinit, mbrtowc, wcrtomb: Improve idioms.
47806         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): When the function does not exist,
47807         don't set REPLACE_MBSINIT to 1.
47808         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): When the function does not exist,
47809         don't set REPLACE_MBRTOWC to 1.
47810         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): When the function does not
47811         exist, don't set REPLACE_MBSRTOWCS to 1.
47812         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): When the function does not
47813         exist, don't set REPLACE_MBSNRTOWCS to 1.
47814         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): When the function does not exist,
47815         don't set REPLACE_WCRTOMB to 1.
47816         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): When the function does not
47817         exist, don't set REPLACE_WCSRTOMBS to 1.
47818         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): When the function does not
47819         exist, don't set REPLACE_WCSNRTOMBS to 1.
47821 2010-04-05  Bruno Haible  <bruno@clisp.org>
47823         ldexpl: Improve idiom.
47824         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When the function is not declared,
47825         make sure to set HAVE_DECL_LDEXPL to 0.
47827 2010-04-05  Jim Meyering  <meyering@redhat.com>
47829         xstrtol-tests: convert to use init.sh
47830         * modules/xstrtol-tests (Files): Add tests/init.sh.
47831         * tests/test-xstrtol.sh: Invoke "$srcdir/init.sh" and path_prepend_.
47832         Use Exit, not exit.
47833         Remove uses of $EXEEXT and "./" to run a program in the current dir.
47835         atexit-tests: convert to use init.sh
47836         * modules/atexit-tests (Files): Add tests/init.sh.
47837         * tests/test-atexit.sh: Invoke "$srcdir/init.sh" and path_prepend_.
47838         Use Exit, not exit.
47839         Remove uses of $EXEEXT and "./" to run a program in the current dir.
47841         init.sh: fix typo
47842         * tests/init.sh: Restore omitted ":" before stderr_fileno_ initialization.
47844         init.sh: make it easier for a test script to write to the tty, ...
47845         when using automake's parallel-tests mode.
47846         * tests/init.sh (stderr_fileno_): Define overridable variable.
47847         (warn_): New function, to use it.
47848         (fail_, skip_, framework_failure_): Use warn_.
47850 2010-04-04  Bruno Haible  <bruno@clisp.org>
47852         btowc: Avoid warning.
47853         * lib/btowc.c: Include <stdlib.h>.
47854         Reported by Hauke Fath <hauke@espresso.rhein-neckar.de>.
47856 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
47857             Bruno Haible  <bruno@clisp.org>
47859         wchar: Port to NetBSD 1.5.
47860         * lib/wchar.in.h (WEOF): Provide fallback also when wint_t exists.
47861         * lib/wctype.in.h (WEOF): Likewise.
47863 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
47864             Bruno Haible  <bruno@clisp.org>
47866         Port extended stdio to NetBSD 1.5.
47867         * lib/stdio-impl.h [NetBSD]: Include <sys/param.h>.
47868         (struct __sfileext, fp_ub): Define the "old way" for NetBSD 1.5Z and
47869         older.
47871 2010-04-04  Bruno Haible  <bruno@clisp.org>
47873         string: Remove unused substitution.
47874         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
47875         HAVE_DECL_STRERROR.
47876         * modules/string (Makefile.am): Don't substitute HAVE_DECL_STRERROR.
47878 2010-04-04  Bruno Haible  <bruno@clisp.org>
47880         strtod: Avoid a possible C++ test error.
47881         * m4/strtod.m4 (gl_FUNC_STRTOD): When setting HAVE_STRTOD to 0, don't
47882         set REPLACE_STRTOD.
47884 2010-04-04  Bruno Haible  <bruno@clisp.org>
47886         strerror: Update documentation.
47887         * doc/posix-functions/strerror.texi: Remove mention of old platforms.
47889 2010-04-04  Bruno Haible  <bruno@clisp.org>
47891         stdio: Fix some C++ test errors on Solaris 8 with GCC.
47892         * lib/stdio.in.h (vdprintf, vfprintf, vprintf, vsprintf): Use
47893         _GL_CXXALIAS_SYS_CAST.
47895 2010-04-04  Bruno Haible  <bruno@clisp.org>
47897         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
47898         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): When the
47899         function is not declared, set HAVE_DECL_FREXPL to 0, instead of setting
47900         REPLACE_FREXPL to 1.
47901         * doc/posix-functions/frexpl.texi: Update documentation.
47903 2010-04-04  Bruno Haible  <bruno@clisp.org>
47905         math: Fix some C++ test errors on Solaris 8 and Cygwin.
47906         * lib/math.in.h (cosl, logl, sinl): Use simpler idiom.
47908 2010-04-04  Bruno Haible  <bruno@clisp.org>
47910         Implement nanosleep for native Windows.
47911         * lib/nanosleep.c (nanosleep): New implementation for native Windows.
47913 2010-04-04  Bruno Haible  <bruno@clisp.org>
47915         math: Fix some C++ test errors on Solaris 8.
47916         * lib/math.in.h (truncf, trunc): Use simpler idiom.
47918 2010-04-04  Bruno Haible  <bruno@clisp.org>
47920         math: Fix some C++ test errors on Cygwin.
47921         * lib/math.in.h (ceilf, ceill, floorf, floorl, roundf, round, roundl,
47922         truncl): Provide declaration if the system does not have it.
47923         * m4/ceilf.m4 (gl_FUNC_CEILF): If the function is not declared, set
47924         HAVE_DECL_CEILF to 0, not REPLACE_CEILF to 1.
47925         * m4/ceill.m4 (gl_FUNC_CEILL): If the function is not declared, set
47926         HAVE_DECL_CEILL to 0, not REPLACE_CEILL to 1.
47927         * m4/floorf.m4 (gl_FUNC_FLOORF): If the function is not declared, set
47928         HAVE_DECL_FLOORF to 0, not REPLACE_FLOORF to 1.
47929         * m4/floorl.m4 (gl_FUNC_FLOORL): If the function is not declared, set
47930         HAVE_DECL_FLOORL to 0, not REPLACE_FLOORL to 1.
47931         * m4/round.m4 (gl_FUNC_ROUND): If the function is not declared, set
47932         HAVE_DECL_ROUND to 0, not REPLACE_ROUND to 1.
47933         * m4/roundf.m4 (gl_FUNC_ROUNDF): If the function is not declared, set
47934         HAVE_DECL_ROUNDF to 0, not REPLACE_ROUNDF to 1.
47935         * m4/roundl.m4 (gl_FUNC_ROUNDL): If the function is not declared, set
47936         HAVE_DECL_ROUNDL to 0, not REPLACE_ROUNDL to 1.
47937         * m4/truncl.m4 (gl_FUNC_TRUNCL): If the function is not declared, set
47938         HAVE_DECL_TRUNCL to 0, not REPLACE_TRUNCL to 1.
47939         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_CEILF,
47940         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
47941         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
47942         * modules/math (Makefile.am): Substitute HAVE_DECL_CEILF,
47943         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
47944         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
47946 2010-04-04  Bruno Haible  <bruno@clisp.org>
47948         * m4/ceilf.m4 (gl_FUNC_CEILF): Remove redundant AC_SUBST invocation.
47949         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
47950         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
47951         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
47952         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
47953         * m4/isinf.m4 (gl_ISINF): Likewise.
47954         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
47956 2010-04-04  Bruno Haible  <bruno@clisp.org>
47958         * m4/trunc.m4 (gl_FUNC_TRUNC): Remove redundant AC_SUBST invocation.
47959         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
47961 2010-04-04  Bruno Haible  <bruno@clisp.org>
47963         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Renamed from gl_TMPFILE.
47964         * modules/tmpfile (configure.ac): Update.
47966         tmpfile: Fix C++ test error on mingw.
47967         * lib/stdio.in.h (tmpfile): New declaration.
47968         * m4/tmpfile.m4 (gl_TMPFILE): Require gl_STDIO_H_DEFAULTS. Set
47969         REPLACE_TMPFILE instead of defining tmpfile as a macro in config.h.
47970         * modules/tmpfile (Depends-on): Add stdio.
47971         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
47972         * m4/stdio_h.m4 (gl_STDIO_H): Also check whether tmpfile is declared.
47973         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_TMPFILE and REPLACE_TMPFILE.
47974         * modules/stdio (Makefile.am): Substitute GNULIB_TMPFILE and
47975         REPLACE_TMPFILE.
47976         * tests/test-stdio-c++.cc (tmpfile): Verify signature.
47978 2010-04-04  Bruno Haible  <bruno@clisp.org>
47980         ioctl: Fix C++ test error on mingw.
47981         * lib/ioctl.c (ioctl): Renamed from rpl_ioctl.
47982         * lib/sys_ioctl.in.h (ioctl): When SYS_IOCTL_H_HAVE_WINSOCK2_H is 1,
47983         use _GL_FUNCDECL_SYS, not _GL_FUNCDECL_RPL.
47985 2010-04-03  Bruno Haible  <bruno@clisp.org>
47987         wcwidth: Fix C++ test error on mingw.
47988         * lib/wcwidth.c (wcwidth): Renamed from rpl_wcwidth.
47989         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): If the wcwidth function does not
47990         exist, don't set REPLACE_WCWIDTH. Instead, rely on HAVE_DECL_WCWIDTH.
47992 2010-04-03  Bruno Haible  <bruno@clisp.org>
47994         nanosleep: Fix C++ test error on mingw.
47995         * lib/nanosleep.c (nanosleep): Renamed from rpl_nanosleep.
47996         * lib/time.in.h (nanosleep): Use modern idiom.
47997         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): When the system does not have a
47998         nanosleep function, set HAVE_NANOSLEEP to 0, instead of setting
47999         REPLACE_NANOSLEEP to 1.
48000         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_NANOSLEEP.
48001         * modules/time (Makefile.am): Substitute HAVE_NANOSLEEP.
48003 2010-04-03  Bruno Haible  <bruno@clisp.org>
48005         strptime: Fix C++ test error on mingw.
48006         * lib/time.in.h (strptime): Use HAVE_STRPTIME, not REPLACE_STRPTIME.
48007         * m4/strptime.m4 (gl_FUNC_STRPTIME): Set HAVE_STRPTIME, not
48008         REPLACE_STRPTIME. Invoke gl_PREREQ_STRPTIME.
48009         (gl_PREREQ_STRPTIME): New macro, extracted from gl_FUNC_STRPTIME.
48010         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_STRPTIME,
48011         not REPLACE_STRPTIME.
48012         * modules/time (Makefile.am): Substitute HAVE_STRPTIME, not
48013         REPLACE_STRPTIME.
48015 2010-04-03  Bruno Haible  <bruno@clisp.org>
48017         timegm: Fix C++ test error on mingw.
48018         * lib/time.in.h (timegm): Use modern idiom.
48019         * m4/timegm.m4 (gl_FUNC_TIMEGM): When timegm does not exist, set
48020         HAVE_TIMEGM to 0, not REPLACE_TIMEGM to 1.
48021         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_TIMEGM.
48022         * modules/time (Makefile.am): Substitute HAVE_TIMEGM.
48024 2010-04-03  Bruno Haible  <bruno@clisp.org>
48026         timegm: Assume declaration if function exists.
48027         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume timegm is declared if and only
48028         if it exists. Don't clobber ac_cv_func_timegm.
48030 2010-04-03  Bruno Haible  <bruno@clisp.org>
48032         time_r: Fix C++ test error on mingw.
48033         * lib/time.in.h (localtime_r, gmtime_r): Use modern idiom.
48034         * m4/time_r.m4 (gl_TIME_R): When localtime_r does not exist, set
48035         HAVE_LOCALTIME_R to 0, not REPLACE_LOCALTIME_R to 1.
48036         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_LOCALTIME_R.
48037         * modules/time (Makefile.am): Substitute HAVE_LOCALTIME_R.
48039 2010-04-03  Bruno Haible  <bruno@clisp.org>
48041         time_r: Minor updates.
48042         * modules/time_r (Description): Mention the provided functions.
48043         * lib/time_r.c: Don't include <string.h>.
48044         * doc/posix-functions/gmtime_r.texi: Mention the 'time_r' module.
48045         * doc/posix-functions/localtime_r.texi: Likewise.
48047 2010-04-03  Bruno Haible  <bruno@clisp.org>
48049         time: Fix regression introduced on 2010-03-08.
48050         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Require
48051         gl_HEADER_TIME_H_DEFAULTS, not gl_HEADER_STRING_H_DEFAULTS.
48053 2010-04-03  Jim Meyering  <meyering@redhat.com>
48055         maint.mk: don't silently disable project-specific syntax-check rules
48056         * top/maint.mk (_prohibit_regexp): Define, to help people realize
48057         that they need to convert their project-specific syntax-check rules
48058         to use the new _sc_search_regexp.
48060 2010-04-03  Bruno Haible  <bruno@clisp.org>
48062         fchdir: Fix regression introduced on 2010-03-08.
48063         * lib/unistd.in.h (fchdir): Fix declaration.
48064         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set HAVE_FCHDIR, not REPLACE_FCHDIR.
48065         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_FCHDIR, not
48066         REPLACE_FCHDIR.
48067         * modules/unistd (Makefile.am): Substitute HAVE_FCHDIR, not
48068         REPLACE_FCHDIR.
48070 2010-04-03  Bruno Haible  <bruno@clisp.org>
48072         getpagesize: Fix C++ test error on mingw.
48073         * lib/unistd.in.h (getpagesize): Don't use _GL_CXXALIASWARN if the
48074         system does not declare the function.
48075         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Also check whether it's
48076         declared.
48077         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
48078         HAVE_DECL_GETPAGESIZE.
48079         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETPAGESIZE.
48081 2010-04-03  Bruno Haible  <bruno@clisp.org>
48083         stdio: Make C++ tests work on mingw.
48084         * lib/stdio.in.h (getline): Don't use _GL_CXXALIASWARN if the system
48085         does not declare the function.
48087 2010-04-03  Bruno Haible  <bruno@clisp.org>
48089         ftello: Fix C++ test error on mingw.
48090         * lib/stdio.in.h (ftello): Use modern idiom.
48091         * lib/ftello.c (ftello): Renamed from rpl_ftello.
48092         * m4/ftello.m4 (gl_FUNC_FTELLO): Distinguish the case that the function
48093         is missing and that it needs to be replaced.
48094         (gl_REPLACE_FTELLO): Don't set REPLACE_FTELLO here.
48095         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FTELLO.
48096         * modules/stdio (Makefile.am): Substitute HAVE_FTELLO.
48098 2010-04-03  Bruno Haible  <bruno@clisp.org>
48100         fseeko: Fix C++ test error on mingw.
48101         * lib/stdio.in.h (fseeko): Use modern idiom.
48102         * lib/fseeko.c (fseeko): Renamed from rpl_fseeko.
48103         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Distinguish the case that the function
48104         is missing and that it needs to be replaced.
48105         (gl_REPLACE_FSEEKO): Don't set REPLACE_FSEEKO here.
48106         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FSEEKO.
48107         * modules/stdio (Makefile.am): Substitute HAVE_FSEEKO.
48109 2010-04-03  Bruno Haible  <bruno@clisp.org>
48111         mkstemp: Fix C++ test error on mingw.
48112         * lib/stdlib.in.h (mkstemp): Use modern idiom.
48113         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Distinguish the case that the
48114         function is missing and that it needs to be replaced.
48115         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_MKSTEMP.
48116         * modules/stdlib (Makefile.am): Substitute HAVE_MKSTEMP.
48118 2010-04-03  Bruno Haible  <bruno@clisp.org>
48120         stpncpy: Fix C++ test error on mingw.
48121         * lib/string.in.h (stpncpy): Use modern idiom.
48122         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Distinguish the case that the
48123         function is missing and that it needs to be replaced.
48124         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
48125         REPLACE_STPNCPY.
48126         * modules/string (Makefile.am): Substitute REPLACE_STPNCPY.
48128 2010-04-03  Bruno Haible  <bruno@clisp.org>
48130         sys_stat: Fix C++ test error on mingw.
48131         * build-aux/c++defs.h (_GL_CXXALIAS_RPL_CAST_1): New macro.
48132         * lib/sys_stat.in.h (lchmod): Use it instead of _GL_CXXALIAS_RPL_1.
48134 2010-04-03  Bruno Haible  <bruno@clisp.org>
48136         pty: Update doc.
48137         * doc/glibc-headers/pty.texi: Mention changes done since 2010-03-18.
48139 2010-04-03  Bruno Haible  <bruno@clisp.org>
48141         unistd: Fix C++ test error on mingw.
48142         * lib/unistd.in.h (getcwd): Use _GL_CXXALIAS_SYS_CAST.
48144 2010-04-03  Bruno Haible  <bruno@clisp.org>
48146         Update doc regarding mingw.
48147         * doc/glibc-functions/openpty.texi: Update regarding mingw.
48148         * doc/glibc-functions/login_tty.texi: Likewise.
48149         * doc/glibc-functions/forkpty.texi: Likewise.
48151 2010-04-03  Bruno Haible  <bruno@clisp.org>
48153         stdlib: Avoid compilation failure of c-strtold on mingw.
48154         * lib/stdlib.in.h: Don't include <unistd.h> on native Windows systems.
48156 2010-04-03  Bruno Haible  <bruno@clisp.org>
48158         locale: Make C++ tests work on Cygwin and mingw.
48159         * lib/locale.in.h (duplocale): Don't use _GL_CXXALIASWARN if gnulib
48160         cannot provide the function.
48161         Reported by Simon Josefsson.
48163 2010-04-03  Bruno Haible  <bruno@clisp.org>
48165         localename: Port to MacOS X 10.6.
48166         * lib/localename.c (gl_locale_name_thread_unsafe): On MacOS X, try the
48167         memory layout of the locales in MacOS X 10.6 as well.
48168         Reported by Panu Kekäläinen <panu@kekalainen.eu>.
48170 2010-04-02  Bruno Haible  <bruno@clisp.org>
48172         gnulib-tool: Ensure that long-running tests are executed last.
48173         * gnulib-tool (func_emit_tests_Makefile_am): Emit the code for long-
48174         running tests after the one for the other tests.
48176 2010-04-02  Bruno Haible  <bruno@clisp.org>
48178         gnulib-tool: Ensure the tests in the main directory are executed first.
48179         * gnulib-tool (func_emit_tests_Makefile_am): Initialize SUBDIRS to
48180         start with the current directory.
48182 2010-04-02  Bruno Haible  <bruno@clisp.org>
48184         Tests for module 'havelib', moved here from GNU gettext.
48185         * modules/havelib-tests: New file, from gettext/autoconf-lib-link with
48186         modifications.
48187         * tests/havelib/README: New file, from gettext/autoconf-lib-link.
48188         * tests/havelib/Makefile.am: New file, from gettext/autoconf-lib-link
48189         with modifications.
48190         * tests/havelib/rpath-1: New file, from gettext/autoconf-lib-link with
48191         modifications.
48192         * tests/havelib/rpath-1a: New file, from gettext/autoconf-lib-link.
48193         * tests/havelib/rpath-1b: New file, from gettext/autoconf-lib-link.
48194         * tests/havelib/rpath-2_a: New file, from gettext/autoconf-lib-link
48195         with modifications.
48196         * tests/havelib/rpath-2_b: New file, from gettext/autoconf-lib-link
48197         with modifications.
48198         * tests/havelib/rpath-2aaa: New file, from gettext/autoconf-lib-link.
48199         * tests/havelib/rpath-2aab: New file, from gettext/autoconf-lib-link.
48200         * tests/havelib/rpath-2aac: New file, from gettext/autoconf-lib-link.
48201         * tests/havelib/rpath-2aad: New file, from gettext/autoconf-lib-link.
48202         * tests/havelib/rpath-2aba: New file, from gettext/autoconf-lib-link.
48203         * tests/havelib/rpath-2abb: New file, from gettext/autoconf-lib-link.
48204         * tests/havelib/rpath-2abc: New file, from gettext/autoconf-lib-link.
48205         * tests/havelib/rpath-2abd: New file, from gettext/autoconf-lib-link.
48206         * tests/havelib/rpath-2baa: New file, from gettext/autoconf-lib-link.
48207         * tests/havelib/rpath-2bab: New file, from gettext/autoconf-lib-link.
48208         * tests/havelib/rpath-2bac: New file, from gettext/autoconf-lib-link.
48209         * tests/havelib/rpath-2bad: New file, from gettext/autoconf-lib-link.
48210         * tests/havelib/rpath-2bba: New file, from gettext/autoconf-lib-link.
48211         * tests/havelib/rpath-2bbb: New file, from gettext/autoconf-lib-link.
48212         * tests/havelib/rpath-2bbc: New file, from gettext/autoconf-lib-link.
48213         * tests/havelib/rpath-2bbd: New file, from gettext/autoconf-lib-link.
48214         * tests/havelib/rpath-3_a: New file, from gettext/autoconf-lib-link
48215         with modifications.
48216         * tests/havelib/rpath-3_b: New file, from gettext/autoconf-lib-link
48217         with modifications.
48218         * tests/havelib/rpath-3aaa: New file, from gettext/autoconf-lib-link.
48219         * tests/havelib/rpath-3aab: New file, from gettext/autoconf-lib-link.
48220         * tests/havelib/rpath-3aac: New file, from gettext/autoconf-lib-link.
48221         * tests/havelib/rpath-3aad: New file, from gettext/autoconf-lib-link.
48222         * tests/havelib/rpath-3aae: New file, from gettext/autoconf-lib-link.
48223         * tests/havelib/rpath-3aaf: New file, from gettext/autoconf-lib-link.
48224         * tests/havelib/rpath-3aag: New file, from gettext/autoconf-lib-link.
48225         * tests/havelib/rpath-3aah: New file, from gettext/autoconf-lib-link.
48226         * tests/havelib/rpath-3aba: New file, from gettext/autoconf-lib-link.
48227         * tests/havelib/rpath-3abb: New file, from gettext/autoconf-lib-link.
48228         * tests/havelib/rpath-3abc: New file, from gettext/autoconf-lib-link.
48229         * tests/havelib/rpath-3abd: New file, from gettext/autoconf-lib-link.
48230         * tests/havelib/rpath-3abe: New file, from gettext/autoconf-lib-link.
48231         * tests/havelib/rpath-3abf: New file, from gettext/autoconf-lib-link.
48232         * tests/havelib/rpath-3abg: New file, from gettext/autoconf-lib-link.
48233         * tests/havelib/rpath-3abh: New file, from gettext/autoconf-lib-link.
48234         * tests/havelib/rpath-3baa: New file, from gettext/autoconf-lib-link.
48235         * tests/havelib/rpath-3bab: New file, from gettext/autoconf-lib-link.
48236         * tests/havelib/rpath-3bac: New file, from gettext/autoconf-lib-link.
48237         * tests/havelib/rpath-3bad: New file, from gettext/autoconf-lib-link.
48238         * tests/havelib/rpath-3bae: New file, from gettext/autoconf-lib-link.
48239         * tests/havelib/rpath-3baf: New file, from gettext/autoconf-lib-link.
48240         * tests/havelib/rpath-3bag: New file, from gettext/autoconf-lib-link.
48241         * tests/havelib/rpath-3bah: New file, from gettext/autoconf-lib-link.
48242         * tests/havelib/rpath-3bba: New file, from gettext/autoconf-lib-link.
48243         * tests/havelib/rpath-3bbb: New file, from gettext/autoconf-lib-link.
48244         * tests/havelib/rpath-3bbc: New file, from gettext/autoconf-lib-link.
48245         * tests/havelib/rpath-3bbd: New file, from gettext/autoconf-lib-link.
48246         * tests/havelib/rpath-3bbe: New file, from gettext/autoconf-lib-link.
48247         * tests/havelib/rpath-3bbf: New file, from gettext/autoconf-lib-link.
48248         * tests/havelib/rpath-3bbg: New file, from gettext/autoconf-lib-link.
48249         * tests/havelib/rpath-3bbh: New file, from gettext/autoconf-lib-link.
48250         * tests/havelib/rpathx/rpathx.c: New file, from
48251         gettext/autoconf-lib-link.
48252         * tests/havelib/rpathx/Makefile.am: New file, from
48253         gettext/autoconf-lib-link.
48254         * tests/havelib/rpathx/configure.ac: New file, from
48255         gettext/autoconf-lib-link with modifications.
48256         * tests/havelib/rpathy/rpathy.c: New file, from
48257         gettext/autoconf-lib-link.
48258         * tests/havelib/rpathy/Makefile.am: New file, from
48259         gettext/autoconf-lib-link.
48260         * tests/havelib/rpathy/configure.ac: New file, from
48261         gettext/autoconf-lib-link with modifications.
48262         * tests/havelib/rpathz/rpathz.c: New file, from
48263         gettext/autoconf-lib-link.
48264         * tests/havelib/rpathz/Makefile.am: New file, from
48265         gettext/autoconf-lib-link.
48266         * tests/havelib/rpathz/configure.ac: New file, from
48267         gettext/autoconf-lib-link with modifications.
48268         * tests/havelib/rpathlx/usex.c: New file, from
48269         gettext/autoconf-lib-link.
48270         * tests/havelib/rpathlx/Makefile.am: New file, from
48271         gettext/autoconf-lib-link.
48272         * tests/havelib/rpathlx/configure.ac: New file, from
48273         gettext/autoconf-lib-link with modifications.
48274         * tests/havelib/rpathly/usey.c: New file, from
48275         gettext/autoconf-lib-link.
48276         * tests/havelib/rpathly/Makefile.am: New file, from
48277         gettext/autoconf-lib-link.
48278         * tests/havelib/rpathly/configure.ac: New file, from
48279         gettext/autoconf-lib-link with modifications.
48280         * tests/havelib/rpathlz/usez.c: New file, from
48281         gettext/autoconf-lib-link.
48282         * tests/havelib/rpathlz/Makefile.am: New file, from
48283         gettext/autoconf-lib-link.
48284         * tests/havelib/rpathlz/configure.ac: New file, from
48285         gettext/autoconf-lib-link with modifications.
48286         * tests/havelib/rpathlyx/usey.c: New file, from
48287         gettext/autoconf-lib-link.
48288         * tests/havelib/rpathlyx/Makefile.am: New file, from
48289         gettext/autoconf-lib-link.
48290         * tests/havelib/rpathlyx/configure.ac: New file, from
48291         gettext/autoconf-lib-link with modifications.
48292         * tests/havelib/rpathlzyx/usez.c: New file, from
48293         gettext/autoconf-lib-link.
48294         * tests/havelib/rpathlzyx/Makefile.am: New file, from
48295         gettext/autoconf-lib-link.
48296         * tests/havelib/rpathlzyx/configure.ac: New file, from
48297         gettext/autoconf-lib-link with modifications.
48298         * tests/havelib/rpathcfg.sh: New file, from gettext/autoconf-lib-link
48299         with modifications.
48301 2010-04-02  Bruno Haible  <bruno@clisp.org>
48303         gnulib-tool: Create distributed built sources also for the tests.
48304         * gnulib-tool (func_create_testdir): Also generate distributed built
48305         sources in the tests directory.
48307 2010-04-02  Bruno Haible  <bruno@clisp.org>
48309         gnulib-tool: Obey user's environment variables.
48310         * gnulib-tool (func_create_testdir): When creating built sources,
48311         respect the environment variables for autoconf, automake, etc. given by
48312         the user.
48314 2010-04-02  Bruno Haible  <bruno@clisp.org>
48316         gnulib-tool: Provide the value of --m4-base to modules.
48317         * gnulib-tool (func_import, func_create_testdir): Emit a definition
48318         of gl_m4_base.
48320 2010-04-02  Eric Blake  <eblake@redhat.com>
48322         maint.mk: fix some fallout
48323         * NEWS: Document the incompatible change, and its effect on cfg.mk.
48324         * top/maint.mk (sc_prohibit_test_minus_ao): Update.
48326 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
48328         maint.mk: _sc_search_regexp: generalize and rename from _prohibit_regexp
48329         * top/maint.mk (_sc_search_regexp): Rename from _prohibit_regexp.
48330         (sc_cast_of_argument_to_free): Adapt to use _sc_search_regexp.
48331         (sc_cast_of_x_alloc_return_value): Likewise.
48332         (sc_cast_of_alloca_return_value): Likewise.
48333         (sc_space_tab): Likewise.
48334         (sc_prohibit_atoi_atof): Likewise.
48335         (sc_prohibit_magic_number_exit): Likewise.
48336         (sc_error_exit_success): Likewise.
48337         (sc_file_system): Likewise.
48338         (sc_prohibit_have_config_h): Likewise.
48339         (sc_require_config_h): Likewise.
48340         (sc_prohibit_HAVE_MBRTOWC): Likewise.
48341         (sc_obsolete_symbols): Likewise.
48342         (sc_changelog): Likewise.
48343         (sc_program_name): Likewise.
48344         (sc_the_the): Likewise.
48345         (sc_trailing_blank): Likewise.
48346         (sc_two_space_separator_in_usage): Likewise.
48347         (sc_useless_cpp_parens): Likewise.
48348         (sc_GPL_version): Likewise.
48349         (sc_GFDL_version): Likewise.
48350         (sc_texinfo_acronym): Likewise.
48351         (sc_prohibit_cvs_keyword): Likewise.
48352         (sc_prohibit_stat_st_blocks): Likewise.
48353         (sc_prohibit_S_IS_definition): Likewise.
48354         (sc_redundant_const): Likewise.
48355         (sc_makefile_TAB_only_indentation): Likewise.
48356         (sc_m4_quote_check): Likewise.
48357         (sc_makefile_path_separator_check): Likewise.
48358         (sc_copyright_check): Likewise.
48359         (sc_Wundef_boolean): Likewise.
48360         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
48362         maint.mk: match 0 or more whitespace-before-function-call '('
48363         * top/maint.mk (sc_error_exit_success): Relax regexp to match uses
48364         that have zero or two-and-more spaces between the function name
48365         and the open parenthesis.
48366         (sc_error_message_warn_fatal): Likewise.
48367         (sc_error_message_uppercase): Likewise.
48368         (sc_error_message_period): Likewise.
48370 2010-03-31  Eric Blake  <eblake@redhat.com>
48372         maint.mk: check for [ as well as test
48373         * top/maint.mk (sc_prohibit_test_minus_ao): Extend test.
48374         Based on a libvirt report by Matthias Bolte.
48376         gnumakefile: don't squelch _version output
48377         * top/GNUmakefile (_version): Create one-shot dependency rather
48378         than using $(shell) when version must be regenerated.
48379         (_autoreconf): Run verbosely, by default.
48381         sys_time: avoid compiler warnings
48382         * lib/sys_time.in.h (includes): Ensure gcc pragma is
48383         unconditional, fixing regression from 2010-03-29.
48384         Reported by Simon Josefsson.
48386 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
48388         maint.mk: s/_header_without_use/_sc_header_without_use/
48389         * top/maint.mk (_sc_header_without_use): Rename from _header_without_use.
48390         (sc_prohibit_assert_without_use): Use the new name.
48391         (sc_prohibit_close_stream_without_use): Likewise.
48392         (sc_prohibit_getopt_without_use): Likewise.
48393         (sc_prohibit_quotearg_without_use): Likewise.
48394         (sc_prohibit_quote_without_use): Likewise.
48395         (sc_prohibit_long_options_without_use): Likewise.
48396         (sc_prohibit_inttostr_without_use): Likewise.
48397         (sc_prohibit_ignore_value_without_use): Likewise.
48398         (sc_prohibit_error_without_use): Likewise.
48399         (sc_prohibit_xalloc_without_use): Likewise.
48400         (sc_prohibit_hash_without_use): Likewise.
48401         (sc_prohibit_hash_pjw_without_use): Likewise.
48402         (sc_prohibit_safe_read_without_use): Likewise.
48403         (sc_prohibit_argmatch_without_use): Likewise.
48404         (sc_prohibit_canonicalize_without_use): Likewise.
48405         (sc_prohibit_root_dev_ino_without_use): Likewise.
48406         (sc_prohibit_openat_without_use): Likewise.
48407         (sc_prohibit_c_ctype_without_use): Likewise.
48408         (sc_prohibit_signal_without_use): Likewise.
48409         (sc_prohibit_intprops_without_use): Likewise.
48411 2010-03-30  Eric Blake  <eblake@redhat.com>
48413         maint: improve module indicators
48414         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE)
48415         (gl_MODULE_INDICATOR, gl_MODULE_INDICATOR_FOR_TESTS): Fit in 80
48416         columns, and avoid extra macro expansion.
48418         fdopendir: work around FreeBSD bug
48419         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
48420         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Set it.
48421         * modules/dirent (Makefile.am): Substitute it.
48422         * lib/dirent.in.h (fdopendir): Supply missing FreeBSD
48423         declaration.
48424         * doc/posix-functions/fdopendir.texi (fdopendir): Document the
48425         fix.
48426         Reported by Christian Weisgerber <naddy@mips.inka.de>.
48428 2010-03-29  Bruno Haible  <bruno@clisp.org>
48430         Emit #pragma system_header after the inclusion guard, not before.
48431         * lib/arpa_inet.in.h: Emit #pragma system_header after the inclusion
48432         guard that spans the entire file, not before. This enables an
48433         optimization in GCC's preprocessor.
48434         * lib/ctype.in.h: Likewise.
48435         * lib/dirent.in.h: Likewise.
48436         * lib/errno.in.h: Likewise.
48437         * lib/float.in.h: Likewise.
48438         * lib/getopt.in.h: Likewise.
48439         * lib/iconv.in.h: Likewise.
48440         * lib/langinfo.in.h: Likewise.
48441         * lib/locale.in.h: Likewise.
48442         * lib/math.in.h: Likewise.
48443         * lib/netdb.in.h: Likewise.
48444         * lib/netinet_in.in.h: Likewise.
48445         * lib/pty.in.h: Likewise.
48446         * lib/sched.in.h: Likewise.
48447         * lib/se-selinux.in.h: Likewise.
48448         * lib/search.in.h: Likewise.
48449         * lib/spawn.in.h: Likewise.
48450         * lib/stdarg.in.h: Likewise.
48451         * lib/stdint.in.h: Likewise.
48452         * lib/string.in.h: Likewise.
48453         * lib/strings.in.h: Likewise.
48454         * lib/sys_file.in.h: Likewise.
48455         * lib/sys_ioctl.in.h: Likewise.
48456         * lib/sys_time.in.h: Likewise.
48457         * lib/sys_times.in.h: Likewise.
48458         * lib/sys_utsname.in.h: Likewise.
48459         * lib/sys_wait.in.h: Likewise.
48460         * lib/sysexits.in.h: Likewise.
48461         * lib/wctype.in.h: Likewise.
48463 2010-03-28  James Youngman  <jay@gnu.org>
48465         save-cwd: don't leak a file descriptor when the caller execs.
48466         * lib/save-cwd.c (save_cwd): set the close-on-exec flag for the
48467         saved file descriptor.
48468         * modules/save-cwd (Depends-on): Depend on cloexec.
48470 2010-03-29  Bruno Haible  <bruno@clisp.org>
48472         Remove vestiges of fts-lgpl module.
48473         * lib/fts_.h: Assume GNULIB_FTS is 1.
48474         * lib/fts.c: Likewise.
48475         * modules/fts (configure.ac): Remove gl_MODULE_INDICATOR invocation.
48477 2010-03-28  Bruno Haible  <bruno@clisp.org>
48479         Fix definition of tests witness macro.
48480         * gnulib-tool (func_import): Fix definition of witness macro.
48482 2010-03-28  Bruno Haible  <bruno@clisp.org>
48484         Fix ioctl's protoype on glibc systems.
48485         * lib/sys_ioctl.in.h (ioctl): If REPLACE_IOCTL is 1, use a wrapper. Use
48486         _GL_CXXALIAS_SYS, not _GL_CXXALIAS_SYS_CAST.
48487         * lib/ioctl.c (rpl_ioctl) [HAVE_IOCTL]: New wrapper.
48488         * modules/ioctl (configure.ac): Test whether ioctl has the POSIX
48489         signature. If not, arrange to replace the ioctl function.
48490         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
48491         REPLACE_IOCTL.
48492         * modules/sys_ioctl (Makefile.am): Substitute REPLACE_IOCTL.
48493         * doc/posix-functions/ioctl.texi: Mention the glibc problem.
48494         Reported by Ludovic Courtès <ludo@gnu.org>.
48496 2010-03-28  Javier Villavicencio  <the_paya@gentoo.org>
48498         exclude: fix the case of globs vs. EXCLUDE_INCLUDE
48499         * lib/exclude.c (excluded_file_pattern_p): Fix logic error that
48500         made it so grep -r --include=GLOB* ... did not work.
48502 2010-03-26  Jim Meyering  <meyering@redhat.com>
48503             Eric Blake  <eblake@redhat.com>
48505         maint.mk: prohibit use of test's -o and -a operators
48506         * top/maint.mk (sc_prohibit_test_minus_ao): New rule.
48508 2010-03-28  Bruno Haible  <bruno@clisp.org>
48510         Remove unused GNULIB_XYZ macro definitions.
48511         * modules/crypto/gc-camellia (configure.ac): Remove gl_MODULE_INDICATOR
48512         invocation.
48514 2010-03-28  Bruno Haible  <bruno@clisp.org>
48516         Mark privileged tests modules.
48517         * modules/idpriv-drop-tests (Status): New section.
48518         * modules/idpriv-droptemp-tests (Status): New section.
48520 2010-03-28  Bruno Haible  <bruno@clisp.org>
48522         Split C++ tests into separate tests modules.
48523         * modules/dirent-c++-tests: New file, extracted from
48524         modules/dirent-tests.
48525         * modules/dirent-tests: Depend on it.
48526         * modules/fcntl-h-c++-tests: New file, extracted from
48527         modules/fcntl-h-tests.
48528         * modules/fcntl-h-tests: Depend on it.
48529         * modules/glob-c++-tests: New file, extracted from modules/glob-tests.
48530         * modules/glob-tests: Depend on it.
48531         * modules/iconv-h-c++-tests: New file, extracted from
48532         modules/iconv-h-tests.
48533         * modules/iconv-h-tests: Depend on it.
48534         * modules/langinfo-c++-tests: New file, extracted from
48535         modules/langinfo-tests.
48536         * modules/langinfo-tests: Depend on it.
48537         * modules/locale-c++-tests: New file, extracted from
48538         modules/locale-tests.
48539         * modules/locale-tests: Depend on it.
48540         * modules/math-c++-tests: New file, extracted from modules/math-tests.
48541         * modules/math-tests: Depend on it.
48542         * modules/pty-c++-tests: New file, extracted from modules/pty-tests.
48543         * modules/pty-tests: Depend on it.
48544         * modules/search-c++-tests: New file, extracted from
48545         modules/search-tests.
48546         * modules/search-tests: Depend on it.
48547         * modules/signal-c++-tests: New file, extracted from
48548         modules/signal-tests.
48549         * modules/signal-tests: Depend on it.
48550         * modules/spawn-c++-tests: New file, extracted from
48551         modules/spawn-tests.
48552         * modules/spawn-tests: Depend on it.
48553         * modules/stdio-c++-tests: New file, extracted from
48554         modules/stdio-tests.
48555         * modules/stdio-tests: Depend on it.
48556         * modules/stdlib-c++-tests: New file, extracted from
48557         modules/stdlib-tests.
48558         * modules/stdlib-tests: Depend on it.
48559         * modules/string-c++-tests: New file, extracted from
48560         modules/string-tests.
48561         * modules/string-tests: Depend on it.
48562         * modules/sys_ioctl-c++-tests: New file, extracted from
48563         modules/sys_ioctl-tests.
48564         * modules/sys_ioctl-tests: Depend on it.
48565         * modules/sys_select-c++-tests: New file, extracted from
48566         modules/sys_select-tests.
48567         * modules/sys_select-tests: Depend on it.
48568         * modules/sys_socket-c++-tests: New file, extracted from
48569         modules/sys_socket-tests.
48570         * modules/sys_socket-tests: Depend on it.
48571         * modules/sys_stat-c++-tests: New file, extracted from
48572         modules/sys_stat-tests.
48573         * modules/sys_stat-tests: Depend on it.
48574         * modules/sys_time-c++-tests: New file, extracted from
48575         modules/sys_time-tests.
48576         * modules/sys_time-tests: Depend on it.
48577         * modules/time-c++-tests: New file, extracted from modules/time-tests.
48578         * modules/time-tests: Depend on it.
48579         * modules/unistd-c++-tests: New file, extracted from
48580         modules/unistd-tests.
48581         * modules/unistd-tests: Depend on it.
48582         * modules/wchar-c++-tests: New file, extracted from
48583         modules/wchar-tests.
48584         * modules/wchar-tests: Depend on it.
48585         * modules/wctype-c++-tests: New file, extracted from
48586         modules/wctype-tests.
48587         * modules/wctype-tests: Depend on it.
48588         Reported by Simon Josefsson.
48590 2010-03-28  Bruno Haible  <bruno@clisp.org>
48592         gnulib-tool: Allow 'foo-tests' module even if there is no module 'foo'.
48593         * gnulib-tool (func_exists_module): New function, extracted from
48594         func_verify_module.
48595         (func_verify_module): Use it.
48596         (func_get_dependencies): Synthetize a dependency from 'foo-tests' to
48597         'foo' only if 'foo' exists.
48598         * doc/gnulib.texi (Extra tests modules): Explain how to split a tests
48599         module.
48601 2010-03-28  Bruno Haible  <bruno@clisp.org>
48603         gnulib-tool: Add support for special categories of tests.
48604         * gnulib-tool: New options --with-c++-tests, --with-longrunning-tests,
48605         --with-privileged-tests, --with-unportable-tests, --with-all-tests.
48606         (func_usage): Document them.
48607         (inc_cxx_tests, inc_longrunning_tests, inc_privileged_tests,
48608         inc_unportable_tests, inc_all_tests): New variables.
48609         (func_acceptable): Consider these variables.
48610         (func_modules_transitive_closure): Make it work when the 'Status' field
48611         consists of multiple words.
48612         (func_import): Store and restore the values of inc_cxx_tests,
48613         inc_longrunning_tests, inc_privileged_tests, inc_unportable_tests,
48614         inc_all_tests in gnulib-comp.m4.
48615         (func_create_testdir): Set inc_all_tests to true.
48616         * doc/gnulib.texi (Extra tests modules): New section.
48617         Suggested by Jim Meyering.
48619 2010-03-28  Bruno Haible  <bruno@clisp.org>
48621         ansi-c++-opt: Allow turning off the C++ build by default.
48622         * m4/ansi-c++.m4 (gl_CXX_CHOICE): Let CXX_CHOICE default to 'no' if
48623         gl_CXX_CHOICE_DEFAULT_NO is defined.
48624         Requested by Eric Blake.
48626 2010-03-28  Bruno Haible  <bruno@clisp.org>
48628         unistd: Avoid #define replacements in C++ mode.
48629         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
48630         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
48631         setsockopt, shutdown, select): In C++, attach a warning to the function
48632         if possible, rather than #defining the symbol to a dysfunctional alias.
48633         Reported by John W. Eaton <jwe@gnu.org>.
48635 2010-03-28  Bruno Haible  <bruno@clisp.org>
48637         Fix link errors on mingw.
48638         * lib/sys_ioctl.in.h (ioctl): Fix declaration idiom.
48639         * modules/sys_ioctl-tests (Makefile.am): Link test-sys_ioctl-c++ with
48640         $(LIBSOCKET).
48641         * modules/sys_select-tests (Makefile.am): Link test-sys_select-c++ with
48642         $(LIBSOCKET).
48644 2010-03-28  Bruno Haible  <bruno@clisp.org>
48645             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48647         lib-ignore: Determine different options for different compilers.
48648         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Set a variable which
48649         depends on the current language (C/C++/Fortran). Don't set LDFLAGS.
48650         Add comments.
48651         (_gl_IGNORE_UNUSED_LIBRARIES_OPTIONS): New macro.
48652         * NEWS: Mention the change.
48654 2010-03-27  Bruno Haible  <bruno@clisp.org>
48656         Remove unused GNULIB_XYZ macro definitions.
48657         * modules/dup3 (configure.ac): Remove gl_MODULE_INDICATOR invocation.
48658         * modules/fseek (configure.ac): Likewise.
48659         * modules/ioctl (configure.ac): Likewise.
48660         * modules/open (configure.ac): Likewise.
48661         * modules/stdlib-safer (configure.ac): Likewise.
48663 2010-03-27  Bruno Haible  <bruno@clisp.org>
48665         Add a remark about certain modules.
48666         * modules/malloc (Comment): New section.
48667         * modules/realloc (Comment): Likewise.
48668         * modules/sigpipe (Comment): Likewise.
48670 2010-03-27  Bruno Haible  <bruno@clisp.org>
48672         Resolve conflict between the two kinds of module indicators.
48673         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Define
48674         GNULIB_TEST_XYZ instead of GNULIB_XYZ.
48675         * modules/canonicalize (configure.ac): Invoke
48676         gl_MODULE_INDICATOR_FOR_TESTS.
48677         * tests/test-canonicalize-lgpl.c: Test GNULIB_TEST_XYZ instead of
48678         GNULIB_XYZ.
48679         * tests/test-dirent-c++.cc: Likewise.
48680         * tests/test-dirent-safer.c: Likewise.
48681         * tests/test-dup2.c: Likewise.
48682         * tests/test-fchdir.c: Likewise.
48683         * tests/test-fcntl-h-c++.cc: Likewise.
48684         * tests/test-getopt.c: Likewise.
48685         * tests/test-getopt.h: Likewise.
48686         * tests/test-langinfo-c++.cc: Likewise.
48687         * tests/test-locale-c++.cc: Likewise.
48688         * tests/test-math-c++.cc: Likewise.
48689         * tests/test-pty-c++.cc: Likewise.
48690         * tests/test-search-c++.cc: Likewise.
48691         * tests/test-signal-c++.cc: Likewise.
48692         * tests/test-spawn-c++.cc: Likewise.
48693         * tests/test-stdio-c++.cc: Likewise.
48694         * tests/test-stdlib-c++.cc: Likewise.
48695         * tests/test-string-c++.cc: Likewise.
48696         * tests/test-sys_ioctl-c++.cc: Likewise.
48697         * tests/test-sys_select-c++.cc: Likewise.
48698         * tests/test-sys_socket-c++.cc: Likewise.
48699         * tests/test-sys_stat-c++.cc: Likewise.
48700         * tests/test-sys_time-c++.cc: Likewise.
48701         * tests/test-time-c++.cc: Likewise.
48702         * tests/test-unistd-c++.cc: Likewise.
48703         * tests/test-wchar-c++.cc: Likewise.
48704         * tests/uninorm/test-u8-nfc.c: Likewise.
48705         * tests/uninorm/test-u8-nfd.c: Likewise.
48706         * tests/uninorm/test-u8-nfkc.c: Likewise.
48707         * tests/uninorm/test-u8-nfkd.c: Likewise.
48708         * tests/uninorm/test-u16-nfc.c: Likewise.
48709         * tests/uninorm/test-u16-nfd.c: Likewise.
48710         * tests/uninorm/test-u16-nfkc.c: Likewise.
48711         * tests/uninorm/test-u16-nfkd.c: Likewise.
48712         * tests/uninorm/test-u32-nfc.c: Likewise.
48713         * tests/uninorm/test-u32-nfc-big.c: Likewise.
48714         * tests/uninorm/test-u32-nfd.c: Likewise.
48715         * tests/uninorm/test-u32-nfd-big.c: Likewise.
48716         * tests/uninorm/test-u32-nfkc.c: Likewise.
48717         * tests/uninorm/test-u32-nfkc-big.c: Likewise.
48718         * tests/uninorm/test-u32-nfkd.c: Likewise.
48719         * tests/uninorm/test-u32-nfkd-big.c: Likewise.
48720         * tests/uninorm/test-u32-normalize-big.c: Likewise.
48722 2010-03-27  Bruno Haible  <bruno@clisp.org>
48724         Distinguish two kinds of module indicators.
48725         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Renamed from
48726         gl_MODULE_INDICATOR.
48727         (gl_MODULE_INDICATOR): New macro.
48728         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
48729         gl_MODULE_INDICATOR_FOR_TESTS instead of gl_MODULE_INDICATOR.
48730         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
48731         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
48732         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
48733         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
48734         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
48735         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
48736         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
48737         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
48738         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
48739         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
48740         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
48741         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
48742         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
48743         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
48744         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
48745         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
48746         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
48747         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
48748         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
48749         * modules/cloexec (configure.ac): Likewise.
48750         * modules/getopt-gnu (configure.ac): Likewise.
48751         * modules/uninorm/u8-normalize (configure.ac): Likewise.
48752         * modules/uninorm/u16-normalize (configure.ac): Likewise.
48753         * modules/uninorm/u32-normalize (configure.ac): Likewise.
48754         * modules/fdopendir (configure.ac): Invoke gl_MODULE_INDICATOR.
48756 2010-03-27  Bruno Haible  <bruno@clisp.org>
48758         New module description field 'Comment'.
48759         * gnulib-tool: New option --extract-comment.
48760         (func_usage): Document it.
48761         (sed_extract_prog, sed_extract_field_header): Support 'Comment' field.
48762         (func_get_comment): New function.
48763         * modules/TEMPLATE-EXTENDED: Add a blank Comment field.
48765 2010-03-27  Bruno Haible  <bruno@clisp.org>
48767         Addendum to 2010-02-07 commit.
48768         * gnulib-tool (func_usage): Document --extract-applicability option.
48770 2010-03-27  Bruno Haible  <bruno@clisp.org>
48772         Use GNULIB_POSIXCHECK instead of GNULIB_PORTCHECK.
48773         * lib/time.in.h (asctime, asctime_r, ctime, ctime_r): Test
48774         GNULIB_POSIXCHECK, not GNULIB_PORTCHECK. Provide compile-time warnings
48775         rather than link errors.
48777 2010-03-27  Bruno Haible  <bruno@clisp.org>
48779         Avoid side effects from tests-related modules on the compilation of lib.
48780         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): New macro.
48781         (gl_MODULE_INDICATOR_SET_VARIABLE): Use its expansion as a value.
48782         * gnulib-tool (func_emit_tests_Makefile_am): Accept a witness_macro
48783         parameter. Emit into AM_CPPFLAGS a definition of the designated C
48784         macro.
48785         (func_import): Define a witness macro. Assign it a value that depends
48786         on the current package. Override gl_MODULE_INDICATOR_CONDITION for the
48787         tests-related modules.
48788         (func_create_testdir): Update func_emit_tests_Makefile_am invocation.
48789         Reported by Jim Meyering.
48791 2010-03-27  Bruno Haible  <bruno@clisp.org>
48793         Factorize common .m4 code.
48794         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE): New macro.
48795         * m4/arpa_inet_h.m4 (gl_ARPA_INET_MODULE_INDICATOR): Use it.
48796         * m4/ctype.m4 (gl_CTYPE_MODULE_INDICATOR): Likewise.
48797         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Likewise.
48798         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
48799         * m4/iconv_h.m4 (gl_ICONV_MODULE_INDICATOR): Likewise.
48800         * m4/inttypes.m4 (gl_INTTYPES_MODULE_INDICATOR): Likewise.
48801         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
48802         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
48803         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
48804         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Likewise.
48805         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
48806         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
48807         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
48808         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
48809         * m4/stddef_h.m4 (gl_STDDEF_MODULE_INDICATOR): Likewise.
48810         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
48811         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
48812         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
48813         * m4/strings_h.m4 (gl_STRINGS_MODULE_INDICATOR): Likewise.
48814         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_MODULE_INDICATOR): Likewise.
48815         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
48816         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
48817         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
48818         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
48819         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
48820         * m4/sys_times_h.m4 (gl_SYS_TIMES_MODULE_INDICATOR): Likewise.
48821         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_MODULE_INDICATOR): Likewise.
48822         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Likewise.
48823         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
48824         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
48825         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
48827 2010-03-27  Bruno Haible  <bruno@clisp.org>
48829         Fix a compilation error on Cygwin with g++ >= 4.3.
48830         * lib/sys_stat.in.h (lchmod): Don't warn about the use of this function
48831         if it is undefined or if we alias it to chmod.
48832         (lstat): Don't warn about the use of this function if it is undefined
48833         or if we alias it to stat.
48834         Reported by Simon Josefsson.
48836 2010-03-27  Bruno Haible  <bruno@clisp.org>
48838         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Renamed from gl_GETLOGIN.
48839         * modules/getlogin (configure.ac): Update.
48841         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Renamed from gl_GETLOGIN_R.
48842         * modules/getlogin_r (configure.ac): Update.
48844         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Renamed from gl_INET_NTOP.
48845         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Update.
48846         * modules/inet_ntop (configure.ac): Update.
48848         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Renamed from gl_INET_PTON.
48849         * modules/inet_pton (configure.ac): Update.
48851         * m4/mbslen.m4 (gl_FUNC_MBSLEN): Renamed from gl_MBSLEN.
48852         * modules/mbslen (configure.ac): Update.
48854         * m4/pty.m4 (gl_FUNC_FORKPTY): Renamed from gl_FORKPTY.
48855         (gl_FUNC_OPENPTY): Renamed from gl_OPENPTY.
48856         * modules/forkpty (configure.ac): Update.
48857         * modules/openpty (configure.ac): Update.
48859 2010-03-26  Simon Josefsson  <simon@josefsson.org>
48861         * top/maint.mk (sc_texinfo_acronym): Don't infloop if there is
48862         no *.texi files.  Reported by Eric Blake <eblake@redhat.com>.
48864 2010-03-25  Eric Blake  <eblake@redhat.com>
48866         maint: use pragma consistently across replacement headers
48867         * lib/ctype.in.h (system_header): Hoist for consistent placement.
48868         * lib/dirent.in.h (system_header): Likewise.
48869         * lib/errno.in.h (system_header): Likewise.
48870         * lib/float.in.h (system_header): Likewise.
48871         * lib/getopt.in.h (system_header): Likewise.
48872         * lib/iconv.in.h (system_header): Likewise.
48873         * lib/inttypes.in.h (system_header): Likewise.
48874         * lib/langinfo.in.h (system_header): Likewise.
48875         * lib/locale.in.h (system_header): Likewise.
48876         * lib/math.in.h (system_header): Likewise.
48877         * lib/netdb.in.h (system_header): Likewise.
48878         * lib/netinet_in.in.h (system_header): Likewise.
48879         * lib/pty.in.h (system_header): Likewise.
48880         * lib/sched.in.h (system_header): Likewise.
48881         * lib/se-selinux.in.h (system_header): Likewise.
48882         * lib/search.in.h (system_header): Likewise.
48883         * lib/spawn.in.h (system_header): Likewise.
48884         * lib/stdarg.in.h (system_header): Likewise.
48885         * lib/stdint.in.h (system_header): Likewise.
48886         * lib/string.in.h (system_header): Likewise.
48887         * lib/strings.in.h (system_header): Likewise.
48888         * lib/sys_file.in.h (system_header): Likewise.
48889         * lib/sys_ioctl.in.h (system_header): Likewise.
48890         * lib/sys_socket.in.h (system_header): Likewise.
48891         * lib/sys_times.in.h (system_header): Likewise.
48892         * lib/sys_utsname.in.h (system_header): Likewise.
48893         * lib/sys_wait.in.h (system_header): Likewise.
48894         * lib/sysexits.in.h (system_header): Likewise.
48895         * lib/unistd.in.h (system_header): Likewise.
48896         * lib/wctype.in.h (system_header): Likewise.
48898         arpa/inet: fix mingw compilation warning
48899         * lib/arpa_inet.in.h (system_header): Hoist to be unconditional.
48900         Reported by Matthew Bolte.
48902 2010-03-25  Bruno Haible  <bruno@clisp.org>
48904         Avoid collision between gnulib wrapper and libintl wrapper.
48905         * lib/printf.c (printf): Don't define if a printf wrapper is already
48906         defined in intl/printf.c.
48907         Reported by Michel Boaventura <michel@michelboaventura.com>.
48909 2010-03-25  Bruno Haible  <bruno@clisp.org>
48911         Use ANSI C.
48912         * lib/readutmp.h (getutent): Provide ANSI C prototype.
48914 2010-03-25  Bruno Haible  <bruno@clisp.org>
48916         Minor formatting changes.
48917         * lib/acosl.c: Insert space before function argument list.
48918         * lib/argz.c: Likewise.
48919         * lib/asinl.c: Likewise.
48920         * lib/expl.c: Likewise.
48921         * lib/gen-uni-tables.c: Likewise.
48922         * lib/gettext.h: Likewise.
48923         * lib/glthread/lock.h: Likewise.
48924         * lib/tanl.c: Likewise.
48925         * lib/uniname/uniname.c: Likewise.
48926         * tests/test-idpriv-drop.c: Likewise.
48927         * tests/test-idpriv-droptemp.c: Likewise.
48928         * tests/test-lock.c: Likewise.
48929         * tests/test-tls.c: Likewise.
48930         * lib/argp-help.c: Insert space before function-like macro argument
48931         list.
48932         * lib/memcmp.c: Likewise.
48933         * tests/test-base64.c: Likewise.
48934         * lib/localename.c: Insert space before sizeof's argument list.
48935         * lib/safe-alloc.h: Likewise.
48936         * lib/file-set.h: Insert space before macro argument list.
48937         * tests/test-argp.c: Likewise.
48938         * lib/argp-namefrob.h: Insert space before function parameter list.
48939         * lib/getaddrinfo.c: Likewise.
48940         * lib/netdb.in.h: Likewise.
48941         * lib/parse-duration.h: Likewise.
48942         * lib/parse-duration.c: Likewise.
48943         * lib/poll.c: Likewise.
48944         * lib/select.c: Likewise.
48945         * lib/trim.h: Likewise.
48946         * tests/test-usleep.c: Likewise.
48947         * lib/ldexpl.c: Insert space before function parameter list and before
48948         function argument list.
48949         * lib/logl.c: Likewise.
48950         * lib/sqrtl.c: Likewise.
48951         * lib/trim.c: Likewise.
48952         * lib/cosl.c: Use GNU style indentation. Insert space before function
48953         argument list.
48954         * lib/sinl.c: Likewise.
48955         * lib/tsearch.c: Insert space after 'for'.
48956         Reported by Jim Meyering.
48958 2010-03-23  Pádraig Brady  <P@draigBrady.com>  (tiny change)
48960         * maint.mk (sc_Wundef_boolean): Check for the presence of the
48961         config header before grepping, as it's not present before
48962         autoreconf/configure are run.  Reported by Simon Josefsson.
48964 2010-03-23  Bruno Haible  <bruno@clisp.org>
48966         pt_chown: Make it work with automake < 1.11.
48967         * modules/pt_chown (Makefile.am): Define pkglibexecdir.
48968         Reported by Simon Josefsson.
48970 2010-03-23  Bruno Haible  <bruno@clisp.org>
48972         pt_chown: Don't depend on GPLed modules.
48973         * lib/pt_chown.c: Don't include idpriv.h.
48974         (main): Don't drop privileges.
48975         * modules/pt_chown (Depends-on): Remove idpriv-drop.
48976         Reported by Simon Josefsson.
48978 2010-03-24  Simon Josefsson  <simon@josefsson.org>
48980         * top/maint.mk (sc_texinfo_acronym): Add rule, based on
48981         suggestions from karl@freefriends.org (Karl Berry).
48983 2010-03-22  Eric Blake  <eblake@redhat.com>
48985         gethostname: further tweaks
48986         * lib/unistd.in.h (includes): Only worry about <winsock2.h> if we
48987         are overriding gethostname.
48988         Suggested by Bruno Haible.
48990 2010-03-21  Bruno Haible  <bruno@clisp.org>
48992         Fix comments.
48993         * lib/forkpty.c (rpl_forkpty): Fix comment.
48994         * lib/openpty.c (rpl_openpty): Likewise.
48995         Reported by Eric Blake.
48997 2010-03-22  Eric Blake  <eblake@redhat.com>
48999         gethostname: fix build on mingw
49000         * lib/unistd.in.h (includes): Work around fact that mingw
49001         <winsock2.h> re-includes <unistd.h>, by avoiding any
49002         redeclarations if we are being included by <winsock2.h>.
49003         Reported by Matthias Bolte.
49005 2010-03-21  Bruno Haible  <bruno@clisp.org>
49007         forkpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
49008         * lib/forkpty.c (forkpty): New replacement function, from glibc with
49009         modifications.
49010         * lib/pty.in.h (forkpty): Update declaration. Add comments.
49011         * m4/pty.m4 (gl_FORKPTY): If forkpty is not declared, arrange to
49012         provide the replacement.
49013         * modules/forkpty (Depends-on): Add openpty, login_tty.
49014         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_FORKPTY.
49015         * modules/pty (Makefile.am): Substitute HAVE_FORKPTY.
49016         * doc/glibc-functions/forkpty.texi: More supported platforms.
49017         * config/srclist.txt: Add forkpty.c (commented).
49019 2010-03-21  Bruno Haible  <bruno@clisp.org>
49021         * modules/forkpty-tests: Use the common TEMPLATE-TESTS.
49022         (Makefile.am): Verify that PTY_LIB is defined.
49024         * modules/openpty-tests: Use the common TEMPLATE-TESTS.
49026 2010-03-21  Bruno Haible  <bruno@clisp.org>
49028         Tests for module 'login_tty'.
49029         * modules/login_tty-tests: New file.
49030         * tests/test-login_tty.c: New file.
49032         New module 'login_tty'.
49033         * lib/login_tty.c: New file.
49034         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): New macro.
49035         * modules/login_tty: New file.
49036         * doc/glibc-functions/login_tty.texi: Mention the new module.
49038 2010-03-21  Bruno Haible  <bruno@clisp.org>
49040         login_tty: Documentation.
49041         * doc/glibc-functions/login_tty.texi: New file.
49042         * doc/gnulib.texi (Glibc <utmp.h>): Include it.
49044 2010-03-21  Bruno Haible  <bruno@clisp.org>
49046         pty: Consistent macro naming.
49047         * m4/pty_h.m4 (gl_PTY_H): Renamed from gl_PTY.
49048         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): Update.
49049         * modules/pty (configure.ac): Update.
49051 2010-03-21  Bruno Haible  <bruno@clisp.org>
49053         Tests for openpty: Make stricter.
49054         * tests/test-openpty.c (main): Add test of canonical processing and
49055         erase.
49056         * modules/openpty-tests (Makefile.am): Verify that PTY_LIB is defined.
49058         openpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
49059         * lib/openpty.c (openpty): New replacement function.
49060         * lib/pty.in.h: Include <termios.h>.
49061         (openpty): Update declaration. Add comments.
49062         * m4/pty.m4 (gl_OPENPTY): Require AC_USE_SYSTEM_EXTENSIONS. If openpty
49063         is not declared, arrange to provide the replacement. Check for _getpty
49064         and posix_openpt.
49065         * modules/openpty (Depends-on): Add extensions, fcntl-h, ioctl.
49066         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_OPENPTY.
49067         * modules/pty (Makefile.am): Substitute HAVE_OPENPTY.
49068         * modules/pty-tests (test_pty_c___LDADD): New variable.
49069         * doc/glibc-functions/openpty.texi: More supported platforms.
49071 2010-03-21  Bruno Haible  <bruno@clisp.org>
49073         setenv: Tweaks.
49074         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Include necessary headers in
49075         the test program.
49076         * doc/posix-functions/setenv.texi: Update platforms list.
49078 2010-03-21  Bruno Haible  <bruno@clisp.org>
49080         New module 'unlockpt'.
49081         * lib/unlockpt.c: New file, from glibc with modifications.
49082         * m4/unlockpt.m4: New file.
49083         * modules/unlockpt: New file.
49084         * lib/stdlib.in.h (unlockpt): New declaration.
49085         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether unlockpt is declared.
49086         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_UNLOCKPT, HAVE_UNLOCKPT.
49087         * modules/stdlib (Makefile.am): Substitute GNULIB_UNLOCKPT,
49088         HAVE_UNLOCKPT.
49089         * doc/posix-functions/unlockpt.texi: Mention the new module.
49090         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::unlockpt.
49091         * config/srclist.txt: Add unlockpt.c (commented).
49093 2010-03-21  Jim Meyering  <meyering@redhat.com>
49095         maint.mk: prohibit inclusion of "intprops.h" without use
49096         * top/maint.mk (sc_prohibit_intprops_without_use): New rule.
49098 2010-03-21  Bruno Haible  <bruno@clisp.org>
49100         New module 'grantpt'.
49101         * lib/grantpt.c: New file, from glibc with modifications.
49102         * m4/grantpt.m4: New file.
49103         * modules/grantpt: New file.
49104         * lib/stdlib.in.h (grantpt): New declaration.
49105         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether grantpt is declared.
49106         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GRANTPT, HAVE_GRANTPT.
49107         * modules/stdlib (Makefile.am): Substitute GNULIB_GRANTPT,
49108         HAVE_GRANTPT.
49109         * doc/posix-functions/grantpt.texi: Mention the new module.
49110         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::grantpt.
49111         * config/srclist.txt: Add grantpt.c (commented).
49113 2010-03-21  Bruno Haible  <bruno@clisp.org>
49115         New module 'pt_chown'.
49116         * lib/pt_chown.c: New file, from glibc with modifications.
49117         * lib/pty-private.h: New file, from glibc with modifications.
49118         * modules/pt_chown: New file.
49119         * config/srclist.txt: Add pt_chown.c, pty-private.h (commented).
49121 2010-03-21  Bruno Haible  <bruno@clisp.org>
49123         Tests for module 'ptsname'.
49124         * modules/ptsname-tests: New file.
49125         * tests/test-ptsname.c: New file.
49127         New module 'ptsname'.
49128         * lib/ptsname.c: New file, from glibc with modifications.
49129         * m4/ptsname.m4: New file.
49130         * modules/ptsname: New file.
49131         * lib/stdlib.in.h (ptsname): New declaration.
49132         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether ptsname is declared.
49133         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PTSNAME, HAVE_PTSNAME.
49134         * modules/stdlib (Makefile.am): Substitute GNULIB_PTSNAME,
49135         HAVE_PTSNAME.
49136         * doc/posix-functions/ptsname.texi: Mention the new module.
49137         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::ptsname.
49138         * config/srclist.txt: Add ptsname.c (commented).
49140 2010-03-21  Bruno Haible  <bruno@clisp.org>
49142         Tests for module 'ttyname_r'.
49143         * modules/ttyname_r-tests: New file.
49144         * tests/test-ttyname_r.c: New file.
49146         New module 'ttyname_r'.
49147         * lib/ttyname_r.c: New file.
49148         * m4/ttyname_r.m4: New file.
49149         * modules/ttyname_r: New file.
49150         * lib/unistd.in.h (ttyname_r): New declaration.
49151         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether ttyname_r is declared.
49152         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_TTYNAME_R, HAVE_TTYNAME_R.
49153         * modules/unistd (Makefile.am): Substitute GNULIB_TTYNAME_R,
49154         HAVE_TTYNAME_R.
49155         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::ttyname_r.
49156         * doc/posix-functions/ttyname_r.texi: Mention the new module.
49158 2010-03-20  Bruno Haible  <bruno@clisp.org>
49160         signal: Undefine macro definitions in C++ mode.
49161         * lib/signal.in.h (sigismember, sigemptyset, sigaddset, sigdelset,
49162         sigfillset): Undefine macro definitions from the system header in C++
49163         mode.
49164         Reported by John W. Eaton <jwe@gnu.org>.
49166 2010-03-20  Bruno Haible  <bruno@clisp.org>
49168         Ensure no #include statements inside extern "C" { ... }.
49169         * lib/obstack.h: Shrink extern "C" { ... } region so that it does not
49170         contain #include statements.
49171         * lib/time.in.h: Likewise.
49173 2010-03-20  Bruno Haible  <bruno@clisp.org>
49175         Make _GL_WARN_ON_USE usable in C++ and C mode in the same compilation.
49176         * build-aux/warn-on-use.h (_GL_WARN_EXTERN_C): New macro.
49177         (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): Likewise.
49178         Reported by John W. Eaton <jwe@gnu.org>.
49180 2010-03-20  Bruno Haible  <bruno@clisp.org>
49182         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix last commit.
49183         Reported by Jim Meyering.
49185 2010-03-20  Bruno Haible  <bruno@clisp.org>
49187         pipe: Set errno upon failure.
49188         * lib/pipe.h: Specify that when -1 is returned, errno is set.
49189         * lib/pipe.c (create_pipe): Set errno when returning -1. Use the right
49190         errno value in error message.
49192 2010-03-20  Bruno Haible  <bruno@clisp.org>
49193             Jim Meyering  <meyering@redhat.com>
49195         lchown: Avoid "unused variable" warning.
49196         * lib/lchown.c (rpl_lchown): Move variable 'st' into #if block.
49198 2010-03-20  Bruno Haible  <bruno@clisp.org>
49200         Work around unlink() bug on MacOS X 10.5.6.
49201         * lib/unlink.c (rpl_unlink): If UNLINK_PARENT_BUG is defined, fail when
49202         attempting to unlink a parent directory.
49203         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. Test for
49204         MacOS X 10.5 bug. If the bug is present, define UNLINK_PARENT_BUG and
49205         activate for the replacement function.
49206         * doc/posix-functions/unlink.texi: Mention the MacOS X 10.5 bug.
49208 2010-03-20  Bruno Haible  <bruno@clisp.org>
49210         Fix link errors on Solaris 8.
49211         * modules/dirent-tests (test_dirent_c___LDADD): Add LIB_NANOSLEEP.
49212         * modules/wctype-tests (test_wctype_c___LDADD): Likewise.
49214 2010-03-19  Jim Meyering  <meyering@redhat.com>
49216         regcomp.c: make non-_LIBC implementation of build_range_exp consistent
49217         The _LIBC implementation of build_range_exp correctly honors the
49218         RE_NO_EMPTY_RANGES flag when checking for reversed range endpoints.
49219         However, the non-_LIBC implementation would ignore that syntax-bit
49220         flag and return REG_ERANGE unconditionally.
49221         This change makes it honor that flag.
49222         * lib/regcomp.c (build_range_exp) [!_LIBC]: Add a parameter: "syntax".
49223         Make two pointer parameters "const".
49224         Use "syntax" bits in order to honor RE_NO_EMPTY_RANGES.
49225         (parse_bracket_exp): Update caller.
49227         regex.m4: correct the reversed range endpoint ([b-a]) test
49228         * m4/regex.m4: When requiring that [b-a] evoke failure,
49229         use RE_NO_EMPTY_RANGES.  This makes this entire configure-time
49230         test pass once again for x86-based systems.
49232 2010-03-19  Bruno Haible  <bruno@clisp.org>
49234         scandir: Fix link error on Solaris 8.
49235         * lib/scandir.c (_D_EXACT_NAMLEN, _D_ALLOC_NAMLEN): New fallback
49236         macros.
49238 2010-03-19  Bruno Haible  <bruno@clisp.org>
49240         getusershell: Fix documentation.
49241         * doc/glibc-functions/endusershell.texi: Refer to the getusershell
49242         module.
49243         * doc/glibc-functions/setusershell.texi: Likewise.
49245         getusershell: Provide declaration, missing on Solaris 9.
49246         * lib/unistd.in.h (getusershell, setusershell, endusershell): Declare
49247         also if HAVE_GETUSERSHELL && !HAVE_DECL_GETUSERSHELL.
49248         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): When the function exists,
49249         check whether it is declared. Set HAVE_DECL_GETUSERSHELL.
49250         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
49251         HAVE_DECL_GETUSERSHELL, not HAVE_GETUSERSHELL.
49252         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETUSERSHELL, not
49253         HAVE_GETUSERSHELL.
49254         * doc/glibc-functions/getusershell.texi: Mention the Solaris problem.
49256 2010-03-19  Bruno Haible  <bruno@clisp.org>
49258         wctype: Provide iswblank function.
49259         * lib/wctype.in.h (iswblank): Provide a replacement also when iswcntrl
49260         exists and is fine.
49261         * m4/wctype_h.m4 (gl_WCTYPE_H): Also check whether iswcntrl exists.
49262         * modules/wctype (Makefile.am): Substitute HAVE_ISWBLANK.
49263         * tests/test-wctype.c (main): Re-enable the iswblank tests.
49264         * doc/posix-functions/iswblank.texi: Update.
49266 2010-03-19  Bruno Haible  <bruno@clisp.org>
49268         Tests of module 'pty' in C++ mode.
49269         * modules/pty-tests: New file.
49270         * tests/test-pty-c++.cc: New file.
49271         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
49273 2010-03-19  Eric Blake  <eblake@redhat.com>
49275         logb: fix documentation
49276         * doc/posix-functions/logb.texi (logb): Gnulib fixes the cygwin
49277         1.5 declaration bug.
49279         forkpty, openpty: prefer glibc's const-safe prototype
49280         * lib/forkpty.c (rpl_forkpty): New file.
49281         * lib/openpty.c (rpl_openpty): Likewise.
49282         * modules/forkpty (Files): Distribute it.
49283         * modules/openpty (Files): Likewise.
49284         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.  Move decl
49285         check...
49286         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): ...here.  Request
49287         replacement for non-const BSD signature.
49288         * modules/pty (Makefile.am): Substitute witnesses.
49289         * lib/pty.in.h (forkpty, openpty): Declare replacements.
49290         * tests/test-forkpty.c: Update signature check.
49291         * tests/test-openpty.c: Likewise.
49292         * doc/glibc-functions/forkpty.texi (forkpty): Document the fix.
49293         * doc/glibc-functions/openpty.texi (openpty): Likewise.
49295         forkpty, openpty: split functions into new modules
49296         * modules/pty (Makefile.am): Substitute new witnesses.
49297         (Libraries): Move library detection...
49298         * modules/forkpty: ...into new module.
49299         * modules/openpty: Another new module.
49300         * modules/pty-tests: Rename and split...
49301         * modules/forkpty-tests: ...to this...
49302         * modules/openpty-tests: ...and this.
49303         * tests/test-pty.c: Rename and split...
49304         * tests/test-forkpty.c: ...to this...
49305         * tests/test-openpty.c: ...and this.
49306         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.
49307         (gl_PTY): Split library searching...
49308         * m4/pty.m4 (gl_PTY_LIB): ...into new file.
49309         (gl_FORKPTY, gl_OPENPTY): New macros.
49310         * lib/pty.in.h (forkpty, openpty): Honor new witnesses.
49311         * NEWS: Mention the split.
49312         * MODULES.html.sh (Misc): Document the modules.
49313         * doc/glibc-functions/forkpty.texi (forkpty): Likewise.
49314         * doc/glibc-functions/openpty.texi (openpty): Likewise.
49316         pty: improve replacement header
49317         * lib/pty.in.h: New file.
49318         * modules/pty (Files): Ship it.
49319         (Makefile.am): Always build replacement.
49320         * m4/pty.m4: Rename...
49321         * m4/pty_h.m4: ...to this.
49322         (gl_PTY): Modernize setting of witness macros; update check of
49323         forkpty to take proper advantage of cache.
49324         (gl_PTY_MODULE_INDICATOR, gl_PTY_H_DEFAULTS): New macros.
49326         getopt: avoid compiler warning
49327         * lib/getopt.c (attribute_hidden): Remove unused macro.
49329 2010-03-18  Bruno Haible  <bruno@clisp.org>
49331         Fix link errors on Solaris 8.
49332         * modules/iconv-h-tests (test_iconv_h_c___LDADD): Add LIB_NANOSLEEP.
49333         * modules/search-tests (test_search_c___LDADD): Likewise.
49334         * modules/signal-tests (test_signal_c___LDADD): Likewise.
49335         * modules/spawn-tests (test_spawn_c___LDADD): Likewise.
49336         * modules/stdio-tests (test_stdio_c___LDADD): Likewise.
49337         * modules/sys_select-tests (test_sys_select_c___LDADD): Likewise.
49338         * modules/sys_socket-tests (test_sys_socket_c___LDADD): Likewise.
49339         * modules/sys_time-tests (test_sys_time_c___LDADD): Likewise.
49340         * modules/wchar-tests (test_wchar_c___LDADD): Likewise.
49342 2010-03-18  Bruno Haible  <bruno@clisp.org>
49344         Fix bug introduced on 2010-03-14.
49345         * m4/spawn_h.m4 (gl_HAVE_POSIX_SPAWN): New macro.
49346         (gl_SPAWN_H): Require it.
49347         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Likewise.
49348         Reported by Simon Josefsson.
49350 2010-03-18  Bruno Haible  <bruno@clisp.org>
49352         Fix typo introduced on 2009-12-31.
49353         * m4/spawn_h.m4 (gl_SPAWN_H): Check for the declaration of
49354         posix_spawn_file_actions_adddup2.
49356 2010-03-17  Bert Wesarg  <bert.wesarg@googlemail.com>  (tiny change)
49357         and Eric Blake  <eblake@redhat.com>
49359         test-vc-list-files-git: make more robust
49360         * tests/test-vc-list-files-git.sh: Unset problematic environment
49361         variables.  Chain commands together.
49363 2010-03-17  Ludovic Courtès  <ludo@gnu.org>  (tiny change)
49365         * m4/pty.m4: Unset $ac_cv_have_decl_forkpty before the second
49366         `AC_CHECK_DECL' invocation.
49368 2010-03-15  Sergey Poznyakoff  <gray@gnu.org.ua>
49370         * lib/inttostr.c (inttostr): Make sure the invocation of verify
49371         appears before executable statements. Suggested by Petr Sumbera
49372         <Petr.Sumbera@Sun.COM>.
49374 2010-03-14  Bruno Haible  <bruno@clisp.org>
49376         * tests/test-flock.c (test_exclusive): Comment out a test that causes
49377         portability problems. Instead use a simpler test.
49378         (main): Check that invalid arguments are rejected only on Linux.
49380 2010-03-14  Bruno Haible  <bruno@clisp.org>
49382         Fix bug introduced on 2009-12-31.
49383         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
49384         gl_PREREQ_SYS_H_WINSOCK2 always.
49385         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise. Remove
49386         SYS_SOCKET_H variable.
49387         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Remove test for flock.
49388         Update comments.
49389         * m4/ctype.m4 (gl_CTYPE_H): Update comments.
49390         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
49391         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
49392         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
49393         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
49395 2010-03-14  Bruno Haible  <bruno@clisp.org>
49397         Fix values returned by sinl, cosl.
49398         * lib/trigl.h: Add specification comments.
49399         * lib/sincosl.c (kernel_sinl, kernel_cosl): Fix comments and formula
49400         that combines the values from the precomputed table with the values of
49401         the Chebyshev polynomials.
49403 2010-03-14  Bruno Haible  <bruno@clisp.org>
49405         Fix compilation error when modules 'posix_spawn[p]' are not used.
49406         * m4/spawn_h.m4 (gl_SPAWN_H): Set HAVE_POSIX_SPAWN here.
49407         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): ... not here.
49409 2010-03-14  Bruno Haible  <bruno@clisp.org>
49411         Fix compilation error on mingw when module 'time_r' is not used.
49412         * lib/time.in.h (localtime_r, gmtime_r): Declare only if GNULIB_TIME_R
49413         is 1.
49414         * tests/test-time-c++.cc (localtime_r, gmtime_r): Likewise.
49415         * modules/time_r (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
49416         * modules/time (Makefile.am): Substitute GNULIB_TIME_R.
49417         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_TIME_R.
49419 2010-03-14  Bruno Haible  <bruno@clisp.org>
49421         Fix compilation error with Sun C.
49422         * lib/strtol.c: Use LLONG_MIN instead of GCC specific LONG_LONG_MIN.
49423         Use LLONG_MAX instead of GCC specific LONG_LONG_MAX. Use ULLONG_MAX
49424         instead of GCC specific ULONG_LONG_MAX.
49425         * lib/xstrtoll.c: Likewise.
49426         * lib/xstrtoull.c: Likewise.
49428 2010-03-13  Bruno Haible  <bruno@clisp.org>
49430         Allow the user to disable C++ code and tests.
49431         * m4/ansi-c++.m4 (gl_CXX_CHOICE): New macro.
49432         (gl_PROG_ANSI_CXX): Require it.
49434 2010-03-13  Bruno Haible  <bruno@clisp.org>
49436         * DEPENDENCIES (libtool): Mention libtool 2.2.x requirement in special
49437         cases.
49439 2010-03-13  Bruno Haible  <bruno@clisp.org>
49441         Test that gnulib does not break the standard C++ headers.
49442         * tests/test-locale-c++2.cc: New file.
49443         * modules/locale-tests (Files): Add it.
49444         (Makefile.am): Compile it for test-locale-c++.
49445         * tests/test-math-c++2.cc: New file.
49446         * modules/math-tests (Files): Add it.
49447         (Makefile.am): Compile it for test-math-c++.
49448         * tests/test-signal-c++2.cc: New file.
49449         * modules/signal-tests (Files): Add it.
49450         (Makefile.am): Compile it for test-signal-c++.
49451         * tests/test-stdio-c++2.cc: New file.
49452         * modules/stdio-tests (Files): Add it.
49453         (Makefile.am): Compile it for test-stdio-c++.
49454         * tests/test-stdlib-c++2.cc: New file.
49455         * modules/stdlib-tests (Files): Add it.
49456         (Makefile.am): Compile it for test-stdlib-c++.
49457         * tests/test-string-c++2.cc: New file.
49458         * modules/string-tests (Files): Add it.
49459         (Makefile.am): Compile it for test-string-c++.
49460         * tests/test-time-c++2.cc: New file.
49461         * modules/time-tests (Files): Add it.
49462         (Makefile.am): Compile it for test-time-c++.
49463         Reported by John W. Eaton <jwe@gnu.org>.
49465 2010-03-13  Bruno Haible  <bruno@clisp.org>
49467         * gnulib-tool (func_usage): Clarify which options are available for
49468         --create-testdir and --create-megatestdir.
49470 2010-03-13  Bruno Haible  <bruno@clisp.org>
49472         Fix compilation error with glibc >= 2.10 and g++ >= 4.4.
49473         * build-aux/warn-on-use.h (_GL_WARN_ON_USE_CXX): New macro.
49474         * build-aux/c++defs.h (_GL_CXXALIASWARN1): New macro.
49475         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
49476         strstr, strcasestr): Use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN
49477         when appropriate.
49478         Reported by Jim Meyering.
49480 2010-03-12  Simon Josefsson  <simon@josefsson.org>
49482         * gnulib-tool (func_import): Explain origin of code.
49484 2010-03-12  Bruno Haible  <bruno@clisp.org>
49486         Fix problem with automake's definition of CXXLINK.
49487         * gnulib-tool (func_create_testdir): After LT_INIT, also use LT_LANG.
49488         Reported by Simon Josefsson and Ludovic Courtès.
49490 2010-03-12  Bruno Haible  <bruno@clisp.org>
49492         * doc/gnulib-intro.texi (Steady Development): Mention Ian Beckwith's
49493         stable releases.
49495 2010-03-11  Bruno Haible  <bruno@clisp.org>
49497         Fix problems with overloaded C++ definitions of memchr, strpbrk, etc.
49498         * build-aux/c++defs.h (_GL_CXXALIAS_SYS_CAST2): Make it work regardless
49499         whether the system provides one variant or multiple variants of the
49500         function.
49501         * lib/string.in.h (memchr, strpbrk): Use _GL_CXXALIAS_SYS_CAST2 for all
49502         C++ compilers.
49503         (memrchr, rawmemchr, strchrnul, strstr, strcasestr): Use
49504         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS.
49505         Reported by Jim Meyering.
49507 2010-03-09  Simon Josefsson  <simon@josefsson.org>
49509         * gnulib-tool (LIBTOOLPATH): Fix cut'n'paste bug.
49511 2010-03-08  Bruno Haible  <bruno@clisp.org>
49513         gnulib-tool: Add support for --libtool in --create-testdir.
49514         * gnulib-tool (LIBTOOLPATH, LIBTOOLIZE): New variables.
49515         (func_create_testdir): Emit LT_INIT invocations. Invoke LIBTOOLIZE.
49517 2010-03-08  Eric Blake  <eblake@redhat.com>
49519         gnulib-tool.texi: mention possibility of git submodule
49520         * doc/gnulib-tool.texi (VCS Issues): Add details about using git
49521         submodules.
49522         * doc/.gitignore: Ignore another generated file.
49524 2010-03-08  Karl Berry  <karl@gnu.org>
49526         * doc/gnulib-tool.texi (VCS Issues): Mention third option
49527         of committing gnulib files while skipping others.
49529 2010-03-07  Bruno Haible  <bruno@clisp.org>
49531         Tests of module 'wctype' in C++ mode.
49532         * tests/test-wctype-c++.cc: New file.
49533         * modules/wctype-tests (Files): Add it and tests/signature.h.
49534         (Depends-on): Add ansi-c++-opt.
49535         (Makefile.am): Arrange to compile and run test-wctype-c++.
49537         Tests of module 'wchar' in C++ mode.
49538         * tests/test-wchar-c++.cc: New file.
49539         * modules/wchar-tests (Files): Add it and tests/signature.h.
49540         (Depends-on): Add ansi-c++-opt.
49541         (Makefile.am): Arrange to compile and run test-wchar-c++.
49542         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Invoke
49543         gl_MODULE_INDICATOR.
49545         Tests of module 'unistd' in C++ mode.
49546         * tests/test-unistd-c++.cc: New file.
49547         * modules/unistd-tests (Files): Add it and tests/signature.h.
49548         (Depends-on): Add ansi-c++-opt.
49549         (Makefile.am): Arrange to compile and run test-unistd-c++.
49550         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Invoke
49551         gl_MODULE_INDICATOR.
49553         Tests of module 'time' in C++ mode.
49554         * tests/test-time-c++.cc: New file.
49555         * modules/time-tests (Files): Add it and tests/signature.h.
49556         (Depends-on): Add ansi-c++-opt.
49557         (Makefile.am): Arrange to compile and run test-time-c++.
49558         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
49560         Tests of module 'sys_time' in C++ mode.
49561         * tests/test-sys_time-c++.cc: New file.
49562         * modules/sys_time-tests (Files): Add it and tests/signature.h.
49563         (Depends-on): Add ansi-c++-opt.
49564         (Makefile.am): Arrange to compile and run test-sys_time-c++.
49565         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Invoke
49566         gl_MODULE_INDICATOR.
49568         Tests of module 'sys_stat' in C++ mode.
49569         * tests/test-sys_stat-c++.cc: New file.
49570         * modules/sys_stat-tests (Files): Add it and tests/signature.h.
49571         (Depends-on): Add ansi-c++-opt.
49572         (Makefile.am): Arrange to compile and run test-sys_stat-c++.
49573         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Invoke
49574         gl_MODULE_INDICATOR.
49576         Tests of module 'sys_socket' in C++ mode.
49577         * tests/test-sys_socket-c++.cc: New file.
49578         * modules/sys_socket-tests (Files): Add it and tests/signature.h.
49579         (Depends-on): Add ansi-c++-opt.
49580         (Makefile.am): Arrange to compile and run test-sys_socket-c++.
49581         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Invoke
49582         gl_MODULE_INDICATOR.
49584         Tests of module 'sys_select' in C++ mode.
49585         * tests/test-sys_select-c++.cc: New file.
49586         * modules/sys_select-tests (Files): Add it and tests/signature.h.
49587         (Depends-on): Add ansi-c++-opt.
49588         (Makefile.am): Arrange to compile and run test-sys_select-c++.
49589         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Invoke
49590         gl_MODULE_INDICATOR.
49592         Tests of module 'sys_ioctl' in C++ mode.
49593         * tests/test-sys_ioctl-c++.cc: New file.
49594         * modules/sys_ioctl-tests (Files): Add it and tests/signature.h.
49595         (Depends-on): Add ansi-c++-opt.
49596         (Makefile.am): Arrange to compile and run test-sys_ioctl-c++.
49597         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Invoke
49598         gl_MODULE_INDICATOR.
49600         Tests of module 'string' in C++ mode.
49601         * tests/test-string-c++.cc: New file.
49602         * modules/string-tests (Files): Add it and tests/signature.h.
49603         (Depends-on): Add ansi-c++-opt.
49604         (Makefile.am): Arrange to compile and run test-string-c++.
49605         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Invoke
49606         gl_MODULE_INDICATOR.
49608         Tests of module 'stdlib' in C++ mode.
49609         * tests/test-stdlib-c++.cc: New file.
49610         * modules/stdlib-tests (Files): Add it and tests/signature.h.
49611         (Depends-on): Add ansi-c++-opt.
49612         (Makefile.am): Arrange to compile and run test-stdlib-c++.
49613         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Invoke
49614         gl_MODULE_INDICATOR.
49616         Tests of module 'stdio' in C++ mode.
49617         * tests/test-stdio-c++.cc: New file.
49618         * modules/stdio-tests (Files): Add it and tests/signature.h.
49619         (Depends-on): Add ansi-c++-opt.
49620         (Makefile.am): Arrange to compile and run test-stdio-c++.
49621         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Invoke
49622         gl_MODULE_INDICATOR.
49624         Tests of module 'spawn' in C++ mode.
49625         * tests/test-spawn-c++.cc: New file.
49626         * modules/spawn-tests (Files): Add it and tests/signature.h.
49627         (Depends-on): Add ansi-c++-opt.
49628         (Makefile.am): Arrange to compile and run test-spawn-c++.
49629         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Invoke
49630         gl_MODULE_INDICATOR.
49632         Tests of module 'signal' in C++ mode.
49633         * tests/test-signal-c++.cc: New file.
49634         * modules/signal-tests (Files): Add it and tests/signature.h.
49635         (Depends-on): Add ansi-c++-opt.
49636         (Makefile.am): Arrange to compile and run test-signal-c++.
49637         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Invoke
49638         gl_MODULE_INDICATOR.
49640         Tests of module 'search' in C++ mode.
49641         * tests/test-search-c++.cc: New file.
49642         * modules/search-tests (Files): Add it and tests/signature.h.
49643         (Depends-on): Add ansi-c++-opt.
49644         (Makefile.am): Arrange to compile and run test-search-c++.
49645         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Invoke
49646         gl_MODULE_INDICATOR.
49648         Tests of module 'math' in C++ mode.
49649         * tests/test-math-c++.cc: New file.
49650         * modules/math-tests (Files): Add it and tests/signature.h.
49651         (Depends-on): Add ansi-c++-opt.
49652         (Makefile.am): Arrange to compile and run test-math-c++.
49653         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
49655         Tests of module 'locale' in C++ mode.
49656         * tests/test-locale-c++.cc: New file.
49657         * modules/locale-tests (Files): Add it and tests/signature.h.
49658         (Depends-on): Add ansi-c++-opt.
49659         (Makefile.am): Arrange to compile and run test-locale-c++.
49660         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Invoke
49661         gl_MODULE_INDICATOR.
49663         Tests of module 'langinfo' in C++ mode.
49664         * tests/test-langinfo-c++.cc: New file.
49665         * modules/langinfo-tests (Files): Add it and tests/signature.h.
49666         (Depends-on): Add ansi-c++-opt.
49667         (Makefile.am): Arrange to compile and run test-langinfo-c++.
49668         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Invoke
49669         gl_MODULE_INDICATOR.
49671         Tests of module 'iconv-h' in C++ mode.
49672         * tests/test-iconv-h-c++.cc: New file.
49673         * modules/iconv-h-tests (Files): Add it and tests/signature.h.
49674         (Depends-on): Add ansi-c++-opt.
49675         (Makefile.am): Arrange to compile and run test-iconv-h-c++.
49677         Tests of module 'glob' in C++ mode.
49678         * tests/test-glob-c++.cc: New file.
49679         * modules/glob-tests (Files): Add it.
49680         (Depends-on): Add ansi-c++-opt.
49681         (Makefile.am): Arrange to compile and run test-glob-c++.
49683         Tests of module 'fcntl-h' in C++ mode.
49684         * tests/test-fcntl-h-c++.cc: New file.
49685         * modules/fcntl-h-tests (Files): Add it and tests/signature.h.
49686         (Depends-on): Add ansi-c++-opt.
49687         (Makefile.am): Arrange to compile and run test-fcntl-h-c++.
49688         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Invoke
49689         gl_MODULE_INDICATOR.
49691         Tests of module 'dirent' in C++ mode.
49692         * tests/test-dirent-c++.cc: New file.
49693         * modules/dirent-tests (Files): Add it and tests/signature.h.
49694         (Depends-on): Add ansi-c++-opt.
49695         (Makefile.am): Arrange to compile and run test-dirent-c++.
49696         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
49697         gl_MODULE_INDICATOR.
49699         New module 'ansi-c++-opt'.
49700         * modules/ansi-c++-opt: New file.
49701         * m4/ansi-c++.m4: New file, from GNU gettext with modifications.
49703         Document C++ namespace mode.
49704         * doc/gnulib.texi (A C++ namespace for gnulib): New section.
49706         wctype: Avoid #define replacements in C++ mode.
49707         * lib/wctype.in.h: Include c++defs.h, warn-on-use.h.
49708         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower,
49709         iswprint, iswpunct, iswspace, iswupper, iswxdigit, towlower, towupper):
49710         In C++, define a namespaced alias symbol.
49711         * m4/wctype_h.m4 (gl_WCTYPE_H): Don't set WCTYPE_H.
49712         * modules/wctype (Depends-on): Add c++defs, warn-on-use.
49713         (Makefile.am): Provide a wctype.h replacement always. Update wctype.h
49714         rule.
49716         wchar: Avoid #define replacements in C++ mode.
49717         * lib/wchar.in.h: Include c++defs.h.
49718         (btowc, wctob, mbsinit, mbrtowc, mbrlen, mbsrtowcs, mbsnrtowcs,
49719         wcrtomb, wcsrtombs, wcsnrtombs): In C++, define a namespaced alias
49720         symbol.
49721         (wcwidth): Likewise. Fix prototype to be POSIX compliant.
49722         * modules/wchar (Depends-on): Add c++defs.
49723         (Makefile.am): Update wchar.h rule.
49725         unistd: Avoid #define replacements in C++ mode.
49726         * lib/unistd.in.h: Include c++defs.h.
49727         (chown, close, dup, dup2, dup3, euidaccess, faccessat, fchdir,
49728         fchownat, fsync, ftruncate, getcwd, getdomainname, getdtablesize,
49729         getgroups, gethostname, getlogin, getlogin_r, getpagesize,
49730         getusershell, setusershell, endusershell, lchown, link, linkat, lseek,
49731         pipe2, pread, readlink, readlinkat, rmdir, sleep, symlink, symlinkat,
49732         unlink, unlinkat, usleep, write): In C++, define a namespaced alias
49733         symbol.
49734         (environ): Update.
49735         * modules/unistd (Depends-on): Add c++defs.
49736         (Makefile.am): Update unistd.h rule.
49738         time: Avoid #define replacements in C++ mode.
49739         * lib/time.in.h: Include c++defs.h, warn-on-use.h.
49740         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): In C++,
49741         define a namespaced alias symbol.
49742         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): New macro.
49743         (gl_HEADER_TIME_H_DEFAULTS): Initialize also GNULIB_MKTIME,
49744         GNULIB_NANOSLEEP, GNULIB_STRPTIME, GNULIB_TIMEGM.
49745         * modules/time (Depends-on): Add c++defs, warn-on-use.
49746         (Makefile.am): Update time.h rule.
49747         * modules/mktime (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
49748         * modules/nanosleep (configure.ac): Likewise.
49749         * modules/strptime (configure.ac): Likewise.
49750         * modules/timegm (configure.ac): Likewise.
49752         sys_time: Avoid #define replacements in C++ mode.
49753         * lib/sys_time.in.h: Include c++defs.h.
49754         (gettimeofday): In C++, define a namespaced alias symbol.
49755         * modules/sys_time (Depends-on): Add c++defs.
49756         (Makefile.am): Update sys/time.h rule.
49758         sys_stat: Avoid #define replacements in C++ mode.
49759         * lib/sys_stat.in.h: Include c++defs.h.
49760         (fchmodat, fstat, fstatat, futimens, lchmod, lstat, mkdir, mkdirat,
49761         mkfifo, mkfifoat, mknod, mknodat, utimensat): In C++, define a
49762         namespaced alias symbol.
49763         In C++, define a namespaced alias symbol.
49764         * modules/sys_stat (Depends-on): Add c++defs.
49765         (Makefile.am): Update sys/stat.h rule.
49767         sys_socket: Avoid #define replacements in C++ mode.
49768         * lib/sys_socket.in.h: Handle the case of recursive include on Cygwin.
49769         Include c++defs.h. Include warn-on-use.h earlier. Enable the function
49770         definitions also when the system has a <sys/socket.h>.
49771         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
49772         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, accept4):
49773         In C++, define a namespaced alias symbol.
49774         * modules/sys_socket (Depends-on): Add c++defs.
49775         (Makefile.am): Update sys/socket.h rule.
49777         sys_select: Avoid #define replacements in C++ mode.
49778         * lib/sys_select.in.h: Include c++defs.h. Enable the function
49779         definitions also when the system has a <sys/select.h>.
49780         (select): In C++, define a namespaced alias symbol.
49781         * modules/sys_select (Depends-on): Add c++defs.
49782         (Makefile.am): Update sys/select.h rule.
49784         sys_ioctl: Avoid #define replacements in C++ mode.
49785         * lib/sys_ioctl.in.h: Include c++defs.h.
49786         (ioctl): In C++, define a namespaced alias symbol.
49787         * modules/sys_ioctl (Depends-on): Add c++defs.
49788         (Makefile.am): Update sys/ioctl.h rule.
49790         string: Avoid #define replacements in C++ mode.
49791         * lib/string.in.h: Include c++defs.h.
49792         (stpncpy): Define to rpl_stpncpy, not gnu_stpncpy.
49793         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
49794         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
49795         strcasestr, strtok_r, mbslen, mbschr, mbsrchr, mbspbrk, strerror,
49796         strsignal, strverscmp): In C++, define a namespaced alias symbol.
49797         * modules/string (Depends-on): Add c++defs.
49798         (Makefile.am): Update string.h rule.
49800         stdlib: Avoid #define replacements in C++ mode.
49801         * lib/stdlib.in.h: Include c++defs.h.
49802         (atoll, calloc, canonicalize_file_name, getloadavg, getsubopt, malloc,
49803         mkdtemp, mkostemp, mkostemps, mkstemp, mkstemps, putenv, random_r,
49804         srandom_r, initstate_r, setstate_r, realloc, realpath, rpmatch, setenv,
49805         strtod, strtoll, strtoull, unsetenv): In C++, define a namespaced alias
49806         symbol.
49807         * modules/stdlib (Depends-on): Add c++defs.
49808         (Makefile.am): Update stdlib.h rule.
49810         stdio: Avoid #define replacements in C++ mode.
49811         * lib/stdio.in.h: Include c++defs.h.
49812         (dprintf, fclose, fflush, fopen, fprintf, fpurge, fputc, fputs,
49813         freopen, fseek, fseeko, ftell, ftello, fwrite, getdelim, getline,
49814         obstack_printf, obstack_vprintf, perror, popen, printf, fputc, putchar,
49815         puts, remove, rename, renameat, snprintf, sprintf, asprintf, vasprintf,
49816         vdprintf, vfprintf, vprintf, vsnprintf, vsprintf): In C++, define a
49817         namespaced alias symbol.
49818         * modules/stdio (Depends-on): Add c++defs.
49819         (Makefile.am): Update stdio.h rule.
49821         spawn: Avoid #define replacements in C++ mode.
49822         * lib/spawn.in.h: Include c++defs.h.
49823         (posix_spawn, posix_spawnp, posix_spawnattr_init,
49824         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
49825         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
49826         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
49827         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
49828         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
49829         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
49830         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
49831         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
49832         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
49833         In C++, define a namespaced alias symbol.
49834         * modules/spawn (Depends-on): Add c++defs.
49835         (Makefile.am): Update spawn.h rule.
49837         signal: Avoid #define replacements in C++ mode.
49838         * lib/signal.in.h: Include c++defs.h.
49839         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
49840         sigpending, sigprocmask, signal, raise, sigaction): In C++, define a
49841         namespaced alias symbol.
49842         * modules/signal (Depends-on): Add c++defs.
49843         (Makefile.am): Update signal.h rule.
49845         search: Avoid #define replacements in C++ mode.
49846         * lib/search.in.h: Include c++defs.h.
49847         (_gl_search_compar_fn, _gl_search_action_fn): New types.
49848         (tsearch, tfind, tdelete, twalk): In C++, define a namespaced alias
49849         symbol.
49850         * modules/search (Depends-on): Add c++defs.
49851         (Makefile.am): Update search.h rule.
49853         math: Avoid #define replacements in C++ mode.
49854         * lib/math.in.h: Include c++defs.h.
49855         (frexp, acosl, asinl, atanl, ceilf, ceill, cosl, expl, floorf, floorl,
49856         frexpl, ldexpl, logl, roundf, round, roundl, sinl, sqrtl, tanl, truncf,
49857         trunc, truncl): In C++, define a namespaced alias symbol.
49858         * modules/math (Depends-on): Add c++defs.
49859         (Makefile.am): Update math.h rule.
49861         locale: Avoid #define replacements in C++ mode.
49862         * lib/locale.in.h: Include c++defs.h.
49863         (duplocale): In C++, define a namespaced alias symbol.
49864         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize HAVE_DUPLOCALE.
49865         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Set HAVE_DUPLOCALE.
49866         * modules/locale (Depends-on): Add c++defs.
49867         (Makefile.am): Update locale.h rule. Substitute HAVE_DUPLOCALE.
49869         langinfo: Avoid #define replacements in C++ mode.
49870         * lib/langinfo.in.h: Include c++defs.h.
49871         (nl_langinfo): In C++, define a namespaced alias symbol.
49872         * modules/langinfo (Depends-on): Add c++defs.
49873         (Makefile.am): Update langinfo.h rule.
49875         iconv-h: Avoid #define replacements in C++ mode.
49876         * lib/iconv.in.h: Include c++defs.h, warn-on-use.h.
49877         (iconv_open, iconv, iconv_close): In C++, define a namespaced alias
49878         symbol.
49879         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
49880         whenever iconv is present.
49881         * modules/iconv-h (Depends-on): Add c++defs, warn-on-use.
49882         (Makefile.am): Update iconv.h rule.
49884         glob: Avoid #define replacements in C++ mode.
49885         * lib/glob.in.h: Include c++defs.h, warn-on-use.h.
49886         (_gl_glob_errfunc_fn): New type.
49887         (glob, globfree, glob_pattern_p): In C++, define a namespaced alias
49888         symbol.
49889         * modules/glob (Depends-on): Add c++defs, warn-on-use.
49890         (Makefile.am): Update glob.h rule.
49892         fcntl-h: Avoid #define replacements in C++ mode.
49893         * lib/fcntl.in.h: Include c++defs.h.
49894         (fcntl, open, openat): In C++, define a namespaced alias symbol.
49895         * modules/fcntl-h (Depends-on): Add c++defs.
49896         (Makefile.am): Update fcntl.h rule.
49898         dirent: Avoid #define replacements in C++ mode.
49899         * lib/dirent.in.h: Include c++defs.h.
49900         (closedir, fdopendir, opendir, scandir, alphasort): In C++, define a
49901         namespaced alias symbol.
49902         (dirfd): Update declaration.
49903         * modules/dirent (Depends-on): Add c++defs.
49904         (Makefile.am): Update dirent.h rule.
49906         ctype: Make it usable in C++ code.
49907         * lib/ctype.in.h: Include c++defs.h.
49908         (isblank): Declare as extern "C".
49909         * modules/ctype (Depends-on): Add c++defs.
49910         (Makefile.am): Update ctype.h rule.
49912         New module 'c++defs'.
49913         * modules/c++defs: New file.
49914         * build-aux/c++defs.h: New file.
49915         Reported by John W. Eaton <jwe@gnu.org>.
49917 2010-03-07  Bruno Haible  <bruno@clisp.org>
49919         logb: Provide missing declaration for Cygwin.
49920         * lib/math.in.h (logb): New declaration.
49921         * m4/logb.m4: New file.
49922         * modules/logb (Files): Add m4/logb.m4.
49923         (Depends-on): Add math.
49924         (configure.ac): Invoke gl_FUNC_LOGB, gl_MATH_MODULE_INDICATOR.
49925         * m4/math_h.m4 (gl_MATH_H): Check also for logb declaration.
49926         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGB, HAVE_DECL_LOGB.
49927         * modules/math (Makefile.am): Substitute GNULIB_LOGB, HAVE_DECL_LOGB.
49928         * doc/posix-functions/logb.texi: Mention the Cygwin bug.
49930 2010-03-07  Bruno Haible  <bruno@clisp.org>
49932         Fix test-cond link error.
49933         * tests/test-cond.c: Include <stdio.h>.
49935 2010-03-07  Bruno Haible  <bruno@clisp.org>
49937         Fix test-dirent-safer link error.
49938         * modules/dirent-safer-tests (Makefile.am): Define
49939         test_dirent_safer_LDADD.
49941 2010-03-07  Bruno Haible  <bruno@clisp.org>
49943         * gnulib-tool (func_create_testdir): Don't use 'lib-ignore' module
49944         among default module list.
49946 2010-03-07  Bruno Haible  <bruno@clisp.org>
49948         Fix link error on platforms with GNU libiconv.
49949         * modules/unistr/u8-strcoll-tests (Makefile): Define
49950         test_u8_strcoll_LDADD.
49951         * modules/unistr/u16-strcoll-tests (Makefile): Define
49952         test_u16_strcoll_LDADD.
49953         * modules/unistr/u32-strcoll-tests (Makefile): Define
49954         test_u32_strcoll_LDADD.
49956 2010-03-07  Bruno Haible  <bruno@clisp.org>
49958         Use POSIX declarations for socket functions.
49959         * lib/sys_socket.in.h (rpl_connect, rpl_accept, rpl_bind,
49960         rpl_getpeername, rpl_getsockname, rpl_recv, rpl_send, rpl_recvfrom,
49961         rpl_sendto): Change declaration to match POSIX.
49962         * lib/connect.c (rpl_connect): Likewise.
49963         * lib/accept.c (rpl_accept): Likewise.
49964         * lib/bind.c (rpl_bind): Likewise.
49965         * lib/getpeername.c (rpl_getpeername): Likewise.
49966         * lib/getsockname.c (rpl_getsockname): Likewise.
49967         * lib/recv.c (rpl_recv): Likewise.
49968         * lib/send.c (rpl_send): Likewise.
49969         * lib/recvfrom.c (rpl_recvfrom): Likewise.
49970         * lib/sendto.c (rpl_sendto): Likewise.
49972 2010-03-06  Bruno Haible  <bruno@clisp.org>
49974         Clarify access, euidaccess, faccessat.
49975         * doc/posix-functions/faccessat.texi: Mention security problem under
49976         "Other problems", not "Portability problems".
49977         * doc/posix-functions/access.texi: Likewise. Mention a related security
49978         problem.
49979         * doc/glibc-functions/euidaccess.texi: Mention security problems.
49980         * lib/euidaccess.c: Add comments about platforms.
49981         * lib/unistd.in.h (access, euidaccess): Add warnings.
49983 2010-03-07  Bruno Haible  <bruno@clisp.org>
49985         Ensure posix_spawnattr_{get,set}sched{policy,param} are defined.
49986         * lib/spawn.in.h (POSIX_SPAWN_SETSCHEDPARAM): Define fallback.
49987         (POSIX_SPAWN_SETSCHEDULER): Likewise.
49988         (POSIX_SPAWN_USEVFORK): Define in a way that works when
49989         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
49990         (posix_spawnattr_getschedpolicy, posix_spawnattr_setschedpolicy): Also
49991         declare when POSIX_SPAWN_SETSCHEDULER is zero.
49992         (posix_spawnattr_getschedparam, posix_spawnattr_setschedparam): Also
49993         declare when POSIX_SPAWN_SETSCHEDPARAM is zero.
49994         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Test whether
49995         POSIX_SPAWN_SETSCHEDULER or POSIX_SPAWN_SETSCHEDPARAM are zero.
49996         * modules/posix_spawnattr_getschedparam (configure.ac): Enable the
49997         replacement also when POSIX_SPAWN_SETSCHEDPARAM is zero.
49998         * modules/posix_spawnattr_setschedparam (configure.ac): Likewise.
49999         * modules/posix_spawnattr_getschedpolicy (configure.ac): Enable the
50000         replacement also when POSIX_SPAWN_SETSCHEDULER is zero.
50001         * modules/posix_spawnattr_setschedpolicy (configure.ac): Likewise.
50002         * lib/spawnattr_getschedparam.c (posix_spawnattr_getschedparam): Do
50003         nothing if POSIX_SPAWN_SETSCHEDPARAM is zero.
50004         * lib/spawnattr_setschedparam.c (posix_spawnattr_setschedparam):
50005         Likewise.
50006         * lib/spawnattr_getschedpolicy.c (posix_spawnattr_getschedpolicy): Do
50007         nothing if POSIX_SPAWN_SETSCHEDULER is zero.
50008         * lib/spawnattr_setschedpolicy.c (posix_spawnattr_setschedpolicy):
50009         Likewise.
50010         * tests/test-spawn.c (main): Make it work when
50011         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
50013 2010-03-07  Bruno Haible  <bruno@clisp.org>
50015         Fix incorrect Makefile.am generation in German locale.
50016         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
50017         Execute sed command with character range in C locale.
50019 2010-03-06  Bruno Haible  <bruno@clisp.org>
50021         Tests for module 'iconv-h'.
50022         * modules/iconv-h-tests: New file.
50023         * tests/test-iconv-h.c: New file.
50025         New module 'iconv-h'.
50026         * modules/iconv-h: New file.
50027         * modules/iconv_open (Files): Remove lib/iconv.in.h, m4/iconv_h.m4.
50028         (Depends-on): Add iconv-h. Remove include_next, arg-nonnull.
50029         (configure.ac): Remove gl_ICONV_H.
50030         (Makefile.am): Remove rule for iconv.h.
50032 2010-03-06  Bruno Haible  <bruno@clisp.org>
50034         More consistent naming of *.m4 files.
50035         * m4/wctype_h.m4: Renamed from m4/wctype.m4.
50036         * modules/wctype (Files): Update.
50038         More consistent naming of *.m4 files.
50039         * m4/wchar_h.m4: Renamed from m4/wchar.m4.
50040         * modules/wchar (Files): Update.
50042 2010-03-06  Jim Meyering  <meyering@redhat.com>
50044         euidaccess: relax license to LGPLv2+
50045         * modules/euidaccess (License): Relax to LGPLv2+.
50047 2010-03-06  Bruno Haible  <bruno@clisp.org>
50049         Prefer lib_SOURCES over unconditional AC_LIBOBJ.
50050         * modules/exitfail (configure.ac): Remove AC_LIBOBJ invocation.
50051         (Makefile.am): Augment lib_SOURCES instead.
50053 2010-03-04  Jim Meyering  <meyering@redhat.com>
50055         utime: remove obsolete module
50056         This module, like autoconf's AC_FUNC_UTIME_NULL macro, has been
50057         unnecessary for years, and has been marked as obsolete for 10 months.
50058         * modules/utime: Remove file.
50059         * lib/utime.c: Remove file.
50060         * m4/utime.m4: Remove file.
50061         * m4/utimes-null.m4: Remove file.
50062         * doc/posix-functions/utime.texi (utime): Remove reference to
50063         the module.  Move the sole "fixed by gnulib" item into the
50064         "problems not fixed by Gnulib" list.
50065         * MODULES.html.sh (func_all_modules): Remove reference to "utime".
50067 2010-03-05  Simon Josefsson  <simon@josefsson.org>
50069         * modules/exit (License): Relax license to LGPLv2+.
50070         (Status): Mark as obsolete.
50071         * NEWS: Mention deprecated 'exit' module.
50072         * doc/posix-functions/exit.texi: Recommend 'stdlib' module instead
50073         of now obsolete 'exit'.
50075 2010-03-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50077         fts-lgpl: remove unused module
50078         * modules/fts-lgpl: Remove.
50079         * MODULES.html.sh (func_all_modules): Adjust.
50080         * check-module (find_included_lib_files): Adjust.
50081         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove.
50083 2010-03-02  Ben Walton  <bwalton@artsci.utoronto.ca>  (tiny change)
50085         copy-acl: enhance Solaris ACL error handling
50086         * lib/copy-acl.c (qcopy_acl): Also ignore EOPNOTSUPP.
50087         * lib/set-mode-acl.c (qset_acl): Likewise.
50089 2010-03-02  Bruno Haible  <bruno@clisp.org>
50091         spawn: Don't override the system defined values on FreeBSD 8.
50092         * lib/spawn.in.h (POSIX_SPAWN_RESETIDS, POSIX_SPAWN_SETPGROUP,
50093         POSIX_SPAWN_SETSIGDEF, POSIX_SPAWN_SETSIGMASK,
50094         POSIX_SPAWN_SETSCHEDPARAM, POSIX_SPAWN_SETSCHEDULER): Don't redefine
50095         if HAVE_POSIX_SPAWN is 1.
50096         Reported by Johan van Selst <johans@stack.nl> via Eric Blake.
50098 2010-03-01  Bruno Haible  <bruno@clisp.org>
50100         * doc/gnulib-tool.texi (Initial import): Clarify the requirements
50101         regarding Automake.
50103 2010-02-25  Bruno Haible  <bruno@clisp.org>
50105         Fix breakage of gnulib-tool with ksh, introduced on 2010-02-21.
50106         * gnulib-tool: Define 'echo' as a function only before the ksh alias
50107         setting, not afterwards.
50108         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
50110 2010-02-24  Eric Blake  <eblake@redhat.com>
50112         bootstrap, git-version-gen: use timestamp
50113         * build-aux/git-version-gen (scriptversion): Force UTC.
50114         * build-aux/bootstrap (scriptversion): New variable.
50116         bootstrap: allow older git
50117         * build-aux/bootstrap (GNULIB_SRCDIR): Add fallback if git is
50118         older than 1.6.4.  Requested by the libvirt project.
50120 2010-02-23  Eric Blake  <eblake@redhat.com>
50122         warn-on-use: work with old autoconf
50123         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Accomodate older
50124         AS_VAR semantics of autoconf 2.60.
50125         Reported by Bruno Haible.
50127         bootstrap: improve some comments
50128         * build-aux/bootstrap: Drop unneeded emacs hint.  Add some
50129         clarification comments.
50131         gettimeofday: provide correct function
50132         * lib/gettimeofday.c (gettimeofday): Provide rpl_gettimeofday only
50133         when replacement is declared, otherwise provide gettimeofday.
50134         Reported by Michael Goffioul.
50136 2010-02-23  Jim Meyering  <meyering@redhat.com>
50138         lib-ignore: relax license to "unlimited", not LGPLv2+
50139         * modules/lib-ignore (License): Relax to "unlimited".
50141 2010-02-23  Jim Meyering  <meyering@redhat.com>
50143         lib-ignore: relax license to LGPLv2+
50144         * modules/lib-ignore (License): Relax to LGPLv2+.
50146 2010-02-22  Eric Blake  <eblake@redhat.com>
50148         lseek: avoid bash 3.2 broken pipe bug
50149         * m4/lseek.m4 (gl_FUNC_LSEEK): Drain pipe, to avoid spurious
50150         warning from bash 3.2.
50151         Reported by Ben Pfaff, with analysis from Bruno Haible.
50153         bootstrap: support non-FSF copyright holder
50154         * build-aux/bootstrap (COPYRIGHT_HOLDER, with_gettext): Allow
50155         bootstrap.conf override of COPYRIGHT_HOLDER.
50156         (MSGID_BUGS_ADDRESS): Allow URL rather than email.
50158         bootstrap: interoperate with gettext 0.14.1
50159         * build-aux/bootstrap (slurp): Fix typo when using older gettext.
50161         bootstrap: allow for alternate submodule location
50162         * build-aux/bootstrap (gnulib_path): New variable; use instead of
50163         hardcoding submodule location.
50164         (gnulib_mk): Allow direct use of Makefile.am.
50166         bootstrap: use GNULIB_SRCDIR to reduce disk usage
50167         * build-aux/bootstrap (GNULIB_SRCDIR): If set, use as a reference,
50168         rather than reconfiguring where the submodule points.
50170         gettimeofday: restore support for platforms that lack function
50171         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Also compile
50172         replacement if function is missing.
50173         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS): New witness.
50174         * modules/sys_time (Makefile.am): Substitute it.
50175         * lib/sys_time.in.h (gettimeofday): Check it.
50176         Reported by Michael Goffioul.
50178 2010-02-21  Bruno Haible  <bruno@clisp.org>
50180         * lib/stdio.in.h (obstack_printf): Fix typo.
50182 2010-02-21  Jose E. Marchesi  <jemarch@gnu.org>
50184         vc-list-files: use bzr ls's -R option
50185         * build-aux/vc-list-files: Invoke bazaar to generate a recursive
50186         list of versioned files based on 'dir' (usage of -R in 'bzr ls').
50188 2010-02-21  Jim Meyering  <meyering@redhat.com>
50190         init.sh: fix EXEEXT shims to work also for names like test-prog
50191         * tests/init.sh: Re-exec a better shell, when needed.
50192         If the current shell lacks support for posix $(...), an init.sh-using
50193         test will now try to find a shell that supports that.  If EXEEXT is
50194         nonempty, we also require support for hyphen-in-alias-name and shell
50195         substitutions like ${var#glob}.  Failure to find such a shell results
50196         in a skipped test.
50198 2010-02-21  Bruno Haible  <bruno@clisp.org>
50200         Really work around "broken pipe" error message from bash 3.2.
50201         * gnulib-tool (func_reset_sigpipe): Remove function.
50202         (echo): In bash 3.2, define to a function that uses printf.
50203         Analyzed by Ralf Wildenhues, Chet Ramey, Ben Pfaff.
50205 2010-02-20  Bruno Haible  <bruno@clisp.org>
50207         Restore support for automake 1.9.6 with autoconf 2.61.
50208         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Ensure MKDIR_P is AC_SUBSTed.
50209         Reported by James Youngman <jay@gnu.org>.
50211 2010-02-20  Bruno Haible  <bruno@clisp.org>
50213         Improve *printf warning condition.
50214         * lib/stdio.in.h (fprintf, printf, vfprintf, vprintf): Emit warning
50215         also if GNULIB_POSIXCHECK is defined, the *-posix module is not used,
50216         and the function is overridden due to SIGPIPE emulation.
50218 2010-02-20  Bruno Haible  <bruno@clisp.org>
50220         * lib/stdio.in.h: Tweak comments.
50222 2010-02-19  Bruno Haible  <bruno@clisp.org>
50224         Make it easier to find modules. New gnulib-tool option '--find'.
50225         * gnulib-tool: New option --find.
50226         (func_usage): Document it.
50227         (func_sanitize_modulelist): New function, extracted from
50228         func_all_modules.
50229         (func_all_modules): Invoke it.
50230         * doc/gnulib-tool.texi (Which modules?): New node.
50232 2010-02-18  Markus Duft  <mduft@gentoo.org>  (tiny change)
50234         * lib/sys_select.in.h: Provide select replacement even if
50235         sys/select.h exists on a system, for Interix.
50237 2010-02-18  Jim Meyering  <meyering@redhat.com>
50239         init.sh: don't use $(...) just yet
50240         * tests/init.sh (create_exe_shim_functions_): Use `...`, not $(...),
50241         to accommodate e.g., Solaris' /bin/sh.
50243 2010-02-17  Bruno Haible  <bruno@clisp.org>
50245         * doc/posix-headers/netdb.texi: Mention NetBSD 5.0 problem.
50246         Reported by Ludovic Courtès <ludo@gnu.org>.
50248 2010-02-16  Simon Josefsson  <simon@josefsson.org>
50250         * modules/userspec-tests (test_userspec_LDADD): Add variable, for
50251         linking with -lintl.
50253 2010-02-17  Simon Josefsson  <simon@josefsson.org>
50255         * lib/netdb.in.h (AI_V4MAPPED, AI_ALL, AI_ADDRCONFIG): Define to 0
50256         if not provided by the system's netdb.h.  Reported by
50257         ludo@gnu.org (Ludovic Courtès).
50259 2010-02-15  Jim Meyering  <meyering@redhat.com>
50261         init.sh: improve portability and efficiency
50262         * tests/init.sh (find_exe_basenames_): Remove unnecessary use of
50263         "dummy" in a for loop.
50264         Use '!', not '^' to select the complement of a character set used
50265         in a "case" statement.
50266         Use shell variable manipulation, a la ${...%.exe}, rather than sed.
50267         Suggestions from Eric Blake.
50269         init.sh: automatically accommodate programs with the .exe suffix
50270         Automatically arrange for an invocation of "prog" to execute the
50271         program named "prog$EXEEXT" (usually prog.exe).  Thus, all invocations
50272         may use the simpler "prog", yet still work when built on a system
50273         that requires specifying the added suffix.
50274         Do this by constructing a function named "prog" that invokes
50275         "prog.exe" for each .exe file in selected directories.
50276         * tests/init.sh (find_exe_basenames_): New function.
50277         (create_exe_shim_functions_): New function.
50278         (path_prepend_): Use it.
50280         maint.mk: mark syntax-check sc_*.m rules as .PHONY
50281         * top/maint.mk ($(syntax-check-rules)): Add .PHONY, so that
50282         "make -t syntax-check" doesn't create a ton of sc_*.m files.
50284 2010-02-14  Jim Meyering  <meyering@redhat.com>
50286         maint.mk: prohibit inclusion of "hash-pjw.h" without_use
50287         * top/maint.mk (sc_prohibit_hash_without_use): Re-add "@".
50288         (sc_prohibit_hash_pjw_without_use): New rule.
50290         maint.mk: allow the default upload destination dir to be overridden
50291         * top/maint.mk (upload_dest_dir_): Define with a default that
50292         preserves the status quo.
50293         (emit_upload_commands): Use it, rather than hard-coding $(PACKAGE).
50294         Reported by Peter Simons.
50296         maint.mk: prohibit inclusion of "hash.h" without_use
50297         * top/maint.mk (sc_prohibit_hash_without_use): New rule.
50299 2010-02-10  Jim Meyering  <meyering@redhat.com>
50301         maint.mk: prohibit inclusion of "ignore-value.h" without_use
50302         * top/maint.mk (sc_prohibit_ignore_value_without_use): New rule.
50304 2010-02-09  Eric Blake  <ebb9@byu.net>
50305         and Bruno Haible  <bruno@clisp.org>
50307         obstack-printf-posix: ensure declaration
50308         * m4/obstack-printf.m4 (gl_DECL_OBSTACK_PRINTF): New macro,
50309         extracted from gl_FUNC_OBSTACK_PRINTF.
50310         (gl_FUNC_OBSTACK_PRINTF): Invoke it.
50311         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
50312         Likewise.
50313         * lib/stdio.in.h (obstack_printf, obstack_vprintf): Declare also
50314         if GNULIB_OBSTACK_PRINTF_POSIX is 1 and GNULIB_OBSTACK_PRINTF is
50315         0.
50317 2010-02-08  Bruno Haible  <bruno@clisp.org>
50319         gnulib-tool: Fix typo in 2010-02-07 commit.
50320         * gnulib-tool (func_get_dependencies): Fix typo in last commit.
50321         Reported by Eric Blake.
50323 2010-02-07  Bruno Haible  <bruno@clisp.org>
50325         gnulib-tool: Fix up caching patches.
50326         * gnulib-tool: New options --cache-modules, --no-cache-modules. Remove
50327         option --no-cache. Use associative arrays when supported by the shell.
50328         (sed_comments): New variable.
50329         (modcache): Renamed from do_cache.
50330         (sed_extract_field_header): Renamed from sed_extract_cache_prog. Don't
50331         abbreviate unnecessarily.
50332         (have_associative): New variable.
50333         (func_cache_var): Define correctly for bash 1.x. Define in an optimized
50334         way also for ksh and zsh.
50335         (func_init_sed_convert_to_cache_statements): New function, extracted
50336         from func_cache_lookup_module. Add support for associative arrays.
50337         Don't set the c_MODULE_cached variable here. Ignore all lines before
50338         the first field header. Remove only the final newline, not all trailing
50339         newlines. Support empty fields correctly. Limit the use of 'eval' to
50340         assignments.
50341         (func_get_description, func_get_status, func_get_notice,
50342         func_get_applicability, func_get_filelist, func_get_dependencies,
50343         func_get_autoconf_early_snippet, func_get_autoconf_snippet,
50344         func_get_automake_snippet, func_get_include_directive,
50345         func_get_link_directive, func_get_license, func_get_maintainer):
50346         Update documentation. List the unoptimized code first. Add support for
50347         associative arrays. Limit the use of 'eval' to assignments.
50348         (func_get_applicability): Undo stylistic pessimisations.
50349         (func_get_automake_snippet, func_get_include_directive): Reduce code
50350         duplication.
50351         (func_modules_transitive_closure, func_modules_add_dummy,
50352         func_modules_notice, func_modules_to_filelist, func_add_file,
50353         func_update_file, func_emit_lib_Makefile_am, func_emit_po_Makevars,
50354         func_emit_po_POTFILES_in, func_emit_tests_Makefile_am, func_import,
50355         func_create_testdir, func_create_megatestdir): Update documentation.
50357 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50359         * gnulib-tool (func_cache_lookup_module): Store the module name
50360         belonging to the cache variable; error out if two different
50361         module names map to the same cache variable name.
50363 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50365         gnulib-tool: Make caching optional.
50366         * gnulib-tool: Accept option --no-cache, turning off $do_cache.
50367         Update matching short versions of --no-changelog.
50368         (func_usage): Update.
50369         (sed_extract_cache_prog): Renamed from ...
50370         (sed_extract_prog): ... this; revert to old extraction script.
50371         (func_get_description, func_get_status)
50372         (func_get_notice, func_get_applicability, func_get_filelist)
50373         (func_get_dependencies, func_get_autoconf_early_snippet)
50374         (func_get_autoconf_snippet, func_get_automake_snippet)
50375         (func_get_include_directive, func_get_link_directive)
50376         (func_get_license, func_get_maintainer): If $do_cache is false,
50377         use old, non-caching extraction scripts.
50378         Suggestion by Bruno Haible.
50380 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50382         gnulib-tool: cache module metainformation.
50383         * gnulib-tool (sed_extract_prog): Match newline before each
50384         header, and rewrite header to a shell variable suffix.
50385         (func_cache_var, func_cache_lookup_module): New functions,
50386         to turn a module name into a cache variable prefix, and to
50387         look up and cache module metainformation.
50388         (func_get_description, func_get_status)
50389         (func_get_notice, func_get_applicability, func_get_filelist)
50390         (func_get_dependencies, func_get_autoconf_early_snippet)
50391         (func_get_autoconf_snippet, func_get_automake_snippet)
50392         (func_get_include_directive, func_get_link_directive)
50393         (func_get_license, func_get_maintainer): Use
50394         func_cache_lookup_module.
50396 2010-02-07  Bruno Haible  <bruno@clisp.org>
50398         fnctl: Fix missing dependency.
50399         * modules/fcntl (Depends-on): Add getdtablesize.
50400         Reported by John W. Eaton <jwe@gnu.org>.
50402 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
50404         Argp: fix recognition of short alias options.
50406         * lib/argp-parse.c (convert_options): Fix improper use of
50407         `|' between character values.
50408         * tests/test-argp.c (group1_option): New alias option
50409         --read (-r).
50410         (group1_parser): Special handling for 'r'.
50411         (test15): New test case.
50412         (test_fun): Add test15.
50413         * tests/test-argp-2.sh: Update expected --help and --usage
50414         outputs.
50416 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
50418         * tests/test-argp.c: Fix indentation.
50420 2010-02-04  Eric Blake  <ebb9@byu.net>
50422         gettimeofday: expose type of second argument
50423         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Do better detection
50424         of glibc extension signature, and define GETTIMEOFDAY_TIMEZONE.
50425         * tests/test-gettimeofday.c: Use it to silence warning.
50426         * doc/posix-functions/gettimeofday.texi (gettimeofday): Document
50427         the issue.
50429 2010-02-03  Jim Meyering  <meyering@redhat.com>
50431         regcomp.c: avoid the sole warning from gcc's -Wtype-limits
50432         * lib/regcomp.c (TYPE_SIGNED): Define.
50433         (parse_dup_op): Use it to avoid the sole warning from -Wtype-limits.
50435         regcomp.c: avoid a new -Wshadow warning
50436         * lib/regcomp.c (create_initial_state): Do not shadow local "err".
50438 2010-02-01  Jim Meyering  <meyering@redhat.com>
50440         removing useless parentheses in cpp #define directives
50441         For motivation, see commit c0221df4, "define STREQ(a,b)
50442         consistently, removing useless parentheses"
50443         * lib/memcmp.c (CMP_LT_OR_GT): Remove useless parentheses.
50444         * lib/mountlist.c (MNT_IGNORE): Likewise.
50445         * lib/trim.h (trim, trim_trailing, trim_leading): Likewise.
50447 2010-02-01  Eric Blake  <ebb9@byu.net>
50449         sys_time: use link-warning
50450         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Split defaults...
50451         (gl_HEADER_SYS_TIME_H_DEFAULTS): ...into new macro.
50452         (gl_SYS_TIME_MODULE_INDICATOR): New macro.
50453         * modules/sys_time (Depends-on): Add warn-on-use.
50454         (Makefile.am): Always build replacement.
50455         (configure.ac): Update substitutions.
50456         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY)
50457         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Include defaults, and no longer
50458         bother with SYS_TIME_H.
50459         * modules/gettimeofday (configure.ac): Declare indicator.
50460         * lib/sys_time.in.h (gettimeofday): Warn if gnulib module is not
50461         in use.
50463         closein-tests: silence compiler warning
50464         * tests/test-closein.c (main): Ignore fread result.
50465         * modules/closein-tests (Depends-on): Add ignore-value.
50467         tests: silence warning about system return
50468         * tests/test-areadlink-with-size.c (main): Ignore system result.
50469         * tests/test-areadlink.c (main): Likewise.
50470         * tests/test-areadlinkat-with-size.c (main): Likewise.
50471         * tests/test-areadlinkat.c (main): Likewise.
50472         * tests/test-canonicalize-lgpl.c (main): Likewise.
50473         * tests/test-canonicalize.c (main): Likewise.
50474         * tests/test-chown.c (main): Likewise.
50475         * tests/test-fchownat.c (main): Likewise.
50476         * tests/test-fdutimensat.c (main): Likewise.
50477         * tests/test-fstatat.c (main): Likewise.
50478         * tests/test-futimens.c (main): Likewise.
50479         * tests/test-lchown.c (main): Likewise.
50480         * tests/test-link.c (main): Likewise.
50481         * tests/test-linkat.c (main): Likewise.
50482         * tests/test-lstat.c (main): Likewise.
50483         * tests/test-mkdir.c (main): Likewise.
50484         * tests/test-mkdirat.c (main): Likewise.
50485         * tests/test-mkfifo.c (main): Likewise.
50486         * tests/test-mkfifoat.c (main): Likewise.
50487         * tests/test-mknod.c (main): Likewise.
50488         * tests/test-readlink.c (main): Likewise.
50489         * tests/test-remove.c (main): Likewise.
50490         * tests/test-rename.c (main): Likewise.
50491         * tests/test-renameat.c (main): Likewise.
50492         * tests/test-rmdir.c (main): Likewise.
50493         * tests/test-symlink.c (main): Likewise.
50494         * tests/test-symlinkat.c (main): Likewise.
50495         * tests/test-unlink.c (main): Likewise.
50496         * tests/test-unlinkat.c (main): Likewise.
50497         * tests/test-utimens.c (main): Likewise.
50498         * tests/test-utimensat.c (main): Likewise.
50499         * modules/areadlink-tests (Depends-on): Add ignore-value.
50500         * modules/areadlink-with-size-tests (Depends-on): Likewise.
50501         * modules/areadlinkat-tests (Depends-on): Likewise.
50502         * modules/areadlinkat-with-size-tests (Depends-on): Likewise.
50503         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
50504         * modules/canonicalize-tests (Depends-on): Likewise.
50505         * modules/chown-tests (Depends-on): Likewise.
50506         * modules/fdutimensat-tests (Depends-on): Likewise.
50507         * modules/futimens-tests (Depends-on): Likewise.
50508         * modules/lchown-tests (Depends-on): Likewise.
50509         * modules/link-tests (Depends-on): Likewise.
50510         * modules/linkat-tests (Depends-on): Likewise.
50511         * modules/lstat-tests (Depends-on): Likewise.
50512         * modules/mkdir-tests (Depends-on): Likewise.
50513         * modules/mkfifo-tests (Depends-on): Likewise.
50514         * modules/mkfifoat-tests (Depends-on): Likewise.
50515         * modules/mknod-tests (Depends-on): Likewise.
50516         * modules/openat-tests (Depends-on): Likewise.
50517         * modules/readlink-tests (Depends-on): Likewise.
50518         * modules/remove-tests (Depends-on): Likewise.
50519         * modules/rename-tests (Depends-on): Likewise.
50520         * modules/renameat-tests (Depends-on): Likewise.
50521         * modules/rmdir-tests (Depends-on): Likewise.
50522         * modules/symlink-tests (Depends-on): Likewise.
50523         * modules/symlinkat-tests (Depends-on): Likewise.
50524         * modules/unlink-tests (Depends-on): Likewise.
50525         * modules/utimens-tests (Depends-on): Likewise.
50526         * modules/utimensat-tests (Depends-on): Likewise.
50528 2010-01-31  Bruno Haible  <bruno@clisp.org>
50530         Perform the same test for many <math.h> functions.
50531         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC,
50532         gl_COMMON_DOUBLE_MATHFUNC_TEST): New macros.
50533         * m4/sqrt.m4 (gl_FUNC_SQRT): Invoke gl_COMMON_DOUBLE_MATHFUNC instead
50534         of gl_MATHFUNC.
50535         * modules/acos (configure.ac): Likewise.
50536         * modules/asin (configure.ac): Likewise.
50537         * modules/atan (configure.ac): Likewise.
50538         * modules/atan2 (configure.ac): Likewise.
50539         * modules/cbrt (configure.ac): Likewise.
50540         * modules/copysign (configure.ac): Likewise.
50541         * modules/cos (configure.ac): Likewise.
50542         * modules/cosh (configure.ac): Likewise.
50543         * modules/erf (configure.ac): Likewise.
50544         * modules/erfc (configure.ac): Likewise.
50545         * modules/exp (configure.ac): Likewise.
50546         * modules/fmod (configure.ac): Likewise.
50547         * modules/hypot (configure.ac): Likewise.
50548         * modules/j0 (configure.ac): Likewise.
50549         * modules/j1 (configure.ac): Likewise.
50550         * modules/jn (configure.ac): Likewise.
50551         * modules/lgamma (configure.ac): Likewise.
50552         * modules/log (configure.ac): Likewise.
50553         * modules/log10 (configure.ac): Likewise.
50554         * modules/log1p (configure.ac): Likewise.
50555         * modules/pow (configure.ac): Likewise.
50556         * modules/remainder (configure.ac): Likewise.
50557         * modules/sin (configure.ac): Likewise.
50558         * modules/sinh (configure.ac): Likewise.
50559         * modules/tan (configure.ac): Likewise.
50560         * modules/tanh (configure.ac): Likewise.
50561         * modules/y0 (configure.ac): Likewise.
50562         * modules/y1 (configure.ac): Likewise.
50563         * modules/yn (configure.ac): Likewise.
50564         Suggested by Paolo Bonzini.
50566 2010-01-31  Bruno Haible  <bruno@clisp.org>
50568         * m4/getline.m4 (gl_FUNC_GETLINE): Add comment about REPLACE_GETLINE.
50570 2010-01-31  Bruno Haible  <bruno@clisp.org>
50572         Work around getdelim() bug on FreeBSD 8.0.
50573         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Test whether getdelim supports an
50574         initially NULL line. Set REPLACE_GETDELIM if getdelim exists but does
50575         not work.
50576         * lib/stdio.in.h (getdelim): Define as an alias if REPLACE_GETDELIM
50577         is 1.
50578         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize REPLACE_GETDELIM.
50579         * modules/stdio (Makefile.am): Also substitute REPLACE_GETDELIM.
50580         * tests/test-getdelim.c (main): Also test result for a NULL buffer and
50581         a non-zero size.
50582         * doc/posix-functions/getdelim.texi: Mention the FreeBSD bug.
50584 2010-01-31  Bruno Haible  <bruno@clisp.org>
50586         Work around getline() bug on FreeBSD 8.0.
50587         * m4/getline.m4 (gl_FUNC_GETLINE): Also test result for a NULL buffer
50588         and a non-zero size.
50589         * tests/test-getline.c (main): Likewise.
50590         * doc/posix-functions/getline.texi: Mention the FreeBSD bug.
50591         Reported by Dennis <noordsij@cs.helsinki.fi> via Eric Blake.
50593 2010-01-28  Eric Blake  <ebb9@byu.net>
50595         regex: fix build failure
50596         * lib/regex_internal.h (__GNUC_PREREQ): Define for non-glibc
50597         platforms.
50599 2010-01-28  Jim Meyering  <meyering@redhat.com>
50601         regex: do not ignore memory allocation failure
50602         * lib/regex_internal.c (create_cd_newstate): Detect
50603         re_node_set_init_copy failure.   Extracted from glibc commit
50604         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
50606         regex: sync more white-space changes from libc
50607         * lib/regex_internal.c: White-space only changes.
50608         * lib/regexec.c: Likewise.
50610         regex: add many uses of __attribute_warn_unused_result__
50611         * lib/regex_internal.c: Use __attribute_warn_unused_result__.
50612         * lib/regexec.c: Likewise.
50613         Extracted from a messy glibc commit.
50615         regcomp.c: spelling and merge-artifact from glibc
50616         * lib/regcomp.c: Merge remainder of glibc's
50617         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
50619         regcomp.c: sync white-space changes from glibc
50620         * lib/regcomp.c: Merge to accommodate white space
50621         changes from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
50623         regcomp.c: do not ignore internal return values
50624         * lib/regcomp.c: Do not ignore internal return values.
50625         This is from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c,
50626         but without its white-space changes and spelling fixes.
50628         regex_internal.h: define __attribute_warn_unused_result__
50629         * lib/regex_internal.h (__attribute_warn_unused_result__): Define.
50631         maint: add a syntax-check rule to check for vulnerable Makefile.in
50632         * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): New rule.
50634 2010-01-27  Jim Meyering  <meyering@redhat.com>
50636         ncftpput-ftp: clean up spaces
50637         * build-aux/ncftpput-ftp: Make Copyright line consistent.
50638         Remove trailing blanks.
50640 2010-01-27  Simon Josefsson  <simon@josefsson.org>
50642         * build-aux/git-version-gen: Fix copyright statement.
50643         * build-aux/gnupload: Likewise.
50644         * tests/test-arcfour.c: Likewise.
50645         * tests/test-arctwo.c: Likewise.
50646         * tests/test-count-one-bits.c: Likewise.
50647         * tests/test-crc.c: Likewise.
50648         * tests/test-des.c: Likewise.
50649         * tests/test-gc-arcfour.c: Likewise.
50650         * tests/test-gc-arctwo.c: Likewise.
50651         * tests/test-gc-des.c: Likewise.
50652         * tests/test-gc-hmac-md5.c: Likewise.
50653         * tests/test-gc-hmac-sha1.c: Likewise.
50654         * tests/test-gc-md2.c: Likewise.
50655         * tests/test-gc-md4.c: Likewise.
50656         * tests/test-gc-md5.c: Likewise.
50657         * tests/test-gc-pbkdf2-sha1.c: Likewise.
50658         * tests/test-gc-rijndael.c: Likewise.
50659         * tests/test-gc-sha1.c: Likewise.
50660         * tests/test-gc.c: Likewise.
50661         * tests/test-gethostname.c: Likewise.
50662         * tests/test-gettimeofday.c: Likewise.
50663         * tests/test-hash.c: Likewise.
50664         * tests/test-hmac-md5.c: Likewise.
50665         * tests/test-hmac-sha1.c: Likewise.
50666         * tests/test-md2.c: Likewise.
50667         * tests/test-md4.c: Likewise.
50668         * tests/test-md5.c: Likewise.
50669         * tests/test-memchr.c: Likewise.
50670         * tests/test-memchr2.c: Likewise.
50671         * tests/test-memcmp.c: Likewise.
50672         * tests/test-memmem.c: Likewise.
50673         * tests/test-memrchr.c: Likewise.
50674         * tests/test-rawmemchr.c: Likewise.
50675         * tests/test-read-file.c: Likewise.
50676         * tests/test-rijndael.c: Likewise.
50677         * tests/test-sockets.c: Likewise.
50678         * tests/test-strchrnul.c: Likewise.
50679         * tests/test-strstr.c: Likewise.
50680         * tests/test-strtod.c: Likewise.
50681         * build-aux/ncftpput-ftp: Likewise.
50683 2010-01-26  Eric Blake  <ebb9@byu.net>
50685         ignore-value: update recommended header name
50686         * modules/ignore-value (Include): Only use <> for headers that
50687         exist in glibc.
50689 2010-01-26  Jim Meyering  <meyering@redhat.com>
50691         test-userspec.c: avoid compiler warnings
50692         * tests/test-userspec.c (main): Avoid shadowing ("uid"),
50693         and "initialization discards qualifiers..." warnings.
50694         Put the first "uid" in its own scope, and make char* members "const".
50696 2010-01-25  Bruno Haible  <bruno@clisp.org>
50698         gnulib-tool: Make warning diagnostics consistent.
50699         * gnulib-tool (func_warning): New function.
50700         Use it everywhere where gnulib-tool produces output to stderr and it is
50701         not a fatal error.
50703 2010-01-25  Bruno Haible  <bruno@clisp.org>
50705         Fix test dependencies.
50706         * modules/xstrtol-tests (Depends-on): Add inttypes.
50707         * modules/xstrtoll-tests (Depends-on): Likewise. Remove xstrtoll.
50709 2010-01-25  Pádraig Brady  <P@draigBrady.com>
50711         syntax-check: detect incorrect boolean macro values in config.h
50712         * modules/maintainer-makefile (configure.ac): Parameterize the location
50713         of config.h which will be available to makefiles as $(CONFIG_INCLUDE).
50714         The logic is from Eric Blake and the location indicated by Jim Meyering.
50715         Note the more natural CONFIG_HEADER name is prohibited by automake
50716         for backwards compatibility reasons.
50717         * top/maint.mk (sc_Wundef_boolean): New rule.
50719 2010-01-25  Jim Meyering  <meyering@redhat.com>
50721         bootstrap: detect MacOS 10.6's shasum, too
50722         * build-aux/bootstrap: Also recognize MacOS 10.6's shasum.
50723         Suggested by Thomas Treichl <Thomas.Treichl@gmx.net>.
50725 2010-01-23  Jim Meyering  <meyering@redhat.com>
50727         xstrtoll: new module
50728         * modules/xstrtoll: New file.
50729         * MODULES.html.sh (Numeric conversion functions): Add xstrtoll.
50730         * lib/xstrtol.h [HAVE_LONG_LONG_INT]: Declare xstrtoll and xstrtoull.
50731         * lib/xstrtoll.c, lib/xstrtoull.c: New files.
50732         ./configure fails if you use this module and lack "long long".
50733         * modules/xstrtoll-tests: New module.
50734         * tests/test-xstrtoll.c, tests/test-xstrtoull.c: New files.
50735         * tests/test-xstrtoll.sh: Like test-xstrtol.c, but use the
50736         new init.sh-based test framework.
50738 2010-01-24  Bruno Haible  <bruno@clisp.org>
50740         Tests for module 'yn'.
50741         * modules/yn-tests: New file.
50742         * tests/test-yn.c: New file.
50744         Tests for module 'y1'.
50745         * modules/y1-tests: New file.
50746         * tests/test-y1.c: New file.
50748         Tests for module 'y0'.
50749         * modules/y0-tests: New file.
50750         * tests/test-y0.c: New file.
50752         Tests for module 'tanh'.
50753         * modules/tanh-tests: New file.
50754         * tests/test-tanh.c: New file.
50756         Tests for module 'tan'.
50757         * modules/tan-tests: New file.
50758         * tests/test-tan.c: New file.
50760         Tests for module 'sqrt'.
50761         * modules/sqrt-tests: New file.
50762         * tests/test-sqrt.c: New file.
50764         Tests for module 'sinh'.
50765         * modules/sinh-tests: New file.
50766         * tests/test-sinh.c: New file.
50768         Tests for module 'sin'.
50769         * modules/sin-tests: New file.
50770         * tests/test-sin.c: New file.
50772         Tests for module 'rint'.
50773         * modules/rint-tests: New file.
50774         * tests/test-rint.c: New file.
50776         Tests for module 'remainder'.
50777         * modules/remainder-tests: New file.
50778         * tests/test-remainder.c: New file.
50780         Tests for module 'pow'.
50781         * modules/pow-tests: New file.
50782         * tests/test-pow.c: New file.
50784         Tests for module 'nextafter'.
50785         * modules/nextafter-tests: New file.
50786         * tests/test-nextafter.c: New file.
50788         Tests for module 'modf'.
50789         * modules/modf-tests: New file.
50790         * tests/test-modf.c: New file.
50792         Tests for module 'logb'.
50793         * modules/logb-tests: New file.
50794         * tests/test-logb.c: New file.
50796         Tests for module 'log1p'.
50797         * modules/log1p-tests: New file.
50798         * tests/test-log1p.c: New file.
50800         Tests for module 'log10'.
50801         * modules/log10-tests: New file.
50802         * tests/test-log10.c: New file.
50804         Tests for module 'log'.
50805         * modules/log-tests: New file.
50806         * tests/test-log.c: New file.
50808         Tests for module 'lgamma'.
50809         * modules/lgamma-tests: New file.
50810         * tests/test-lgamma.c: New file.
50812         Tests for module 'ldexp'.
50813         * modules/ldexp-tests: New file.
50814         * tests/test-ldexp.c: New file.
50816         Tests for module 'jn'.
50817         * modules/jn-tests: New file.
50818         * tests/test-jn.c: New file.
50820         Tests for module 'j1'.
50821         * modules/j1-tests: New file.
50822         * tests/test-j1.c: New file.
50824         Tests for module 'j0'.
50825         * modules/j0-tests: New file.
50826         * tests/test-j0.c: New file.
50828         Tests for module 'hypot'.
50829         * modules/hypot-tests: New file.
50830         * tests/test-hypot.c: New file.
50832         Tests for module 'fmod'.
50833         * modules/fmod-tests: New file.
50834         * tests/test-fmod.c: New file.
50836         Tests for module 'fabs'.
50837         * modules/fabs-tests: New file.
50838         * tests/test-fabs.c: New file.
50840         Tests for module 'exp'.
50841         * modules/exp-tests: New file.
50842         * tests/test-exp.c: New file.
50844         Tests for module 'erfc'.
50845         * modules/erfc-tests: New file.
50846         * tests/test-erfc.c: New file.
50848         Tests for module 'erf'.
50849         * modules/erf-tests: New file.
50850         * tests/test-erf.c: New file.
50852         Tests for module 'cosh'.
50853         * modules/cosh-tests: New file.
50854         * tests/test-cosh.c: New file.
50856         Tests for module 'cos'.
50857         * modules/cos-tests: New file.
50858         * tests/test-cos.c: New file.
50860         Tests for module 'copysign'.
50861         * modules/copysign-tests: New file.
50862         * tests/test-copysign.c: New file.
50864         Tests for module 'cbrt'.
50865         * modules/cbrt-tests: New file.
50866         * tests/test-cbrt.c: New file.
50868         Tests for module 'atan2'.
50869         * modules/atan2-tests: New file.
50870         * tests/test-atan2.c: New file.
50872         Tests for module 'atan'.
50873         * modules/atan-tests: New file.
50874         * tests/test-atan.c: New file.
50876         Tests for module 'asin'.
50877         * modules/asin-tests: New file.
50878         * tests/test-asin.c: New file.
50880         Tests for module 'acos'.
50881         * modules/acos-tests: New file.
50882         * tests/test-acos.c: New file.
50884 2010-01-24  Bruno Haible  <bruno@clisp.org>
50886         Fix tests for common <math.h> functions.
50887         * m4/mathfunc.m4 (gl_MATHFUNC): Take two additional parameters. Use a
50888         code snippet that references the function pointer, rather than merely
50889         calling the function. Substitute the FUNC_LIBM variable.
50890         * m4/sqrt.m4 (gl_FUNC_SQRT): Update gl_MATHFUNC invocation.
50891         * modules/acos (configure.ac): Likewise.
50892         * modules/asin (configure.ac): Likewise.
50893         * modules/atan (configure.ac): Likewise.
50894         * modules/atan2 (configure.ac): Likewise.
50895         * modules/cbrt (configure.ac): Likewise.
50896         * modules/copysign (configure.ac): Likewise.
50897         * modules/cos (configure.ac): Likewise.
50898         * modules/cosh (configure.ac): Likewise.
50899         * modules/erf (configure.ac): Likewise.
50900         * modules/erfc (configure.ac): Likewise.
50901         * modules/exp (configure.ac): Likewise.
50902         * modules/fabs (configure.ac): Likewise.
50903         * modules/fmod (configure.ac): Likewise.
50904         * modules/hypot (configure.ac): Likewise.
50905         * modules/j0 (configure.ac): Likewise.
50906         * modules/j1 (configure.ac): Likewise.
50907         * modules/jn (configure.ac): Likewise.
50908         * modules/ldexp (configure.ac): Likewise.
50909         * modules/lgamma (configure.ac): Likewise.
50910         * modules/log (configure.ac): Likewise.
50911         * modules/log10 (configure.ac): Likewise.
50912         * modules/log1p (configure.ac): Likewise.
50913         * modules/logb (configure.ac): Likewise.
50914         * modules/modf (configure.ac): Likewise.
50915         * modules/nextafter (configure.ac): Likewise.
50916         * modules/pow (configure.ac): Likewise.
50917         * modules/remainder (configure.ac): Likewise.
50918         * modules/rint (configure.ac): Likewise.
50919         * modules/sin (configure.ac): Likewise.
50920         * modules/sinh (configure.ac): Likewise.
50921         * modules/tan (configure.ac): Likewise.
50922         * modules/tanh (configure.ac): Likewise.
50923         * modules/y0 (configure.ac): Likewise.
50924         * modules/y1 (configure.ac): Likewise.
50925         * modules/yn (configure.ac): Likewise.
50927 2010-01-24  Bruno Haible  <bruno@clisp.org>
50929         Tests: Defeat inlining of math functions by GCC >= 4.3.0.
50930         * tests/test-acosl.c (x): New variable.
50931         (main): Store argument in x and fetch it from x.
50932         * tests/test-asinl.c (x): New variable.
50933         (main): Store argument in x and fetch it from x.
50934         * tests/test-atanl.c (x): New variable.
50935         (main): Store argument in x and fetch it from x.
50936         * tests/test-cosl.c (x): New variable.
50937         (main): Store argument in x and fetch it from x.
50938         * tests/test-expl.c (x): New variable.
50939         (main): Store argument in x and fetch it from x.
50940         * tests/test-logl.c (x): New variable.
50941         (main): Store argument in x and fetch it from x.
50942         * tests/test-sinl.c (x): New variable.
50943         (main): Store argument in x and fetch it from x.
50944         * tests/test-sqrtl.c (x): New variable.
50945         (main): Store argument in x and fetch it from x.
50946         * tests/test-tanl.c (x): New variable.
50947         (main): Store argument in x and fetch it from x.
50949 2010-01-24  Bruno Haible  <bruno@clisp.org>
50951         Provide EXEEXT and srcdir in TESTS_ENVIRONMENT by default.
50952         * gnulib-tool (func_emit_tests_Makefile_am): Add EXEEXT and srcdir
50953         assignments to the initial TESTS_ENVIRONMENT.
50954         * doc/gnulib.texi (Unit test modules): Document it.
50955         * modules/acl-tests (Makefile.am): Drop EXEEXT assignment from
50956         TESTS_ENVIRONMENT.
50957         * modules/btowc-tests (Makefile.am): Likewise.
50958         * modules/c-stack-tests (Makefile.am): Likewise.
50959         * modules/c-strcase-tests (Makefile.am): Likewise.
50960         * modules/copy-file-tests (Makefile.am): Likewise.
50961         * modules/mbmemcasecmp-tests (Makefile.am): Likewise.
50962         * modules/mbmemcasecoll-tests (Makefile.am): Likewise.
50963         * modules/mbrtowc-tests (Makefile.am): Likewise.
50964         * modules/mbscasecmp-tests (Makefile.am): Likewise.
50965         * modules/mbscasestr-tests (Makefile.am): Likewise.
50966         * modules/mbschr-tests (Makefile.am): Likewise.
50967         * modules/mbscspn-tests (Makefile.am): Likewise.
50968         * modules/mbsinit-tests (Makefile.am): Likewise.
50969         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
50970         * modules/mbsnrtowcs-tests (Makefile.am): Likewise.
50971         * modules/mbspbrk-tests (Makefile.am): Likewise.
50972         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
50973         * modules/mbsrchr-tests (Makefile.am): Likewise.
50974         * modules/mbsrtowcs-tests (Makefile.am): Likewise.
50975         * modules/mbsspn-tests (Makefile.am): Likewise.
50976         * modules/mbsstr-tests (Makefile.am): Likewise.
50977         * modules/nl_langinfo-tests (Makefile.am): Likewise.
50978         * modules/unicase/locale-language-tests (Makefile.am): Likewise.
50979         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
50980         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
50981         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
50982         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
50983         * modules/uniwbrk/ulc-wordbreaks-tests (Makefile.am): Likewise.
50984         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
50985         * modules/wcrtomb-tests (Makefile.am): Likewise.
50986         * modules/wcsnrtombs-tests (Makefile.am): Likewise.
50987         * modules/wcsrtombs-tests (Makefile.am): Likewise.
50988         * modules/quotearg-tests (Makefile.am): Drop EXEEXT and srcdir
50989         assignments from TESTS_ENVIRONMENT.
50990         * modules/argp-tests (Makefile.am): Drop TESTS_ENVIRONMENT
50991         augmentation.
50992         * modules/argp-version-etc-tests (Makefile.am): Likewise.
50993         * modules/atexit-tests (Makefile.am): Likewise.
50994         * modules/binary-io-tests (Makefile.am): Likewise.
50995         * modules/closein-tests (Makefile.am): Likewise.
50996         * modules/dprintf-posix-tests (Makefile.am): Likewise.
50997         * modules/exclude-tests (Makefile.am): Likewise.
50998         * modules/fflush-tests (Makefile.am): Likewise.
50999         * modules/fpending-tests (Makefile.am): Likewise.
51000         * modules/fprintf-posix-tests (Makefile.am): Likewise.
51001         * modules/freadahead-tests (Makefile.am): Likewise.
51002         * modules/freadptr-tests (Makefile.am): Likewise.
51003         * modules/freadseek-tests (Makefile.am): Likewise.
51004         * modules/fseek-tests (Makefile.am): Likewise.
51005         * modules/fseeko-tests (Makefile.am): Likewise.
51006         * modules/ftell-tests (Makefile.am): Likewise.
51007         * modules/ftello-tests (Makefile.am): Likewise.
51008         * modules/idpriv-drop-tests (Makefile.am): Likewise.
51009         * modules/idpriv-droptemp-tests (Makefile.am): Likewise.
51010         * modules/lseek-tests (Makefile.am): Likewise.
51011         * modules/parse-duration-tests (Makefile.am): Likewise.
51012         * modules/perror-tests (Makefile.am): Likewise.
51013         * modules/pipe-filter-gi-tests (Makefile.am): Likewise.
51014         * modules/pipe-filter-ii-tests (Makefile.am): Likewise.
51015         * modules/pipe-tests (Makefile.am): Likewise.
51016         * modules/pread-tests (Makefile.am): Likewise.
51017         * modules/printf-posix-tests (Makefile.am): Likewise.
51018         * modules/select-tests (Makefile.am): Likewise.
51019         * modules/sigpipe-tests (Makefile.am): Likewise.
51020         * modules/tsearch-tests (Makefile.am): Likewise.
51021         * modules/unicase/ulc-casecmp-tests (Makefile.am): Likewise.
51022         * modules/unicase/ulc-casecoll-tests (Makefile.am): Likewise.
51023         * modules/uniname/uniname-tests (Makefile.am): Likewise.
51024         * modules/uniwidth/width-tests (Makefile.am): Likewise.
51025         * modules/vdprintf-posix-tests (Makefile.am): Likewise.
51026         * modules/version-etc-tests (Makefile.am): Likewise.
51027         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
51028         * modules/vprintf-posix-tests (Makefile.am): Likewise.
51029         * modules/xalloc-die-tests (Makefile.am): Likewise.
51030         * modules/xprintf-posix-tests (Makefile.am): Likewise.
51031         * modules/xstrtoimax-tests (Makefile.am): Likewise.
51032         * modules/xstrtol-tests (Makefile.am): Likewise.
51033         * modules/xstrtoumax-tests (Makefile.am): Likewise.
51034         * modules/yesno-tests (Makefile.am): Likewise.
51035         Suggested by Jim Meyering.
51037 2010-01-24  Bruno Haible  <bruno@clisp.org>
51039         More documentation.
51040         * doc/gnulib.texi (Writing modules): New chapter.
51041         (Miscellaneous Notes): Move sections "Comments" and "Header files" to
51042         the new chapter.
51044 2010-01-24  Jim Meyering  <meyering@redhat.com>
51046         maint.mk: do not prepend "./" after filtering
51047         * top/maint.mk (_prepend_srcdir_prefix): New variable
51048         (VC_LIST_EXCEPT): Use it to avoid prepending (post-filter)
51049         "./" when $(srcdir) is ".".
51051         define STREQ(a,b) consistently, removing useless parentheses
51052         #define STREQ(a, b) (strcmp ((a), (b)) == 0) is over-parenthesized,
51053         since the only risk is that "a" or "b" contains an unparenthesized
51054         comma, but if either did that, STREQ would have 3 or more arguments.
51055         Hence, #define STREQ(a, b) (strcmp (a, b) == 0) is better.
51056         * lib/fts.c (STREQ): Remove unnecessary parentheses.
51057         * lib/hash-triple.c (STREQ): Likewise.
51058         * tests/test-argv-iter.c (STREQ): Use a and b, not s1 and s2.
51059         * lib/getugroups.c (STREQ): Likewise.
51061 2010-01-23  Jim Meyering  <meyering@redhat.com>
51063         maint.mk: fix syntax-check in a non-srcdir build directory
51064         * top/maint.mk (_dot_escaped_srcdir): Remove erroneous backslash,
51065         introduced in my 2010-01-21 commit, a6da6c45.  Reported by Eric Blake.
51067 2010-01-22  Jim Meyering  <meyering@redhat.com>
51069         userspec: add unit tests
51070         * tests/test-userspec.c: New file.
51071         * modules/userspec-tests: Likewise.
51073 2010-01-21  Jim Meyering  <meyering@redhat.com>
51075         maint.mk: handle source file names containing "." robustly
51076         * top/maint.mk (_dot_escaped_srcdir): Define.
51077         (VC_LIST): Use it in LHS of sed substitution.
51079 2010-01-21  Jiri Denemark  <jdenemar@redhat.com>
51081         maint.mk: fix VC_LIST_EXCEPT for srcdir != builddir
51082         * top/maint.mk (VC_LIST_EXCEPT): Preprocess the output of
51083         $(VC_LIST) to remove a prefix of '$(srcdir)/', so that it works
51084         from a non-srcdir build.
51086 2010-01-20  Eric Blake  <ebb9@byu.net>
51088         warn-on-use: use instead of link-warning
51089         * modules/stdio (Depends-on, Makefile.am): Drop link-warning.
51090         * modules/unistd (Depends-on, Makefile.am): Likewise.
51091         * modules/arpa_inet (Depends-on): Replace link-warning with
51092         warn-on-use.
51093         (Makefile.am): Update rules accordingly.
51094         * modules/ctype (Depends-on, Makefile.am): Likewise.
51095         * modules/dirent (Depends-on, Makefile.am): Likewise.
51096         * modules/fcntl-h (Depends-on, Makefile.am): Likewise.
51097         * modules/inttypes (Depends-on, Makefile.am): Likewise.
51098         * modules/langinfo (Depends-on, Makefile.am): Likewise.
51099         * modules/locale (Depends-on, Makefile.am): Likewise.
51100         * modules/math (Depends-on, Makefile.am): Likewise.
51101         * modules/search (Depends-on, Makefile.am): Likewise.
51102         * modules/signal (Depends-on, Makefile.am): Likewise.
51103         * modules/spawn (Depends-on, Makefile.am): Likewise.
51104         * modules/stdlib (Depends-on, Makefile.am): Likewise.
51105         * modules/string (Depends-on, Makefile.am): Likewise.
51106         * modules/strings (Depends-on, Makefile.am): Likewise.
51107         * modules/sys_file (Depends-on, Makefile.am): Likewise.
51108         * modules/sys_ioctl (Depends-on, Makefile.am): Likewise.
51109         * modules/sys_select (Depends-on, Makefile.am): Likewise.
51110         * modules/sys_socket (Depends-on, Makefile.am): Likewise.
51111         * modules/sys_stat (Depends-on, Makefile.am): Likewise.
51112         * modules/sys_times (Depends-on, Makefile.am): Likewise.
51113         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
51114         * modules/wchar (Depends-on, Makefile.am): Likewise.
51115         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Check which functions
51116         should be poisoned.
51117         * m4/ctype.m4 (gl_CTYPE_H): Likewise.
51118         * m4/dirent_h.m4 (gl_DIRENT_H): Likewise.
51119         * m4/fcntl_h.m4 (gl_FCNTL_H): Likewise.
51120         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
51121         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
51122         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
51123         * m4/math_h.m4 (gl_MATH_H): Likewise.
51124         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
51125         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
51126         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
51127         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
51128         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
51129         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
51130         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
51131         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H_DEFAULTS): Likewise.
51132         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
51133         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
51134         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
51135         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
51136         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
51137         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
51138         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
51139         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
51140         * lib/arpa_inet.in.h: Use _GL_WARN_ON_USE instead of
51141         GL_LINK_WARNING.
51142         * lib/ctype.in.h: Likewise.
51143         * lib/dirent.in.h: Likewise.
51144         * lib/fcntl.in.h: Likewise.
51145         * lib/inttypes.in.h: Likewise.
51146         * lib/langinfo.in.h: Likewise.
51147         * lib/locale.in.h: Likewise.
51148         * lib/math.in.h: Likewise.
51149         * lib/search.in.h: Likewise.
51150         * lib/signal.in.h: Likewise.
51151         * lib/spawn.in.h: Likewise.
51152         * lib/stdio.in.h: Likewise.
51153         * lib/stdlib.in.h: Likewise.
51154         * lib/string.in.h: Likewise.
51155         * lib/strings.in.h: Likewise.
51156         * lib/sys_file.in.h: Likewise.
51157         * lib/sys_ioctl.in.h: Likewise.
51158         * lib/sys_select.in.h: Likewise.
51159         * lib/sys_socket.in.h: Likewise.
51160         * lib/sys_stat.in.h: Likewise.
51161         * lib/sys_times.in.h: Likewise.
51162         * lib/sys_utsname.in.h: Likewise.
51163         * lib/unistd.in.h: Likewise.
51164         * lib/wchar.in.h: Likewise.
51166 2010-01-20  Bruno Haible  <bruno@clisp.org>
51168         Avoid duplicate -lm.
51169         * m4/isnan.m4 (gl_ISNAN): Avoid duplicate -lm in $ISNAN_LIBM.
51170         * m4/round.m4 (gl_FUNC_ROUND): Avoid duplicate -lm in $ROUND_LIBM.
51171         * m4/roundf.m4 (gl_FUNC_ROUNDF): Avoid duplicate -lm in $ROUNDF_LIBM.
51172         * m4/roundl.m4 (gl_FUNC_ROUNDL): Avoid duplicate -lm in $ROUNDL_LIBM.
51173         * m4/acosl.m4 (gl_FUNC_ACOSL): Avoid duplicate -lm in $ACOSL_LIBM.
51174         * m4/cosl.m4 (gl_FUNC_COSL): Avoid duplicate -lm in $COSL_LIBM.
51175         * m4/logl.m4 (gl_FUNC_LOGL): Avoid duplicate -lm in $LOGL_LIBM.
51176         * m4/sinl.m4 (gl_FUNC_SINL): Avoid duplicate -lm in $SINL_LIBM.
51177         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Avoid duplicate -lm in $SQRTL_LIBM.
51178         * m4/tanl.m4 (gl_FUNC_TANL): Avoid duplicate -lm in $TANL_LIBM.
51179         * m4/asinl.m4 (gl_FUNC_ASINL): Same change, for consistency.
51180         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
51181         Reported by Paolo Bonzini.
51183 2010-01-19  Bruno Haible  <bruno@clisp.org>
51185         langinfo, nl_langinfo: Relicense under LGPLv2+.
51186         * modules/langinfo (License): Change to LGPLv2+.
51187         * modules/nl_langinfo (License): Likewise.
51188         Patch by David Lutterkort <lutter@redhat.com>.
51190 2010-01-19  Bruno Haible  <bruno@clisp.org>
51192         Avoid compilation error with cc on OSF/1 5.1.
51193         * lib/fcntl.in.h: Include <unistd.h> after the #include_next <fcntl.h>
51194         statement, not before.
51195         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
51197 2010-01-18  Bruno Haible  <bruno@clisp.org>
51199         Avoid a link error due to the __printf__ symbol.
51200         * lib/stdio.in.h (__attribute__): Define to empty also for gcc 2.5.x
51201         and 2.6.x.
51202         (__format__, __printf__): Remove definitions.
51203         * lib/argp-fmtstream.h: Likewise.
51204         * lib/argp.h: Likewise.
51205         * lib/error.h: Likewise.
51206         * lib/vasnprintf.h: Likewise.
51207         * lib/xprintf.h: Likewise.
51208         * lib/xvasprintf.h: Likewise.
51209         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
51211 2010-01-18  Bruno Haible  <bruno@clisp.org>
51213         Tests for module 'tanl'.
51214         * modules/tanl-tests: New file.
51215         * tests/test-tanl.c: New file.
51217         Tests for module 'sqrtl'.
51218         * modules/sqrtl-tests: New file.
51219         * tests/test-sqrtl.c: New file.
51221         Tests for module 'sinl'.
51222         * modules/sinl-tests: New file.
51223         * tests/test-sinl.c: New file.
51225         Tests for module 'logl'.
51226         * modules/logl-tests: New file.
51227         * tests/test-logl.c: New file.
51229         Tests for module 'expl'.
51230         * modules/expl-tests: New file.
51231         * tests/test-expl.c: New file.
51233         Tests for module 'cosl'.
51234         * modules/cosl-tests: New file.
51235         * tests/test-cosl.c: New file.
51237         Tests for module 'atanl'.
51238         * modules/atanl-tests: New file.
51239         * tests/test-atanl.c: New file.
51241         Tests for module 'asinl'.
51242         * modules/asinl-tests: New file.
51243         * tests/test-asinl.c: New file.
51245         Tests for module 'acosl'.
51246         * modules/acosl-tests: New file.
51247         * tests/test-acosl.c: New file.
51249         New modules acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
51250         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
51251         tanl): Use the standard gnulib idiom.
51252         * lib/cosl.c: Don't include trigl.c and sincosl.c.
51253         * lib/sinl.c: Likewise.
51254         * lib/tanl.c: Don't include trigl.c.
51255         (kernel_tanl): Make static.
51256         * lib/sincosl.c: Include trigl.h first.
51257         * lib/trigl.c: Likewise.
51258         * m4/acosl.m4: New file.
51259         * m4/asinl.m4: New file.
51260         * m4/atanl.m4: New file.
51261         * m4/cosl.m4: New file.
51262         * m4/expl.m4: New file.
51263         * m4/logl.m4: New file.
51264         * m4/sinl.m4: New file.
51265         * m4/sqrtl.m4: New file.
51266         * m4/tanl.m4: New file.
51267         * m4/mathl.m4: Remove file.
51268         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_* and HAVE_*
51269         variables for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
51270         Don't initialize GNULIB_MATHL.
51271         * modules/acosl: New file.
51272         * modules/asinl: New file.
51273         * modules/atanl: New file.
51274         * modules/cosl: New file.
51275         * modules/expl: New file.
51276         * modules/logl: New file.
51277         * modules/sinl: New file.
51278         * modules/sqrtl: New file.
51279         * modules/tanl: New file.
51280         * modules/math (Makefile.am): Substitute GNULIB_* and HAVE_* variables
51281         for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl. Don't
51282         substitute GNULIB_MATHL.
51283         * modules/mathl: Rewritten.
51284         * doc/posix-functions/acosl.texi: Mention the 'acosl' module.
51285         * doc/posix-functions/asinl.texi: Mention the 'asinl' module.
51286         * doc/posix-functions/atanl.texi: Mention the 'atanl' module.
51287         * doc/posix-functions/cosl.texi: Mention the 'cosl' module.
51288         * doc/posix-functions/expl.texi: Mention the 'expl' module.
51289         * doc/posix-functions/logl.texi: Mention the 'logl' module.
51290         * doc/posix-functions/sinl.texi: Mention the 'sinl' module.
51291         * doc/posix-functions/sqrtl.texi: Mention the 'sqrtl' module.
51292         * doc/posix-functions/tanl.texi: Mention the 'tanl' module.
51294 2010-01-18  Bruno Haible  <bruno@clisp.org>
51296         sqrt: Make gl_FUNC_SQRT requirable.
51297         * m4/sqrt.m4: New file.
51298         * modules/sqrt (Files): Add it.
51299         (configure.ac): Invoke gl_FUNC_SQRT.
51301 2010-01-18  Bruno Haible  <bruno@clisp.org>
51303         New modules for common <math.h> functions.
51304         * m4/mathfunc.m4: New file.
51305         * modules/acos: New file.
51306         * modules/asin: New file.
51307         * modules/atan: New file.
51308         * modules/atan2: New file.
51309         * modules/cbrt: New file.
51310         * modules/copysign: New file.
51311         * modules/cos: New file.
51312         * modules/cosh: New file.
51313         * modules/erf: New file.
51314         * modules/erfc: New file.
51315         * modules/exp: New file.
51316         * modules/fabs: New file.
51317         * modules/fmod: New file.
51318         * modules/hypot: New file.
51319         * modules/j0: New file.
51320         * modules/j1: New file.
51321         * modules/jn: New file.
51322         * modules/ldexp: New file.
51323         * modules/lgamma: New file.
51324         * modules/log: New file.
51325         * modules/log10: New file.
51326         * modules/log1p: New file.
51327         * modules/logb: New file.
51328         * modules/modf: New file.
51329         * modules/nextafter: New file.
51330         * modules/pow: New file.
51331         * modules/remainder: New file.
51332         * modules/rint: New file.
51333         * modules/sin: New file.
51334         * modules/sinh: New file.
51335         * modules/sqrt: New file.
51336         * modules/tan: New file.
51337         * modules/tanh: New file.
51338         * modules/y0: New file.
51339         * modules/y1: New file.
51340         * modules/yn: New file.
51341         * doc/posix-functions/acos.texi: Mention the 'acos' module.
51342         * doc/posix-functions/asin.texi: Mention the 'asin' module.
51343         * doc/posix-functions/atan.texi: Mention the 'atan' module.
51344         * doc/posix-functions/atan2.texi: Mention the 'atan2' module.
51345         * doc/posix-functions/cbrt.texi: Mention the 'cbrt' module.
51346         * doc/posix-functions/copysign.texi: Mention the 'copysign' module.
51347         * doc/posix-functions/cos.texi: Mention the 'cos' module.
51348         * doc/posix-functions/cosh.texi: Mention the 'cosh' module.
51349         * doc/posix-functions/erf.texi: Mention the 'erf' module.
51350         * doc/posix-functions/erfc.texi: Mention the 'erfc' module.
51351         * doc/posix-functions/exp.texi: Mention the 'exp' module.
51352         * doc/posix-functions/fabs.texi: Mention the 'fabs' module.
51353         * doc/posix-functions/fmod.texi: Mention the 'fmod' module.
51354         * doc/posix-functions/hypot.texi: Mention the 'hypot' module.
51355         * doc/posix-functions/j0.texi: Mention the 'j0' module.
51356         * doc/posix-functions/j1.texi: Mention the 'j1' module.
51357         * doc/posix-functions/jn.texi: Mention the 'jn' module.
51358         * doc/posix-functions/ldexp.texi: Mention the 'ldexp' module.
51359         * doc/posix-functions/lgamma.texi: Mention the 'lgamma' module.
51360         * doc/posix-functions/log.texi: Mention the 'log' module.
51361         * doc/posix-functions/log10.texi: Mention the 'log10' module.
51362         * doc/posix-functions/log1p.texi: Mention the 'log1p' module.
51363         * doc/posix-functions/logb.texi: Mention the 'logb' module.
51364         * doc/posix-functions/modf.texi: Mention the 'modf' module.
51365         * doc/posix-functions/nextafter.texi: Mention the 'nextafter' module.
51366         * doc/posix-functions/pow.texi: Mention the 'pow' module.
51367         * doc/posix-functions/remainder.texi: Mention the 'remainder' module.
51368         * doc/posix-functions/rint.texi: Mention the 'rint' module.
51369         * doc/posix-functions/sin.texi: Mention the 'sin' module.
51370         * doc/posix-functions/sinh.texi: Mention the 'sinh' module.
51371         * doc/posix-functions/sqrt.texi: Mention the 'sqrt' module.
51372         * doc/posix-functions/tan.texi: Mention the 'tan' module.
51373         * doc/posix-functions/tanh.texi: Mention the 'tanh' module.
51374         * doc/posix-functions/y0.texi: Mention the 'y0' module.
51375         * doc/posix-functions/y1.texi: Mention the 'y1' module.
51376         * doc/posix-functions/yn.texi: Mention the 'yn' module.
51378 2010-01-18  Jim Meyering  <meyering@redhat.com>
51380         ignore-value: relax license to LGPLv2+
51381         * modules/ignore-value (License): Relax to LGPLv2+.
51383         getdate: don't leak when TZ contains two or more '"'s
51384         * lib/getdate.y (get_date): Don't leak a copy of TZ for each
51385         double quote in TZ after the first one.
51387         readtokens: do not leak internal token_lengths buffer
51388         * lib/readtokens.c (readtokens): Free the local, lengths,
51389         when the supplied "token_lengths" parameter is NULL.
51391 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51393         Fix a couple of missing LIBTHREAD link failures on AIX.
51394         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add
51395         $(LIBTHREAD).
51396         * modules/strsignal-tests (test_strsignal_LDADD): Likewise.
51398         Link test-poll against INET_PTON_LIB.
51399         * modules/poll-tests (test_poll_LDADD): Add $(INET_PTON_LIB),
51400         for inet_pton on Solaris 10.
51402 2010-01-17  Bruno Haible  <bruno@clisp.org>
51404         unistdio/*-sprintf: Fix typo in module description.
51405         * modules/unistdio/u8-sprintf (Depends-on): Fix typo.
51406         * modules/unistdio/u8-u8-sprintf (Depends-on): Likewise.
51407         * modules/unistdio/u16-sprintf (Depends-on): Likewise.
51408         * modules/unistdio/u16-u16-sprintf (Depends-on): Likewise.
51409         * modules/unistdio/u32-sprintf (Depends-on): Likewise.
51410         * modules/unistdio/u32-u32-sprintf (Depends-on): Likewise.
51411         * modules/unistdio/ulc-sprintf (Depends-on): Likewise.
51412         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
51414 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51416         gnulib-tool: fix filelist for AIX, HP-UX ksh.
51417         * gnulib-tool (func_filter_filelist): Do not quote possibly-empty
51418         variables in shell case patterns, for AIX and HP-UX ksh.
51420         Split large sed scripts, for HP-UX sed.
51421         * modules/stdio: Split sed scripts around 50 sed commands,
51422         to avoid HP-UX limit of 99 commands, in the near future.
51423         * modules/string: Likewise.
51424         * modules/unistd: Likewise.
51426         gnulib-tool: avoid writing in the current directory.
51427         * gnulib-tool (func_emit_lib_Makefile_am)
51428         (func_emit_tests_Makefile_am): Put temporary files in $tmp,
51429         not in the current directory, so concurrent gnulib-tool
51430         instances do not interfere.
51432 2010-01-16  Jim Meyering  <meyering@redhat.com>
51434         doc: update users.txt
51435         * users.txt: Add grep.
51436         (diffutils, gzip): Update URLs.
51438 2010-01-12  Bruno Haible  <bruno@clisp.org>
51440         posix_spawn: Avoid test failure on Cygwin.
51441         * tests/test-posix_spawn3.c (DATA_FILENAME) [CYGWIN]: Use less risky
51442         characters.
51443         Reported by Simon Josefsson.
51445 2010-01-12  Bruno Haible  <bruno@clisp.org>
51447         * tests/test-cond.c (main): When skipping the test, show the reason.
51449 2010-01-12  Simon Josefsson  <simon@josefsson.org>
51451         * lib/striconv.c (str_cd_iconv): Avoid if before free.
51453 2010-01-12  Simon Josefsson  <simon@josefsson.org>
51455         * top/maint.mk (VC_LIST_EXCEPT): Filter list through
51456         VC_LIST_ALWAYS_EXCLUDE_REGEX.
51458 2010-01-12  Eric Blake  <ebb9@byu.net>
51460         build: guarantee AS_VAR_IF
51461         * m4/warnings.m4 (gl_WARN_ADD): Use autoconf name.
51462         (gl_AS_VAR_IF): Move...
51463         * m4/gnulib-common.m4 (AS_VAR_IF): ...here.
51464         Reported by Simon Josefsson.
51466 2010-01-12  Simon Josefsson  <simon@josefsson.org>
51468         * lib/stdio.in.h: Fix typo.
51470 2010-01-12  Simon Josefsson  <simon@josefsson.org>
51472         * m4/gc.m4: Check if linking to libgcrypt also needs linking to
51473         libgpg-error.
51475 2010-01-12  Simon Josefsson  <simon@josefsson.org>
51477         * tests/test-xalloc-die.sh: Use $EXEEXT.
51479 2010-01-12  Simon Josefsson  <simon@josefsson.org>
51480             Bruno Haible  <bruno@clisp.org>
51482         getlogin, getlogin_r: Avoid test failure.
51483         * tests/test-getlogin.c: Include <stdio.h>.
51484         (main): Skip the test when the function fails because stdin is not a
51485         tty.
51486         * tests/test-getlogin_r.c: Include <stdio.h>.
51487         (main): Skip the test when the function fails because stdin is not a
51488         tty.
51490 2010-01-11  Eric Blake  <ebb9@byu.net>
51492         tests: avoid more large file warnings
51493         * tests/test-fflush.c: Avoid warning about ftell use.
51494         * tests/test-fseek.c: Avoid warning about fseek use.
51496 2010-01-10  Bruno Haible  <bruno@clisp.org>
51498         nproc: Work better on Linux when /proc and /sys are not mounted.
51499         * lib/nproc.c (num_processors): Use num_processors_via_affinity_mask ()
51500         as lower bound when, on glibc/Linux systems,
51501         sysconf (_SC_NPROCESSORS_CONF) returns 1.
51502         Suggested by Pádraig Brady <P@draigbrady.com>.
51503         Reported by Dmitry V. Levin <ldv@altlinux.org>.
51505         nproc: Refactor.
51506         * lib/nproc.c (num_processors_via_affinity_mask): New function,
51507         extracted from num_processors.
51508         (num_processors): Call it.
51510 2010-01-11  Jim Meyering  <meyering@redhat.com>
51512         utimecmp: avoid new warning from upcoming gcc-4.5.0
51513         * lib/utimecmp.c (BILLION): Define using #define rather than an
51514         anonymous enum, to placate upcoming gcc-4.5.0's -Wenum-compare.
51516 2010-01-11  Eric Blake  <ebb9@byu.net>
51518         math: add portability warnings for classification macros
51519         * modules/math (Depends-on): Add warn-on-use.
51520         (Makefile.am): Provide new substitutions.
51521         * m4/math_h.m4 (gl_MATH_H): Require inline.
51522         * lib/math.in.h (_GL_WARN_REAL_FLOATING_DECL)
51523         (_GL_WARN_REAL_FLOATING_IMPL): New helper macros.
51524         (isfinite, isinf, isnan, signbit) [GNULIB_POSIXCHECK]: Use them to
51525         implement warnings.
51527         unistd: warn on use of environ without module
51528         * modules/unistd (Depends-on): Add warn-on-use.
51529         (Makefile.am): Provide new substitutions.
51530         * m4/unistd_h.m4 (gl_UNISTD_H): Check for inline and environ.
51531         * lib/unistd.in.h (environ): Wrap with a warning helper function.
51533         stdio: warn on suspicious uses
51534         * modules/stdio (Depends-on): Add warn-on-use.
51535         (Makefile.am): Provide new substitutions.
51536         * m4/stdio_h.m4 (gl_STDIO_H): Check for inline, ftello, and
51537         fseeko.
51538         * lib/stdio.in.h (gets): Always warn on use.
51539         (fseek, ftell): Adjust when warnings are issued, and honor
51540         _GL_NO_LARGE_FILES as a way to silence the warning.
51541         * tests/test-fpurge.c [!GNULIB_FSEEK]: Use new means to squelch
51542         any warning about large file offsets.
51543         * tests/test-freadable.c [!GNULIB_FSEEK]: Likewise.
51544         * tests/test-freading.c [!GNULIB_FSEEK]: Likewise.
51545         * tests/test-fseeko.c [!GNULIB_FSEEK]: Likewise.
51546         * tests/test-ftell.c [!GNULIB_FSEEK]: Likewise.
51547         * tests/test-ftello.c [!GNULIB_FSEEK]: Likewise.
51548         * tests/test-fwritable.c [!GNULIB_FSEEK]: Likewise.
51549         * tests/test-fwriting.c [!GNULIB_FSEEK]: Likewise.
51550         * tests/test-getopt.c [!GNULIB_FTELL]: Likewise.
51552         warn-on-use: new module
51553         * modules/warn-on-use: New file.
51554         * build-aux/warn-on-use.h: Likewise.
51555         * m4/warn-on-use.m4: Likewise.
51556         * MODULES.html.sh (Support for building): Mention it.
51558 2010-01-10  Bruno Haible  <bruno@clisp.org>
51560         Tests for module 'unistr/u32-strdup'.
51561         * modules/unistr/u32-strdup-tests: New file.
51562         * tests/unistr/test-u32-strdup.c: New file.
51564         Tests for module 'unistr/u16-strdup'.
51565         * modules/unistr/u16-strdup-tests: New file.
51566         * tests/unistr/test-u16-strdup.c: New file.
51568         Tests for module 'unistr/u8-strdup'.
51569         * modules/unistr/u8-strdup-tests: New file.
51570         * tests/unistr/test-u8-strdup.c: New file.
51571         * tests/unistr/test-strdup.h: New file.
51573         Tests for module 'unistr/u32-strncmp'.
51574         * modules/unistr/u32-strncmp-tests: New file.
51575         * tests/unistr/test-u32-strncmp.c: New file.
51577         Tests for module 'unistr/u16-strncmp'.
51578         * modules/unistr/u16-strncmp-tests: New file.
51579         * tests/unistr/test-u16-strncmp.c: New file.
51581         Tests for module 'unistr/u8-strncmp'.
51582         * modules/unistr/u8-strncmp-tests: New file.
51583         * tests/unistr/test-u8-strncmp.c: New file.
51584         * tests/unistr/test-strncmp.h: New file.
51586         Tests for module 'unistr/u32-strcoll'.
51587         * modules/unistr/u32-strcoll-tests: New file.
51588         * tests/unistr/test-u32-strcoll.c: New file.
51590         Tests for module 'unistr/u16-strcoll'.
51591         * modules/unistr/u16-strcoll-tests: New file.
51592         * tests/unistr/test-u16-strcoll.c: New file.
51594         Tests for module 'unistr/u8-strcoll'.
51595         * modules/unistr/u8-strcoll-tests: New file.
51596         * tests/unistr/test-u8-strcoll.c: New file.
51598         Tests for module 'unistr/u32-strcmp'.
51599         * modules/unistr/u32-strcmp-tests: New file.
51600         * tests/unistr/test-u32-strcmp.c: New file.
51601         * tests/unistr/test-u32-strcmp.h: New file.
51603         Tests for module 'unistr/u16-strcmp'.
51604         * modules/unistr/u16-strcmp-tests: New file.
51605         * tests/unistr/test-u16-strcmp.c: New file.
51606         * tests/unistr/test-u16-strcmp.h: New file.
51608         Tests for module 'unistr/u8-strcmp'.
51609         * modules/unistr/u8-strcmp-tests: New file.
51610         * tests/unistr/test-u8-strcmp.c: New file.
51611         * tests/unistr/test-u8-strcmp.h: New file.
51612         * tests/unistr/test-strcmp.h: New file.
51614         Tests for module 'unistr/u32-strncat'.
51615         * modules/unistr/u32-strncat-tests: New file.
51616         * tests/unistr/test-u32-strncat.c: New file.
51618         Tests for module 'unistr/u16-strncat'.
51619         * modules/unistr/u16-strncat-tests: New file.
51620         * tests/unistr/test-u16-strncat.c: New file.
51622         Tests for module 'unistr/u8-strncat'.
51623         * modules/unistr/u8-strncat-tests: New file.
51624         * tests/unistr/test-u8-strncat.c: New file.
51625         * tests/unistr/test-strncat.h: New file.
51627         Tests for module 'unistr/u32-strcat'.
51628         * modules/unistr/u32-strcat-tests: New file.
51629         * tests/unistr/test-u32-strcat.c: New file.
51631         Tests for module 'unistr/u16-strcat'.
51632         * modules/unistr/u16-strcat-tests: New file.
51633         * tests/unistr/test-u16-strcat.c: New file.
51635         Tests for module 'unistr/u8-strcat'.
51636         * modules/unistr/u8-strcat-tests: New file.
51637         * tests/unistr/test-u8-strcat.c: New file.
51638         * tests/unistr/test-strcat.h: New file.
51640         Tests for module 'unistr/u32-stpncpy'.
51641         * modules/unistr/u32-stpncpy-tests: New file.
51642         * tests/unistr/test-u32-stpncpy.c: New file.
51644         Tests for module 'unistr/u16-stpncpy'.
51645         * modules/unistr/u16-stpncpy-tests: New file.
51646         * tests/unistr/test-u16-stpncpy.c: New file.
51648         Tests for module 'unistr/u8-stpncpy'.
51649         * modules/unistr/u8-stpncpy-tests: New file.
51650         * tests/unistr/test-u8-stpncpy.c: New file.
51651         * tests/unistr/test-stpncpy.h: New file.
51653         Tests for module 'unistr/u32-strncpy'.
51654         * modules/unistr/u32-strncpy-tests: New file.
51655         * tests/unistr/test-u32-strncpy.c: New file.
51657         Tests for module 'unistr/u16-strncpy'.
51658         * modules/unistr/u16-strncpy-tests: New file.
51659         * tests/unistr/test-u16-strncpy.c: New file.
51661         Tests for module 'unistr/u8-strncpy'.
51662         * modules/unistr/u8-strncpy-tests: New file.
51663         * tests/unistr/test-u8-strncpy.c: New file.
51664         * tests/unistr/test-strncpy.h: New file.
51666         Tests for module 'unistr/u32-stpcpy'.
51667         * modules/unistr/u32-stpcpy-tests: New file.
51668         * tests/unistr/test-u32-stpcpy.c: New file.
51670         Tests for module 'unistr/u16-stpcpy'.
51671         * modules/unistr/u16-stpcpy-tests: New file.
51672         * tests/unistr/test-u16-stpcpy.c: New file.
51674         Tests for module 'unistr/u8-stpcpy'.
51675         * modules/unistr/u8-stpcpy-tests: New file.
51676         * tests/unistr/test-u8-stpcpy.c: New file.
51677         * tests/unistr/test-stpcpy.h: New file.
51679         Tests for module 'unistr/u32-strcpy'.
51680         * modules/unistr/u32-strcpy-tests: New file.
51681         * tests/unistr/test-u32-strcpy.c: New file.
51683         Tests for module 'unistr/u16-strcpy'.
51684         * modules/unistr/u16-strcpy-tests: New file.
51685         * tests/unistr/test-u16-strcpy.c: New file.
51687         Tests for module 'unistr/u8-strcpy'.
51688         * modules/unistr/u8-strcpy-tests: New file.
51689         * tests/unistr/test-u8-strcpy.c: New file.
51690         * tests/unistr/test-strcpy.h: New file.
51692         Tests for module 'unistr/u32-strnlen'.
51693         * modules/unistr/u32-strnlen-tests: New file.
51694         * tests/unistr/test-u32-strnlen.c: New file.
51696         Tests for module 'unistr/u16-strnlen'.
51697         * modules/unistr/u16-strnlen-tests: New file.
51698         * tests/unistr/test-u16-strnlen.c: New file.
51700         Tests for module 'unistr/u8-strnlen'.
51701         * modules/unistr/u8-strnlen-tests: New file.
51702         * tests/unistr/test-u8-strnlen.c: New file.
51703         * tests/unistr/test-strnlen.h: New file.
51705         Tests for module 'unistr/u32-strlen'.
51706         * modules/unistr/u32-strlen-tests: New file.
51707         * tests/unistr/test-u32-strlen.c: New file.
51709         Tests for module 'unistr/u16-strlen'.
51710         * modules/unistr/u16-strlen-tests: New file.
51711         * tests/unistr/test-u16-strlen.c: New file.
51713         Tests for module 'unistr/u8-strlen'.
51714         * modules/unistr/u8-strlen-tests: New file.
51715         * tests/unistr/test-u8-strlen.c: New file.
51717         Tests for module 'unistr/u32-prev'.
51718         * modules/unistr/u32-prev-tests: New file.
51719         * tests/unistr/test-u32-prev.c: New file.
51721         Tests for module 'unistr/u16-prev'.
51722         * modules/unistr/u16-prev-tests: New file.
51723         * tests/unistr/test-u16-prev.c: New file.
51725         Tests for module 'unistr/u8-prev'.
51726         * modules/unistr/u8-prev-tests: New file.
51727         * tests/unistr/test-u8-prev.c: New file.
51729         Tests for module 'unistr/u32-next'.
51730         * modules/unistr/u32-next-tests: New file.
51731         * tests/unistr/test-u32-next.c: New file.
51733         Tests for module 'unistr/u16-next'.
51734         * modules/unistr/u16-next-tests: New file.
51735         * tests/unistr/test-u16-next.c: New file.
51737         Tests for module 'unistr/u8-next'.
51738         * modules/unistr/u8-next-tests: New file.
51739         * tests/unistr/test-u8-next.c: New file.
51741         Tests for module 'unistr/u32-strmbtouc'.
51742         * modules/unistr/u32-strmbtouc-tests: New file.
51743         * tests/unistr/test-u32-strmbtouc.c: New file.
51745         Tests for module 'unistr/u16-strmbtouc'.
51746         * modules/unistr/u16-strmbtouc-tests: New file.
51747         * tests/unistr/test-u16-strmbtouc.c: New file.
51749         Tests for module 'unistr/u8-strmbtouc'.
51750         * modules/unistr/u8-strmbtouc-tests: New file.
51751         * tests/unistr/test-u8-strmbtouc.c: New file.
51753         Tests for module 'unistr/u32-strmblen'.
51754         * modules/unistr/u32-strmblen-tests: New file.
51755         * tests/unistr/test-u32-strmblen.c: New file.
51757         Tests for module 'unistr/u16-strmblen'.
51758         * modules/unistr/u16-strmblen-tests: New file.
51759         * tests/unistr/test-u16-strmblen.c: New file.
51761         Tests for module 'unistr/u8-strmblen'.
51762         * modules/unistr/u8-strmblen-tests: New file.
51763         * tests/unistr/test-u8-strmblen.c: New file.
51765         Tests for module 'unistr/u32-cpy-alloc'.
51766         * modules/unistr/u32-cpy-alloc-tests: New file.
51767         * tests/unistr/test-u32-cpy-alloc.c: New file.
51769         Tests for module 'unistr/u16-cpy-alloc'.
51770         * modules/unistr/u16-cpy-alloc-tests: New file.
51771         * tests/unistr/test-u16-cpy-alloc.c: New file.
51773         Tests for module 'unistr/u8-cpy-alloc'.
51774         * modules/unistr/u8-cpy-alloc-tests: New file.
51775         * tests/unistr/test-u8-cpy-alloc.c: New file.
51776         * tests/unistr/test-cpy-alloc.h: New file.
51778         Tests for module 'unistr/u32-mbsnlen'.
51779         * modules/unistr/u32-mbsnlen-tests: New file.
51780         * tests/unistr/test-u32-mbsnlen.c: New file.
51782         Tests for module 'unistr/u16-mbsnlen'.
51783         * modules/unistr/u16-mbsnlen-tests: New file.
51784         * tests/unistr/test-u16-mbsnlen.c: New file.
51786         Tests for module 'unistr/u8-mbsnlen'.
51787         * modules/unistr/u8-mbsnlen-tests: New file.
51788         * tests/unistr/test-u8-mbsnlen.c: New file.
51790         Tests for module 'unistr/u32-chr'.
51791         * modules/unistr/u32-chr-tests: New file.
51792         * tests/unistr/test-u32-chr.c: New file.
51794         Tests for module 'unistr/u16-chr'.
51795         * modules/unistr/u16-chr-tests: New file.
51796         * tests/unistr/test-u16-chr.c: New file.
51798         Tests for module 'unistr/u8-chr'.
51799         * modules/unistr/u8-chr-tests: New file.
51800         * tests/unistr/test-u8-chr.c: New file.
51801         * tests/unistr/test-chr.h: New file, based on tests/test-memchr.c.
51803         Tests for module 'unistr/u32-cmp2'.
51804         * modules/unistr/u32-cmp2-tests: New file.
51805         * tests/unistr/test-u32-cmp2.c: New file.
51807         Tests for module 'unistr/u16-cmp2'.
51808         * modules/unistr/u16-cmp2-tests: New file.
51809         * tests/unistr/test-u16-cmp2.c: New file.
51811         Tests for module 'unistr/u8-cmp2'.
51812         * modules/unistr/u8-cmp2-tests: New file.
51813         * tests/unistr/test-u8-cmp2.c: New file.
51814         * tests/unistr/test-cmp2.h: New file, based on tests/unistr/test-cmp.h.
51816         Tests for module 'unistr/u32-cmp'.
51817         * modules/unistr/u32-cmp-tests: New file.
51818         * tests/unistr/test-u32-cmp.c: New file.
51820         Tests for module 'unistr/u16-cmp'.
51821         * modules/unistr/u16-cmp-tests: New file.
51822         * tests/unistr/test-u16-cmp.c: New file.
51824         Tests for module 'unistr/u8-cmp'.
51825         * modules/unistr/u8-cmp-tests: New file.
51826         * tests/unistr/test-u8-cmp.c: New file.
51827         * tests/unistr/test-cmp.h: New file, based on tests/test-memcmp.c.
51829         Tests for module 'unistr/u32-set'.
51830         * modules/unistr/u32-set-tests: New file.
51831         * tests/unistr/test-u32-set.c: New file.
51833         Tests for module 'unistr/u16-set'.
51834         * modules/unistr/u16-set-tests: New file.
51835         * tests/unistr/test-u16-set.c: New file.
51837         Tests for module 'unistr/u8-set'.
51838         * modules/unistr/u8-set-tests: New file.
51839         * tests/unistr/test-u8-set.c: New file.
51840         * tests/unistr/test-set.h: New file.
51842         Tests for module 'unistr/u32-move'.
51843         * modules/unistr/u32-move-tests: New file.
51844         * tests/unistr/test-u32-move.c: New file.
51846         Tests for module 'unistr/u16-move'.
51847         * modules/unistr/u16-move-tests: New file.
51848         * tests/unistr/test-u16-move.c: New file.
51850         Tests for module 'unistr/u8-move'.
51851         * modules/unistr/u8-move-tests: New file.
51852         * tests/unistr/test-u8-move.c: New file.
51853         * tests/unistr/test-move.h: New file.
51855         Tests for module 'unistr/u32-cpy'.
51856         * modules/unistr/u32-cpy-tests: New file.
51857         * tests/unistr/test-u32-cpy.c: New file.
51859         Tests for module 'unistr/u16-cpy'.
51860         * modules/unistr/u16-cpy-tests: New file.
51861         * tests/unistr/test-u16-cpy.c: New file.
51863         Tests for module 'unistr/u8-cpy'.
51864         * modules/unistr/u8-cpy-tests: New file.
51865         * tests/unistr/test-u8-cpy.c: New file.
51866         * tests/unistr/test-cpy.h: New file.
51868 2010-01-09  Bruno Haible  <bruno@clisp.org>
51870         Tests for module 'unistr/u32-uctomb'.
51871         * modules/unistr/u32-uctomb-tests: New file.
51872         * tests/unistr/test-u32-uctomb.c: New file.
51874         Tests for module 'unistr/u16-uctomb'.
51875         * modules/unistr/u16-uctomb-tests: New file.
51876         * tests/unistr/test-u16-uctomb.c: New file.
51878         Tests for module 'unistr/u8-uctomb'.
51879         * modules/unistr/u8-uctomb-tests: New file.
51880         * tests/unistr/test-u8-uctomb.c: New file.
51882         Tests for module 'unistr/u32-mbtoucr'.
51883         * modules/unistr/u32-mbtoucr-tests: New file.
51884         * tests/unistr/test-u32-mbtoucr.c: New file.
51886         Tests for module 'unistr/u16-mbtoucr'.
51887         * modules/unistr/u16-mbtoucr-tests: New file.
51888         * tests/unistr/test-u16-mbtoucr.c: New file.
51890         Tests for module 'unistr/u8-mbtoucr'.
51891         * modules/unistr/u8-mbtoucr-tests: New file.
51892         * tests/unistr/test-u8-mbtoucr.c: New file.
51894         Tests for module 'unistr/u32-mbtouc'.
51895         * modules/unistr/u32-mbtouc-tests: New file.
51896         * tests/unistr/test-u32-mbtouc.c: New file.
51898         Tests for module 'unistr/u16-mbtouc'.
51899         * modules/unistr/u16-mbtouc-tests: New file.
51900         * tests/unistr/test-u16-mbtouc.c: New file.
51902         Tests for module 'unistr/u8-mbtouc'.
51903         * modules/unistr/u8-mbtouc-tests: New file.
51904         * tests/unistr/test-u8-mbtouc.c: New file.
51906         Tests for module 'unistr/u32-mbtouc-unsafe'.
51907         * modules/unistr/u32-mbtouc-unsafe-tests: New file.
51908         * tests/unistr/test-u32-mbtouc-unsafe.c: New file.
51909         * tests/unistr/test-u32-mbtouc.h: New file.
51911         Tests for module 'unistr/u16-mbtouc-unsafe'.
51912         * modules/unistr/u16-mbtouc-unsafe-tests: New file.
51913         * tests/unistr/test-u16-mbtouc-unsafe.c: New file.
51914         * tests/unistr/test-u16-mbtouc.h: New file.
51916         Tests for module 'unistr/u8-mbtouc-unsafe'.
51917         * modules/unistr/u8-mbtouc-unsafe-tests: New file.
51918         * tests/unistr/test-u8-mbtouc-unsafe.c: New file.
51919         * tests/unistr/test-u8-mbtouc.h: New file.
51921         Tests for module 'unistr/u32-mblen'.
51922         * modules/unistr/u32-mblen-tests: New file.
51923         * tests/unistr/test-u32-mblen.c: New file.
51925         Tests for module 'unistr/u16-mblen'.
51926         * modules/unistr/u16-mblen-tests: New file.
51927         * tests/unistr/test-u16-mblen.c: New file.
51929         Tests for module 'unistr/u8-mblen'.
51930         * modules/unistr/u8-mblen-tests: New file.
51931         * tests/unistr/test-u8-mblen.c: New file.
51933         Tests for module 'unistr/u32-to-u16'.
51934         * modules/unistr/u32-to-u16-tests: New file.
51935         * tests/unistr/test-u32-to-u16.c: New file.
51937         Tests for module 'unistr/u32-to-u8'.
51938         * modules/unistr/u32-to-u8-tests: New file.
51939         * tests/unistr/test-u32-to-u8.c: New file.
51941         Tests for module 'unistr/u16-to-u32'.
51942         * modules/unistr/u16-to-u32-tests: New file.
51943         * tests/unistr/test-u16-to-u32.c: New file.
51945         Tests for module 'unistr/u16-to-u8'.
51946         * modules/unistr/u16-to-u8-tests: New file.
51947         * tests/unistr/test-u16-to-u8.c: New file.
51949         Tests for module 'unistr/u8-to-u32'.
51950         * modules/unistr/u8-to-u32-tests: New file.
51951         * tests/unistr/test-u8-to-u32.c: New file.
51953         Tests for module 'unistr/u8-to-u16'.
51954         * modules/unistr/u8-to-u16-tests: New file.
51955         * tests/unistr/test-u8-to-u16.c: New file.
51957         Tests for module 'unistr/u32-check'.
51958         * modules/unistr/u32-check-tests: New file.
51959         * tests/unistr/test-u32-check.c: New file.
51961         Tests for module 'unistr/u16-check'.
51962         * modules/unistr/u16-check-tests: New file.
51963         * tests/unistr/test-u16-check.c: New file.
51965         Tests for module 'unistr/u8-check'.
51966         * modules/unistr/u8-check-tests: New file.
51967         * tests/unistr/test-u8-check.c: New file.
51969         * tests/unictype/test-categ_byname.c: Include <stdbool.h>.
51970         (category_equals): New function.
51971         (main): Add more tests.
51972         * modules/unictype/category-byname-tests (Depends-on): Add stdbool.
51974         * tests/unictype/test-bidi_byname.c (main): Add more tests.
51976 2010-01-10  Bruno Haible  <bruno@clisp.org>
51978         unistr/u*-strcoll: Try harder to distinguish different strings.
51979         * lib/unistr/u-strcoll.h (FUNC): When sl1 and sl2 are the same,
51980         compare s1 and s2 to see if they are different.
51982 2010-01-10  Bruno Haible  <bruno@clisp.org>
51984         unistr/u*-stpncpy: Fix the return value.
51985         * lib/unistr.h (u8_stpncpy, u16_stpncpy, u32_stpncpy): Make the
51986         description of the return value consistent with stpncpy in glibc.
51987         * lib/unistr/u-stpncpy.h (FUNC): Return the pointer past the last
51988         written non-NUL unit.
51990 2010-01-10  Bruno Haible  <bruno@clisp.org>
51992         unistr/u*-next: Add missing dependencies.
51993         * modules/unistr/u8-next (Depends-on): Add unistr/u8-strmbtouc.
51994         * modules/unistr/u16-next (Depends-on): Add unistr/u16-strmbtouc.
51995         * modules/unistr/u32-next (Depends-on): Add unistr/u32-strmbtouc.
51997 2010-01-10  Bruno Haible  <bruno@clisp.org>
51999         unistr/u8-mbsnlen: Fix return value for incomplete character.
52000         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtoucr instead of
52001         u8_mblen.
52002         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtoucr.
52003         Remove unistr/u8-mblen.
52004         * lib/unistr/u16-mbsnlen.c (u16_mbsnlen): Use u16_mbtoucr instead of
52005         u16_mblen.
52006         * modules/unistr/u16-mbsnlen (Depends-on): Add unistr/u16-mbtoucr.
52007         Remove unistr/u16-mblen.
52009 2010-01-10  Bruno Haible  <bruno@clisp.org>
52011         wchar: Fix compilation error when <wchar.h> is used from coreutils.
52012         * lib/wchar.in.h: Treat __need_wint_t like __need_mbstate_t.
52013         Reported by Brian Gough <bjg@gnu.org> and
52014         Chris Clayton <chris2553@googlemail.com> via
52015         Mike Frysinger <vapier@gentoo.org> and Jim Meyering <jim@meyering.net>.
52017 2010-01-09  Bruno Haible  <bruno@clisp.org>
52019         unistr/u16-to-u32: Reject invalid input.
52020         * lib/unistr/u16-to-u32.c (u16_to_u32): Call u16_mbtoucr instead of
52021         u16_mbtouc.
52022         * modules/unistr/u16-to-u32 (Depends-on): Add unistr/u16-mbtoucr.
52023         Remove unistr/u16-mbtouc.
52025         unistr/u16-to-u8: Reject invalid input.
52026         * lib/unistr/u16-to-u8.c (u16_to_u8): Call u16_mbtoucr instead of
52027         u16_mbtouc.
52028         * modules/unistr/u16-to-u8 (Depends-on): Add unistr/u16-mbtoucr.
52029         Remove unistr/u16-mbtouc.
52031         unistr/u8-to-u32: Reject invalid input.
52032         * lib/unistr/u8-to-u32.c (u8_to_u32): Call u8_mbtoucr instead of
52033         u8_mbtouc.
52034         * modules/unistr/u8-to-u32 (Depends-on): Add unistr/u8-mbtoucr.
52035         Remove unistr/u8-mbtouc.
52037         unistr/u8-to-u16: Reject invalid input.
52038         * lib/unistr/u8-to-u16.c (u8_to_u16): Call u8_mbtoucr instead of
52039         u8_mbtouc.
52040         * modules/unistr/u8-to-u16 (Depends-on): Add unistr/u8-mbtoucr.
52041         Remove unistr/u8-mbtouc.
52043 2010-01-09  Bruno Haible  <bruno@clisp.org>
52045         Tests for module 'getlogin'.
52046         * modules/getlogin-tests: New file.
52047         * tests/test-getlogin.c: New file.
52049         New module 'getlogin'.
52050         * lib/unistd.in.h (getlogin): New declaration.
52051         * lib/getlogin.c: New file.
52052         * m4/getlogin.m4: New file.
52053         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETLOGIN,
52054         HAVE_GETLOGIN.
52055         * modules/unistd (Makefile.am): Substitute GNULIB_GETLOGIN,
52056         HAVE_GETLOGIN.
52057         * modules/getlogin: New file.
52058         * doc/posix-functions/getlogin.texi: Mention the new module.
52059         Reported by John W. Eaton <jwe@gnu.org>.
52061 2010-01-09  Bruno Haible  <bruno@clisp.org>
52063         getlogin_r: Support for native Windows.
52064         * lib/getlogin_r.c: Include <windows.h>
52065         (getlogin_r): Implement for native Windows.
52066         * tests/test-getlogin_r.c (main): Also test with a huge buffer.
52067         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>
52068         via John W. Eaton <jwe@gnu.org>.
52070 2010-01-09  Bruno Haible  <bruno@clisp.org>
52072         getlogin_r: Small fixes.
52073         * lib/getlogin_r.c (getlogin_r): Don't set errno if the function
52074         succeeds.
52075         * m4/getlogin_r.m4 (gl_GETLOGIN_R): Require gl_USE_SYSTEM_EXTENSIONS
52076         before testing whether getlogin_r is declared. No need to set
52077         HAVE_DECL_GETLOGIN_R to 1.
52078         (gl_PREREQ_GETLOGIN_R): Don't check for the getlogin_r declaration.
52080 2010-01-09  Bruno Haible  <bruno@clisp.org>
52082         * lib/unistd.in.h (getlogin_r): Add comment.
52084 2010-01-09  Bruno Haible  <bruno@clisp.org>
52086         Tests for module 'getlogin_r'.
52087         * modules/getlogin_r-tests: New file.
52088         * tests/test-getlogin_r.c: New file.
52090 2010-01-09  Jim Meyering  <meyering@redhat.com>
52092         maint.mk: extend proper_name_utf8-vs-LIBICONV-checking rule
52093         * top/maint.mk (sc_proper_name_utf8_requires_ICONV): Adapt to work
52094         also when $(LIBICONV) is part of LDADD, rather than ${prog}_LDADD.
52096 2010-01-08  Simon Josefsson  <simon@josefsson.org>
52098         * lib/dup2.c (rpl_dup2): Improve comment.
52100 2010-01-08  Eric Blake  <ebb9@byu.net>
52102         maint.mk: allow packages to add makefile @@ exceptions
52103         * top/maint.mk (_makefile_at_at_check_exceptions): New hook.
52104         (sc_makefile_check): Rename...
52105         (sc_makefile_at_at_check): ...to this, and use hook.
52107         dup2: work around mingw bug
52108         * lib/dup2.c (rpl_dup2): Sanitize return value on mingw.
52109         Reported by Simon Josefsson.
52111 2010-01-07  John W. Eaton  <jwe@octave.org>  (tiny change)
52113         glob: Fix C++ compilation.
52114         * lib/glob.in.h [__cplusplus]: Define __BEGIN_DECLS and __END_DECLS for
52115         C++.
52117 2010-01-07  Bruno Haible  <bruno@clisp.org>
52119         Fix indentation of wctype.in.h, broken since 2007-01-06.
52120         * lib/wctype.in.h: Fix indentation of preprocessor directives.
52122 2010-01-07  Bruno Haible  <bruno@clisp.org>
52124         mbslen: Avoid collision with system function.
52125         * lib/string.in.h [MirBSD]: Include <wchar.h>.
52126         (mbslen): Undefine first. Alias mbslen to rpl_mbslen.
52127         * m4/mbslen.m4: New file.
52128         * modules/mbslen (Files): Add it.
52129         (configure.ac): Invoke gl_MBSLEN.
52130         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MBSLEN.
52131         * modules/string (Makefile.am): Substitute HAVE_MBSLEN.
52132         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>
52133         via Ian Beckwith <ianb@erislabs.net>.
52135 2010-01-07  Bruno Haible  <bruno@clisp.org>
52137         dirent: Document the last fix.
52138         * doc/posix-headers/dirent.texi: Document the bug of missing 'ino_t'.
52140 2010-01-07  Bruno Haible  <bruno@clisp.org>
52142         stdio: Ensure <stdio.h> defines off_t, ssize_t, va_list.
52143         * lib/stdio.in.h: Include <sys/types.h> unconditionally.
52144         * tests/test-stdio.c: Verify that fpos_t, off_t, size_t, ssize_t,
52145         va_list are defined.
52146         * doc/posix-headers/stdio.texi: Document the bug of missing types.
52147         Reported by Eric Blake.
52149 2010-01-07  Bruno Haible  <bruno@clisp.org>
52151         xlist, xoset: Fix missing dependency bug, introduced on 2009-12-13.
52152         * modules/xlist (Depends-on): Add 'list',
52153         * modules/xoset (Depends-on): Add 'oset'.
52154         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
52156 2010-01-07  Bruno Haible  <bruno@clisp.org>
52158         * doc/posix-functions/strcasecmp.texi: Clarify the platforms.
52159         * doc/posix-functions/strncasecmp.texi: Likewise.
52161 2010-01-07  Bruno Haible  <bruno@clisp.org>
52163         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Simplify logic.
52165 2010-01-07  John W. Eaton  <jwe@octave.org>
52167         wctype: allow C++ use
52168         * lib/wctype.in.h: Add extern "C" block for C++.
52170 2010-01-06  Eric Blake  <ebb9@byu.net>
52172         maint.mk: detect incorrect GFDL usage
52173         * top/maint.mk (_GFDL_regexp, sc_GFDL_version): New rule.
52175 2010-01-06  Jim Meyering  <meyering@redhat.com>
52176         and Eric Blake  <ebb9@byu.net>
52178         maint.mk: ignore multi-line copyright in NEWS
52179         * top/maint.mk (NEWS_hash): Add immunity to multi-line copyright.
52181 2010-01-06  Eric Blake  <ebb9@byu.net>
52183         select: add missing dependency
52184         * modules/select-tests (Depends-on): Move sockets dependency...
52185         * modules/select (Depends-on): ...here.
52186         Reported by Ian Beckwith.
52188         doc: regenerate INSTALL
52189         * doc/INSTALL: Reflect recent autoconf update.
52190         * doc/INSTALL.ISO: Likewise.
52191         * doc/INSTALL.UTF-8: Likewise.
52193         pread: fix compilation on glibc
52194         * m4/pread.m4 (gl_FUNC_PREAD): Request all interfaces.
52195         Reported by Ralf Wildenhues.
52197         dirent: fix test failure
52198         * lib/dirent.in.h (includes): Guarantee ino_t.
52199         Reported by Ralf Wildenhues.
52201 2010-01-06  Petr Salinger  <Petr.Salinger@seznam.cz>  (tiny change)
52203         linkat, renameat: avoid bad free
52204         * lib/at-func2.c (at_func2): Fix typo.
52205         Reported via Ian Beckwith, from http://bugs.debian.org/561117.
52207 2010-01-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52209         cleanup after gl_FUNC_READLINK, for gl_FUNC_SYMLINK test
52210         * m4/readlink.m4 (gl_FUNC_READLINK): Remove conftest.lnk2,
52211         to avoid failure of symlink test later.
52213 2010-01-06  Eric Blake  <ebb9@byu.net>
52215         stdio, unistd: guarantee ssize_t
52216         * lib/unistd.in.h (includes): Ensure that types required by POSIX
52217         2008 are exposed when needed.
52218         * lib/stdio.in.h (includes): Likewise.
52219         Reported by Ralf Wildenhues.
52221 2010-01-06  Paolo Bonzini  <bonzini@gnu.org>
52223         nl_langinfo: do not call AC_CHECK_FUNC_ONCE inside if.
52224         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Do not call
52225         AC_CHECK_FUNC_ONCE inside if, do not adjust ac_cv_func_nl_langinfo.
52227 2010-01-06  Jim Meyering  <meyering@redhat.com>
52229         readtokens: this module *does* require xalloc.h
52230         It uses only functions that were omitted by the old syntax-check rule.
52231         * lib/readtokens.c: Include "xalloc.h" once again.
52232         * modules/readtokens (Depends-on): Add xalloc.
52233         This reverts part of 0e0f8f12ec241c0f1c1f21f960bb5cf908a0fa3c.
52235 2010-01-05  Eric Blake  <ebb9@byu.net>
52237         maint: support 'make announcement' from a VPATH build
52238         * top/maint.mk (announcement): Look for correct NEWS file.
52240 2010-01-05  Aurelien Jarno  <aurelien@aurel32.net>  (tiny change)
52242         utimens (fdutimens): ignore a negative FD, per contract
52243         * lib/utimens.c (fdutimens) [HAVE_FUTIMENS]: Call futimens only
52244         when we have a valid file descriptor.  Otherwise, using a brand
52245         new glibc (with just-patched futimens that now fails with EBADF)
52246         would cause this function to fail with ENOSYS.
52247         Reported by Guillaume Ayoub in http://bugs.debian.org/563726.
52248         See also http://bugzilla.redhat.com/552320.
52250 2010-01-05  Eric Blake  <ebb9@byu.net>
52252         strcase: document what it provides
52253         * doc/posix-functions/strcasecmp.texi (strcasecmp): Mention the
52254         gnulib module.
52255         * doc/posix-functions/strncasecmp.texi (strncasecmp): Likewise.
52256         Reported by Dilyan Palauzov <Dilyan.Palauzov@aegee.org>.
52258 2010-01-05  Jim Meyering  <meyering@redhat.com>
52260         maint: remove useless inclusions of "xalloc.h"
52261         * lib/getloadavg.c: Remove useless inclusion of "xalloc.h".
52262         * lib/readtokens.c: Likewise.
52263         * lib/same.c: Likewise.
52264         * modules/getloadavg (Depends-on): Remove xalloc.
52265         * modules/readtokens: Likewise.
52266         * modules/same: Likewise.
52268         maint.mk: include 4 more function names in alloca.h-checking regexp
52269         * top/maint.mk (sc_prohibit_xalloc_without_use): Use more complete
52270         regexp.  Before, we would give a false-positive (saying alloca.h
52271         is included unnecessarily) when the only uses involved omitted symbols.
52273         xalloc.h: use consistent formatting
52274         * lib/xalloc.h: Move declarations to start in the first column.
52276 2010-01-05  Eric Blake  <ebb9@byu.net>
52278         mkdir: avoid xalloc
52279         * lib/mkdir.c (includes): Drop unused header.
52280         Reported by John W. Eaton.
52282 2010-01-04  Jim Meyering  <meyering@redhat.com>
52284         nl_langinfo: avoid configure-time syntax error
52285         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): When we've already tested
52286         for nl_langinfo.h, AC_CHECK_FUNCS_ONCE([nl_langinfo]) expands to
52287         the empty string.  Don't let that provoke a shell syntax error.
52289         regcomp, regexec, fnmatch: avoid array bounds read error
52290         * lib/regcomp.c (build_equiv_class): From glibc:
52291         Use only the low 24 bits of a findidx return value as an index
52292         into the weights array.  Patch by Ulrich Drepper:
52293         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commit;h=b7d1c5fa30
52294         * lib/regexec.c (check_node_accept_bytes): Likewise.
52295         * lib/fnmatch_loop.c (FCT): Likewise.
52297         regcomp: skip collseq lookup when there are no rules
52298         * lib/regcomp.c (lookup_collation_sequence_value): From glibc:
52299         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a532a41df58
52301         regcomp: recognize ill-formed { } expressions
52302         * lib/regcomp.c (parse_dup_op): From glibc:
52303         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a87cd2894cb
52305         regcomp: fix typo in comment
52306         * lib/regcomp.c (duplicate_node_closure): Sync from glibc.
52307         s/satisfy/satisfies/.
52309         regcomp: sync from glibc: remove dead store
52310         * lib/regcomp.c (duplicate_node_closure): Remove useless
52311         search_duplicated_node call and dead store.
52313         regcomp: sync from glibc; always use nl_langinfo
52314         * lib/regcomp.c (init_dfa) [!LIBC]: Always use nl_langinfo (CODESET),
52315         now that gnulib provides it.  Recognize UTF8 as well as UTF-8.
52316         * modules/regex (Depends-on): Add nl_langinfo.
52318 2010-01-04  Eric Blake  <ebb9@byu.net>
52320         fdopendir: fix configure test
52321         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for existing file.
52323 2010-01-01  Bruno Haible  <bruno@clisp.org>
52325         wchar: Remove unused configure check.
52326         * m4/wchar.m4 (gl_WCHAR_H): Don't test whether <wchar.h> is standalone.
52328 2010-01-01  Eric Blake  <ebb9@byu.net>
52330         headers: make check of system header explicit
52331         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't exploit knowledge of
52332         gl_CHECK_NEXT_HEADER internals, but call AC_CHECK_HEADERS_ONCE
52333         ourselves.
52334         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
52335         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
52336         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
52337         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise, for gt_INTTYPES_PRI
52338         internals.
52339         * m4/wchar.m4 (gl_WCHAR_H): Skip followup test if header is
52340         missing.
52341         Suggested by Bruno Haible.
52343 2010-01-01  Jim Meyering  <meyering@redhat.com>
52345         ChangeLog: tweak to eliminate unnecessary copyright line
52346         * ChangeLog: Remove a copyright line that was mistakenly updated
52347         by today's update-copyright run.  Reported by Eric Blake.
52349         test-update-copyright: don't let envvar setting cause test failure
52350         * tests/test-update-copyright.sh: Set UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
52352 2010-01-01  Bruno Haible  <bruno@clisp.org>
52354         localename: Avoid gcc warning.
52355         * lib/localename.c (gl_locale_name_thread_unsafe): Don't define this
52356         function if it is not used.
52358 2010-01-01  Jim Meyering  <meyering@redhat.com>
52360         update nearly all FSF copyright year lists to include 2010
52361         Use the same procedure as for 2009, outlined in
52362         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/20081
52364         version-etc: set COPYRIGHT_YEAR to 2010
52365         * lib/version-etc.c (COPYRIGHT_YEAR): Manually update the enum.
52367 2009-12-31  Eric Blake  <ebb9@byu.net>
52369         doc: correct availability of cygwin 1.5.x getopt
52370         * doc/posix-functions/optarg.texi (optarg): Cygwin supplies getopt
52371         variables.
52372         * doc/posix-functions/opterr.texi (opterr): Likewise.
52373         * doc/posix-functions/optind.texi (optind): Likewise.
52374         * doc/posix-functions/optopt.texi (optopt): Likewise.
52375         * doc/posix-functions/tzname.texi (tzname): Likewise.
52377         openat: update maintainer
52378         * modules/openat (Maintainer): Add myself.
52380         utimens: avoid shadowing warning
52381         * lib/utimens.c (fdutimens, lutimens): Consolidate separate stat
52382         buffers into one, to avoid shadowing, as well as avoiding a
52383         redundant stat.
52384         Reported by Jim Meyering.
52386         test-dup2: avoid compiler warning
52387         * tests/test-dup2.c (is_inheritable): Only define if used.
52389 2010-01-01  Bruno Haible  <bruno@clisp.org>
52391         vasnprintf: Avoid passing an 'rpl_mbstate_t *' to the system's wcrtomb.
52392         * lib/vasnprintf.c (VASNPRINTF): If GNULIB_defined_mbstate_t is
52393         defined, use wctomb instead of wcrtomb.
52395 2010-01-01  Bruno Haible  <bruno@clisp.org>
52397         iconv: Reject native Solaris iconv.
52398         * m4/iconv.m4 (AM_ICONV_LINK): Recognize native Solaris iconv() bug.
52399         * doc/posix-functions/iconv.texi: Document native Solaris iconv() bug.
52401 2009-12-31  Bruno Haible  <bruno@clisp.org>
52403         * tests/test-signal.c (main): Remove test of 'SIG'.
52405 2009-12-31  Bruno Haible  <bruno@clisp.org>
52407         spawn: Fix incomplete fix.
52408         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
52409         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
52410         warnings for GNULIB_POSIXCHECK again.
52411         Reported by Eric Blake.
52413 2009-12-31  Bruno Haible  <bruno@clisp.org>
52415         Avoid namespace pollution on glibc systems.
52416         * lib/spawn.in.h: Don't include <sched.h>, <signal.h> on glibc systems.
52417         * lib/sys_times.in.h: Don't include <time.h> on glibc systems.
52418         * lib/wchar.in.h: Don't include <stddef.h>, <stdio.h>, <time.h> on
52419         glibc systems.
52421 2009-12-31  Bruno Haible  <bruno@clisp.org>
52423         * m4/wchar.m4 (gl_WCHAR_H): Remove gl_STDDEF_H invocation.
52424         (gl_REPLACE_WCHAR_H): Turn into a no-op.
52425         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Likewise.
52426         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
52427         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
52428         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
52429         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
52431 2009-12-31  Bruno Haible  <bruno@clisp.org>
52433         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
52434         gl_CHECK_NEXT_HEADERS before testing ac_cv_header_sys_select_h, not
52435         afterwards.
52437 2009-12-31  Bruno Haible  <bruno@clisp.org>
52439         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H_DEFAULTS): Don't set
52440         SYS_UTSNAME_H.
52442 2009-12-31  Bruno Haible  <bruno@clisp.org>
52444         spawn: Fix misapplied patch.
52445         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
52446         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
52447         warnings for GNULIB_POSIXCHECK.
52449 2009-12-31  Bruno Haible  <bruno@clisp.org>
52451         times: Update after sys_times changed.
52452         * m4/times.m4: New file, extracted from modules/times. Set HAVE_TIMES.
52453         * modules/times (Files): Add it.
52454         (configure.ac): Invoke gl_FUNC_TIMES.
52456 2009-12-31  Bruno Haible  <bruno@clisp.org>
52458         Use AC_C_INLINE where necessary.
52459         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Require AC_C_INLINE.
52460         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
52461         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
52462         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
52463         * m4/mbfile.m4 (gl_MBFILE): Likewise.
52464         * m4/mbiter.m4 (gl_MBITER): Likewise.
52465         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
52466         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
52467         * m4/wait-process.m4 (gl_WAIT_PROCESS): Likewise.
52468         * modules/u64 (configure.ac): Likewise.
52470 2009-12-31  Bruno Haible  <bruno@clisp.org>
52472         Use AC_C_INLINE instead of module 'inline' where possible.
52473         * modules/inline (Description): Clarify purpose.
52474         * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS): Require AC_C_INLINE.
52475         * modules/count-one-bits (Depends-on): Remove inline.
52476         * m4/openat.m4 (gl_PREREQ_OPENAT): Require AC_C_INLINE.
52477         * modules/openat (Depends-on): Remove inline.
52478         * modules/fdutimensat (Depends-on, configure.ac): Require AC_C_INLINE
52479         instead of depending on module 'inline'.
52480         * modules/filevercmp (Depends-on, configure.ac): Likewise.
52481         * modules/unicase/cased (Depends-on, configure.ac): Likewise.
52482         * modules/unicase/ignorable (Depends-on, configure.ac): Likewise.
52483         * modules/unictype/category-of (Depends-on, configure.ac): Likewise.
52484         * modules/unictype/category-test (Depends-on, configure.ac): Likewise.
52485         * modules/unictype/ctype-alnum (Depends-on, configure.ac): Likewise.
52486         * modules/unictype/ctype-alpha (Depends-on, configure.ac): Likewise.
52487         * modules/unictype/ctype-blank (Depends-on, configure.ac): Likewise.
52488         * modules/unictype/ctype-cntrl (Depends-on, configure.ac): Likewise.
52489         * modules/unictype/ctype-digit (Depends-on, configure.ac): Likewise.
52490         * modules/unictype/ctype-graph (Depends-on, configure.ac): Likewise.
52491         * modules/unictype/ctype-lower (Depends-on, configure.ac): Likewise.
52492         * modules/unictype/ctype-print (Depends-on, configure.ac): Likewise.
52493         * modules/unictype/ctype-punct (Depends-on, configure.ac): Likewise.
52494         * modules/unictype/ctype-space (Depends-on, configure.ac): Likewise.
52495         * modules/unictype/ctype-upper (Depends-on, configure.ac): Likewise.
52496         * modules/unictype/ctype-xdigit (Depends-on, configure.ac): Likewise.
52497         * modules/unictype/property-alphabetic (Depends-on, configure.ac):
52498         Likewise.
52499         * modules/unictype/property-ascii-hex-digit (Depends-on,
52500         configure.ac): Likewise.
52501         * modules/unictype/property-bidi-arabic-digit (Depends-on,
52502         configure.ac): Likewise.
52503         * modules/unictype/property-bidi-arabic-right-to-left (Depends-on,
52504         configure.ac): Likewise.
52505         * modules/unictype/property-bidi-block-separator (Depends-on,
52506         configure.ac): Likewise.
52507         * modules/unictype/property-bidi-boundary-neutral (Depends-on,
52508         configure.ac): Likewise.
52509         * modules/unictype/property-bidi-common-separator (Depends-on,
52510         configure.ac): Likewise.
52511         * modules/unictype/property-bidi-control (Depends-on, configure.ac):
52512         Likewise.
52513         * modules/unictype/property-bidi-embedding-or-override (Depends-on,
52514         configure.ac): Likewise.
52515         * modules/unictype/property-bidi-eur-num-separator (Depends-on,
52516         configure.ac): Likewise.
52517         * modules/unictype/property-bidi-eur-num-terminator (Depends-on,
52518         configure.ac): Likewise.
52519         * modules/unictype/property-bidi-european-digit (Depends-on,
52520         configure.ac): Likewise.
52521         * modules/unictype/property-bidi-hebrew-right-to-left (Depends-on,
52522         configure.ac): Likewise.
52523         * modules/unictype/property-bidi-left-to-right (Depends-on,
52524         configure.ac): Likewise.
52525         * modules/unictype/property-bidi-non-spacing-mark (Depends-on,
52526         configure.ac): Likewise.
52527         * modules/unictype/property-bidi-other-neutral (Depends-on,
52528         configure.ac): Likewise.
52529         * modules/unictype/property-bidi-pdf (Depends-on, configure.ac):
52530         Likewise.
52531         * modules/unictype/property-bidi-segment-separator (Depends-on,
52532         configure.ac): Likewise.
52533         * modules/unictype/property-bidi-whitespace (Depends-on,
52534         configure.ac): Likewise.
52535         * modules/unictype/property-combining (Depends-on, configure.ac):
52536         Likewise.
52537         * modules/unictype/property-composite (Depends-on, configure.ac):
52538         Likewise.
52539         * modules/unictype/property-currency-symbol (Depends-on,
52540         configure.ac): Likewise.
52541         * modules/unictype/property-dash (Depends-on, configure.ac): Likewise.
52542         * modules/unictype/property-decimal-digit (Depends-on, configure.ac):
52543         Likewise.
52544         * modules/unictype/property-default-ignorable-code-point (Depends-on,
52545         configure.ac): Likewise.
52546         * modules/unictype/property-deprecated (Depends-on, configure.ac):
52547         Likewise.
52548         * modules/unictype/property-diacritic (Depends-on, configure.ac):
52549         Likewise.
52550         * modules/unictype/property-extender (Depends-on, configure.ac):
52551         Likewise.
52552         * modules/unictype/property-format-control (Depends-on, configure.ac):
52553         Likewise.
52554         * modules/unictype/property-grapheme-base (Depends-on, configure.ac):
52555         Likewise.
52556         * modules/unictype/property-grapheme-extend (Depends-on, configure.ac):
52557         Likewise.
52558         * modules/unictype/property-grapheme-link (Depends-on, configure.ac):
52559         Likewise.
52560         * modules/unictype/property-hex-digit (Depends-on, configure.ac):
52561         Likewise.
52562         * modules/unictype/property-hyphen (Depends-on, configure.ac):
52563         Likewise.
52564         * modules/unictype/property-id-continue (Depends-on, configure.ac):
52565         Likewise.
52566         * modules/unictype/property-id-start (Depends-on, configure.ac):
52567         Likewise.
52568         * modules/unictype/property-ideographic (Depends-on, configure.ac):
52569         Likewise.
52570         * modules/unictype/property-ids-binary-operator (Depends-on,
52571         configure.ac): Likewise.
52572         * modules/unictype/property-ids-trinary-operator (Depends-on,
52573         configure.ac): Likewise.
52574         * modules/unictype/property-ignorable-control (Depends-on,
52575         configure.ac): Likewise.
52576         * modules/unictype/property-iso-control (Depends-on, configure.ac):
52577         Likewise.
52578         * modules/unictype/property-join-control (Depends-on, configure.ac):
52579         Likewise.
52580         * modules/unictype/property-left-of-pair (Depends-on, configure.ac):
52581         Likewise.
52582         * modules/unictype/property-line-separator (Depends-on, configure.ac):
52583         Likewise.
52584         * modules/unictype/property-logical-order-exception (Depends-on,
52585         configure.ac): Likewise.
52586         * modules/unictype/property-lowercase (Depends-on, configure.ac):
52587         Likewise.
52588         * modules/unictype/property-math (Depends-on, configure.ac): Likewise.
52589         * modules/unictype/property-non-break (Depends-on, configure.ac):
52590         Likewise.
52591         * modules/unictype/property-not-a-character (Depends-on, configure.ac):
52592         Likewise.
52593         * modules/unictype/property-numeric (Depends-on, configure.ac):
52594         Likewise.
52595         * modules/unictype/property-other-alphabetic (Depends-on,
52596         configure.ac): Likewise.
52597         * modules/unictype/property-other-default-ignorable-code-point
52598         (Depends-on, configure.ac): Likewise.
52599         * modules/unictype/property-other-grapheme-extend (Depends-on,
52600         configure.ac): Likewise.
52601         * modules/unictype/property-other-id-continue (Depends-on,
52602         configure.ac): Likewise.
52603         * modules/unictype/property-other-id-start (Depends-on, configure.ac):
52604         Likewise.
52605         * modules/unictype/property-other-lowercase (Depends-on, configure.ac):
52606         Likewise.
52607         * modules/unictype/property-other-math (Depends-on, configure.ac):
52608         Likewise.
52609         * modules/unictype/property-other-uppercase (Depends-on, configure.ac):
52610         Likewise.
52611         * modules/unictype/property-paired-punctuation (Depends-on,
52612         configure.ac): Likewise.
52613         * modules/unictype/property-paragraph-separator (Depends-on,
52614         configure.ac): Likewise.
52615         * modules/unictype/property-pattern-syntax (Depends-on, configure.ac):
52616         Likewise.
52617         * modules/unictype/property-pattern-white-space (Depends-on,
52618         configure.ac): Likewise.
52619         * modules/unictype/property-private-use (Depends-on, configure.ac):
52620         Likewise.
52621         * modules/unictype/property-punctuation (Depends-on, configure.ac):
52622         Likewise.
52623         * modules/unictype/property-quotation-mark (Depends-on, configure.ac):
52624         Likewise.
52625         * modules/unictype/property-radical (Depends-on, configure.ac):
52626         Likewise.
52627         * modules/unictype/property-sentence-terminal (Depends-on,
52628         configure.ac): Likewise.
52629         * modules/unictype/property-soft-dotted (Depends-on, configure.ac):
52630         Likewise.
52631         * modules/unictype/property-space (Depends-on, configure.ac): Likewise.
52632         * modules/unictype/property-terminal-punctuation (Depends-on,
52633         configure.ac): Likewise.
52634         * modules/unictype/property-titlecase (Depends-on, configure.ac):
52635         Likewise.
52636         * modules/unictype/property-unassigned-code-value (Depends-on,
52637         configure.ac): Likewise.
52638         * modules/unictype/property-unified-ideograph (Depends-on,
52639         configure.ac): Likewise.
52640         * modules/unictype/property-uppercase (Depends-on, configure.ac):
52641         Likewise.
52642         * modules/unictype/property-variation-selector (Depends-on,
52643         configure.ac): Likewise.
52644         * modules/unictype/property-white-space (Depends-on, configure.ac):
52645         Likewise.
52646         * modules/unictype/property-xid-continue (Depends-on, configure.ac):
52647         Likewise.
52648         * modules/unictype/property-xid-start (Depends-on, configure.ac):
52649         Likewise.
52650         * modules/unictype/property-zero-width (Depends-on, configure.ac):
52651         Likewise.
52652         * modules/unictype/syntax-c-ident (Depends-on, configure.ac): Likewise.
52653         * modules/unictype/syntax-java-ident (Depends-on, configure.ac):
52654         Likewise.
52656 2009-12-31  Bruno Haible  <bruno@clisp.org>
52658         Remove unnecessary AC_C_INLINE invocation.
52659         * m4/popen.m4 (gl_PREREQ_POPEN): Don't invoke AC_C_INLINE. Not needed
52660         since 2009-08-21.
52662 2009-12-31  Jim Meyering  <meyering@redhat.com>
52664         maint.mk: don't require explicit gpg_key_ID in cfg.mk
52665         * top/maint.mk (gpg_key_ID): Derive key ID from signed release tag.
52666         With this change, we can all remove the gpg_key_ID = ... definition
52667         from our respective cfg.mk files.
52669         maint.mk: create announcement template in ~/, not in /tmp
52670         * top/maint.mk (emit_upload_commands): Adjust.
52671         (release-prep): Emit into ~/announce-..., not /tmp/announce-...
52672         Remove temporary file, .ci-msg.
52674 2009-12-31  Eric Blake  <ebb9@byu.net>
52676         link-warning: always build headers with link warnings
52677         * modules/arpa_inet (Makefile.am): Always build replacement
52678         header.
52679         * modules/ctype (Makefile.am): Likewise.
52680         * modules/dirent (Makefile.am): Likewise.
52681         * modules/inttypes (Makefile.am): Likewise.
52682         * modules/langinfo (Makefile.am): Likewise.
52683         * modules/locale (Makefile.am): Likewise.
52684         * modules/spawn (Makefile.am): Likewise.
52685         * modules/sys_file (Makefile.am): Likewise.
52686         * modules/sys_ioctl (Makefile.am): Likewise.
52687         * modules/sys_select (Makefile.am): Likewise.
52688         * modules/sys_socket (Makefile.am): Likewise.
52689         * modules/sys_times (Makefile.am): Likewise.
52690         * modules/sys_utsname (Makefile.am): Likewise.
52691         * modules/sys_wait (Makefile.am): Likewise.
52692         * modules/wchar (Makefile.am): Likewise.
52693         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET)
52694         (gl_ARPA_INET_H_DEFAULTS): Drop unneeded variable.
52695         * m4/ctype.m4 (gl_CTYPE_H_DEFAULTS): Likewise.
52696         * m4/isblank.m4 (gl_FUNC_ISBLANK): Likewise.
52697         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H, gl_DIRENT_H_DEFAULTS):
52698         Likewise.
52699         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
52700         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
52701         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_H_DEFAULTS):
52702         Likewise.
52703         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H, gl_SPAWN_H_DEFAULTS):
52704         Likewise.
52705         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
52706         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H, gl_REPLACE_SYS_IOCTL_H)
52707         (gl_SYS_IOCTL_H_DEFAULTS): Likewise.
52708         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
52709         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
52710         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
52711         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
52712         * m4/wchar.m4 (gl_WCHAR_H, gl_REPLACE_WCHAR_H)
52713         (gl_WCHAR_H_DEFAULTS): Likewise.
52715 2009-12-31  Eric Blake  <ebb9@byu.net>
52717         signal, spawn: use link warnings
52718         * lib/signal.in.h (sigset_t): Make unconditional.
52719         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset)
52720         (sigpending, sigprocmask, sigaction): Add link warnings.
52721         * lib/spawn.in.h (posix_spawn, posix_spawnp, posix_spawnattr_init)
52722         (posix_spawnattr_destroy, posix_spawnattr_getsigdefault)
52723         (posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask)
52724         (posix_spawnattr_setsigmask, posix_spawnattr_getflags)
52725         (posix_spawnattr_setflags, posix_spawnattr_getpgroup)
52726         (posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy)
52727         (posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam)
52728         (posix_spawnattr_setschedparam, posix_spawn_file_actions_init)
52729         (posix_spawn_file_actions_destroy)
52730         (posix_spawn_file_actions_addopen)
52731         (posix_spawn_file_actions_addclose)
52732         (posix_spawn_file_actions_adddup2): Likewise.
52733         * m4/signal_h.m4 (gl_SIGNAL_H): Guarantee uid_t.
52734         * tests/test-signal.c (main): Enhance test.
52736         spawn: improve wrapper support
52737         * m4/spawn_h.m4 (gl_SPAWN_H): Check for type existence.
52738         (gl_SPAWN_H_DEFAULTS): New defaults.
52739         * modules/spawn (Makefile.am): Substitute them.
52740         * lib/spawn.in.h: (posix_spawnattr_t, posix_spawn_file_actions_t):
52741         Only declare if missing or broken.
52743         sys_times, sys_utsname: use include_next
52744         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Support wrapping an existing
52745         header.
52746         (gl_SYS_TIMES_H_DEFAULTS): Add another variable.
52747         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
52748         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
52749         * modules/sys_times (Depends-on): Add include_next.
52750         (Makefile.am): Substitute additional values.
52751         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
52752         * lib/sys_times.in.h (includes): Include native header, if
52753         available.
52754         * lib/sys_utsname.in.h (includes): Likewise.
52755         * tests/test-sys_times.c (main): Enhance test.
52757         fdutimensat: revert prior patch
52758         * modules/fdutimensat (Depends-on): Re-add inline; it is needed by
52759         utimens.h.
52760         Reported by Bruno Haible.
52762 2009-12-30  Eric Blake  <ebb9@byu.net>
52764         sys_wait: drop link-warning dependency
52765         * modules/sys_wait (Depends-on, Makefile.am): Drop unneeded
52766         link-warning efforts.
52767         * lib/sys_wait.in.h: Likewise.
52769         fdutimensat: remove bogus dependency
52770         * modules/fdutimensat (Depends-on): Drop inline.
52772         unistd: fix typo
52773         * lib/unistd.in.h (linkat) [GNULIB_POSIXCHECK]: Fix typo.
52775 2009-12-30  Bruno Haible  <bruno@clisp.org>
52777         Fix compilation error with Solaris cc.
52778         * lib/unicase/u8-is-invariant.c: Include <stdbool.h>.
52779         * lib/unicase/u16-is-invariant.c: Likewise.
52780         * lib/unicase/u32-is-invariant.c: Likewise.
52781         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
52783 2009-12-30  Bruno Haible  <bruno@clisp.org>
52785         Fix test crash.
52786         * tests/test-localename.c (test_locale_name_thread): Skip unavailable
52787         locales.
52788         Reported by Simon Josefsson <simon@josefsson.org>.
52790 2009-12-30  Bruno Haible  <bruno@clisp.org>
52792         Fix compilation error on most platforms.
52793         * tests/test-localename.c (categories): Define only if HAVE_NEWLOCALE.
52794         Reported by Simon Josefsson <simon@josefsson.org>
52795         and Nelson H. F. Beebe <beebe@math.utah.edu>.
52797 2009-12-30  Eric Blake  <ebb9@byu.net>
52799         futimens, utimensat: work around ntfs-3g bug
52800         * lib/utimensat.c (rpl_utimensat): Drop attempts to cache whether
52801         a ctime bug is present, and expand workaround to cover ntfs-3g.
52802         * lib/utimens.c (fdutimens, lutimens): Likewise.
52803         (utimensat_ctime_really, detect_ctime_bug): Drop cache mechanism.
52804         (validate_timespec): Adjust return value.
52805         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Update comment.
52806         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
52807         Reported by ctrn3e8 <ctrn3e8@gmail.com>.
52809 2009-12-29  Eric Blake  <ebb9@byu.net>
52811         link-warning: make usage consistent
52812         * modules/ctype (Depends-on): Add link-warning.
52813         (Makefile.am): Update rules accordingly.
52814         * modules/langinfo (Depends-on, Makefile.am): Likewise.
52815         * modules/locale (Depends-on, Makefile.am): Likewise.
52816         * modules/sys_file (Makefile.am): Likewise.
52817         * modules/getopt-posix (Makefile.am): Delete unused link warning
52818         efforts.
52819         * lib/ctype.in.h (GL_LINK_WARNING): Ensure definition before use.
52820         * lib/langinfo.in.h (GL_LINK_WARNING): Likewise.
52821         * lib/locale.in.h (GL_LINK_WARNING): Likewise.
52822         * lib/sys_file.in.h (GL_LINK_WARNING): Likewise.
52824         stdio: remove unused variables
52825         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Remove unused variables.
52826         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Likewise.
52827         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
52829         tests: test more substitute headers
52830         * modules/ctype-tests: New file.
52831         * modules/dirent-tests: Likewise.
52832         * modules/spawn-tests: Likewise.
52833         * modules/sys_file-tests: Likewise.
52834         * modules/sys_ioctl-tests: Likewise.
52835         * modules/sys_wait-tests: Likewise.
52836         * tests/test-ctype.c: Likewise.
52837         * tests/test-dirent.c: Likewise.
52838         * tests/test-spawn.c: Likewise.
52839         * tests/test-sys_file.c: Likewise.
52840         * tests/test-sys_ioctl.c: Likewise.
52841         * tests/test-sys_wait.c: Likewise.
52842         * m4/spawn_h.m4 (gl_SPAWN_H): Replace header if it is missing.
52843         * lib/sys_file.in.h (LOCK_SH, LOCK_EX, LOCK_UN, LOCK_NB): Provide
52844         whether or not flock is in use.
52846         tests: remove License section from module
52847         * modules/arpa_inet-tests: Remove unneeded section.
52848         * modules/byteswap-tests: Likewise.
52849         * modules/ceilf-tests: Likewise.
52850         * modules/ceill-tests: Likewise.
52851         * modules/crypto/des-tests: Likewise.
52852         * modules/crypto/gc-arcfour-tests: Likewise.
52853         * modules/crypto/gc-arctwo-tests: Likewise.
52854         * modules/crypto/gc-des-tests: Likewise.
52855         * modules/crypto/gc-hmac-md5-tests: Likewise.
52856         * modules/crypto/gc-hmac-sha1-tests: Likewise.
52857         * modules/crypto/gc-md2-tests: Likewise.
52858         * modules/crypto/gc-md4-tests: Likewise.
52859         * modules/crypto/gc-md5-tests: Likewise.
52860         * modules/crypto/gc-pbkdf2-sha1-tests: Likewise.
52861         * modules/crypto/gc-rijndael-tests: Likewise.
52862         * modules/crypto/gc-sha1-tests: Likewise.
52863         * modules/crypto/gc-tests: Likewise.
52864         * modules/crypto/md2-tests: Likewise.
52865         * modules/crypto/md4-tests: Likewise.
52866         * modules/fcntl-h-tests: Likewise.
52867         * modules/floorf-tests: Likewise.
52868         * modules/floorl-tests: Likewise.
52869         * modules/frexp-nolibm-tests: Likewise.
52870         * modules/frexp-tests: Likewise.
52871         * modules/frexpl-nolibm-tests: Likewise.
52872         * modules/frexpl-tests: Likewise.
52873         * modules/getaddrinfo-tests: Likewise.
52874         * modules/inttypes-tests: Likewise.
52875         * modules/isfinite-tests: Likewise.
52876         * modules/isinf-tests: Likewise.
52877         * modules/ldexpl-tests: Likewise.
52878         * modules/locale-tests: Likewise.
52879         * modules/math-tests: Likewise.
52880         * modules/netdb-tests: Likewise.
52881         * modules/netinet_in-tests: Likewise.
52882         * modules/printf-frexp-tests: Likewise.
52883         * modules/printf-frexpl-tests: Likewise.
52884         * modules/priv-set-tests: Likewise.
52885         * modules/random_r-tests: Likewise.
52886         * modules/round-tests: Likewise.
52887         * modules/roundf-tests: Likewise.
52888         * modules/roundl-tests: Likewise.
52889         * modules/search-tests: Likewise.
52890         * modules/select-tests: Likewise.
52891         * modules/signal-tests: Likewise.
52892         * modules/stdbool-tests: Likewise.
52893         * modules/stddef-tests: Likewise.
52894         * modules/stdint-tests: Likewise.
52895         * modules/stdio-tests: Likewise.
52896         * modules/stdlib-tests: Likewise.
52897         * modules/string-tests: Likewise.
52898         * modules/strings-tests: Likewise.
52899         * modules/sys_select-tests: Likewise.
52900         * modules/sys_socket-tests: Likewise.
52901         * modules/sys_stat-tests: Likewise.
52902         * modules/sys_time-tests: Likewise.
52903         * modules/sys_utsname-tests: Likewise.
52904         * modules/sysexits-tests: Likewise.
52905         * modules/time-tests: Likewise.
52906         * modules/trunc-tests: Likewise.
52907         * modules/truncf-tests: Likewise.
52908         * modules/truncl-tests: Likewise.
52909         * modules/tsearch-tests: Likewise.
52910         * modules/unistd-tests: Likewise.
52911         * modules/wchar-tests: Likewise.
52912         * modules/wctype-tests: Likewise.
52914         tests: fix license on several tests
52915         * tests/test-des.c: Update to GPLv3+.
52916         * tests/test-flock.c: Likewise.
52917         * tests/test-fsync.c: Likewise.
52918         * tests/test-futimens.h: Likewise.
52919         * tests/test-gc-arcfour.c: Likewise.
52920         * tests/test-gc-arctwo.c: Likewise.
52921         * tests/test-gc-des.c: Likewise.
52922         * tests/test-gc-hmac-md5.c: Likewise.
52923         * tests/test-gc-hmac-sha1.c: Likewise.
52924         * tests/test-gc-md2.c: Likewise.
52925         * tests/test-gc-md4.c: Likewise.
52926         * tests/test-gc-md5.c: Likewise.
52927         * tests/test-gc-pbkdf2-sha1.c: Likewise.
52928         * tests/test-gc-rijndael.c: Likewise.
52929         * tests/test-gc-sha1.c: Likewise.
52930         * tests/test-gc.c: Likewise.
52931         * tests/test-getcwd.c: Likewise.
52932         * tests/test-link.c: Likewise.
52933         * tests/test-link.h: Likewise.
52934         * tests/test-lutimens.h: Likewise.
52935         * tests/test-md2.c: Likewise.
52936         * tests/test-md4.c: Likewise.
52937         * tests/test-mkdir.h: Likewise.
52938         * tests/test-rename.c: Likewise.
52939         * tests/test-rename.h: Likewise.
52940         * tests/test-safe-alloc.c: Likewise.
52941         * tests/test-utimens-common.h: Likewise.
52942         * tests/test-utimens.h: Likewise.
52944         maint: sync license texts
52945         * config/srclist.txt: Add gpl-1.3.texi, lgpl-1.3.texi.
52946         * doc/gpl-3.0.texi: Revert copyright year update.
52947         * doc/lgpl-3.0.texi: Likewise.
52949 2009-12-29  Jim Meyering  <meyering@redhat.com>
52951         update nearly all FSF copyright year lists to include 2009
52952         The files named by the following are exempted:
52953             grep -v '^#' config/srclist.txt|grep -v '^$' | while read src dst; do
52954               test -f "$dst" && { echo "$dst"; continue; }
52955               test -d "$dst" || continue
52956               echo "$dst"/$(basename "$src")
52957             done > exempt
52958             git ls-files tests/unictype >> exempt
52959         In the remaining files, convert to all-interval notation if
52960         - there is already at least one year interval like 2000-2003
52961         - the file is maintained by me
52962         - the file is in lib/uni*/, where that style already prevails
52963         Otherwise, use update-copyright's default.
52965 2009-12-29  Simon Josefsson  <simon@josefsson.org>
52966         and Eric Blake  <ebb9@byu.net>
52968         tests: don't require debug system() to pass
52969         * tests/test-lstat.h (test_lstat_func): Move debug cleanup...
52970         * tests/test-rmdir.h (test_rmdir_func): Likewise.
52971         * tests/test-unlink.h (test_unlink_func): Likewise.
52972         * tests/test-fstatat.c (main): ...into callers.
52973         * tests/test-lstat.c (main): Likewise.
52974         * tests/test-rmdir.c (main): Likewise.
52975         * tests/test-unlink.c (main): Likewise.
52976         * tests/test-unlinkat.c (main): Likewise.
52977         * tests/test-areadlink-with-size.c (main): Don't require a
52978         debug-only system call to pass, aiding cross-testing to mingw.
52979         * tests/test-areadlink.c (main): Likewise.
52980         * tests/test-areadlinkat-with-size.c (main): Likewise.
52981         * tests/test-areadlinkat.c (main): Likewise.
52982         * tests/test-canonicalize-lgpl.c (main): Likewise.
52983         * tests/test-canonicalize.c (main): Likewise.
52984         * tests/test-chown.c (main): Likewise.
52985         * tests/test-fchownat.c (main): Likewise.
52986         * tests/test-lchown.c (main): Likewise.
52987         * tests/test-fdutimensat.c (main): Likewise.
52988         * tests/test-futimens.c (main): Likewise.
52989         * tests/test-link.c (main): Likewise.
52990         * tests/test-linkat.c (main): Likewise.
52991         * tests/test-mkdir.c (main): Likewise.
52992         * tests/test-mkdirat.c (main): Likewise.
52993         * tests/test-mkfifo.c (main): Likewise.
52994         * tests/test-mkfifoat.c (main): Likewise.
52995         * tests/test-mknod.c (main): Likewise.
52996         * tests/test-readlink.c (main): Likewise.
52997         * tests/test-remove.c (main): Likewise.
52998         * tests/test-rename.c (main): Likewise.
52999         * tests/test-renameat.c (main): Likewise.
53000         * tests/test-symlink.c (main): Likewise.
53001         * tests/test-symlinkat.c (main): Likewise.
53002         * tests/test-utimens.c (main): Likewise.
53003         * tests/test-utimensat.c (main): Likewise.
53005 2009-12-29  Simon Josefsson  <simon@josefsson.org>
53007         * modules/selinux-h (selinux/selinux.h, selinux/context.h): Depend
53008         on $(UNUSED_PARAMETER_H) to avoid build failure.
53010 2009-12-28  Jim Meyering  <meyering@redhat.com>
53012         update-copyright: you may specify a max. line length other than 72
53013         * build-aux/update-copyright: Honor $UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
53015         maint: use consistent FSF copyright line syntax
53016         * lib/posixtm.c: Add missing comma in FSF copyright line.
53017         * lib/posixtm.h: Likewise.
53018         * lib/getugroups.c: Add missing ", Inc.".
53020         pmccabe2html: emit consistent FSF copyright; remove trailing blanks
53021         * build-aux/pmccabe2html: Insert comma before "Inc." in emitted
53022         FSF copyright line.  Remove trailing blanks.
53024 2009-12-28  Eric Blake  <ebb9@byu.net>
53026         test-dup2: reduce dependencies
53027         * modules/cloexec (Configure.ac): Set witness.
53028         * modules/dup2-tests (Depends-on): Drop cloexec.
53029         * tests/test-dup2.c (main): Skip portion of test if cloexec module
53030         not present.
53031         Suggested by Bruno Haible.
53033 2009-12-26  Bruno Haible  <bruno@clisp.org>
53035         Remove an unneeded dependency.
53036         * modules/fseterr (Depends-on): Remove dup2.
53038 2009-12-26  Eric Blake  <ebb9@byu.net>
53040         tests: use macros.h in more places
53041         * tests/macros.h (ASSERT): Depend on ASSERT_STREAM.
53042         (ASSERT_STREAM): Provide default of stderr.
53043         * tests/test-dirent-safer.c: Include macros.h, using alternate
53044         stream for assertions.
53045         * tests/test-dup-safer.c: Likewise.
53046         * tests/test-freopen-safer.c: Likewise.
53047         * tests/test-getopt.c: Likewise.
53048         * tests/test-openat-safer.c: Likewise.
53049         * tests/test-pipe.c: Likewise.
53050         * tests/test-popen-safer.c: Likewise.
53051         * modules/dirent-safer-tests (Files): Include macros.h.
53052         * modules/unistd-safer-tests (Files): Likewise.
53053         * modules/freopen-safer-tests (Files): Likewise.
53054         * modules/getopt-posix-tests (Files): Likewise.
53055         * modules/openat-safer-tests (Files): Likewise.
53056         * modules/pipe-tests (Files): Likewise.
53058 2009-12-26  Bruno Haible  <bruno@clisp.org>
53060         javacomp: Portability fix.
53061         * m4/javacomp.m4 (gt_JAVACOMP): Fix creation of conftestver.class so
53062         that it also works on Solaris.
53064 2009-12-26  Bruno Haible  <bruno@clisp.org>
53066         localename: Fix storage allocation of gl_locale_name_thread's result.
53067         * lib/localename.c (SIZE_BITS, string_hash, struct hash_node,
53068         HASH_TABLE_SIZE, struniq_hash_table, struniq_lock, struniq): Define on
53069         all platforms that have 'uselocale'.
53070         (gl_locale_name_thread_unsafe): New function, extracted from
53071         gl_locale_name_thread.
53072         (gl_locale_name_thread): Call struniq on all platforms that have
53073         'uselocale'.
53074         * tests/test-localename.c (test_locale_name_thread): Check that the
53075         resulting strings are permanently allocated.
53076         * modules/localename-tests (Depends-on): Add strdup.
53078 2009-12-26  Bruno Haible  <bruno@clisp.org>
53080         * tests/test-localename.c (categories): Fill in the strings.
53082 2009-12-26  Jim Meyering  <meyering@redhat.com>
53084         isdir: complete the removal of m4/isdir.m4
53085         * modules/isdir (configure.ac): Remove reference to gl_ISDIR.
53087         isdir: clean up, since at least grep still uses it
53088         * lib/isdir.c: Include "isdir.h".
53089         (S_ISDIR): Remove now-unneeded definition.
53090         * modules/isdir (Files): Add lib/isdir.h.
53091         * lib/isdir.h: New file, with declaration.
53092         * m4/isdir.m4: Remove file -- unneeded.
53094 2009-12-25  Bruno Haible  <bruno@clisp.org>
53096         selinux-h: Make generated .h files standalone.
53097         * lib/se-context.in.h: Arrange to include _GL_UNUSED_PARAMETER
53098         definition. Use _GL_UNUSED_PARAMETER instead of _GL_UNUSED.
53099         * lib/se-selinux.in.h: Likewise.
53100         * modules/selinux-h (Depends-on): Add unused-parameter.
53101         (Makefile.am): Insert definition of _GL_UNUSED_PARAMETER into
53102         selinux/selinux.h and selinux/context.h.
53103         Suggested by Eric Blake.
53105 2009-12-25  Bruno Haible  <bruno@clisp.org>
53107         Move gl_FCNTL_O_FLAGS to a separate .m4 file.
53108         * m4/fcntl-o.m4: New file, extracted from m4/fcntl_h.m4.
53109         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): Remove macro.
53110         * modules/fcntl-h (Files): Add m4/fcntl-o.m4.
53111         * modules/localcharset (Files): Likewise. Remove m4/fcntl_h.m4.
53113 2009-12-24  Bruno Haible  <bruno@clisp.org>
53115         openat: Fix warning.
53116         * lib/openat-proc.c: Include <unistd.h>.
53118 2009-12-24  Bruno Haible  <bruno@clisp.org>
53120         New module 'unused-parameter'.
53121         * build-aux/unused-parameter.h: New file, extracted from earlier
53122         gnulib-common.m4.
53123         * modules/unused-parameter: New file.
53124         * lib/unistr.h: Include unused-parameter.h.
53125         (u32_mbtouc_unsafe, u32_mbtouc): Use _GL_UNUSED_PARAMETER instead of
53126         _GL_UNUSED.
53127         * modules/unistr/base (Depends-on): Add unused-parameter.
53129 2009-12-24  Bruno Haible  <bruno@clisp.org>
53131         Add missing dependencies to 'extensions' module.
53132         * m4/extensions.m4: Add comment.
53133         * modules/accept4 (Depends-on): Add extensions.
53134         * modules/dup3 (Depends-on): Likewise.
53135         * modules/fcntl (Depends-on): Likewise.
53136         * modules/futimens (Depends-on): Likewise.
53137         * modules/mknod (Depends-on): Likewise.
53138         * modules/pipe2 (Depends-on): Likewise.
53139         * modules/stat-time (Depends-on): Likewise.
53140         * modules/strcasestr-simple (Depends-on): Likewise.
53141         * modules/strsignal (Depends-on): Likewise.
53142         * modules/utimensat (Depends-on): Likewise.
53143         * modules/localcharset (Depends-on): Likewise. Needed because of
53144         gl_FCNTL_O_FLAGS.
53145         * modules/wcrtomb (Depends-on): Likewise. Needed because of
53146         AC_TYPE_MBSTATE_T.
53147         * modules/wcsnrtombs (Depends-on): Likewise.
53148         * modules/wcsrtombs (Depends-on): Likewise.
53150 2009-12-24  Bruno Haible  <bruno@clisp.org>
53152         binary-io: Avoid gcc warning due to SET_BINARY.
53153         * lib/binary-io.h (SET_BINARY): Cast the result to void.
53154         Reported by Jim Meyering <jim@meyering.net>. Suggestion by Eric Blake.
53156 2009-12-24  Bruno Haible  <bruno@clisp.org>
53158         Avoid future namespace pollution on glibc systems.
53159         * lib/arpa_inet.in.h: Don't include <sys/socket.h> on glibc systems.
53160         * lib/sys_ioctl.in.h: Don't include <unistd.h> on glibc systems.
53161         * lib/sys_select.in.h: Don't include <sys/time.h> and <string.h> on
53162         glibc systems.
53164 2009-12-24  Bruno Haible  <bruno@clisp.org>
53166         Refactor common macros used in tests.
53167         * tests/macros.h: New file.
53168         * tests/test-areadlink.c: Include macros.h. Don't include <stdio.h>
53169         and/or <stdlib.h>, if appropriate.
53170         (ASSERT, SIZEOF): Remove macros.
53171         * tests/test-areadlink-with-size.c: Likewise.
53172         * tests/test-areadlinkat.c: Likewise.
53173         * tests/test-areadlinkat-with-size.c: Likewise.
53174         * tests/test-argmatch.c: Likewise.
53175         * tests/test-argv-iter.c: Likewise.
53176         * tests/test-array-mergesort.c: Likewise.
53177         * tests/test-array_list.c: Likewise.
53178         * tests/test-array_oset.c: Likewise.
53179         * tests/test-avltree_list.c: Likewise.
53180         * tests/test-avltree_oset.c: Likewise.
53181         * tests/test-avltreehash_list.c: Likewise.
53182         * tests/test-base64.c: Likewise.
53183         * tests/test-binary-io.c: Likewise.
53184         * tests/test-bitrotate.c: Likewise.
53185         * tests/test-btowc.c: Likewise.
53186         * tests/test-byteswap.c: Likewise.
53187         * tests/test-c-ctype.c: Likewise.
53188         * tests/test-c-stack.c: Likewise.
53189         * tests/test-c-strcasecmp.c: Likewise.
53190         * tests/test-c-strcasestr.c: Likewise.
53191         * tests/test-c-strncasecmp.c: Likewise.
53192         * tests/test-c-strstr.c: Likewise.
53193         * tests/test-canonicalize-lgpl.c: Likewise.
53194         * tests/test-canonicalize.c: Likewise.
53195         * tests/test-carray_list.c: Likewise.
53196         * tests/test-ceilf1.c: Likewise.
53197         * tests/test-ceilf2.c: Likewise.
53198         * tests/test-ceill.c: Likewise.
53199         * tests/test-chown.c: Likewise.
53200         * tests/test-cloexec.c: Likewise.
53201         * tests/test-copy-acl.c: Likewise.
53202         * tests/test-copy-file.c: Likewise.
53203         * tests/test-count-one-bits.c: Likewise.
53204         * tests/test-dprintf-posix.c: Likewise.
53205         * tests/test-dup2.c: Likewise.
53206         * tests/test-dup3.c: Likewise.
53207         * tests/test-duplocale.c: Likewise.
53208         * tests/test-fbufmode.c: Likewise.
53209         * tests/test-fchdir.c: Likewise.
53210         * tests/test-fchownat.c: Likewise.
53211         * tests/test-fcntl-safer.c: Likewise.
53212         * tests/test-fcntl.c: Likewise.
53213         * tests/test-fdopendir.c: Likewise.
53214         * tests/test-fdutimensat.c: Likewise.
53215         * tests/test-fflush2.c: Likewise.
53216         * tests/test-file-has-acl.c: Likewise.
53217         * tests/test-filevercmp.c: Likewise.
53218         * tests/test-flock.c: Likewise.
53219         * tests/test-floorf1.c: Likewise.
53220         * tests/test-floorf2.c: Likewise.
53221         * tests/test-floorl.c: Likewise.
53222         * tests/test-fnmatch.c: Likewise.
53223         * tests/test-fopen.h: Likewise.
53224         * tests/test-fpending.c: Likewise.
53225         * tests/test-fprintf-posix.c: Likewise.
53226         * tests/test-fpurge.c: Likewise.
53227         * tests/test-freadable.c: Likewise.
53228         * tests/test-freadahead.c: Likewise.
53229         * tests/test-freading.c: Likewise.
53230         * tests/test-freadptr.c: Likewise.
53231         * tests/test-freadptr2.c: Likewise.
53232         * tests/test-freadseek.c: Likewise.
53233         * tests/test-freopen.c: Likewise.
53234         * tests/test-frexp.c: Likewise.
53235         * tests/test-frexpl.c: Likewise.
53236         * tests/test-fseek.c: Likewise.
53237         * tests/test-fseeko.c: Likewise.
53238         * tests/test-fstatat.c: Likewise.
53239         * tests/test-fstrcmp.c: Likewise.
53240         * tests/test-fsync.c: Likewise.
53241         * tests/test-ftell.c: Likewise.
53242         * tests/test-ftello.c: Likewise.
53243         * tests/test-func.c: Likewise.
53244         * tests/test-futimens.c: Likewise.
53245         * tests/test-fwritable.c: Likewise.
53246         * tests/test-fwriting.c: Likewise.
53247         * tests/test-getcwd.c: Likewise.
53248         * tests/test-getdate.c: Likewise.
53249         * tests/test-getdelim.c: Likewise.
53250         * tests/test-getdtablesize.c: Likewise.
53251         * tests/test-getgroups.c: Likewise.
53252         * tests/test-getline.c: Likewise.
53253         * tests/test-getndelim2.c: Likewise.
53254         * tests/test-glob.c: Likewise.
53255         * tests/test-hash.c: Likewise.
53256         * tests/test-i-ring.c: Likewise.
53257         * tests/test-iconv-utf.c: Likewise.
53258         * tests/test-iconv.c: Likewise.
53259         * tests/test-idpriv-drop.c: Likewise.
53260         * tests/test-idpriv-droptemp.c: Likewise.
53261         * tests/test-inet_ntop.c: Likewise.
53262         * tests/test-inet_pton.c: Likewise.
53263         * tests/test-isblank.c: Likewise.
53264         * tests/test-isfinite.c: Likewise.
53265         * tests/test-isinf.c: Likewise.
53266         * tests/test-isnan.c: Likewise.
53267         * tests/test-isnand.h: Likewise.
53268         * tests/test-isnanf.h: Likewise.
53269         * tests/test-isnanl.h: Likewise.
53270         * tests/test-lchown.c: Likewise.
53271         * tests/test-ldexpl.c: Likewise.
53272         * tests/test-link.c: Likewise.
53273         * tests/test-linkat.c: Likewise.
53274         * tests/test-linked_list.c: Likewise.
53275         * tests/test-linkedhash_list.c: Likewise.
53276         * tests/test-localename.c: Likewise.
53277         * tests/test-lseek.c: Likewise.
53278         * tests/test-lstat.c: Likewise.
53279         * tests/test-mbmemcasecmp.c: Likewise.
53280         * tests/test-mbmemcasecoll.c: Likewise.
53281         * tests/test-mbrtowc.c: Likewise.
53282         * tests/test-mbscasecmp.c: Likewise.
53283         * tests/test-mbscasestr1.c: Likewise.
53284         * tests/test-mbscasestr2.c: Likewise.
53285         * tests/test-mbscasestr3.c: Likewise.
53286         * tests/test-mbscasestr4.c: Likewise.
53287         * tests/test-mbschr.c: Likewise.
53288         * tests/test-mbscspn.c: Likewise.
53289         * tests/test-mbsinit.c: Likewise.
53290         * tests/test-mbsncasecmp.c: Likewise.
53291         * tests/test-mbsnrtowcs.c: Likewise.
53292         * tests/test-mbspbrk.c: Likewise.
53293         * tests/test-mbspcasecmp.c: Likewise.
53294         * tests/test-mbsrchr.c: Likewise.
53295         * tests/test-mbsrtowcs.c: Likewise.
53296         * tests/test-mbsspn.c: Likewise.
53297         * tests/test-mbsstr1.c: Likewise.
53298         * tests/test-mbsstr2.c: Likewise.
53299         * tests/test-mbsstr3.c: Likewise.
53300         * tests/test-memchr.c: Likewise.
53301         * tests/test-memchr2.c: Likewise.
53302         * tests/test-memcmp.c: Likewise.
53303         * tests/test-memmem.c: Likewise.
53304         * tests/test-memrchr.c: Likewise.
53305         * tests/test-mkdir.c: Likewise.
53306         * tests/test-mkdirat.c: Likewise.
53307         * tests/test-mkfifo.c: Likewise.
53308         * tests/test-mkfifoat.c: Likewise.
53309         * tests/test-mknod.c: Likewise.
53310         * tests/test-nanosleep.c: Likewise.
53311         * tests/test-nl_langinfo.c: Likewise.
53312         * tests/test-obstack-printf.c: Likewise.
53313         * tests/test-open.c: Likewise.
53314         * tests/test-openat.c: Likewise.
53315         * tests/test-pipe-filter-gi1.c: Likewise.
53316         * tests/test-pipe-filter-gi2-main.c: Likewise.
53317         * tests/test-pipe-filter-ii1.c: Likewise.
53318         * tests/test-pipe-filter-ii2-main.c: Likewise.
53319         * tests/test-pipe2.c: Likewise.
53320         * tests/test-popen.h: Likewise.
53321         * tests/test-posixtm.c: Likewise.
53322         * tests/test-pread.c: Likewise.
53323         * tests/test-printf-frexp.c: Likewise.
53324         * tests/test-printf-frexpl.c: Likewise.
53325         * tests/test-printf-posix.c: Likewise.
53326         * tests/test-priv-set.c: Likewise.
53327         * tests/test-quotearg.c: Likewise.
53328         * tests/test-random_r.c: Likewise.
53329         * tests/test-rawmemchr.c: Likewise.
53330         * tests/test-rbtree_list.c: Likewise.
53331         * tests/test-rbtree_oset.c: Likewise.
53332         * tests/test-rbtreehash_list.c: Likewise.
53333         * tests/test-readlink.c: Likewise.
53334         * tests/test-remove.c: Likewise.
53335         * tests/test-rename.c: Likewise.
53336         * tests/test-renameat.c: Likewise.
53337         * tests/test-rmdir.c: Likewise.
53338         * tests/test-round1.c: Likewise.
53339         * tests/test-roundf1.c: Likewise.
53340         * tests/test-roundl.c: Likewise.
53341         * tests/test-safe-alloc.c: Likewise.
53342         * tests/test-sameacls.c: Likewise.
53343         * tests/test-set-mode-acl.c: Likewise.
53344         * tests/test-setenv.c: Likewise.
53345         * tests/test-sigaction.c: Likewise.
53346         * tests/test-signbit.c: Likewise.
53347         * tests/test-sleep.c: Likewise.
53348         * tests/test-snprintf-posix.c: Likewise.
53349         * tests/test-snprintf.c: Likewise.
53350         * tests/test-sprintf-posix.c: Likewise.
53351         * tests/test-stat-time.c: Likewise.
53352         * tests/test-stat.c: Likewise.
53353         * tests/test-strcasestr.c: Likewise.
53354         * tests/test-strchrnul.c: Likewise.
53355         * tests/test-strerror.c: Likewise.
53356         * tests/test-striconv.c: Likewise.
53357         * tests/test-striconveh.c: Likewise.
53358         * tests/test-striconveha.c: Likewise.
53359         * tests/test-strsignal.c: Likewise.
53360         * tests/test-strstr.c: Likewise.
53361         * tests/test-strtod.c: Likewise.
53362         * tests/test-strverscmp.c: Likewise.
53363         * tests/test-symlink.c: Likewise.
53364         * tests/test-symlinkat.c: Likewise.
53365         * tests/test-trunc1.c: Likewise.
53366         * tests/test-trunc2.c: Likewise.
53367         * tests/test-truncf1.c: Likewise.
53368         * tests/test-truncf2.c: Likewise.
53369         * tests/test-truncl.c: Likewise.
53370         * tests/test-uname.c: Likewise.
53371         * tests/test-unlink.c: Likewise.
53372         * tests/test-unlinkat.c: Likewise.
53373         * tests/test-unsetenv.c: Likewise.
53374         * tests/test-usleep.c: Likewise.
53375         * tests/test-utimens.c: Likewise.
53376         * tests/test-utimensat.c: Likewise.
53377         * tests/test-vasnprintf-posix.c: Likewise.
53378         * tests/test-vasnprintf-posix2.c: Likewise.
53379         * tests/test-vasnprintf.c: Likewise.
53380         * tests/test-vasprintf-posix.c: Likewise.
53381         * tests/test-vasprintf.c: Likewise.
53382         * tests/test-vdprintf-posix.c: Likewise.
53383         * tests/test-vfprintf-posix.c: Likewise.
53384         * tests/test-vprintf-posix.c: Likewise.
53385         * tests/test-vsnprintf-posix.c: Likewise.
53386         * tests/test-vsnprintf.c: Likewise.
53387         * tests/test-vsprintf-posix.c: Likewise.
53388         * tests/test-wcrtomb.c: Likewise.
53389         * tests/test-wcsnrtombs.c: Likewise.
53390         * tests/test-wcsrtombs.c: Likewise.
53391         * tests/test-wctype.c: Likewise.
53392         * tests/test-wcwidth.c: Likewise.
53393         * tests/test-xfprintf-posix.c: Likewise.
53394         * tests/test-xmemdup0.c: Likewise.
53395         * tests/test-xprintf-posix.c: Likewise.
53396         * tests/test-xvasprintf.c: Likewise.
53397         * tests/unicase/test-locale-language.c: Likewise.
53398         * tests/unicase/test-mapping-part1.h: Likewise.
53399         * tests/unicase/test-predicate-part1.h: Likewise.
53400         * tests/unicase/test-u8-casecmp.c: Likewise.
53401         * tests/unicase/test-u8-casecoll.c: Likewise.
53402         * tests/unicase/test-u8-casefold.c: Likewise.
53403         * tests/unicase/test-u8-is-cased.c: Likewise.
53404         * tests/unicase/test-u8-is-casefolded.c: Likewise.
53405         * tests/unicase/test-u8-is-lowercase.c: Likewise.
53406         * tests/unicase/test-u8-is-titlecase.c: Likewise.
53407         * tests/unicase/test-u8-is-uppercase.c: Likewise.
53408         * tests/unicase/test-u8-tolower.c: Likewise.
53409         * tests/unicase/test-u8-totitle.c: Likewise.
53410         * tests/unicase/test-u8-toupper.c: Likewise.
53411         * tests/unicase/test-u16-casecmp.c: Likewise.
53412         * tests/unicase/test-u16-casecoll.c: Likewise.
53413         * tests/unicase/test-u16-casefold.c: Likewise.
53414         * tests/unicase/test-u16-is-cased.c: Likewise.
53415         * tests/unicase/test-u16-is-casefolded.c: Likewise.
53416         * tests/unicase/test-u16-is-lowercase.c: Likewise.
53417         * tests/unicase/test-u16-is-titlecase.c: Likewise.
53418         * tests/unicase/test-u16-is-uppercase.c: Likewise.
53419         * tests/unicase/test-u16-tolower.c: Likewise.
53420         * tests/unicase/test-u16-totitle.c: Likewise.
53421         * tests/unicase/test-u16-toupper.c: Likewise.
53422         * tests/unicase/test-u32-casecmp.c: Likewise.
53423         * tests/unicase/test-u32-casecoll.c: Likewise.
53424         * tests/unicase/test-u32-casefold.c: Likewise.
53425         * tests/unicase/test-u32-is-cased.c: Likewise.
53426         * tests/unicase/test-u32-is-casefolded.c: Likewise.
53427         * tests/unicase/test-u32-is-lowercase.c: Likewise.
53428         * tests/unicase/test-u32-is-titlecase.c: Likewise.
53429         * tests/unicase/test-u32-is-uppercase.c: Likewise.
53430         * tests/unicase/test-u32-tolower.c: Likewise.
53431         * tests/unicase/test-u32-totitle.c: Likewise.
53432         * tests/unicase/test-u32-toupper.c: Likewise.
53433         * tests/unicase/test-ulc-casecmp.c: Likewise.
53434         * tests/unicase/test-ulc-casecoll.c: Likewise.
53435         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
53436         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
53437         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
53438         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
53439         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
53440         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
53441         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
53442         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
53443         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
53444         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
53445         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
53446         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
53447         * tests/unictype/test-bidi_byname.c: Likewise.
53448         * tests/unictype/test-bidi_name.c: Likewise.
53449         * tests/unictype/test-bidi_of.c: Likewise.
53450         * tests/unictype/test-bidi_test.c: Likewise.
53451         * tests/unictype/test-block_list.c: Likewise.
53452         * tests/unictype/test-block_of.c: Likewise.
53453         * tests/unictype/test-block_test.c: Likewise.
53454         * tests/unictype/test-categ_and.c: Likewise.
53455         * tests/unictype/test-categ_and_not.c: Likewise.
53456         * tests/unictype/test-categ_byname.c: Likewise.
53457         * tests/unictype/test-categ_name.c: Likewise.
53458         * tests/unictype/test-categ_none.c: Likewise.
53459         * tests/unictype/test-categ_of.c: Likewise.
53460         * tests/unictype/test-categ_or.c: Likewise.
53461         * tests/unictype/test-categ_test_withtable.c: Likewise.
53462         * tests/unictype/test-combining.c: Likewise.
53463         * tests/unictype/test-decdigit.c: Likewise.
53464         * tests/unictype/test-digit.c: Likewise.
53465         * tests/unictype/test-mirror.c: Likewise.
53466         * tests/unictype/test-numeric.c: Likewise.
53467         * tests/unictype/test-pr_byname.c: Likewise.
53468         * tests/unictype/test-pr_test.c: Likewise.
53469         * tests/unictype/test-predicate-part1.h: Likewise.
53470         * tests/unictype/test-scripts.c: Likewise.
53471         * tests/unictype/test-sy_c_ident.c: Likewise.
53472         * tests/unictype/test-sy_java_ident.c: Likewise.
53473         * tests/unilbrk/test-u8-possible-linebreaks.c: Likewise.
53474         * tests/unilbrk/test-u8-width-linebreaks.c: Likewise.
53475         * tests/unilbrk/test-u16-possible-linebreaks.c: Likewise.
53476         * tests/unilbrk/test-u16-width-linebreaks.c: Likewise.
53477         * tests/unilbrk/test-u32-possible-linebreaks.c: Likewise.
53478         * tests/unilbrk/test-u32-width-linebreaks.c: Likewise.
53479         * tests/unilbrk/test-ulc-possible-linebreaks.c: Likewise.
53480         * tests/unilbrk/test-ulc-width-linebreaks.c: Likewise.
53481         * tests/uninorm/test-canonical-decomposition.c: Likewise.
53482         * tests/uninorm/test-compat-decomposition.c: Likewise.
53483         * tests/uninorm/test-composition.c: Likewise.
53484         * tests/uninorm/test-decomposing-form.c: Likewise.
53485         * tests/uninorm/test-decomposition.c: Likewise.
53486         * tests/uninorm/test-u8-nfc.c: Likewise.
53487         * tests/uninorm/test-u8-nfd.c: Likewise.
53488         * tests/uninorm/test-u8-nfkc.c: Likewise.
53489         * tests/uninorm/test-u8-nfkd.c: Likewise.
53490         * tests/uninorm/test-u8-normcmp.c: Likewise.
53491         * tests/uninorm/test-u8-normcoll.c: Likewise.
53492         * tests/uninorm/test-u16-nfc.c: Likewise.
53493         * tests/uninorm/test-u16-nfd.c: Likewise.
53494         * tests/uninorm/test-u16-nfkc.c: Likewise.
53495         * tests/uninorm/test-u16-nfkd.c: Likewise.
53496         * tests/uninorm/test-u16-normcmp.c: Likewise.
53497         * tests/uninorm/test-u16-normcoll.c: Likewise.
53498         * tests/uninorm/test-u32-nfc.c: Likewise.
53499         * tests/uninorm/test-u32-nfd.c: Likewise.
53500         * tests/uninorm/test-u32-nfkc.c: Likewise.
53501         * tests/uninorm/test-u32-nfkd.c: Likewise.
53502         * tests/uninorm/test-u32-normalize-big.c: Likewise.
53503         * tests/uninorm/test-u32-normcmp.c: Likewise.
53504         * tests/uninorm/test-u32-normcoll.c: Likewise.
53505         * tests/uninorm/test-uninorm-filter-nfc.c: Likewise.
53506         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
53507         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
53508         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
53509         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
53510         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
53511         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
53512         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
53513         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
53514         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
53515         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
53516         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
53517         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
53518         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
53519         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
53520         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
53521         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
53522         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
53523         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
53524         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
53525         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
53526         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
53527         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
53528         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
53529         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
53530         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
53531         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
53532         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
53533         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
53534         * tests/uniwbrk/test-u8-wordbreaks.c: Likewise.
53535         * tests/uniwbrk/test-u16-wordbreaks.c: Likewise.
53536         * tests/uniwbrk/test-u32-wordbreaks.c: Likewise.
53537         * tests/uniwbrk/test-ulc-wordbreaks.c: Likewise.
53538         * tests/uniwidth/test-u8-strwidth.c: Likewise.
53539         * tests/uniwidth/test-u8-width.c: Likewise.
53540         * tests/uniwidth/test-u16-strwidth.c: Likewise.
53541         * tests/uniwidth/test-u16-width.c: Likewise.
53542         * tests/uniwidth/test-u32-strwidth.c: Likewise.
53543         * tests/uniwidth/test-u32-width.c: Likewise.
53544         * tests/uniwidth/test-uc_width.c: Likewise.
53545         * tests/uniwidth/test-uc_width2.c: Likewise.
53546         * modules/acl-tests (Files): Add tests/macros.h.
53547         * modules/areadlink-tests (Files): Likewise.
53548         * modules/areadlink-with-size-tests (Files): Likewise.
53549         * modules/areadlinkat-tests (Files): Likewise.
53550         * modules/areadlinkat-with-size-tests (Files): Likewise.
53551         * modules/argmatch-tests (Files): Likewise.
53552         * modules/argv-iter-tests (Files): Likewise.
53553         * modules/array-list-tests (Files): Likewise.
53554         * modules/array-mergesort-tests (Files): Likewise.
53555         * modules/array-oset-tests (Files): Likewise.
53556         * modules/avltree-list-tests (Files): Likewise.
53557         * modules/avltree-oset-tests (Files): Likewise.
53558         * modules/avltreehash-list-tests (Files): Likewise.
53559         * modules/base64-tests (Files): Likewise.
53560         * modules/binary-io-tests (Files): Likewise.
53561         * modules/bitrotate-tests (Files): Likewise.
53562         * modules/btowc-tests (Files): Likewise.
53563         * modules/byteswap-tests (Files): Likewise.
53564         * modules/c-ctype-tests (Files): Likewise.
53565         * modules/c-stack-tests (Files): Likewise.
53566         * modules/c-strcase-tests (Files): Likewise.
53567         * modules/c-strcasestr-tests (Files): Likewise.
53568         * modules/c-strstr-tests (Files): Likewise.
53569         * modules/canonicalize-lgpl-tests (Files): Likewise.
53570         * modules/canonicalize-tests (Files): Likewise.
53571         * modules/carray-list-tests (Files): Likewise.
53572         * modules/ceilf-tests (Files): Likewise.
53573         * modules/ceill-tests (Files): Likewise.
53574         * modules/chown-tests (Files): Likewise.
53575         * modules/cloexec-tests (Files): Likewise.
53576         * modules/copy-file-tests (Files): Likewise.
53577         * modules/count-one-bits-tests (Files): Likewise.
53578         * modules/dprintf-posix-tests (Files): Likewise.
53579         * modules/dup2-tests (Files): Likewise.
53580         * modules/dup3-tests (Files): Likewise.
53581         * modules/duplocale-tests (Files): Likewise.
53582         * modules/fbufmode-tests (Files): Likewise.
53583         * modules/fchdir-tests (Files): Likewise.
53584         * modules/fcntl-safer-tests (Files): Likewise.
53585         * modules/fcntl-tests (Files): Likewise.
53586         * modules/fdopendir-tests (Files): Likewise.
53587         * modules/fdutimensat-tests (Files): Likewise.
53588         * modules/fflush-tests (Files): Likewise.
53589         * modules/filevercmp-tests (Files): Likewise.
53590         * modules/flock-tests (Files): Likewise.
53591         * modules/floorf-tests (Files): Likewise.
53592         * modules/floorl-tests (Files): Likewise.
53593         * modules/fnmatch-tests (Files): Likewise.
53594         * modules/fopen-safer-tests (Files): Likewise.
53595         * modules/fopen-tests (Files): Likewise.
53596         * modules/fpending-tests (Files): Likewise.
53597         * modules/fprintf-posix-tests (Files): Likewise.
53598         * modules/fpurge-tests (Files): Likewise.
53599         * modules/freadable-tests (Files): Likewise.
53600         * modules/freadahead-tests (Files): Likewise.
53601         * modules/freading-tests (Files): Likewise.
53602         * modules/freadptr-tests (Files): Likewise.
53603         * modules/freadseek-tests (Files): Likewise.
53604         * modules/freopen-tests (Files): Likewise.
53605         * modules/frexp-nolibm-tests (Files): Likewise.
53606         * modules/frexp-tests (Files): Likewise.
53607         * modules/frexpl-nolibm-tests (Files): Likewise.
53608         * modules/frexpl-tests (Files): Likewise.
53609         * modules/fseek-tests (Files): Likewise.
53610         * modules/fseeko-tests (Files): Likewise.
53611         * modules/fstrcmp-tests (Files): Likewise.
53612         * modules/fsync-tests (Files): Likewise.
53613         * modules/ftell-tests (Files): Likewise.
53614         * modules/ftello-tests (Files): Likewise.
53615         * modules/func-tests (Files): Likewise.
53616         * modules/futimens-tests (Files): Likewise.
53617         * modules/fwritable-tests (Files): Likewise.
53618         * modules/fwriting-tests (Files): Likewise.
53619         * modules/getcwd-tests (Files): Likewise.
53620         * modules/getdate-tests (Files): Likewise.
53621         * modules/getdelim-tests (Files): Likewise.
53622         * modules/getdtablesize-tests (Files): Likewise.
53623         * modules/getgroups-tests (Files): Likewise.
53624         * modules/getline-tests (Files): Likewise.
53625         * modules/getndelim2-tests (Files): Likewise.
53626         * modules/glob-tests (Files): Likewise.
53627         * modules/hash-tests (Files): Likewise.
53628         * modules/i-ring-tests (Files): Likewise.
53629         * modules/iconv-tests (Files): Likewise.
53630         * modules/iconv_open-utf-tests (Files): Likewise.
53631         * modules/idpriv-drop-tests (Files): Likewise.
53632         * modules/idpriv-droptemp-tests (Files): Likewise.
53633         * modules/inet_ntop-tests (Files): Likewise.
53634         * modules/inet_pton-tests (Files): Likewise.
53635         * modules/isblank-tests (Files): Likewise.
53636         * modules/isfinite-tests (Files): Likewise.
53637         * modules/isinf-tests (Files): Likewise.
53638         * modules/isnan-tests (Files): Likewise.
53639         * modules/isnand-nolibm-tests (Files): Likewise.
53640         * modules/isnand-tests (Files): Likewise.
53641         * modules/isnanf-nolibm-tests (Files): Likewise.
53642         * modules/isnanf-tests (Files): Likewise.
53643         * modules/isnanl-nolibm-tests (Files): Likewise.
53644         * modules/isnanl-tests (Files): Likewise.
53645         * modules/lchown-tests (Files): Likewise.
53646         * modules/ldexpl-tests (Files): Likewise.
53647         * modules/link-tests (Files): Likewise.
53648         * modules/linkat-tests (Files): Likewise.
53649         * modules/linked-list-tests (Files): Likewise.
53650         * modules/linkedhash-list-tests (Files): Likewise.
53651         * modules/localename-tests (Files): Likewise.
53652         * modules/lseek-tests (Files): Likewise.
53653         * modules/lstat-tests (Files): Likewise.
53654         * modules/mbmemcasecmp-tests (Files): Likewise.
53655         * modules/mbmemcasecoll-tests (Files): Likewise.
53656         * modules/mbrtowc-tests (Files): Likewise.
53657         * modules/mbscasecmp-tests (Files): Likewise.
53658         * modules/mbscasestr-tests (Files): Likewise.
53659         * modules/mbschr-tests (Files): Likewise.
53660         * modules/mbscspn-tests (Files): Likewise.
53661         * modules/mbsinit-tests (Files): Likewise.
53662         * modules/mbsncasecmp-tests (Files): Likewise.
53663         * modules/mbsnrtowcs-tests (Files): Likewise.
53664         * modules/mbspbrk-tests (Files): Likewise.
53665         * modules/mbspcasecmp-tests (Files): Likewise.
53666         * modules/mbsrchr-tests (Files): Likewise.
53667         * modules/mbsrtowcs-tests (Files): Likewise.
53668         * modules/mbsspn-tests (Files): Likewise.
53669         * modules/mbsstr-tests (Files): Likewise.
53670         * modules/memchr-tests (Files): Likewise.
53671         * modules/memchr2-tests (Files): Likewise.
53672         * modules/memcmp-tests (Files): Likewise.
53673         * modules/memmem-tests (Files): Likewise.
53674         * modules/memrchr-tests (Files): Likewise.
53675         * modules/mkdir-tests (Files): Likewise.
53676         * modules/mkfifo-tests (Files): Likewise.
53677         * modules/mkfifoat-tests (Files): Likewise.
53678         * modules/mknod-tests (Files): Likewise.
53679         * modules/nanosleep-tests (Files): Likewise.
53680         * modules/nl_langinfo-tests (Files): Likewise.
53681         * modules/obstack-printf-tests (Files): Likewise.
53682         * modules/open-tests (Files): Likewise.
53683         * modules/openat-tests (Files): Likewise.
53684         * modules/pipe-filter-gi-tests (Files): Likewise.
53685         * modules/pipe-filter-ii-tests (Files): Likewise.
53686         * modules/pipe2-tests (Files): Likewise.
53687         * modules/popen-safer-tests (Files): Likewise.
53688         * modules/popen-tests (Files): Likewise.
53689         * modules/posixtm-tests (Files): Likewise.
53690         * modules/pread-tests (Files): Likewise.
53691         * modules/printf-frexp-tests (Files): Likewise.
53692         * modules/printf-frexpl-tests (Files): Likewise.
53693         * modules/printf-posix-tests (Files): Likewise.
53694         * modules/priv-set-tests (Files): Likewise.
53695         * modules/quotearg-tests (Files): Likewise.
53696         * modules/random_r-tests (Files): Likewise.
53697         * modules/rawmemchr-tests (Files): Likewise.
53698         * modules/rbtree-list-tests (Files): Likewise.
53699         * modules/rbtree-oset-tests (Files): Likewise.
53700         * modules/rbtreehash-list-tests (Files): Likewise.
53701         * modules/readlink-tests (Files): Likewise.
53702         * modules/remove-tests (Files): Likewise.
53703         * modules/rename-tests (Files): Likewise.
53704         * modules/renameat-tests (Files): Likewise.
53705         * modules/rmdir-tests (Files): Likewise.
53706         * modules/round-tests (Files): Likewise.
53707         * modules/roundf-tests (Files): Likewise.
53708         * modules/roundl-tests (Files): Likewise.
53709         * modules/safe-alloc-tests (Files): Likewise.
53710         * modules/setenv-tests (Files): Likewise.
53711         * modules/sigaction-tests (Files): Likewise.
53712         * modules/signbit-tests (Files): Likewise.
53713         * modules/sleep-tests (Files): Likewise.
53714         * modules/snprintf-posix-tests (Files): Likewise.
53715         * modules/snprintf-tests (Files): Likewise.
53716         * modules/sprintf-posix-tests (Files): Likewise.
53717         * modules/stat-tests (Files): Likewise.
53718         * modules/stat-time-tests (Files): Likewise.
53719         * modules/strcasestr-tests (Files): Likewise.
53720         * modules/strchrnul-tests (Files): Likewise.
53721         * modules/strerror-tests (Files): Likewise.
53722         * modules/striconv-tests (Files): Likewise.
53723         * modules/striconveh-tests (Files): Likewise.
53724         * modules/striconveha-tests (Files): Likewise.
53725         * modules/strsignal-tests (Files): Likewise.
53726         * modules/strstr-tests (Files): Likewise.
53727         * modules/strtod-tests (Files): Likewise.
53728         * modules/strverscmp-tests (Files): Likewise.
53729         * modules/symlink-tests (Files): Likewise.
53730         * modules/symlinkat-tests (Files): Likewise.
53731         * modules/trunc-tests (Files): Likewise.
53732         * modules/truncf-tests (Files): Likewise.
53733         * modules/truncl-tests (Files): Likewise.
53734         * modules/uname-tests (Files): Likewise.
53735         * modules/unicase/cased-tests (Files): Likewise.
53736         * modules/unicase/ignorable-tests (Files): Likewise.
53737         * modules/unicase/locale-language-tests (Files): Likewise.
53738         * modules/unicase/tolower-tests (Files): Likewise.
53739         * modules/unicase/totitle-tests (Files): Likewise.
53740         * modules/unicase/toupper-tests (Files): Likewise.
53741         * modules/unicase/u8-casecmp-tests (Files): Likewise.
53742         * modules/unicase/u8-casecoll-tests (Files): Likewise.
53743         * modules/unicase/u8-casefold-tests (Files): Likewise.
53744         * modules/unicase/u8-is-cased-tests (Files): Likewise.
53745         * modules/unicase/u8-is-casefolded-tests (Files): Likewise.
53746         * modules/unicase/u8-is-lowercase-tests (Files): Likewise.
53747         * modules/unicase/u8-is-titlecase-tests (Files): Likewise.
53748         * modules/unicase/u8-is-uppercase-tests (Files): Likewise.
53749         * modules/unicase/u8-tolower-tests (Files): Likewise.
53750         * modules/unicase/u8-totitle-tests (Files): Likewise.
53751         * modules/unicase/u8-toupper-tests (Files): Likewise.
53752         * modules/unicase/u16-casecmp-tests (Files): Likewise.
53753         * modules/unicase/u16-casecoll-tests (Files): Likewise.
53754         * modules/unicase/u16-casefold-tests (Files): Likewise.
53755         * modules/unicase/u16-is-cased-tests (Files): Likewise.
53756         * modules/unicase/u16-is-casefolded-tests (Files): Likewise.
53757         * modules/unicase/u16-is-lowercase-tests (Files): Likewise.
53758         * modules/unicase/u16-is-titlecase-tests (Files): Likewise.
53759         * modules/unicase/u16-is-uppercase-tests (Files): Likewise.
53760         * modules/unicase/u16-tolower-tests (Files): Likewise.
53761         * modules/unicase/u16-totitle-tests (Files): Likewise.
53762         * modules/unicase/u16-toupper-tests (Files): Likewise.
53763         * modules/unicase/u32-casecmp-tests (Files): Likewise.
53764         * modules/unicase/u32-casecoll-tests (Files): Likewise.
53765         * modules/unicase/u32-casefold-tests (Files): Likewise.
53766         * modules/unicase/u32-is-cased-tests (Files): Likewise.
53767         * modules/unicase/u32-is-casefolded-tests (Files): Likewise.
53768         * modules/unicase/u32-is-lowercase-tests (Files): Likewise.
53769         * modules/unicase/u32-is-titlecase-tests (Files): Likewise.
53770         * modules/unicase/u32-is-uppercase-tests (Files): Likewise.
53771         * modules/unicase/u32-tolower-tests (Files): Likewise.
53772         * modules/unicase/u32-totitle-tests (Files): Likewise.
53773         * modules/unicase/u32-toupper-tests (Files): Likewise.
53774         * modules/unicase/ulc-casecmp-tests (Files): Likewise.
53775         * modules/unicase/ulc-casecoll-tests (Files): Likewise.
53776         * modules/uniconv/u8-conv-from-enc-tests (Files): Likewise.
53777         * modules/uniconv/u8-conv-to-enc-tests (Files): Likewise.
53778         * modules/uniconv/u8-strconv-from-enc-tests (Files): Likewise.
53779         * modules/uniconv/u8-strconv-to-enc-tests (Files): Likewise.
53780         * modules/uniconv/u16-conv-from-enc-tests (Files): Likewise.
53781         * modules/uniconv/u16-conv-to-enc-tests (Files): Likewise.
53782         * modules/uniconv/u16-strconv-from-enc-tests (Files): Likewise.
53783         * modules/uniconv/u16-strconv-to-enc-tests (Files): Likewise.
53784         * modules/uniconv/u32-conv-from-enc-tests (Files): Likewise.
53785         * modules/uniconv/u32-conv-to-enc-tests (Files): Likewise.
53786         * modules/uniconv/u32-strconv-from-enc-tests (Files): Likewise.
53787         * modules/uniconv/u32-strconv-to-enc-tests (Files): Likewise.
53788         * modules/unictype/bidicategory-byname-tests (Files): Likewise.
53789         * modules/unictype/bidicategory-name-tests (Files): Likewise.
53790         * modules/unictype/bidicategory-of-tests (Files): Likewise.
53791         * modules/unictype/bidicategory-test-tests (Files): Likewise.
53792         * modules/unictype/block-list-tests (Files): Likewise.
53793         * modules/unictype/block-of-tests (Files): Likewise.
53794         * modules/unictype/block-test-tests (Files): Likewise.
53795         * modules/unictype/category-C-tests (Files): Likewise.
53796         * modules/unictype/category-Cc-tests (Files): Likewise.
53797         * modules/unictype/category-Cf-tests (Files): Likewise.
53798         * modules/unictype/category-Cn-tests (Files): Likewise.
53799         * modules/unictype/category-Co-tests (Files): Likewise.
53800         * modules/unictype/category-Cs-tests (Files): Likewise.
53801         * modules/unictype/category-L-tests (Files): Likewise.
53802         * modules/unictype/category-Ll-tests (Files): Likewise.
53803         * modules/unictype/category-Lm-tests (Files): Likewise.
53804         * modules/unictype/category-Lo-tests (Files): Likewise.
53805         * modules/unictype/category-Lt-tests (Files): Likewise.
53806         * modules/unictype/category-Lu-tests (Files): Likewise.
53807         * modules/unictype/category-M-tests (Files): Likewise.
53808         * modules/unictype/category-Mc-tests (Files): Likewise.
53809         * modules/unictype/category-Me-tests (Files): Likewise.
53810         * modules/unictype/category-Mn-tests (Files): Likewise.
53811         * modules/unictype/category-N-tests (Files): Likewise.
53812         * modules/unictype/category-Nd-tests (Files): Likewise.
53813         * modules/unictype/category-Nl-tests (Files): Likewise.
53814         * modules/unictype/category-No-tests (Files): Likewise.
53815         * modules/unictype/category-P-tests (Files): Likewise.
53816         * modules/unictype/category-Pc-tests (Files): Likewise.
53817         * modules/unictype/category-Pd-tests (Files): Likewise.
53818         * modules/unictype/category-Pe-tests (Files): Likewise.
53819         * modules/unictype/category-Pf-tests (Files): Likewise.
53820         * modules/unictype/category-Pi-tests (Files): Likewise.
53821         * modules/unictype/category-Po-tests (Files): Likewise.
53822         * modules/unictype/category-Ps-tests (Files): Likewise.
53823         * modules/unictype/category-S-tests (Files): Likewise.
53824         * modules/unictype/category-Sc-tests (Files): Likewise.
53825         * modules/unictype/category-Sk-tests (Files): Likewise.
53826         * modules/unictype/category-Sm-tests (Files): Likewise.
53827         * modules/unictype/category-So-tests (Files): Likewise.
53828         * modules/unictype/category-Z-tests (Files): Likewise.
53829         * modules/unictype/category-Zl-tests (Files): Likewise.
53830         * modules/unictype/category-Zp-tests (Files): Likewise.
53831         * modules/unictype/category-Zs-tests (Files): Likewise.
53832         * modules/unictype/category-and-not-tests (Files): Likewise.
53833         * modules/unictype/category-and-tests (Files): Likewise.
53834         * modules/unictype/category-byname-tests (Files): Likewise.
53835         * modules/unictype/category-name-tests (Files): Likewise.
53836         * modules/unictype/category-none-tests (Files): Likewise.
53837         * modules/unictype/category-of-tests (Files): Likewise.
53838         * modules/unictype/category-or-tests (Files): Likewise.
53839         * modules/unictype/category-test-withtable-tests (Files): Likewise.
53840         * modules/unictype/combining-class-tests (Files): Likewise.
53841         * modules/unictype/ctype-alnum-tests (Files): Likewise.
53842         * modules/unictype/ctype-alpha-tests (Files): Likewise.
53843         * modules/unictype/ctype-blank-tests (Files): Likewise.
53844         * modules/unictype/ctype-cntrl-tests (Files): Likewise.
53845         * modules/unictype/ctype-digit-tests (Files): Likewise.
53846         * modules/unictype/ctype-graph-tests (Files): Likewise.
53847         * modules/unictype/ctype-lower-tests (Files): Likewise.
53848         * modules/unictype/ctype-print-tests (Files): Likewise.
53849         * modules/unictype/ctype-punct-tests (Files): Likewise.
53850         * modules/unictype/ctype-space-tests (Files): Likewise.
53851         * modules/unictype/ctype-upper-tests (Files): Likewise.
53852         * modules/unictype/ctype-xdigit-tests (Files): Likewise.
53853         * modules/unictype/decimal-digit-tests (Files): Likewise.
53854         * modules/unictype/digit-tests (Files): Likewise.
53855         * modules/unictype/mirror-tests (Files): Likewise.
53856         * modules/unictype/numeric-tests (Files): Likewise.
53857         * modules/unictype/property-alphabetic-tests (Files): Likewise.
53858         * modules/unictype/property-ascii-hex-digit-tests (Files): Likewise.
53859         * modules/unictype/property-bidi-arabic-digit-tests (Files): Likewise.
53860         * modules/unictype/property-bidi-arabic-right-to-left-tests (Files):
53861         Likewise.
53862         * modules/unictype/property-bidi-block-separator-tests (Files):
53863         Likewise.
53864         * modules/unictype/property-bidi-boundary-neutral-tests (Files):
53865         Likewise.
53866         * modules/unictype/property-bidi-common-separator-tests (Files):
53867         Likewise.
53868         * modules/unictype/property-bidi-control-tests (Files): Likewise.
53869         * modules/unictype/property-bidi-embedding-or-override-tests (Files):
53870         Likewise.
53871         * modules/unictype/property-bidi-eur-num-separator-tests (Files):
53872         Likewise.
53873         * modules/unictype/property-bidi-eur-num-terminator-tests (Files):
53874         Likewise.
53875         * modules/unictype/property-bidi-european-digit-tests (Files): Likewise.
53876         * modules/unictype/property-bidi-hebrew-right-to-left-tests (Files):
53877         Likewise.
53878         * modules/unictype/property-bidi-left-to-right-tests (Files): Likewise.
53879         * modules/unictype/property-bidi-non-spacing-mark-tests (Files):
53880         Likewise.
53881         * modules/unictype/property-bidi-other-neutral-tests (Files): Likewise.
53882         * modules/unictype/property-bidi-pdf-tests (Files): Likewise.
53883         * modules/unictype/property-bidi-segment-separator-tests (Files):
53884         Likewise.
53885         * modules/unictype/property-bidi-whitespace-tests (Files): Likewise.
53886         * modules/unictype/property-byname-tests (Files): Likewise.
53887         * modules/unictype/property-combining-tests (Files): Likewise.
53888         * modules/unictype/property-composite-tests (Files): Likewise.
53889         * modules/unictype/property-currency-symbol-tests (Files): Likewise.
53890         * modules/unictype/property-dash-tests (Files): Likewise.
53891         * modules/unictype/property-decimal-digit-tests (Files): Likewise.
53892         * modules/unictype/property-default-ignorable-code-point-tests (Files):
53893         Likewise.
53894         * modules/unictype/property-deprecated-tests (Files): Likewise.
53895         * modules/unictype/property-diacritic-tests (Files): Likewise.
53896         * modules/unictype/property-extender-tests (Files): Likewise.
53897         * modules/unictype/property-format-control-tests (Files): Likewise.
53898         * modules/unictype/property-grapheme-base-tests (Files): Likewise.
53899         * modules/unictype/property-grapheme-extend-tests (Files): Likewise.
53900         * modules/unictype/property-grapheme-link-tests (Files): Likewise.
53901         * modules/unictype/property-hex-digit-tests (Files): Likewise.
53902         * modules/unictype/property-hyphen-tests (Files): Likewise.
53903         * modules/unictype/property-id-continue-tests (Files): Likewise.
53904         * modules/unictype/property-id-start-tests (Files): Likewise.
53905         * modules/unictype/property-ideographic-tests (Files): Likewise.
53906         * modules/unictype/property-ids-binary-operator-tests (Files): Likewise.
53907         * modules/unictype/property-ids-trinary-operator-tests (Files):
53908         Likewise.
53909         * modules/unictype/property-ignorable-control-tests (Files): Likewise.
53910         * modules/unictype/property-iso-control-tests (Files): Likewise.
53911         * modules/unictype/property-join-control-tests (Files): Likewise.
53912         * modules/unictype/property-left-of-pair-tests (Files): Likewise.
53913         * modules/unictype/property-line-separator-tests (Files): Likewise.
53914         * modules/unictype/property-logical-order-exception-tests (Files):
53915         Likewise.
53916         * modules/unictype/property-lowercase-tests (Files): Likewise.
53917         * modules/unictype/property-math-tests (Files): Likewise.
53918         * modules/unictype/property-non-break-tests (Files): Likewise.
53919         * modules/unictype/property-not-a-character-tests (Files): Likewise.
53920         * modules/unictype/property-numeric-tests (Files): Likewise.
53921         * modules/unictype/property-other-alphabetic-tests (Files): Likewise.
53922         * modules/unictype/property-other-default-ignorable-code-point-tests
53923         (Files): Likewise.
53924         * modules/unictype/property-other-grapheme-extend-tests (Files):
53925         Likewise.
53926         * modules/unictype/property-other-id-continue-tests (Files): Likewise.
53927         * modules/unictype/property-other-id-start-tests (Files): Likewise.
53928         * modules/unictype/property-other-lowercase-tests (Files): Likewise.
53929         * modules/unictype/property-other-math-tests (Files): Likewise.
53930         * modules/unictype/property-other-uppercase-tests (Files): Likewise.
53931         * modules/unictype/property-paired-punctuation-tests (Files): Likewise.
53932         * modules/unictype/property-paragraph-separator-tests (Files): Likewise.
53933         * modules/unictype/property-pattern-syntax-tests (Files): Likewise.
53934         * modules/unictype/property-pattern-white-space-tests (Files): Likewise.
53935         * modules/unictype/property-private-use-tests (Files): Likewise.
53936         * modules/unictype/property-punctuation-tests (Files): Likewise.
53937         * modules/unictype/property-quotation-mark-tests (Files): Likewise.
53938         * modules/unictype/property-radical-tests (Files): Likewise.
53939         * modules/unictype/property-sentence-terminal-tests (Files): Likewise.
53940         * modules/unictype/property-soft-dotted-tests (Files): Likewise.
53941         * modules/unictype/property-space-tests (Files): Likewise.
53942         * modules/unictype/property-terminal-punctuation-tests (Files):
53943         Likewise.
53944         * modules/unictype/property-test-tests (Files): Likewise.
53945         * modules/unictype/property-titlecase-tests (Files): Likewise.
53946         * modules/unictype/property-unassigned-code-value-tests (Files):
53947         Likewise.
53948         * modules/unictype/property-unified-ideograph-tests (Files): Likewise.
53949         * modules/unictype/property-uppercase-tests (Files): Likewise.
53950         * modules/unictype/property-variation-selector-tests (Files): Likewise.
53951         * modules/unictype/property-white-space-tests (Files): Likewise.
53952         * modules/unictype/property-xid-continue-tests (Files): Likewise.
53953         * modules/unictype/property-xid-start-tests (Files): Likewise.
53954         * modules/unictype/property-zero-width-tests (Files): Likewise.
53955         * modules/unictype/scripts-tests (Files): Likewise.
53956         * modules/unictype/syntax-c-ident-tests (Files): Likewise.
53957         * modules/unictype/syntax-c-whitespace-tests (Files): Likewise.
53958         * modules/unictype/syntax-java-ident-tests (Files): Likewise.
53959         * modules/unictype/syntax-java-whitespace-tests (Files): Likewise.
53960         * modules/unilbrk/u8-possible-linebreaks-tests (Files): Likewise.
53961         * modules/unilbrk/u8-width-linebreaks-tests (Files): Likewise.
53962         * modules/unilbrk/u16-possible-linebreaks-tests (Files): Likewise.
53963         * modules/unilbrk/u16-width-linebreaks-tests (Files): Likewise.
53964         * modules/unilbrk/u32-possible-linebreaks-tests (Files): Likewise.
53965         * modules/unilbrk/u32-width-linebreaks-tests (Files): Likewise.
53966         * modules/unilbrk/ulc-possible-linebreaks-tests (Files): Likewise.
53967         * modules/unilbrk/ulc-width-linebreaks-tests (Files): Likewise.
53968         * modules/uninorm/canonical-decomposition-tests (Files): Likewise.
53969         * modules/uninorm/compat-decomposition-tests (Files): Likewise.
53970         * modules/uninorm/composition-tests (Files): Likewise.
53971         * modules/uninorm/decomposing-form-tests (Files): Likewise.
53972         * modules/uninorm/decomposition-tests (Files): Likewise.
53973         * modules/uninorm/filter-tests (Files): Likewise.
53974         * modules/uninorm/nfc-tests (Files): Likewise.
53975         * modules/uninorm/nfd-tests (Files): Likewise.
53976         * modules/uninorm/nfkc-tests (Files): Likewise.
53977         * modules/uninorm/nfkd-tests (Files): Likewise.
53978         * modules/uninorm/u8-normcmp-tests (Files): Likewise.
53979         * modules/uninorm/u8-normcoll-tests (Files): Likewise.
53980         * modules/uninorm/u16-normcmp-tests (Files): Likewise.
53981         * modules/uninorm/u16-normcoll-tests (Files): Likewise.
53982         * modules/uninorm/u32-normcmp-tests (Files): Likewise.
53983         * modules/uninorm/u32-normcoll-tests (Files): Likewise.
53984         * modules/unistdio/u8-asnprintf-tests (Files): Likewise.
53985         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
53986         * modules/unistdio/u8-vasprintf-tests (Files): Likewise.
53987         * modules/unistdio/u8-vsnprintf-tests (Files): Likewise.
53988         * modules/unistdio/u8-vsprintf-tests (Files): Likewise.
53989         * modules/unistdio/u16-asnprintf-tests (Files): Likewise.
53990         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
53991         * modules/unistdio/u16-vasprintf-tests (Files): Likewise.
53992         * modules/unistdio/u16-vsnprintf-tests (Files): Likewise.
53993         * modules/unistdio/u16-vsprintf-tests (Files): Likewise.
53994         * modules/unistdio/u32-asnprintf-tests (Files): Likewise.
53995         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
53996         * modules/unistdio/u32-vasprintf-tests (Files): Likewise.
53997         * modules/unistdio/u32-vsnprintf-tests (Files): Likewise.
53998         * modules/unistdio/u32-vsprintf-tests (Files): Likewise.
53999         * modules/unistdio/ulc-asnprintf-tests (Files): Likewise.
54000         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
54001         * modules/unistdio/ulc-vasprintf-tests (Files): Likewise.
54002         * modules/unistdio/ulc-vsnprintf-tests (Files): Likewise.
54003         * modules/unistdio/ulc-vsprintf-tests (Files): Likewise.
54004         * modules/uniwbrk/u8-wordbreaks-tests (Files): Likewise.
54005         * modules/uniwbrk/u16-wordbreaks-tests (Files): Likewise.
54006         * modules/uniwbrk/u32-wordbreaks-tests (Files): Likewise.
54007         * modules/uniwbrk/ulc-wordbreaks-tests (Files): Likewise.
54008         * modules/uniwidth/u8-strwidth-tests (Files): Likewise.
54009         * modules/uniwidth/u8-width-tests (Files): Likewise.
54010         * modules/uniwidth/u16-strwidth-tests (Files): Likewise.
54011         * modules/uniwidth/u16-width-tests (Files): Likewise.
54012         * modules/uniwidth/u32-strwidth-tests (Files): Likewise.
54013         * modules/uniwidth/u32-width-tests (Files): Likewise.
54014         * modules/uniwidth/width-tests (Files): Likewise.
54015         * modules/unlink-tests (Files): Likewise.
54016         * modules/unsetenv-tests (Files): Likewise.
54017         * modules/usleep-tests (Files): Likewise.
54018         * modules/utimens-tests (Files): Likewise.
54019         * modules/utimensat-tests (Files): Likewise.
54020         * modules/vasnprintf-posix-tests (Files): Likewise.
54021         * modules/vasnprintf-tests (Files): Likewise.
54022         * modules/vasprintf-posix-tests (Files): Likewise.
54023         * modules/vasprintf-tests (Files): Likewise.
54024         * modules/vdprintf-posix-tests (Files): Likewise.
54025         * modules/vfprintf-posix-tests (Files): Likewise.
54026         * modules/vprintf-posix-tests (Files): Likewise.
54027         * modules/vsnprintf-posix-tests (Files): Likewise.
54028         * modules/vsnprintf-tests (Files): Likewise.
54029         * modules/vsprintf-posix-tests (Files): Likewise.
54030         * modules/wcrtomb-tests (Files): Likewise.
54031         * modules/wcsnrtombs-tests (Files): Likewise.
54032         * modules/wcsrtombs-tests (Files): Likewise.
54033         * modules/wctype-tests (Files): Likewise.
54034         * modules/wcwidth-tests (Files): Likewise.
54035         * modules/xmemdup0-tests (Files): Likewise.
54036         * modules/xprintf-posix-tests (Files): Likewise.
54037         * modules/xvasprintf-tests (Files): Likewise.
54039 2009-12-24  Eric Blake  <ebb9@byu.net>
54041         test-nanosleep: fix typo
54042         * tests/test-nanosleep.c (SIGNATURE_CHECK): Fix typo in previous
54043         patch.
54044         Reported by Bruno Haible.
54046 2009-12-24  Bruno Haible  <bruno@clisp.org>
54048         Reduce namespace pollution on glibc systems.
54049         * lib/inttypes.in.h: Don't include <stdint.h> on glibc systems.
54050         * lib/stdlib.in.h: Don't include <stdint.h>, <unistd.h> on glibc
54051         systems.
54052         * lib/unistd.in.h: Don't include <stdio.h>, <fcntl.h>, <stdlib.h>,
54053         <getopt.h> on glibc systems.
54054         * lib/fcntl.in.h: Don't include <sys/stat.h>, <unistd.h> on glibc
54055         systems.
54056         * lib/fcntl.c: Include <unistd.h> here instead.
54058 2009-12-24  Bruno Haible  <bruno@clisp.org>
54060         * lib/stdlib.in.h (includes): Fix typo in today's commit.
54062 2009-12-24  Eric Blake  <ebb9@byu.net>
54064         tests: add signature checks
54065         * tests/signature.h (SIGNATURE_CHECK): New file.
54066         * modules/atexit-tests (Files): Use it.
54067         * modules/btowc-tests (Files): Likewise.
54068         * modules/canonicalize-lgpl-tests (Files): Likewise.
54069         * modules/ceilf-tests (Files): Likewise.
54070         * modules/ceill-tests (Files): Likewise.
54071         * modules/chown-tests (Files): Likewise.
54072         * modules/dprintf-posix-tests (Files): Likewise.
54073         * modules/dup2-tests (Files): Likewise.
54074         * modules/dup3-tests (Files): Likewise.
54075         * modules/duplocale-tests (Files): Likewise.
54076         * modules/fchdir-tests (Files): Likewise.
54077         * modules/fcntl-tests (Files): Likewise.
54078         * modules/fdopendir-tests (Files): Likewise.
54079         * modules/fflush-tests (Files): Likewise.
54080         * modules/flock-tests (Files): Likewise.
54081         * modules/floorf-tests (Files): Likewise.
54082         * modules/floorl-tests (Files): Likewise.
54083         * modules/fnmatch-tests (Files): Likewise.
54084         * modules/fopen-tests (Files): Likewise.
54085         * modules/fprintf-posix-tests (Files): Likewise.
54086         * modules/freopen-tests (Files): Likewise.
54087         * modules/frexp-nolibm-tests (Files): Likewise.
54088         * modules/frexp-tests (Files): Likewise.
54089         * modules/frexpl-nolibm-tests (Files): Likewise.
54090         * modules/frexpl-tests (Files): Likewise.
54091         * modules/fseek-tests (Files): Likewise.
54092         * modules/fseeko-tests (Files): Likewise.
54093         * modules/fsync-tests (Files): Likewise.
54094         * modules/ftell-tests (Files): Likewise.
54095         * modules/ftello-tests (Files): Likewise.
54096         * modules/futimens-tests (Files): Likewise.
54097         * modules/getaddrinfo-tests (Files): Likewise.
54098         * modules/getcwd-tests (Files): Likewise.
54099         * modules/getdelim-tests (Files): Likewise.
54100         * modules/getdtablesize-tests (Files): Likewise.
54101         * modules/getgroups-tests (Files): Likewise.
54102         * modules/gethostname-tests (Files): Likewise.
54103         * modules/getline-tests (Files): Likewise.
54104         * modules/getopt-posix-tests (Files): Likewise.
54105         * modules/gettimeofday-tests (Files): Likewise.
54106         * modules/glob-tests (Files): Likewise.
54107         * modules/iconv-tests (Files): Likewise.
54108         * modules/inet_ntop-tests (Files): Likewise.
54109         * modules/inet_pton-tests (Files): Likewise.
54110         * modules/isblank-tests (Files): Likewise.
54111         * modules/lchown-tests (Files): Likewise.
54112         * modules/ldexpl-tests (Files): Likewise.
54113         * modules/link-tests (Files): Likewise.
54114         * modules/linkat-tests (Files): Likewise.
54115         * modules/lseek-tests (Files): Likewise.
54116         * modules/lstat-tests (Files): Likewise.
54117         * modules/mbrtowc-tests (Files): Likewise.
54118         * modules/mbsinit-tests (Files): Likewise.
54119         * modules/mbsnrtowcs-tests (Files): Likewise.
54120         * modules/mbsrtowcs-tests (Files): Likewise.
54121         * modules/memchr-tests (Files): Likewise.
54122         * modules/memcmp-tests (Files): Likewise.
54123         * modules/memmem-tests (Files): Likewise.
54124         * modules/memrchr-tests (Files): Likewise.
54125         * modules/mkdir-tests (Files): Likewise.
54126         * modules/mkfifo-tests (Files): Likewise.
54127         * modules/mkfifoat-tests (Files): Likewise.
54128         * modules/mknod-tests (Files): Likewise.
54129         * modules/nanosleep-tests (Files): Likewise.
54130         * modules/nl_langinfo-tests (Files): Likewise.
54131         * modules/obstack-printf-tests (Files): Likewise.
54132         * modules/open-tests (Files): Likewise.
54133         * modules/openat-tests (Files): Likewise.
54134         * modules/perror-tests (Files): Likewise.
54135         * modules/pipe2-tests (Files): Likewise.
54136         * modules/poll-tests (Files): Likewise.
54137         * modules/popen-tests (Files): Likewise.
54138         * modules/posix_spawn-tests (Files): Likewise.
54139         * modules/posix_spawnp-tests (Files): Likewise.
54140         * modules/pread-tests (Files): Likewise.
54141         * modules/printf-posix-tests (Files): Likewise.
54142         * modules/pty-tests (Files): Likewise.
54143         * modules/random_r-tests (Files): Likewise.
54144         * modules/rawmemchr-tests (Files): Likewise.
54145         * modules/readlink-tests (Files): Likewise.
54146         * modules/remove-tests (Files): Likewise.
54147         * modules/rename-tests (Files): Likewise.
54148         * modules/renameat-tests (Files): Likewise.
54149         * modules/rmdir-tests (Files): Likewise.
54150         * modules/round-tests (Files): Likewise.
54151         * modules/roundf-tests (Files): Likewise.
54152         * modules/roundl-tests (Files): Likewise.
54153         * modules/select-tests (Files): Likewise.
54154         * modules/setenv-tests (Files): Likewise.
54155         * modules/sigaction-tests (Files): Likewise.
54156         * modules/sleep-tests (Files): Likewise.
54157         * modules/snprintf-posix-tests (Files): Likewise.
54158         * modules/snprintf-tests (Files): Likewise.
54159         * modules/sprintf-posix-tests (Files): Likewise.
54160         * modules/stat-tests (Files): Likewise.
54161         * modules/strcasestr-tests (Files): Likewise.
54162         * modules/strchrnul-tests (Files): Likewise.
54163         * modules/strerror-tests (Files): Likewise.
54164         * modules/strsignal-tests (Files): Likewise.
54165         * modules/strstr-tests (Files): Likewise.
54166         * modules/strtod-tests (Files): Likewise.
54167         * modules/strverscmp-tests (Files): Likewise.
54168         * modules/symlink-tests (Files): Likewise.
54169         * modules/symlinkat-tests (Files): Likewise.
54170         * modules/times-tests (Files): Likewise.
54171         * modules/trunc-tests (Files): Likewise.
54172         * modules/truncf-tests (Files): Likewise.
54173         * modules/truncl-tests (Files): Likewise.
54174         * modules/tsearch-tests (Files): Likewise.
54175         * modules/uname-tests (Files): Likewise.
54176         * modules/unlink-tests (Files): Likewise.
54177         * modules/unsetenv-tests (Files): Likewise.
54178         * modules/usleep-tests (Files): Likewise.
54179         * modules/utimensat-tests (Files): Likewise.
54180         * modules/vasprintf-tests (Files): Likewise.
54181         * modules/vdprintf-posix-tests (Files): Likewise.
54182         * modules/vfprintf-posix-tests (Files): Likewise.
54183         * modules/vprintf-posix-tests (Files): Likewise.
54184         * modules/vsnprintf-posix-tests (Files): Likewise.
54185         * modules/vsnprintf-tests (Files): Likewise.
54186         * modules/vsprintf-posix-tests (Files): Likewise.
54187         * modules/wcrtomb-tests (Files): Likewise.
54188         * modules/wcsnrtombs-tests (Files): Likewise.
54189         * modules/wcsrtombs-tests (Files): Likewise.
54190         * modules/wcwidth-tests (Files): Likewise.
54191         * tests/test-isfinite.c (isfinite): Ensure macro declaration.
54192         * tests/test-isinf.c (isinf): Likewise.
54193         * tests/test-isnan.c (isnan): Likewise.
54194         * tests/test-signbit.c (signbit): Likewise.
54195         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Ensure
54196         declaration, either as macro or with correct signature.
54197         (select): Ensure function under test is declared with correct
54198         signature in correct header.
54199         * tests/test-atexit.c (atexit): Likewise.
54200         * tests/test-btowc.c (btowc): Likewise.
54201         * tests/test-canonicalize-lgpl.c (realpath)
54202         (canonicalize_file_name): Likewise.
54203         * tests/test-ceilf1.c (ceilf): Likewise.
54204         * tests/test-ceill.c (ceill): Likewise.
54205         * tests/test-chown.c (chown): Likewise.
54206         * tests/test-dprintf-posix.c (dprintf): Likewise.
54207         * tests/test-dup2.c (dup2): Likewise.
54208         * tests/test-dup3.c (dup3): Likewise.
54209         * tests/test-duplocale.c (duplocale): Likewise.
54210         * tests/test-fchdir.c (fchdir): Likewise.
54211         * tests/test-fchownat.c (fchownat): Likewise.
54212         * tests/test-fcntl.c (fcntl): Likewise.
54213         * tests/test-fdopendir.c (fdopendir): Likewise.
54214         * tests/test-fflush.c (fflush): Likewise.
54215         * tests/test-flock.c (flock): Likewise.
54216         * tests/test-floorf1.c (floorf): Likewise.
54217         * tests/test-floorl.c (floorl): Likewise.
54218         * tests/test-fnmatch.c (fnmatch): Likewise.
54219         * tests/test-fopen.c (fopen): Likewise.
54220         * tests/test-fprintf-posix.c (fprintf): Likewise.
54221         * tests/test-freopen.c (freopen): Likewise.
54222         * tests/test-frexp.c (frexp): Likewise.
54223         * tests/test-frexpl.c (frexpl): Likewise.
54224         * tests/test-fseek.c (fseek): Likewise.
54225         * tests/test-fseeko.c (fseeko): Likewise.
54226         * tests/test-fstatat.c (fstatat): Likewise.
54227         * tests/test-fsync.c (fsync): Likewise.
54228         * tests/test-ftell.c (ftell): Likewise.
54229         * tests/test-ftello.c (ftello): Likewise.
54230         * tests/test-futimens.c (futimens): Likewise.
54231         * tests/test-getaddrinfo.c (getaddrinfo, freeaddrinfo)
54232         (gai_strerror): Likewise.
54233         * tests/test-getcwd.c (getcwd): Likewise.
54234         * tests/test-getdelim.c (getdelim): Likewise.
54235         * tests/test-getdtablesize.c (getdtablesize): Likewise.
54236         * tests/test-getgroups.c (getgroups): Likewise.
54237         * tests/test-gethostname.c (gethostname): Likewise.
54238         * tests/test-getline.c (getline): Likewise.
54239         * tests/test-getopt.c (getopt, getopt_long, getopt_long_only):
54240         Likewise.
54241         * tests/test-gettimeofday.c (gettimeofday): Likewise.
54242         * tests/test-glob.c (glob, globfree): Likewise.
54243         * tests/test-iconv.c (iconv, iconv_open, iconv_close): Likewise.
54244         * tests/test-inet_ntop.c (inet_ntop): Likewise.
54245         * tests/test-inet_pton.c (inet_pton): Likewise.
54246         * tests/test-isblank.c (isblank): Likewise.
54247         * tests/test-lchown.c (lchown): Likewise.
54248         * tests/test-ldexpl.c (ldexpl): Likewise.
54249         * tests/test-link.c (link): Likewise.
54250         * tests/test-linkat.c (linkat): Likewise.
54251         * tests/test-lseek.c (lseek): Likewise.
54252         * tests/test-lstat.c (lstat): Likewise.
54253         * tests/test-mbrtowc.c (mbrtowc): Likewise.
54254         * tests/test-mbsinit.c (mbsinit): Likewise.
54255         * tests/test-mbsnrtowcs.c (mbsnrtowcs): Likewise.
54256         * tests/test-mbsrtowcs.c (mbsrtowcs): Likewise.
54257         * tests/test-memchr.c (memchr): Likewise.
54258         * tests/test-memcmp.c (memcmp): Likewise.
54259         * tests/test-memmem.c (memmem): Likewise.
54260         * tests/test-memrchr.c (memrchr): Likewise.
54261         * tests/test-mkdir.c (mkdir): Likewise.
54262         * tests/test-mkdirat.c (mkdirat): Likewise.
54263         * tests/test-mkfifo.c (mkfifo): Likewise.
54264         * tests/test-mkfifoat.c (mkfifoat, mknodat): Likewise.
54265         * tests/test-mknod.c (mknod): Likewise.
54266         * tests/test-nanosleep.c (nanosleep): Likewise.
54267         * tests/test-nl_langinfo.c (nl_langinfo): Likewise.
54268         * tests/test-obstack-printf.c (obstack_printf, obstack_vprintf):
54269         Likewise.
54270         * tests/test-open.c (open): Likewise.
54271         * tests/test-openat.c (openat): Likewise.
54272         * tests/test-perror.c (perror): Likewise.
54273         * tests/test-pipe2.c (pipe2): Likewise.
54274         * tests/test-poll.c (poll): Likewise.
54275         * tests/test-popen.c (popen, pclose): Likewise.
54276         * tests/test-posix_spawn1.c (posix_spawnp, posix_spawnattr_init)
54277         (posix_spawnattr_destroy, posix_spawnattr_setsigmask)
54278         (posix_spawnattr_setflags, posix_spawn_file_actions_init)
54279         (posix_spawn_file_actions_destroy)
54280         (posix_spawn_file_actions_addclose)
54281         (posix_spawn_file_actions_addopen)
54282         (posix_spawn_file_actions_adddup2): Likewise.
54283         * tests/test-posix_spawn3.c (posix_spawn): Likewise.
54284         * tests/test-pread.c (pread): Likewise.
54285         * tests/test-printf-posix.c (printf): Likewise.
54286         * tests/test-pty.c (openpty, forkpty): Likewise.
54287         * tests/test-random_r.c (srandom_r, initstate_r, setstate_r)
54288         (random_r): Likewise.
54289         * tests/test-rawmemchr.c (rawmemchr): Likewise.
54290         * tests/test-readlink.c (readlink): Likewise.
54291         * tests/test-remove.c (remove): Likewise.
54292         * tests/test-rename.c (rename): Likewise.
54293         * tests/test-renameat.c (renameat): Likewise.
54294         * tests/test-rmdir.c (rmdir): Likewise.
54295         * tests/test-round1.c (round): Likewise.
54296         * tests/test-roundf1.c (roundf): Likewise.
54297         * tests/test-roundl.c (roundl): Likewise.
54298         * tests/test-setenv.c (setenv): Likewise.
54299         * tests/test-sigaction.c (sigaction): Likewise.
54300         * tests/test-sleep.c (sleep): Likewise.
54301         * tests/test-snprintf.c (snprintf): Likewise.
54302         * tests/test-sprintf-posix.c (sprintf): Likewise.
54303         * tests/test-stat.c (stat): Likewise.
54304         * tests/test-stpncpy.c (stpncpy): Likewise.
54305         * tests/test-strcasestr.c (strcasestr): Likewise.
54306         * tests/test-strchrnul.c (strchrnul): Likewise.
54307         * tests/test-strerror.c (strerror): Likewise.
54308         * tests/test-strsignal.c (strsignal): Likewise.
54309         * tests/test-strstr.c (strstr): Likewise.
54310         * tests/test-strtod.c (strtod): Likewise.
54311         * tests/test-strverscmp.c (strverscmp): Likewise.
54312         * tests/test-symlink.c (symlink): Likewise.
54313         * tests/test-symlinkat.c (symlinkat, readlinkat): Likewise.
54314         * tests/test-times.c (times): Likewise.
54315         * tests/test-trunc1.c (trunc): Likewise.
54316         * tests/test-truncf1.c (truncf): Likewise.
54317         * tests/test-truncl.c (truncl): Likewise.
54318         * tests/test-tsearch.c (tdelete, tfind, tsearch, twalk):
54319         Likewise.
54320         * tests/test-uname.c (uname): Likewise.
54321         * tests/test-unlink.c (unlink): Likewise.
54322         * tests/test-unlinkat.c (unlinkat): Likewise.
54323         * tests/test-unsetenv.c (unsetenv): Likewise.
54324         * tests/test-usleep.c (usleep): Likewise.
54325         * tests/test-utimensat.c (utimensat): Likewise.
54326         * tests/test-vasprintf.c (asprintf, vasprintf): Likewise.
54327         * tests/test-vdprintf-posix.c (vdprintf): Likewise.
54328         * tests/test-vfprintf-posix.c (vfprintf): Likewise.
54329         * tests/test-vprintf-posix.c (vprintf): Likewise.
54330         * tests/test-vsnprintf.c (vsnprintf): Likewise.
54331         * tests/test-vsprintf-posix.c (vsprintf): Likewise.
54332         * tests/test-wcrtomb.c (wcrtomb): Likewise.
54333         * tests/test-wcsnrtombs.c (wcsnrtombs): Likewise.
54334         * tests/test-wcsrtombs.c (wcsrtombs): Likewise.
54335         * tests/test-wcwidth.c (wcwidth): Likewise.
54337         build: pull in conditional headers during GNULIB_POSIXCHECK
54338         * lib/stdio.in.h (includes): Using GNULIB_POSIXCHECK also requires
54339         definitions from any conditionally-included headers.
54340         * lib/stdlib.in.h (includes): Likewise.
54341         * lib/unistd.in.h (includes): Likewise.
54343 2009-12-24  Bruno Haible  <bruno@clisp.org>
54345         * tests/test-argv-iter.c: Include header file being tested immediately
54346         after config.h.
54347         * tests/test-base64.c: Likewise.
54348         * tests/test-flock.c: Likewise.
54349         * tests/test-fsync.c: Likewise.
54350         * tests/test-getdate.c: Likewise.
54351         * tests/test-getndelim2.c: Likewise.
54352         * tests/test-isfinite.c: Likewise.
54353         * tests/test-isinf.c: Likewise.
54354         * tests/test-strerror.c: Likewise.
54355         * tests/test-strsignal.c: Likewise.
54357 2009-12-23  Eric Blake  <ebb9@byu.net>
54359         unistd: work around cygwin bug
54360         * lib/unistd.in.h (includes): Pick up headers needed for cygwin.
54361         * doc/posix-functions/unlinkat.texi (unlinkat): Document the bug.
54362         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
54364 2009-12-23  Bruno Haible  <bruno@clisp.org>
54366         localename: More tests.
54367         * tests/test-localename.c (SIZEOF): New macro.
54368         (categories): New variable.
54369         (test_locale_name, test_locale_name_posix, test_locale_name_environ,
54370         test_locale_name_default): Add test w.r.t. thread locale.
54371         (test_locale_name_thread): New function.
54372         (main): Invoke it.
54374         localename: Make aware of thread locale.
54375         * lib/localename.h (gl_locale_name_thread): New declaration.
54376         (gl_locale_name, gl_locale_name_posix, gl_locale_name_default): Clarify
54377         behaviour with respect to thread locale.
54378         * lib/localename.c: Include <limits.h>, <stddef.h>, <xlocale.h>,
54379         <langinfo.h>, glthread/lock.h.
54380         (SIZE_BITS): New macro.
54381         (string_hash): New function.
54382         (struct hash_node): New type.
54383         (HASH_TABLE_SIZE): New macro.
54384         (struniq_hash_table, struniq_lock): New variables.
54385         (struniq): New function.
54386         (gl_locale_name_thread): New function.
54387         (gl_locale_name): Invoke it.
54388         * m4/localename.m4 (gl_LOCALENAME): Test for uselocale function.
54389         * modules/localename (Depends-on): Add lock.
54390         Reported by Mike Gran <spk121@yahoo.com>.
54392 2009-12-23  Eric Blake  <ebb9@byu.net>
54394         va-args: new module
54395         * modules/va-args: New file.
54396         * m4/va-args.m4 (gl_VA_ARGS): Likewise.
54397         * MODULES.html.sh (Core language properties): Mention it.
54399         gnulib-common: prefer _GL_UNUSED over _UNUSED_PARAMETER_
54400         * m4/gnulib-common.m4 (gl_COMMON): Create a more-appropriately
54401         named alias for __attribute__((__unused__)).
54402         * lib/chown.c: Update client.
54403         * lib/fchmodat.c: Likewise.
54404         * lib/fts.c: Likewise.
54405         * lib/getdate.y: Likewise.
54406         * lib/getgroups.c: Likewise.
54407         * lib/getopt.c: Likewise.
54408         * lib/getugroups.c: Likewise.
54409         * lib/mkdir.c: Likewise.
54410         * lib/mkfifo.c: Likewise.
54411         * lib/mkfifoat.c: Likewise.
54412         * lib/mknod.c: Likewise.
54413         * lib/mknodat.c: Likewise.
54414         * lib/readlink.c: Likewise.
54415         * lib/se-context.in.h: Likewise.
54416         * lib/se-selinux.in.h: Likewise.
54417         * lib/sockets.c: Likewise.
54418         * lib/symlink.c: Likewise.
54419         * lib/symlinkat.c: Likewise.
54420         * lib/unicodeio.c: Likewise.
54421         * lib/unistr.h: Likewise.
54422         * tests/test-areadlink.c: Likewise.
54423         * tests/test-areadlinkat.c: Likewise.
54424         * tests/test-filenamecat.c: Likewise.
54425         * tests/test-fseeko.c: Likewise.
54426         * tests/test-ftello.c: Likewise.
54427         * tests/test-getdate.c: Likewise.
54428         * tests/test-getgroups.c: Likewise.
54429         * tests/test-gethostname.c: Likewise.
54430         * tests/test-quotearg.c: Likewise.
54431         * tests/test-version-etc.c: Likewise.
54432         * tests/test-xalloc-die.c: Likewise.
54433         * tests/test-xfprintf-posix.c: Likewise.
54434         * tests/test-xprintf-posix.c: Likewise.
54435         * tests/test-xvasprintf.c: Likewise.
54437         tests: avoid compiler warnings
54438         * tests/test-fcntl.c (main): Delete unused parameters.
54439         * tests/test-freopen-safer.c (main): Likewise.
54440         * tests/test-xalloc-die.c (main): Mark unused parameters.
54441         * tests/test-fseeko.c (main): Likewise.
54442         * tests/test-ftello.c (main): Likewise.
54443         * tests/test-nanosleep.c (main): Avoid declaration warning.
54444         * tests/test-sleep.c (main): Likewise.
54445         * tests/test-unsetenv.c (main): Silence warning about string
54446         literal.
54447         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
54449 2009-12-23  Bruno Haible  <bruno@clisp.org>
54451         * tests/test-localename.c (test_locale_name): New function, extracted
54452         from main. Also test mixed situations.
54453         (test_locale_name_posix, test_locale_name_environ,
54454         test_locale_name_default): New functions.
54455         (main): Invoke them all.
54456         * modules/localename-tests (configure.ac): Test for newlocale.
54458 2009-12-23  Bruno Haible  <bruno@clisp.org>
54460         unistd: Ensure getcwd gets declared before being overridden.
54461         * lib/unistd.in.h: Conditionally include <io.h>.
54463 2009-12-22  Bruno Haible  <bruno@clisp.org>
54465         wchar: Diagnose broken combination of glibc and gcc versions and flags.
54466         * m4/wchar.m4 (gl_WCHAR_H_INLINE_OK): New macro.
54467         (gl_WCHAR_H): Invoke it.
54468         * m4/btowc.m4 (gl_FUNC_BTOWC): Require it.
54469         * doc/posix-headers/wchar.texi: Mention the interoperability problem.
54470         Reported by Karl Berry <karl@freefriends.org>.
54472 2009-12-22  Eric Blake  <ebb9@byu.net>
54474         math, unistd: avoid redundant includes
54475         * lib/math.in.h (isnan): No need to re-include <math.h>.
54476         * lib/unistd.in.h (getcwd): Likewise, for <stdlib.h>.
54478         getsubopt: work around cygwin bug
54479         * lib/stdlib.in.h (includes): Move unistd inclusion sooner, to
54480         avoid conflicting with system getsubopt.
54481         * doc/posix-functions/getsubopt.texi (getsubopt): Document the
54482         bug.
54484         getopt: synchronize from glibc
54485         * lib/getopt.c (_getopt_initialize, _getopt_internal_r): Swap
54486         parameter order.  Adjust all callers.
54487         (_getopt_internal_r, main): Adjust quoting in error messages.
54488         Drop considerations for outdated POSIX 1003.2 error message.
54489         * lib/getopt1.c (_getopt_long_r, _getopt_long_only_r): Adjust
54490         callers.
54491         * lib/getopt_int.h (_getopt_internal_r): Adjust prototype.
54493         test-getopt: test stderr behavior
54494         * modules/getopt-posix-tests (Depends-on): Add dup2.
54495         * tests/test-getopt.c (ASSERT): Avoid stderr.
54496         (main): Move stderr to a temporary file.
54497         * tests/test-getopt.h (getopt_loop): No longer manipulate opterr.
54498         Instead, add parameter to inform caller if output occurred.
54499         (test_getopt): Adjust all existing tests to expect silence, and
54500         add new tests of leading ":".
54501         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
54502         glibc shortcomings with leading "-:" or "+:" in optstring.
54503         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
54504         Likewise.
54505         * doc/posix-functions/getopt.texi (getopt): Likewise.
54507         test-getopt: enhance test
54508         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require that getopt_long
54509         supports optind=0.
54510         * tests/test-getopt.c (OPTIND_MIN): Move...
54511         * tests/test-getopt.h (OPTIND_MIN): ...here.
54512         * tests/test-getopt_long.h (test_getopt_long): Add more coverage.
54513         Require that optind=0 works, since modern BSD supports it in
54514         addition to optreset, and since coreutils expects it.
54515         (test_getopt_long_only): New test.
54516         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
54517         glibc shortcomings with 'W;', and enforcement of optind=0.
54518         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
54519         Likewise.
54521 2009-12-21  Bruno Haible  <bruno@clisp.org>
54523         localename: Improvements for MacOS X and Cygwin.
54524         * lib/localename.h (gl_locale_name_environ): New declaration.
54525         * lib/localename.c (gl_locale_name_environ): New function, extracted from
54526         gl_locale_name_posix. Ignore dummy LANG values on MacOS X and Cygwin.
54527         (gl_locale_name_posix): Invoke it.
54528         (gl_locale_name_default): Add comments. Use Windows native API also on
54529         Cygwin.
54531 2009-12-21  Bruno Haible  <bruno@clisp.org>
54533         Update list of Win32 locale ids.
54534         * lib/localename.c (LANG_ROMANSH): Renamed from LANG_RHAETO_ROMANCE.
54535         (LANG_SAMI): Renamed from LANG_SAAMI.
54536         (LANG_BASHKIR, LANG_LUXEMBOURGISH, LANG_GREENLANDIC,
54537         LANG_MAPUDUNGUN, LANG_MOHAWK, LANG_BRETON, LANG_OCCITAN, LANG_CORSICAN,
54538         LANG_ALSATIAN, LANG_YAKUT, LANG_KICHE, LANG_KINYARWANDA, LANG_WOLOF,
54539         LANG_DARI, LANG_SCOTTISH_GAELIC): New macros.
54540         (SUBLANG_AFRIKAANS_SOUTH_AFRICA, SUBLANG_ALBANIAN_ALBANIA,
54541         SUBLANG_ALSATIAN_FRANCE, SUBLANG_AMHARIC_ETHIOPIA,
54542         SUBLANG_ARMENIAN_ARMENIA, SUBLANG_ASSAMESE_INDIA,
54543         SUBLANG_BASHKIR_RUSSIA, SUBLANG_BASQUE_BASQUE,
54544         SUBLANG_BELARUSIAN_BELARUS, SUBLANG_BRETON_FRANCE,
54545         SUBLANG_BULGARIAN_BULGARIA, SUBLANG_CAMBODIAN_CAMBODIA,
54546         SUBLANG_CATALAN_SPAIN, SUBLANG_CORSICAN_FRANCE,
54547         SUBLANG_CZECH_CZECH_REPUBLIC, SUBLANG_DANISH_DENMARK,
54548         SUBLANG_DARI_AFGHANISTAN, SUBLANG_DIVEHI_MALDIVES,
54549         SUBLANG_DUTCH_SURINAM, SUBLANG_ESTONIAN_ESTONIA,
54550         SUBLANG_FAEROESE_FAROE_ISLANDS, SUBLANG_FARSI_IRAN,
54551         SUBLANG_FINNISH_FINLAND, SUBLANG_FRISIAN_NETHERLANDS,
54552         SUBLANG_GALICIAN_SPAIN, SUBLANG_GEORGIAN_GEORGIA,
54553         SUBLANG_GREEK_GREECE, SUBLANG_GREENLANDIC_GREENLAND,
54554         SUBLANG_GUJARATI_INDIA, SUBLANG_HAUSA_NIGERIA_LATIN,
54555         SUBLANG_HEBREW_ISRAEL, SUBLANG_HINDI_INDIA, SUBLANG_HUNGARIAN_HUNGARY,
54556         SUBLANG_ICELANDIC_ICELAND, SUBLANG_IGBO_NIGERIA,
54557         SUBLANG_INDONESIAN_INDONESIA, SUBLANG_INUKTITUT_CANADA,
54558         SUBLANG_INUKTITUT_CANADA_LATIN, SUBLANG_IRISH_IRELAND,
54559         SUBLANG_JAPANESE_JAPAN, SUBLANG_KANNADA_INDIA,
54560         SUBLANG_KAZAK_KAZAKHSTAN, SUBLANG_KICHE_GUATEMALA,
54561         SUBLANG_KINYARWANDA_RWANDA, SUBLANG_KONKANI_INDIA,
54562         SUBLANG_KYRGYZ_KYRGYZSTAN, SUBLANG_LAO_LAOS, SUBLANG_LATVIAN_LATVIA,
54563         SUBLANG_LITHUANIAN_LITHUANIA, SUBLANG_LOWER_SORBIAN_GERMANY,
54564         SUBLANG_LUXEMBOURGISH_LUXEMBOURG, SUBLANG_MACEDONIAN_MACEDONIA,
54565         SUBLANG_MALAYALAM_INDIA, SUBLANG_MALTESE_MALTA,
54566         SUBLANG_MAORI_NEW_ZEALAND, SUBLANG_MAPUDUNGUN_CHILE,
54567         SUBLANG_MARATHI_INDIA, SUBLANG_MOHAWK_CANADA, SUBLANG_NEPALI_NEPAL,
54568         SUBLANG_OCCITAN_FRANCE, SUBLANG_ORIYA_INDIA,
54569         SUBLANG_PASHTO_AFGHANISTAN, SUBLANG_POLISH_POLAND,
54570         SUBLANG_ROMANSH_SWITZERLAND, SUBLANG_SAMI_NORTHERN_NORWAY,
54571         SUBLANG_SAMI_NORTHERN_SWEDEN, SUBLANG_SAMI_NORTHERN_FINLAND,
54572         SUBLANG_SAMI_LULE_NORWAY, SUBLANG_SAMI_LULE_SWEDEN,
54573         SUBLANG_SAMI_SOUTHERN_NORWAY, SUBLANG_SAMI_SOUTHERN_SWEDEN,
54574         SUBLANG_SAMI_SKOLT_FINLAND, SUBLANG_SAMI_INARI_FINLAND,
54575         SUBLANG_SANSKRIT_INDIA, SUBLANG_SINHALESE_SRI_LANKA,
54576         SUBLANG_SLOVAK_SLOVAKIA, SUBLANG_SLOVENIAN_SLOVENIA,
54577         SUBLANG_SOTHO_SOUTH_AFRICA, SUBLANG_SWAHILI_KENYA,
54578         SUBLANG_SWEDISH_SWEDEN, SUBLANG_SYRIAC_SYRIA,
54579         SUBLANG_TAGALOG_PHILIPPINES, SUBLANG_TAJIK_TAJIKISTAN,
54580         SUBLANG_TAMIL_INDIA, SUBLANG_TATAR_RUSSIA, SUBLANG_TELUGU_INDIA,
54581         SUBLANG_THAI_THAILAND, SUBLANG_TSWANA_SOUTH_AFRICA,
54582         SUBLANG_TURKISH_TURKEY, SUBLANG_TURKMEN_TURKMENISTAN,
54583         SUBLANG_UKRAINIAN_UKRAINE, SUBLANG_UPPER_SORBIAN_GERMANY,
54584         SUBLANG_VIETNAMESE_VIETNAM, SUBLANG_WELSH_UNITED_KINGDOM,
54585         SUBLANG_WOLOF_SENEGAL, SUBLANG_XHOSA_SOUTH_AFRICA,
54586         SUBLANG_YAKUT_RUSSIA, SUBLANG_YI_PRC, SUBLANG_YORUBA_NIGERIA,
54587         SUBLANG_ZULU_SOUTH_AFRICA): New macros.
54588         (gl_locale_name_from_win32_LANGID): Handle also the territory neutral
54589         locale ids. Add support for Alsatian, Bashkir, Breton, Corsican, Dari,
54590         Greenlandic, K'iche', Kinyarwanda, Luxembourgish, Mapudungun, Mohawk,
54591         Occitan, Scottish Gaelic, Wolof, Yakut. Change language code for Yi.
54592         Add more languages and countries for Sami, Sorbian. Add more countries
54593         for Serbian, Dutch. Add more scripts for Inuktitut. Be more precise
54594         for Pashto. Change country for Syriac, Tswana.
54596 2009-12-21  Eric Blake  <ebb9@byu.net>
54598         test-utimens: avoid spurious failure
54599         * tests/test-chown.h (nap): Factor...
54600         * tests/nap.h: ...into new file.
54601         * tests/test-lchown.h (nap): Avoid duplication.
54602         * tests/test-utimens-common.h (nap): Use shared implementation,
54603         necessary on file systems with 1-second resolution.
54604         * modules/chown-tests (Files): Include new file.
54605         * modules/fdutimensat-tests (Files): Likewise.
54606         * modules/futimens-tests (Files): Likewise.
54607         * modules/lchown-tests (Files): Likewise.
54608         * modules/openat-tests (Files): Likewise.
54609         * modules/utimens-tests (Files): Likewise.
54610         * modules/utimensat-tests (Files): Likewise.
54612 2009-12-19  Eric Blake  <ebb9@byu.net>
54614         futimens, utimensat: work around Linux bug
54615         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect ctime bug.
54616         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
54617         * lib/utimensat.c (rpl_utimensat): Work around it.
54618         * lib/futimens.c (rpl_futimens): Adjust comment.
54620         utimens: work around Linux ctime bug
54621         * lib/utimens.c (detect_ctime_bug): New helper function.
54622         (update_timespec): Differentiate between workaround needed for
54623         this bug vs. what is needed for systems that lack utimensat.
54624         (fdutimens, lutimens): Work around bug.
54626         utimens: check for ctime update
54627         * tests/test-utimens-common.h (check_ctime): Define.
54628         * tests/test-utimens.h (test_utimens): Expose the Linux bug.
54629         * tests/test-futimens.h (test_futimens): Likewise.
54630         * tests/test-lutimens.h (test_lutimens): Likewise.
54631         * doc/posix-functions/futimens.texi (futimens): Document the bug.
54632         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
54634 2009-12-19  Bruno Haible  <bruno@clisp.org>
54636         dprintf-posix: Check against memory leak fixed on 2009-12-15.
54637         * tests/test-dprintf-posix2.sh: New file.
54638         * tests/test-dprintf-posix2.c: New file.
54639         * modules/dprintf-posix-tests (Files): Add them.
54640         (configure.ac): Check for getrlimit and setrlimit.
54641         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
54643 2009-12-19  Bruno Haible  <bruno@clisp.org>
54645         fprintf-posix: Check against memory leak fixed on 2009-12-15.
54646         * tests/test-fprintf-posix3.sh: New file.
54647         * tests/test-fprintf-posix3.c: New file.
54648         * modules/fprintf-posix-tests (Files): Add them.
54649         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
54651 2009-12-19  Eric Blake  <ebb9@byu.net>
54653         dirfd: fix prototype
54654         * lib/dirent.in.h (dirfd): Argument is not const, per POSIX.
54655         * lib/dirfd.c (dirfd): Likewise.
54657         canonicalize: reduce memory usage
54658         * lib/canonicalize.c (canonicalize_filename_mode): Trim the
54659         allocation to size.
54660         Reported by Solar Designer <solar@openwall.com>.
54662 2009-12-19  Bruno Haible  <bruno@clisp.org>
54664         New module attribute 'Applicability'.
54665         * modules/TEMPLATE-EXTENDED: New field 'Applicability'.
54666         * gnulib-tool: New option --extract-applicability.
54667         (func_usage): Document it.
54668         (sed_extract_prog): Recognize it.
54669         (func_get_applicability): New function.
54670         (func_import): Generalize handling of 'link-warning' module.
54671         * modules/link-warning (Applicability): New section.
54672         * modules/arg-nonnull (Applicability): New section.
54673         Repoted by Simon Josefsson <simon@josefsson.org>.
54675 2009-12-19  Bruno Haible  <bruno@clisp.org>
54677         fflush: tweak
54678         * lib/fflush.c (update_fpos_cache): Don't use fpos_t on Cygwin.
54679         * lib/fseeko.c (rpl_fseeko): Likewise.
54681 2009-12-16  José E. Marchesi  <jemarch@gnu.org>  (tiny change)
54683         * lib/gl_list.h: Fix typo in comment.
54685 2009-12-16  Eric Blake  <ebb9@byu.net>
54687         fcntl: use to simplify other modules
54688         * modules/cloexec (Depends-on): Add fcntl.
54689         * modules/fchdir (Depends-on): Likewise.
54690         * modules/fd-safer-flag (Depends-on): Likewise.
54691         * modules/unistd-safer (Depends-on): Likewise.
54692         * modules/dup3 (configure.ac): Set module indicator.
54693         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Replace fcntl if fchdir is
54694         missing.
54695         * lib/fchdir.c (_gl_register_dup): Fix comment.
54696         * lib/cloexec.c (dup_cloexec): Simplify, by relying on fcntl.
54697         * lib/dup-safer.c (dup_safer): Likewise.
54698         * lib/dup-safer-flag.c (dup_safer_flag): Likewise.
54699         * lib/dup3.c (dup3): Likewise.
54700         * tests/test-fchdir.c (main): Enhance test.
54701         Fixes a dup_cloexec bug reported by Ondřej Vašík.
54703         fcntl: port portions of fcntl to mingw
54704         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also build fcntl.c on mingw.
54705         * lib/fcntl.c (fcntl) <F_DUPFD, F_DUPFD_CLOEXEC, F_GETFD>: Provide
54706         replacement for mingw.
54707         * modules/fcntl (Description): Update.
54708         (Depends-on): Add dup2.
54709         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness.
54710         * modules/fcntl-h (Makefile.am): Substitute it.
54711         * lib/fcntl.in.h (fcntl): Update declaration.
54712         (F_DUPFD, F_GETFD): New macros, when needed.
54713         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
54714         * doc/posix-functions/fcntl.texi (fcntl): Likewise.
54715         * tests/test-fcntl.c (check_flags, main): Enhance test for items
54716         we now guarantee.
54718         fcntl: work around cygwin bug in F_DUPFD
54719         * m4/fcntl.m4 (gl_REPLACE_FCNTL): New macro.
54720         (gl_FUNC_FCNTL): Use it.  Test for F_DUPFD bug.
54721         * lib/fcntl.c (rpl_fcntl) <F_DUPFD>: Work around it.
54722         <F_DUPFD_CLOEXEC>: Reduce calls to _gl_register_dup.
54723         * doc/posix-functions/fcntl.texi (fcntl): Document it.
54725         fcntl: support F_DUPFD_CLOEXEC on systems with fcntl
54726         * modules/fcntl (Files): List new files.
54727         (configure.ac): Run a test.
54728         * m4/fcntl.m4 (gl_FUNC_FCNTL): New file.
54729         * lib/fcntl.c (rpl_fcntl): Likewise.
54730         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness defaults.
54731         (gl_FCNTL_H): Always replace fcntl.h.
54732         * modules/fcntl-h (Makefile.am): Substitute witnesses.
54733         * lib/fcntl.in.h (fcntl): Declare replacement.
54734         (F_DUPFD_CLOEXEC, GNULIB_defined_F_DUPFD_CLOEXEC): New macro when
54735         needed, plus a witness.
54736         * doc/posix-functions/fcntl.texi (fcntl): Document this.
54737         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
54738         * tests/test-fcntl.c: New file.
54739         * modules/fcntl-tests: Likewise.
54741         binary-io: avoid potential compilation warning
54742         * lib/binary-io.h [__DJGPP__]: Avoid null preprocessor
54743         directives.
54745         fflush: avoid compilation error on NetBSD
54746         * lib/fflush.c (update_fpos_cache): Use a union to safely convert
54747         between off_t and fpos_t, since the latter is sometimes a struct.
54748         * lib/fseeko.c (rpl_fseeko): Likewise.
54749         Reported by Alexander Nasonov <alnsn@yandex.ru>.
54751 2009-12-15  Eric Blake  <ebb9@byu.net>
54753         fcntl-h, stdio, sys_ioctl: fix declarations
54754         * lib/stdio.in.h (dprintf): Use of link warning on a variadic
54755         function must not take arguments.
54756         * lib/sys_ioctl.in.h (ioctl): Likewise.
54757         * lib/fcntl.in.h (openat): Likewise.  Declare extern.
54758         (open): Add a link warning.
54760 2009-12-15  Jim Meyering  <meyering@redhat.com>
54762         areadlink, areadlink-with-size: relax license to LGPLv2+
54763         * modules/areadlink (License): Relax to LGPLv2+.
54764         * modules/areadlink-with-size (License): Likewise.
54766 2009-12-15  Joel E. Denny  <jdenny@clemson.edu>
54767             Bruno Haible  <bruno@clisp.org>
54769         *printf: Fix memory leak.
54770         * lib/fprintf.c (fprintf): Free memory allocated by vasnprintf.
54771         * lib/vfprintf.c (vfprintf): Likewise.
54772         * lib/dprintf.c (dprintf): Likewise.
54773         * lib/vdprintf.c (vdprintf): Likewise.
54775 2009-12-14  Eric Blake  <ebb9@byu.net>
54777         accept4: adjust module dependencies
54778         * modules/accept4 (Depends-on): Use fcntl-h, not fcntl.
54780         utimens: one more try at avoiding compiler warning
54781         * lib/utimens.c (lutimens): Lower scope of result.
54783 2009-12-13  Bruno Haible  <bruno@clisp.org>
54785         Move the malloc checking from module 'list' to new module 'xlist'.
54786         * modules/xlist: New file.
54787         * lib/gl_xlist.h: New file.
54788         * lib/gl_xlist.c: New file.
54789         * lib/gl_list.h (gl_list_create_empty, gl_list_create,
54790         gl_list_node_set_value, gl_list_set_at, gl_list_add_first,
54791         gl_list_add_last, gl_list_add_before, gl_list_add_after,
54792         gl_list_nx_add_at, gl_sortedlist_add): Disable declarations.
54793         (gl_list_nx_create_empty, gl_list_nx_create, gl_list_node_nx_set_value,
54794         gl_list_nx_set_at, gl_list_nx_add_first, gl_list_nx_add_last,
54795         gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at,
54796         gl_sortedlist_nx_add): New declarations.
54797         (struct gl_list_implementation): Rename and change methods accordingly.
54798         (gl_list_nx_create_empty): Renamed from gl_list_create_empty.
54799         (gl_list_nx_create): Renamed from gl_list_create.
54800         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
54801         (gl_list_nx_set_at): Renamed from gl_list_set_at.
54802         (gl_list_nx_add_first): Renamed from gl_list_add_first.
54803         (gl_list_nx_add_last): Renamed from gl_list_add_last.
54804         (gl_list_nx_add_before): Renamed from gl_list_add_before.
54805         (gl_list_nx_add_after): Renamed from gl_list_add_after.
54806         (gl_list_nx_add_at): Renamed from gl_list_add_at.
54807         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
54808         * lib/gl_list.c (gl_list_nx_create_empty): Renamed from
54809         gl_list_create_empty.
54810         (gl_list_nx_create): Renamed from gl_list_create.
54811         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
54812         (gl_list_nx_set_at): Renamed from gl_list_set_at.
54813         (gl_list_nx_add_first): Renamed from gl_list_add_first.
54814         (gl_list_nx_add_last): Renamed from gl_list_add_last.
54815         (gl_list_nx_add_before): Renamed from gl_list_add_before.
54816         (gl_list_nx_add_after): Renamed from gl_list_add_after.
54817         (gl_list_nx_add_at): Renamed from gl_list_add_at.
54818         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
54819         * lib/gl_array_list.c: Don't include xalloc.h.
54820         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Return
54821         NULL upon out-of-memory.
54822         (gl_array_nx_create): Renamed from gl_array_create. Return NULL upon
54823         out-of-memory.
54824         (gl_array_node_nx_set_value): Renamed from gl_array_node_set_value.
54825         Change return type to 'int'.
54826         (gl_array_nx_set_at): Renamed from gl_array_set_at.
54827         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
54828         (gl_array_nx_add_first): Renamed from gl_array_add_first. Return NULL
54829         upon out-of-memory.
54830         (gl_array_nx_add_last): Renamed from gl_array_add_last. Return NULL
54831         upon out-of-memory.
54832         (gl_array_nx_add_before): Renamed from gl_array_add_before. Return NULL
54833         upon out-of-memory.
54834         (gl_array_nx_add_after): Renamed from gl_array_add_after. Return NULL
54835         upon out-of-memory.
54836         (gl_array_nx_add_at): Renamed from gl_array_add_at. Return NULL upon
54837         out-of-memory.
54838         (gl_array_sortedlist_nx_add): Renamed from gl_array_sortedlist_add.
54839         Update.
54840         (gl_array_list_implementation): Update.
54841         * lib/gl_carray_list.c: Don't include xalloc.h.
54842         (gl_carray_nx_create_empty): Renamed from gl_carray_create_empty.
54843         Return NULL upon out-of-memory.
54844         (gl_carray_nx_create): Renamed from gl_carray_create. Return NULL upon
54845         out-of-memory.
54846         (gl_carray_node_nx_set_value): Renamed from gl_carray_node_set_value.
54847         Change return type to 'int'.
54848         (gl_carray_nx_set_at): Renamed from gl_carray_set_at.
54849         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
54850         (gl_carray_nx_add_first): Renamed from gl_carray_add_first. Return NULL
54851         upon out-of-memory.
54852         (gl_carray_nx_add_last): Renamed from gl_carray_add_last. Return NULL
54853         upon out-of-memory.
54854         (gl_carray_nx_add_at): Renamed from gl_carray_add_at. Return NULL upon
54855         out-of-memory.
54856         (gl_carray_nx_add_before): Renamed from gl_carray_add_before. Update.
54857         (gl_carray_nx_add_after): Renamed from gl_carray_add_after. Update.
54858         (gl_carray_sortedlist_nx_add): Renamed from gl_carray_sortedlist_add.
54859         Update.
54860         (gl_carray_list_implementation): Update.
54861         * lib/gl_anyhash_list2.h (hash_resize): Do nothing upon out-of-memory.
54862         * lib/gl_anylinked_list2.h (gl_linked_nx_create_empty): Renamed from
54863         gl_linked_create_empty. Return NULL upon out-of-memory.
54864         (gl_linked_nx_create): Renamed from gl_linked_create. Return NULL upon
54865         out-of-memory.
54866         (gl_linked_node_nx_set_value): Renamed from gl_linked_node_set_value.
54867         Change return type to 'int'. Return -1 upon out-of-memory.
54868         (gl_linked_nx_set_at): Renamed from gl_linked_set_at. Return NULL upon
54869         out-of-memory.
54870         (gl_linked_nx_add_first): Renamed from gl_linked_add_first. Return NULL
54871         upon out-of-memory.
54872         (gl_linked_nx_add_last): Renamed from gl_linked_add_last. Return NULL
54873         upon out-of-memory.
54874         (gl_linked_nx_add_before): Renamed from gl_linked_add_before. Return
54875         NULL upon out-of-memory.
54876         (gl_linked_nx_add_after): Renamed from gl_linked_add_after. Return NULL
54877         upon out-of-memory.
54878         (gl_linked_nx_add_at): Renamed from gl_linked_add_at. Return NULL upon
54879         out-of-memory.
54880         (gl_linked_sortedlist_nx_add): Renamed from gl_linked_sortedlist_add.
54881         Update.
54882         * lib/gl_linked_list.c: Don't include xalloc.h.
54883         (gl_linked_list_implementation): Update.
54884         * lib/gl_linkedhash_list.c: Don't include xalloc.h.
54885         (add_to_bucket): Change return type to 'int'.
54886         (gl_linkedhash_list_implementation): Update.
54887         * lib/gl_anytree_list1.h (free_subtree): New function.
54888         * lib/gl_anytree_list2.h (gl_tree_nx_create_empty): Renamed from
54889         gl_tree_create_empty. Return NULL upon out-of-memory.
54890         (gl_tree_node_nx_set_value): Renamed from gl_tree_node_set_value.
54891         Change return type to 'int'. Return -1 upon out-of-memory.
54892         (gl_tree_nx_set_at): Renamed from gl_tree_set_at. Return NULL upon
54893         out-of-memory.
54894         (gl_tree_nx_add_at): Renamed from gl_tree_add_at. Update.
54895         (gl_tree_remove_node): New function, moved here from
54896         lib/gl_anyavltree_list2.h and lib/gl_anyrbtree_list2.h.
54897         (gl_tree_sortedlist_nx_add): Renamed from gl_tree_sortedlist_add.
54898         Update.
54899         * lib/gl_anyavltree_list2.h (create_subtree_with_contents): Use
54900         malloc, not xmalloc. Return NULL upon out-of-memory.
54901         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
54902         out-of-memory.
54903         (gl_tree_remove_node_from_tree): New function, extracted from
54904         gl_tree_remove_node.
54905         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
54906         upon out-of-memory.
54907         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
54908         out-of-memory.
54909         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
54910         upon out-of-memory.
54911         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
54912         upon out-of-memory.
54913         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
54914         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents): Use malloc,
54915         not xmalloc. Return NULL upon out-of-memory.
54916         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
54917         out-of-memory.
54918         (gl_tree_remove_node_from_tree): New function, extracted from
54919         gl_tree_remove_node.
54920         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
54921         upon out-of-memory.
54922         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
54923         out-of-memory.
54924         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
54925         upon out-of-memory.
54926         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
54927         upon out-of-memory.
54928         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
54929         * lib/gl_avltree_list.c: Don't include xalloc.h. Include
54930         gl_anytree_list1.h before gl_anyavltree_list2.h.
54931         (gl_avltree_list_implementation): Update.
54932         * lib/gl_rbtree_list.c: Don't include xalloc.h. Include
54933         gl_anytree_list1.h before gl_anyavltree_list2.h.
54934         (gl_rbtree_list_implementation): Update.
54935         * lib/gl_anytreehash_list1.h (add_to_bucket, add_nodes_to_buckets):
54936         Change return type to 'int'. Return -1 upon out-of-memory. Use
54937         __builtin_expect.
54938         * lib/gl_avltreehash_list.c: Don't include xalloc.h.
54939         (gl_avltreehash_list_implementation): Update.
54940         * lib/gl_rbtreehash_list.c: Don't include xalloc.h.
54941         (gl_rbtreehash_list_implementation): Update.
54942         * modules/array-list (Depends-on): Remove xalloc.
54943         * modules/carray-list (Depends-on): Likewise.
54944         * modules/linked-list (Depends-on): Likewise.
54945         * modules/linkedhash-list (Depends-on): Likewise.
54946         * modules/avltree-list (Depends-on): Likewise.
54947         * modules/rbtree-list (Depends-on): Likewise.
54948         * modules/avltreehash-list (Depends-on): Likewise.
54949         * modules/rbtreehash-list (Depends-on): Likewise.
54951         * modules/xsublist: New file.
54952         * lib/gl_xsublist.h: New file.
54953         * lib/gl_xsublist.c: New file.
54954         * lib/gl_sublist.h (gl_sublist_create): Disable declaration.
54955         (gl_sublist_nx_create): New declaration.
54956         * lib/gl_sublist.c: Don't include xalloc.h.
54957         (gl_sublist_nx_create_empty): Renamed from gl_sublist_create_empty.
54958         (gl_sublist_nx_create_fill): Renamed from gl_sublist_create_fill.
54959         (gl_sublist_node_nx_set_value): Renamed from gl_sublist_node_set_value.
54960         Change return type to 'int'. Return -1 upon out-of-memory.
54961         (gl_sublist_nx_set_at): Renamed from gl_sublist_set_at. Return NULL
54962         upon out-of-memory.
54963         (gl_sublist_nx_add_first): Renamed from gl_sublist_add_first. Return
54964         NULL upon out-of-memory.
54965         (gl_sublist_nx_add_last): Renamed from gl_sublist_add_last. Return NULL
54966         upon out-of-memory.
54967         (gl_sublist_nx_add_before): Renamed from gl_sublist_add_before. Return
54968         NULL upon out-of-memory.
54969         (gl_sublist_nx_add_after): Renamed from gl_sublist_add_after. Return
54970         NULL upon out-of-memory.
54971         (gl_sublist_nx_add_at): Renamed from gl_sublist_add_at. Return NULL
54972         upon out-of-memory.
54973         (gl_sublist_sortedlist_nx_add): Renamed from gl_sublist_sortedlist_add.
54974         (gl_sublist_list_implementation): Update.
54975         (gl_sublist_nx_create): Renamed from gl_sublist_create. Return NULL
54976         upon out-of-memory.
54977         * modules/sublist (Depends-on): Remove xalloc.
54979         * tests/test-array_list.c: Use gl_list_nx_* functions where possible.
54980         * tests/test-carray_list.c: Likewise.
54981         * tests/test-linked_list.c: Likewise.
54982         * tests/test-linkedhash_list.c: Likewise.
54983         * tests/test-avltree_list.c: Likewise.
54984         * tests/test-rbtree_list.c: Likewise.
54985         * tests/test-avltreehash_list.c: Likewise.
54986         * tests/test-rbtreehash_list.c: Likewise.
54987         * modules/array-list-tests (Makefile.am): Don't link with @LIBINTL@.
54988         * modules/carray-list-tests (Makefile.am): Likewise.
54989         * modules/linked-list-tests (Makefile.am): Likewise.
54990         * modules/linkedhash-list-tests (Makefile.am): Likewise.
54991         * modules/avltree-list-tests (Makefile.am): Likewise.
54992         * modules/rbtree-list-tests (Makefile.am): Likewise.
54993         * modules/avltreehash-list-tests (Makefile.am): Likewise.
54994         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
54996         * NEWS: Mention the changes.
54998         * lib/clean-temp.c: Include gl_xlist.h.
54999         * modules/clean-temp (Depends-on): Add xlist.
55001         * lib/git-merge-changelog.c: Include gl_xlist.h instead of gl_list.h.
55002         * modules/git-merge-changelog (Depends-on): Add xlist. Remove list.
55004         * tests/test-array_oset.c: Include gl_xlist.h.
55005         * modules/array-oset-tests (Depends-on): Add xlist.
55007         Reported by José E. Marchesi <jemarch@gnu.org>.
55009 2009-12-13  Bruno Haible  <bruno@clisp.org>
55011         Move the malloc checking from module 'oset' to new module 'xoset'.
55012         * modules/xoset: New file.
55013         * lib/gl_xoset.h: New file.
55014         * lib/gl_xoset.c: New file.
55015         * lib/gl_oset.h (gl_oset_create_empty, gl_oset_add): Disable
55016         declarations.
55017         (gl_oset_nx_create_empty, gl_oset_nx_add): New declarations.
55018         (struct gl_oset_implementation): Rename and change methods accordingly.
55019         (gl_oset_nx_create_empty): Renamed from gl_oset_create_empty.
55020         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
55021         'int'. Mark as __warn_unused_result__.
55022         * lib/gl_oset.c (gl_oset_nx_create_empty): Renamed from
55023         gl_oset_create_empty.
55024         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
55025         'int'.
55026         * lib/gl_array_oset.c: Don't include xalloc.h.
55027         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Use
55028         malloc, not xmalloc.
55029         (grow): Change return type to 'int'. Don't call xalloc_die.
55030         (gl_array_nx_add_at): Renamed from gl_array_add_at. Change return type
55031         to 'int'.
55032         (gl_array_nx_add): Renamed from gl_array_add. Change return type to
55033         'int'.
55034         (gl_array_oset_implementation): Update.
55035         * lib/gl_anytree_oset.h (gl_tree_nx_create_empty): Renamed from
55036         gl_tree_create_empty.
55037         (gl_tree_nx_add): Renamed from gl_tree_add. Change return type to
55038         'int'.
55039         * lib/gl_avltree_oset.c: Don't include xalloc.h.
55040         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
55041         xmalloc.
55042         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
55043         not xmalloc.
55044         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
55045         xmalloc.
55046         (gl_avltree_oset_implementation): Update.
55047         * lib/gl_rbtree_oset.c: Don't include xalloc.h.
55048         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
55049         xmalloc.
55050         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
55051         not xmalloc.
55052         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
55053         xmalloc.
55054         (gl_rbtree_oset_implementation): Update.
55055         * modules/array-oset (Depends-on): Remove xalloc.
55056         * modules/avltree-oset (Depends-on): Likewise.
55057         * modules/rbtree-oset (Depends-on): Likewise.
55058         * tests/test-array_oset.c: Use gl_oset_nx_* functions where possible.
55059         * tests/test-avltree_oset.c: Likewise.
55060         * tests/test-rbtree_oset.c: Likewise.
55061         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
55062         * modules/avltree-oset-tests (Makefile.am): Don't link with @LIBINTL@.
55063         * modules/rbtree-oset-tests (Makefile.am): Likewise.
55064         * NEWS: Mention the change.
55066 2009-12-05  Alfred M. Szmidt  <ams@gnu.org>
55068         maint.mk: allow a project to override release-prep commands
55069         * top/maint.mk (alpha, beta, stable): Move release-preparatory
55070         commands into a new rule.
55071         (release-prep): New rule.
55072         (release-prep-hook): New overridable variable.
55074 2009-12-13  Bruno Haible  <bruno@clisp.org>
55076         * lib/localcharset.c (locale_charset): Fix comment about use of GetACP.
55078 2009-12-13  Jim Meyering  <meyering@redhat.com>
55080         maint.mk (null_AM_MAKEFLAGS, built_programs): remove unused definitions
55081         * top/maint.mk (null_AM_MAKEFLAGS, built_programs): Remove definitions.
55083 2009-12-12  Bruno Haible  <bruno@clisp.org>
55085         duplocale: Tweak.
55086         * lib/duplocale.c (rpl_duplocale): Mark categories array as 'const'.
55088 2009-12-12  Karl Berry  <karl@gnu.org>
55090         * config/srclist.txt (strtoll.c): tab changes, no more sync.
55092 2009-12-12  Bruno Haible  <bruno@clisp.org>
55094         * m4/po.m4: Undo incorrect untabification.
55096 2009-12-12  Bruno Haible  <bruno@clisp.org>
55098         c-strtod, c-strtold: Use multithread-safe implementation on MacOS X.
55099         * modules/c-strtod (Depends-on): Add locale.
55100         * modules/c-strtold (Depends-on): Likewise.
55102 2009-12-12  Bruno Haible  <bruno@clisp.org>
55104         * lib/localcharset.c (locale_charset): Add comment about use of GetACP.
55106 2009-12-11  Eric Blake  <ebb9@byu.net>
55108         setenv: relax requirement in light of POSIX ruling
55109         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test handling of "" but
55110         not NULL.
55111         * tests/test-setenv.c (main): Relax test.
55112         * tests/test-unsetenv.c (main): Likewise.
55113         * doc/posix-functions/setenv.texi (setenv): Document this.
55114         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
55116 2009-12-11  Bruno Haible  <bruno@clisp.org>
55118         New module 'fd-safer-flag'.
55119         * lib/dup-safer-flag.c: New file, extracted from lib/dup-safer.c.
55120         * lib/dup-safer.c (dup_safer_flag): Remove function.
55121         * lib/fd-safer-flag.c: New file, extracted from lib/fd-safer.c.
55122         * lib/fd-safer.c (fd_safer_flag): Remove function.
55123         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): Update condition.
55124         * modules/cloexec (configure.ac): Drop indicator macro.
55125         * modules/fd-safer-flag: New file.
55126         * modules/pipe2-safer (Depends-on): Add fd-safer-flag. Remove cloexec.
55127         * modules/stdlib-safer (Depends-on): Add fd-safer-flag.
55128         * modules/unistd-safer-tests (Depends-on): Add fd-safer-flag.
55130 2009-12-11  Bruno Haible  <bruno@clisp.org>
55132         Tests for module 'nl_langinfo'.
55133         * modules/nl_langinfo-tests: New file.
55134         * tests/test-nl_langinfo.sh: New file.
55135         * tests/test-nl_langinfo.c: New file.
55137         New module 'nl_langinfo'.
55138         * lib/nl_langinfo.c: New file.
55139         * m4/nl_langinfo.m4: New file.
55140         * modules/nl_langinfo: New file.
55141         * doc/posix-functions/nl_langinfo.texi: Mention the new module.
55143 2009-12-11  Bruno Haible  <bruno@clisp.org>
55145         Tests for module 'langinfo'.
55146         * modules/langinfo-tests: New file.
55147         * tests/test-langinfo.c: New file.
55149         New module 'langinfo'.
55150         * lib/langinfo.in.h: New file.
55151         * m4/langinfo_h.m4: New file.
55152         * modules/langinfo: New file.
55153         * doc/posix-headers/langinfo.texi: Mention the new module.
55155 2009-12-11  Bruno Haible  <bruno@clisp.org>
55157         * lib/config.charset: Untabify.
55159 2009-12-11  Bruno Haible  <bruno@clisp.org>
55161         * modules/unistd-safer (configure.ac): Drop indicator macro.
55163 2009-12-11  Bruno Haible  <bruno@clisp.org>
55165         Move pipe2-safer code to its own file.
55166         * lib/pipe2-safer.c: New file, extracted from lib/pipe-safer.c.
55167         * lib/pipe-safer.c (pipe2_safer): Remove function.
55168         * modules/pipe2-safer (Files): Add lib/pipe2-safer.c.
55169         (Makefile.am): Add it to lib_SOURCES.
55171 2009-12-10  Bruno Haible  <bruno@clisp.org>
55173         * lib/recvfrom.c (rpl_recvfrom): Allow the from argument to be NULL.
55175 2009-12-10  Bruno Haible  <bruno@clisp.org>
55177         Declare which arguments expect non-NULL values, for GCC and clang.
55178         * build-aux/arg-nonnull.h: New file.
55179         * modules/arg-nonnull: New file.
55180         * lib/arpa_inet.in.h (_GL_ARG_NONNULL): New placeholder.
55181         (inet_ntop, inet_pton): Use it.
55182         * lib/dirent.in.h (_GL_ARG_NONNULL): New placeholder.
55183         (closedir, dirfd, opendir, scandir, alphasort): Use it.
55184         * lib/fcntl.in.h (_GL_ARG_NONNULL): New placeholder.
55185         (open, openat): Use it.
55186         * lib/fnmatch.in.h (_GL_ARG_NONNULL): New placeholder.
55187         (fnmatch): Use it.
55188         * lib/getopt.in.h (_GL_ARG_NONNULL): New placeholder.
55189         (getopt, getopt_long, getopt_long_only): Use it.
55190         * lib/glob.in.h (_GL_ARG_NONNULL): New placeholder.
55191         * lib/glob-libc.h (glob, globfree, glob64, globfree64, glob_pattern_p):
55192         Use it.
55193         * lib/iconv.in.h (_GL_ARG_NONNULL): New placeholder.
55194         (iconv_open): Use it.
55195         * lib/inttypes.in.h (_GL_ARG_NONNULL): New placeholder.
55196         (strtoimax, strtoumax): Use it.
55197         * lib/locale.in.h (_GL_ARG_NONNULL): New placeholder.
55198         (duplocale): Use it.
55199         * lib/math.in.h (_GL_ARG_NONNULL): New placeholder.
55200         (frexp, frexpl): Use it.
55201         * lib/netdb.in.h (_GL_ARG_NONNULL): New placeholder.
55202         (getaddrinfo, freeaddrinfo, getnameinfo): Use it.
55203         * lib/search.in.h (_GL_ARG_NONNULL): New placeholder.
55204         (tsearch, tfind, tdelete, twalk): Use it.
55205         * lib/signal.in.h (_GL_ARG_NONNULL): New placeholder.
55206         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
55207         sigpending): Use it.
55208         * lib/spawn.in.h (_GL_ARG_NONNULL): New placeholder.
55209         (posix_spawn, posix_spawnp, posix_spawnattr_init,
55210         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
55211         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
55212         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
55213         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
55214         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
55215         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
55216         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
55217         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
55218         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
55219         Use it.
55220         * lib/stdio.in.h (_GL_ARG_NONNULL): New placeholder.
55221         (dprintf, fclose, fopen, fprintf, fpurge, fputc, fputs, freopen,
55222         rpl_fseek, fseeko, rpl_ftell, ftello, fwrite, getdelim, getline,
55223         obstack_printf, obstack_vprintf, popen, printf, putc, puts, remove,
55224         rename, renameat, snprintf, sprintf, asprintf, vasprintf, vdprintf,
55225         vfprintf, vprintf, vsnprintf, vsprintf): Use it.
55226         * lib/stdlib.in.h (_GL_ARG_NONNULL): New placeholder.
55227         (atoll, canonicalize_file_name, getloadavg, getsubopt, mkdtemp,
55228         mkostemp, mkostemps, mkstemp, mkstemps, putenv, srandom_r, initstate_r,
55229         setstate_r, random_r, realpath, rpmatch, setenv, strtod, strtoll,
55230         strtoull, unsetenv): Use it.
55231         * lib/string.in.h (_GL_ARG_NONNULL): New placeholder.
55232         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
55233         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
55234         strcasestr, strtok_r, mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
55235         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
55236         mbsspn, mbssep, mbstok_r, strverscmp): Use it.
55237         * lib/strings.in.h (_GL_ARG_NONNULL): New placeholder.
55238         (strcasecmp, strncasecmp): Use it.
55239         * lib/sys_socket.in.h (_GL_ARG_NONNULL): New placeholder.
55240         (rpl_connect, rpl_bind, rpl_getpeername, rpl_getsockname,
55241         rpl_getsockopt, rpl_recv, rpl_send, rpl_recvfrom, rpl_sendto,
55242         rpl_setsockopt): Use it.
55243         * lib/sys_stat.in.h (_GL_ARG_NONNULL): New placeholder.
55244         (fchmodat, fstat, fstatat, lchmod, rpl_lstat, mkdir, mkdirat, mkfifo,
55245         mkfifoat, mknod, mknodat, stat, utimensat): Use it.
55246         * lib/sys_time.in.h (_GL_ARG_NONNULL): New placeholder.
55247         (gettimeofday): Use it.
55248         * lib/sys_times.in.h (_GL_ARG_NONNULL): New placeholder.
55249         (times): Use it.
55250         * lib/sys_utsname.in.h (_GL_ARG_NONNULL): New placeholder.
55251         (uname): Use it.
55252         * lib/time.in.h (_GL_ARG_NONNULL): New placeholder.
55253         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): Use it.
55254         * lib/unistd.in.h (_GL_ARG_NONNULL): New placeholder.
55255         (chown, euidaccess, faccessat, _gl_register_fd, fchownat,
55256         getdomainname, gethostname, getlogin_r, lchown, link, linkat, pipe2,
55257         pread, readlink, readlinkat, rmdir, symlink, symlinkat, unlink,
55258         unlinkat, write): Use it.
55259         * lib/wchar.in.h (_GL_ARG_NONNULL): New placeholder.
55260         (mbsrtowcs, mbsnrtowcs, wcsrtombs, wcsnrtombs): Use it.
55261         * lib/argv-iter.h: Include arg-nonnull.h.
55262         (_ATTRIBUTE_NONNULL_): Remove macro.
55263         (argv_iter_init_argv, argv_iter_init_stream, argv_iter,
55264         argv_iter_n_args, argv_iter_free): Use _GL_ARG_NONNULL.
55265         * lib/canonicalize-lgpl.c (_GL_ARG_NONNULL): Define, to defeat gcc
55266         optimization.
55267         * lib/getaddrinfo.c (_GL_ARG_NONNULL): Likewise.
55268         * lib/getdelim.c (_GL_ARG_NONNULL): Likewise.
55269         * lib/glob.c (_GL_ARG_NONNULL): Likewise.
55270         * lib/random_r.c (_GL_ARG_NONNULL): Likewise.
55271         * lib/setenv.c (_GL_ARG_NONNULL): Likewise.
55272         * lib/strtod.c (_GL_ARG_NONNULL): Likewise.
55273         * lib/tsearch.c (_GL_ARG_NONNULL): Likewise.
55274         * lib/unsetenv.c (_GL_ARG_NONNULL): Likewise.
55275         * modules/arpa_inet (Depends-on): Add arg-nonnull.
55276         (Makefile.am): Insert arg-nonnull.h into arpa/inet.h.
55277         * modules/dirent (Depends-on): Add arg-nonnull.
55278         (Makefile.am): Insert arg-nonnull.h into dirent.h.
55279         * modules/fcntl-h (Depends-on): Add arg-nonnull.
55280         (Makefile.am): Insert arg-nonnull.h into fcntl.h.
55281         * modules/fnmatch (Depends-on): Add arg-nonnull.
55282         (Makefile.am): Insert arg-nonnull.h into fnmatch.h.
55283         * modules/getopt-posix (Depends-on): Add arg-nonnull.
55284         (Makefile.am): Insert arg-nonnull.h into getopt.h.
55285         * modules/glob (Depends-on): Add arg-nonnull.
55286         (Makefile.am): Insert arg-nonnull.h into glob.h.
55287         * modules/iconv_open (Depends-on): Add arg-nonnull.
55288         (Makefile.am): Insert arg-nonnull.h into iconv.h.
55289         * modules/inttypes (Depends-on): Add arg-nonnull.
55290         (Makefile.am): Insert arg-nonnull.h into inttypes.h.
55291         * modules/locale (Depends-on): Add arg-nonnull.
55292         (Makefile.am): Insert arg-nonnull.h into locale.h.
55293         * modules/math (Depends-on): Add arg-nonnull.
55294         (Makefile.am): Insert arg-nonnull.h into math.h.
55295         * modules/netdb (Depends-on): Add arg-nonnull.
55296         (Makefile.am): Insert arg-nonnull.h into netdb.h.
55297         * modules/search (Depends-on): Add arg-nonnull.
55298         (Makefile.am): Insert arg-nonnull.h into search.h.
55299         * modules/signal (Depends-on): Add arg-nonnull.
55300         (Makefile.am): Insert arg-nonnull.h into signal.h.
55301         * modules/spawn (Depends-on): Add arg-nonnull.
55302         (Makefile.am): Insert arg-nonnull.h into spawn.h.
55303         * modules/stdio (Depends-on): Add arg-nonnull.
55304         (Makefile.am): Insert arg-nonnull.h into stdio.h.
55305         * modules/stdlib (Depends-on): Add arg-nonnull.
55306         (Makefile.am): Insert arg-nonnull.h into stdlib.h.
55307         * modules/string (Depends-on): Add arg-nonnull.
55308         (Makefile.am): Insert arg-nonnull.h into string.h.
55309         * modules/strings (Depends-on): Add arg-nonnull.
55310         (Makefile.am): Insert arg-nonnull.h into strings.h.
55311         * modules/sys_socket (Depends-on): Add arg-nonnull.
55312         (Makefile.am): Insert arg-nonnull.h into sys/socket.h.
55313         * modules/sys_stat (Depends-on): Add arg-nonnull.
55314         (Makefile.am): Insert arg-nonnull.h into sys/stat.h.
55315         * modules/sys_time (Depends-on): Add arg-nonnull.
55316         (Makefile.am): Insert arg-nonnull.h into sys/time.h.
55317         * modules/sys_times (Depends-on): Add arg-nonnull.
55318         (Makefile.am): Insert arg-nonnull.h into sys/times.h.
55319         * modules/sys_utsname (Depends-on): Add arg-nonnull.
55320         (Makefile.am): Insert arg-nonnull.h into sys/utsname.h.
55321         * modules/time (Depends-on): Add arg-nonnull.
55322         (Makefile.am): Insert arg-nonnull.h into time.h.
55323         * modules/unistd (Depends-on): Add arg-nonnull.
55324         (Makefile.am): Insert arg-nonnull.h into unistd.h.
55325         * modules/wchar (Depends-on): Add arg-nonnull.
55326         (Makefile.am): Insert arg-nonnull.h into wchar.h.
55327         * modules/argv-iter (Depends-on): Add arg-nonnull.
55328         * tests/test-canonicalize.c (null_ptr): New function.
55329         (main): Use it.
55330         * tests/test-canonicalize-lgpl.c (null_ptr): New function.
55331         (main): Use it.
55332         * tests/test-memmem.c (null_ptr): New function.
55333         (main): Use it.
55334         Reported by Jim Meyering.
55336 2009-12-10  Bruno Haible  <bruno@clisp.org>
55338         Use spaces for indentation, not tabs.
55339         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
55340         * m4/*.m4: Untabify.
55341         * build-aux/*.h: Untabify.
55342         * tests/**/*.[hc]: Untabify.
55343         * README: New section "Indent with spaces, not TABs", based on
55344         coreutils/HACKING and comments by Pádraig Brady and Paolo Bonzini.
55345         * NEWS: Mention the change.
55347 2009-12-10  Bruno Haible  <bruno@clisp.org>
55349         pty test: Fix link error.
55350         * modules/pty-tests (Makefile.am): Add the default LDADD value to
55351         test_pty_LDADD.
55353 2009-12-07  Simon Josefsson  <simon@josefsson.org>
55355         * modules/pty: New file.
55356         * modules/pty-tests: New file.
55357         * m4/pty.m4: New file.
55358         * tests/test-pty.c: New file.
55359         * doc/glibc-headers/pty.texi: Modified.
55360         * doc/glibc-functions/forkpty.texi: Modified.
55361         * doc/glibc-functions/openpty.texi: Modified.
55363 2009-12-10  Bruno Haible  <bruno@clisp.org>
55365         Avoid syntax error in C++ mode.
55366         * lib/stdio.in.h (rename): Don't use parameter name 'new'.
55368 2009-12-10  Bruno Haible  <bruno@clisp.org>
55370         Use sed with option -e.
55371         * gnulib-tool (func_version, func_emit_copyright_notice,
55372         func_emit_initmacro_end, func_import, func_create_testdir): Pass
55373         option -e to sed.
55374         * modules/link-warning (Makefile.am): Likewise.
55376 2009-12-10  Jim Meyering  <meyering@redhat.com>
55378         mgetgroups: do not write bytes beyond end of malloc'd buffer
55379         * lib/mgetgroups.c: Fix an off-by-one error.  When we have no
55380         username, we call getgroups with a one-element-shorter buffer,
55381         but still told it the length was original, max_n_groups.
55383 2009-12-09  Eric Blake  <ebb9@byu.net>
55385         cloexec: relax license
55386         * modules/cloexec (Maintainer): Add myself.
55387         (License): Use LGPL, not GPL.
55389         link-warning: optimize generation
55390         * modules/link-warning (Makefile.am): Reduce process usage.
55392 2009-12-09  Bruno Haible  <bruno@clisp.org>
55394         * doc/posix-functions/unsetenv.texi: Mention Solaris 10 bug for which a
55395         workaround was added on 2009-11-17.
55397 2009-12-09  Jim Meyering  <meyering@redhat.com>
55398             Bruno Haible  <bruno@clisp.org>
55400         link-warning: Allow extra lines at the top of build-aux/link-warning.h.
55401         * modules/link-warning (Makefile.am): Make the comment-removing sed
55402         command more robust in the face of bootstrap-prepended comment lines.
55404 2009-12-09  Bruno Haible  <bruno@clisp.org>
55406         * lib/mgetgroups.c (mgetgroups): Don't remove duplicates if there is at
55407         most one group.
55409 2009-12-09  Simon Josefsson  <simon@josefsson.org>
55410             Bruno Haible  <bruno@clisp.org>
55412         * build-aux/link-warning.h: Add copyright notice.
55413         * modules/link-warning (Makefile.am): Generate link-warning.h from
55414         build-aux/link-warning.h. Update LINK_WARNING_H accordingly.
55415         * NEWS: Mention change in link-warning module.
55416         * modules/arpa_inet (Makefile.am): Add dependency to arpa/inet.h.
55417         * modules/dirent (Makefile.am): Add dependency to dirent.h.
55418         * modules/fcntl-h (Makefile.am): Add dependency to fcntl.h.
55419         * modules/getopt-posix (Makefile.am): Add dependency to getopt.h.
55420         * modules/inttypes (Makefile.am): Add dependency to inttypes.h.
55421         * modules/math (Makefile.am): Add dependency to math.h.
55422         * modules/search (Makefile.am): Add dependency to search.h.
55423         * modules/signal (Makefile.am): Add dependency to signal.h.
55424         * modules/spawn (Makefile.am): Add dependency to spawn.h.
55425         * modules/stdio (Makefile.am): Add dependency to stdio.h.
55426         * modules/stdlib (Makefile.am): Add dependency to stdlib.h.
55427         * modules/string (Makefile.am): Add dependency to string.h.
55428         * modules/strings (Makefile.am): Add dependency to strings.h.
55429         * modules/sys_ioctl (Makefile.am): Add dependency to sys/ioctl.h.
55430         * modules/sys_select (Makefile.am): Add dependency to sys/select.h.
55431         * modules/sys_socket (Makefile.am): Add dependency to sys/socket.h.
55432         * modules/sys_stat (Makefile.am): Add dependency to sys/stat.h.
55433         * modules/sys_times (Makefile.am): Add dependency to sys/times.h.
55434         * modules/sys_utsname (Makefile.am): Add dependency to sys/utsname.h.
55435         * modules/sys_wait (Makefile.am): Add dependency to sys/wait.h.
55436         * modules/unistd (Makefile.am): Add dependency to unistd.h.
55437         * modules/wchar (Makefile.am): Add dependency to wchar.h.
55439 2009-12-09  Bruno Haible  <bruno@clisp.org>
55441         fchdir: Optimize away rpl_fstat when possible.
55442         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set REPLACE_FSTAT only together with
55443         REPLACE_OPEN_DIRECTORY.
55444         * lib/fchdir.c (rpl_fstat): Define only when REPLACE_OPEN_DIRECTORY.
55446 2009-12-09  Bruno Haible  <bruno@clisp.org>
55448         * lib/fchdir.c: Update comment.
55450 2009-12-09  Bruno Haible  <bruno@clisp.org>
55452         * lib/cloexec.c (set_cloexec_flag): Clarify intent of dup2 call.
55454 2009-12-08  Eric Blake  <ebb9@byu.net>
55456         fchdir: avoid memory leak on re-registration.
55457         * lib/fchdir.c (ensure_dirs_slot): Avoid memory leak.
55459 2009-12-08  Jim Meyering  <meyering@redhat.com>
55461         init.sh: avoid Solaris 10 /bin/sh portability problem
55462         Solaris 10's /bin/sh does not pass '.' arguments 2.. to the
55463         sourced script:
55464           $ printf 'echo "$@"\n' > f; /bin/sh -c '. ./f bar'
55465           $ printf 'echo "$@"\n' > f; /bin/bash -c '. ./f bar'
55466           bar
55467         tests/init.sh relied on that, accepting a --set-path=DIR argument,
55468         and two tests used that idiom.
55469         * tests/init.sh: Update suggested usage comments.
55470         (path_prepend_): New function, to be used in place
55471         of the --src-path=DIR option.
55472         (setup_): Move PATH-prepending code into path_prepend_.
55473         * tests/test-pread.sh: Adapt to new usage.
55474         * tests/test-xalloc-die.sh: Likewise.
55476 2009-12-08  Simon Josefsson  <simon@josefsson.org>
55478         * doc/gnulib.texi (Glibc pty.h): Add.
55479         * doc/glibc-functions/forkpty.texi: Add.
55480         * doc/glibc-functions/openpty.texi: Add.
55481         Suggested by Bruno Haible.
55483 2009-12-08  Eric Blake  <ebb9@byu.net>
55485         fchdir: fix logic bugs
55486         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Fix logic bug.
55487         * tests/test-fchdir.c (main): Enhance test.
55488         * lib/fchdir.c (rpl_fstat): Always provide if fchdir replacement
55489         is in use.
55491         dup2: fix logic bugs
55492         * lib/dup2.c (dup2): Fix logic bugs.  Use HAVE_DUP2 rather than
55493         REPLACE_DUP2 to decide when rpl_dup2 is needed.
55494         * m4/dup2.m4 (gl_REPLACE_DUP2): Only define REPLACE_DUP2 when dup2
55495         exists.
55496         (gl_FUNC_DUP2): Drop unneeded AC_DEFINE.
55498 2009-12-07  Eric Blake  <ebb9@byu.net>
55500         unlink: fix m4 detection
55501         * m4/unlink.m4 (gl_FUNC_UNLINK): Include correct header.
55503         unistd-safer: add unit test
55504         * modules/unistd-safer-tests: New file.
55505         * tests/test-dup-safer.c: Likewise.
55506         * tests/test-cloexec.c (setmode): Avoid compiler warning.
55507         * tests/test-dup2.c (setmode): Likewise.
55508         * lib/cloexec.c (dup_cloexec): Fix mingw compile error.
55510         cloexec: preserve text vs. binary across dup_cloexec
55511         * lib/cloexec.c (dup_cloexec) [W32]: Query and use translation
55512         mode.
55513         * modules/dup2-tests (Depends-on): Add binary-io.
55514         * modules/cloexec-tests (Depends-on): Likewise.
55515         * tests/test-dup2.c (setmode, is_mode): New helpers.
55516         (main): Add tests that translation mode is preserved.
55517         * tests/test-cloexec.c (setmode, is_mode, main): Likewise.
55518         Reported by Bruno Haible.
55520         mgetgroups: reduce duplicate listings
55521         * lib/mgetgroups.c (mgetgroups): Reduce duplicates from the
55522         resulting array.
55523         * tests/test-chown.h (test_chown): Simplify client.
55524         * tests/test-lchown.h (test_lchown): Likewise.
55526 2009-12-06  Bruno Haible  <bruno@clisp.org>
55528         * lib/cloexec.c (dup_cloexec): Fix handling of _gl_register_dup return
55529         value.
55531 2009-12-06  Bruno Haible  <bruno@clisp.org>
55533         * lib/progname.c: Include stdio.h, stdlib.h.
55534         (set_program_name): Reject a NULL argument.
55536 2009-12-05  Eric Blake  <ebb9@byu.net>
55538         pipe2-safer: new module
55539         * modules/pipe2-safer: New file.
55540         * lib/unistd-safer.h (pipe2_safer): New prototype.
55541         * lib/unistd--.h (pipe2): New wrapper.
55542         * lib/pipe-safer.c (pipe2_safer): New function.
55543         * modules/pipe (Depends-on): Add pipe2-safer.
55544         * lib/pipe.c (create_pipe) [WIN32]: Let pipe2_safer do the work.
55546         stdlib-safer: preserve cloexec flag for mkostemp[s]
55547         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer): Use new
55548         fd_safer_flag.
55550         unistd-safer: allow preservation of cloexec status via flag
55551         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): New
55552         prototypes.
55553         * lib/dup-safer.c (dup_safer_flag): New function.
55554         * lib/fd-safer.c (fd_safer_flag): Likewise.
55555         * modules/cloexec (configure.ac): Set witness.
55557         test-dup2: enhance test
55558         * modules/dup2-tests (Depends-on): Add cloexec.
55559         * tests/test-dup2.c (main): Enhance test.
55561         cloexec: add dup_cloexec
55562         * lib/cloexec.h (dup_cloexec): New prototype.  Add copyright
55563         header and comments.
55564         * lib/cloexec.c (set_cloexec_flag): Add comments.
55565         (dup_cloexec): New function, with mingw implementation borrowed
55566         from...
55567         * lib/w32spawn.h (dup_noinherit): ...here.
55568         * modules/execute (Depends-on): Add cloexec.
55569         * modules/pipe (Depends-on): Likewise.
55570         * modules/cloexec (Depends-on): Add dup2.
55571         * modules/cloexec-tests (Files): New file.
55572         * tests/test-cloexec.c: Likewise.
55574         test-xalloc-die: fix test for mingw
55575         * modules/xalloc-die-tests (Files): Add tests/init.sh.
55576         * tests/test-xalloc-die.sh: Rewrite to use init.sh.  Strip
55577         directory and .exe suffix off argv[0] output.
55579         test-fseeko: fix test for mingw
55580         * tests/test-fseeko.c (fseek): Redefine GL_LINK_WARNING, rather
55581         than undefining fseek, so test will pass on mingw.
55583 2009-12-05  Bruno Haible  <bruno@clisp.org>
55585         * lib/progname.h (set_program_name): Clarify specification.
55586         * lib/progname.c (set_program_name): Likewise.
55587         Reported by Jim Meyering.
55589 2009-12-05  Jim Meyering  <meyering@redhat.com>
55591         maint.mk: backslash-escape parens in default regexp
55592         * top/maint.mk (news-check-regexp): Now that we're using grep -E,
55593         backslash-escape the literal parentheses.
55595         maint.mk: news-date-check: use grep -E
55596         * top/maint.mk (today): Define a Make variable, not a...
55597         (news-date-check): ...shell variable.
55598         (news-date-regexp): Use the Make variable.
55599         Use grep's -E option.  Change the failing diagnostic to mention
55600         the variable, $(news-date-regexp).
55602 2009-12-04  Alfred M. Szmidt  <ams@gnu.org>
55604         maintainer-makefile: allow customization of NEWS entry format
55605         * top/maint.mk (news-date-regexp): New overridable variable.
55606         (news-date-check): Use it.
55608 2009-12-04  Eric Blake  <ebb9@byu.net>
55610         mgetgroups: add xgetgroups, and avoid ENOSYS failures
55611         * lib/mgetgroups.h (xgetgroups): New prototype.
55612         * lib/mgetgroups.c (xgetgroups): New wrapper.
55613         (mgetgroups): Handle ENOSYS.
55614         * modules/mgetgroups (Depends-on): Add realloc.
55615         Reported by Scott Harrison <scott.gnu.2009@scottrix.co.uk>.
55617         mgetgroups: avoid argument promotion issues with -1
55618         * lib/mgetgroups.c (mgetgroups): A cast is required when checking
55619         for invalid gid_t.
55620         * tests/test-chown.h (getegid, test_chown): Likewise.
55621         * tests/test-lchown.h (getegid, test_lchown): Likewise.
55623 2009-12-03  Paolo Bonzini  <bonzini@gnu.org>
55625         exclude: Fix header file problems.
55626         * lib/exclude.h: Add multiple inclusion guards and include stdbool.h.
55628 2009-12-01  Jim Meyering  <meyering@redhat.com>
55630         fts: fts_open: do not let an empty string cause immediate failure
55631         This is required in support of GNU rm, for which the command
55632         "rm A '' B" must process and remove both A and B, in spite of
55633         the empty string argument.
55634         * lib/fts.c (fts_open): Do not let the presence of an empty string
55635         cause fts_open to fail immediately.  Most fts-using tools must be
55636         able to process all arguments, in order, and can be expected to
55637         diagnose such arguments themselves.
55639 2009-11-30  Eric Blake  <ebb9@byu.net>
55641         utimens: fix compilation error
55642         * lib/utimens.c (lutimens) [!HAVE_UTIMENSAT && HAVE_LUTIMES]:
55643         Declare variable at right scope.
55645 2009-11-29  Jim Meyering  <meyering@redhat.com>
55647         bootstrap: handle perl-5.11's changed --version output
55648         * build-aux/bootstrap (get_version): Handle perl separately,
55649         since perl-5.11's --version output is different.
55651 2009-11-28  Jim Meyering  <meyering@redhat.com>
55653         userspec: depend on the inttostr module, too
55654         * modules/userspec (Depends-on): Add inttostr.
55656         userspec: disallow an ID that maps to (uid_t)-1 or (gid_t)-1
55657         * lib/userspec.c (parse_with_separator): Do not accept a user ID
55658         number of MAXUID when it evaluates to (uid_t) -1.
55659         Likewise for group ID.  Reported by Matt McCutchen in
55660         <http://savannah.gnu.org/bugs/?28113>
55662         userspec: reformat to use spaces, not TABs
55663         * lib/userspec.c: Expand TABs to spaces.
55664         Add Emacs' "indent-tabs-mode: nil" hint.
55666 2009-11-27  Eric Blake  <ebb9@byu.net>
55668         getopt-gnu: flush out another BSD bug
55669         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Test for the bug.
55670         * tests/test-getopt.c (main): Check POSIXLY_CORRECT first, to
55671         flush out BSD bug.
55672         * tests/test-getopt.h (test_getopt): End lists with NULL.
55673         * tests/test-getopt_long.h (test_getopt_long): Likewise.
55674         (test_getopt_long_posix): Enhance test.
55675         * modules/getopt-posix-tests (Depends-on): Add stdbool.
55676         * doc/glibc-functions/getopt_long.texi (getopt_long): Mention
55677         getopt-gnu.
55678         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
55679         Likewise.
55681 2009-11-27  Simon Josefsson  <simon@josefsson.org>
55683         * modules/idpriv-droptemp-tests (Notice): Fix text.
55685 2009-11-27  Jim Meyering  <meyering@redhat.com>
55687         test-xalloc-die: avoid spurious failure due to libtool argv difference
55688         In a libtool-enabled project, this test would fail due to a difference
55689         in the emitted program name, e.g.,
55690         -test-xalloc-die: memory exhausted
55691         +/tmp/.../tests/.libs/lt-test-xalloc-die: memory exhausted
55692         Use program to avoid that.
55693         * modules/xalloc-die-tests (Depends-on): Add progname.
55694         * tests/test-xalloc-die.c: Include progname.h".
55695         (program_name): Remove decl.
55696         (main): Call set_program_name.
55697         * tests/test-xalloc-die.sh (compare): Remove unnecessary ${EXE}.
55699 2009-11-26  Richard Jones  <rjones@redhat.com>
55701         w32sock: leave win32 error in place.
55702         * lib/w32sock.h (set_winsock_errno): Do not call WSASetLastError.
55704 2009-11-26  Eric Blake  <ebb9@byu.net>
55706         init.sh: suggest to use skip_ and fail_ functions in comments
55707         * tests/init.sh: Add a sentence.
55709 2009-11-25  Bruno Haible  <bruno@clisp.org>
55711         init.sh: add documentation in comments
55712         * tests/init.sh: Add some developer and user documentation.
55714 2009-11-26  Jim Meyering  <meyering@redhat.com>
55716         init.sh: accommodate even those who specify bogus srcdir manually
55717         * tests/init.sh: Normally, srcdir is guaranteed by automake and
55718         configure-time tests to be sanitized, so that there is no need to
55719         use "$srcdir" in Makefile rules and shell scripts.  Using $srcdir
55720         (with no double quotes) suffices.  However, since tests may be
55721         invoked manually, and since you may explicitly set srcdir to the
55722         name of a directory containing spaces, do quote its uses here.
55723         * tests/test-pread.sh: Likewise.
55724         Suggested by Bruno Haible.
55726         test-pread.sh: avoid diagnostics for those who ignore SIGPIPE
55727         * tests/test-pread.sh: Write no data into the pipe, because
55728         test-pread actually reads none.  This avoids a diagnostic,
55729         "bash: echo: write error: Broken pipe", that arises in the unusual
55730         event something is ignoring SIGPIPE, and might be interpreted
55731         as some sort of failure.  Reported by Bruno Haible.
55733 2009-11-25  Jim Meyering  <meyering@redhat.com>
55735         test-pread: cover failure with ESPIPE and EINVAL
55736         * tests/test-pread.c (main): Test for failure, too.
55737         * tests/test-pread.sh: Invoke with stdin on a pipe.
55738         Suggested by Eric Blake.
55740         pread: improvement and fix
55741         * modules/pread (Depends-on): Depend on lseek, for portability to
55742         e.g., mingw.  Suggested by Eric Blake.
55743         * lib/pread.c (__libc_read): Define.  Reported by Richard W.M. Jones.
55745         unistd.in.h: correct declaration of pread
55746         * lib/unistd.in.h: Correct type of "buf" parameter: void*, not char*
55747         Reported by Richard W.M. Jones.
55749         test-pread.sh: distribute the test script
55750         * modules/pread-tests (Files): Include test-pread.sh.
55752         test-pread.sh: clean up
55753         * tests/test-pread.sh: Don't refer to $builddir. Just use equivalent ".".
55754         * modules/pread-tests (TESTS_ENVIRONMENT): Don't export builddir.
55755         That is unnecessary, since it's always ".".
55756         Suggestion from Eric Blake.
55758         test-pread.sh: make executable
55759         * tests/test-pread.sh: Set executable bit.
55760         Reported by Eric Blake.
55762         correct typo in test-pread.sh
55763         * tests/test-pread.sh: Add #! line.
55765         test pread
55766         * tests/test-pread.c: New file.
55767         * tests/test-pread.sh: Likewise.
55768         * modules/pread-tests: Likewise.
55770         pread: new module
55771         * modules/pread: New file.
55772         * lib/unistd.in.h (pread): Define/declare.
55773         * lib/pread.c (pread): New file.
55774         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define defaults.
55775         * modules/unistd (Makefile.am): Substitute witnesses.
55776         * doc/posix-functions/pread.texi (pread): Update.
55777         * MODULES.html.sh: Add pread.
55779 2009-11-25  Jim Meyering  <meyering@redhat.com>
55781         tests/init.sh: new file to be used via most *.sh tests
55782         * tests/init.sh: New file.
55784 2009-11-25  Eric Blake  <ebb9@byu.net>
55786         utimens: work around older Linux failure with symlinks
55787         * lib/utimens.c (lutimensat_works_really): New variable.
55788         (fdutimens, lutimens): Use it to manage kernels that support
55789         nanosecond times on files, but not on symlinks.
55790         Reported by Ondřej Vašík.
55792         utimes: fix configure grammar
55793         * m4/utimes.m4 (gl_FUNC_UTIMES): Delete spurious word.
55795 2009-11-25  Paolo Bonzini  <bonzini@gnu.org>
55797         regex: Fix fastmap for multibyte character ranges.
55798         * lib/regcomp.c (re_compute_fastmap_iter): Add all multibyte lead
55799         characters when a multibyte character range is included.
55801 2009-11-22  Andy Wingo  <wingo@pobox.com>
55803         version-etc: work also with AM_INIT_AUTOMAKE's no-define option
55804         * lib/version-etc.c [!defined PACKAGE]: Define to PACKAGE_TARNAME.
55806 2009-11-24  Bruno Haible  <bruno@clisp.org>
55808         doc: Most *_l functions exist in MacOS X 10.5.
55809         * doc/posix-functions/duplocale.texi: Update platforms list.
55810         * doc/posix-functions/freelocale.texi: Likewise.
55811         * doc/posix-functions/newlocale.texi: Likewise.
55812         * doc/posix-functions/uselocale.texi: Likewise.
55813         * doc/posix-functions/isalnum_l.texi: Likewise.
55814         * doc/posix-functions/isalpha_l.texi: Likewise.
55815         * doc/posix-functions/isblank_l.texi: Likewise.
55816         * doc/posix-functions/iscntrl_l.texi: Likewise.
55817         * doc/posix-functions/isdigit_l.texi: Likewise.
55818         * doc/posix-functions/isgraph_l.texi: Likewise.
55819         * doc/posix-functions/islower_l.texi: Likewise.
55820         * doc/posix-functions/isprint_l.texi: Likewise.
55821         * doc/posix-functions/ispunct_l.texi: Likewise.
55822         * doc/posix-functions/isspace_l.texi: Likewise.
55823         * doc/posix-functions/isupper_l.texi: Likewise.
55824         * doc/posix-functions/iswalnum_l.texi: Likewise.
55825         * doc/posix-functions/iswalpha_l.texi: Likewise.
55826         * doc/posix-functions/iswblank_l.texi: Likewise.
55827         * doc/posix-functions/iswcntrl_l.texi: Likewise.
55828         * doc/posix-functions/iswctype_l.texi: Likewise.
55829         * doc/posix-functions/iswdigit_l.texi: Likewise.
55830         * doc/posix-functions/iswgraph_l.texi: Likewise.
55831         * doc/posix-functions/iswlower_l.texi: Likewise.
55832         * doc/posix-functions/iswprint_l.texi: Likewise.
55833         * doc/posix-functions/iswpunct_l.texi: Likewise.
55834         * doc/posix-functions/iswspace_l.texi: Likewise.
55835         * doc/posix-functions/iswupper_l.texi: Likewise.
55836         * doc/posix-functions/iswxdigit_l.texi: Likewise.
55837         * doc/posix-functions/isxdigit_l.texi: Likewise.
55838         * doc/posix-functions/nl_langinfo_l.texi: Likewise.
55839         * doc/posix-functions/strcasecmp_l.texi: Likewise.
55840         * doc/posix-functions/strcoll_l.texi: Likewise.
55841         * doc/posix-functions/strfmon_l.texi: Likewise.
55842         * doc/posix-functions/strftime_l.texi: Likewise.
55843         * doc/posix-functions/strncasecmp_l.texi: Likewise.
55844         * doc/posix-functions/strxfrm_l.texi: Likewise.
55845         * doc/posix-functions/tolower_l.texi: Likewise.
55846         * doc/posix-functions/toupper_l.texi: Likewise.
55847         * doc/posix-functions/towctrans_l.texi: Likewise.
55848         * doc/posix-functions/towlower_l.texi: Likewise.
55849         * doc/posix-functions/towupper_l.texi: Likewise.
55850         * doc/posix-functions/wcscoll_l.texi: Likewise.
55851         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
55852         * doc/posix-functions/wctrans_l.texi: Likewise.
55853         * doc/posix-functions/wctype_l.texi: Likewise.
55854         * doc/glibc-functions/strptime_l.texi: Likewise.
55855         * doc/glibc-functions/strtod_l.texi: Likewise.
55856         * doc/glibc-functions/strtof_l.texi: Likewise.
55857         * doc/glibc-functions/strtol_l.texi: Likewise.
55858         * doc/glibc-functions/strtold_l.texi: Likewise.
55859         * doc/glibc-functions/strtoll_l.texi: Likewise.
55860         * doc/glibc-functions/strtoul_l.texi: Likewise.
55861         * doc/glibc-functions/strtoull_l.texi: Likewise.
55862         * doc/glibc-functions/wcsftime_l.texi: Likewise.
55863         * doc/glibc-functions/wcstod_l.texi: Likewise.
55864         * doc/glibc-functions/wcstof_l.texi: Likewise.
55865         * doc/glibc-functions/wcstol_l.texi: Likewise.
55866         * doc/glibc-functions/wcstold_l.texi: Likewise.
55867         * doc/glibc-functions/wcstoll_l.texi: Likewise.
55868         * doc/glibc-functions/wcstoul_l.texi: Likewise.
55869         * doc/glibc-functions/wcstoull_l.texi: Likewise.
55871 2009-11-24  Bruno Haible  <bruno@clisp.org>
55873         duplocale: Fix logic bug.
55874         * lib/duplocale.c: Don't include <langinfo.h>.
55875         (_NL_LOCALE_NAME): Remove macro.
55876         (rpl_duplocale): Use setlocale instead of nl_langinfo.
55877         * tests/test-duplocale.c (main): Also test duplocale after uselocale.
55879 2009-11-23  Jim Meyering  <meyering@redhat.com>
55881         test-update-copyright: don't hard-code /usr/bin/perl
55882         * tests/test-update-copyright.sh (YEAR): Use date +%Y, rather than
55883         perl to print the current year.  Gilles Espinasse reported that
55884         the replaced use of perl was hard-coded as /usr/bin/perl.
55886 2009-11-23  Bruno Haible  <bruno@clisp.org>
55888         duplocale: Add support for glibc 2.3.x.
55889         * lib/duplocale.c (rpl_duplocale): Add fallback code for glibc 2.3.x.
55891 2009-11-22  Bruno Haible  <bruno@clisp.org>
55893         vasnprintf: Tiny optimization.
55894         * lib/vasnprintf.c (decimal_point_char): Choose the fast path also on
55895         MacOS X.
55897 2009-11-22  Bruno Haible  <bruno@clisp.org>
55899         Tests for module 'duplocale'.
55900         * modules/duplocale-tests: New file.
55901         * tests/test-duplocale.c: New file.
55903         New module 'duplocale'.
55904         * m4/duplocale.m4: New file.
55905         * lib/locale.in.h (duplocale): New declaration.
55906         * lib/duplocale.c: New file.
55907         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_MODULE_INDICATOR,
55908         gl_LOCALE_H_DEFAULTS): New macros.
55909         (gl_LOCALE_H): Require gl_LOCALE_H_DEFAULTS. Invoke
55910         gl_CHECK_NEXT_HEADERS unconditionally. Invoke gl_REPLACE_LOCALE_H.
55911         * modules/locale (Makefile.am): Substitute also GNULIB_DUPLOCALE,
55912         REPLACE_DUPLOCALE.
55913         * modules/duplocale: New file.
55914         * doc/posix-functions/duplocale.texi: Mention the glibc bug.
55916 2009-11-22  Bruno Haible  <bruno@clisp.org>
55918         * modules/locale-tests (configure.ac): Test for newlocale function.
55919         * tests/test-locale.c: When the system has extended locale functions,
55920         verify that <locale.h> defines locale_t and LC_GLOBAL_LOCALE.
55922         locale: Make locale_t available when possible.
55923         * lib/locale.in.h: Include <xlocale.h> when it exists.
55924         * m4/locale_h.m4 (gl_LOCALE_H): Check for <xlocale.h> and arrange to
55925         replace <locale.h> if it does not define locale_t but <xlocale.h> does.
55926         * modules/locale (Depends-on): Add extensions.
55927         (Makefile.am): Also substitute HAVE_XLOCALE_H.
55928         * doc/posix-headers/locale.texi: Document the problem with locale_t.
55930 2009-11-22  Bruno Haible  <bruno@clisp.org>
55932         Add comments.
55933         * m4/dirent_h.m4 (gl_DIRENT_H): Add comment about gl_CHECK_NEXT_HEADERS
55934         invocation.
55935         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
55936         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
55937         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
55939 2009-11-22  Bruno Haible  <bruno@clisp.org>
55941         error: account for the possibility of freopen (stdout).
55942         * lib/error.c: Include <unistd.h>.
55943         (flush_stdout): New function, extracted from error and error_at_line.
55944         Determine stdout's fd dynamically.
55945         (error, error_at_line): Invoke flush_stdout.
55946         * m4/error.m4 (gl_PREREQ_ERROR): Require AC_C_INLINE.
55947         * modules/error (Depends-on): Add unistd.
55949 2009-11-22  Bruno Haible  <bruno@clisp.org>
55951         diffseq: Add comment.
55952         * lib/diffseq.h (IF_LINT): Add comment about pitfall.
55954 2009-11-22  Jim Meyering  <meyering@redhat.com>
55956         c-stack: avoid defining an unused static function
55957         * lib/c-stack.c (find_stack_direction): Do not define this function
55958         when it will not be used.
55960         diffseq: avoid spurious gcc warnings
55961         * lib/diffseq.h (IF_LINT2): Define.
55962         (compareseq): Use it to initialize two members of "part".
55963         This avoids two used-uninitialized warnings.
55965 2009-11-21  Jim Meyering  <meyering@redhat.com>
55967         c-stack: avoid "ignoring return value of `write'" warning
55968         * lib/c-stack.c: Include "ignore-value.h".
55969         (die): Explicitly ignore each write return value.
55970         * modules/c-stack (Depends-on): Add ignore-value.
55972 2009-11-21  Bruno Haible  <bruno@clisp.org>
55974         diffseq: reduce scope of variable 'best'.
55975         * lib/diffseq.h (diag) [USE_HEURISTIC]: Reduce scope of 'best'
55976         variable, earlier used for two different purposes.
55978 2009-11-21  Jim Meyering  <meyering@redhat.com>
55980         diffseq: remove useless assignment to "best"
55981         * lib/diffseq.h (diag) [USE_HEURISTIC]: Remove useless "best = 0"
55982         assignment.  At that point "best" is already guaranteed to be zero.
55984 2009-11-20  Eric Blake  <ebb9@byu.net>
55986         build: mention ftp redirector in release announcements
55987         * top/maint.mk (gnu_rel_host, url_dir_list): Provide defaults for
55988         values that used to come from cfg.mk; mention FTP redirect URL.
55989         * build-aux/announce-gen: Mention the mirror list.
55990         Suggested by Karl Berry.
55992         nanosleep: improve port to mingw
55993         * lib/nanosleep.c (rpl_nanosleep): Reject invalid arguments.
55994         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Incorporate LIBSOCKET into
55995         LIB_NANOSLEEP, but only when needed.
55996         * modules/select (Link): Document LIBSOCKET.
55997         * m4/select.m4 (gl_FUNC_SELECT): Ensure LIBSOCKET is defined early
55998         enough.
56000         nanosleep: work around cygwin bug
56001         * lib/nanosleep.c (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]:
56002         Fix logic bug when nanosleep fails.  Work around cygwin 1.5.x
56003         bug.
56004         (getnow): Delete, not needed.
56005         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): No longer require
56006         LIB_CLOCK_GETTIME.
56007         * modules/nanosleep (Depends-on): Add intprops and verify.  Drop
56008         clock-time, gettime.
56009         * doc/posix-functions/nanosleep.texi (nanosleep): Document the
56010         bug.
56011         * modules/nanosleep-tests: New test.
56012         * tests/test-nanosleep.c: New file.
56014         sleep: work around cygwin bug
56015         * lib/sleep.c (rpl_sleep): Work around the bug.
56016         * m4/sleep.m4 (gl_FUNC_SLEEP): Detect the bug.
56017         (gl_PREREQ_SLEEP): Delete unused macro.
56018         * modules/sleep (Depends-on): Add verify.
56019         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
56020         * modules/unistd (Makefile.am): Substitute witness.
56021         * lib/unistd.in.h (sleep): Update prototype.
56022         * doc/posix-functions/sleep.texi (sleep): Document the bug.
56023         * tests/test-sleep.c (main) [HAVE_DECL_ALARM]: Test it.
56024         * modules/sleep-tests (Depends-on): Check for alarm.
56026 2009-11-20  Jim Meyering  <meyering@redhat.com>
56028         maint.mk: improve sc_prohibit_magic_number_exit
56029         * top/maint.mk (sc_prohibit_magic_number_exit): Tighten regexp
56030         so it does not match uses like System.exit(1).
56031         Add comments showing how to correct all offenders.
56033 2009-11-19  Eric Blake  <ebb9@byu.net>
56035         xalloc-die-tests: add missing library
56036         * modules/xalloc-die-tests (Makefile.am): Add LDADD line.
56038         test-xvasprintf: silence compiler warnings
56039         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Mask
56040         empty string from gcc.
56042 2009-11-19  Jim Meyering  <meyering@redhat.com>
56044         xfreopen: new module, from coreutils
56045         * modules/xfreopen: New module.
56046         * lib/xfreopen.c: New file.
56047         * lib/xfreopen.h: New file.
56048         * MODULES.html.sh (File stream based Input/Output"): Add it.
56050 2009-11-19  Eric Blake  <ebb9@byu.net>
56052         manywarnings: depend on warnings
56053         * modules/manywarnings (Depends-on): Add warnings.
56055         build: avoid compiler warnings
56056         * lib/select.c (rpl_select): Delete unused variable.
56057         * lib/setsockopt.c (rpl_setsockopt): Avoid incompatible pointer.
56059 2009-11-18  Eric Blake  <ebb9@byu.net>
56061         tests: avoid false negative with --with-packager
56062         * tests/test-version-etc.sh: Discard packager information.
56063         * tests/test-argp-version-etc-1.sh: Likewise.
56064         Reported by Mike Frysinger.
56066         utimens: fix regression on Solaris
56067         * m4/utimens.m4 (gl_UTIMENS): Check for BSD bug.
56068         * lib/utimens.c (fdutimens): Revert 2009-11-08 change; Solaris 10
56069         can only change fd timestamps via futimesat.  Instead, use an
56070         additional witness macro to avoid BSD bug.
56071         Reported by Jim Meyering.
56073 2009-11-17  Eric Blake  <ebb9@byu.net>
56075         usleep: use it to simplify tests
56076         * modules/stat-time-tests (Depends-on): Add usleep.
56077         (configure.ac): Drop usleep check.
56078         * modules/chown-tests (Depends-on, configure.ac): Likewise.
56079         * modules/lchown-tests (Depends-on, configure.ac): Likewise.
56080         * modules/fdutimensat-tests (Depends-on, configure.ac): Likewise.
56081         * modules/futimens-tests (Depends-on, configure.ac): Likewise.
56082         * modules/openat-tests (Depends-on, configure.ac): Likewise.
56083         * modules/utimens-tests (Depends-on, configure.ac): Likewise.
56084         * modules/utimensat-tests (Depends-on, configure.ac): Likewise.
56085         * modules/pipe-filter-gi-tests (Depends-on, configure.ac):
56086         Likewise.
56087         * tests/test-chown.h (nap): Rely on nicer usleep semantics.
56088         * tests/test-lchown.h (nap): Likewise.
56089         * tests/test-pipe-filter-gi2-main.c (small_nap): Likewise.
56090         * tests/test-stat-time.c (nap): Likewise.
56091         * tests/test-utimens-common.h (nap): Update comments.
56093         usleep: new module
56094         * modules/usleep: New file.
56095         * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
56096         * lib/usleep.c (usleep): Likewise.
56097         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
56098         * modules/unistd (Makefile.am): Substitute witnesses.
56099         * lib/unistd.in.h (usleep): Add declaration.
56100         * doc/pastposix-functions/usleep.texi (usleep): Document this.
56101         * MODULES.html.sh (Date and time): Likewise.
56102         * modules/usleep-tests (Depends-on): New test.
56103         * tests/test-usleep.c: New file.
56105         chown: work around OpenBSD bug
56106         * lib/chown.c (rpl_chown): Work around the bug.
56107         * lib/lchown.c (rpl_lchown): Attempt to do likewise.
56108         * m4/chown.m4 (gl_FUNC_CHOWN): Test for ctime bug.
56109         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for lchmod.
56110         * modules/chown (Depends-on): Add stdbool.
56111         * modules/lchown (Depends-on): Likewise.
56112         * doc/posix-functions/chown.texi (chown): Document the bug.
56113         * doc/posix-functions/lchown.texi (lchown): Likewise.
56114         * tests/test-lchown.h (test_chown): Relax test.
56116         mkstemp: avoid conflict with C++ keyword template
56117         * lib/mkdtemp.c (mkdtemp): Change spelling of template.
56118         * lib/mkostemp.c (mkostemp): Likewise.
56119         * lib/mkostemps.c (mkostemps): Likewise.
56120         * lib/mkstemp.c (mkstemp): Likewise.
56121         * lib/mkstemps.c (mkstemps): Likewise.
56123         xalloc-die-tests: optimize
56124         * tests/test-xalloc-die.sh: Reduce number of processes.
56126 2009-11-17  Simon Josefsson  <simon@josefsson.org>
56128         * gnulib-tool: Support LGPLv3+ licenses in module files.  Tiny
56129         patch from ludo@gnu.org (Ludovic Courtès).
56131 2009-11-17  Jim Meyering  <meyering@redhat.com>
56133         version-etc: use proper license string
56134         * modules/version-etc (License): Use LGPL, not LGPLv3+.
56135         * modules/version-etc-fsf: Likewise.
56137 2009-11-17  Simon Josefsson  <simon@josefsson.org>
56139         * tests/test-xalloc-die.sh: Add license.  Check that nothing is
56140         printed to stdout.  Deal with EOL differences.
56142 2009-11-17  Eric Blake  <ebb9@byu.net>
56144         unsetenv: work around Solaris bug
56145         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for bug.
56146         * lib/unsetenv.c (rpl_unsetenv): Work around it.
56147         Reported by Jim Meyering.
56149         vasnprintf: avoid compiler warnings
56150         * lib/vasnprintf.c (VASNPRINTF): Avoid shadowing our own local
56151         variables.
56152         * lib/printf-args.c (PRINTF_FETCHARGS): Avoid type mismatch.
56154 2009-11-17  Simon Josefsson  <simon@josefsson.org>
56156         * modules/xalloc-die-tests (Makefile.am): Drop XFAIL_TESTS
56157         settings since xalloc-die is no longer the self test,
56158         xalloc-die.sh is.
56160 2009-11-17  Jim Meyering  <meyering@redhat.com>
56162         test-xalloc-die.sh: make the code agree with the commit log
56163         * tests/test-xalloc-die.sh: Put "." at the front of $PATH, not
56164         at the end, just in case you happen to have a test-xalloc-die
56165         program in some other PATH directory.
56167         test-xalloc-die.sh: fix a portability bug
56168         * tests/test-xalloc-die.sh: Do not invoke via ./test-xalloc-die.
56169         Instead, set PATH to start with "." and invoke via "test-xalloc-die".
56170         Otherwise, argv[0] (as often seen in diagnostics) would be too
56171         system-dependent, sometimes with, and sometimes without the leading "./".
56173         version-etc-fsf: relax license to LGPLv3+
56174         * modules/version-etc-fsf (License): Relax license.
56176 2009-11-16  Eric Blake  <ebb9@byu.net>
56178         xalloc-die-tests: avoid printing null pointer
56179         * modules/xalloc-die-tests (Files, Makefile.am): Wrap execution in
56180         shell script.
56181         * tests/test-xalloc-die.c (program_name): Declare.
56182         * tests/test-xalloc-die.sh (tmpfiles): New file.
56184         setenv, unsetenv: work around various bugs
56185         * lib/setenv.c (setenv) [!HAVE_SETENV]: Resync from glibc.
56186         (setenv) [HAVE_SETENV]: Work around bugs.
56187         * lib/unsetenv.c (unsetenv) [HAVE_UNSETENV]: Work around bugs.
56188         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE, gl_FUNC_UNSETENV): Check
56189         for bugs.
56190         (gl_FUNC_SETENV): Write in terms of gl_FUNC_SETENV_SEPARATE.
56191         * m4/environ.m4 (gl_ENVIRON): Avoid expand-before-require.
56192         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Update defaults.
56193         * modules/stdlib (Makefile.am): Update substitutions.
56194         * lib/stdlib.in.h (setenv, unsetenv): Update prototypes.
56195         * doc/posix-functions/setenv.texi (setenv): Document the bugs.
56196         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
56197         * modules/setenv-tests: New test.
56198         * modules/unsetenv-tests: Likewise.
56199         * tests/test-setenv.c: New file.
56200         * tests/test-unsetenv.c: Likewise.
56202 2009-11-16  Jim Meyering  <meyering@redhat.com>
56204         version-etc: relax license to LGPLv3+
56205         * modules/version-etc (License): Relax license.
56207         better AC_REQUIRE expanded-before-required-warning avoidance
56208         * m4/chown.m4 (gl_FUNC_CHOWN, gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Define
56209         with AC_DEFUN_ONCE, rather than AC_DEFUN, to avoid AC_REQUIRE warnings.
56210         Suggested by Eric Blake.  This change also reverts commit 1b712ba8,
56211         which is no longer needed.
56213 2009-11-16  Eric Blake  <ebb9@byu.net>
56215         test-freading: clean up temporary file
56216         * tests/test-freading.c (main): Remove file on success, and use
56217         ASSERT more liberally.
56218         Reported by Jim Meyering.
56220 2009-11-16  Jim Meyering  <meyering@redhat.com>
56222         avoid new AC_REQUIRE expanded-before-required warnings
56223         * modules/chown (configure.ac): Require gl_FUNC_CHOWN, rather than
56224         merely using it.
56225         * modules/euidaccess (configure.ac): Likewise for gl_FUNC_EUIDACCESS.
56226         * modules/faccessat (configure.ac): Likewise for gl_FUNC_FACCESSAT.
56228 2009-11-15  Simon Josefsson  <simon@josefsson.org>
56230         * tests/test-xalloc-die.c: New file.
56231         * modules/xalloc-die-tests: New file.
56232         * gnulib-tool (func_emit_tests_Makefile_am): Also initialize
56233         XFAIL_TESTS so it can be appended by modules.
56235 2009-11-15  Simon Josefsson  <simon@josefsson.org>
56237         * lib/gc-pbkdf2-sha1.c: Remove comments from RFC 2898.  Reported
56238         by Vladimir 'phcoder' Serbinenko <phcoder@gmail.com>.
56240 2009-11-14  Eric Blake  <ebb9@byu.net>
56242         fnmatch: avoid compiler warning
56243         * lib/fnmatch_loop.c (NEW_PATTERN): Coerce addition to unsigned,
56244         to silence compiler warning about mismatch signedness in ?:.
56245         Reported by Robert Millan.
56247         intprops: add double-inclusion guard
56248         * lib/intprops.h: Allow idempotent includes.
56249         Suggested by Bruce Korb.
56251         openat: detect Solaris fchownat bug
56252         * lib/fchownat.c (rpl_fchownat): Work around Solaris bug.  Avoid
56253         penalizing glibc chownat when only lchownat is broken.
56254         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Replace fchownat if there are
56255         trailing slash bugs.
56256         * doc/posix-functions/fchownat.texi (fchownat): Document the bug.
56257         * modules/openat-tests (Files): Include more files.
56258         (Depends-on): Add mgetgroups, sleep, stat-time.
56259         (configure.ac): Add additional checks.
56260         (Makefile.am): Build new test.
56261         * tests/test-fchownat.c: New file.
56263         lchown: detect Solaris and FreeBSD bug
56264         * lib/lchown.c (rpl_lchown): Work around bug.
56265         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for trailing slash bugs.
56266         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
56267         * modules/unistd (Makefile.am): Populate it.
56268         * lib/unistd.in.h (lchown): Update declaration.
56269         * doc/posix-functions/lchown.texi (lchown): Document the bug.
56270         * modules/lchown-tests: New file.
56271         * tests/test-lchown.h (test_lchown): Likewise.
56272         * tests/test-lchown.c (main): Likewise.
56274         chown: detect Solaris and FreeBSD bug
56275         * lib/chown.c (rpl_chown): Work around bug.
56276         * m4/chown.m4 (gl_FUNC_CHOWN): Check for trailing slash bugs.
56277         (gl_PREREQ_CHOWN): Delete.
56278         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
56279         * modules/unistd (Makefile.am): Populate it.
56280         * lib/unistd.in.h (chown): Update declaration.
56281         * lib/lchown.c (chown): Update client.
56282         * modules/lchown (Depends-on): Add lstat.
56283         * doc/posix-functions/chown.texi (chown): Document the bug.
56284         * doc/posix-functions/getgroups.texi (getgroups): Document
56285         getgroups pitfall.
56286         * modules/chown-tests: New file.
56287         * tests/test-chown.h (test_chown): Likewise.
56288         * tests/test-chown.c (main): Likewise.
56290 2009-11-14  Robert Millan  <rmh.grub@aybabtu.com>  (tiny change)
56292         gnulib-tool: correctly detect absence of m4 directories
56293         * gnulib-tool: Avoid extra newline on data passed to wc -l.
56295 2009-11-14  Jim Meyering  <meyering@redhat.com>
56297         maint.mk: Prohibit inclusion of "xalloc.h" without use.
56298         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
56300 2009-11-14  John W. Eaton  <jwe@gnu.org>
56302         strftime.h: wrap function declaration in extern "C" block
56303         * lib/strftime.h (nstrftime) [__cplusplus]: Wrap declaration.
56305 2009-11-13  Eric Blake  <ebb9@byu.net>
56307         getgroups: avoid compiler warning
56308         * lib/getgroups.c (rpl_getgroups): Delete shadowed variable.
56310         getgroups: work around FreeBSD bug
56311         * lib/getgroups.c (rpl_getgroups): Work around the bug.
56312         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Detect the bug.
56313         * doc/posix-functions/getgroups.texi (getgroups): Document it.
56314         * tests/test-getgroups.c (main): Fix buffer overrun.
56316         getgroups: avoid compilation failure
56317         * lib/getgroups.c (includes): Include <stdint.h> for SIZE_MAX.
56318         * modules/getgroups (Depends-on): Add stdint.
56320 2009-11-13  Jim Meyering  <meyering@redhat.com>
56322         test-getgroups: avoid compilation failure
56323         * tests/test-getgroups.c: Include <stdint.h> for use of SIZE_MAX.
56325 2009-11-13  Eric Blake  <ebb9@byu.net>
56327         mgetgroups: new module, taken from coreutils
56328         * modules/mgetgroups: New file.
56329         * lib/mgetgroups.h: Likewise.
56330         * lib/mgetgroups.c (mgetgroups): Likewise.
56331         * m4/mgetgroups.m4 (gl_MGETGROUPS): Likewise.
56332         * MODULES.html.sh (Users and groups): Mention it.
56334         getgroups: don't expose GETGROUPS_T to user
56335         * lib/getgroups.c (rpl_getgroups): Change signature.  Copy array
56336         an element at a time if GETGROUPS_T is wrong size.
56337         * lib/getugroups.h (getugroups): Change signature.
56338         * lib/unistd.in.h (getgroups): Likewise.
56339         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Use replacement if
56340         signature needs fixing.
56341         * m4/getugroups.m4 (gl_GETUGROUPS): No longer need
56342         AC_TYPE_GETGROUPS.
56343         * modules/group-member (Depends-on): Add getgroups.
56344         * lib/group-member.c (group_info, get_group_info): Use gid_t.
56345         (group_member): Rely on getgroups replacement.
56346         * lib/getugroups.c (getugroups): Use gid_t.
56347         * tests/test-getgroups.c (main): Likewise.
56348         * NEWS: Mention the signature change.
56349         * doc/posix-functions/getgroups.texi (getgroups): Mention the
56350         problem with signature.
56351         * doc/glibc-functions/setgroups.texi (setgroups): Mention that
56352         GETGROUPS_T is still useful for setgroups.
56354         getgroups, getugroups: provide stubs for mingw
56355         * lib/getgroups.c (getgroups): Provide ENOSYS stub for mingw.
56356         * lib/getugroups.c (getugroups): Likewise.
56357         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Check for missing
56358         function.  Modernize replacement scheme.
56359         (gl_PREREQ_GETGROUPS): Delete.
56360         * m4/getugroups.m4 (gl_GETUGROUPS): Check for <grp.h>.
56361         * modules/getgroups (configure.ac): Declare witness.
56362         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
56363         * modules/unistd (Depends-on): Substitute witness.
56364         * lib/unistd.in.h (getgroups): Declare replacement.
56366         getgroups: avoid calling exit
56367         * modules/getgroups (Depends-on): Add malloc-posix and unistd,
56368         drop xalloc.
56369         * modules/getgroups-tests (Depends-on, Makefile.am): Drop unneeded
56370         dependencies.
56371         * lib/getgroups.c (rpl_getgroups): Fail with ENOMEM rather than
56372         exiting, in the rare case of malloc failure.
56374         getgroups: fix logic error
56375         * lib/getgroups.c (rpl_getgroups): Don't fail if current process
56376         has more than 20 groups.
56377         * modules/getgroups-tests: New test.
56378         * tests/test-getgroups.c: New file.
56380 2009-11-13  Simon Josefsson  <simon@josefsson.org>
56382         * tests/test-base64.c: Improve.
56384 2009-11-13  Simon Josefsson  <simon@josefsson.org>
56386         * tests/test-xvasprintf.c: Fix memory leak, suggested by Eric
56387         Blake <ebb9@byu.net>.
56389 2009-11-13  Simon Josefsson  <simon@josefsson.org>
56391         * tests/test-xvasprintf.c: Add %s%s related checks.
56393 2009-11-12  Eric Blake  <ebb9@byu.net>
56395         version-etc: match standards.texi style
56396         * lib/version-etc.c (emit_bug_reporting_address): Drop periods,
56397         and use <> only for URLs.
56399 2009-11-10  Kamil Dudka  <kdudka@redhat.com>
56401         fts: do not fail on a submount during traversal
56402         * lib/fts.c (fts_build): Read the stat info again after opening
56403         a directory if the FTS_TIGHT_CYCLE_CHECK flag is set.
56404         Original report at http://bugzilla.redhat.com/501848.
56406 2009-11-12  Jim Meyering  <meyering@redhat.com>
56408         bootstrap: sync from coreutils
56409         * build-aux/bootstrap (bootstrap_epilogue): New function.
56410         Use git_modules_config in one more place.  This make bootstrap's
56411         --gnulib-srcdir option more useful for testing.
56413         bootstrap: generalize autoheader check
56414         * build-aux/bootstrap: Look for AC_CONFIG_HEADER as well as
56415         AC_CONFIG_HEADERS.
56417 2009-11-11  Eric Blake  <ebb9@byu.net>
56419         mkfifoat: use new modules for Solaris and BSD bugs
56420         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Simplify.
56421         * lib/mkfifoat.c (mknodat): Split...
56422         * lib/mknodat.c (mknodat): ...into new file.
56423         * modules/mkfifoat (Files): Ship new file.
56424         (Depends-on): Add mkfifo, mknod.
56425         * modules/mkfifoat-tests (Files): Reuse mkfifo tests.
56426         (Depends-on): Add symlink.
56427         * tests/test-mkfifoat.c (main): Enhance test.  Drop portions now
56428         redundant with test_mkfifo.h.
56429         (do_mkfifoat, do_mknodat): New helpers.
56431         mknod: new module
56432         * modules/mknod: New file.
56433         * m4/mknod.m4 (gl_FUNC_MKNOD): Likewise.
56434         * lib/mknod.c (mknod): Likewise.
56435         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
56436         defaults.
56437         * modules/sys_stat (Makefile.am): Substitute them.
56438         * lib/sys_stat.in.h (mknod): Declare replacement.
56439         * MODULES.html.sh (Support for systems lacking POSIX:2008):
56440         Document it.
56441         * doc/posix-functions/mknod.texi (mknod): Likewise.
56442         * modules/mknod-tests: New test.
56443         * tests/test-mknod.c: Likewise.
56445         mkfifo: new module
56446         * modules/mkfifo: New file.
56447         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
56448         * lib/mkfifo.c (mkfifo): Likewise.
56449         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
56450         defaults.
56451         * modules/sys_stat (Makefile.am): Substitute them.
56452         * lib/sys_stat.in.h (mkfifo): Declare replacement.
56453         * MODULES.html.sh (Support for systems lacking POSIX:2008):
56454         Document it.
56455         * doc/posix-functions/mkfifo.texi (mkfifo): Likewise.
56456         * modules/mkfifo-tests: New test.
56457         * tests/test-mkfifo.h (test_mkfifo): New file, borrowed in part
56458         from test-mkfifoat.c.
56459         * tests/test-mkfifo.c: New file.
56461         readlink: detect FreeBSD bug
56462         * m4/readlink.m4 (gl_FUNC_READLINK): Also detect FreeBSD bug with
56463         slash on symlink.
56464         * doc/posix-functions/readlink.texi (readlink): Document the bug.
56465         * tests/test-readlink.h (test_readlink): Enhance test.
56467         symlink: detect FreeBSD bug
56468         * m4/symlink.m4 (gl_FUNC_SYMLINK): Also detect FreeBSD bug with
56469         slash on symlink.
56470         * doc/posix-functions/symlink.texi (symlink): Document the bug.
56471         * tests/test-symlink.h (test_symlink): Enhance test.
56473 2009-11-10  Eric Blake  <ebb9@byu.net>
56475         link: detect FreeBSD bug
56476         * m4/link.m4 (gl_FUNC_LINK): Also detect FreeBSD bug with slash on
56477         symlink.
56478         * doc/posix-functions/link.texi (link): Document the bug.
56479         * tests/test-link.h (test_link): Enhance test.
56480         * tests/test-linkat.c (main): Update caller.
56482         unlink, remove: detect FreeBSD bug
56483         * m4/unlink.m4 (gl_FUNC_UNLINK): Also detect FreeBSD bug with
56484         slash on symlink.
56485         * doc/posix-functions/unlink.texi (unlink): Document the bug.
56486         * doc/posix-functions/remove.texi (remove): Likewise.
56487         * tests/test-unlink.h (test_unlink): Enhance test.
56488         * tests/test-remove.c (main): Likewise.
56490 2009-11-09  Eric Blake  <ebb9@byu.net>
56492         rename: detect FreeBSD bug
56493         * m4/rename.m4 (gl_FUNC_RENAME): Also detect FreeBSD bug with
56494         slash on symlink.
56495         * modules/renameat-tests (Depends-on): Add filenamecat.
56496         * tests/test-rename.h (test_rename): Allow one more errno.
56497         * tests/test-renameat.c (main): Likewise.
56498         * doc/posix-functions/rename.texi (rename): Document the bug.
56500         open: detect FreeBSD bug
56501         * m4/open.m4 (gl_FUNC_OPEN): Also detect FreeBSD bug with slash on
56502         symlink.
56503         * doc/posix-functions/open.texi (open): Document the bug.
56504         * doc/posix-functions/utimes.texi (utimes): Likewise.
56505         * tests/test-open.h (test_open): Add parameters, and test symlink
56506         handling.
56507         * tests/test-open.c (main): Adjust caller.
56508         * tests/test-fcntl-safer.c (main): Likewise.
56509         * modules/open-tests (Depends-on): Add stdbool, symlink.
56510         * modules/fcntl-safer-tests (Depends-on): Likewise.
56511         * tests/test-openat.c (main): Add test-open tests.
56513         stat: detect FreeBSD bug
56514         * m4/stat.m4 (gl_FUNC_STAT): Also detect FreeBSD bug with slash on
56515         symlink.
56516         * doc/posix-functions/stat.texi (stat): Document the bug.
56517         * tests/test-stat.h (test_stat_func): Add argument.
56518         * tests/test-stat.c (main): Adjust caller.
56519         * tests/test-fstatat.c (main): Likewise.
56520         * modules/stat-tests (Depends-on): Add stdbool, symlink.
56521         Reported by Jim Meyering.
56523 2009-11-09  James Youngman  <jay@gnu.org>
56525         strftime.c: include ignore-value.h only when FPRINTFTIME is defined
56526         * lib/strftime.c: Correct placement of #include "ignore-value.h".
56528 2009-11-08  Jim Meyering  <meyering@redhat.com>
56530         utimens: remove invalid futimesat call
56531         * lib/utimens.c (fdutimens): Remove invalid futimesat call.
56532         It used the file descriptor of the target file as the DIR_FD
56533         parameter and NULL as the file name.  That caused failure with
56534         errno == EFAULT on FreeBSD-8.0-rc2
56536 2009-11-07  Eric Blake  <ebb9@byu.net>
56538         fflush, freadseek: use fseeko, not fseek
56539         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
56540         (clear_ungetc_buffer): Avoid potential problems on large files.
56541         * lib/freadseek.c (freadseek): Likewise.
56542         * modules/freadseek (Depends-on): Add fseeko.
56543         * modules/fseek (configure.ac): Set a witness.
56544         * tests/test-fflush.c (main): Use fseeko.
56545         * tests/test-fpurge.c (fseek): Disable link warning.
56546         * tests/test-freadable.c (fseek): Likewise.
56547         * tests/test-freading.c (fseek): Likewise.
56548         * tests/test-fseeko.c (fseek): Likewise.
56549         * tests/test-ftell.c (fseek): Likewise.
56550         * tests/test-ftello.c (fseek): Likewise.
56551         * tests/test-fwritable.c (fseek): Likewise.
56552         * tests/test-fwriting.c (fseek): Likewise.
56554 2009-11-06  Simon Josefsson  <simon@josefsson.org>
56556         * modules/memchr (Depends-on): Drop getpagesize dependency.
56558 2009-11-06  Simon Josefsson  <simon@josefsson.org>
56560         * build-aux/pmccabe2html: Disable execute bit.  Suggested by
56561         Reported by Ludovic Courtès.
56562         * build-aux/pmccabe2html: Improve example usage.
56563         * build-aux/pmccabe2html: Drop #! header.  Doc fix.
56565 2009-11-06  Jim Meyering  <meyering@redhat.com>
56567         do-release-commit-and-tag: New module.
56568         Automate the release-commit and tag process.
56569         * build-aux/do-release-commit-and-tag: New script, from coreutils.
56570         * modules/do-release-commit-and-tag: New file.
56571         * MODULES.html.sh (Support for maintaining and releasing): Add it.
56573 2009-11-06  Simon Josefsson  <simon@josefsson.org>
56575         * modules/select-tests (test_select_LDADD): Add $(INET_PTON_LIB)
56576         because test-select.c uses inet_pton.
56578 2009-11-06  Simon Josefsson  <simon@josefsson.org>
56580         * m4/getaddrinfo.m4: Add content of INET_NTOP_LIB to
56581         GETADDRINFO_LIB.  Bump serial number.
56582         * modules/getaddrinfo (Link): Only mention GETADDRINFO_LIB again.
56583         Suggested by Eric Blake <ebb9@byu.net>.
56585 2009-11-05  Eric Blake  <ebb9@byu.net>
56587         strtod: detect darwin bug
56588         * m4/strtod.m4 (gl_FUNC_STRTOD): Filter out darwin bug on "nan(".
56589         Reported by Leo Davis.
56591         freopen-safer: new module
56592         * modules/freopen-safer: New module.
56593         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): New macro.
56594         * lib/freopen-safer.c (freopen_safer): New file.
56595         * lib/stdio-safer.h (freopen_safer): New declaration.
56596         * lib/stdio--.h (freopen): New override.
56597         * MODULES.html.sh (File stream based Input/Output): Mention it.
56598         * doc/posix-functions/freopen.texi (freopen): Mention pitfalls and
56599         freopen-safer module.
56600         * doc/posix-functions/stderr.texi (stderr): Likewise.
56601         * doc/posix-functions/stdin.texi (stdin): Likewise.
56602         * doc/posix-functions/stdout.texi (stdout): Likewise.
56603         * modules/freopen-safer-tests: New test.
56604         * tests/test-reopen-safer.c: New file.
56606 2009-11-05  Jim Meyering  <meyering@redhat.com>
56608         maint.mk: Prohibit inclusion of "close-stream.h" without use.
56609         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
56611 2009-11-05  Simon Josefsson  <simon@josefsson.org>
56613         * modules/pmccabe2html (configure.ac): Check for pmccabe tool.
56615 2009-11-05  Simon Josefsson  <simon@josefsson.org>
56617         * modules/getaddrinfo (Link): Add $(INET_NTOP_LIB).
56619 2009-11-05  Simon Josefsson  <simon@josefsson.org>
56621         Fix link error.
56622         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
56623         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
56625 2009-11-05  Simon Josefsson  <simon@josefsson.org>
56627         * tests/test-func.c: Also test value of __func__.
56629 2009-11-05  Simon Josefsson  <simon@josefsson.org>
56631         * tests/test-sys_socket.c: Use smaller constant value, sa_family_t
56632         may be an 8-bit type.  Reported by Bruno Haible <bruno@clisp.org>.
56634 2009-11-05  Bruno Haible  <bruno@clisp.org>
56636         Fix link error.
56637         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
56638         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
56639         Reported by Brad Hards <bradh@frogmouth.net> via Simon Josefsson.
56641 2009-11-05  Bruno Haible  <bruno@clisp.org>
56643         Tests for module 'inet_pton'.
56644         * modules/inet_pton-tests: New file.
56645         * tests/test-inet_pton.c: New file.
56647 2009-11-05  Bruno Haible  <bruno@clisp.org>
56649         Tests for module 'inet_ntop'.
56650         * modules/inet_ntop-tests: New file.
56651         * tests/test-inet_ntop.c: New file.
56653 2009-11-04  Eric Blake  <ebb9@byu.net>
56655         stdlib-safer: wrap all mkstemp variants
56656         * modules/mkostemp (configure.ac): Set witness.
56657         * modules/mkostemps (configure.ac): Likewise.
56658         * modules/mkstemps (configure.ac): Likewise.
56659         * lib/stdlib-safer.h (mkostemp_safer, mkostemps_safer)
56660         (mkstemps_safer): Wrap more functions.
56661         * lib/stdlib--.h (mkostemp, mkostemps, mkstemps): Default the
56662         wrapping.
56663         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer)
56664         (mkstemps_safer): Implement the wrappers.
56666         mkstemps, mkostemps: new modules
56667         * modules/mkostemps: New module.
56668         * modules/mkstemps: Likewise.
56669         * lib/mkostemps.c (mkostemps): New file.
56670         * lib/mkstemps.c (mkstemps): Likewise.
56671         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Likewise.
56672         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Likewise.
56673         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add witnesses.
56674         * modules/stdlib (Makefile.am): Substitute them.
56675         * lib/stdlib.in.h (mkostemps, mkstemps): Declare them.
56676         * doc/glibc-functions/mkstemps.texi (mkstemps): New file.
56677         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
56678         * doc/gnulib.texi (Glibc stdlib.h): Include them.
56679         * MODULES.html.sh (File system functions): Mention them.
56681         tempname: resync from glibc
56682         * lib/tempname.c (__gen_tempname): Add suffixlen argument.  Use
56683         same values for __GT_FILE as glibc.  Abort even when assertions
56684         are disabled.
56685         * lib/tempname.h (GT_FILE): Use glibc __GT_FILE, if available, and
56686         match its value otherwise.  Allow idempotent inclusion.
56687         * lib/mkdtemp.c (mkdtemp): Adjust caller.
56688         * lib/mkostemp.c (mkostemp): Likewise.
56689         * lib/mkstemp.c (mkstemp): Likewise.
56690         * lib/tmpfile.c (tmpfile): Likewise.
56691         * NEWS: Document this.
56693         utimens: fix use of futimens on older Linux
56694         * lib/utimens.c (fdutimens): Use updated, rather than original,
56695         timespec to avoid bug in older Linux kernel.
56696         Reported by Simon Josefsson.
56698 2009-11-04  Bruno Haible  <bruno@clisp.org>
56700         Make num_processors more flexible and consistent.
56701         * lib/nproc.h (enum nproc_query): New type.
56702         (num_processors): Add a 'query' argument.
56703         * lib/nproc.c: Include <stdlib.h>, <sched.h>, c-ctype.h.
56704         (num_processors): Add a 'query' argument. Test the value of the
56705         OMP_NUM_THREADS environment variable if requested. On Linux, NetBSD,
56706         mingw, count the number of CPUs available for the current process.
56707         * m4/nproc.m4 (gl_PREREQ_NPROC): Require AC_USE_SYSTEM_EXTENSIONS.
56708         Check for sched_getaffinity and sched_getaffinity_np.
56709         * modules/nproc (Depends-on): Add c-ctype, extensions.
56710         * NEWS: Mention the change.
56712 2009-11-03  Bruno Haible  <bruno@clisp.org>
56714         * NEWS: Document the new library dependencies of inet_ntop, inet_pton.
56716 2009-11-03  Jim Meyering  <meyering@redhat.com>
56718         test-getaddrinfo: avoid compilation failure on FreeBSD 7.2
56719         * tests/test-getaddrinfo.c (simple): Test for EAI_NODATA only
56720         if it is defined.
56722 2009-11-02  Eric Blake  <ebb9@byu.net>
56724         mktime, timegm: share common declaration
56725         * lib/mktime-internal.h: New file.
56726         * lib/mktime.c: Use it rather than open-coding a declaration.
56727         * lib/timegm.c: Likewise.
56728         * modules/mktime (Files): Ship it.
56729         * modules/timegm (Files): Likewise.
56730         Suggested by Bruno Haible.
56732         test-update-copyright: update test to match script changes
56733         * tests/test-update-copyright.sh: Avoid hard-coding perl
56734         location.  Don't update *.bak created by earlier runs.
56736 2009-11-02  Paul Eggert  <eggert@cs.ucla.edu>
56737             Simon Josefsson  <simon@josefsson.org>
56738             Bruno Haible  <bruno@clisp.org>
56740         Fix link error on Solaris 8.
56741         * m4/inet_pton.m4 (gl_INET_PTON): Search for the function inet_pton
56742         also in libnsl. Define also INET_PTON_LIB.
56743         * modules/inet_pton (Link): New section.
56745 2009-11-02  Simon Josefsson  <simon@josefsson.org>
56746             Bruno Haible  <bruno@clisp.org>
56748         * m4/inet_ntop.m4 (gl_INET_NTOP): Define also INET_NTOP_LIB.
56749         * modules/inet_ntop (Link): New section.
56750         Reported by Boyan Kasarov <bkasarov@gmail.com>.
56752 2009-11-02  Eric Blake  <ebb9@byu.net>
56754         maint: avoid compiler warnings in m4 macros
56755         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Avoid unused variable.
56756         * m4/rmdir.m4 (gl_FUNC_RMDIR): Include correct header.
56758 2009-11-02  Simon Josefsson  <simon@josefsson.org>
56760         * m4/pmccabe2html.m4: Remove file.
56761         * modules/pmccabe2html: Drop pmccabe2html.m4.  Don't call m4
56762         function.  Change maintainer.
56763         * build-aux/pmccabe2html: Use /bin/sh with magic instead of
56764         hard-coding path to awk.  Tiny patch from ludo@gnu.org (Ludovic
56765         Courtès).
56767 2009-10-31  Eric Blake  <ebb9@byu.net>
56769         fseeko: fix m4 regression
56770         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Use modern macro.  Fixes
56771         regression from 2009-10-27.
56772         Reported by Ralf Wildenhues.
56774 2009-10-31  Jim Meyering  <meyering@redhat.com>
56776         inttostr: aesthetics and improved (compile-time) safety
56777         Define inttype_is_signed rather than inttype_is_unsigned,
56778         since the sole use is via "#if inttype_is_signed".
56779         * lib/imaxtostr.c (inttype_is_signed): Define this, rather than
56780         inttype_is_unsigned.
56781         * lib/offtostr.c (inttype_is_signed): Likewise.
56782         * lib/uinttostr.c (inttype_is_signed): Likewise.
56783         * lib/umaxtostr.c (inttype_is_signed): Likewise.
56784         * lib/inttostr.c (inttostr): Use verify to cross-check the
56785         inttype_is_signed value and the signedness of the actual type.
56786         * modules/inttostr (Depends-on): Add verify.
56788 2009-10-30  Eric Blake  <ebb9@byu.net>
56790         build: avoid compiler warnings
56791         * lib/fchmodat.c (lchmod): Mark unused variables.
56792         * lib/getopt.c (_getopt_initialize): Likewise.
56793         * lib/mktime.c (__mktime_internal): Provide prototype.
56794         * lib/inttostr.c (inttostr): Avoid compiler warning even with
56795         older gcc that do not understand #pragma GCC diagnostic.
56796         * lib/uinttostr.c (inttype_is_unsigned): Define.
56797         * lib/umaxtostr.c (inttype_is_unsigned): Likewise.
56799 2009-10-30  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
56801         stat: fix compilation on AIX
56802         * lib/sys_stat.in.h (stat): Work with fact that large files on AIX
56803         only see struct stat64.
56805 2009-10-30  Eric Blake  <ebb9@byu.net>
56807         exclude: make more robust
56808         * lib/exclude.c (excluded_file_name): Abort on unexpected value,
56809         rather than masking a coding bug.
56810         Suggested by Bruno Haible.
56812 2009-10-30  Jim Meyering  <meyering@redhat.com>
56814         perl scripts: remove #!/usr/bin/perl in favor of more portable...
56815         Rather than putting #!/usr/bin/perl on the first line,
56816         start with a variant of what's recommended by "man perlrun" that
56817         invokes the first "perl" program from your shell's search path.
56818         * build-aux/gitlog-to-changelog: Replace #!... as above.
56819         Add a "Local Variables" perl mode setting.
56820         Prompted by a patch from Ludovic Courtès.
56821         Improved by Eric Blake.
56822         * build-aux/useless-if-before-free: Likewise.
56823         * build-aux/announce-gen: Likewise.
56824         * build-aux/update-copyright: Likewise.
56826 2009-10-29  Eric Blake  <ebb9@byu.net>
56828         filenamecat-lgpl: adjust clients
56829         * modules/linkat (Depends-on): Use filenamecat-lgpl, not
56830         filenamecat.
56831         * modules/renameat (Depends-on): Likewise.
56833         filenamecat: split into filenamecat-lgpl
56834         * modules/filenamecat-lgpl: New module.
56835         * modules/filenamecat (Files): Move library-safe files into
56836         filenamecat-lgpl.
56837         (Depends-on): Add filenamecat-lgpl.
56838         (configure.ac): Declare witness.
56839         * lib/filenamecat.h (file_name_concat): Only declare when using
56840         GPL module.
56841         * lib/filenamecat.c (longest_relative_suffix, mfile_name_concat):
56842         Move...
56843         * lib/filenamecat-lgpl.c: ...into new file.
56844         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT_LGPL): New macro.
56845         (gl_FILE_NAME_CONCAT): Use it.
56846         * MODULES.html.sh (File system functions): Mention new module.
56848         argp: avoid memory leak
56849         * modules/argp (Depends-on): Use dirname-lgpl, not dirname.
56850         * lib/argp-namefrob.h (__argp_base_name): Use last_component, not
56851         base_name, since the latter malloc()s and can call exit().
56852         Leak introduced 2006-07-03.
56854         dirname-lgpl: adjust clients that don't need full dirname
56855         * modules/backupfile (Depends-on): Use dirname-lgpl, not dirname.
56856         * modules/filenamecat (Depends-on): Likewise.
56857         * modules/linkat (Depends-on): Likewise.
56858         * modules/mkancesdirs (Depends-on): Likewise.
56859         * modules/mkdir (Depends-on): Likewise.
56860         * modules/openat (Depends-on): Likewise.
56861         * modules/savewd (Depends-on): Likewise.
56862         * modules/rename (Depends-on): Likewise.
56863         (License): Relax license.
56864         * modules/mkdir-tests (Depends-on): Drop progname.
56865         (Makefile.am): Delete unneeded LDADD.
56866         * modules/rename-tests (Depends-on, Makefile.am): Likewise.
56868         dirname: split into dirname-lgpl
56869         * modules/dirname-lgpl: New module.
56870         * modules/dirname (Files): Move library-safe files into
56871         dirname-lgpl.
56872         (Depends-on): Add dirname-lgpl.
56873         (configure.ac): Declare witness.
56874         * modules/double-slash-root (License): Relax license.
56875         * lib/dirname.h (base_name, dir_name): Only declare when using GPL
56876         module.
56877         * lib/dirname.c (dir_len, mdir_name): Move...
56878         * lib/dirname-lgpl.c: ...into new file.
56879         * lib/basename.c (last_component, base_len): Move...
56880         * lib/basename-lgpl.c: ...into new file.
56881         * m4/dirname.m4 (gl_DIRNAME_LGPL): New macro.
56882         (gl_DIRNAME): Use it.
56883         * MODULES.html.sh (Enhancements for POSIX:2008 functions):
56884         Mention new module.
56885         * modules/dirname-tests (Depends-on): Add progname.
56886         * tests/test-dirname.c (program_name): Delete.
56888         mkdir: make safe for libraries
56889         * modules/mkdir (Depends-on): Drop xalloc.
56890         * lib/mkdir.c (rpl_mkdir): Fail with ENOMEM rather than calling
56891         exit.
56893         tests: avoid some compiler warnings
56894         * tests/test-getaddrinfo.c (simple): Mark static, and allow string
56895         literals.
56896         * tests/test-memchr.c (main): Avoid type mismatch.
56897         * tests/test-arpa_inet.c (main): Avoid unused parameters.
56898         * tests/test-base64.c (main): Likewise.
56899         * tests/test-getdelim.c (main): Likewise.
56900         * tests/test-gethostname.c (main): Likewise.
56901         * tests/test-getline.c (main): Likewise.
56902         * tests/test-netinet_in.c (main): Likewise.
56903         * tests/test-select.c (open_server_socket, main): Likewise.
56904         * tests/test-select-stdin.c (main): Likewise.
56905         * tests/test-sockets.c (main): Likewise.
56906         * tests/test-strsignal.c (main): Likewise.
56907         * tests/test-sys_select.c (main): Likewise.
56908         * tests/test-sys_socket.c (main): Likewise.
56909         * tests/test-u64.c (main): Likewise.
56910         * tests/test-xfprintf-posix.c (main): Likewise.
56911         * tests/test-xvasprintf.c (test_xvasprintf, main): Likewise.
56913         sockets: avoid compiler warning
56914         * lib/sockets.c (gl_sockets_startup): Mark unused parameter.
56916         maint: detect usage(1) and other suspicious exits
56917         * top/maint.mk (sc_prohibit_magic_number_exit): New rule.
56919 2009-10-29  Jim Meyering  <meyering@redhat.com>
56921         timespec: long-to-int truncation could make timespec_cmp malfunction
56922         * lib/timespec.h (timespec_cmp): Do not interpret a difference of
56923         a multiple of 2^32 nanoseconds as no difference.
56925 2009-10-28  Jim Meyering  <meyering@redhat.com>
56927         fprintftime: wrap macro code argument in "do {...} while(0)"
56928         * lib/strftime.c (cpy) [FPRINTFTIME]: The second argument to the
56929         cpy macro must be a statement that can be followed by a semicolon.
56930         Now that the else clause contains a comment and is hence longer
56931         than one line, I require curly braces.  That in turn requires
56932         that we wrap this code block in the standard do...while(0).
56934         fprintftime: remove stray semicolon from previous change
56935         * lib/strftime.c (cpy) [FPRINTFTIME]: Remove trailing semicolon.
56937         fprintftime: avoid a warning about ignored fwrite return value
56938         * lib/strftime.c [FPRINTFTIME]: Include "ignore-value.h".
56939         (cpy) [FPRINTFTIME]: Ignore fwrite failure, even though technically,
56940         that is unsafe.
56941         * modules/fprintftime (Depends-on): Add ignore-value.
56943         exclude: avoid an unwarranted warning
56944         * lib/exclude.c (excluded_file_name): Initialize "rc" before switch.
56946 2009-10-27  Eric Blake  <ebb9@byu.net>
56948         fseek: avoid compilation failure when fflush is replaced
56949         * m4/fseek.m4 (gl_REPLACE_FSEEK): New macro.
56950         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Also replace fseek, if fseek
56951         module is in use.
56952         * lib/stdio.in.h (GNULIB_FSEEKO): Only poison fseek if fseek
56953         module is not in use; since REPLACE_FSEEK worked otherwise.
56954         (GNULIB_FTELLO): Likewise for ftell.
56955         Reported by Ian Beckwith and others.
56957 2009-10-27  Bruno Haible  <bruno@clisp.org>
56959         * lib/isnan.c (rpl_isnan[fdl]): Repeat the specification declaration.
56960         Reported by Jim Meyering.
56962 2009-10-27  Jim Meyering  <jim@meyering.net>
56963             Bruno Haible  <bruno@clisp.org>
56965         Avoid warning despite dropping the return value of fwrite.
56966         * lib/unicodeio.c: Include ignore-value.h.
56967         (fwrite_success_callback): Explicitly ignore fwrite's return value.
56968         * modules/unicodeio (Depends-on): Add ignore-value.
56970 2009-10-26  Eric Blake  <ebb9@byu.net>
56972         areadlinkat: fix fallback path
56973         * lib/at-func.c (AT_FUNC_NAME): Avoid signed comparison between
56974         pointer and zero.
56976 2009-10-22  Pádraig Brady  <P@draigBrady.com>
56978         Use a better IO block size for modern systems
56979         * lib/copy-file.c (copy_file_preserving): Used a 32KiB malloced buffer.
56980         * lib/md2.c: Likewise.
56981         * lib/md4.c: Likewise.
56982         * lib/md5.c: Likewise.
56983         * lib/sha1.c: Likewise.
56984         * lib/sha256.c: Likewise.
56985         * lib/sha512.c: Likewise.
56987 2009-10-22  Eric Blake  <ebb9@byu.net>
56989         tests: avoid several compiler warnings
56990         * tests/test-getcwd.c (main): Avoid buffer underflow.
56991         * tests/test-getdate.c (main): String literals are not safe with
56992         putenv, so use setenv.  Declare unused argument.
56993         * modules/getdate-tests (Depends-on): Add setenv.
56994         * tests/test-argv-iter.c (main): Declare unused argument.  Avoid
56995         problems with string literals in char *.
56996         * tests/test-hash.c (main): Avoid shadowing declaration.
56997         (insert_new): Treat string literals as char const *.
56998         * tests/test-getopt.h (test_getopt): Likewise.
56999         (getopt_loop): Alter types to minimize casting elsewhere.
57000         * tests/test-getopt_long.h (test_getopt_long, getopt_long_loop)
57001         (test_getopt_long_posix): Likewise.
57002         (do_getopt_long): Add wrapper to minimize casting.
57003         * tests/test-atexit.c (clear_temp_file): Use void.
57004         * tests/test-areadlink-with-size.c (main): Declare unused
57005         arguments.
57006         * tests/test-areadlink.c (main): Likewise.
57007         * tests/test-areadlinkat-with-size.c (main): Likewise.
57008         * tests/test-areadlinkat.c (main): Likewise.
57009         * tests/test-canonicalize-lgpl.c (main): Likewise.
57010         * tests/test-canonicalize.c (main): Likewise.
57011         * tests/test-dirent-safer.c (main): Likewise.
57012         * tests/test-dirname.c (main): Likewise.
57013         * tests/test-dup2.c (main): Likewise.
57014         * tests/test-fchdir.c (main): Likewise.
57015         * tests/test-fcntl-h.c (main): Likewise.
57016         * tests/test-fcntl-safer.c (main): Likewise.
57017         * tests/test-fdopendir.c (main): Likewise.
57018         * tests/test-fdutimensat.c (main): Likewise.
57019         * tests/test-fflush.c (main): Likewise.
57020         * tests/test-filenamecat.c (main): Likewise.
57021         * tests/test-filevercmp.c (main): Likewise.
57022         * tests/test-fopen-safer.c (main): Likewise.
57023         * tests/test-fopen.c (main): Likewise.
57024         * tests/test-fpending.c (main): Likewise.
57025         * tests/test-fpurge.c (main): Likewise.
57026         * tests/test-freading.c (main): Likewise.
57027         * tests/test-fstatat.c (main): Likewise.
57028         * tests/test-fsync.c (main): Likewise.
57029         * tests/test-futimens.c (main): Likewise.
57030         * tests/test-getndelim2.c (main): Likewise.
57031         * tests/test-gettimeofday.c (main): Likewise.
57032         * tests/test-getopt.c (main): Likewise.
57033         * tests/test-i-ring.c (main): Likewise.
57034         * tests/test-inttypes.c (main): Likewise.
57035         * tests/test-link.c (main): Likewise.
57036         * tests/test-lstat.c (main): Likewise.
57037         * tests/test-math.c (main): Likewise.
57038         * tests/test-md5.c (main): Likewise.
57039         * tests/test-memchr2.c (main): Likewise.
57040         * tests/test-memrchr.c (main): Likewise.
57041         * tests/test-mkdir.c (main): Likewise.
57042         * tests/test-mkdirat.c (main): Likewise.
57043         * tests/test-mkfifoat.c (main): Likewise.
57044         * tests/test-open.c (main): Likewise.
57045         * tests/test-openat-safer.c (main): Likewise.
57046         * tests/test-openat.c (main): Likewise.
57047         * tests/test-quotearg.c (main): Likewise.
57048         * tests/test-rawmemchr.c (main): Likewise.
57049         * tests/test-readlink.c (main): Likewise.
57050         * tests/test-remove.c (main): Likewise.
57051         * tests/test-rename.c (main): Likewise.
57052         * tests/test-renameat.c (main): Likewise.
57053         * tests/test-rmdir.c (main): Likewise.
57054         * tests/test-sha1.c (main): Likewise.
57055         * tests/test-signal.c (main): Likewise.
57056         * tests/test-sigaction.c (main): Likewise.
57057         * tests/test-stat.c (main): Likewise.
57058         * tests/test-stat-time.c (main): Likewise.
57059         * tests/test-stddef.c (main): Likewise.
57060         * tests/test-stdint.c (main): Likewise.
57061         * tests/test-stdio.c (main): Likewise.
57062         * tests/test-stdlib.c (main): Likewise.
57063         * tests/test-strchrnul.c (main): Likewise.
57064         * tests/test-strerror.c (main): Likewise.
57065         * tests/test-string.c (main): Likewise.
57066         * tests/test-strtod.c (main): Likewise.
57067         * tests/test-strverscmp.c (main): Likewise.
57068         * tests/test-symlink.c (main): Likewise.
57069         * tests/test-symlinkat.c (main): Likewise.
57070         * tests/test-sys_stat.c (main): Likewise.
57071         * tests/test-sys_time.c (main): Likewise.
57072         * tests/test-time.c (main): Likewise.
57073         * tests/test-unistd.c (main): Likewise.
57074         * tests/test-unlink.c (main): Likewise.
57075         * tests/test-unlinkat.c (main): Likewise.
57076         * tests/test-utimens.c (main): Likewise.
57077         * tests/test-utimensat.c (main): Likewise.
57078         * tests/test-version-etc.c (main): Likewise.
57079         * tests/test-wchar.c (main): Likewise.
57080         * tests/test-wctype.c (main): Likewise.
57081         * tests/test-xprintf-posix.c (main): Likewise.
57082         * tests/test-posixtm.c (main): Likewise.
57083         (STREQ): Delete unused macro.
57084         * tests/test-linkat.c (main): Declare unused arguments.  Avoid
57085         shadowed variables.
57086         * tests/test-memchr.c (main): Likewise.
57088 2009-10-21  Eric Blake  <ebb9@byu.net>
57090         areadlinkat: avoid failure on older glibc
57091         * lib/at-func.c (AT_FUNC_NAME): Check for explicit FUNC_FAIL,
57092         rather than mis-comparing 0 against FUNC_RESULT of char*.
57094 2009-10-21  Bruno Haible  <bruno@clisp.org>
57096         * modules/stpncpy (License): Relicense under LGPLv2+.
57097         Reported by David Lutterkort <lutter@redhat.com>.
57099 2009-10-20  Eric Blake  <ebb9@byu.net>
57101         utimensat: work around Solaris 9 bug
57102         * lib/utimens.c (fdutimens, lutimens): Force a stat if platform
57103         has trailing slash bugs.
57104         * tests/test-lutimens.h (test_lutimens): Enhance test.
57105         * tests/test-utimens.h (test_utimens): Likewise.
57106         * doc/posix-functions/utime.texi (utime): Enhance documentation.
57107         * doc/posix-functions/utimes.texi (utimes): Likewise.
57108         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
57109         * doc/glibc-functions/futimesat.texi (futimesat): Likewise.
57110         * doc/glibc-functions/lutimes.texi (lutimes): Likewise.
57111         * doc/posix-functions/futimens.texi (futimens): Likewise.
57113         fdutimensat: new module
57114         * modules/fdutimensat: New file.
57115         * lib/fdutimensat.c (fdutimensat): Likewise.
57116         * lib/utimens.h (fdutimensat, lutimensat): Declare new functions.
57117         * MODULES.html.sh (File system functions): Mention module.
57118         * modules/fdutimensat-tests: New test.
57119         * tests/test-fdutimensat.c: Likewise.
57121         doc: regenerate INSTALL
57122         * doc/INSTALL: Reflect recent autoconf update.
57123         * doc/INSTALL.ISO: Likewise.
57124         * doc/INSTALL.UTF-8: Likewise.
57126 2009-10-20  Pádraig Brady  <P@draigBrady.com>
57128         acl: warn if ACL support is not detected
57129         * m4/acl.m4 (gl_FUNC_ACL): Output a warning if ACL support is not found.
57131 2009-10-19  Giuseppe Scrivano  <gscrivano@gnu.org>
57133         * lib/nproc.h: Add extern "C" block for C++.
57135 2009-10-18  Reuben Thomas  <rrt@sc3d.org>
57136             Bruno Haible  <bruno@clisp.org>
57138         * doc/posix-functions/isascii.texi: Document the 2 alternative APIs.
57139         * doc/posix-functions/isalnum.texi: Document the 4 alternative APIs.
57140         * doc/posix-functions/isalpha.texi: Likewise.
57141         * doc/posix-functions/isblank.texi: Likewise.
57142         * doc/posix-functions/iscntrl.texi: Likewise.
57143         * doc/posix-functions/isdigit.texi: Likewise.
57144         * doc/posix-functions/isgraph.texi: Likewise.
57145         * doc/posix-functions/islower.texi: Likewise.
57146         * doc/posix-functions/isprint.texi: Likewise.
57147         * doc/posix-functions/ispunct.texi: Likewise.
57148         * doc/posix-functions/isspace.texi: Likewise.
57149         * doc/posix-functions/isupper.texi: Likewise.
57150         * doc/posix-functions/isxdigit.texi: Likewise.
57152 2009-10-18  Bruno Haible  <bruno@clisp.org>
57154         Tests for module 'isblank'.
57155         * modules/isblank-tests: New file.
57156         * tests/test-isblank.c: New file.
57158         New module 'isblank'.
57159         * lib/isblank.c: New file.
57160         * m4/isblank.m4: New file.
57161         * modules/isblank: New file.
57162         * doc/posix-functions/isblank.texi: Mention the new module.
57164 2009-10-18  Bruno Haible  <bruno@clisp.org>
57166         New module 'ctype'.
57167         * lib/ctype.in.h: New file.
57168         * m4/ctype.m4: New file.
57169         * modules/ctype: New file.
57170         * doc/posix-headers/ctype.texi: Mention the new module.
57172 2009-10-18  Jim Meyering  <meyering@redhat.com>
57174         m4: stylistic-only: hoist AC_SUBST to be adjacent to initialization
57175         Declare a variable like LIB_CLOCK_GETTIME to be AC_SUBSTituted
57176         right after its initialization, rather than farther down.
57177         Keeping these in close proximity makes it easier to ensure
57178         that each such variable is initialized.  E.g.,
57180             LIB_CLOCK_GETTIME=
57181             AC_SUBST([LIB_CLOCK_GETTIME])
57183         This change also increments these serial numbers.
57184         * m4/clock_time.m4 (gl_CLOCK_TIME): Hoist AC_SUBST use.
57185         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
57186         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
57188 2009-10-18  Bruno Haible  <bruno@clisp.org>
57190         Don't let environment variables perturb build.
57191         * m4/gethrxtime.m4 (gl_GETHRXTIME): Initialize LIB_GETHRXTIME here...
57192         (gl_PREREQ_GETHRXTIME): ... not here.
57194 2009-10-18  Bruno Haible  <bruno@clisp.org>
57196         Avoid symlink attack in localcharset module.
57197         * lib/localcharset.c: Include <fcntl.h>, <unistd.h>.
57198         (O_NOFOLLOW): Define fallback.
57199         (get_charset_aliases): Don't open the file if it is a symbolic link.
57200         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): New macro, extracted from
57201         gl_FCNTL_H.
57202         (gl_FCNTL_H): Require it.
57203         * m4/localcharset.m4 (gl_LOCALCHARSET): Likewise.
57204         * modules/localcharset (Files): Add m4/fcntl_h.m4.
57205         Reported by Fergal Glynn <fglynn@veracode.com>.
57207 2009-10-18  Bruno Haible  <bruno@clisp.org>
57209         Implement nproc for mingw.
57210         * lib/nproc.c: Include <windows.h>
57211         (num_processors): On native Windows platforms, try GetSystemInfo.
57213 2009-10-18  Bruno Haible  <bruno@clisp.org>
57215         Implement nproc for IRIX.
57216         * lib/nproc.c: Include <sys/sysmp.h>.
57217         (num_processors): On IRIX systems, try sysmp.
57218         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/sysmp.h and sysmp.
57220 2009-10-18  Bruno Haible  <bruno@clisp.org>
57222         Implement nproc for HP-UX.
57223         * lib/nproc.c: Include <sys/pstat.h>
57224         (num_processors): On HP-UX systems, try pstat_getdynamic.
57225         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/pstat.h and
57226         pstat_getdynamic.
57228 2009-10-18  Giuseppe Scrivano  <gscrivano@gnu.org>
57229             Bruno Haible  <bruno@clisp.org>
57231         Implement nproc for NetBSD, OpenBSD.
57232         * lib/nproc.c: Include <sys/types.h>, <sys/param.h>, <sys/sysctl.h>.
57233         (ARRAY_SIZE): New macro.
57234         (num_processors): On BSD systems, try sysctl of HW_NCPU.
57235         * m4/nproc.m4: New file.
57236         * modules/nproc (Files): Add m4/nproc.m4.
57237         (configure.ac): Invoke gl_NPROC. Remove AC_LIBOBJ invocation.
57238         (Makefile.am): Instead, augment lib_SOURCES.
57240 2009-10-18  Bruno Haible  <bruno@clisp.org>
57242         Fix recognition of sys/sysctl.h on OpenBSD 4.0.
57243         * m4/physmem.m4 (gl_PHYSMEM): Before including sys/sysctl.h, include
57244         sys/param.h.
57246 2009-10-16  Eric Blake  <ebb9@byu.net>
57248         utimensat: new module
57249         * modules/utimensat: New file.
57250         * lib/utimensat.c (utimensat): Likewise.
57251         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
57252         * lib/utimens.c (utimensat): Avoid recursion into rpl_utimensat,
57253         so we can work around Linux bugs.
57254         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
57255         * modules/sys_stat (Makefile.am): Substitute them.
57256         * lib/sys_stat.in.h (utimensat): Declare it.
57257         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
57258         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
57259         * modules/utimensat-tests: New test.
57260         * tests/test-utimensat.c: Likewise.
57262         utimens: let lutimens work on non-symlinks
57263         * lib/utimens.c (lutimens): Fall back to utimens rather than
57264         failing with ENOSYS, when file is not a symlink.
57265         (utimens): Reduce redirection.
57266         * tests/test-lutimens.h (test_lutimens): Update test to cover
57267         non-symlinks.
57268         * tests/test-utimens.h (test_utimens): Update test to cover
57269         symlinks.
57270         * tests/test-utimens.c (main): Update caller.
57272         utimens: cache whether utimensat syscall works
57273         * lib/utimens.c (utimensat_works_really): New cache variable.
57274         (fdutimens, lutimens): Use it to avoid failing syscall.
57276         test-stat-time, test-utimens: improve portability
57277         * tests/test-stat-time.c (nap): Lengthen delay to 20ms, for
57278         ext4 on alpha, and for cygwin.
57279         * tests/test-utimens-common.h: New file.
57280         (nap): Factor delays into single function.
57281         * tests/test-lutimens.h (test_lutimens): Use new header.
57282         * tests/test-futimens.h (test_futimens): Likewise.
57283         * tests/test-utimens.h (test_utimens): Likewise.  Also, force NFS
57284         timestamps to occur from same machine, as was done previously for
57285         test_utimens.
57286         * modules/utimens-tests (Files): Ship new file.
57287         * modules/futimens-tests (Files): Likewise.
57288         Reported in part by Jim Meyering.
57290         sys_stat: sort replacement declarations
57291         * lib/sys_stat.in.h: Sort declarations.
57292         * lib/futimens.c (futimens): Fix typo.
57294 2009-10-15  Jim Meyering  <meyering@redhat.com>
57296         don't let environment settings perturb build
57297         Setting the envvars, LIB_CLOCK_GETTIME, LIB_EACCESS or LIB_NANOSLEEP
57298         could cause a configure-time and/or build-time malfunction.
57299         Typically, a configure-time function-in-library test is performed
57300         via code like this:
57302           LIB_VAR=
57303           AC_SUBST([LIB_VAR])
57304           prefix_saved_LIBS=$LIBS
57305             AC_SEARCH_LIBS([FUNC], [LIB_NAME],
57306                        [test "$ac_cv_search_FUNC" = "none required" ||
57307                         LIB_VAR=$ac_cv_search_FUNC])
57308           LIBS=$prefix_saved_LIBS
57310         However, in each of the files affected by this change, the LIB_VAR=
57311         initialization was omitted.  Thus, when set in the environment, its
57312         value would propagate into generated Makefiles when FUNC is not found
57313         in LIB_NAME.
57314         * m4/clock_time.m4 (gl_CLOCK_TIME): Initialize AC_SUBST'd var.
57315         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
57316         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
57318 2009-10-14  Eric Blake  <ebb9@byu.net>
57320         fchdir: avoid infinite recursion in mingw
57321         * lib/fchdir.c (rpl_fstat): Call system fstat, rather than
57322         recursing.
57324         test-stat-time: port to mingw
57325         * tests/test-stat-time.c (force_unlink): Return a value.
57326         (test_ctime) [W32]: Fix compilation error.
57327         (nap): Don't call usleep with too large an argument.  Use
57328         force_unlink.
57329         * doc/pastposix-functions/usleep.texi (usleep): Document the
57330         portability issue.
57332 2009-10-13  Jim Meyering  <meyering@redhat.com>
57334         use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS in modules/*
57335         * modules/pipe-filter-gi: Use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS.
57336         * modules/pipe-filter-ii: Likewise.
57337         * modules/sys_socket-tests: Likewise.
57338         * modules/tsearch-tests: Likewise.
57339         * Makefile (sc_prefer_ac_check_funcs_once): New rule.
57340         (check): Depend on it.
57342 2009-10-12  Eric Blake  <ebb9@byu.net>
57344         utimens-tests: port to NFS file systems
57345         * tests/test-utimens.h (test_utimens): Refactor utimecmp
57346         comparisons to avoid spurious failures from timestamp drift
57347         between NFS machines.
57349 2009-10-12  Eric Blake  <ebb9@byu.net>
57351         stat-time-tests: minor cleanups
57352         * modules/stat-time-tests (configure.ac): Use AC_CHECK_FUNCS_ONCE.
57353         * tests/test-stat-time.c (nap): Separate assignment from call.
57354         Suggested by Paolo Bonzini and Bruno Haible.
57356         sys_stat: guarantee struct timespec
57357         * lib/sys_stat.in.h (includes): Always include <time.h>
57358         * modules/sys_stat (Depends-on): Add time.
57359         * tests/test-sys_stat.c: Guarantee struct timespec, as well as
57360         mode_t permission values.
57361         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document how to
57362         get at subsecond timestamps.
57364 2009-10-10  Eric Blake  <ebb9@byu.net>
57366         futimens: new module
57367         * modules/futimens: New file.
57368         * lib/futimens.c (futimens): Likewise.
57369         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Likewise.
57370         * lib/utimens.c (futimens): Avoid recursion into rpl_futimens, so
57371         we can work around Linux bugs.
57372         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
57373         * modules/sys_stat (Makefile.am): Substitute them.
57374         * lib/sys_stat.in.h (futimens): Declare it.
57375         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
57376         * doc/posix-functions/futimens.texi (futimens): Likewise.
57377         * modules/futimens-tests: New test.
57378         * tests/test-futimens.c: Likewise.
57380         utimens: introduce fdutimens
57381         * lib/utimens.h (fdutimens): New prototype.
57382         * lib/utimens.c (gl_futimens): Move guts...
57383         (fdutimens): ...to new interface.
57384         * tests/test-utimens.c (do_fdutimens): Use it.
57386         utimens: add UTIME_NOW and UTIME_OMIT support
57387         * lib/utimens.c (validate_timespec, update_timespec): New helper
57388         functions.
57389         (gl_futimens, lutimens): Use them.
57390         * modules/utimens (Depends-on): Add gettime, lstat, stat-time,
57391         stdbool, sys_stat.
57392         (Link): Mention resulting library dependency.
57393         * modules/utimecmp (Link): Likewise.
57394         * modules/utimens-tests (Depends-on): Drop stat-time, stdbool.
57395         (Makefile.am): Pick up library dependency.
57396         * lib/sys_stat.in.h (UTIME_NOW, UTIME_OMIT): Guarantee a
57397         definition.
57398         * tests/test-sys_stat.c: Test the definitions.
57399         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document this.
57400         * NEWS: Document library dependency.
57402         utimecmp: support symlink timestamps
57403         * lib/utimecmp.c (utimecmp): Use new interface.  Skip effort of
57404         hashing when possible.  Use pathconf when available.
57405         (SYSCALL_RESOLUTION): Recognize tighter resolution.
57406         * modules/utimecmp (Depends-on): Add lstat.
57408         utimens: add lutimens interface
57409         * lib/utimens.c (lutimens): New function.
57410         * m4/utimens.m4 (gl_UTIMENS): Check for lutimes.
57411         * lib/utimens.h (lutimens): Declare new interface.
57412         * tests/test-utimens.c (main): Enhance test.
57413         * tests/test-lutimens.h (test_lutimens): New file.
57414         * modules/utimens-tests (Files): Distribute it.
57415         (Depends-on): Add symlink.
57416         (configure.ac): Check for usleep.
57418         utimens: validate futimens usage
57419         * lib/utimens.c (gl_futimens): Require valid fd up front, using
57420         fewer syscalls on failure later on.  Avoid compiler warning on
57421         mingw.
57422         * modules/utimens (Depends-on): Add dup2.
57424         utimens: add test
57425         * modules/utimens-tests: New test.
57426         * tests/test-utimens.h: New file.
57427         * tests/test-futimens.h: Likewise.
57428         * tests/test-utimens.c: Likewise.
57430         doc: mention timestamp portability issues
57431         * doc/glibc-functions/lutimes.texi (lutimes): Refer to utimensat
57432         instead.
57433         * doc/posix-functions/utime.texi (utime): Likewise.
57434         * doc/posix-functions/utimes.texi (utimes): Likewise.
57435         * doc/glibc-functions/futimes.texi (futimes): Refer to futimens
57436         instead.
57437         * doc/posix-functions/futimens.texi (futimens): Mention utimens
57438         module.
57439         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
57440         Mention weakness with symlink timestamps.
57441         * doc/glibc-functions/futimesat.texi (futimesat): New file; refer
57442         to utimensat/futimens instead.
57443         * doc/gnulib.texi (Glibc sys/time.h): Include new file.
57445         test-dup2: enhance test
57446         * tests/test-dup2.c (main): Also check AT_FDCWD.
57448         test-stat-time: avoid more spurious failures
57449         * tests/test-stat-time.c (nap): Wait for 15ms rather than 2ms, for
57450         xfs; and avoid race if the two timestamps cross quantization edge.
57452         relocatable: prefer 'file system' over 'filesystem'
57453         * m4/relocatable-lib.m4 (gl_RELOCATABLE_NOP): Use AS_HELP_STRING.
57454         (gl_RELOCATABLE_LIBRARY_BODY): Fix spelling.
57455         * doc/relocatable-maint.texi (Supporting Relocation): Likewise.
57456         * doc/relocatable.texi (Enabling Relocatability): Likewise.
57457         * lib/relocatable.c (compute_curr_prefix): Likewise.
57459 2009-10-10  Jim Meyering  <meyering@redhat.com>
57461         stat-time-tests: check for the usleep function
57462         * modules/stat-time-tests (configure.ac): Now that we test HAVE_USLEEP.
57464 2009-10-10  Bruno Haible  <bruno@clisp.org>
57466         * modules/xnanosleep: Put the Link section after the Include section.
57468 2009-10-09  Eric Blake  <ebb9@byu.net>
57470         dup2: work around FreeBSD 6.1 bug
57471         * m4/dup2.m4 (gl_FUNC_DUP2): Detect bug.
57472         * doc/posix-functions/dup2.texi (dup2): Document it.
57473         Reported by Nelson H. F. Beebe and Jim Meyering.
57475         test-stat-time: port to buggy NFS clients
57476         * tests/test-stat-time.c (main) [W32]: Reduce ifdefs.
57477         (test_ctime): Also skip test if mtime and ctime are skewed.
57479         maint: prefer 'file system' over 'filesystem'
57480         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
57481         * doc/posix-functions/lstat.texi (lstat): Likewise.
57482         * lib/file-has-acl.c (file_has_acl): Likewise.
57483         * lib/fwriteerror.c [TEST]: Likewise.
57484         * tests/test-areadlink.h (test_areadlink): Likewise.
57485         * tests/test-areadlinkat-with-size.c (main): Likewise.
57486         * tests/test-areadlinkat.c (main): Likewise.
57487         * tests/test-canonicalize-lgpl.c (main): Likewise.
57488         * tests/test-canonicalize.c (main): Likewise.
57489         * tests/test-fstatat.c (main): Likewise.
57490         * tests/test-linkat.c (main): Likewise.
57491         * tests/test-lstat.h (test_lstat_func): Likewise.
57492         * tests/test-mkdir.h (test_mkdir): Likewise.
57493         * tests/test-readlink.h (test_readlink): Likewise.
57494         * tests/test-remove.c (main): Likewise.
57495         * tests/test-rename.h (test_rename): Likewise.
57496         * tests/test-renameat.c (main): Likewise.
57497         * tests/test-rmdir.h (test_rmdir_func): Likewise.
57498         * tests/test-symlink.h (test_symlink): Likewise.
57499         * tests/test-symlinkat.c (main): Likewise.
57500         * tests/test-unlink.h (test_unlink_func): Likewise.
57501         * tests/test-unlinkat.c (main): Likewise.
57503         maint: make realtime library usage explicit
57504         * modules/gethrxtime (Link): Mention LIB_GETHRXTIME.
57505         * modules/gettime (Link): Mention LIB_CLOCK_GETTIME.
57506         * modules/settime (Link): Likewise.
57507         * modules/xnanosleep (Link): Mention LIB_NANOSLEEP.
57509         test-stat-time: speed up execution
57510         * tests/test-stat-time.c (test_ctime) [!W32]: Avoid compiler
57511         warning on mingw.
57512         (nap): New helper function.
57513         (prepare_test): Use it to reduce sleep time.
57514         (test_mtime, test_ctime, test_birthtime): Allow for subsecond
57515         execution.
57516         * modules/stat-time-tests (configure.ac): Check for usleep.
57518 2009-10-09  Jim Meyering  <meyering@redhat.com>
57520         selinux-h: always use getfilecon wrappers
57521         * lib/getfilecon.c: New file.
57522         * lib/se-selinux.in.h: Use a better inclusion guard symbol name.
57523         [HAVE_SELINUX_SELINUX_H]: Include-next <selinux/selinux.h>.
57524         [!HAVE_SELINUX_SELINUX_H]: Use better parameter names.
57525         (fgetfilecon): Provide a stub.
57526         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Don't
57527         AC_SUBST SELINUX_SELINUX_H, since now we're generating that
57528         file unconditionally.
57529         When <selinux/selinux.h> is found, arrange to use wrappers.
57530         * modules/selinux-h (Files): Add getfilecon.c.
57531         (Makefile.am): Substitute include-next-related bits
57532         into the now-always-generated selinux/selinux.h file.
57533         * doc/glibc-functions/lgetfilecon.texi: New file.
57534         * doc/glibc-functions/fgetfilecon.texi: New file.
57535         * doc/glibc-functions/getfilecon.texi: New file.
57536         * doc/glibc-functions/getfilecon-desc.texi: New file.
57537         * doc/gnulib.texi (Glibc selinux/selinux.h): New section, by
57538         which to pull in the new files.
57539         * MODULES.html.sh (Misc): Add selinux-h.
57541 2009-10-08  Jim Meyering  <meyering@redhat.com>
57543         unistd: fix comment typo
57544         * lib/unistd.in.h (euidaccess): Fix a comment typo.
57546 2009-10-08  Eric Blake  <ebb9@byu.net>
57548         areadlink: use SIZE_MAX consistently
57549         * modules/areadlink (Depends-on): Add stdint.
57550         * modules/areadlink-with-size (Depends-on): Likewise.
57551         * lib/areadlink-with-size.c (includes): Drop stdio, since stdlib
57552         gives NULL; drop sys/types, since unistd gives size_t; and add
57553         stdint for SIZE_MAX.
57554         (SIZE_MAX): Rely on headers.
57555         * lib/areadlinkat-with-size.c (includes): Drop stdio, sys/types,
57556         and add stdint.
57557         * lib/areadlink.c (includes): Drop sys/types, and add stdint.
57558         (SIZE_MAX): Likewise.
57559         (INITIAL_BUF_SIZE): Turn into enum.
57560         * lib/areadlinkat.c (INITIAL_BUF_SIZE): Likewise.
57562 2009-10-08  Jim Meyering  <meyering@redhat.com>
57564         areadlinkat: avoid compilation failure
57565         * lib/areadlinkat.c: Include <stdint.h> for use of SIZE_MAX.
57566         Fix typo in comment.
57568 2009-10-07  Eric Blake  <ebb9@byu.net>
57570         areadlinkat-with-size: new module
57571         * modules/areadlinkat-with-size: New module.
57572         * lib/areadlinkat-with-size.c (areadlinkat_with_size): New file.
57573         * lib/areadlink.h (areadlinkat): Declare it.
57574         * MODULES.html.sh (File system functions): Mention it.
57575         * modules/areadlinkat-with-size-tests: New test.
57576         * tests/test-areadlinkat-with-size.c: New file.
57578         xreadlinkat: new module
57579         * modules/xreadlinkat: New module.
57580         * lib/xreadlinkat.c (xreadlinkat): New file.
57581         * lib/xreadlink.h (xreadlinkat): Declare it.
57582         * MODULES.html.sh (File system functions): Mention it.
57584         areadlinkat: new module
57585         * lib/at-func.c (FUNC_FAIL): New define.
57586         (AT_FUNC_NAME, VALIDATE_FLAG): Use it rather than raw -1.
57587         * modules/areadlinkat: New module.
57588         * lib/linkat.c (areadlinkat): Move...
57589         * lib/areadlinkat.c (areadlinkat): ...to new file.
57590         * lib/areadlink.h (areadlinkat): Declare it.
57591         * modules/linkat (Depends-on): Add areadlinkat.
57592         * MODULES.html.sh (File system functions): Mention it.
57593         * modules/areadlinkat-tests: New test.
57594         * tests/test-areadlinkat.c: New file.
57596         areadlink, areadlink-with-size: add tests
57597         * modules/areadlink-tests: New test.
57598         * modules/areadlink-with-size-tests: Likewise.
57599         * tests/test-areadlink.h: New file.
57600         * tests/test-areadlink.c: Likewise.
57601         * tests/test-areadlink-with-size.c: Likewise.
57603         maint: minor cleanups
57604         * lib/fts.c (ATTRIBUTE_UNUSED): Delete; use gnulib-guaranteed
57605         _UNUSED_PARAMETER_ instead.
57606         * lib/getdate.y (ATTRIBUTE_UNUSED): Likewise.
57607         * lib/utimens.c (ATTRIBUTE_UNUSED): Likewise.
57608         * modules/linkat-tests (Files): Distribute test-link.h.
57610         openat, utimens: whitespace cleanup
57611         * lib/openat.c: Prefer space throughout, rather than mix of 8
57612         spaces vs. tabs.
57613         * lib/at-func.c: Likewise.
57614         * lib/utimens.c: Likewise.
57616         openat: avoid using wrong fd
57617         * lib/openat.c (openat_permissive): Reject user's fd if saving the
57618         working directory chooses same fd.
57619         * lib/at-func.c (AT_FUNC_NAME): Likewise.
57621         mkdir, mkdirat: fix cygwin 1.5.x bug
57622         * lib/mkdir.c (rpl_mkdir) [FUNC_MKDIR_DOT_BUG]: Work around bug.
57623         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Move...
57624         * m4/mkdir.m4 (gl_FUNC_MKDIR): ...here, and add check for cygwin
57625         bug.
57626         (gl_PREREQ_MKDIR): Delete unused macro.
57627         * modules/mkdir (Files): Track file rename.
57628         (configure.ac): Update macro name.
57629         * modules/openat (Depends-on): Add mkdir.
57630         * doc/posix-functions/mkdir.texi (mkdir): Document the bug.
57632         mkdir, mkdirat: add tests
57633         * modules/mkdir-tests: New test.
57634         * tests/test-mkdir.h: New file.
57635         * tests/test-mkdir.c: Likewise.
57636         * tests/test-mkdirat.c: Likewise.
57637         * modules/openat-tests (Files): Add new files.
57638         (Makefile.am): Run new test.
57640 2009-10-06  Eric Blake  <ebb9@byu.net>
57642         doc: tweak *at function documentation
57643         * doc/posix-functions/faccessat.texi (faccessat): Mention
57644         known issue with replacement.
57645         * doc/posix-functions/fchdir.texi (fchdir): Likewise.
57646         * doc/posix-functions/linkat.texi (linkat): Likewise.
57647         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
57648         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
57649         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
57650         * doc/posix-functions/renameat.texi (renameat): Likewise.
57651         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
57653         openat: fix GNU/Hurd bug in unlinkat
57654         * m4/openat.m4 (gl_FUNC_OPENAT): Replace unlinkat if unlink is
57655         broken.
57656         * doc/posix-functions/unlink.texi (unlink): Document this.
57657         * doc/posix-functions/unlinkat.texi (unlinkat): Likewise.
57659         fdopendir: fix GNU/Hurd bug
57660         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for Hurd bug in
57661         allowing non-directory fds.
57662         * lib/fdopendir.c (rpl_fdopendir): Work around it.
57663         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
57664         * modules/dirent (Makefile.am): Substitute it.
57665         * lib/dirent.in.h (fdopendir): Declare replacement.
57666         * doc/posix-functions/fdopendir.texi (fdopendir): Document this.
57667         * tests/test-fdopendir.c (main): Test something other than
57668         /dev/null, since on Hurd that behaves like a directory.
57670         test-symlink: port to GNU/Hurd
57671         * tests/test-symlink.h (test_symlink): Relax expected errno.
57673         doc: tweak more cygwin information
57674         * doc/glibc-headers/getopt.texi (getopt.h): Cygwin 1.7 getopt is
57675         now compatible with glibc.
57676         * doc/posix-functions/getopt.texi (getopt): Likewise.
57678         getopt-gnu: add another test
57679         * tests/test-getopt_long.h (test_getopt_long_posix): New test, to
57680         guarantee behavior relied on by m4.
57681         * tests/test-getopt.c (main): Use it.
57682         * modules/getopt-posix-tests (Depends-on): Add setenv.
57683         See http://lists.gnu.org/archive/html/bug-m4/2006-09/msg00028.html.
57685         getopt: fix compilation on darwin
57686         * lib/getopt.in.h (includes): Leave breadcrumbs during system
57687         include.
57688         * lib/unistd.in.h (getopt): Use them to avoid recursive include.
57689         Reported by Ludovic Courtès.
57691 2009-10-06  Bruno Haible  <bruno@clisp.org>
57693         * modules/size_max (Description): Discourage its use.
57694         Reported by Simon Josefsson.
57696 2009-10-06  Jim Meyering  <meyering@redhat.com>
57698         linkat: avoid compilation failure
57699         * lib/linkat.c: Include <stdint.h> for use of SIZE_MAX.
57701 2009-10-05  Eric Blake  <ebb9@byu.net>
57703         linkat: support Linux 2.6.17
57704         * m4/linkat.m4 (gl_FUNC_LINKAT): Default to always replacing
57705         linkat on Linux, but allow cache variable override.
57706         * lib/linkat.c (rpl_linkat): Define override.
57707         * modules/linkat (Depends-on): Add symlinkat.
57708         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add new default.
57709         * modules/unistd (Makefile.am): Substitute it.
57710         * lib/unistd.in.h (linkat): Declare replacement.
57711         Reported by Pádraig Brady.
57713         quotearg: port test to systems with C.UTF-8 locale
57714         * tests/test-quotearg.c (struct result_strings): Add another
57715         member, differentiating between C.ASCII and C.UTF-8 handling.
57716         (compare_strings): Add parameter.
57717         (main): Adjust all callers.
57719         getopt: avoid clash with FreeBSD _getopt_internal
57720         * lib/getopt.in.h (_getopt_internal): Override the name.
57721         * lib/getopt_int.h (includes): Pick up any overrides.
57722         Reported by Reuben Thomas.
57724         hash: allow C89 compilation
57725         * lib/hash.c (check_tuning): Move declaration before statement.
57726         Reported by Reuben Thomas.
57728 2009-10-05  Karl Berry  <karl@gnu.org>
57730         * doc/gnulib.texi: @include execvpe.texi, missing for several days.
57732 2009-10-04  Paolo Bonzini  <bonzini@gnu.org>
57733             Bruno Haible  <bruno@clisp.org>
57735         * lib/uname.c (uname): Use a table-driven algorithm to compute
57736         Windows NT versions.
57738 2009-10-04  Bruno Haible  <bruno@clisp.org>
57740         * lib/progname.c (set_program_name): Also remove the "lt-" prefix from
57741         program_invocation_short_name.
57742         * modules/progname (configure.ac): Test for presence of
57743         program_invocation_short_name.
57744         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
57746 2009-10-04  Bruno Haible  <bruno@clisp.org>
57748         * lib/progname.c (set_program_name): Fix comment.
57749         Reported by Jim Meyering.
57751 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
57752             Bruno Haible  <bruno@clisp.org>
57754         * lib/uname.c: Include <string.h>.
57755         (uname): Do only one call to GetVersionEx in the common case.
57757 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
57758             Bruno Haible  <bruno@clisp.org>
57760         * lib/uname.c (VER_PLATFORM_WIN32_CE, PROCESSOR_ARCHITECTURE_AMD64,
57761         PROCESSOR_ARCHITECTURE_IA32_ON_WIN64): Define fallbacks.
57762         (uname): Add support for Windows CE and various non-x86 CPU types.
57764 2009-10-03  Bruno Haible  <bruno@clisp.org>
57766         * gnulib-tool (func_create_testdir): Conditionally emit AM_PROG_CC_C_O
57767         invocation to tests/configure.ac.
57768         Reported by Ian Beckwith <ianb@erislabs.net>.
57770 2009-10-02  Eric Blake  <ebb9@byu.net>
57772         fchdir: avoid compiler warning
57773         * lib/fchdir.c (canonicalize_file_name)
57774         [!HAVE_CANONICALIZE_FILE_NAME]: Avoid compiler warning on mingw.
57776         test-open: support mingw errno values
57777         * tests/test-open.h (test_open): Relax test.
57778         * tests/test-fopen.h (test_fopen): Likewise.
57779         * tests/test-openat-safer.c (main): Likewise.
57781         open: fix opening directory on mingw
57782         * lib/open.c (open) [REPLACE_OPEN_DIRECTORY]: Correct typo.
57784         test-open: on GNU/Hurd, /dev/null is a directory
57785         * tests/test-fopen.h (main): Rename...
57786         (test_fopen): ...to this.  Use a guaranteed non-directory when
57787         confirming open behavior on trailing slash.
57788         * tests/test-openat-safer.c (main): Likewise.
57789         * tests/test-open.h (main): Likewise....
57790         (test_open): ...to this.
57791         * tests/test-fopen.c (main): Adjust caller.
57792         * tests/test-fopen-safer.c (main): Likewise.
57793         * tests/test-open.c (main): Likewise.
57794         * tests/test-fcntl-safer.c (main): Likewise.
57795         Reported by Samuel Thibault.
57797         rename, fchdir: don't ignore chdir failure
57798         * lib/fchdir.c (get_name): Abort on unexpected chdir failure.
57799         * lib/rename.c (rpl_rename) [W32]: Likewise.
57800         (rpl_rename) [RENAME_DEST_EXISTS_BUG]: Avoid one case of losing
57801         an empty destination directory if source cannot be renamed,
57802         although there is still possibility for failure.
57803         * doc/posix-functions/rename.texi (rename): Document the race.
57804         Reported by Jim Meyering.
57806         maint: cleanup whitespace in recent commits
57807         * lib/rename.c (rpl_rename): Remove tabs.
57808         * tests/test-link.h (test_link): Likewise.
57809         * lib/fchdir.c (get_name): Likewise.
57810         Reported by Jim Meyering.
57812 2009-10-02  Ben Pfaff  <blp@gnu.org>
57814         relocatable-prog-wrapper: Add missing dependency on
57815         double-slash-root.
57816         * modules/relocatable-prog-wrapper: Add dependency.
57817         Reported by Ian Beckwith <ianb@erislabs.net>.
57819 2009-10-02  Eric Blake  <ebb9@byu.net>
57821         renameat: fix Solaris bugs
57822         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Replace renameat if rename
57823         needed fixing.
57824         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): New witness.
57825         * modules/stdio (Makefile.am): Substitute it.
57826         * lib/stdio.in.h (renameat): Declare replacement.
57827         * lib/renameat.c (rpl_renameat): Implement fix.
57829         renameat: new module
57830         * modules/renameat: New file.
57831         * lib/renameat.c (renameat): Likewise.
57832         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Likewise.
57833         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
57834         * modules/stdio (Makefile.am): Substitute them.
57835         * lib/stdio.in.h (renameat): Declare it.
57836         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
57837         * doc/posix-functions/renameat.texi (renameat): Likewise.
57838         * modules/renameat-tests: New test.
57839         * tests/test-renameat.c: Likewise.
57841         rename: fix mingw bugs
57842         * lib/rename.c (rpl_rename) [W32]: Fix trailing slash and
57843         directory overwrite bugs.
57845         rename: fix another cygwin 1.5 bug
57846         * m4/rename.m4 (gl_FUNC_RENAME): Split cygwin bugs into two
57847         checks.
57848         * lib/rename.c (rpl_rename): Don't penalize NetBSD with
57849         unnecessary cygwin workarounds.  Also work around bug with moving
57850         full directory onto an empty one.
57851         * modules/rename (Depends-on): Add canonicalize-lgpl, rmdir.
57853         rename-dest-slash: merge into rename module
57854         * modules/rename-dest-slash (Status): Mark obsolete.
57855         (Depends-on): Add rename.
57856         (Files): Let rename do it all.
57857         * m4/rename.m4 (gl_FUNC_RENAME): Also test for NetBSD bugs,
57858         subsuming the test from gl_FUNC_RENAME_TRAILING_DEST_SLASH...
57859         * m4/rename-dest-slash.m4: ...so this file can be deleted.
57860         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Delete.
57861         * lib/rename.c (rpl_rename): Update comments.
57863         rename: fix cygwin 1.5.x bugs
57864         * m4/rename.m4 (gl_FUNC_RENAME): Detect cygwin bugs.
57865         * lib/rename.c (rpl_rename): Work around them.
57866         * modules/rename (Depends-on): Add same-inode.
57868         rename: fix Solaris 10 bug
57869         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
57870         * lib/rename.c (rpl_rename): Don't cripple POSIX behavior if this
57871         was the only bug.
57873         rename: fix Solaris 9 bug
57874         * lib/rename.c (rpl_rename): Rewrite to recognize trailing slash
57875         on non-directory.  Avoid calling exit.
57876         * modules/rename (Depends-on): Drop xalloc; add lstat, stdbool,
57877         strdup.
57878         * modules/rename-tests (Depends-on): Drop lstat.
57879         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
57880         (gl_PREREQ_RENAME): Delete unused macro.
57882         rename-dest-slash: fix NetBSD bug
57883         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Detect hard
57884         links.
57885         * modules/rename-dest-slash (Depends-on): Add same-inode.
57887         rename-tests: new test, exposes several platform bugs
57888         * modules/rename-tests: New file.
57889         * tests/test-rename.h: Likewise.
57890         * tests/test-rename.c: Likewise.
57891         * doc/posix-functions/rename.texi (rename): Improve documentation,
57892         including bugs that will eventually be fixed in gnulib.
57894 2009-10-02  Paolo Bonzini  <bonzini@gnu.org>
57896         * lib/uname.c: Include <stdlib.h>
57897         (uname): Assume version info is available.
57899 2009-10-02  Jim Meyering  <meyering@redhat.com>
57901         gnu-web-doc-update: correct --help output
57902         * build-aux/gnu-web-doc-update: Make --help output relevant.
57904         gnu-web-doc-update: add standard options
57905         * build-aux/gnu-web-doc-update: Add --help, --version, etc.
57907         gnu-web-doc-update: New module.
57908         Use this script to automatically update the on-line web documentation
57909         for your GNU project at http://www.gnu.org/software/$pkg/manual/
57910         * modules/gnu-web-doc-update: New file, from coreutils.
57911         * build-aux/gnu-web-doc-update: New script.
57913 2009-10-01  Paolo Bonzini  <bonzini@gnu.org>
57915         link: LoadLibrary is not needed.
57916         * lib/link.c: Use GetModuleHandle.
57918 2009-10-01  Eric Blake  <ebb9@byu.net>
57920         getopt: bump serial number
57921         * m4/getopt.m4: Increment serial number, to account for 2009-09-24
57922         change.
57924         tests: tighten link, rmdir, and remove tests
57925         * tests/test-link.h (includes): No need to use <config.h> here.
57926         Clean up if directory hard link was created, otherwise test for
57927         trailing '.'.
57928         * tests/test-linkat.c (main): Simplify.
57929         * tests/test-remove.c (main): Enhance test for trailing '.'.
57930         * tests/test-rmdir.h (test_rmdir_func): Likewise.
57932 2009-10-01  Jim Meyering  <meyering@redhat.com>
57934         maint.mk: requiring "make major" was annoying, for a "minor" release.
57935         What is intended is "stable", to contrast with alpha and beta,
57936         so require "make stable", not "make major".
57937         * build-aux/announce-gen (%valid_release_types): s/major/stable/.
57938         (get_tool_versions): Likewise.
57939         * top/maint.mk (ALL_RECURSIVE_TARGETS): s/major/stable/
57941 2009-09-30  Ben Pfaff  <blp@gnu.org>
57943         Fix broken build of replacement for Windows tmpfile().
57944         * lib/tmpfile.c (tmpfile): Fix call to gen_tempname() to provide
57945         flags argument added along with the 'mkostemp' module.
57947 2009-09-28  Bruno Haible  <bruno@clisp.org>
57949         Avoid identifier clash with POSIX function 'remove' defined as a macro.
57950         * lib/gl_list.h (struct gl_list_implementation): Rename field 'remove'
57951         to 'remove_elt'.
57952         (gl_list_remove): Update.
57953         * lib/gl_list.c (gl_list_remove): Update.
57954         * lib/gl_oset.h (struct gl_oset_implementation): Rename field 'remove'
57955         to 'remove_elt'.
57956         (gl_oset_remove): Update.
57957         * lib/gl_list.c (gl_oset_remove): Update.
57958         Reported by Eric Blake.
57960 2009-09-28  Eric Blake  <ebb9@byu.net>
57962         doc: mention yet more cygwin 1.7 status
57963         * doc/posix-functions/fexecve.texi (fexecve): Now implemented in
57964         cygwin.
57965         * doc/glibc-functions/execvpe.texi (execvpe): New file.
57966         * doc/gnulib.texi (Glibc unistd.h): Mention it.
57968         argp: fix test failure
57969         * lib/argp-help.c (hol_entry_cmp): Don't use _tolower on values
57970         that are not upper-case.  Pass correct range to tolower.
57972 2009-09-27  Jim Meyering  <meyering@redhat.com>
57974         test-yesno: work around sparc-dash here-document infelicity
57975         Without this change, the literal \177 byte in a here document
57976         would make dash 0.5.5.1-3 access uninitialized memory.
57977         * tests/test-yesno.sh: Don't put the \177 byte in the here document.
57978         Instead, use a marker, "@", and filter through tr to create the desired
57979         contents.  Reported as <http://bugs.debian.org/548493> by Kurt Roeckx.
57981 2009-09-27  Bruno Haible  <bruno@clisp.org>
57983         Disable untested support for new flavours of ACLs on AIX.
57984         * lib/file-has-acl.c (file_has_acl): Mark newer AIX code as work in
57985         progress.
57986         * lib/set-mode-acl.c (qset_acl): Likewise.
57988 2008-12-07  Bruno Haible  <bruno@clisp.org>
57990         Add support for new flavours of ACLs on AIX. (Untested.)
57991         * lib/file-has-acl.c [AIX] (acl_nfs4_nontrivial): New function.
57992         (file_has_acl): Add support for newer AIX.
57993         * lib/set-mode-acl.c (qset_acl): Likewise.
57994         * tests/test-sameacls.c (main): Fix use of aclx_get function. Hint by
57995         Rainer Tammer <tammer@tammer.net>.
57997 2009-09-26  Eric Blake  <ebb9@byu.net>
57999         argp: fix compilation of getopt
58000         * lib/getopt.in.h (includes): Use different guard than glibc.
58001         Reported by Sergey Poznyakoff.
58003         doc: mention more cygwin 1.7 status
58004         * doc/posix-functions/access.texi (access): Mention cygwin 1.5
58005         bug.
58006         * doc/posix-functions/execl.texi (execl): Likewise.
58007         * doc/posix-functions/execle.texi (execle): Likewise.
58008         * doc/posix-functions/execlp.texi (execlp): Likewise.
58009         * doc/posix-functions/execv.texi (execv): Likewise.
58010         * doc/posix-functions/execve.texi (execve): Likewise.
58011         * doc/posix-functions/execvp.texi (execvp): Likewise.
58012         * doc/glibc-functions/canonicalize_file_name.texi
58013         (canonicalize_file_name): Cygwin 1.7 now provides this.
58014         * doc/glibc-functions/euidaccess.texi (euidaccess): Likewise.
58015         * doc/posix-functions/fchmodat.texi (fchmodat): Mention limitation
58016         on AT_SYMLINK_NOFOLLOW.
58018 2009-09-24  Eric Blake  <ebb9@byu.net>
58020         test-linkat: make test more robust
58021         * tests/test-linkat.c (main): Avoid collision with EEXIST.
58023         getopt: fix inclusion guards for cygwin
58024         * modules/getopt-posix (Depends-on): Add include-next.
58025         (Makefile.am): Substitute more items in replacement header.
58026         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Also check for native
58027         <getopt.h>.
58028         * lib/getopt.in.h (includes): Use split inclusion guard, and
58029         prefer <getopt.h> over include <unistd.h> when one is present.
58030         (option): Also override name of 'struct option'.
58032         same-inode: revert prior change; it is not yet ready
58033         * NEWS: Undo mention of this change.
58034         * lib/same-inode.h (same-inode.h): Undo tri-state change.
58035         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
58036         * lib/cycle-check.c (cycle_check): Likewise.
58037         * lib/same.c (same_name): Likewise.
58038         * lib/at-func2.c (at_func2): Likewise.
58040 2009-09-23  Eric Blake  <ebb9@byu.net>
58042         linkat: new module
58043         * modules/linkat: New file.
58044         * lib/at-func2.c (at_func2): Likewise.
58045         * lib/linkat.c (linkat): Likewise.
58046         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
58047         * lib/openat-priv.h (at_func2): Add declaration.
58048         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
58049         * modules/unistd (Makefile.am): Substitute them.
58050         * lib/unistd.in.h (linkat): Declare it.
58051         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
58052         * doc/posix-functions/linkat.texi (linkat): Likewise.
58053         * doc/posix-functions/link.texi (link): Tweak wording.
58054         * tests/test-link.c (main): Move guts...
58055         * tests/test-link.h (test_link): ...into new file.
58056         * modules/linkat-tests: New test.
58057         * tests/test-linkat.c: Likewise.
58058         * modules/link-tests (Files): Ship new file.
58059         (Depends-on): Add stdbool.
58061         dirname: add library-safe mdir_name
58062         * lib/dirname.h (mdir_name): New prototype.
58063         * lib/dirname.c (dir_name): Move guts...
58064         (mdir_name): ...to new function that avoids xalloc_die.
58066         fchdir: another mingw fix
58067         * modules/fchdir (Depends-on): Drop canonicalize-lgpl.
58068         * lib/fchdir.c (get_name): New helper method; skips canonicalize
58069         on mingw (where it has not yet been ported), and make it optional
58070         elsewhere.
58071         (_gl_register_fd): Use it.
58073         same-inode: make SAME_INODE tri-state, to port to mingw
58074         * NEWS: Mention this change.
58075         * lib/same-inode.h (same-inode.h): Recognize mingw limitation of
58076         st_ino always being 0.
58077         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
58078         * lib/cycle-check.c (cycle_check): Likewise.
58079         * lib/same.c (same_name): Likewise.
58081         lstat: avoid mingw compilation error
58082         * m4/lstat.m4 (gl_FUNC_LSTAT): Avoid duplicate calls to
58083         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, and deal with missing
58084         lstat ourselves.
58085         * lib/lstat.c [!HAVE_LSTAT]: Do nothing if <sys/stat.h> override
58086         was adequate.
58087         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Let lstat module handle
58088         the checks for lstat.
58089         (gl_SYS_STAT_H_DEFAULTS): Set default for HAVE_LSTAT.
58091         link: fix test failure on Solaris 9
58092         * lib/link.c (rpl_link): Don't assume link will catch bogus
58093         trailing slash on source.
58095         test-symlinkat: enhance test
58096         * tests/test-readlink.c (main): Move guts...
58097         * tests/test-readlink.h (test_readlink): ...into new file.
58098         * tests/test-symlink.c (main): Move guts...
58099         * tests/test-symlink.h (test_symlink): ...into new file.
58100         * tests/test-symlinkat.c (main): Use new files for further
58101         coverage.
58102         (do_symlink, do_readlink): New helper functions.
58103         * modules/symlink-tests (Files): Ship new file.
58104         (Depends-on): Add stdbool.
58105         * modules/readlink-tests (Files): Ship new file.
58106         (Depends-on): Add stdbool.
58107         * modules/symlinkat-tests (Files): Use new files.
58109 2009-09-23  Eric Blake  <ebb9@byu.net>
58111         readlink: document portability issue with symlink length
58112         * doc/posix-functions/lstat.texi (lstat): Mention that some file
58113         systems have bogus st_size on symlinks, and mention the
58114         areadlink-with-size module.
58115         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
58116         * doc/posix-functions/readlink.texi (readlink): Mention the
58117         areadlink module, and ERANGE failure.
58118         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
58119         * tests/test-readlink.c (main): Relax test for AIX, HP-UX.
58121         readlink: fix Solaris 9 bug with trailing slash
58122         * lib/readlink.c (rpl_readlink): Work around trailing slash bug.
58123         * m4/readlink.m4 (gl_FUNC_READLINK): Detect the bug.
58124         * doc/posix-functions/readlink.texi (readlink): Document this.
58125         * modules/readlink-tests: New test.
58126         * tests/test-readlink.c: Likewise.
58128         readlink: fix cygwin 1.5.x bug with return type
58129         * m4/readlink.m4 (gl_FUNC_READLINK): Require correct signature.
58130         * lib/unistd.in.h (readlink): Use ssize_t.
58131         * lib/readlink.c (readlink): Likewise.
58132         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
58133         * modules/unistd (Makefile.am): Substitute it.
58134         * lib/unistd.in.h (readlink): Declare replacement.
58135         * doc/posix-functions/readlink.texi (readlink): Document this.
58137         symlink: use throughout gnulib
58138         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Omit symlink check.
58139         * lib/symlinkat.c (symlinkat) [!HAVE_SYMLINK]: Document why
58140         symlink is not used.
58141         * modules/symlinkat (Depends-on): Add symlink.
58142         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
58143         * modules/canonicalize-tests (Depends-on): Likewise.
58144         * modules/lstat-tests (Depends-on): Likewise.
58145         * modules/openat-tests (Depends-on): Likewise.
58146         * modules/remove-tests (Depends-on): Likewise.
58147         * modules/rmdir-tests (Depends-on): Likewise.
58148         * modules/unlink-tests (Depends-on): Likewise.
58149         * tests/test-canonicalize-lgpl.c (symlink): Delete stub.
58150         * tests/test-canonicalize.c (symlink): Likewise.
58151         * tests/test-fstatat.c (symlink): Likewise.
58152         * tests/test-lstat.c (symlink): Likewise.
58153         * tests/test-remove.c (symlink): Likewise.
58154         * tests/test-rmdir.c (symlink): Likewise.
58155         * tests/test-unlink.c (symlink): Likewise.
58156         * tests/test-unlinkat.c (symlink): Likewise.
58158         symlink: new module, for Solaris 9 bug
58159         * modules/symlink: New file.
58160         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
58161         * lib/symlink.c: Likewise.
58162         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
58163         * modules/unistd (Makefile.am): Substitute them.
58164         * lib/unistd.in.h (symlink): Declare replacement.
58165         * MODULES.html.sh (File system functions): Mention it.
58166         * doc/posix-functions/symlink.texi (symlink): Likewise.
58167         * modules/symlink-tests: New test.
58168         * tests/test-symlink.c: Likewise.
58170 2009-09-23  Bruno Haible  <bruno@clisp.org>
58172         * gnulib-tool (func_import): Add 'link-warning' to testsrelated_modules
58173         when needed.
58174         Test case: gnulib-tool --import --with-tests atexit inttypes.
58175         Reported by Pauli Miettinen <pauli.miettinen@cs.helsinki.fi>.
58177 2009-09-23  Bruno Haible  <bruno@clisp.org>
58179         * gnulib-tool (func_emit_tests_Makefile_am): Set uses_subdirs in a
58180         subcommand, not in a subshell.
58182 2009-09-22  Eric Blake  <ebb9@byu.net>
58184         unistd: sort replacement declarations
58185         * lib/unistd.in.h: Sort declarations.
58187         open, openat: minor optimization
58188         * lib/open.c (open): If open succeeded, len is non-zero.
58189         * lib/openat.c (rpl_openat): Likewise.
58191         link-follow: ensure correct result
58192         * m4/fcntl_h.m4 (gl_FCNTL_H): Clean up temporary file.
58193         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Likewise, and
58194         distinguish between possible failures.
58196 2009-09-21  Eric Blake  <ebb9@byu.net>
58198         fts: avoid compiler warning
58199         * lib/fts.c (dirent_inode_sort_may_be_useful)
58200         (leaf_optimization_applies) [!__linux__]: Mark unused parameters.
58202 2009-09-19  Bruno Haible  <bruno@clisp.org>
58204         * lib/progreloc.c (canonicalize_file_name): New declaration.
58206 2009-09-19  Eric Blake  <ebb9@byu.net>
58208         link: fix quoting
58209         * m4/link.m4 (gl_FUNC_LINK): Fix shell quoting.
58211         openat: fix openat bugs on Solaris 9
58212         * lib/openat.c (rpl_openat): Work around Solaris 9 bug.
58213         * m4/openat.m4 (gl_FUNC_OPENAT): Also replace openat on Solaris.
58214         * modules/openat (Depends-on): Add open.
58215         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide new default.
58216         * modules/fcntl-h (Makefile.am): Substitute it.
58217         * lib/fcntl.in.h (openat): Declare replacement.
58218         * doc/posix-functions/openat.texi (openat): Document this.
58220         openat: move fstatat and unlinkat into correct files
58221         * m4/openat.m4 (gl_FUNC_OPENAT): Adjust which files will be
58222         compiled.
58223         * lib/openat.c (fstatat, unlinkat): Move...
58224         * lib/fstatat.c (fstatat): ...into correct files.
58225         * lib/unlinkat.c (unlinkat): Likewise.
58227         openat: fix unlinkat bugs on Solaris 9
58228         * lib/unlinkat.c (unlinkat): New file.
58229         * modules/openat (Depends-on): Add unlink.
58230         (Files): Distribute it.
58231         * m4/openat.m4 (gl_FUNC_OPENAT): Mark unlinkat for replacement if
58232         trailing slash behavior is broken.
58233         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
58234         * modules/unistd (Makefile.am): Substitute it.
58235         * lib/unistd.in.h (unlinkat): Declare replacement.
58236         * doc/posix-functions/unlinkat.texi (unlinkat): Document this.
58238         openat: fix fstatat bugs on Solaris 9
58239         * lib/fstatat.c (rpl_fstatat): Copy recent fixes from lstat and
58240         stat.
58241         * doc/posix-functions/fstatat.texi (fstatat): Document this.
58243         test-unlinkat: enhance test, to expose Solaris 9 bug
58244         * tests/test-unlink.c (main): Factor guts...
58245         * tests/test-unlink.h (test_rmdir_func): ...into new file.
58246         * tests/test-rmdir.h (test_rmdir_func): Add parameter.
58247         * tests/test-rmdir.c (main): Adjust caller.
58248         * tests/test-unlinkat.c (main): Likewise.  Add unlink tests.
58249         (unlinker): New helper function.
58250         (rmdirat): Enhance check.
58251         * modules/rmdir-tests (Depends-on): Add stdbool.
58252         * modules/unlink-tests (Depends-on): Likewise.
58253         (Files): Add test-unlink.h.
58254         * modules/openat-tests (Files): Likewise.
58255         (Depends-on): Add unlinkdir.
58257         test-fstatat: new test, to expose Solaris 9 bugs
58258         * tests/test-stat.c (main): Factor guts...
58259         * tests/test-stat.h (test_stat_func): ...into new file.
58260         * tests/test-lstat.c (main): Factor guts...
58261         * tests/test-lstat.h (test_lstat_func): ...into new file.
58262         * tests/test-fstatat.c: New file.
58263         * modules/stat-tests (Files): Add test-stat.h.
58264         * modules/lstat-tests (Files): Add test-lstat.h.
58265         (Depends-on): Add stdbool.
58266         * modules/openat-tests (Depends-on): Add pathmax.
58267         (Files): Add test-lstat.h, test-stat.h, test-fstatat.c.
58268         (Makefile.am): Run new test.
58270         remove: new module, for mingw and Solaris 9 bugs
58271         * modules/remove: New file.
58272         * lib/remove.c: Likewise.
58273         * m4/remove.m4 (gl_FUNC_REMOVE): Likewise.
58274         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
58275         * modules/stdio (Makefile.am): Use them.
58276         * lib/stdio.in.h (remove): Declare replacement.
58277         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
58278         * doc/posix-functions/remove.texi (remove): Likewise.
58279         * modules/remove-tests: New test.
58280         * tests/test-remove.c: Likewise.
58282         unlink: new module, for Solaris 9 bug
58283         * modules/unlink: New file.
58284         * lib/unlink.c: Likewise.
58285         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
58286         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
58287         * modules/unistd (Makefile.am): Use them.
58288         * lib/unistd.in.h (stat): Declare replacement.
58289         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
58290         * doc/posix-functions/unlink.texi (unlink): Likewise.
58291         * modules/unlink-tests: New test.
58292         * tests/test-unlink.c: Likewise.
58294         lstat: fix Solaris 9 bug
58295         * lib/lstat.c (lstat): Also check for trailing slash on
58296         non-symlink, non-directories.  Use stat module to simplify logic.
58297         * doc/posix-functions/lstat.texi (lstat): Document it.
58298         * modules/lstat-tests (Depends-on): Add errno, same-inode.
58299         (configure.ac): Check for symlink.
58300         * tests/test-lstat.c (main): Add more tests.
58302         stat: add as dependency to other modules
58303         * modules/chown (Depends-on): Add stat.
58304         * modules/euidaccess (Depends-on): Likewise.
58305         * modules/fchdir (Depends-on): Likewise.
58306         * modules/isdir (Depends-on): Likewise.
58307         * modules/link (Depends-on): Likewise.
58308         * modules/lstat (Depends-on): Likewise.
58309         * modules/mkdir-p (Depends-on): Likewise.
58310         * modules/modechange (Depends-on): Likewise.
58311         * modules/open (Depends-on): Likewise.
58312         * modules/readlink (Depends-on): Likewise.
58313         * modules/same (Depends-on): Likewise.
58315         stat: fix Solaris 9 bug
58316         * m4/stat.m4 (gl_FUNC_STAT): Detect Solaris 9 bug with trailing
58317         slash.
58318         * lib/stat.c (rpl_stat): Work around it.
58319         * doc/posix-functions/stat.texi (stat): Update documentation.
58321         stat: new module, for mingw bug
58322         * modules/stat: New file.
58323         * lib/stat.c: Likewise.
58324         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
58325         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
58326         * modules/sys_stat (Makefile.am): Use them.
58327         * lib/sys_stat.in.h (stat): Declare replacement.
58328         * lib/openat.c (fstatat): Deal with lstat and stat being function
58329         macros.
58330         * modules/openat (Depends-on): Add inline.
58331         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
58332         * doc/posix-functions/stat.texi (stat): Likewise.
58333         * modules/stat-tests: New test.
58334         * tests/test-stat.c: Likewise.
58336 2009-09-19  Jim Meyering  <meyering@redhat.com>
58338         syntax-check: detect unnecessary inclusion of canonicalize.h
58339         * top/maint.mk (sc_prohibit_canonicalize_without_use): New rule.
58341 2009-09-19  Eric Blake  <ebb9@byu.net>
58343         canonicalize-lgpl: adjust clients to use correct header
58344         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
58345         (gl_CANONICALIZE_LGPL): Use correct shell quoting.
58346         * modules/relocatable-prog-wrapper (Files): Drop canonicalize.h.
58347         * lib/fchdir.c (includes): Use <stdlib.h>, not "canonicalize.h".
58348         * lib/progreloc.c (includes): Likewise.
58350 2009-09-19  Jim Meyering  <meyering@redhat.com>
58352         test-posixtm.c: correct a comment
58353         * tests/test-posixtm.c: Correct first-line comment.
58354         Spotted by Eric Blake.
58356 2009-09-16  Jim Meyering  <meyering@redhat.com>
58358         posixtm-tests: make T const-correct; add a test case
58359         * tests/test-posixtm.c (T): Declare const.
58360         Add a test for -(2^31+1).
58361         Remove useless can-succeed-only-in-2002 test.
58363         posixtm-tests: adjust the sole failing test
58364         * tests/test-posixtm.c: Correct 0000-01-01 00:00:00 test so that
58365         expected output matches what mktime now produces.  Cross-checked via
58366         erlang's calendar:datetime_to_gregorian_seconds({{1970,1,1},{0,0,0}})
58368         posixtm: move #ifdef'd tests into a new module
58369         * lib/posixtm.c (posixtime): Remove #ifdef'd tests.  Move to...
58370         * tests/test-posixtm.c: ... this new file.
58371         * modules/posixtm-tests: New module.
58373 2009-09-19  Eric Blake  <ebb9@byu.net>
58375         openat: simplify use of at-func.c
58376         * lib/at-func.c (includes): Include prerequisites here, to
58377         simplify requirements on client files.
58378         * lib/openat-priv.h: Add double-inclusion guard.
58379         * lib/faccessat.c (includes): Simplify.
58380         * lib/fchmodat.c (includes): Likewise.
58381         * lib/fchownat.c (includes): Likewise.
58382         * lib/mkdirat.c (includes): Likewise.
58383         * lib/mkfifoat.c (includes): Likewise.
58384         * lib/symlinkat.c (includes): Likewise.
58386         openat: allow return of fd 0
58387         * modules/chdir-long (Depends-on): Relax openat-safer to openat.
58388         * modules/save-cwd (Depends-on): Replace fcntl-safer with
58389         unistd-safer.
58390         * lib/chdir-long.c (includes): Replace "fcntl--.h" with
58391         <fcntl.h>; this module does not leak fds.
58392         * lib/openat.c (includes): Do not use "fcntl_safer"; plain openat
58393         must be allowed to return 0, leaving openat_safer to add the
58394         safety.
58395         (openat_permissive): Avoid writing to just-opened fd 2 if
58396         restoring the current directory fails.
58397         * lib/openat-die.c (openat_restore_fail): Add comment.
58398         * lib/save-cwd.c (includes): Make "fcntl--.h" conditional.
58399         (save_cwd): Guarantee safe fd, but without use of open_safer.
58400         * tests/test-openat.c: New test.
58401         * modules/openat-tests (Files, Makefile.am): Distribute and build
58402         new file.
58404         relocatable-prog-wrapper: fix build
58405         * modules/relocatable-prog-wrapper (Files): Update name of
58406         canonicalize m4 file, broken on 2009-09-17.
58407         Reported by emad hajjar <aleppos@hotmail.com>.
58409 2009-09-19  Bruno Haible  <bruno@clisp.org>
58411         * lib/safe-alloc.h: Use the standard header with GPL copyright.
58412         * lib/safe-alloc.c: Likewise.
58413         Reported by Ian Beckwith <ianb@erislabs.net>.
58415 2009-09-18  Bruno Haible  <bruno@clisp.org>
58417         * gnulib-tool: Add advice to "cannot find configure.ac" error message.
58418         Reported by <erobles@sensacd.com.mx>.
58420 2009-09-17  Eric Blake  <ebb9@byu.net>
58422         canonicalize: in CAN_ALL_BUT_LAST, allow trailing slash
58423         * lib/canonicalize.c (canonicalize_filename_mode): Skip trailing
58424         slashes when checking if last component is missing.
58425         * tests/test-canonicalize.c (main): Test this.
58427         canonicalize, canonicalize-lgpl: honor // if distinct from /
58428         * modules/canonicalize (Files): Add double-slash-root.m4.
58429         * modules/canonicalize-lgpl (Files): Likewise.
58430         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
58431         (gl_CANONICALIZE_LGPL_SEPARATE): Add dependency.
58432         * lib/canonicalize.c (DOUBLE_SLASH_IS_DISTINCT_ROOT): Provide
58433         fallback definition.
58434         (canonicalize_filename_mode): Use it to protect //.
58435         * lib/canonicalize-lgpl.c (DOUBLE_SLASH_IS_DISTINCT_ROOT)
58436         (__realpath): Likewise.
58437         * tests/test-canonicalize.c (main): Test this.
58438         * tests/test-canonicalize-lgpl.c (main): Likewise.
58439         * modules/canonicalize-tests (Depends-on): Add same-inode.
58440         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
58442         canonicalize-lgpl: fix glibc bug with trailing slash
58443         * m4/canonicalize-lgpl.m4: Move contents...
58444         * m4/canonicalize.m4: ...here.
58445         (gl_CANONICALIZE_LGPL): Factor realpath check...
58446         (gl_FUNC_REALPATH_WORKS): ...into new macro.  Enhance to catch
58447         glibc 2.3.5 bug, fixed 2005-04-27.
58448         (gl_FUNC_CANONICALIZE_FILENAME_MODE): Use it.
58449         (gl_PREREQ_CANONICALIZE_LGPL): Inline...
58450         (gl_CANONICALIZE_LGPL_SEPARATE): ...into this macro.
58451         * modules/canonicalize-lgpl (Files): Manage file rename.
58452         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
58453         * modules/stdlib (Makefile.am): Substitute witness.
58454         * lib/stdlib.in.h (canonicalize_file_name): Declare if replacement
58455         is needed.
58456         * lib/canonicalize-lgpl.c: Also compile if canonicalize_file_name
58457         replacement is required.
58458         * lib/canonicalize.c (canonicalize_file_name): Likewise.
58459         * doc/glibc-functions/canonicalize_file_name.texi
58460         (canonicalize_file_name): Document this.
58461         * doc/posix-functions/realpath.texi (realpath): Likewise.
58463         canonicalize-lgpl: reject non-directory with trailing slash
58464         * lib/canonicalize-lgpl.c (__realpath): Synchronize with glibc.
58465         * tests/test-canonicalize-lgpl.c (main): Enhance test.  This
58466         catches failures in glibc 2.3.5.
58467         * tests/test-canonicalize.c (main): Likewise.
58469         canonicalize-lgpl: use native realpath if it works
58470         * lib/canonicalize-lgpl.c (realpath): Guard with
58471         FUNC_REALPATH_WORKS.
58472         * lib/stdlib.in.h (realpath): Make declaration optional based on
58473         HAVE_REALPATH.
58474         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Check whether
58475         native realpath works.
58476         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
58477         * modules/stdlib (Makefile.am): Substitute witness.
58479         canonicalize, canonicalize-lgpl: use <stdlib.h>
58480         * modules/canonicalize-lgpl (Files): Drop canonicalize.h.
58481         (Include): Mention <stdlib.h>.
58482         (configure.ac): Mention functions we provide.
58483         * modules/canonicalize (configure.ac): Likewise.
58484         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Always replace
58485         realpath if canonicalize_file_name is missing.
58486         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide defaults.
58487         * modules/stdlib (Makefile.am): Substitute witnesses.
58488         * lib/stdlib.in.h (canonicalize_file_name, realpath): Declare.
58489         * lib/canonicalize-lgpl.c (includes): Adjust accordingly.
58490         * lib/canonicalize.h (canonicalize_file_name): Drop declaration.
58491         * NEWS: Document this.
58492         * doc/glibc-functions/canonicalize_file_name.texi
58493         (canonicalize_file_name): Likewise.
58494         * doc/posix-functions/realpath.texi (realpath): Likewise.
58495         * tests/test-canonicalize-lgpl.c (includes): Use <stdlib.h>.
58497         test-canonicalize: consolidate into single C program
58498         * tests/test-canonicalize.sh: Delete; move setup into...
58499         * tests/test-canonicalize.c (main): ...the program, making it
58500         easier to run in debugger.  Add some tests.
58501         * modules/canonicalize-tests (Files): Remove unused file.
58502         (Depends-on): Add progname.
58503         (configure.ac, Makefile.am): Simplify.
58505         test-canonicalize-lgpl: consolidate into single C program
58506         * tests/test-canonicalize-lgpl.sh: Delete; move setup into...
58507         * tests/test-canonicalize-lgpl.c (main): ...the program, making it
58508         easier to run in debugger.  Add some tests.
58509         * modules/canonicalize-lgpl-tests (Files): Remove unused file.
58510         (configure.ac, Makefile.am): Simplify.
58512         canonicalize: avoid resolvepath
58513         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Delete
58514         unnecessary checks.
58515         * lib/canonicalize.c (includes): Simplify.
58516         (canonicalize_file_name): Drop resolvepath implementation.
58517         * modules/canonicalize (Depends-on): Drop filenamecat.
58519         canonicalize: don't lose errno
58520         * lib/canonicalize.c (canonicalize_filename_mode): Protect errno
58521         over calls to free.
58523         canonicalize: simplify errno handling
58524         * lib/canonicalize.c (__set_errno): Delete macro, and use direct
58525         assignment.
58527         canonicalize, canonicalize-lgpl: update module dependencies
58528         * modules/canonicalize (Depends-on): Add extensions, lstat,
58529         pathmax, stdlib.
58530         (Files): Drop pathmax.h.
58531         (configure.ac): Adjust macro name.
58532         * modules/canonicalize-lgpl (Depends-on): Add errno, extensions,
58533         lstat, stdlib, sys_stat.
58534         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Rename...
58535         (gl_FUNC_CANONICALIZE_FILENAME_MODE): ...to this, and require
58536         extensions.
58537         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL)
58538         (gl_CANONICALIZE_LGPL_SEPARATE): Require extensions.
58539         (gl_PREREQ_CANONICALIZE_LGPL): Assume unistd.h.
58540         * lib/canonicalize.h (canonicalize_file_name): Use <stdlib.h>
58541         declaration, if available.
58542         * lib/canonicalize-lgpl.c [HAVE_READLINK]: Delete this condition;
58543         we can rely on the readlink module.
58544         (MAXSYMLINKS): Also consult SYMLOOP_MAX.
58545         (includes): Use <unistd.h> unconditionally.
58547 2009-09-17  Eric Blake  <ebb9@byu.net>
58549         maint: make Include sections of modules consistent
58550         * modules/alloca: Use only header name; no need to list #include.
58551         * modules/alloca-opt: Likewise.
58552         * modules/arpa_inet: Likewise.
58553         * modules/canon-host: Likewise.
58554         * modules/configmake: Likewise.
58555         * modules/dirent: Likewise.
58556         * modules/eealloc: Likewise.
58557         * modules/environ: Likewise.
58558         * modules/fchdir: Likewise.
58559         * modules/fcntl: Likewise.
58560         * modules/fcntl-h: Likewise.
58561         * modules/gethrxtime: Likewise.
58562         * modules/gettime: Likewise.
58563         * modules/ignore-value: Likewise.
58564         * modules/inet_ntop: Likewise.
58565         * modules/inet_pton: Likewise.
58566         * modules/inttypes: Likewise.
58567         * modules/isnand-nolibm: Likewise.
58568         * modules/isnanf-nolibm: Likewise.
58569         * modules/mbchar: Likewise.
58570         * modules/mbfile: Likewise.
58571         * modules/mbiter: Likewise.
58572         * modules/mbuiter: Likewise.
58573         * modules/netdb: Likewise.
58574         * modules/netinet_in: Likewise.
58575         * modules/nproc: Likewise.
58576         * modules/pagealign_alloc: Likewise.
58577         * modules/poll: Likewise.
58578         * modules/printf-frexp: Likewise.
58579         * modules/pthread: Likewise.
58580         * modules/putenv: Likewise.
58581         * modules/random_r: Likewise.
58582         * modules/relocatable-prog: Likewise.
58583         * modules/search: Likewise.
58584         * modules/select: Likewise.
58585         * modules/selinux-h: Likewise.
58586         * modules/settime: Likewise.
58587         * modules/signal: Likewise.
58588         * modules/size_max: Likewise.
58589         * modules/socklen: Likewise.
58590         * modules/ssize_t: Likewise.
58591         * modules/stdarg: Likewise.
58592         * modules/stdbool: Likewise.
58593         * modules/stddef: Likewise.
58594         * modules/stdint: Likewise.
58595         * modules/stdio: Likewise.
58596         * modules/stdlib: Likewise.
58597         * modules/string: Likewise.
58598         * modules/strings: Likewise.
58599         * modules/sys_file: Likewise.
58600         * modules/sys_ioctl: Likewise.
58601         * modules/sys_select: Likewise.
58602         * modules/sys_socket: Likewise.
58603         * modules/sys_stat: Likewise.
58604         * modules/sys_time: Likewise.
58605         * modules/sys_times: Likewise.
58606         * modules/sys_utsname: Likewise.
58607         * modules/sys_wait: Likewise.
58608         * modules/sysexits: Likewise.
58609         * modules/time: Likewise.
58610         * modules/times: Likewise.
58611         * modules/tmpfile: Likewise.
58612         * modules/trim: Likewise.
58613         * modules/unistd: Likewise.
58614         * modules/wchar: Likewise.
58615         * modules/wctype: Likewise.
58617 2009-09-17  Bruno Haible  <bruno@clisp.org>
58619         Make getdate.y compile on QNX and NetBSD 5 / i386.
58620         * m4/getdate.m4 (gl_GETDATE): Conditionally define
58621         TIME_T_FITS_IN_LONG_INT.
58622         * lib/getdate.y (long_time_t): New type.
58623         (relative_time): Change type of 'seconds' field to long_time_t.
58624         (get_date): Update types of local variables. Check against overflow
58625         during conversion from long_time_t to time_t.
58626         Reported by Matt Kraai <kraai@ftbfs.org>
58627         and Hasso Tepper <hasso@netbsd.org>.
58629 2009-09-17  Bruno Haible  <bruno@clisp.org>
58631         * modules/COPYING: Update copyright years.
58632         * modules/README: Likeiwse.
58633         * doc/gnulib-intro.texi (Copyright): Use a wildcard year.
58634         Reported by Ian Beckwith <ianb@erislabs.net>.
58636 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
58638         * users.txt: Update references for gnuit package.
58640 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
58642         * m4/getdelim.m4: Fix typo in copyright line.
58644 2009-09-17  Bruno Haible  <bruno@clisp.org>
58646         * lib/atoll.c: Use the standard header with GPL copyright.
58647         * lib/argz.in.h: Likewise.
58648         * lib/glob.c: Likewise.
58649         * lib/glob-libc.h: Likewise.
58650         * lib/random_r.c: Likewise.
58651         * lib/siglist.h: Likewise.
58652         * lib/strsignal.c: Likewise.
58653         Reported by Ian Beckwith <ianb@erislabs.net>.
58655 2009-09-17  Eric Blake  <ebb9@byu.net>
58657         rmdir: ensure correct dependency order
58658         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require unistd defaults.
58660 2009-09-17  Bruno Haible  <bruno@clisp.org>
58662         Disable assertion that fails on NetBSD 5 / i386.
58663         * lib/mktime.c (ydhms_diff): Disable assertion about time_t size.
58664         Reported by Sam Steingold <sds@gnu.org>
58665         and Hasso Tepper <hasso@netbsd.org>.
58667 2009-09-16  Eric Blake  <ebb9@byu.net>
58669         unlinkdir: port to mingw
58670         * m4/unlinkdir.m4 (gl_UNLINKDIR): Add mingw to list of platforms
58671         on which no one can unlink a directory.
58673         stdlib: sort witness names
58674         * modules/stdlib (Makefile.am): Sort replacements.
58675         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
58676         * lib/stdlib.in.h: Likewise.
58678         parse-duration-tests: avoid link failure
58679         * modules/parse-duration-tests (test_parse_duration_LDADD): Add
58680         LIBINTL.
58681         Reported by Tom G. Christensen.
58683         openat-tests: ensure unlinkat behaves like rmdir
58684         * tests/test-rmdir.c (main): Factor guts...
58685         * tests/test-rmdir.h (test_rmdir_func): ...into new file.
58686         * modules/rmdir-tests (Files): Ship new file.
58687         * modules/openat-tests: New test.
58688         * tests/test-unlinkat.c: Likewise.
58690         rmdir-errno: mark obsolete, it is unsafe for cross-compilation
58691         * modules/rmdir-errno (Status, Notice): Now obsolete.
58693         rmdir: work around cygwin 1.5.x and mingw bugs
58694         * m4/rmdir.m4 (gl_FUNC_RMDIR): Detect the bugs.
58695         * lib/rmdir.c (rmdir): Work around it.
58696         * modules/rmdir (Status, Notice): No longer obsolete.
58697         (Files): Add dos.m4.
58698         (Depends-on): Add unistd.
58699         (configure.ac): Set witnesses.
58700         (License): Relax to LGPLv2+.
58701         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set defaults.
58702         * modules/unistd (Makefile.am): Substitute witnesses.
58703         * lib/unistd.in.h (rmdir): Declare replacement.
58704         * doc/posix-functions/rmdir.texi (rmdir): Document this.
58705         * modules/rmdir-tests: New tests.
58706         * tests/test-rmdir.c: Likewise.
58708 2009-09-15  Eric Blake  <ebb9@byu.net>
58710         fchdir: improve use of replacement functions
58711         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set appropriate witnesses.
58712         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add REPLACE_FSTAT.
58713         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add REPLACE_OPENDIR,
58714         REPLACE_CLOSEDIR.
58715         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_DUP.
58716         * modules/sys_stat (Makefile.am): Substitute correct witness.
58717         * modules/dirent (Makefile.am): Likewise.
58718         * modules/unistd (Makefile.am): Likewise.
58719         * lib/dirent.in.h (opendir, closedir): Use better witnesses.
58720         * lib/unistd.in.h (dup): Likewise.
58721         * lib/sys_stat.in.h (fstat): Likewise.
58723         maint: ignore gnulib-tool temp files
58724         * .gitignore: Ignore files created during gnulib-tool --test.
58726 2009-09-13  Jim Meyering  <meyering@redhat.com>
58728         posixtm: don't reject a time that specify "60" as the number of seconds
58729         * lib/posixtm.c (posixtime): The code to reject invalid dates
58730         would also reject a time specified with the .60 suffix.
58731         But POSIX allows that, in order to accommodate leap seconds.
58732         So don't reject it.
58733         (main): Adjust tests accordingly.
58734         * modules/posixtm (Depends-on): Add stpcpy.
58736 2009-09-11  Jim Meyering  <meyering@redhat.com>
58738         announce-gen: include [$release_type] in emitted Subject:
58739         * build-aux/announce-gen (get_tool_versions): Include [$release_type],
58740         e.g., [stable] in the emitted Subject: line.
58742 2009-09-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58744         Remove obsolete macros from several modules.
58745         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Replace
58746         obsolete Autoconf macros with their modern counterparts.
58747         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Likewise.
58748         * m4/gc-camellia.m4 (gl_GC_CAMELLIA): Likewise.
58749         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Likewise.
58750         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
58751         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Likewise.
58752         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
58753         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
58754         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
58755         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
58756         * m4/readline.m4 (gl_FUNC_READLINE): Likewise.
58757         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
58758         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
58759         * m4/select.m4 (gl_FUNC_SELECT): Likewise.
58760         * m4/sockets.m4 (gl_SOCKETS): Likewise.
58761         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Likewise.
58762         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Likewise.
58763         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
58764         * m4/time_r.m4 (gl_TIME_R): Likewise.
58765         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
58766         * m4/vararrays.m4 (AC_C_VARARRAYS): Likewise.
58767         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
58769         Fix copyright header in build-aux scripts.
58770         * build-aux/git-version-gen: Fix copyright header to match GPLv3
58771         recommendation.
58772         * build-aux/ncftpput-ftp: Likewise.
58773         * build-aux/update-copyright: Likewise.
58775 2009-09-09  Eric Blake  <ebb9@byu.net>
58777         test-link: allow Linux choice of errno
58778         * tests/test-link.c (main): Relax test for alternate error.
58780         strndup: fix improper m4 caching
58781         * m4/strndup.m4 (gl_FUNC_STRNDUP): Rework to avoid side effects
58782         inside AC_CACHE_CHECK.  Use REPLACE_STRNDUP, not HAVE_STRNDUP.
58783         (gl_PREREQ_STRNDUP): Delete.
58784         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Update default.
58785         * modules/string (Makefile.am): Substitute it.
58786         * lib/string.in.h (strndup): Modernize prototype.
58788         getcwd: port to mingw
58789         * m4/getcwd.m4 (gl_FUNC_GETCWD): Mingw directories are very
58790         different from the POSIX assumptions made throughout the getcwd
58791         module; fortunately, the mingw getcwd does not need replacement.
58792         (gl_FUNC_GETCWD_NULL): Skip test on mingw.
58793         * modules/getcwd-tests: New test.
58794         * tests/test-getcwd.c: Likewise.
58796         link: fix platform bugs
58797         * m4/link.m4 (gl_FUNC_LINK): Detect Solaris and Cygwin bugs.
58798         * lib/link.c (link): Work around them.  Fix related mingw bug.
58799         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_LINK.
58800         * modules/unistd (Makefile.am): Substitute it.
58801         * lib/unistd.in.h (link): Declare replacement.
58802         * doc/posix-functions/link.texi (link): Document this.
58803         * modules/link (Depends-on): Add strdup-posix, sys_stat.
58805         test-link: consolidate into single C program, test more cases
58806         * tests/test-link.sh: Delete.
58807         * tests/test-link.c: Test more error conditions.  Exposes bugs on
58808         at least Cygwin and Solaris.
58809         * modules/link-tests (Files): Remove unused file.
58810         (Depends-on): Add errno, sys_stat.
58811         (Makefile.am): Simplify.
58813 2009-09-08  Bruno Haible  <bruno@clisp.org>
58815         Work around towlower, towupper bug on mingw.
58816         * lib/wctype.in.h (towlower, towupper) [__MINGW32__]: New replacements.
58817         * m4/wctype.m4 (gl_WCTYPE_H): Replace <wctype.h> also on mingw.
58818         * doc/posix-functions/towlower.texi: Mention the mingw bug.
58819         * doc/posix-functions/towupper.texi: Likewise.
58820         Reported by Eric Blake.
58822 2009-09-08  Jim Meyering  <meyering@redhat.com>
58824         build: don't try to run autoheader if we don't use it
58825         * build-aux/bootstrap: Define AUTOHEADER=true when AC_CONFIG_HEADERS
58826         is not used in configure.ac.
58828 2009-09-08  Eric Blake  <ebb9@byu.net>
58830         euidaccess: fix compilation error
58831         * lib/euidaccess.c (includes): Add <fcntl.h>, for AT_EACCESS.
58833         rawmemchr: relax license
58834         * modules/rawmemchr (License): Derived from glibc, so LGPLv2+ is
58835         okay.
58836         Reported by Jim Meyering.
58838         mkfifoat: new module
58839         * modules/mkfifoat: New file.
58840         * lib/mkfifoat.c: Likewise.
58841         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Likewise.
58842         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
58843         * modules/sys_stat (Makefile.am): Use them.
58844         * lib/sys_stat.in.h (mkfifoat, mknodat): Declare them.
58845         * MODULES.html.sh (File system functions): Mention module.
58846         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
58847         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
58848         * modules/mkfifoat-tests: New test.
58849         * tests/test-mkfifoat.c: Likewise.
58851         strchrnul: relax license
58852         * modules/strchrnul (License): Derived from glibc, so LGPLv2+ is
58853         okay.
58854         Reported by Jim Meyering.
58856 2009-09-08  Eric Blake  <ebb9@byu.net>
58858         fstatat: fix compilation on Solaris
58859         * lib/fstatat.c (includes): Add fcntl.h.
58860         Reported by Pádraig Brady.
58862 2009-09-07  Eric Blake  <ebb9@byu.net>
58864         rename: modernize replacement
58865         * modules/rename (Depends-on): Add stdio.
58866         (configure.ac): Declare witness.
58867         * m4/rename.m4 (gl_FUNC_RENAME): Ensure dependency order, and let
58868         stdio take care of replacement.
58869         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
58870         * modules/stdio (Makefile.am): Substitute them.
58871         * lib/stdio.in.h (rename): Declare replacement.
58872         * lib/rename.c (includes): Allow cross-compilation to non-windows
58873         machines.
58874         * doc/posix-functions/rename.texi (rename): Improve
58875         documentation.
58877         stdio: sort witness names
58878         * modules/stdio (Makefile.am): Sort replacements.
58879         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
58880         * lib/stdio.in.h: Likewise.
58882         getcwd: minor cleanups
58883         * lib/getcwd.c (AT_FDCWD): Delete; rely on <fcntl.h> instead.
58884         (is_ENAMETOOLONG): Delete; ENAMETOOLONG is portable.
58886         openat: provide more convenience names
58887         * modules/faccessat (configure.ac): Add C witness.
58888         * lib/unistd.in.h (readlinkat): Fix typo.
58889         * lib/openat.h (statat, lstatat, accessat, euidaccessat): New
58890         convenience wrappers.
58891         * top/maint.mk (sc_prohibit_openat_without_use): Allow these
58892         wrappers in syntax checks.
58894 2009-09-06  Eric Blake  <ebb9@byu.net>
58896         doc: fix comments in recent patches
58897         * lib/faccessat.c: Mention correct function.
58898         * lib/fchmodat.c: Likewise.
58899         * lib/fchownat.c: Likewise.
58900         * lib/symlinkat.c: Likewise.
58901         * doc/posix-headers/fcntl.texi (fcntl.h): Cygwin 1.7 has AT_*
58902         constants.
58904         faccessat, symlinkat: continue cleanup of previous patch
58905         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Ensure dependency order.
58906         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
58907         * modules/unistd (Makefile.am): Substitute GNULIB_READLINKAT.
58908         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Offer GNULIB_READLINKAT.
58909         * modules/symlinkat (configure.ac): Set GNULIB_READLINKAT.
58910         * lib/unistd.in.h (readlinkat): Declare if GNULIB_READLINKAT is
58911         set.
58913 2009-09-06  Bruno Haible  <bruno@clisp.org>
58915         * lib/sys_stat.in.h (fchmodat): Declare if GNULIB_FCHMODAT is set.
58916         (fstatat): Declare if GNULIB_FSTATAT is set.
58917         (mkdirat): Declare if GNULIB_MKDIRAT is set.
58918         * lib/unistd.in.h (fchownat): Declare if GNULIB_FCHOWNAT is set.
58919         (unlinkat): Declare if GNULIB_UNLINKAT is set.
58920         * modules/fcntl-h (Files): Remove m4/openat.m4.
58921         * modules/sys_stat (Files): Remove m4/openat.m4.
58922         (Makefile.am): Substitute GNULIB_FCHMODAT, GNULIB_FSTATAT,
58923         GNULIB_MKDIRAT instead of GNULIB_OPENAT.
58924         * modules/unistd (Files): Remove m4/openat.m4.
58925         (Makefile.am): Substitute GNULIB_FCHOWNAT, GNULIB_UNLINKAT instead of
58926         GNULIB_OPENAT.
58927         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Initialize GNULIB_OPENAT,
58928         HAVE_OPENAT here. Don't require gl_OPENAT_DEFAULTS.
58929         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize
58930         GNULIB_FCHMODAT, GNULIB_FSTATAT, GNULIB_MKDIRAT, HAVE_FCHMODAT,
58931         HAVE_FSTATAT, HAVE_MKDIRAT, REPLACE_FSTATAT here. Don't require
58932         gl_OPENAT_DEFAULTS.
58933         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_FCHOWNAT,
58934         GNULIB_UNLINKAT, HAVE_FCHOWNAT, HAVE_UNLINKAT, REPLACE_FCHOWNAT here.
58935         Don't require gl_OPENAT_DEFAULTS.
58936         * m4/openat.m4 (gl_FUNC_OPENAT): Require gl_FCNTL_H_DEFAULTS,
58937         gl_SYS_STAT_H_DEFAULTS, gl_UNISTD_H_DEFAULTS. Set GNULIB_FCHMODAT,
58938         GNULIB_FSTATAT, GNULIB_MKDIRAT, GNULIB_FCHOWNAT, GNULIB_UNLINKAT.
58939         (gl_OPENAT_DEFAULTS): Remove macro.
58941 2009-09-06  Bruno Haible  <bruno@clisp.org>
58943         * modules/openat (configure.ac): Remove unneeded witness.
58945 2009-09-06  Bruno Haible  <bruno@clisp.org>
58947         Set errno to ENOSYS when a function is entirely unsupported.
58948         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Set errno to ENOSYS instead of
58949         EOPNOTSUPP.
58950         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
58951         * modules/chown (Depends-on): Remove errno.
58953 2009-09-06  Bruno Haible  <bruno@clisp.org>
58955         * doc/posix-headers/fcntl.texi (AT_*): Mention affected platforms.
58957 2009-09-06  Bruno Haible  <bruno@clisp.org>
58959         * lib/sys_stat.in.h: Fix preprocessor command indentation.
58961 2009-09-06  Ben Pfaff  <blp@gnu.org>
58962             Bruno Haible  <bruno@clisp.org>
58964         Work around a glibc bug in strtok_r.
58965         * lib/string.in.h (strtok_r): Replace if REPLACE_STRTOK_R is set.
58966         Undefine if UNDEFINE_STRTOK_R is set.
58967         * lib/strtok_r.c (strtok_r, __strtok_r) [!_LIBC]: Don't undefine.
58968         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
58969         REPLACE_STRTOK_R and UNDEFINE_STRTOK_R.
58970         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Check against the glibc bug.
58971         * modules/string (Makefile.am): Substitute REPLACE_STRTOK_R,
58972         UNDEFINE_STRTOK_R.
58973         * doc/posix-functions/strtok_r.texi: Mention the glibc 2.7 bug.
58975 2009-09-06  Sergey Poznyakoff  <gray@gnu.org.ua>
58977         exclude: minor fix
58978         * lib/exclude.c: Include wctype.h
58980 2009-09-06  Akim Demaille  <demaille@gostai.com>
58982         bootstrap: improve error message
58983         * build-aux/bootstrap (find_tool): Upon failure, report the list
58984         of candidates.
58985         Honor the initial value of the envvar.
58987 2009-09-05  Eric Blake  <ebb9@byu.net>
58989         symlinkat: new module
58990         * modules/symlinkat: New file.
58991         * lib/symlinkat.c: Likewise.
58992         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
58993         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
58994         * modules/unistd (Makefile.am): Use them.
58995         * lib/unistd.in.h (symlinkat, readlinkat): Declare them.
58996         (faccessat) [GNULIB_POSIXCHECK]: Fix typo.
58997         * lib/at-func.c (FUNC_RESULT): New macro, defaulting to int.
58998         * MODULES.html.sh (File system functions): Mention module.
58999         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
59000         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
59001         * modules/symlinkat-tests: New test.
59002         * tests/test-symlinkat.c: Likewise.
59004         test-openat-safer: add more checks
59005         * tests/test-openat-safer.c (main): Check more code paths.
59007 2009-09-05  Jim Meyering  <meyering@redhat.com>
59009         syntax-check: detect unnecessary inclusion of openat.h
59010         * top/maint.mk (sc_prohibit_openat_without_use): New rule.
59012 2009-09-05  Bruno Haible  <bruno@clisp.org>
59014         Support towlower, towupper.
59015         * doc/posix-functions/towlower.texi: Mention module wctype.
59016         * doc/posix-functions/towupper.texi: Likewise.
59017         * lib/wctype.in.h (towlower, towupper): New functions.
59018         * tests/test-wctype.c: Include stdio.h, stdlib.h.
59019         (ASSERT): New macro.
59020         (e): New variable.
59021         (main): Test also towlower, towupper. Test WEOF argument.
59022         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
59024 2009-09-05  Bruno Haible  <bruno@clisp.org>
59026         Fix conversion behaviour when the input is invalid.
59027         * lib/striconveh.c (mem_cd_iconveh_internal): Fix storing of question
59028         mark occurring in first pass of indirect conversion.
59029         * tests/test-striconveh.c (main): Test conversion of invalid ASCII
59030         input.
59031         Found by clang's static analyzer.
59033 2009-09-05  Bruno Haible  <bruno@clisp.org>
59035         * tests/test-striconveh.c (main): Test indirect conversion on platforms
59036         where direct conversion is possible.
59038 2009-09-04  Eric Blake  <ebb9@byu.net>
59040         openat: fail with ENOENT on empty name
59041         * lib/openat-proc.c (openat_proc_name): Special-case the empty
59042         buffer.
59044         link-follow: fix logic bug in prior patch
59045         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Fix bug that
59046         reversed sense of yes and no in prior patch.  Avoid confusing
59047         compilation failure with desired semantics.
59049         link-follow: accommodate mingw and cross-compilation
59050         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Rename...
59051         (gl_FUNC_LINK_FOLLOWS_SYMLINK): ...to this.  Change
59052         cross-compilation results to -1, to make linkat easier to
59053         implement when cross-compiling.  Trivially support mingw.
59054         * modules/link-follow (configure.ac): Call new name.
59055         * NEWS: Mention this.
59057 2009-09-03  Eric Blake  <ebb9@byu.net>
59059         faccessat: compile replacement
59060         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Build replacement when
59061         needed.
59063         fts: fix compilation error
59064         * lib/fts.c (includes): Re-add "openat.h", for
59065         openat_needs_fchdir.
59067         faccessat: new module
59068         * modules/faccessat: New file.
59069         * lib/faccessat.c: Likewise.
59070         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
59071         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
59072         * modules/unistd (Makefile.am): Use it.
59073         * lib/unistd.in.h (faccessat): Declare it.
59074         (F_OK, X_OK, W_OK, R_OK): Provide definitions.
59075         * lib/fcntl.in.h (AT_SYMLINK_FOLLOW, AT_EACCESS): Likewise.
59076         * MODULES.html.sh (File system functions): Mention it.
59077         * doc/posix-functions/faccessat.texi (faccessat): Likewise.
59078         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
59080         euidaccess: prefer POSIX over non-standard implementation
59081         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Check for faccessat.
59082         * lib/euidaccess.c (euidaccess): Use it if available.
59084         openat: make template easier to use
59085         * lib/at-func.c (CALL_FUNC): Allow AT_FUNC_USE_F1_COND and
59086         AT_FUNC_F2 to be undefined.
59087         (VALIDATE_FLAG): New macro; use it to reject bad flags.
59088         (AT_FUNC_USE_F1_COND): Change sense to just flag bit.
59089         * lib/fchmodat.c (AT_FUNC_USE_F1_COND): Adjust.
59090         * lib/fchownat.c (AT_FUNC_USE_F1_COND): Likewise.
59091         * lib/openat.c (AT_FUNC_USE_F1_COND) [fstatat, unlinkat]:
59092         Likewise.
59093         * lib/mkdirat.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND): Delete.
59094         * lib/selinux-at.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND)
59095         [getfileconat, lgetfileconat, setfileconat, lsetfileconat]:
59096         Likewise.
59098         openat: declare in POSIX headers
59099         * NEWS: Mention this.
59100         * modules/openat (configure.ac): Declare witnesses.
59101         (Depends-on): Add fcntl-h, sys_stat, unistd.
59102         (Include): Mention correct headers.
59103         * modules/fcntl-h (Depends-on): Add link-warning.
59104         (Files): Add openat.m4.
59105         (Makefile.am): Substitute witnesses.
59106         * modules/sys_stat (Files, Makefile.am): Likewise.
59107         * modules/unistd (Files, Makefile.am): Likewise.
59108         * m4/openat.m4 (gl_FUNC_OPENAT, gl_FUNC_FCHOWNAT): Set witnesses.
59109         (gl_OPENAT_DEFAULTS): New macro.
59110         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Use it.
59111         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Likewise.
59112         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Likewise.
59113         (SYS_STAT_H): Remove unused variable.
59114         * doc/posix-headers/fcntl.texi (fcntl.h): Update content.
59115         * lib/fcntl--.h (includes): Remove unneeded header.
59116         * lib/openat-safer.c (includes): Likewise.
59117         * lib/openat.h (AT_FDCWD, AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR)
59118         (openat, fstatat, unlinkat, mkdirat, fchmodat, fchownat): Move to
59119         appropriate headers.
59120         (__OPENAT_PREFIX): Delete.
59121         * lib/fcntl.in.h (openat): Provide declaration.
59122         (AT_FDCWD): Fix Solaris bug.
59123         (AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR): Provide macros.
59124         * lib/sys_stat.in.h (fstatat, mkdirat): Provide declaration.
59125         * lib/fchmodat.c (includes):  Adjust to find declaration.
59126         * lib/fchownat.c (includes): Likewise.
59127         * lib/mkdirat.c (includes): Likewise.
59128         * lib/fstatat.c (includes): Likewise.  Ensure original fstatat is
59129         still visible.
59131 2009-09-02  Eric Blake  <ebb9@byu.net>
59133         errno: use consistently
59134         * lib/c-stack.c (ENOTSUP): <errno.h> guarantees a definition.
59135         * lib/canonicalize-lgpl.c (ENAMETOOLONG): Likewise.
59136         * lib/canonicalize.c (ELOOP): Likewise.
59137         * lib/inet_ntop.c (EAFNOSUPPORT): Likewise.
59138         * lib/inet_pton.c (EAFNOSUPPORT): Likewise.
59139         * lib/lchown.c (EOPNOTSUPP): Likewise.
59140         * lib/openat-priv.h (ENOSYS, EOPNOTSUPP): Likewise.
59141         * lib/savewd.c (ESTALE): Likewise.
59142         * lib/settime.c (ENOSYS): Likewise.
59143         * lib/utimens.c (ENOSYS): Likewise.
59144         * lib/xgethostname.c (ENAMETOOLONG): Likewise.
59145         * lib/chdir-safer.c (ELOOP): Likewise.
59146         (chdir_no_follow): Use HAVE_READLINK, not ELOOP, as witness.
59147         * modules/c-stack (Depends-on): Add errno.
59148         * modules/canonicalize (Depends-on): Likewise.
59149         * modules/chdir-safer (Depends-on): Likewise.
59150         * modules/fdopendir (Depends-on): Likewise.
59151         * modules/inet_ntop (Depends-on): Likewise.
59152         * modules/inet_pton (Depends-on): Likewise.
59153         * modules/lchown (Depends-on): Likewise.
59154         * modules/openat (Depends-on): Likewise.
59155         * modules/savewd (Depends-on): Likewise.
59156         * modules/settime (Depends-on): Likewise.
59157         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Check for readlink.
59159         fts: avoid leaking fds
59160         * modules/fts (Depends-on): Add cloexec.
59161         * lib/fts.c (opendirat, diropen, fts_build): Set close-on-exec
59162         flag.
59164         fts: make directory fds more robust
59165         * lib/fts.c (O_DIRECTORY): Let <fcntl.h> take care of this.
59166         (opendirat): Specify O_DIRECTORY, and add fallbacks for safety.
59168         backupfile, chdir-long, fts, savedir: make safer
59169         * lib/backupfile.c (includes): Use "dirent--.h", since
59170         numbered_backup can write to stderr during readdir.
59171         * lib/savedir.c (includes): Likewise.
59172         * lib/chdir-long.c (includes): Use "fcntl--.h", since openat
59173         emulation can write to stderr on failure.
59174         * lib/fts.c (includes) [!_LIBC]: Likewise for opendir and openat.
59175         * lib/getcwd.c: Document why opendir_safer is unused.
59176         * lib/glob.c: Likewise.
59177         * lib/scandir.c: Likewise.
59178         * lib/openat-proc.c: Likewise, for open_safer.
59179         * modules/backupfile (Depends-on): Add dirent-safer.
59180         * modules/savedir (Depends-on): Likewise.
59181         * modules/fts (Depends-on): Add dirent-safer and openat-safer.
59182         * modules/chdir-long (Depends-on): Add openat-safer.
59184         openat-safer: new module
59185         * modules/openat-safer: New file.
59186         * lib/openat-safer.c: Likewise.
59187         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): New macro.
59188         * lib/fcntl-safer.h (openat_safer): Declare.
59189         * lib/fcntl--.h (openat): Override.
59190         * MODULES.html.sh (File descriptor based I/O): Mention it.
59191         * lib/openat.h: Add double-inclusion guards.
59192         * lib/openat.c (includes): Only include "fcntl-safer.h", not
59193         "fcntl--.h", so we can implement openat.
59194         * modules/openat-safer-tests: New test.
59195         * tests/test-openat-safer.c: New file.
59197         dirent-safer: new module
59198         * modules/dirent-safer: New file.
59199         * lib/dirent--.h: Likewise.
59200         * lib/dirent-safer.h: Likewise.
59201         * lib/opendir-safer.c: Likewise.
59202         * m4/dirent-safer.m4: Likewise.
59203         * MODULES.html.sh (Enhancements for POSIX:2008): Mention it.
59204         * modules/dirent-safer-tests: New test.
59205         * tests/test-dirent-safer.c: New file.
59206         * lib/fdopendir.c (includes): Ensure fdopendir is also safe.
59208         fdopendir: optimize on mingw
59209         * lib/unistd.in.h (_gl_directory_name): New prototype.
59210         * lib/fchdir.c (_gl_directory_name): Implement it.
59211         (fchdir): Use it to simplify implementation.
59212         * lib/fdopendir.c (fdopendir) [REPLACE_FCHDIR]: Use metadata from
59213         fchdir, when available, to avoid calling [f]chdir().
59215         fdopendir: split into its own module
59216         * lib/openat.c (fdopendir): Move...
59217         * lib/fdopendir.c: ...into new file.
59218         * modules/fdopendir: New module.
59219         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): New file.
59220         * modules/openat (Depends-on): Add fdopendir.
59221         * m4/openat.m4 (gl_FUNC_OPENAT): No longer need to check for
59222         fdopendir here.
59223         * modules/savedir (Depends-on): Only need fdopendir, not full
59224         openat.
59225         * lib/savedir.c (include): Use <dirent.h>, not "openat.h".
59226         * lib/openat.h (fdopendir): Drop prototype.
59227         * lib/dirent.in.h (fdopendir): Provide prototype.
59228         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add replacements.
59229         * modules/dirent (Makefile.am): Substitute them.
59230         * MODULES.html.sh (File system functions): Mention it.
59231         * doc/posix-functions/fdopendir.texi (fdopendir): Likewise.
59232         * modules/fdopendir-tests: New file.
59233         * tests/test-fdopendir.c: Likewise.
59235         fchdir: use more consistent macro convention
59236         * lib/fcntl.in.h (_gl_register_fd): Move declaration to unistd.
59237         * lib/sys_stat.in.h (rpl_fstat): Declare via make-time
59238         REPLACE_FCHDIR, rather than relying on config.h macros.
59239         * lib/unistd.in.h (fchdir): Move all fchdir internal declarations
59240         inside a single make-time REPLACE_FCHDIR block, rather than using
59241         the config.h FCHDIR_REPLACEMENT.
59242         * m4/fchdir.m4 (gl_FUNC_FCHDIR): REPLACE_FCHDIR was already
59243         AC_SUBST'd, also AC_DEFINE it.  Don't define FCHDIR_REPLACEMENT.
59244         Manage fstat replacement.
59245         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Pick up
59246         REPLACE_FCHDIR.
59247         * modules/sys_stat (Files): Add m4/unistd_h.m4.
59248         (Makefile.am): Substitute REPLACE_FCHDIR.
59249         * lib/close.c (rpl_close): Use REPLACE_FCHDIR, not
59250         FCHDIR_REPLACEMENT.
59251         * lib/dup-safer.c (dup_safer): Likewise.
59252         * lib/dup2.c (rpl_dup2): Likewise.
59253         * lib/dup3.c (rpl_dup3): Likewise.
59254         * lib/open.c (rpl_open): Likewise.
59256         fchdir: simplify error handling, and support dup3
59257         * modules/fchdir (Depends-on): Use strdup-posix, not strdup.  Add
59258         stdbool, malloc-posix, realloc-posix.
59259         * lib/fchdir.c (struct dir_info_t): Delete saved_errno.
59260         (ensure_dirs_slot): Return false on allocation failure.
59261         (rpl_dup2): Delete.
59262         (_gl_register_dup): New function.
59263         (_gl_unregister_fd, rpl_opendir, rpl_dup): Update callers.
59264         (_gl_register_fd): Close fd on allocation failure.
59265         * lib/fcntl.in.h (_gl_register_fd): Update signature.
59266         * lib/unistd.in.h (_gl_register_dup) [FCHDIR_REPLACEMENT]: New
59267         prototype.
59268         (rpl_dup2_fchdir): Delete prototype.
59269         * lib/open.c (open): Update caller.
59270         * lib/dup2.c (dup2): Track fchdir metadata.
59271         * lib/dup3.c (dup3): Likewise.
59272         * m4/dup2.m4 (gl_REPLACE_DUP2): New macro.
59273         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Use it.
59275 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59277         * gnulib-tool (func_create_testdir, func_create_megatestdir): Use
59278         AC_CONFIG_HEADERS instead of AM_CONFIG_HEADER. Use AC_CONFIG_FILES and
59279         don't pass arguments to AC_OUTPUT.
59281 2009-09-02  Bruno Haible  <bruno@clisp.org>
59283         * modules/mkdtemp (License): Relicense under LGPLv2+.
59284         Reported by Paolo Bonzini.
59286 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59288         Replace uses of obsolete autoconf macros in Jim's modules.
59289         The Autoconf macros AC_TRY_CPP, AC_TRY_COMPILE, AC_TRY_LINK and
59290         AC_TRY_RUN have been obsolete since Autoconf 2.55, and each use
59291         can evoke a warning from autoconf when run with -Wobsolete
59292         enabled.  They were declared obsolete for good reasons (see
59293         the `AC_FOO_IFELSE vs AC_TRY_FOO' node in the Autoconf manual,
59294         recently renamed to `AC_ACT_IFELSE vs AC_TRY_ACT'), and we
59295         should not continue using the deprecated macros.
59296         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Replace
59297         obsolete Autoconf macros with modern counterparts.
59298         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
59299         * m4/dos.m4 (gl_AC_DOS): Likewise.
59300         * m4/fpending.m4 (gl_FUNC_FPENDING): Likewise.
59301         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
59302         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Likewise.
59303         * m4/jm-winsz1.m4 (gl_WINSIZE_IN_PTEM): Likewise.
59304         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Likewise.
59305         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Likewise.
59306         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Likewise.
59307         * m4/mode_t.m4 (gl_PROMOTED_TYPE_MODE_T): Likewise.
59308         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
59309         Likewise.
59310         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
59311         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
59312         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Likewise.
59313         * m4/st_dm_mode.m4 (AC_STRUCT_ST_DM_MODE): Likewise.
59314         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
59315         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
59317 2009-09-01  Eric Blake  <ebb9@byu.net>
59319         fchdir: fix off-by-one bug in previous patch
59320         * lib/fchdir.c (rpl_fstat): Use correct bounds.
59321         (_gl_unregister_fd): Delete useless if.
59323 2009-09-01  Daniel P. Berrange  <berrange@redhat.com>
59325         maint.mk: sort the list of syntax-check rules
59326         * top/maint.mk (syntax-check-rules): Sort syntax-check rules, so it's
59327         easier to get a sense of progress when the rules are run sequentially
59328         and take a long time.
59330 2009-09-01  Simon Josefsson  <simon@josefsson.org>
59332         * modules/arpa_inet: Use $(MKDIR_P) instead of @MKDIR_P@.
59333         * modules/netinet_in: Likewise.
59334         * modules/sys_file: Likewise.
59335         * modules/sys_ioctl: Likewise.
59336         * modules/sys_select: Likewise.
59337         * modules/sys_socket: Likewise.
59338         * modules/sys_stat: Likewise.
59339         * modules/sys_time: Likewise.
59340         * modules/sys_times: Likewise.
59341         * modules/sys_utsname: Likewise.
59342         * modules/sys_wait: Likewise.
59344 2009-09-01  Jim Meyering  <meyering@redhat.com>
59346         fts: help ensure that return values are not ignored
59347         * lib/fts_.h (__GNUC_PREREQ): Define.
59348         (__attribute_warn_unused_result__): Define.
59349         (fts_children, fts_close, fts_open, fts_read): Declare with
59350         __attribute_warn_unused_result__.
59352         fts: fts_close now fails also when closing a dir file descriptor fails
59353         * lib/fts.c (fts_close): Detect close failure, not just fchdir failure,
59354         and propagate to caller, along with errno.
59356         announce-gen: correct formatting in --help output
59357         * build-aux/announce-gen (usage): Move the one-line description in
59358         --help output "up", to where it belongs, just after Usage:.
59360 2009-08-31  Eric Blake  <ebb9@byu.net>
59362         fchdir: port to mingw
59363         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check for mingw bug.
59364         * lib/open.c (open) [FCHDIR_REPLACEMENT]: If directories can't be
59365         opened, then use a substitute.
59366         * lib/sys_stat.in.h (fstat) [REPLACE_OPEN_DIRECTORY]: Declare
59367         replacement.
59368         * lib/fchdir.c (fstat) [REPLACE_OPEN_DIRECTORY]: Implement it.
59369         (_gl_register_fd): No need to check stat if open already filters
59370         all directories.
59371         (fchdir): Fix error condition to match POSIX.
59372         * modules/fchdir (Depends-on): Add sys_stat.
59373         * doc/posix-functions/open.texi (open): Document the limitation.
59374         * modules/fchdir-tests: New file.
59375         * tests/test-fchdir.c: Likewise.
59377         canonicalize: allow cross-testing from cygwin to mingw
59378         * modules/canonicalize-tests (configure.ac): Define HAVE_SYMLINK.
59379         (Makefile.am): Pass it through TESTS_ENVIRONMENT.
59380         * modules/canonicalize-lgpl-tests (configure.ac, Makefile.am):
59381         Likewise.
59382         * tests/test-canonicalize.sh: Also skip test if 'ln -s' works, but
59383         target does not support symlinks.
59384         * tests/test-canonicalize-lgpl.sh: Likewise.
59386         chown: avoid compilation warning on mingw
59387         * m4/chown.m4 (gl_FUNC_CHOWN): Recognize missing chown.
59388         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Always return failure on
59389         mingw.
59390         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
59391         * modules/chown (Depends-on): Add errno.
59393 2009-08-31  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
59395         * gnulib-tool: Fix test whether $CONFIG_SHELL has a working 'echo'
59396         command.
59398 2009-08-31  Jim Meyering  <meyering@redhat.com>
59400         canonicalize: remove useless initialization
59401         * lib/canonicalize.c (canonicalize_filename_mode): Remove useless
59402         initialization of local, "end".
59404 2009-08-30  Bruno Haible  <bruno@clisp.org>
59406         Fix an unnecessary error on Solaris 10 on NFSv3 file systems.
59407         * lib/set-mode-acl.c (qset_acl) [Solaris 10 new]: Treat EOPNOTSUPP like
59408         ENOSYS.
59410 2009-08-30  Bruno Haible  <bruno@clisp.org>
59412         * tests/test-pipe-filter-ii1.sh: Prefer /usr/xpg6/bin/tr over
59413         /usr/xpg4/bin/tr when it exists.
59414         * tests/test-pipe-filter-gi1.sh: Likewise.
59416 2009-08-30  Bruno Haible  <bruno@clisp.org>
59418         Work around deficient /usr/bin/id program on Solaris.
59419         * tests/test-file-has-acl.sh (ID): New variable.
59420         * tests/test-set-mode-acl.sh (ID): Likewise.
59421         * tests/test-copy-acl.sh (ID): Likewise.
59422         * tests/test-copy-file.sh (ID): Likewise.
59424 2009-08-30  Bruno Haible  <bruno@clisp.org>
59426         New module 'xstriconveh'.
59427         * lib/xstriconveh.h: New file.
59428         * lib/xstriconveh.c: New file.
59429         * modules/xstriconveh: New file.
59431 2009-08-30  Bruno Haible  <bruno@clisp.org>
59433         Make it easier to use mem_cd_iconveh.
59434         * lib/striconveh.h (iconveh_t): New type.
59435         (iconveh_open, iconveh_close): New declarations.
59436         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
59437         with a single 'const iconveh_t *' argument.
59438         * lib/striconveh.c (iconveh_open, iconveh_close): New functions.
59439         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
59440         with a single 'const iconveh_t *' argument.
59441         (mem_iconveh, str_iconveh): Use iconveh_open, iconveh_close.
59442         * tests/test-striconveh.c (main): Update.
59443         * NEWS: Mention the change.
59445 2009-08-30  Bruno Haible  <bruno@clisp.org>
59447         * doc/posix-functions/iconv_open.texi: Mention indirect conversion
59448         problem.
59450 2009-08-30  Bruno Haible  <bruno@clisp.org>
59452         Work around iconv_open problem on Solaris.
59453         * lib/iconv_open-solaris.gperf: New file.
59454         * lib/iconv_open.c (ICONV_FLAVOR_SOLARIS): New macro.
59455         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Also handle Solaris.
59456         * modules/iconv_open (Files): Add lib/iconv_open-solaris.gperf.
59457         (Makefile.am): Add rule for iconv_open-solaris.h. Augment
59458         BUILT_SOURCES, MOSTLYCLEANFILES, MAINTAINERCLEANFILES, EXTRA_DIST.
59459         * doc/posix-functions/iconv_open.texi: Mention the Solaris problem.
59461 2009-08-29  Jim Meyering  <meyering@redhat.com>
59463         maint.mk: remove more coreutils-specific targets; XZ_OPT=-9ev
59464         * top/maint.mk (cvs-check): Remove target; it was just an alias
59465         to the better-named vc-diff-check.
59466         (maintainer-distcheck): Remove rule.  It was used only from
59467         the (alpha/beta/major) target, and all of its commands but one
59468         were coreutils-specific.
59469         (vc-dist): Remove rule.
59470         (alpha beta major): Run "$(MAKE) distcheck" explicitly.
59471         Run vc-diff-check, not vc-dist.
59472         Run $(MAKE) dist with XZ_OPT=-9ev.  Note spelling, with "-".
59474 2009-08-27  Bruno Haible  <bruno@clisp.org>
59476         * tests/test-bitrotate.c (main): Remove test that uses a shift count
59477         of 0.
59479 2009-08-27  Bruno Haible  <bruno@clisp.org>
59481         * tests/test-func.c (main): Don't verify sizeof __func__ on SunPRO C
59482         compilers.
59483         * doc/func.texi: Document the SunPRO C bug.
59485 2009-08-27  Bruno Haible  <bruno@clisp.org>
59487         Fix link error on Solaris.
59488         * tests/test-parse-duration.c (xstrdup): Remove function.
59490 2009-08-26  Pádraig Brady  <P@draigbrady.com>
59492         ignore-value: handle pointer types, too
59493         * lib/ignore-value.h (__attribute__): Remove definition.
59494         (ignore_value): Remove use of "__attribute__ ((unused))" in favor
59495         of a more concise and more-often effective "(void) i" statement.
59496         (ignore_ptr): New function to suppress warnings from functions that
59497         return pointers, and to make it explicit that one function doesn't
59498         handle all cases.
59500 2009-08-25  Bruno Haible  <bruno@clisp.org>
59502         dup2: work around a Linux bug.
59503         * m4/dup2.m4 (gl_FUNC_DUP2): Test for the Linux bug.
59504         * lib/dup2.c (rpl_dup2): Correct the return value if it is -EBADF.
59505         * doc/posix-functions/dup2.texi: Mention the Linux bug.
59506         Reported by Simon Josefsson.
59508 2009-08-25  Jim Meyering  <meyering@redhat.com>
59510         libguestfs uses gnulib
59511         * users.txt: Add libguestfs.
59513 2009-08-24  Eric Blake  <ebb9@byu.net>
59515         dup2, pipe2: fix some recent test failures on cygwin 1.5.x
59516         * lib/pipe2.c (includes): Add binary-io.h.
59517         * lib/dup2.c (rpl_dup2): Correct buggy errno value.
59519 2009-08-24  Bruno Haible  <bruno@clisp.org>
59521         Tolerate declared but missing accept4 syscall.
59522         * lib/accept4.c (accept4): Invoke original accept4 function first, if
59523         available.
59524         * lib/sys_socket.in.h (accept4): If the function is already present,
59525         override it.
59526         * m4/accept4.m4 (gl_FUNC_ACCEPT4): Remove AC_LIBOBJ invocation.
59527         * modules/accept4 (Makefile.am): Compile accept4.c always.
59528         Reported by Paolo Bonzini and Eric Blake.
59530 2009-08-23  Bruno Haible  <bruno@clisp.org>
59532         New module 'accept4'.
59533         * lib/sys_socket.in.h (accept4): New declaration.
59534         * lib/accept4.c: New file.
59535         * m4/accept4.m4: New file.
59536         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
59537         GNULIB_ACCEPT4, HAVE_ACCEPT4.
59538         * modules/sys_socket (Makefile.am): Substitute GNULIB_ACCEPT4,
59539         HAVE_ACCEPT4.
59540         * modules/accept4: New file.
59541         * doc/glibc-functions/accept4.texi: Mention the new module.
59543 2009-08-24  Jim Meyering  <meyering@redhat.com>
59545         progname: also set global program_invocation_name, when possible
59546         Before this change, a libtool-enabled program that calls glibc's
59547         error function would report the program name as
59548         "/abs/dir/.libs/lt-program_name" rather than the desired program_name.
59549         * modules/progname (configure.ac): Check for a declaration of
59550         program_invocation_name.
59551         * lib/progname.c:  Include <errno.h>.
59552         (set_program_name) [HAVE_DECL_PROGRAM_INVOCATION_NAME]:
59553         Set program_invocation_name.
59555 2009-08-23  Bruno Haible  <bruno@clisp.org>
59557         * lib/dup3.c: Include <string.h>.
59559 2009-08-23  Bruno Haible  <bruno@clisp.org>
59561         * lib/dup3.c (dup3): Test only once whether the system actually exists.
59562         * lib/pipe2.c (pipe2): Likewise.
59563         Suggested by Eric Blake.
59565 2009-08-23  Bruno Haible  <bruno@clisp.org>
59567         Tolerate declared but missing dup3 syscall.
59568         * lib/dup3.c (dup3): Invoke original dup3 function first, if available.
59569         * lib/unistd.in.h (dup3): If the function is already present,
59570         override it.
59571         * m4/dup3.m4 (gl_FUNC_DUP3): Remove AC_LIBOBJ invocation.
59572         * modules/dup3 (Makefile.am): Compile dup3.c always.
59573         Reported by Paolo Bonzini.
59575 2009-08-23  Bruno Haible  <bruno@clisp.org>
59577         Tolerate declared but missing pipe2 syscall.
59578         * lib/pipe2.c (pipe2): Invoke original pipe2 function first, if
59579         available.
59580         * lib/unistd.in.h (pipe2): If the function is already present,
59581         override it.
59582         * m4/pipe2.m4 (gl_FUNC_PIPE2): Remove AC_LIBOBJ invocation.
59583         * modules/pipe2 (Makefile.am): Compile pipe2.c always.
59584         Reported by Paolo Bonzini.
59586 2009-08-23  Bruno Haible  <bruno@clisp.org>
59588         * lib/pipe2.c (pipe2): Move #ifs inside function.
59590 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
59592         quotearg: document limitations of quote_these_too
59593         * lib/quotearg.c (quotearg_buffer_restyled): Add comments where
59594         those limitations are created.
59595         * lib/quotearg.h (set_char_quoting): Document that digits and
59596         letters that are special after backslash are not permitted.
59597         (quotearg_char): Cross-reference set_char_quoting documentation.
59599 2009-08-23  Joel E. Denny  <jdenny@clemson.edu>
59601         quotearg: implement custom_quoting_style
59602         * lib/quotearg.c: (struct quoting_options): Add left_quote and
59603         right_quote fields.
59604         (set_custom_quoting): New public function.
59605         (quotearg_buffer_restyled): Add left_quote and right_quote
59606         arguments, handle them very much like locale quoting, and update
59607         all uses.
59608         (quotearg_n_custom): New public function.
59609         (quotearg_n_custom_mem): New public function.
59610         (quotearg_custom): New public function.
59611         (quotearg_custom_mem): New public function.
59612         * lib/quotearg.h: Prototype and document new public functions.
59613         (enum quoting_style): For escape_quoting_style and
59614         clocale_quoting_style, comment that QA_SPLIT_TRIGRAPHS is
59615         ignored even though they're otherwise like c_quoting_style.
59616         Add custom_quoting_style member and document with comparison to
59617         clocale_quoting_style.
59618         * tests/test-quotearg.c (custom_quotes): New array.
59619         (custom_results): New array.
59620         (main): Extend to test custom quoting.
59622 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
59624         quotearg: fix right quote escaping when it's in quote_these_too
59625         * lib/quotearg.c (quotearg_buffer_restyled): Upon seeing a right
59626         quote, be sure to prepend only one backslash.
59627         * tests/test-quotearg.c (use_quote_double_quotes): New function.
59628         (main): Test it.
59630 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
59632         quotearg-tests: test escaping of embedded locale quotes
59633         * tests/test-quotearg.c (struct result_strings): Add member for
59634         new input.
59635         (LQ_ENC, RQ_ENC, RQ_ESC): New macros.
59636         (inputs): Add new input.
59637         (results_g): Add expected results.
59638         (flag_results): Likewise.
59639         (locale_results): Likewise.
59640         (compare_strings): Check those.
59642 2009-08-23  Bruno Haible  <bruno@clisp.org>
59644         Tests for module 'dup3'.
59645         * modules/dup3-tests: New file.
59646         * tests/test-dup3.c: New file.
59648         New module 'dup3'.
59649         * lib/unistd.in.h (dup3): New declaration.
59650         * lib/dup3.c: New file.
59651         * m4/dup3.m4: New file.
59652         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP3 and
59653         HAVE_DUP3.
59654         * modules/unistd (Makefile.am): Substitute GNULIB_DUP3 and HAVE_DUP3.
59655         * modules/dup3: New file.
59656         * doc/glibc-functions/dup3.texi: Mention the new module.
59658 2009-08-23  Bruno Haible  <bruno@clisp.org>
59660         Tweak the dup2 test.
59661         * tests/test-dup2.c (main): Create the test file empty. Verify that an
59662         out-of-range fd yields EBADF. Verify that after writing to /dev/null,
59663         the test file is still empty. Fix argument order of lseek.
59665 2009-08-23  Bruno Haible  <bruno@clisp.org>
59667         Avoid test link errors when the modules getopt-gnu, gettext are used.
59668         * modules/getopt-posix-tests (Makefile.am): Define test_getopt_LDADD.
59669         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
59671 2009-08-23  Bruno Haible  <bruno@clisp.org>
59673         Fix getdtablesize() on mingw.
59674         * lib/getdtablesize.c (getdtablesize): Implement differently.
59675         * lib/unistd.in.h (getdtablesize): Improve comment.
59677 2009-08-23  Bruno Haible  <bruno@clisp.org>
59679         New module 'mkostemp'.
59680         Based on Ulrich Drepper's 2007-08-10 change in glibc.
59681         * lib/stdlib.in.h (mksotemp): New declaration.
59682         * lib/mkostemp.c: New file, from glibc with modifications.
59683         * lib/tempname.h (GT_FILE): Remove outdated comment.
59684         (gen_tempname): Add flags argument.
59685         * lib/tempname.c (__GT_BIGFILE): Remove macro.
59686         (__GT_FILE): Map to 1.
59687         (small_open, large_open): Remove macros.
59688         (__gen_tempname): Add flags argument. Remove code for __GT_BIGFILE.
59689         * lib/mkstemp.c (mkstemp): Update.
59690         * lib/mkdtemp.c (mkdtemp): Likewise.
59691         * m4/mkostemp.m4: New file.
59692         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MKOSTEMP,
59693         HAVE_MKOSTEMP.
59694         * modules/stdlib (Makefile.am): Substitute GNULIB_MKOSTEMP,
59695         HAVE_MKOSTEMP.
59696         * modules/mkostemp: New file, based on modules/mkstemp.
59697         * doc/glibc-functions/mkostemp.texi: Mention the new module.
59698         * NEWS: Mention the change.
59700 2009-08-23  Bruno Haible  <bruno@clisp.org>
59702         * lib/pipe2.c (pipe2): Support O_TEXT, O_BINARY on all platforms.
59703         Reported by Eric Blake.
59705 2009-08-23  Bruno Haible  <bruno@clisp.org>
59707         * lib/pipe2.c (pipe2): Fix test of fcntl's return value.
59708         Reported by Eric Blake.
59710 2009-08-23  Bruno Haible  <bruno@clisp.org>
59712         * modules/fchdir (Depends-on): Use fcntl-h instead of fcntl.
59713         * modules/pipe2 (Depends-on): Likewise.
59715 2009-08-23  Eric Blake  <ebb9@byu.net>
59717         fcntl-h: add O_TTY_INIT support
59718         * lib/fcntl.in.h (O_TTY_INIT): Support another POSIX macro.
59719         * tests/test-fcntl-h.c (o): Test it.
59720         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
59722         fcntl-h: rename from fcntl, in preparation for fcntl(2)
59723         * modules/fcntl: Move <fcntl.h> header replacement...
59724         * modules/fcntl-h: ...to new name, so as not to collide with
59725         like-named function.
59726         * tests/test-fcntl.c: Rename...
59727         * tests/test-fcntl-h.c: ...to this.  Test FD_CLOEXEC.
59728         * modules/fcntl-tests: Rename...
59729         * modules/fcntl-h-tests: ...to this.  Update test file name.
59730         * modules/chdir-long (Depends-on): Update clients.
59731         * modules/chdir-safer (Depends-on): Likewise.
59732         * modules/fcntl-safer (Depends-on): Likewise.
59733         * modules/fts (Depends-on): Likewise.
59734         * modules/mkancesdirs (Depends-on): Likewise.
59735         * modules/mkdir-p (Depends-on): Likewise.
59736         * modules/open (Depends-on): Likewise.
59737         * modules/savewd (Depends-on): Likewise.
59738         * MODULES.html.sh (systems lacking POSIX:2008): Update name.
59739         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
59741 2009-08-22  Bruno Haible  <bruno@clisp.org>
59743         * modules/binary-io (License): Relicense under LGPL.
59744         * modules/pipe2 (License): Likewise.
59746 2009-08-22  Bruno Haible  <bruno@clisp.org>
59748         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): Fix test of fcntl's
59749         return value.
59750         * lib/pipe-filter-gi.c (filter_init): Likewise.
59751         Reported by Eric Blake.
59753 2009-08-22  Bruno Haible  <bruno@clisp.org>
59755         * lib/pipe.c (create_pipe): Use pipe2 instead of _pipe.
59756         * modules/pipe (Depends-on): Add pipe2.
59758 2009-08-22  Bruno Haible  <bruno@clisp.org>
59760         Tests for module 'pipe2'.
59761         * modules/pipe2-tests: New file.
59762         * tests/test-pipe2.c: New file.
59764         New module 'pipe2'.
59765         * lib/unistd.in.h (pipe2): New declaration.
59766         * lib/pipe2.c: New file.
59767         * m4/pipe2.m4: New file.
59768         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PIPE2 and
59769         HAVE_PIPE2.
59770         * modules/unistd (Makefile.am): Substitute GNULIB_PIPE2 and HAVE_PIPE2.
59771         * modules/pipe2: New file.
59772         * doc/glibc-functions/pipe2.texi: Mention the new module.
59774 2009-08-22  Bruno Haible  <bruno@clisp.org>
59776         Reference some new glibc functions.
59777         * doc/glibc-functions/accept4.texi: New file.
59778         * doc/glibc-functions/dup3.texi: New file.
59779         * doc/glibc-functions/mkostemp.texi: New file.
59780         * doc/glibc-functions/pipe2.texi: New file.
59781         * doc/gnulib.texi (Glibc stdlib.h): Refer to mkostemp.
59782         (Glibc sys/socket.h): Refer to accept4.
59783         (Glibc unistd.h): Refer to dup3, pipe2.
59784         Reported by Eric Blake.
59786 2009-08-22  Jim Meyering  <meyering@redhat.com>
59787             Bruno Haible  <bruno@clisp.org>
59789         annotate automake snippets with $(AM_V_GEN) and $(AM_V_at)
59790         This makes it so packages using automake-1.11's silent-rules option
59791         can print e.g., a single "GEN    configmake.h" line, rather than
59792         the 30+ statements that perform the job.  If you want to see the
59793         actual commands, you can still run "make V=1".
59794         * modules/alloca-opt: Add $(AM_V_GEN) and $(AM_V_at) prefixes
59795         so that make output is abbreviated when those variables are defined
59796         appropriately.
59797         * modules/argz: Likewise.
59798         * modules/arpa_inet: Likewise.
59799         * modules/byteswap: Likewise.
59800         * modules/configmake: Likewise.
59801         * modules/dirent: Likewise.
59802         * modules/errno: Likewise.
59803         * modules/fcntl: Likewise.
59804         * modules/float: Likewise.
59805         * modules/fnmatch: Likewise.
59806         * modules/getopt-posix: Likewise.
59807         * modules/glob: Likewise.
59808         * modules/iconv_open: Likewise.
59809         * modules/inttypes: Likewise.
59810         * modules/localcharset: Likewise.
59811         * modules/locale: Likewise.
59812         * modules/math: Likewise.
59813         * modules/netdb: Likewise.
59814         * modules/netinet_in: Likewise.
59815         * modules/poll: Likewise.
59816         * modules/posix_spawnp-tests: Likewise.
59817         * modules/sched: Likewise.
59818         * modules/search: Likewise.
59819         * modules/selinux-h: Likewise.
59820         * modules/signal: Likewise.
59821         * modules/spawn: Likewise.
59822         * modules/stdarg: Likewise.
59823         * modules/stdbool: Likewise.
59824         * modules/stddef: Likewise.
59825         * modules/stdint: Likewise.
59826         * modules/stdio: Likewise.
59827         * modules/stdlib: Likewise.
59828         * modules/string: Likewise.
59829         * modules/strings: Likewise.
59830         * modules/sys_file: Likewise.
59831         * modules/sys_ioctl: Likewise.
59832         * modules/sys_select: Likewise.
59833         * modules/sys_socket: Likewise.
59834         * modules/sys_stat: Likewise.
59835         * modules/sys_time: Likewise.
59836         * modules/sys_times: Likewise.
59837         * modules/sys_utsname: Likewise.
59838         * modules/sys_wait: Likewise.
59839         * modules/sysexits: Likewise.
59840         * modules/time: Likewise.
59841         * modules/unistd: Likewise.
59842         * modules/wchar: Likewise.
59843         * modules/wctype: Likewise.
59845 2009-08-22  Jim Meyering  <meyering@redhat.com>
59847         announce-gen: detect write failure
59848         * build-aux/announce-gen: Add Coda at end.
59849         Remove equivalent-but-more-verbose block at top.
59851 2009-08-19  Akim Demaille  <demaille@gostai.com>
59853         bootstrap: --help to stdout.
59854         * bootstrap (usage): Don't send --help to stderr.
59855         Use a here doc instead of a long string.
59857 2009-08-21  Eric Blake  <ebb9@byu.net>
59859         test-popen-safer: split from test-popen
59860         * tests/test-popen.c (main): Move...
59861         * tests/test-popen.h: ...into new file.
59862         * tests/test-popen-safer2.c: New file.
59863         * modules/popen-tests (Files): Add test-popen.h.
59864         * modules/popen-safer-tests (Files): Add test-popen-safer2.c.
59865         Suggested by Bruno Haible.
59867         test-fcntl-safer: split from test-open
59868         * tests/test-open.c (main): Move...
59869         * tests/test-open.h: ...into new file.
59870         * tests/test-fcntl-safer.c: New file.
59871         * modules/open-tests (Files): Add test-open.h.
59872         * modules/fcntl-safer-tests: New file.
59873         Suggested by Bruno Haible.
59875         test-fopen-safer: split from test-fopen
59876         * tests/test-fopen.c (main): Move...
59877         * tests/test-fopen.h: ...into new file.
59878         * tests/test-fopen-safer.c: New file.
59879         * modules/fopen-tests (Files): Add test-fopen.h.
59880         * modules/fopen-safer-tests: New file.
59881         Suggested by Bruno Haible.
59883 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
59885         popen-safer: test O_CLOEXEC at run-time.
59886         * lib/popen-safer.c: Test O_CLOEXEC at run-time.
59888 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
59890         fcntl: move more flags to the header
59891         * lib/cloexec.c: Do not define FD_CLOEXEC here.
59892         * lib/popen-safer.c: Do not alias O_NOINHERIT to O_CLOEXEC here.
59893         * lib/fcntl.in.h: Do both things here.
59895 2009-08-21  Jim Meyering  <meyering@redhat.com>
59897         consistently remove $@-t before redirecting to it
59898         * modules/argz: Remove $@-t and $@ before redirecting to the former.
59899         * modules/alloca-opt: Likewise.
59900         * modules/byteswap: Likewise.
59901         * modules/fnmatch: Likewise.
59902         * modules/getopt-posix: Likewise.
59903         * modules/glob: Likewise.
59904         * modules/poll: Likewise.
59905         * modules/posix_spawnp-tests: Likewise.
59906         * modules/sys_socket: Likewise.
59907         * modules/sysexits: Likewise.
59909 2009-08-21  Eric Blake  <ebb9@byu.net>
59911         popen: simplify access to original popen
59912         * lib/popen.c (rpl_popen): No need to worry about popen being a
59913         macro.
59914         Reported by Bruno Haible.
59916 2009-08-20  Eric Blake  <ebb9@byu.net>
59918         build: avoid some compiler warnings
59919         * lib/selinux-at.h: Use dir_fd, not dirfd, to avoid shadowing.
59920         * lib/exclude.c (fnmatch_pattern_has_wildcards): Use correct
59921         type.
59922         (new_exclude_segment, excluded_file_pattern_p)
59923         (excluded_file_name_p): Reduce scope.
59924         * lib/vasnprintf.c (decimal_point_char): Avoid warning on
59925         old-style declaration.
59927 2009-08-20  Simon Josefsson  <simon@josefsson.org>
59929         * tests/test-exclude1.sh: Handle Windows EOL.
59930         * tests/test-exclude2.sh: Likewise.
59931         * tests/test-exclude3.sh: Likewise.
59932         * tests/test-exclude4.sh: Likewise.
59933         * tests/test-exclude5.sh: Likewise.
59934         * tests/test-exclude6.sh: Likewise.
59935         * tests/test-exclude7.sh: Likewise.
59937 2009-08-19  Akim Demaille  <demaille@gostai.com>
59939         bootstrap: find sha1sum when named gsha1sum.
59940         * bootstrap (find_tool): New.
59941         ($SHA1SUM): New.
59942         Use it.
59944 2009-08-20  Jim Meyering  <meyering@redhat.com>
59946         maint.mk: _header_without_use: fix a quoting bug and remove a bash'ism
59947         * top/maint.mk (_header_without_use): Use "\\\\", not "\\" in the sed
59948         expression that converts "." in a file name to "\." in the resulting
59949         regexp.  Start with a dummy statement, so that prior shell variable
59950         definitions are expanded portably.  Reported by Simon Josefsson.
59952 2009-08-20  Paolo Bonzini  <bonzini@gnu.org>
59954         Fix polling for writeability of a screen buffer.
59955         * lib/poll.c: Distinguish input and screen buffers for the
59956         Win32 implementation.
59957         * lib/select.c: Likewise.
59959 2009-08-19  Eric Blake  <ebb9@byu.net>
59961         popen-safer: prevent popen from clobbering std descriptors
59962         * modules/popen-safer: New file.
59963         * lib/popen-safer.c: Likewise.
59964         * m4/stdio-safer.m4 (gl_POPEN_SAFER): New macro.
59965         * lib/stdio--.h (popen): Provide override.
59966         * lib/stdio-safer.h (popen_safer): Provide declaration.
59967         * tests/test-popen.c (includes): Partially test this.
59968         * modules/popen-safer-tests: New file, for more tests.
59969         * tests/test-popen-safer.c: Likewise.
59970         * MODULES.html.sh (file stream based Input/Output): Mention it.
59972         tests: test some of the *-safer modules
59973         * modules/fopen-safer (Depends-on): Add fopen.
59974         * modules/fcntl-safer (Depends-on): Add fcntl.
59975         * modules/stdlib-safer (Depends-on): Add stdlib.
59976         (configure.ac): Set indicator.
59977         * modules/unistd-safer (configure.ac): Likewise.
59978         * modules/tmpfile-safer (configure.ac): Likewise.
59979         (Depends-on): Add tmpfile.
59980         * lib/stdio--.h (fopen, tmpfile): Don't override unless module is
59981         active.
59982         * tests/test-fopen.c (includes): Test safer versions when they are
59983         in use.
59984         * tests/test-open.c (includes): Likewise.
59986         popen: fix cygwin 1.5 bug when stdin closed
59987         * doc/posix-functions/popen.texi (popen): Document cygwin bugs.
59988         * modules/popen: New file.
59989         * modules/popen-tests: Likewise.
59990         * tests/test-popen.c: Likewise.
59991         * m4/popen.m4: Likewise.
59992         * lib/popen.c: Likewise.
59993         * lib/stdio.in.h (popen): New declaration.
59994         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add popen.
59995         * modules/stdio (Makefile.am): Likewise.
59996         * MODULES.html.sh (systems lacking POSIX:2008): Mention it.
59998 2009-08-17  Joel E. Denny  <jdenny@clemson.edu>
60000         maint.mk: give full control over update-copyright exclusions
60001         * top/maint.mk (VC_LIST_EXCEPT): Instead of ChangeLog, use
60002         ${VC_LIST_EXCEPT_DEFAULT-ChangeLog} as the default exclusion.
60003         (update-copyright): Don't force inclusion of top-level
60004         ChangeLog.  Don't force exclusion of all COPYING files, but make
60005         them the default exclusion instead.
60007 2009-08-16  Bruno Haible  <bruno@clisp.org>
60009         Fix test failures on Solaris 10.
60010         * tests/uniconv/test-u8-conv-from-enc.c (main): Disable autodetect_jp
60011         tests when Solaris iconv() is used.
60012         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
60013         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
60014         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
60015         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
60016         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
60018 2009-08-16  Bruno Haible  <bruno@clisp.org>
60020         Fix test failures on Solaris 10.
60021         * tests/test-pipe-filter-ii1.sh: Determine the filename of a working
60022         'tr' program and pass it as first argument.
60023         * tests/test-pipe-filter-gi1.sh: Likewise.
60024         * tests/test-pipe-filter-ii1.c (main): Except the filename of a 'tr'
60025         program as first argument.
60026         * tests/test-pipe-filter-gi1.c (main): Likewise.
60028 2009-08-16  Eric Blake  <ebb9@byu.net>
60030         fpurge: fix previous commits
60031         * modules/fpurge (Makefile.am): Make replacement conditional,
60032         partially reverting 2007-04-29 change; missed in previous
60033         attempt.
60034         * m4/fpurge.m4 (gl_FUNC_FPURGE): Also compile fpurge.c when fpurge
60035         is missing.
60037 2009-08-16  Bruno Haible  <bruno@clisp.org>
60039         Clarify fpurge's effect on the file position.
60040         * lib/stdio.in.h (fpurge): Specify the file position after fpurge.
60041         * tests/test-fpurge.c (main): Make a second pass for checking the file
60042         position.
60044 2009-08-16  Bruno Haible  <bruno@clisp.org>
60046         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't compile fpurge.c if only the
60047         declaration of fpurge is missing.
60048         * tests/test-fpurge.c (main): Check that the file has not more contents
60049         than expected. Close the file before removing it.
60051 2009-08-15  Eric Blake  <ebb9@byu.net>
60053         fpurge: don't wrap working cygwin implementation
60054         * lib/fpurge.c (fpurge): Fix comment typo.
60055         * m4/fpurge.m4 (gl_FUNC_FPURGE): Detect BSD bug, allowing cygwin
60056         1.7 to avoid replacement.
60057         * tests/test-fpurge.c (main): Enhance test.
60059 2009-08-15  Eric Blake  <ebb9@byu.net>
60060         and Jim Meyering  <meyering@redhat.com>
60062         test-update-copyright: skip if perl is insufficient
60063         * tests/test-update-copyright.sh: Failure to run maintainer tool
60064         should not cause testsuite failure on cygwin 1.5.
60066 2009-08-14  Eric Blake  <ebb9@byu.net>
60068         doc: mention more functions added in cygwin 1.7.0
60069         * doc/posix-headers/limits.texi (limits.h): Update for recent
60070         cygwin additions.
60071         * doc/posix-headers/wordexp.texi (wordexp.h): Likewise.
60072         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
60073         * doc/posix-functions/wordfree.texi (wordfree): Likewise.
60074         * doc/posix-functions/setlocale.texi (setlocale): Likewise.
60075         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Likewise.
60077 2009-08-14  Eric Blake  <ebb9@byu.net>
60079         maint.mk: simplify update-copyright rule
60080         * top/maint.mk (update-copyright-local): Delete, and document how
60081         to do it in cfg.mk instead.
60082         (update-copyright-exclude-regexp): Delete, and document how to do
60083         it in .x-update-copyright instead.
60084         (update-copyright): Simplify, thanks to VC_LIST_EXCEPT.  Don't
60085         exclude ChangeLog.
60087 2009-08-14  Bruno Haible  <bruno@clisp.org>
60089         * m4/wchar.m4 (gl_WCHAR_H): Undo invalid optimization in last commit.
60091 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
60093         maint.mk: support update-copyright-env
60094         * top/maint.mk (update-copyright-env): Define place-holder.
60095         (update-copyright): Expand $(update-copyright-env) before
60096         invoking update-copyright.
60098 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
60100         update-copyright: implement forced reformatting
60101         * build-aux/update-copyright: Implement and document
60102         UPDATE_COPYRIGHT_FORCE.
60103         * tests/test-update-copyright.sh: Test it.
60105 2009-08-14  Eric Blake  <ebb9@byu.net>
60106         and Bruno Haible  <bruno@clisp.org>
60108         stddef: fix NetBSD 5.0 NULL bug, rather than working around it
60109         * tests/test-locale.c: Revert previous patch related to NULL.
60110         * tests/test-stdio.c: Likewise.
60111         * tests/test-stdlib.c: Likewise.
60112         * tests/test-string.c: Likewise.
60113         * tests/test-unistd.c: Likewise.
60114         * modules/time-tests (Depends-on): Add verify.
60115         * modules/wchar-tests (Depends-on): Likewise.
60116         * tests/test-time.c: Test for NULL compliance.
60117         * tests/test-wchar.c: Likewise.
60118         * modules/locale (Depends-on): Add stddef.
60119         * modules/stdio (Depends-on): Likewise.
60120         * modules/stdlib (Depends-on): Likewise.
60121         * modules/string (Depends-on): Likewise.
60122         * modules/time (Depends-on): Likewise.
60123         * modules/unistd (Depends-on): Likewise.
60124         * modules/wchar (Depends-on): Likewise.
60125         * lib/locale.in.h (includes): Use <stddef.h> to fix NULL.
60126         * lib/stdlib.in.h (includes): Likewise.
60127         * lib/string.in.h (includes): Likewise.
60128         * lib/time.in.h (includes): Likewise.
60129         * lib/unistd.in.h (includes): Likewise.
60130         * m4/locale_h.m4 (gl_LOCALE_H): Replace locale.h if stddef.h was
60131         replaced.
60132         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
60133         * m4/stddef_h.m4: New file.
60134         * modules/stddef: Likewise.
60135         * lib/stddef.in.h: Likewise.
60136         * modules/stddef-tests: Likewise.
60137         * tests/test-stddef.c: Likewise.
60138         * MODULES.html.sh (Basic types <stddef.h>): Mention new module.
60139         * doc/posix-headers/stddef.texi (stddef.h): Document the bug.
60140         * doc/posix-headers/locale.texi (locale.h): Likewise.
60141         * doc/posix-headers/stdio.texi (stdio.h): Likewise.
60142         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
60143         * doc/posix-headers/string.texi (string.h): Likewise.
60144         * doc/posix-headers/time.texi (time.h): Likewise.
60145         * doc/posix-headers/unistd.texi (unistd.h): Likewise.
60146         * doc/posix-headers/wchar.texi (wchar.h): Likewise.
60148 2009-08-14  Eric Blake  <ebb9@byu.net>
60150         doc: improve git diff of texinfo files
60151         * .gitattributes: Add rule for *.texi files, with hint on how to
60152         use it.
60153         Copied from m4, and based on a report by Bruno Haible.
60155 2009-08-14  Bruno Haible  <bruno@clisp.org>
60157         Disable multithread support by default on Cygwin 1.5.x for real.
60158         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Fix last commit.
60160 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
60162         update-copyright: much ado about intervals
60163         * build-aux/update-copyright: Implement and document
60164         UPDATE_COPYRIGHT_USE_INTERVALS to control expansion and collapse
60165         of copyright year intervals.
60166         Also, document UPDATE_COPYRIGHT_YEAR.
60167         * tests/test-update-copyright.sh: Test it.
60169         update-copyright: convert 2-digit to 4-digit years
60170         * build-aux/update-copyright: Implement and document.
60171         * tests/test-update-copyright.sh: Update.
60173 2009-08-14  Jim Meyering  <meyering@redhat.com>
60175         test-exclude: avoid coreutils "make check" failure
60176         * tests/test-exclude.c (ARGMATCH_DIE_DECL) [ARGMATCH_DIE_DECL]: Define,
60177         just as in test-argmatch.c.
60179 2009-08-13  Eric Blake  <ebb9@byu.net>
60181         test-dup2: fix bad assumption
60182         * tests/test-dup2.c (main): Tolerate leaked fds from environment.
60183         Reported by Peter Breitenlohner <peb@mppmu.mpg.de>.
60185         test-version-etc: fix CRLF portability issue
60186         * tests/test-version-etc.sh: Use tr, not sed, as not all sed
60187         recognize \r.
60188         * tests/test-argp-version-etc-1.sh: Likewise.
60190         getopt: update client modules
60191         * modules/argp (Depends-on): Use getopt-gnu.
60192         * modules/git-merge-changelog (Depends-on): Likewise.
60193         * modules/long-options (Depends-on): Likewise.
60194         * modules/xstrtol (Depends-on): Likewise.
60196 2009-08-13  Simon Josefsson  <simon@josefsson.org>
60198         * tests/test-version-etc.sh: Don't fail on different
60199         project/version.  Don't fail on CRLF differences.  Rewrite to use
60200         multiple -e instead of multiple sed forks, suggested by Eric Blake
60201         <ebb9@byu.net>.
60202         * tests/test-argp-version-etc-1.sh: Likewise.
60204 2009-08-13  Simon Josefsson  <simon@josefsson.org>
60206         * tests/test-version-etc.sh: Don't fail on different
60207         project/version.
60209 2009-08-12  Bruno Haible  <bruno@clisp.org>
60211         Tests for modules 'getopt-posix', 'getopt-gnu'.
60212         * modules/getopt-posix-tests: New file.
60213         * tests/test-getopt.c: New file.
60214         * tests/test-getopt.h: New file.
60215         * tests/test-getopt_long.h: New file.
60217         New modules 'getopt-posix', 'getopt-gnu'.
60218         * modules/getopt-gnu: New file, renamed from modules/getopt.
60219         * modules/getopt-posix: New file.
60220         * modules/getopt: Turn into an obsolete alias for getopt-gnu.
60221         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX, gl_FUNC_GETOPT_GNU): New macros.
60222         (gl_GETOPT): Remove macro.
60223         (gl_GETOPT_CHECK_HEADERS): Do some checks only for gl_FUNC_GETOPT_GNU.
60224         Disable the test against BSD systems that declare optreset. Test
60225         against mingw bug. Test against lack of support of optional arguments
60226         on many platforms.
60227         * doc/glibc-headers/getopt.texi: Update module name and list of
60228         relevant platforms.
60229         * doc/posix-functions/getopt.texi: Mention modules 'getopt-posix' and
60230         'getopt-gnu' and more portability problems.
60231         * NEWS: Mention the changes.
60233 2009-08-12  Bruno Haible  <bruno@clisp.org>
60235         Ensure that optarg etc. get declared by <unistd.h>.
60236         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require
60237         AC_USE_SYSTEM_EXTENSIONS.
60238         * modules/getopt (Depends-on): Add 'extensions'.
60240 2009-08-12  Bruno Haible  <bruno@clisp.org>
60242         Avoid test link errors.
60243         * modules/pipe-filter-ii-tests (Makefile.am): Define
60244         test_pipe_filter_ii1_LDADD and test_pipe_filter_ii2_main_LDADD.
60245         * modules/pipe-filter-gi-tests (Makefile.am): Define
60246         test_pipe_filter_gi1_LDADD and test_pipe_filter_gi2_main_LDADD.
60247         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
60249 2009-08-12  Bruno Haible  <bruno@clisp.org>
60251         * m4/getopt.m4 (gl_REPLACE_GETOPT): New macro, was called
60252         gl_GETOPT_SUBSTITUTE before.
60253         (gl_GETOPT): Use it.
60254         * m4/argp.m4 (gl_ARGP): Update.
60255         Reported by Sergey Poznyakoff.
60257         * m4/getopt.m4: Reorder macros.
60258         (gl_GETOPT): Inline gl_GETOPT_SUBSTITUTE.
60259         (gl_GETOPT_SUBSTITUTE): Remove macro.
60261 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
60263         Minor improvement in gitlog-to-changelog
60265         * build-aux/gitlog-to-changelog: New option `--format' makes
60266         output format string configurable.
60268 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
60270         Optimize exclude: use hash tables for non-wildcard patterns.
60272         * lib/exclude.c: Include hash.h and mbuiter.h
60273         (struct exclude_pattern, exclude_segment): New data types.
60274         (struct exclude): Rewrite.
60275         (fnmatch_pattern_has_wildcards): New function.
60276         (new_exclude_segment, free_exclude_segment): New functions.
60277         (excluded_file_pattern_p, excluded_file_name_p): New functions.
60278         (excluded_file_name, add_exclude): Rewrite using new struct exclude.
60279         * lib/exclude.h (is_fnmatch_pattern): New prototype.
60280         * modules/exclude: Depend on hash and mbuiter.
60282         * modules/exclude-tests: New file.
60283         * tests/test-exclude.c: New file.
60284         * tests/test-exclude1.sh: New file.
60285         * tests/test-exclude2.sh: New file.
60286         * tests/test-exclude3.sh: New file.
60287         * tests/test-exclude4.sh: New file.
60288         * tests/test-exclude5.sh: New file.
60289         * tests/test-exclude6.sh: New file.
60290         * tests/test-exclude7.sh: New file.
60292 2009-08-12  Bruno Haible  <bruno@clisp.org>
60294         Ensure that getopt() gets declared by <unistd.h>.
60295         * lib/unistd.in.h: Conditionally include getopt.h.
60296         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Require gl_UNISTD_H_DEFAULTS.
60297         Set GNULIB_UNISTD_H_GETOPT.
60298         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
60299         GNULIB_UNISTD_H_GETOPT.
60300         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_GETOPT.
60302 2009-08-12  Bruno Haible  <bruno@clisp.org>
60304         Clarify logic.
60305         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS, gl_GETOPT_IFELSE): Use
60306         gl_replace_getopt instead of GETOPT_H.
60308 2009-08-12  Bruno Haible  <bruno@clisp.org>
60310         * m4/getopt.m4: Add comments.
60312 2009-08-12  Bruno Haible  <bruno@clisp.org>
60314         Disable multithread support by default on Cygwin 1.5.x.
60315         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): On Cygwin 1.5.x and older,
60316         set gl_use_threads=no if not specified otherwise.
60318 2009-08-11  Bruno Haible  <bruno@clisp.org>
60320         Avoid compilation error on NetBSD 5.0.
60321         * tests/test-locale.c: Write sizeof (NULL) instead of sizeof NULL.
60322         * tests/test-stdio.c: Likewise.
60323         * tests/test-stdlib.c: Likewise.
60324         * tests/test-string.c: Likewise.
60325         * tests/test-unistd.c: Likewise.
60326         Reported by Greg Troxel <gdt@ir.bbn.com>
60327         at <https://savannah.gnu.org/support/?106973>.
60329 2009-08-11  Bruno Haible  <bruno@clisp.org>
60331         * modules/dup2-tests (Depends-on): Remove close.
60333         Undo 2009-07-19 commit.
60334         * modules/acl-tests (Depends-on): Remove close.
60335         * modules/binary-io-tests (Depends-on): Likewise.
60336         * modules/closein-tests (Depends-on): Likewise.
60337         * modules/flock-tests (Depends-on): Likewise.
60338         * modules/fsync-tests (Depends-on): Likewise.
60339         * modules/lseek-tests (Depends-on): Likewise.
60340         * modules/pipe-tests (Depends-on): Likewise.
60341         * modules/posix_spawn-tests (Depends-on): Likewise.
60342         * modules/posix_spawnp-tests (Depends-on): Likewise.
60343         * modules/stat-time-tests (Depends-on): Likewise.
60344         * modules/yesno-tests (Depends-on): Likewise.
60346 2009-08-10  Bruno Haible  <bruno@clisp.org>
60348         * lib/vasnprintf.c (DCHAR_SET): Undefine at the end.
60350 2009-08-10  Bruno Haible  <bruno@clisp.org>
60352         Fix a gcc warning.
60353         * lib/write.c (rpl_write): Cast result of _get_osfhandle.
60355 2009-08-10  Bruno Haible  <bruno@clisp.org>
60357         Don't optimize AC_LIBOBJs, as they may appear in different contexts.
60358         * m4/close.m4 (gl_REPLACE_CLOSE): Execute AC_LIBOBJ unconditionally,
60359         not only the first time.
60360         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Likewise.
60361         * m4/open.m4 (gl_REPLACE_OPEN): Likewise.
60362         * m4/strstr.m4 (gl_FUNC_STRSTR): Execute AC_LIBOBJ when REPLACE_STRSTR
60363         is 1, not only the first time.
60365 2009-08-10  Bruno Haible  <bruno@clisp.org>
60367         Make it possible to use module 'gethostname' without module 'close'.
60368         * lib/unistd.in.h (close): Evoke a link error only if
60369         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
60370         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
60371         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
60372         * modules/unistd (Makefile.am): Substitute
60373         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
60374         * lib/sys_ioctl.in.h (ioctl): Evoke a link error only if
60375         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
60376         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
60377         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
60378         * modules/sys_ioctl (Makefile.am): Substitute
60379         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
60380         * modules/socket (configure.ac): On native Windows, set
60381         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS and
60382         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
60383         Reported by Sam Steingold <sds@gnu.org>.
60385 2009-08-10  Bruno Haible  <bruno@clisp.org>
60387         * m4/close.m4 (gl_FUNC_CLOSE): Add comment.
60388         * modules/ioctl (configure.ac): Likewise.
60390 2009-08-10  Bruno Haible  <bruno@clisp.org>
60392         Avoid collision between gnulib wrapper and libintl wrapper.
60393         * lib/stdio-write.c (printf): Don't define if a printf wrapper is
60394         already defined in intl/printf.c.
60395         (vprintf): Test REPLACE_VPRINTF_POSIX, not REPLACE_VFPRINTF_POSIX.
60396         (vfprintf): Test REPLACE_VFPRINTF_POSIX, not REPLACE_VPRINTF_POSIX.
60398 2009-08-09  Bruno Haible  <bruno@clisp.org>
60400         Make <sys/select.h> really self-contained, also on Solaris 10.
60401         * lib/sys_select.in.h: Include <string.h>.
60402         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Test also against
60403         Solaris 10 problem.
60404         * tests/test-sys_select.c (main): Add check that FD_ZERO can be used.
60405         * doc/posix-headers/sys_select.texi: Mention the Solaris 10 problem.
60406         Reported by Jim Meyering.
60408 2009-08-09  Bruno Haible  <bruno@clisp.org>
60410         Avoid warnings from 'aclocal' that are due to a use of macro name
60411         AM_XGETTEXT_OPTION that is not defined in automake.
60412         * modules/argp (configure.ac): Hide use of AM_XGETTEXT_OPTION from
60413         automake.
60414         * modules/error (configure.ac): Likewise.
60415         * modules/propername (configure.ac): Likewise.
60416         * modules/vasprintf (configure.ac): Likewise.
60417         * modules/verror (configure.ac): Likewise.
60418         * modules/xprintf (configure.ac): Likewise.
60419         * modules/xvasprintf (configure.ac): Likewise.
60421 2009-08-08  Bruno Haible  <bruno@clisp.org>
60423         Avoid compilation error in C++ mode.
60424         * lib/gettimeofday.c (rpl_gettimeofday): Cast timezone argument.
60425         Reported by Sam Steingold <sds@gnu.org>.
60427 2009-08-08  Bruno Haible  <bruno@clisp.org>
60429         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Define HOST_NAME_MAX also
60430         for the various Unix platforms.
60431         * doc/posix-headers/limits.texi: Update platforms list regarding
60432         HOST_NAME_MAX.
60433         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
60435 2009-08-07  Jim Meyering  <meyering@redhat.com>
60437         selinux-at: fix typo in a comment
60438         * lib/selinux-at.h: s/getfileconat/getfilecon/ in a comment.
60439         Spotted by Paolo Bonzini.
60441         selinux-at: remove redundant m4 code, add documentation
60442         * modules/selinux-at (configure.ac): Remove redundant code.
60443         LIB_SELINUX is already set via the dependent module, selinux-h.
60444         (Include): Add quotes around selinux-at.h.
60445         * lib/selinux-at.h: Add documentation.
60446         Reported by Bruno Haible in
60447         http://marc.info/?l=gnulib-bug&m=124958988300749
60449 2009-08-07  Bruno Haible  <bruno@clisp.org>
60451         Avoid link error on MacOS X 10.3 and 10.4.
60452         * lib/argp-ba.c (argp_program_bug_address): Explicitly zero-initialize
60453         on non-ELF systems.
60454         * lib/argp-pv.c (argp_program_version): Likewise.
60455         Reported by Simon Josefsson.
60457 2009-08-07  Simon Josefsson  <simon@josefsson.org>
60459         * tests/test-version-etc.sh: Use $EXEEXT.
60461 2009-08-06  Joel E. Denny  <jdenny@clemson.edu>
60463         update-copyright: update documentation to point to maint.mk
60464         * build-aux/update-copyright: Here.
60466 2009-08-06  Jim Meyering  <meyering@redhat.com>
60468         maint.mk: support update-copyright-local
60469         * top/maint.mk (update-copyright-local): Define place-holder.
60470         (update-copyright): Depend on $(update-copyright-local).
60472 2009-08-06  Jim Meyering  <meyering@redhat.com>
60474         selinux-at: new module
60475         Initially written for coreutils, this module will soon be
60476         used by findutils, too.
60477         * MODULES.html.sh [Misc]: Add selinux-at.
60478         * lib/selinux-at.h: New file, from coreutils.
60479         * lib/selinux-at.c: Likewise.
60480         * modules/selinux-at: Likewise.
60481         (License): Change from LGPL to GPL, since it depends
60482         on the GPL'd openat module.
60484         doc: update README
60485         * README: Remove references to cogito.
60486         Remove cvs-repo-updating instructions from 2007.
60487         Don't imply that CVS is better if you have limited disk space.
60489 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
60491         update-copyright: support C-style comments
60492         * build-aux/update-copyright: Implement and document.
60493         * tests/test-update-copyright.sh: Test.
60495 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
60497         update-copyright: support omitted "(C)"
60498         * build-aux/update-copyright: Implement and document.  Also,
60499         allow variable whitespace before "(C)".
60500         * tests/test-update-copyright.sh: Test.
60502 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
60504         update-copyright: don't trip on non-FSF copyright statements
60505         * build-aux/update-copyright: Fix so that the first correctly
60506         formatted FSF copyright statement is recognized no matter what
60507         appears before it.  Update documentation.
60508         * tests/test-update-copyright.sh: Test that.
60510 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
60512         update-copyright: clean up code a little
60513         * build-aux/update-copyright: Append "_re" to the name of any
60514         variable holding a regular expression.
60515         Replace "old" and "new" with "stmt" in variable names.
60516         Do not accept 2-digit UPDATE_COPYRIGHT_YEAR, which was not
60517         handled correctly.
60518         Format code more consistently.
60520 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
60522         update-copyright-tests: improve portability
60523         * tests/test-update-copyright.sh: Use cmp if diff cannot handle
60524         -u or /dev/null.  Suggested by Jim Meyering and Eric Blake.
60526 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
60528         update-copyright: support @copyright{} and &copy;
60529         * build-aux/update-copyright: Implement and document.
60530         * tests/test-update-copyright.sh: Test.
60532 2009-08-04  Jim Meyering  <meyering@redhat.com>
60534         update-copyright-tests: correctly test EOL=\r\n handling
60535         * tests/test-update-copyright.sh: Put \r at the end of some lines
60536         for the dos-eol tests.  Based on a patch by Joel E. Denny.
60538         maint.mk: make update-copyright exclusion list more configurable
60539         * top/maint.mk (update-copyright): Default to excluding COPYING,
60540         but allow an override, in case someone does want to update that file.
60542         maint.mk: don't update copyright date in COPYING
60543         * top/maint.mk (update-copyright): Exclude COPYING.
60545         maint.mk: add a copyright-updating rule
60546         * top/maint.mk (update-copyright): New rule.
60547         Derived from coreutils/Makefile.am.
60549         update-copyright: rename some variables
60550         * build-aux/update-copyright: Rename a few variables for clarity.
60551         Tweak syntax.  List Joel E. Denny as coauthor.
60553 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
60555         update-copyright: fix bug for 2-digit last year and add tests
60556         * build-aux/update-copyright: Fix bug.
60557         Use UPDATE_COPYRIGHT_YEAR from environment as current year if
60558         specified.
60559         * modules/update-copyright-tests: New
60560         * tests/test-update-copyright.sh: New.
60562 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
60564         update-copyright: handle leading tabs in line prefix
60565         * build-aux/update-copyright: Count leading tabs as 8 spaces
60566         when computing margin.  This helps with the formatting of
60567         ChangeLogs, for example.
60568         Fix documentation a little.
60570 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
60572         update-copyright: support EOL=\r\n
60573         * build-aux/update-copyright: Implement that.
60575 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
60577         update-copyright: automatically format copyright statements
60578         * build-aux/update-copyright: Implement that.
60579         Also, be a little more predictable and safer by always failing
60580         when the full copyright format is not perfectly recognized as an
60581         unbroken whole.  Discussed at
60582         <http://lists.gnu.org/archive/html/bug-gnulib/2009-07/msg00131.html>.
60583         Rewrite documentation.
60585 2009-08-03  Bruno Haible  <bruno@clisp.org>
60587         * m4/iconv.m4 (AM_ICONV): Fix displayed message with autoconf-2.64.
60589 2009-08-02  Bruno Haible  <bruno@clisp.org>
60591         Tests for module 'uname'.
60592         * modules/uname-tests: New file.
60593         * tests/test-uname.c: New file.
60595         New module 'uname'.
60596         * lib/uname.c: New file.
60597         * m4/uname.m4: New file.
60598         * modules/uname: New file.
60599         * doc/posix-functions/uname.texi: Mention the new module.
60601 2009-08-02  Bruno Haible  <bruno@clisp.org>
60603         Tests for module 'sys_utsname'.
60604         * modules/sys_utsname-tests: New file.
60605         * tests/test-sys_utsname.c: New file.
60607         New module 'sys_utsname'.
60608         * lib/sys_utsname.in.h: New file, based on glibc's <sys/utsname.h>.
60609         * m4/sys_utsname_h.m4: New file.
60610         * modules/sys_utsname: New file.
60611         * doc/posix-headers/sys_utsname.texi: Mention the new module.
60613 2009-08-02  Bruno Haible  <bruno@clisp.org>
60615         Implicitly initialize the sockets library.
60616         * lib/gethostname.c: Include sockets.h.
60617         (rpl_gethostname): Invoke gl_sockets_startup.
60618         * lib/socket.c: Include sockets.h.
60619         (rpl_socket): Invoke gl_sockets_startup.
60620         * modules/gethostname (Depends-on): Add sockets.
60621         * modules/socket (Depends-on): Likewise.
60622         * tests/test-poll.c: Don't include sockets.h.
60623         (main): Don't invoke gl_sockets_startup.
60624         * tests/test-select.c: Don't include sockets.h.
60625         (main): Don't invoke gl_sockets_startup.
60627 2009-08-02  Bruno Haible  <bruno@clisp.org>
60629         Allow multiple calls to gl_sockets_startup.
60630         * lib/sockets.c (initialized_sockets_version): New variable.
60631         (gl_sockets_startup): Do nothing if already called for this or a higher
60632         version.
60633         (gl_sockets_cleanup): Reset initialized_sockets_version.
60635 2009-08-03  Simon Josefsson  <simon@josefsson.org>
60637         * tests/test-argp-version-etc-1.sh: Use EXEEXT.  Don't fail on
60638         different project/version.
60640 2009-08-02  Paolo Bonzini  <bonzini@gnu.org>
60641             Bruno Haible  <bruno@clisp.org>
60643         Tests for module 'pipe-filter-gi'.
60644         * modules/pipe-filter-gi-tests: New file.
60645         * tests/test-pipe-filter-gi1.sh: New file.
60646         * tests/test-pipe-filter-gi1.c: New file.
60647         * tests/test-pipe-filter-gi2.sh: New file.
60648         * tests/test-pipe-filter-gi2-main.c: New file.
60649         * tests/test-pipe-filter-gi2-child.c: New file.
60651         New module 'pipe-filter-gi'.
60652         * lib/pipe-filter-gi.c: New file.
60653         * modules/pipe-filter-gi: New file.
60655 2009-08-02  Bruno Haible  <bruno@clisp.org>
60656             Paolo Bonzini  <bonzini@gnu.org>
60658         Tests for module 'pipe-filter-ii'.
60659         * modules/pipe-filter-ii-tests: New file.
60660         * tests/test-pipe-filter-ii1.sh: New file.
60661         * tests/test-pipe-filter-ii1.c: New file.
60662         * tests/test-pipe-filter-ii2.sh: New file.
60663         * tests/test-pipe-filter-ii2-main.c: New file.
60664         * tests/test-pipe-filter-ii2-child.c: New file.
60666         New module 'pipe-filter-ii'.
60667         * lib/pipe-filter.h: New file.
60668         * lib/pipe-filter-ii.c: New file.
60669         * lib/pipe-filter-aux.h: New file.
60670         * modules/pipe-filter-ii: New file.
60672 2009-08-02  Simon Josefsson  <simon@josefsson.org>
60674         * lib/gc-libgcrypt.c: Change copyright to FSF.
60675         * lib/gc-gnulib.c: Likewise.
60677 2009-08-02  Martin Lambers  <marlam@marlam.de>  (tiny change)
60679         * lib/gethostname.c: Include limits.h.
60681 2009-08-02  Simon Josefsson  <simon@josefsson.org>
60682             Bruno Haible  <bruno@clisp.org>
60684         Ensure HOST_NAME_MAX as part of the gethostname module.
60685         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): On native Windows platforms,
60686         define also HOST_NAME_MAX.
60687         * tests/test-gethostname.c: Include <limits.h>.
60688         (main): Check also HOST_NAME_MAX.
60689         * doc/posix-headers/limits.texi: Document the mingw problem.
60691 2009-08-02  Bruno Haible  <bruno@clisp.org>
60693         * lib/gethostname.c (gethostname): Fix handling of large len argument.
60694         Add comments.
60696 2009-03-31  Simon Josefsson  <simon@josefsson.org>
60698         * lib/gethostname.c: Add Windows wrapper.
60699         * m4/gethostname.m4: Look for gethostname in -lws2_32.
60700         * modules/gethostname: Depend on sys_socket & errno, for also
60701         added lib/w32sock.h.  Add GETHOSTNAME_LIB link directive.
60702         * modules/gethostname-tests: Link to @GETHOSTNAME_LIB@.
60704 2009-07-31  Jim Meyering  <meyering@redhat.com>
60706         getloadavg: fix symbol name in comment
60707         * lib/getloadavg.c: Correct a typo I introduced when adding
60708         comments to Matt's change: s/NLIST_POINTER/N_NAME_POINTER/.
60709         Matt Kraai spotted the problem.
60711 2009-07-29  Matt Kraai  <mkraai@beckman.com>
60713         getloadavg: check whether n_name is a pointer, for QNX 6.4.1
60714         * lib/getloadavg.c (getloadavg): Use the strcpy-into-nlist.n_name
60715         code also if ! defined N_NAME_POINTER.
60716         * m4/getloadavg.m4 (gl_GETLOADAVG): Add a link-test for N_NAME_POINTER.
60717         This is required on QNX 6.4.1, where /usr/include/nlist.h exists,
60718         but the n_name member is a 12-byte array.
60720 2009-07-29  Joel E. Denny  <jdenny@clemson.edu>
60722         update-copyright: generalize comment handling
60723         * build-aux/update-copyright: Handle copyright statements
60724         within more comment styles.
60725         Document usage.
60726         Report any file with an external copyright holder or parse failure.
60728 2009-07-29  Jim Meyering  <meyering@redhat.com>
60730         mktime: correct setting of REPLACE_MKTIME
60731         * m4/mktime.m4 (gl_FUNC_MKTIME): Set REPLACE_MKTIME=0, when required.
60733         update-copyright: new module
60734         * modules/update-copyright: New file.
60735         * build-aux/update-copyright: New file.
60736         * MODULES.html.sh (maint+release support): Add update-copyright.
60738 2009-07-27  Bruno Haible  <bruno@clisp.org>
60740         Fix compilation error when <ctime> is used and mktime is replaced.
60741         * lib/time.in.h (mktime): New declaration.
60742         * m4/mktime.m4 (gl_FUNC_MKTIME): Require gl_HEADER_TIME_H_DEFAULTS. Set
60743         REPLACE_MKTIME instead of defining mktime in config.h.
60744         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize REPLACE_MKTIME.
60745         * modules/time (Makefile.am): Substitute REPLACE_MKTIME.
60746         Reported by Ross McFarland <rwmcfa1@neces.com>.
60748 2009-07-27  Bruno Haible  <bruno@clisp.org>
60750         * lib/math.in.h (cosl, logl, sinl): Undefine before declaring it.
60751         Reported by Matt Kraai <mkraai@beckman.com>.
60753 2009-07-25  Jim Meyering  <meyering@redhat.com>
60755         maint.mk: avoid warnings about missing files
60756         * top/maint.mk (PREV_VERSION): Suppress stderr, to hide a
60757         diagnostic when .prev-version does not exist.
60758         (_cfg_mk): Define, so it can be empty when cfg.mk does not exist.
60759         (syntax-check-rules): Use $(_cfg_mk) to avoid a diagnostic about
60760         nonexistent cfg.mk.
60761         Suggestions from Simon Josefsson.
60763 2009-07-25  Bruno Haible  <bruno@clisp.org>
60765         * lib/math.in.h (cosl, logl, sinl): Don't declare if they are already
60766         defined as macros. Needed on QNX 6.4.1.
60767         Reported by Matt Kraai <mkraai@beckman.com>.
60769 2009-07-23  Jim Meyering  <meyering@redhat.com>
60771         maint.mk: invoke "make dist" with a working value of XZ_OPT
60772         * top/maint.mk (vc-dist): Use no "-" in the value of XZ_OPT.
60774 2009-07-22  Matt Kraai  <mkraai@beckman.com>  (tiny change)
60776         Make fseeko.c compile on QNX.
60777         * lib/fseeko.c (rpl_fseeko): Use the numerical value of _MWRITE.
60779 2009-07-22  Peter Simons  <simons@cryp.to>
60781         C++: wrap md2,md5,sha1,etc. function declarations in extern "C" scope
60782         * lib/md2.h [__cplusplus]: Wrap declarations in extern "C" scope.
60783         * lib/md4.h: Likewise.
60784         * lib/md5.h: Likewise.
60785         * lib/sha1.h: Likewise.
60786         * lib/sha256.h: Likewise.
60787         * lib/sha512.h: Likewise.
60789         tests-sha1: don't assign literal string to 'char *' variable
60790         * tests/test-sha1.c (main): Declare locals with "const" to match
60791         attributes of the right hand side.
60793 2009-07-21  Eric Blake  <ebb9@byu.net>
60795         dup2: fix more mingw problems
60796         * lib/dup2.c (rpl_dup2) [_WIN32]: Avoid hanging when duplicating
60797         fd to itself.
60798         * doc/posix-functions/dup2.texi (dup2): Document the bug.
60799         * lib/unistd.in.h (dup2) [REPLACE_FCHDIR]: Avoid name collision.
60800         * lib/fchdir.c (dup2): Manage preprocessor macros correctly.
60801         (rpl_dup2_fchdir): Rename from rpl_dup2, and let dup2 module take
60802         care of mingw bugs.
60804 2009-07-21  Jim Meyering  <meyering@redhat.com>
60806         vc-list-files: avoid failure when /bin/sh is dash
60807         * build-aux/vc-list-files: Avoid a shell portability problem with dash.
60808         On some Debian based systems, /bin/sh is a symlink to dash, and running
60809         this command would omit the "/" following each 'tests' prefix:
60810           dash -x build-aux/vc-list-files -C . tests
60811         That is because bash and dash work differently:
60812           $ for i in bash dash; do $i -c 'a=odd; a=ok b=$a; echo '$i' $b'; done
60813           bash ok
60814           dash odd
60816 2009-07-21  Eric Blake  <ebb9@byu.net>
60818         dup2-tests: test previous patch
60819         * modules/dup2-tests: New file.
60820         * tests/test-dup2.c: Likewise.
60821         * tests/test-open.c (main): Avoid unspecified behavior.
60822         * tests/test-pipe.c (child_main): Use dup2 semantics to simplify
60823         test.
60825         dup2: work around mingw and cygwin 1.5 bug
60826         * m4/dup2.m4 (gl_FUNC_DUP2): Detect mingw bug.
60827         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
60828         * modules/unistd (Makefile.am): Substitute it.
60829         * lib/unistd.in.h (dup2): Declare the replacement.
60830         * lib/dup2.c (dup2) [REPLACE_DUP2]: Implement it.
60831         * doc/posix-functions/dup2.texi (dup2): Document the bugs.
60832         * lib/fchdir.c (rpl_dup2): Don't collide with mingw replacement.
60833         * modules/execute (Depends-on): Add dup2.
60834         * modules/fseterr (Depends-on): Likewise.
60835         * modules/pipe (Depends-on): Likewise.
60836         * modules/posix_spawn-internal (Depends-on): Likewise.
60838 2009-07-21  Bruno Haible  <bruno@clisp.org>
60840         * modules/.gitattributes: New file.
60842 2009-07-20  Bruno Haible  <bruno@clisp.org>
60844         * tests/test-pipe.c (BACKUP_STDERR_FILENO): New macro.
60845         (main): Use it.
60847 2009-07-20  Eric Blake  <ebb9@byu.net>
60849         test-pipe: make a bit more robust.
60850         * tests/test-pipe.c (myerr): Allow error messages regardless of
60851         what we do to stderr.
60852         (test_pipe): Rearrange to avoid deadlock.
60853         (child_main): Try a larger read, to ensure we avoided deadlock.
60854         * lib/pipe.c (create_pipe) [_WIN32]: Fix comment.
60855         * lib/pipe.h (create_pipe_bidi): Document potential for deadlock
60856         if misused.
60858 2009-07-19  Jim Meyering  <meyering@redhat.com>
60860         fts: avoid false-positive cycle-detection
60861         * lib/fts.c (fts_read): Reinitialize cycle-detection data structures
60862         for each new command line argument.
60864 2009-07-19  Bruno Haible  <bruno@clisp.org>
60866         Fix build error on mingw with the modules sys_select and unistd.
60867         * modules/acl-tests (Depends-on): Add close.
60868         * modules/binary-io-tests (Depends-on): Likewise.
60869         * modules/closein-tests (Depends-on): Likewise.
60870         * modules/flock-tests (Depends-on): Likewise.
60871         * modules/fsync-tests (Depends-on): Likewise.
60872         * modules/lseek-tests (Depends-on): Likewise.
60873         * modules/pipe-tests (Depends-on): Likewise.
60874         * modules/posix_spawn-tests (Depends-on): Likewise.
60875         * modules/posix_spawnp-tests (Depends-on): Likewise.
60876         * modules/stat-time-tests (Depends-on): Likewise.
60877         * modules/yesno-tests (Depends-on): Likewise.
60879 2009-07-19  Bruno Haible  <bruno@clisp.org>
60881         Unify conditionals.
60882         * lib/pipe.h: Detect native Win32 by looking at _WIN32 and __WIN32__
60883         macros, not at the compiler macros.
60884         * lib/pipe.c: Likewise.
60885         * lib/execute.c: Likewise.
60886         * lib/spawni.c: Likewise.
60888 2009-07-19  Bruno Haible  <bruno@clisp.org>
60890         Fix handling of closed stdin/stdout/stderr on mingw.
60891         * lib/w32spawn.h: Include unistd.h.
60892         (dup_noinherit): Return -1 if the old handle is invalid. Allocate new
60893         file descriptor with O_NOINHERIT flag.
60894         (fd_safer_noinherit): New function, based on fd-safer.c.
60895         (dup_safer_noinherit): New function, based on dup-safer.c.
60896         (undup_safer_noinherit): New function.
60897         * lib/execute.c (execute) [WIN32]: Use dup_safer_noinherit instead of
60898         dup_noinherit. Use undup_safer_noinherit instead of dup2 and close.
60899         * lib/pipe.c (create_pipe) [WIN32]: Likewise. Use fd_safer_noinherit
60900         instead of fd_safer.
60901         * tests/test-pipe.c: Include <windows.h>.
60902         (child_main) [WIN32]: Test the handle of STDERR_FILENO, not its close()
60903         result.
60905         * tests/test-pipe.c (child_main, parent_main): New functions, extracted
60906         from main.
60907         (test_pipe): Pass an extra argument for disambiguation.
60908         (main): Invoke parent_main or child_main.
60910         * tests/test-pipe.c (test_pipe): Pass slave_process = true argument
60911         consistently.
60913 2009-07-18  Eric Blake  <ebb9@byu.net>
60915         test-pipe: fix mingw build
60916         * tests/test-pipe.c (main): Avoid fcntl on mingw.
60918 2009-07-18  Bruno Haible  <bruno@clisp.org>
60920         * modules/pipe-tests (Makefile.am): Fix typo.
60922 2009-07-18  Eric Blake  <ebb9@byu.net>
60924         error: fix mingw build
60925         * lib/error.c (error, error_at_line): Avoid fcntl on mingw.
60926         Reported by Bruno Haible.
60928         error: avoid undefined use of stdout
60929         * lib/error.c (error, error_at_line): Check that fd 1 is open
60930         before flushing stdout.  Avoids a crash on cygwin when libsigsegv
60931         is handling faults and the close_stdout module wants to report the
60932         detection of closed stdout as an error.
60934 2009-07-17  Eric Blake  <ebb9@byu.net>
60936         pipe: be robust in face of closed fds
60937         * lib/pipe.c (create_pipe): Closed standard descriptors in parent
60938         should cause child to misbehave.
60939         * modules/pipe-tests: New module.
60940         * tests/test-pipe.c: New file.
60941         * tests/test-pipe.sh: New file.
60942         Reported by Akim Demaille.
60944 2009-07-14  Bruno Haible  <bruno@clisp.org>
60946         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Guess it works on glibc systems.
60947         Reported by anonymous kc.
60949 2009-07-07  Jim Meyering  <meyering@redhat.com>
60951         maint.mk: don't look for translatable strings in *.m4 or *.mk
60952         * top/maint.mk (sc_po_check): Skip *.m4 and *.mk files,
60953         when searching for translatable strings.
60955 2009-07-05  Jim Meyering  <meyering@redhat.com>
60957         remove superfluous parentheses in STREQ definition
60958         * tests/test-argv-iter.c (STREQ): Remove redundant parentheses.
60959         * lib/getugroups.c (STREQ): Likewise.
60960         * lib/fnmatch.c (STREQ): Likewise.
60961         Spotted by Bruno Haible.
60963 2009-07-04  Jim Meyering  <meyering@redhat.com>
60965         argv-iter: new module
60966         * MODULES.html.sh: Add argv-iter.
60967         * lib/argv-iter.c, lib/argv-iter.h: New files.
60968         * modules/argv-iter: New file.
60969         * modules/argv-iter-tests: New file.
60970         * tests/test-argv-iter.c: Test it.
60972 2009-07-04  Bruno Haible  <bruno@clisp.org>
60974         Fix assertion.
60975         * lib/git-merge-changelog.c (compute_mapping): In the case where file1
60976         contains more exact copies of a given entry than file2, leave the extra
60977         copies unpaired rather than aborting.
60978         Reported by Eric Blake.
60980 2009-07-02  Bruno Haible  <bruno@clisp.org>
60982         Speedup git-merge-changelog for git cherry-pick.
60983         * lib/git-merge-changelog.c (struct entries_mapping): New type.
60984         (entries_mapping_get): New function, extracted from compute_mapping.
60985         (entries_mapping_reverse_get): New function.
60986         (compute_mapping): Add a 'full' argument. Return the result in a
60987         'struct entries_mapping'.
60988         (main): Update. Access the mappings through entries_mapping_get.
60989         Reported by Eric Blake.
60991 2009-07-02  Bruno Haible  <bruno@clisp.org>
60993         * lib/git-merge-changelog.c (compute_mapping): Fix determination of
60994         best_i.
60996 2009-07-02  Bruno Haible  <bruno@clisp.org>
60998         Speed up approximate search for matching ChangeLog entries.
60999         * lib/git-merge-changelog.c (entry_fstrcmp): Add a lower_bound
61000         argument. Call fstrcmp_bounded instead of fstrcmp.
61001         (compute_mapping, try_split_merged_entry, main): Update callers.
61003 2009-07-02  Bruno Haible  <bruno@clisp.org>
61005         * lib/git-merge-changelog.c (main): Add comment about git cherry-pick.
61007 2009-06-30  Bruno Haible  <bruno@clisp.org>
61009         Reduce the number of uc_is_cased calls.
61010         * lib/unicase.h (casing_suffix_context_t): Add
61011         'first_char_except_ignorable' field.
61012         * lib/unicase/context.h (SCC_FINAL_SIGMA_MASK): Remove macro.
61013         (SCC_MORE_ABOVE_MASK, SCC_BEFORE_DOT_MASK): Update.
61014         * lib/unicase/empty-suffix-context.c (unicase_empty_suffix_context):
61015         Update initializer.
61016         * lib/unicase/u-casemap.h (FUNC): Don't invoke uc_is_cased on
61017         case-ignorable characters.
61018         * lib/unicase/u-ct-totitle.h (FUNC): Likewise.
61019         * lib/unicase/u-suffix-context.h (FUNC2): Don't call uc_is_cased here.
61020         * modules/unicase/u8-suffix-context (Depends-on): Remove unicase/cased.
61021         * modules/unicase/u16-suffix-context (Depends-on): Likewise.
61022         * modules/unicase/u32-suffix-context (Depends-on): Likewise.
61024 2009-06-30  Bruno Haible  <bruno@clisp.org>
61026         Tests for module 'unicase/ignorable'.
61027         * modules/unicase/ignorable-tests: New file.
61028         * tests/unicase/test-ignorable.c: New file, generated by
61029         gen-uni-tables.
61031         Tests for module 'unicase/cased'.
61032         * modules/unicase/cased-tests: New file.
61033         * tests/unicase/test-cased.c: New file, generated by gen-uni-tables.
61034         * tests/unicase/test-predicate-part1.h: New file, derived from
61035         tests/unictype/test-predicate-part1.h.
61036         * tests/unicase/test-predicate-part2.h: New file, same as
61037         tests/unictype/test-predicate-part2.h.
61039         Fix evaluation of "Before C" condition of FINAL_SIGMA.
61040         * lib/gen-uni-tables.c (is_cased, is_case_ignorable): New functions.
61041         (output_casing_properties): New function.
61042         (main): Call it.
61043         * lib/unicase/cased.h: New file, generated by gen-uni-tables.
61044         * lib/unicase/cased.c: Include unictype/bitmap.h.
61045         (uc_is_cased): Define through a bitmap lookup.
61046         * lib/unicase/ignorable.h: New file, generated by gen-uni-tables.
61047         * lib/unicase/ignorable.c: Include unictype/bitmap.h.
61048         (uc_is_case_ignorable): Define through a bitmap lookup.
61049         * modules/unicase/cased (Files): Add lib/unicase/cased.h,
61050         lib/unictype/bitmap.h.
61051         (Depends-on): Add inline. Clean up.
61052         * modules/unicase/ignorable (Files): Add lib/unicase/ignorable.h,
61053         lib/unictype/bitmap.h.
61054         (Depends-on): Add inline. Clean up.
61055         * tests/unicase/test-u8-tolower.c (main): Add more tests of FINAL_SIGMA
61056         recognition.
61057         * tests/unicase/test-u16-tolower.c (main): Likewise.
61058         * tests/unicase/test-u32-tolower.c (main): Likewise.
61060 2009-06-30  Bruno Haible  <bruno@clisp.org>
61062         * lib/unicase/u8-casemap.c: Don't include uniwbrk.h.
61063         * lib/unicase/u16-casemap.c: Likewise.
61064         * lib/unicase/u32-casemap.c: Likewise.
61066 2009-06-29  Bruno Haible  <bruno@clisp.org>
61068         Define u32_casefold as a wrapper around u32_ct_casefold.
61069         * lib/unicase/u32-casefold.c: Update.
61070         * modules/unicase/u32-casefold (Depends-on): Add
61071         unicase/u32-ct-casefold, unicase/empty-prefix-context,
61072         unicase/empty-suffix-context. Clean up.
61074         Define u16_casefold as a wrapper around u16_ct_casefold.
61075         * lib/unicase/u16-casefold.c: Update.
61076         * modules/unicase/u16-casefold (Depends-on): Add
61077         unicase/u16-ct-casefold, unicase/empty-prefix-context,
61078         unicase/empty-suffix-context. Clean up.
61080         Define u8_casefold as a wrapper around u8_ct_casefold.
61081         * lib/unicase/u-casefold.h (FUNC): Delegate to U_CT_CASEFOLD.
61082         * lib/unicase/u8-casefold.c: Update.
61083         * modules/unicase/u8-casefold (Depends-on): Add unicase/u8-ct-casefold,
61084         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
61086         Define u32_totitle as a wrapper around u32_ct_totitle.
61087         * lib/unicase/u32-totitle.c: Update.
61088         * modules/unicase/u32-totitle (Depends-on): Add unicase/u32-ct-totitle,
61089         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
61091         Define u16_totitle as a wrapper around u16_ct_totitle.
61092         * lib/unicase/u16-totitle.c: Update.
61093         * modules/unicase/u16-totitle (Depends-on): Add unicase/u16-ct-totitle,
61094         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
61096         Define u8_totitle as a wrapper around u8_ct_totitle.
61097         * lib/unicase/u-totitle.h (is_cased, is_case_ignorable): Remove
61098         functions.
61099         (FUNC): Delegate to U_CT_TOTITLE.
61100         * lib/unicase/u8-totitle.c: Update.
61101         * modules/unicase/u8-totitle (Depends-on): Add unicase/u8-ct-totitle,
61102         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
61104         * lib/unicase/u32-tolower.c (u32_tolower): Update u32_casemap
61105         invocation.
61106         * modules/unicase/u32-tolower (Depends-on): Add
61107         unicase/empty-prefix-context, unicase/empty-suffix-context.
61109         * lib/unicase/u16-tolower.c (u16_tolower): Update u16_casemap
61110         invocation.
61111         * modules/unicase/u16-tolower (Depends-on): Add
61112         unicase/empty-prefix-context, unicase/empty-suffix-context.
61114         * lib/unicase/u8-tolower.c (u8_tolower): Update u8_casemap invocation.
61115         * modules/unicase/u8-tolower (Depends-on): Add
61116         unicase/empty-prefix-context, unicase/empty-suffix-context.
61118         * lib/unicase/u32-toupper.c (u32_toupper): Update u32_casemap
61119         invocation.
61120         * modules/unicase/u32-toupper (Depends-on): Add
61121         unicase/empty-prefix-context, unicase/empty-suffix-context.
61123         * lib/unicase/u16-toupper.c (u16_toupper): Update u16_casemap
61124         invocation.
61125         * modules/unicase/u16-toupper (Depends-on): Add
61126         unicase/empty-prefix-context, unicase/empty-suffix-context.
61128         * lib/unicase/u8-toupper.c (u8_toupper): Update u8_casemap invocation.
61129         * modules/unicase/u8-toupper (Depends-on): Add
61130         unicase/empty-prefix-context, unicase/empty-suffix-context.
61132         New module 'unicase/u32-ct-casefold'.
61133         * lib/unicase/u32-ct-casefold.c: New file.
61134         * modules/unicase/u32-ct-casefold: New file.
61136         New module 'unicase/u16-ct-casefold'.
61137         * lib/unicase/u16-ct-casefold.c: New file.
61138         * modules/unicase/u16-ct-casefold: New file.
61140         New module 'unicase/u8-ct-casefold'.
61141         * lib/unicase/u8-ct-casefold.c: New file.
61142         * lib/unicase/u-ct-casefold.h: New file, derived from
61143         lib/unicase/u-casefold.h.
61144         * modules/unicase/u8-ct-casefold: New file.
61146         New module 'unicase/u32-ct-totitle'.
61147         * lib/unicase/u32-ct-totitle.c: New file.
61148         * modules/unicase/u32-ct-totitle: New file.
61150         New module 'unicase/u16-ct-totitle'.
61151         * lib/unicase/u16-ct-totitle.c: New file.
61152         * modules/unicase/u16-ct-totitle: New file.
61154         New module 'unicase/u8-ct-totitle'.
61155         * lib/unicase/u8-ct-totitle.c: New file.
61156         * lib/unicase/u-ct-totitle.h: New file, derived from
61157         lib/unicase/u-totitle.h.
61158         * modules/unicase/u8-ct-totitle: New file.
61160         New module 'unicase/u32-ct-tolower'.
61161         * lib/unicase/u32-ct-tolower.c: New file.
61162         * modules/unicase/u32-ct-tolower: New file.
61164         New module 'unicase/u16-ct-tolower'.
61165         * lib/unicase/u16-ct-tolower.c: New file.
61166         * modules/unicase/u16-ct-tolower: New file.
61168         New module 'unicase/u8-ct-tolower'.
61169         * lib/unicase/u8-ct-tolower.c: New file.
61170         * modules/unicase/u8-ct-tolower: New file.
61172         New module 'unicase/u32-ct-toupper'.
61173         * lib/unicase/u32-ct-toupper.c: New file.
61174         * modules/unicase/u32-ct-toupper: New file.
61176         New module 'unicase/u16-ct-toupper'.
61177         * lib/unicase/u16-ct-toupper.c: New file.
61178         * modules/unicase/u16-ct-toupper: New file.
61180         New module 'unicase/u8-ct-toupper'.
61181         * lib/unicase/u8-ct-toupper.c: New file.
61182         * modules/unicase/u8-ct-toupper: New file.
61184         Add context arguments to u*_casemap functions.
61185         * lib/unicase/unicasemap.h: Include unicase.h.
61186         (u8_casemap, u16_casemap, u32_casemap): Add prefix_context and
61187         suffix_context arguments.
61188         * lib/unicase/u-casemap.h (is_cased, is_case_ignorable): Remove
61189         functions.
61190         (FUNC): Add prefix_context and suffix_context arguments. Use
61191         uc_is_cased and uc_is_case_ignorable.
61192         * lib/unicase/u8-casemap.c: Include caseprop.h and context.h.
61193         * lib/unicase/u16-casemap.c: Likewise.
61194         * lib/unicase/u32-casemap.c: Likewise.
61195         * modules/unicase/u8-casemap (Files): Add lib/unicase/context.h.
61196         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
61197         * modules/unicase/u16-casemap (Files): Add lib/unicase/context.h.
61198         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
61199         * modules/unicase/u32-casemap (Files): Add lib/unicase/context.h.
61200         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
61202         New module 'unicase/u32-suffix-context'.
61203         * lib/unicase/u32-suffix-context.c: New file.
61204         * modules/unicase/u32-suffix-context: New file.
61206         New module 'unicase/u16-suffix-context'.
61207         * lib/unicase/u16-suffix-context.c: New file.
61208         * modules/unicase/u16-suffix-context: New file.
61210         New module 'unicase/u8-suffix-context'.
61211         * lib/unicase/u8-suffix-context.c: New file.
61212         * lib/unicase/u-suffix-context.h: New file.
61213         * modules/unicase/u8-suffix-context: New file.
61215         New module 'unicase/empty-suffix-context'.
61216         * lib/unicase/empty-suffix-context.c: New file.
61217         * modules/unicase/empty-suffix-context: New file.
61219         New module 'unicase/u32-prefix-context'.
61220         * lib/unicase/u32-prefix-context.c: New file.
61221         * modules/unicase/u32-prefix-context: New file.
61223         New module 'unicase/u16-prefix-context'.
61224         * lib/unicase/u16-prefix-context.c: New file.
61225         * modules/unicase/u16-prefix-context: New file.
61227         New module 'unicase/u8-prefix-context'.
61228         * lib/unicase/u8-prefix-context.c: New file.
61229         * lib/unicase/u-prefix-context.h: New file.
61230         * lib/unicase/context.h: New file.
61231         * modules/unicase/u8-prefix-context: New file.
61233         New module 'unicase/empty-prefix-context'.
61234         * lib/unicase/empty-prefix-context.c: New file.
61235         * modules/unicase/empty-prefix-context: New file.
61237         New module 'unicase/ignorable'.
61238         * lib/unicase/ignorable.c: New file.
61239         * modules/unicase/ignorable: New file.
61241         New module 'unicase/cased'.
61242         * lib/unicase/caseprop.h: New file.
61243         * lib/unicase/cased.c: New file.
61244         * modules/unicase/cased: New file.
61246         New functions for case mapping of substrings.
61247         * lib/unicase.h (casing_prefix_context_t): New type.
61248         (unicase_empty_prefix_context): New variable.
61249         (u8_casing_prefix_context, u16_casing_prefix_context,
61250         u32_casing_prefix_context, u8_casing_prefixes_context,
61251         u16_casing_prefixes_context, u32_casing_prefixes_context): New
61252         declarations.
61253         (casing_suffix_context_t): New type.
61254         (unicase_empty_suffix_context): New variable.
61255         (u8_casing_suffix_context, u16_casing_suffix_context,
61256         u32_casing_suffix_context, u8_casing_suffixes_context,
61257         u16_casing_suffixes_context, u32_casing_suffixes_context,
61258         u8_ct_toupper, u16_ct_toupper, u32_ct_toupper, u8_ct_tolower,
61259         u16_ct_tolower, u32_ct_tolower, u8_ct_totitle, u16_ct_totitle,
61260         u32_ct_totitle, u8_ct_casefold, u16_ct_casefold, u32_ct_casefold): New
61261         declarations.
61263 2009-06-28  Jim Meyering  <meyering@redhat.com>
61265         boostrap: indent only with spaces
61266         * build-aux/bootstrap: Indent only with spaces, never TABs.
61268         bootstrap: split long lines
61269         * build-aux/bootstrap: Keep line length < 80.
61271         bootstrap: sync from coreutils
61272         * build-aux/bootstrap: Honor variables like $ACLOCAL, etc.,
61273         just as autoreconf does.  Verify a list of prerequisite
61274         package-name,version-number pairs if defined in bootstrap.conf.
61275         Refer to README-prereq, if prerequisites are not satisfied.
61277 2009-06-27  Eric Blake  <ebb9@byu.net>
61279         tests: add test for bogus NULL definition
61280         * tests/test-stdio.c: Ensure POSIX 2008 requirement on NULL.
61281         * tests/test-stdlib.c: Likewise.
61282         * tests/test-string.c: Likewise.
61283         * tests/test-locale.c: Likewise.
61284         * tests/test-unistd.c: Likewise.
61285         * modules/stdio-tests (Depends-on): Add verify.
61286         * modules/stdlib-tests (Depends-on): Likewise.
61287         * modules/string-tests (Depends-on): Likewise.
61288         * modules/locale-tests (Depends-on): Likewise.
61289         * modules/unistd-tests (Depends-on): Likewise.
61291 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
61293         * m4/selinux-context-h (gl_HEADERS_SELINUX_CONTEXT_H): Remove
61294         self-explaining comment.
61295         * m4/selinux-selinux-h: Update serial.
61296         (gl_LIBSELINUX): New macro, adding a warning for missing development
61297         packages to code extracted from...
61298         (gl_HEADERS_SELINUX_SELINUX_H): ... this one.  Require gl_LIBSELINUX.
61299         Add warning for missing development packages here, too.
61301 2009-06-26  Paolo Bonzini  <bonzini@gnu.org>
61303         * build-aux/bootstrap: Do not use GIT_CONFIG_LOCAL.
61305 2009-06-25  Eric Blake  <ebb9@byu.net>
61307         version-etc: fix regression
61308         * lib/version-etc.h (ATTRIBUTE_SENTINEL): Define for new enough
61309         gcc.
61310         (version_etc): Use it, to catch bugs with trailing NULL.
61311         * lib/version-etc.c (version_etc_arn): Delete unused argument.
61312         (version_etc_va): Fix logic bug.
61313         * modules/version-etc-tests: Add test.
61314         * tests/test-version-etc.c: New file.
61315         * tests/test-version-etc.sh: Likewise.
61317 2009-06-25  Sam Steingold  <sds@gnu.org>
61319         * mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): Include <stdlib.h>, for the
61320         mbtowc declaration.
61322 2009-06-25  Eric Blake  <ebb9@byu.net>
61324         fpurge: migrate into <stdio.h>
61325         * lib/fpurge.h: Delete...
61326         * lib/stdio.in.h (fpurge): ...and declare here, instead.
61327         * lib/fpurge.c (fpurge): Change declaring header.
61328         * modules/fpurge (Files): Drop deleted file.
61329         (Depends-on): Add stdio.
61330         (configure.ac): Set witness.
61331         * modules/stdio (Makefile.am): Support fpurge macros.
61332         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
61333         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set appropriate variables.
61334         * lib/fflush.c: Update client.
61335         * tests/test-fpurge.c: Likewise.
61336         * NEWS: Mention the change.
61338 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
61340         * lib/argp-version-etc.c (program_authors): Add const
61341         qualifier.
61342         * lib/version-etc.c: Fix typos in the comments.
61343         * modules/argp-version-etc: Depends on version-etc.
61345 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
61347         argp-version-etc: new module.
61349         * lib/argp-version-etc.c: New file.
61350         * lib/argp-version-etc.h: New file.
61351         * modules/argp-version-etc: New file.
61352         * modules/argp-version-etc-tests: New file.
61353         * tests/test-argp-version-etc.c: New test.
61354         * tests/test-argp-version-etc-1.sh: New test.
61356 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
61358         Provide additional interfaces and documentation for version-etc
61359         module.
61361         * lib/version-etc.c (version_etc_arn, version_etc_ar): New
61362         interfaces.
61363         * lib/version-etc.h (version_etc_arn, version_etc_ar): New
61364         prototypes.
61366 2009-06-24  Bruno Haible  <bruno@clisp.org>
61368         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Fix description of
61369         HAVE_LIB${NAME} macro.
61370         Reported by Sam Steingold <sds@gnu.org>.
61372 2009-06-23  Simon Josefsson  <simon@josefsson.org>
61374         * modules/hash-tests (test_hash_LDADD): Link to libintl when
61375         needed.
61377 2009-06-21  Bruno Haible  <bruno@clisp.org>
61379         Make two consecutive identical invocations of AC_LIB_HAVE_LINKFLAGS
61380         work.
61381         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Reset HAVE_LIB${NAME}
61382         together with LIB${NAME}, LTLIB${NAME}.
61383         Reported by Sam Steingold <sds@gnu.org>.
61385 2009-06-20  Jim Meyering  <meyering@redhat.com>
61387         tests: make sc_require_test_exit_idiom more generic
61388         * top/maint.mk (Exit_witness_file): New overridable variable.
61389         (sc_require_test_exit_idiom): Don't hard-code tests/test-lib.sh.
61390         Relax test for /^Exit \$fail$$/ to just /^Exit ./.
61392 2009-06-19  Jim Meyering  <meyering@redhat.com>
61394         hash: reverse order of src/dst parameters in an internal interface
61395         * lib/hash.c (transfer_entries): Reverse order of parameters to
61396         put DST before SRC.  Adjust callers.
61398         tests: test-hash: avoid wholesale duplication
61399         * tests/test-hash.c (main): Don't copy/paste a 60-line loop.
61400         Instead, use a loop and add a single conditional.
61402         tests: test-hash: allow seed selection via a command line argument
61403         * tests/test-hash.c (get_seed): New function.
61404         (main): Use it.
61406 2009-06-19  Eric Blake  <ebb9@byu.net>
61408         hash: avoid memory leak on allocation failure
61409         * lib/hash.c: (hash_rehash): Avoid memory leak on allocation
61410         failure.  Factor repeated algorithm...
61411         (transfer_entries): ...into new helper routine.
61412         (hash_delete): React to hash_rehash return value.
61414         hash: reduce memory pressure in hash_rehash no-op case
61415         * lib/hash.c (next_prime): Avoid overflow.
61416         (hash_initialize): Factor bucket size computation...
61417         (compute_bucket_size): ...into new helper function.
61418         (hash_rehash): Use new function and open coding to reduce memory
61419         pressure, and avoid a memory leak in USE_OBSTACK code.
61420         Reported by Jim Meyering.
61422 2009-06-18  Eric Blake  <ebb9@byu.net>
61424         hash: make rotation more obvious
61425         * modules/hash (Depends-on): Add bitrotate and stdint.
61426         * lib/bitrotate.h (rotl_sz, rotr_sz): New functions.
61427         * lib/hash.c (headers): Drop limits.h.  Add stdint.h.
61428         (SIZE_MAX): Rely on headers for definition.
61429         (hash_string) [USE_DIFF_HASH]: Use rotl_sz.
61430         (raw_hasher): Use rotr_sz.
61431         Suggested by Jim Meyering.
61433         hash: fix memory leak in last patch
61434         * lib/hash.c (hash_rehash): Avoid memory leak.
61436         hash: avoid no-op rehashing
61437         * lib/hash.c (hash_rehash): Recognize useless rehash attempts.
61439         hash: provide default callback functions
61440         * lib/hash.c (raw_hasher, raw_comparator): New functions.
61441         (hash_initialize): Use them as defaults.
61442         * tests/test-hash.c (main): Test this.
61444         hash: minor optimization
61445         * lib/hash.c (hash_lookup, hash_find_entry): Avoid function call
61446         when possible.
61447         (hash_initialize): Document this promise.
61448         (hash_do_for_each, hash_clear, hash_free): Use C89 syntax.
61449         * tests/test-hash.c (hash_compare_strings): Test this.
61451 2009-06-18  Bruno Haible  <bruno@clisp.org>
61453         * m4/strstr.m4 (gl_FUNC_STRSTR): Skip linear time test if strstr is
61454         going to be replaced anyway.
61456 2009-06-18  Bruno Haible  <bruno@clisp.org>
61458         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Invoke AC_LIBOBJ only
61459         in one place.
61460         (gl_FUNC_STRCASESTR): Skip linear time test if strcasestr is going to
61461         be replaced anyway.
61463 2009-06-18  Eric Blake  <ebb9@byu.net>
61465         hash: check for resize before insertion
61466         * lib/hash.c (hash_insert): Check whether bucket usage exceeds
61467         threshold before insertion, so that a pathological hash_rehash
61468         that fills every bucket can still trigger another rehash.
61470 2009-06-18  Jim Meyering  <meyering@redhat.com>
61472         hash-tests: add a loop around the small tests
61473         * tests/test-hash.c (main): Repeat small tests with selected
61474         small initial table sizes.
61476 2009-06-17  Eric Blake  <ebb9@byu.net>
61478         hash: minor cleanups
61479         * lib/hash.h (hash_entry): Make opaque, by moving...
61480         * lib/hash.c (hash_entry): ...here.
61481         (hash_insert): Clarify restrictions on what can be inserted.
61482         (hash_get_next): Clarify when it is safe to remove an element
61483         during traversal.
61484         (check_tuning): Skip verification when tuning is known safe.
61485         (hash_initialize): Clarify restrictions on tuning.
61487 2009-06-17  Jim Meyering  <jim@meyering.net>
61488         and Eric Blake  <ebb9@byu.net>
61490         hash-tests: new module
61491         * modules/hash-tests: New file.
61492         * tests/test-hash.c: New file.
61494 2009-06-17  Eric Blake  <ebb9@byu.net>
61496         strstr-simple: document new module
61497         * MODULES.html.sh: Document new module.
61499         strstr, strcasestr: replace on platforms with broken memchr
61500         * modules/strstr: Split into...
61501         * modules/strstr-simple: ...new module that does not care about
61502         performance, but does care about glibc bug.
61503         * m4/strstr.m4 (gl_FUNC_STRSTR): Split...
61504         (gl_FUNC_STRSTR_SIMPLE): ...into new macro, which replaces strstr
61505         if platform memchr is broken, per Debian bug 521737.
61506         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): React to broken
61507         memchr.
61508         * m4/memchr.m4 (gl_FUNC_MEMCHR): Only expand once.
61509         * doc/posix-functions/strstr.texi (strstr): Document the fix.
61510         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
61511         * modules/mountlist (Depends-on): Add strstr-simple.
61512         * modules/gen-uni-tables (Depends-on): Likewise.
61513         * modules/argz (Depends-on): Add strstr.
61515 2009-06-17  Bruno Haible  <bruno@clisp.org>
61517         * modules/posix_spawn-internal (Depends-on): Add errno.
61519 2009-06-17  Bruno Haible  <bruno@clisp.org>
61521         Define missing ESTALE on Interix 3.5.
61522         * lib/errno.in.h (ESTALE): Assign a value if missing.
61523         * lib/strerror.c (rpl_strerror): Handle missing ESTALE and ECANCELED.
61524         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether ESTALE is
61525         missing.
61526         * doc/posix-headers/errno.texi: Mention the Interix bug.
61527         Reported by Jay Krell <jay.krell@cornell.edu> via Eric Blake.
61529 2009-06-15  Eric Blake  <ebb9@byu.net>
61531         memchr, memchr2: add valgrind exception
61532         * lib/memchr.valgrind: New file.
61533         * lib/memchr2.valgrind: New file.
61534         * modules/memchr (Files): Distribute valgrind file.
61535         * modules/memchr2 (Files): Likewise.
61537         docs: memchr is no longer obsolete
61538         * MODULES.html.sh: Move memchr from obsolete to string.h section.
61539         * lib/string.in.h (memchr): Simplify logic.
61541 2009-06-14  Jim Meyering  <meyering@redhat.com>
61543         link-follow: fix the "checking..." message to not mention trailing slash
61544         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): This test has
61545         never considered trailing slashes.
61547 2009-06-14  Bruno Haible  <bruno@clisp.org>
61549         * m4/memchr.m4: Mention also the bug on IA-64.
61550         * doc/posix-functions/memchr.texi: Likewise.
61552 2009-06-12  Eric Blake  <ebb9@byu.net>
61554         memchr: detect broken x86_64 and alpha implementations
61555         * modules/memchr-tests (Depends-on): Move mmap detection...
61556         * modules/memchr (Depends-on): ...here.
61557         (configure.ac): Set indicator.
61558         * lib/string.in.h (memchr): Declare replacement.
61559         * modules/string (Makefile.am): Trigger replacement.
61560         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
61561         * m4/memchr.m4 (gl_FUNC_MEMCHR): Use mmap to detect platform
61562         bugs.
61563         * doc/posix-functions/memchr.texi (memchr): Document the bug.
61564         * modules/getpagesize (License): Relax license.
61566 2009-06-11  Bruno Haible  <bruno@clisp.org>
61568         * lib/idpriv.h: Add more references.
61570 2009-06-08  Bruno Haible  <bruno@clisp.org>
61572         Tests for module 'idpriv-droptemp'.
61573         * modules/idpriv-droptemp-tests: New file.
61574         * tests/test-idpriv-droptemp.sh: New file.
61575         * tests/test-idpriv-droptemp.su.sh: New file.
61576         * tests/test-idpriv-droptemp.c: New file.
61578         New module 'idpriv-droptemp'.
61579         * lib/idpriv-droptemp.c: New file.
61580         * modules/idpriv-droptemp: New file.
61582 2009-06-08  Bruno Haible  <bruno@clisp.org>
61584         Tests for module 'idpriv-drop'.
61585         * modules/idpriv-drop-tests: New file.
61586         * tests/test-idpriv-drop.sh: New file.
61587         * tests/test-idpriv-drop.su.sh: New file.
61588         * tests/test-idpriv-drop.c: New file.
61590         New module 'idpriv-drop'.
61591         * lib/idpriv.h: New file.
61592         * lib-idpriv-drop.c: New file.
61593         * m4/idpriv.m4: New file.
61594         * modules/idpriv-drop: New file.
61596 2009-06-08  Bruno Haible  <bruno@clisp.org>
61598         * modules/unistdio/u8-vasnprintf (Depends-on): Add memchr.
61599         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
61600         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
61601         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
61602         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
61603         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
61604         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
61606 2009-06-08  Eric Blake  <ebb9@byu.net>
61608         test-strstr: use memory fence, when possible
61609         * tests/test-strstr.c (main): Use memory fence, in order to be
61610         more likely to trigger Debian bug 521737.
61611         * modules/strstr-tests (Files): Pull in additional files.
61613         memchr: no longer obsolete, for wider field testing
61614         * modules/memchr (Status, Notice): Delete, this module is no
61615         longer obsolete.
61616         * modules/vasnprintf (Depends-on): Add memchr.
61618 2009-06-07  Jim Meyering  <meyering@redhat.com>
61620         hash: declare some functions with the warn_unused_result attribute
61621         * lib/hash.h (__attribute__, ATTRIBUTE_WUR): Define.
61623 2009-06-07  Bruno Haible  <bruno@clisp.org>
61625         * tests/test-alignof.c: Don't test int64_t if it does not exist.
61626         Reported by Eric Blake.
61628 2009-06-06  Eric Blake  <ebb9@byu.net>
61630         test-alignof: fix typo with long double
61631         * tests/test-alignof.c (CHECK): Use longdouble typedef to avoid
61632         compiler error.
61634 2009-06-06  Neil Jerram  <neil@ossau.uklinux.net>  (tiny change)
61636         Escape non-texinfo { and }s.
61637         * doc/ld-output-def.texi (Visual Studio Compatibility): Fix
61638         markup error.
61640 2009-06-04  Jim Meyering  <meyering@redhat.com>
61642         gitlog-to-changelog: don't infloop on an empty commit log
61643         * build-aux/gitlog-to-changelog: Warn about an empty log message.
61644         Reported by Boris Petersen <transacid@centerim.org>.
61646 2009-06-03  Mike Frysinger  <vapier@gentoo.org>
61648         version-etc: extend for packagers
61649         Add three new configure options, intended for packagers:
61650           --with-packager="packager name"
61651           --with-packager-version="packager-specific version"
61652           --with-packager-bug-reports="packager bug reporting"
61653         An example with coreutils:
61654           $ ./configure \
61655             --with-packager=Gentoo \
61656             --with-packager-bug-report=http://bugs.gentoo.org/ \
61657             --with-packager-version="patchset 1.6"
61658           $ ./src/ls --version | head -n2
61659           ls (GNU coreutils) 7.1-dirty
61660           Packaged by Gentoo (patchset 1.6)
61661         Note that the bug reporting info via --help doesn't show up because
61662         coreutils uses its own custom emit_bug_reporting_address() implementation
61663         in src/system.h.  If it didn't, it'd look like:
61664           $ ./src/ls --help | tail -n4
61665           Report bugs to <bug-coreutils@gnu.org>.
61666           Report Gentoo bugs to <http://bugs.gentoo.org/>.
61667           GNU coreutils home page: <http://www.gnu.org/software/coreutils/>.
61668           General help using GNU software: <http://www.gnu.org/gethelp/>.
61669         * lib/version-etc.c: Print new information, if provided.
61670         * m4/version-etc.m4: New file.
61671         * modules/version-etc (Files): Add m4/version-etc.m4.
61672         (configure.ac): Add gl_VERSION_ETC.
61674 2009-05-31  Bruno Haible  <bruno@clisp.org>
61676         * tests/test-alignof.c: Include <stdint.h>. Check also 'long double'
61677         and 'int64_t'.
61678         * modules/alignof-tests (Dependencies): Add stdint.
61679         Reported by Eric Blake.
61681 2009-05-31  Bruno Haible  <bruno@clisp.org>
61683         * lib/alignof.h (alignof_slot, alignof_type, alignof): Document
61684         restriction due to compiler bugs.
61685         Reported by Eric Blake.
61687 2009-05-31  Simon Josefsson  <simon@josefsson.org>
61688             Bruno Haible  <bruno@clisp.org>
61690         Fix test-alignof failure.
61691         * lib/alignof.h (alignof_slot): New macro.
61692         (alignof_type): New macro, with the same semantics as the previous
61693         'alignof'.
61694         (alignof): Alias to alignof_slot.
61695         * tests/test-alignof.c (CHECK): Check alignof_slot, not alignof. Also
61696         check that the results are usable as constant expressions.
61698 2009-05-31  Bruno Haible  <bruno@clisp.org>
61700         * tests/zerosize-ptr.h (zerosize_ptr): Specify more details.
61701         * tests/test-memchr.c (main): Check that memchr does not read past the
61702         first occurrence of the byte.
61703         * tests/test-strstr.c (main): Update comment.
61704         Suggested by Eric Blake.
61706 2009-05-30  Bruno Haible  <bruno@clisp.org>
61708         * doc/ld-output-def.texi (Visual Studio Compatibility): Explain in more
61709         detail how to use dumpbin.
61710         Reported by David Byron <dbyron@dbyron.com>.
61712 2009-06-02  Simon Josefsson  <simon@josefsson.org>
61714         * tests/test-parse-duration.sh: Don't use non-portable 'read -u3'.
61716 2009-06-02  Simon Josefsson  <simon@josefsson.org>
61718         * m4/manywarnings.m4: Add GCC 4.4 warnings.
61720 2009-05-28  Bruno Haible  <bruno@clisp.org>
61722         * gnulib-tool (func_import): Don't do HAVE_CONFIG_H replacements on
61723         build-aux/ files.
61725 2009-05-28  Simon Josefsson  <simon@josefsson.org>
61727         * gnulib-tool (func_import): Transform license on build-aux/ files too.
61729 2009-05-27  Simon Josefsson  <simon@josefsson.org>
61731         * gnulib-tool (sed_transform_main_lib_file)
61732         (sed_transform_testsrelated_lib_file): : Don't use non-POSIX
61733         regexps.
61735 2009-05-26  Simon Josefsson  <simon@josefsson.org>
61737         * tests/test-strstr.c: Add another self-test.
61738         * tests/test-strstr.c: Rewrite to use malloc/strcpy instead of
61739         strdup.  Suggested by Eric Blake  <ebb9@byu.net>.
61741 2009-05-23  Bruno Haible  <bruno@clisp.org>
61743         * doc/havelib.texi (AC_LIB_HAVE_LINKFLAGS): Update for 2009-04-26
61744         change.
61746 2009-05-21  Bruno Haible  <bruno@clisp.org>
61748         Simplify use of mode_t varargs.
61749         * lib/open.c (open): Use PROMOTED_MODE_T instead of a conditional that
61750         uses 'mode_t' or 'int'.
61751         * lib/openat.c (openat): Likewise.
61752         * lib/open-safer.c (open_safer): Likewise.
61753         * m4/mode_t.m4: New file.
61754         * m4/open.m4 (gl_PREREQ_OPEN): Require gl_PROMOTED_TYPE_MODE_T.
61755         * m4/openat.m4 (gl_PREREQ_OPENAT): Likewise.
61756         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Likewise.
61757         * modules/open (Files): Add m4/mode_t.m4.
61758         * modules/openat (Files): Likewise.
61759         * modules/fcntl-safer (Files): Likewise.
61760         Suggested by Eric Blake.
61762 2009-05-21  Pádraig Brady  <P@draigbrady.com>
61764         * doc/glibc-functions/fallocate.texi: New file.
61765         * doc/gnulib.texi: Include it.
61767 2009-05-21  Eric Blake  <ebb9@byu.net>
61768             Bruno Haible  <bruno@clisp.org>
61770         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Remove redundant m4_quote
61771         invocations.
61772         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
61774 2009-05-21  Eric Blake  <ebb9@byu.net>
61775             Bruno Haible  <bruno@clisp.org>
61777         Second attempt to work around an AIX 5.3, 6.1 compiler bug with
61778         include_next. Fix of 2008-11-20 commit.
61779         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Also set
61780         NEXT_AS_FIRST_DIRECTIVE_FOO_H.
61781         * lib/math.in.h: Use NEXT_AS_FIRST_DIRECTIVE_MATH_H instead of
61782         NEXT_MATH_H.
61783         * modules/math (Makefile.am): Substitute NEXT_AS_FIRST_DIRECTIVE_MATH_H
61784         instead of NEXT_MATH_H.
61786 2009-05-21  Bruno Haible  <bruno@clisp.org>
61788         Avoid redefinition warnings for SIZE_MAX.
61789         * m4/size_max.m4 (gl_SIZE_MAX): Avoid redefining SIZE_MAX in config.h.
61790         Reported by Simon Josefsson.
61792 2009-05-21  Bruno Haible  <bruno@clisp.org>
61794         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_CACHE_CHECK instead of
61795         AC_CACHE_VAL.
61797 2009-05-20  Bruno Haible  <bruno@clisp.org>
61799         Make zeroptr.h work on mingw.
61800         * tests/zerosize-ptr.h: Test for the presence of <sys/mman.h> and
61801         mprotect.
61802         * modules/memchr-tests (configure.ac): Also test for sys/mman.h.
61803         * modules/memchr2-tests (configure.ac): Likewise.
61804         * modules/memcmp-tests (configure.ac): Likewise.
61805         * modules/memmem-tests (configure.ac): Likewise.
61806         * modules/memrchr-tests (configure.ac): Likewise.
61807         Reported by Simon Josefsson.
61809 2009-05-20  Simon Josefsson  <simon@josefsson.org>
61811         * tests/test-glob.c: Include string.h for strcmp prototype.
61813 2009-05-20  Simon Josefsson  <simon@josefsson.org>
61815         * modules/getdelim (Depends-on): Add explicit stdint, although it
61816         was implicitly already pulled in via realloc-posix.
61817         * lib/getdelim.c: Get SIZE_MAX from stdint.h.
61819 2009-05-20  Simon Josefsson  <simon@josefsson.org>
61821         MinGW and IRIX does not have sa_family_t type.  Reported by "Tom
61822         G. Christensen" <tgc@jupiterrise.com>.
61823         * m4/sys_socket_h.m4: Check for sa_family_t.
61824         * lib/sys_socket.in.h: Typedef sa_family_t when needed.
61825         * modules/sys_socket: Substitute HAVE_SA_FAMILY_T.
61826         * tests/test-sys_socket.c: Check that sa_family_t works.
61828 2009-05-18  Eric Blake  <ebb9@byu.net>
61830         maint.mk: allow gnulib_dir in VPATH build
61831         * top/maint.mk (gnulib_dir): Make relative to $(srcdir).
61833 2009-05-15  Jim Meyering  <meyering@redhat.com>
61835         maint.mk: Give gnulib_dir a default definition.
61836         * top/maint.mk (gnulib_dir): Define to 'gnulib', by default.
61837         Thus, most packages no longer need to specify this variable in cfg.mk
61839 2009-05-14  Tom Prince  <tom.prince@ualberta.net>  (tiny change)
61841         rename.m4: fix typos that would make non-mingw cross-configure fail
61842         * m4/rename.m4 (gl_FUNC_RENAME): Fix typos.
61844 2009-05-13  Eric Blake  <ebb9@byu.net>
61846         mmap-anon: avoid out-of-order autoconf expansion
61847         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Use correct
61848         SYSTEM_EXTENSIONS macro to silence warnings from autoconf 2.63b.
61849         * modules/memchr-tests (Depends-on): Add extensions.
61850         * modules/memchr2-tests (Depends-on): Add extensions.
61851         * modules/memcmp-tests (Depends-on): Add extensions.
61852         * modules/memmem-tests (Depends-on): Add extensions.
61853         * modules/memrchr-tests (Depends-on): Add extensions.
61855 2009-05-13  Bruno Haible  <bruno@clisp.org>
61857         Make some tests ISO C 99 compliant.
61858         * tests/zerosize-ptr.h: New file.
61859         * tests/test-memchr.c: Include zerosize-ptr.h.
61860         (main): Use a zero-size object pointer instead of NULL.
61861         * tests/test-memchr2.c: Include zerosize-ptr.h.
61862         (main): Use a zero-size object pointer instead of NULL.
61863         * tests/test-memcmp.c: Include zerosize-ptr.h.
61864         (main): Use a zero-size object pointer instead of NULL.
61865         * tests/test-memmem.c: Include zerosize-ptr.h.
61866         (main): Use a zero-size object pointer instead of NULL.
61867         * tests/test-memrchr.c: Include zerosize-ptr.h.
61868         (main): Use a zero-size object pointer instead of NULL.
61869         * modules/memchr-tests (Files): Add tests/zerosize-ptr.h,
61870         m4/mmap-anon.m4.
61871         (Depends-on): Add getpagesize.
61872         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
61873         * modules/memchr2-tests (Files): Add tests/zerosize-ptr.h,
61874         m4/mmap-anon.m4.
61875         (Depends-on): Add getpagesize.
61876         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
61877         * modules/memcmp-tests (Files): Add tests/zerosize-ptr.h,
61878         m4/mmap-anon.m4.
61879         (Depends-on): Add getpagesize.
61880         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
61881         * modules/memmem-tests (Files): Add tests/zerosize-ptr.h,
61882         m4/mmap-anon.m4.
61883         (Depends-on): Add getpagesize.
61884         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
61885         * modules/memrchr-tests (Files): Add tests/zerosize-ptr.h,
61886         m4/mmap-anon.m4.
61887         (Depends-on): Add getpagesize.
61888         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
61890 2009-05-12  Bruno Haible  <bruno@clisp.org>
61892         Tests for module 'alignof'.
61893         * modules/alignof-tests: New file.
61894         * tests/test-alignof.c: New file.
61896 2009-05-12  Bruno Haible  <bruno@clisp.org>
61898         Fix alignof macro.
61899         * lib/alignof.h (alignof): Remove special cases for AIX and HP-UX
61900         vendor compilers that are always correct.
61902 2009-05-12  Bruno Haible  <bruno@clisp.org>
61904         Make the MAP_ANONYMOUS detection work on HP-UX 11.
61905         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check whether mmap exists, but
61906         not whether its fully works.
61908 2009-05-12  Bruno Haible  <bruno@clisp.org>
61910         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Add comments.
61912 2009-05-12  Jim Meyering  <meyering@redhat.com>
61914         * top/maint.mk: Adjust backslash alignment.
61916 2009-05-11  Simon Josefsson  <simon@josefsson.org>
61918         * top/maint.mk: Make $(srcdir)/build-aux configurable.
61920 2009-05-11  Eric Blake  <ebb9@byu.net>
61922         argp: avoid undefined behavior
61923         * lib/argp-fmtstream.c (weak_alias): Pass correct types to ctype
61924         macros.
61926 2009-05-08  Simon Josefsson  <simon@josefsson.org>
61928         * tests/test-vc-list-files-git.sh: Do git config of user.email and
61929         user.name to prevent git commit from complaining.
61931 2009-05-10  Bruno Haible  <bruno@clisp.org>
61933         * gnulib-tool (func_import, func_create_testdir, copy-file): Change
61934         sed_rewrite_old_files, sed_rewrite_new_files, sed_rewrite_files so that
61935         it rewrites every file name only once.
61936         Reported by Simon Josefsson. Helped by Ralf Wildenhues.
61938 2009-05-08  Bruno Haible  <bruno@clisp.org>
61940         * lib/sys_socket.in.h (_SS_PADSIZE): Use a conditional expression
61941         instead of 'max'.
61943 2009-05-08  Simon Josefsson  <simon@josefsson.org>
61945         * m4/sys_socket_h.m4: Test for ws2tcpip.h earlier, needed for
61946         sockaddr_storage test.
61948 2009-05-07  Simon Josefsson  <simon@josefsson.org>
61950         * modules/sys_socket (Makefile.am): Substitute
61951         HAVE_STRUCT_SOCKADDR_STORAGE.  Depend on alignof.
61952         * m4/sys_socket_h.m4: Check for sockaddr_storage.
61953         * lib/sys_socket.in.h (sockaddr_storage): Define when needed.
61954         * tests/test-sys_socket.c: Check sockaddr_storage.
61956 2009-05-08  Bruno Haible  <bruno@clisp.org>
61958         New module 'alignof'.
61959         * lib/alignof.h: New file.
61960         * modules/alignof: New file.
61962 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
61963             Bruno Haible  <bruno@clisp.org>
61965         Fix test-file-has-acl on FreeBSD.
61966         * tests/test-file-has-acl.sh: Also test a directory. On FreeBSD, the
61967         mask is implicitly added.
61968         * tests/test-file-has-acl.c: Include <signal.h>.
61969         (main): Terminate the test after 5 seconds.
61970         * modules/acl-tests (configure.ac): Check for alarm function.
61972 2009-05-04  Bruno Haible  <bruno@clisp.org>
61974         Exploit new semantics of AC_DEFUN_ONCE available since 2009-01-26.
61975         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Remove outdated comment.
61976         * modules/errno (configure.ac): Drop AC_REQUIRE.
61977         * m4/multiarch.m4 (gl_MULTIARCH): Remove outdated comment.
61978         * modules/multiarch (configure.ac): Drop AC_REQUIRE.
61980 2009-05-04  Simon Josefsson  <simon@josefsson.org>
61982         * modules/glob-tests: New module.
61983         * tests/test-glob.c: Add.
61985 2009-05-04  Simon Josefsson  <simon@josefsson.org>
61987         * modules/fnmatch-tests: New module.
61988         * tests/test-fnmatch.c: Add.
61990 2009-05-04  Eric Blake  <ebb9@byu.net>
61992         maint: make the new no-submodule-changes rule VPATH-safe
61993         * top/maint.mk (no-submodule-changes): Don't assume a srcdir build.
61995 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
61996             Bruno Haible  <bruno@clisp.org>
61998         acl: Fix infinite loop on FreeBSD.
61999         * lib/acl_entries.c (acl_entries) [Linux, FreeBSD]: Fix interpretation
62000         of return value from acl_get_entry.
62001         * lib/file-has-acl.c (acl_access_nontrivial) [Linux, FreeBSD]:
62002         Likewise.
62004 2009-05-03  Bruno Haible  <bruno@clisp.org>
62006         * lib/acl-internal.h (acl_entries): Clarify return value.
62007         * lib/acl_entries.c (acl_entries): Likewise.
62009 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
62011         Bug fix in acl module.
62012         * lib/set-mode-acl.c: Use correct struct with ACL_SETACL.
62014 2009-05-03  Bruno Haible  <bruno@clisp.org>
62016         Create gperf-generated file in the source dir, not in the build dir.
62017         * modules/iconv_open (iconv_open-aix.h, iconv_open-hpux.h,
62018         iconv_open-irix.h, iconv_open-osf.h): Create file in the source tree.
62019         * modules/unicase/locale-language (unicase/locale-languages.h):
62020         Likewise.
62021         * modules/unicase/special-casing (unicase/special-casing-table.h):
62022         Likewise.
62023         * modules/unictype/property-byname (unictype/pr_byname.h): Likewise.
62024         * modules/unictype/scripts (unictype/scripts_byname.h): Likewise.
62025         * modules/uninorm/composition (uninorm/composition-table.h): Likewise.
62026         Reported by Ralf Wildenhues.
62028 2009-05-03  Bruno Haible  <bruno@clisp.org>
62030         * modules/fnmatch (Description, configure.ac): Taken from
62031         fnmatch-posix.
62032         * modules/fnmatch-posix: Turn into a symbolic reference to the
62033         'fnmatch' module, and deprecate.
62034         * doc/posix-functions/fnmatch.texi: Mention the fnmatch module.
62036 2009-05-03  Bruno Haible  <bruno@clisp.org>
62038         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF,
62039         gl_PREREQ_VASNPRINTF_LONG_DOUBLE): Define through AC_DEFUN_ONCE.
62040         Reported by Ralf Wildenhues.
62042 2009-05-04  Simon Josefsson  <simon@josefsson.org>
62044         * m4/fnmatch.m4: Fix fnmatch re-define.
62046 2009-04-27  David Bartley  <dtbartle@csclub.uwaterloo.ca>
62048         priv-set: new module and tests; adapt write-any-file
62049         * lib/priv-set.c: New file.
62050         * lib/priv-set.h: New file.
62051         * lib/unlinkdir.c: Make cannot_unlink_dir thread-safe.
62052         * lib/write-any-file.c: Simplify by using priv-set module.
62053         * m4/priv-set.m4: New file.
62054         * modules/priv-set: New file.
62055         * modules/unlinkdir: Add dependency on priv-set module.
62056         * modules/write-any-file: Likewise.
62058         Tests for module 'priv-set'.
62059         * modules/priv-set-tests: New file.
62060         * tests/test-priv-set.c: New file.
62062 2009-05-03  Jim Meyering  <meyering@redhat.com>
62063             Bruno Haible  <bruno@clisp.org>
62065         * lib/propername.c (proper_name_utf8): Ignore no-op translations;
62066         use the converted UTF-8 variant of the name instead.
62068 2009-05-03  Jim Meyering  <meyering@redhat.com>
62070         tests: tighten some getdate tests
62071         * tests/test-getdate.c (main): Tighten tests: require equality,
62072         not just greater than.  Set TZ envvar to UTC0.
62074 2009-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
62076         getdate: correctly interpret "next monday" when run on a Monday
62077         * lib/getdate.y (get_date): Correct the calculation of tm_mday so
62078         that e.g., "next tues" (when run on a tuesday) results in a date
62079         that is one week in the future, and not today's date.
62080         I.e., add a week when the wday is the same as the current one.
62081         Reported by Tom Broadhurst in http://savannah.gnu.org/bugs/?25406,
62082         and earlier by Martin Bernreuther and Jan Minář.
62083         * tests/test-getdate.c (main): Check that "next DAY" is always in
62084         the future and that "last DAY" is always in the past.
62086 2009-05-02  Jim Meyering  <meyering@redhat.com>
62088         build: ensure that a release build fails when a submodule is unclean
62089         * top/maint.mk (no-submodule-changes): New rule.
62090         (alpha beta major): Depend on it.
62092 2009-05-02  Bruno Haible  <bruno@clisp.org>
62094         Remove incompatibility between modules fnmatch-posix and fnmatch-gnu.
62095         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Use a
62096         shell variable gl_fnmatch_required to detect which variant is
62097         requested.
62098         (_AC_FUNC_FNMATCH_IF, _AC_LIBOBJ_FNMATCH): Remove macros. Inlined into
62099         gl_FUNC_FNMATCH_POSIX.
62100         * gnulib-tool (func_create_testdir, func_create_megatestdir): Don't
62101         exclude fnmatch-posix.
62103 2009-05-02  Bruno Haible  <bruno@clisp.org>
62105         Relicense mbsrtowcs and strnlen1 under LGPLv2+.
62106         * modules/mbsrtowcs (License): Change to LGPLv2+.
62107         * modules/strnlen1 (License): Likewise.
62108         Reported by Simon Josefsson.
62110 2009-05-02  Bruno Haible  <bruno@clisp.org>
62112         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Say "guessing no" instead of
62113         "cross".
62114         (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Update. Don't assume that
62115         gnulib-tool was called with option --source-base=lib.
62117 2009-05-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62119         Use automake *-local hooks without commands, for extensibility.
62120         * modules/localcharset (Makefile.am): Rename install-exec-local
62121         rule to install-exec-localcharset, and make it a prerequisite of
62122         install-exec-local.  Likewise, rename the uninstall-local rule to
62123         uninstall-localcharset, and make it a prerequisite of the former.
62125 2009-05-01  Bruno Haible  <bruno@clisp.org>
62127         * lib/wchar.in.h (wcsnrtombs): Define if REPLACE_WCSNRTOMBS is 1.
62128         * m4/wcsnrtombs.m4 (gl_FUNC_WCSRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
62129         set REPLACE_WCSNRTOMBS if mbstate_t must be replaced.
62130         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCSNRTOMBS.
62131         * modules/wchar (Makefile.am): Substitute REPLACE_WCSNRTOMBS.
62132         * modules/wcsnrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
62133         m4/locale-zh.m4, m4/codeset.m4.
62135         * m4/wcsrtombs.m4 (gl_FUNC_WCSNRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
62136         set REPLACE_WCSRTOMBS if mbstate_t must be replaced.
62137         * modules/wcsrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
62138         m4/locale-zh.m4.
62140         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Invoke gl_MBSTATE_T_BROKEN, and set
62141         REPLACE_WCRTOMB if mbstate_t must be replaced.
62142         * modules/wcrtomb (Files): Add m4/mbrtowc.m4.
62143         Reported by Jens Rehsack <rehsack@googlemail.com> via Eric Blake.
62145 2009-05-01  Bruno Haible  <bruno@clisp.org>
62147         Avoid compiler warnings when redefining macros defined by <libintl.h>.
62148         * lib/gettext.h [!ENABLE_NLS] (gettext, dgettext, dcgettext, ngettext,
62149         dngettext, dcngettext, textdomain, bindtextdomain,
62150         bind_textdomain_codeset): Undefine before redefining.
62152 2009-04-30  Bruno Haible  <bruno@clisp.org>
62154         Fix bug introduced on 2009-04-25.
62155         * lib/math.in.h (gl_signbitf_OPTIMIZED_MACRO,
62156         gl_signbitd_OPTIMIZED_MACRO, gl_signbitl_OPTIMIZED_MACRO): New macros.
62157         * lib/signbitf.c (gl_signbitd): Undefine if gl_signbitf_OPTIMIZED_MACRO
62158         is defined.
62159         * lib/signbitd.c (gl_signbitd): Undefine if gl_signbitd_OPTIMIZED_MACRO
62160         is defined.
62161         * lib/signbitl.c (gl_signbitd): Undefine if gl_signbitl_OPTIMIZED_MACRO
62162         is defined.
62163         Reported by Elbert_Pol <elbert.pol@gmail.com>.
62165 2009-04-28  Bruno Haible  <bruno@clisp.org>
62167         Comment tweaks.
62168         * lib/unistr.h (u*_cmp2): Clarify what memcmp2 is.
62169         * lib/uninorm.h (u*_normxfrm): Fix description of return value.
62170         * lib/unicase.h (u*_casexfrm): Likewise.
62171         Reported by Paolo Bonzini.
62173 2009-04-28  Bruno Haible  <bruno@clisp.org>
62175         Fix a compilation error.
62176         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Fix initializer.
62177         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
62178         Reported by Jim Meyering.
62180 2009-04-27  Bruno Haible  <bruno@clisp.org>
62182         New module 'libunistring'.
62183         * modules/libunistring: New file.
62184         * m4/libunistring.m4: New file.
62185         * MODULES.html.sh (Unicode string functions): Add it.
62187 2009-04-27  Eric Blake  <ebb9@byu.net>
62189         maint.mk: allow package-specific header to provide <config.h>
62190         * top/maint.mk (sc_require_config_h): New variable.
62191         (sc_require_config_h, sc_require_config_h_first): Use it.
62193 2009-04-27  Simon Josefsson  <simon@josefsson.org>
62195         * top/maint.mk (sc_avoid_if_before_free): Except
62196         useless-if-before-free script.
62198 2009-04-27  Eric Blake  <ebb9@byu.net>
62200         maintainer-makefile: depend on all required helper scripts
62201         * modules/maintainer-makefile (Depends-on): Add vc-list-files and
62202         useless-if-before-free.
62203         * top/maint.mk (VC_LIST, sc_avoid_if_before_free): Use local
62204         version, rather than assuming gnulib checkout is available.
62205         Reported by Simen Josefsson.
62207 2009-04-26  Bruno Haible  <bruno@clisp.org>
62209         Make the lib vs. lib64 recognition work on openSUSE 11 with "gcc -m32".
62210         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Ignore paths that end in
62211         "../" or "..".
62213 2009-04-26  Bruno Haible  <bruno@clisp.org>
62215         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Accept a fifth argument.
62216         * m4/libsigsegv.m4 (gl_LIBSIGSEGV): Simplify by using
62217         AC_LIB_HAVE_LINKFLAGS.
62219 2009-04-26  Bruno Haible  <bruno@clisp.org>
62221         Simplify calling convention of u*_conv_from_encoding.
62222         * lib/uniconv.h (u8_conv_from_encoding, u16_conv_from_encoding,
62223         u32_conv_from_encoding): Expect a resultbuf argument and return the
62224         result directly as a pointer.
62225         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Likewise.
62226         * lib/uniconv/u-conv-from-enc.h (FUNC): Likewise.
62227         * lib/uniconv/u-strconv-from-enc.h (FUNC): Update.
62228         * lib/unicase/ulc-casecmp.c (ulc_u8_casefold): Update.
62229         * lib/unicase/ulc-casexfrm.c (ulc_casexfrm): Update.
62230         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
62231         Update.
62232         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Update.
62233         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Update.
62234         * lib/vasnprintf.c (VASNPRINTF): Update.
62235         * tests/uniconv/test-u8-conv-from-enc.c (main): Update.
62236         * tests/uniconv/test-u16-conv-from-enc.c (main): Update.
62237         * tests/uniconv/test-u32-conv-from-enc.c (main): Update.
62238         * NEWS: Mention the change.
62240 2009-04-26  Bruno Haible  <bruno@clisp.org>
62242         Simplify calling convention of u*_conv_to_encoding.
62243         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
62244         u32_conv_to_encoding): Expect a resultbuf argument and return the
62245         result directly as a pointer.
62246         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
62247         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Preserve errno while
62248         freeing scaled_offsets if mem_iconveha failed.
62249         * lib/unicase/u-casexfrm.h (FUNC): Update.
62250         * lib/uninorm/u-normxfrm.h (FUNC): Update.
62251         * lib/vasnprintf.c (VASNPRINTF): Update.
62252         * tests/uniconv/test-u8-conv-to-enc.c (main): Update.
62253         * tests/uniconv/test-u16-conv-to-enc.c (main): Update.
62254         * tests/uniconv/test-u32-conv-to-enc.c (main): Update.
62255         * NEWS: Mention the change.
62257 2009-04-26  Bruno Haible  <bruno@clisp.org>
62259         Avoid test failures on AIX and OSF/1.
62260         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Avoid calling
62261         malloc(0).
62262         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
62263         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
62264         Likewise.
62265         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Likewise.
62266         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Likewise.
62267         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Fix memory leak.
62268         * lib/unistr/u-cpy-alloc.h (FUNC): Call malloc(1) instead of malloc(0).
62269         * doc/posix-functions/malloc.texi: Document the portability problem
62270         related to malloc(0).
62272 2009-04-26  Bruno Haible  <bruno@clisp.org>
62274         * modules/unistr/u8-cpy-alloc (Depends-on): Add malloc-posix.
62275         * modules/unistr/u16-cpy-alloc (Depends-on): Likewise.
62276         * modules/unistr/u32-cpy-alloc (Depends-on): Likewise.
62278 2009-04-25  Bruno Haible  <bruno@clisp.org>
62280         Avoid link error when creating a namespace clean library.
62281         * lib/math.in.h (gl_signbitf, gl_signbitd, gl_signbitl): Don't define
62282         as macro with arguments if already defined as an alias.
62283         * lib/signbitf.c (gl_signbitf): Don't undefine.
62284         * lib/signbitd.c (gl_signbitd): Don't undefine.
62285         * lib/signbitl.c (gl_signbitl): Don't undefine.
62287 2009-04-25  Jim Meyering  <meyering@redhat.com>
62289         vc-list-files: fix another quoting bug
62290         * build-aux/vc-list-files: Avoid sed backslash expansion
62291         of pathological directory names.
62293 2009-04-25  Eric Blake  <ebb9@byu.net>
62295         vc-list-files: fix shell quoting error
62296         * build-aux/vc-list-files: Protect against $ in $dir.  Normalize
62297         timestamp.
62299 2009-04-25  Jim Meyering  <meyering@redhat.com>
62301         vc-list-files: restore lost functionality with subdir argument
62302         * build-aux/vc-list-files: When given a non-"." sub-directory
62303         argument, substitute the $dir/ prefix back onto each resulting name.
62304         Otherwise, coreutils' root_tests check would fail.
62306 2009-04-24  Eric Blake  <ebb9@byu.net>
62308         vc-list-files: ignore git symlinks
62309         * build-aux/vc-list-files (.git): Use ls-tree and a filter, rather
62310         than ls-files, to ignore git symlinks.
62312         maint.mk: import improvements from m4
62313         * top/maint.mk (VC-tag): Use signing key from cfg.mk.
62314         (move_if_change): Delete unused macro.
62315         (news-date-check, vc-diff-check): Support VPATH builds.
62316         (announcement): Likewise.  Split --bootstrap-tools list...
62317         (boostrap-tools): ...into separate list, which can be overridden
62318         in cfg.mk.
62319         (sc_avoid_if_before_free): Point to $(gnulib_dir), rather than
62320         requiring dependency on useless-if-before-free module.
62321         (VC_LIST, VC_LIST_EXCEPT): Likewise for vc-list-files module.
62322         Support VPATH builds.
62324 2009-04-24  Jim Meyering  <meyering@redhat.com>
62326         maint.mk: remove coreutils-specific rules and variables
62327         * top/maint.mk (bin, taint-distcheck, coreutils-path-check, t): Remove.
62328         (fake_home, install-transform-check, my-instcheck, pfx, TMPDIR): Remove.
62329         (t_prefix, t_taint, tp, warn_cflags, write_loser, my-distcheck): Remove.
62331         maint.mk: remove obsolete rule
62332         * top/maint.mk (rel-check): Remove rule.
62333         (WGET, WGETFLAGS): Remove now-unused variables.
62335 2009-04-24  Simon Josefsson  <simon@josefsson.org>
62337         * top/maint.mk (makefile-check): Renamed to sc_makefile_check for
62338         consistency.
62340         * modules/vc-list-files-tests (TESTS_ENVIRONMENT): Use
62341         '$(PATH_SEPARATOR)' instead of ':'.
62343 2009-04-24  Simon Josefsson  <simon@josefsson.org>
62345         * lib/getopt1.c (main): Use 'const' for static array.
62347 2009-04-24  Simon Josefsson  <simon@josefsson.org>
62349         * top/maint.mk: Sync with coreutils.
62350         * NEWS: Explain incompatibilities.
62352 2009-04-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
62353             Bruno Haible  <bruno@clisp.org>
62355         Fix cross-compilation results.
62356         * m4/btowc.m4 (gl_FUNC_BTOWC): Use no-op statement, rather than empty
62357         statement, as third argument of AC_TRY_RUN.
62358         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
62359         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
62360         Likewise.
62361         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
62362         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
62363         Likewise.
62364         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
62365         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise. Update for AIX 4.3.
62366         * doc/posix-functions/wcrtomb.texi: Mention the bug on AIX 4.3.
62368 2009-04-20  Bruno Haible  <bruno@clisp.org>
62370         Avoid test failure on mingw.
62371         * tests/uniwidth/test-uc_width2.sh: Convert newlines in output.
62373 2009-04-20  Bruno Haible  <bruno@clisp.org>
62375         Avoid compilation error on mingw.
62376         * modules/localename-tests (Depends-on): Add locale.
62378 2009-04-19  Bruno Haible  <bruno@clisp.org>
62380         Support for building a shared library on Windows platforms.
62381         * tests/uninorm/test-nfc.c (n): Don't define if WOE32DLL.
62382         (main): Test the presence of UNINORM_NFC here.
62383         * tests/uninorm/test-nfd.c (n): Don't define if WOE32DLL.
62384         (main): Test the presence of UNINORM_NFD here.
62385         * tests/uninorm/test-nfkc.c (n): Don't define if WOE32DLL.
62386         (main): Test the presence of UNINORM_NFKC here.
62387         * tests/uninorm/test-nfkd.c (n): Don't define if WOE32DLL.
62388         (main): Test the presence of UNINORM_NFKD here.
62390 2009-04-19  Bruno Haible  <bruno@clisp.org>
62392         Avoid a compiler warning.
62393         * tests/uninorm/test-u32-normalize-big.c (read_normalization_test_file):
62394         Change type of variable 'sequence'.
62396 2009-04-19  Bruno Haible  <bruno@clisp.org>
62398         * modules/configmake (Makefile.am): When the contents of configmake.h
62399         does not change, arrange to preserve its modification time.
62401 2009-04-17  Simon Josefsson  <simon@josefsson.org>
62403         * top/maint.mk (PO_DOMAIN): New variable, allows overriding of
62404         gettext domain.
62406 2009-04-16  Jim Meyering  <meyering@redhat.com>
62408         useless-if-before-free: improve conversion code
62409         * build-aux/useless-if-before-free: Adjust code-in-comment to match
62410         "...!= 0" as well as "...!= NULL".  emacs has one of the former.
62412 2009-04-14  Bruno Haible  <bruno@clisp.org>
62414         * modules/fcntl (Depends-on): Add extensions.
62415         * m4/fcntl_h.m4 (gl_FCNTL_H): Add a comment.
62417 2009-04-12  Ben Pfaff  <blp@gnu.org>
62419         Make fcntl module detect O_NOATIME, O_NOFOLLOW on GNU/Linux.
62420         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_USE_SYSTEM_EXTENSIONS.
62422 2009-03-20  Ben Pfaff  <blp@gnu.org>
62424         Make rename replace existing destinations on Windows.
62425         * m4/rename.m4: Add test for Mingw.
62426         * lib/rename.c: Add rename replacement that uses MoveFileEx with
62427         MOVEFILE_REPLACE_EXISTING to replace existing destination files.
62428         * doc/posix-functions/rename.texi: Document.
62430 2009-04-10  Bruno Haible  <bruno@clisp.org>
62432         New include file "iconveh.h".
62433         * lib/iconveh.h: New file, extracted from lib/striconveh.h.
62434         * lib/striconveh.h: Include it.
62435         (enum iconv_ilseq_handler): Remove definition.
62436         * lib/striconveha.h: Include <stddef.h> and iconveh.h instead of
62437         striconveh.h.
62438         * lib/striconveha.c: Include striconveh.h.
62439         * lib/uniconv.h: Include iconveh.h instead of striconveh.h.
62440         * modules/striconveh (Files): Add lib/iconveh.h.
62441         * modules/uniconv/base (Files): Add lib/iconveh.h. Remove
62442         lib/striconveh.h.
62444 2009-04-10  Bruno Haible  <bruno@clisp.org>
62446         * lib/uniconv.h: Update comment.
62448 2009-04-10  Bruno Haible  <bruno@clisp.org>
62450         * lib/unistr/u8-mbtouc-aux.c: Inside libunistring, define the function
62451         always.
62452         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
62453         * lib/unistr/u16-mbtouc-aux.c: Likewise.
62454         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
62455         * lib/unistr/u8-mbtouc.c: Inside libunistring, include
62456         "unistring-notinline.h", so that the function gets defined always.
62457         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
62458         * lib/unistr/u8-uctomb.c: Likewise.
62459         * lib/unistr/u16-mbtouc.c: Likewise.
62460         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
62461         * lib/unistr/u16-uctomb.c: Likewise.
62462         * lib/unistr/u32-mbtouc.c: Likewise.
62463         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
62464         * lib/unistr/u32-uctomb.c: Likewise.
62466 2009-04-10  Bruno Haible  <bruno@clisp.org>
62468         Mark 'utime' obsolete.
62469         * modules/utime (Status, Notice): New sections.
62470         Suggested by Jim Meyering.
62472         Fix cross-compile guess for utime test.
62473         * m4/utime.m4 (AC_FUNC_UTIME_NULL): Add definition from newest unstable
62474         autoconf.
62475         * doc/posix-functions/utime.texi: Give more precisions.
62476         Reported by Jan <ipif@ymail.com>.
62478 2009-04-09  Kamil Dudka  <kdudka@redhat.com>
62480         filevercmp: correct today's change
62481         * lib/filevercmp.c: Also handle coreutils' test inputs.
62482         * tests/test-filevercmp.c: Add inputs from one of coreutils' test scripts.
62484         Fix regression in 'filevercmp' module. Thanks Sven Joachim
62485         for reporting it.
62486         * lib/filevercmp.c: Special handle for "", "." and "..".
62487         * tests/test-filevercmp.c: Enlarge the set suite.
62489 2009-04-07  Jim Meyering  <meyering@redhat.com>
62491         useless-if-before-free: show how to remove braced useless free, too
62492         * build-aux/useless-if-before-free: still only in a comment, though.
62494 2009-04-07  Reuben Thomas  <rrt@sc3d.org>
62496         maint.mk: import changes to syntax-check macros from coreutils
62497         * top/maint.mk (_prohibit_regexp, _header_without_use): Define.
62498         Use them in the relevant macros.
62500 2009-04-06  Bruno Haible  <bruno@clisp.org>
62502         Fix unportable use of bit-fields.
62503         * lib/unicase/special-casing.h (struct special_casing_rule): Change the
62504         bit-field type from 'int' to 'signed int'. Otherwise Solaris cc,
62505         AIX xlc, and OSF/1 cc interpret it as 'unsigned int'.
62507 2009-04-06  Bruno Haible  <bruno@clisp.org>
62509         Avoid test failures on AIX and OSF/1.
62510         * tests/unicase/test-u8-casefold.c (check): Account for the possibility
62511         that malloc(0) = NULL.
62512         * tests/unicase/test-u8-tolower.c (check): Likewise.
62513         * tests/unicase/test-u8-totitle.c (check): Likewise.
62514         * tests/unicase/test-u8-toupper.c (check): Likewise.
62515         * tests/unicase/test-u16-casefold.c (check): Likewise.
62516         * tests/unicase/test-u16-tolower.c (check): Likewise.
62517         * tests/unicase/test-u16-totitle.c (check): Likewise.
62518         * tests/unicase/test-u16-toupper.c (check): Likewise.
62519         * tests/unicase/test-u32-casefold.c (check): Likewise.
62520         * tests/unicase/test-u32-tolower.c (check): Likewise.
62521         * tests/unicase/test-u32-totitle.c (check): Likewise.
62522         * tests/unicase/test-u32-toupper.c (check): Likewise.
62523         * tests/uninorm/test-u8-nfc.c (check): Likewise.
62524         * tests/uninorm/test-u8-nfd.c (check): Likewise.
62525         * tests/uninorm/test-u8-nfkc.c (check): Likewise.
62526         * tests/uninorm/test-u8-nfkd.c (check): Likewise.
62527         * tests/uninorm/test-u16-nfc.c (check): Likewise.
62528         * tests/uninorm/test-u16-nfd.c (check): Likewise.
62529         * tests/uninorm/test-u16-nfkc.c (check): Likewise.
62530         * tests/uninorm/test-u16-nfkd.c (check): Likewise.
62531         * tests/uninorm/test-u32-nfc.c (check): Likewise.
62532         * tests/uninorm/test-u32-nfd.c (check): Likewise.
62533         * tests/uninorm/test-u32-nfkc.c (check): Likewise.
62534         * tests/uninorm/test-u32-nfkd.c (check): Likewise.
62536 2009-04-05  Bruno Haible  <bruno@clisp.org>
62538         Work around an autoconf limitation.
62539         * gnulib-tool (func_emit_lib_Makefile_am): Omit the "Reproduce by"
62540         comment line if it would be longer than 3 KB.
62542 2009-04-05  Bruno Haible  <bruno@clisp.org>
62544         Avoid test failure with libiconv-1.13.
62545         * tests/test-striconveh.c (main): Allow result of libiconv 1.13 as one
62546         of the expected test results.
62548 2009-04-05  Bruno Haible  <bruno@clisp.org>
62550         * gnulib-tool (func_emit_lib_Makefile_am): Don't add the library to
62551         noinst_LTLIBRARIES if the Makefile.am in the same directory specifies
62552         that it should be installed.
62554 2009-04-05  Bruno Haible  <bruno@clisp.org>
62556         * gnulib-tool: New option --copy-file.
62557         (func_usage): Document it.
62558         (func_dest_tmpfilename): Moved out of func_import.
62559         (func_add_file, func_update_file): New functions, extracted from
62560         func_import.
62561         (func_import): Update.
62563 2009-04-05  Karl Berry  <karl@gnu.org>
62565         * README: prominently mention gnulib-tool.
62566         Rearrange sections so getting the code is near the top.
62568 2009-04-05  Bruno Haible  <bruno@clisp.org>
62570         * lib/unicase.h: Mention u*_cmp2.
62571         * lib/unicase/u-casecmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
62572         * lib/unicase/u8-casecmp.c: Use u8_cmp2 instead of u8_cmp.
62573         * lib/unicase/ulc-casecmp.c: Likewise.
62574         * lib/unicase/u16-casecmp.c: Use u16_cmp2 instead of u16_cmp.
62575         * lib/unicase/u32-casecmp.c: Use u32_cmp2 instead of u32_cmp.
62576         * modules/unicase/u8-casecmp (Depends-on): Add unistr/u8-cmp2, remove
62577         unistr/u8-cmp.
62578         * modules/unicase/ulc-casecmp (Depends-on): Likewise.
62579         * modules/unicase/u16-casecmp (Depends-on): Add unistr/u16-cmp2, remove
62580         unistr/u16-cmp.
62581         * modules/unicase/u32-casecmp (Depends-on): Add unistr/u32-cmp2, remove
62582         unistr/u32-cmp.
62584         * lib/uninorm.h: Mention u*_cmp2.
62585         * lib/uninorm/u-normcmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
62586         * lib/uninorm/u8-normcmp.c: Use u8_cmp2 instead of u8_cmp.
62587         * lib/uninorm/u16-normcmp.c: Use u16_cmp2 instead of u16_cmp.
62588         * lib/uninorm/u32-normcmp.c: Use u32_cmp2 instead of u32_cmp.
62589         * modules/uninorm/u8-normcmp (Depends-on): Add unistr/u8-cmp2, remove
62590         unistr/u8-cmp.
62591         * modules/uninorm/u16-normcmp (Depends-on): Add unistr/u16-cmp2, remove
62592         unistr/u16-cmp.
62593         * modules/uninorm/u32-normcmp (Depends-on): Add unistr/u32-cmp2, remove
62594         unistr/u32-cmp.
62596         New module 'unistr/u32-cmp2'.
62597         * lib/unistr/u32-cmp2.c: New file.
62598         * modules/unistr/u32-cmp2: New file.
62600         New module 'unistr/u16-cmp2'.
62601         * lib/unistr/u16-cmp2.c: New file.
62602         * modules/unistr/u16-cmp2: New file.
62604         New module 'unistr/u8-cmp2'.
62605         * lib/unistr.h (u8_cmp2, u16_cmp2, u32_cmp2): New declarations.
62606         * lib/unistr/u8-cmp2.c: New file.
62607         * lib/unistr/u-cmp2.h: New file.
62608         * modules/unistr/u8-cmp2: New file.
62610 2009-04-05  Bruno Haible  <bruno@clisp.org>
62612         * lib/unictype.h (uc_property_is_valid): New macro.
62613         * tests/unictype/test-pr_byname.c (main): Use it.
62615         * lib/unistr.h: Doc fixes.
62616         * lib/uniconv.h: Doc fixes.
62617         * lib/unictype.h: Doc fixes.
62619 2009-04-03  Paul Eggert  <eggert@cs.ucla.edu>
62621         Port coreutils 7.2 to Solaris 8.
62623         * modules/arpa_inet (arpa/inet.h): Depend on arpa_inet.in.h.
62624         * m4/inet_ntop.m4 (gl_INET_NTOP): Search for inet_ntop in -lnsl,
62625         for Solaris 8.  This is a bit of a hack, as it means it's the
62626         caller's responsibility to add -lnsl if needed, but most likely it
62627         won't be needed since only getaddrinfo uses this and getaddrinfo
62628         isn't needed on Solaris 8.
62630         * modules/fnmatch (Depends-on): Add mbsrtowcs, to fix a porting
62631         problem to Solaris 8 encountered with coreutils 7.2, which
62632         resulted in a message "fnmatch.c:292: warning: passing argument 4
62633         of 'mbsrtowcs' from incompatible pointer type".  Also, add mbsinit
62634         at the suggestion of Bruno Haible, since fnmatch uses mbsinit.
62636 2009-04-03  Simon Josefsson  <simon@josefsson.org>
62638         * m4/ld-version-script.m4: Add FIXME comment.
62640 2009-04-02  Simon Josefsson  <simon@josefsson.org>
62642         * doc/ld-output-def.texi: Use DLL_VERSION instead of confusing
62643         SOVERSION variable.
62645 2009-04-02  Bruno Haible  <bruno@clisp.org>
62647         * Makefile (info, html, dvi, pdf): Combine the rules.
62648         Suggested by Jim Meyering.
62650 2009-04-01  Bruno Haible  <bruno@clisp.org>
62652         * Makefile (info, html, dvi, pdf): New targets.
62653         Reported by Reuben Thomas <rrt@sc3d.org>.
62655 2009-04-01  Bruno Haible  <bruno@clisp.org>
62657         * doc/gnulib-tool.texi (Invoking gnulib-tool): Document how gnulib-tool
62658         can be put into PATH.
62659         Reported by Reuben Thomas <rrt@sc3d.org>. Suggested by Karl Berry.
62661 2009-04-01  Bruno Haible  <bruno@clisp.org>
62663         * doc/lib-symbol-visibility.texi: Follow texinfo style conventions.
62665 2009-04-01  Bruno Haible  <bruno@clisp.org>
62667         Rename module 'visibility'.
62668         * modules/lib-symbol-visibility: Renamed from modules/visibility.
62669         * doc/lib-symbol-visibility.texi: Renamed from visibility.texi.
62670         * doc/gnulib.texi: Update.
62671         * MODULES.html.sh (Misc): Update.
62672         * NEWS: Mention the change.
62674 2009-04-01  Simon Josefsson  <simon@josefsson.org>
62676         * modules/lib-msvc-compat: New module.  Thanks to Bruno Haible
62677         <bruno@clisp.org>, Ralf Wildenhues <Ralf.Wildenhues@gmx.de>, and
62678         Eric Blake <ebb9@byu.net> for review.
62679         * MODULES.html.sh: Add lib-msvc-compat.
62680         * doc/gnulib.texi: Link to new section.
62681         * m4/ld-output-def.m4: New file.
62682         * doc/ld-output-def.texi: New file.
62684 2009-04-01  Simon Josefsson  <simon@josefsson.org>
62686         Rename ld-version-script to lib-symbol-versions.  Suggested by
62687         Bruno Haible <bruno@clisp.org>.
62688         * modules/ld-version-script: Renamed to lib-symbol-versions.
62689         * doc/ld-version-script.texi: Fix module name.
62690         * MODULES.html.sh: Add lib-symbol-versions.
62692 2009-03-31  Simon Josefsson  <simon@josefsson.org>
62694         * modules/u64-tests: New file.
62695         * tests/test-u64.c: New file.
62697 2009-03-04  Simon Josefsson  <simon@josefsson.org>
62699         * MODULES.html.sh: Mention u64.
62700         * modules/u64: New module.
62701         * modules/crypto/sha512: Depend on u64 module instead of providing
62702         u64.h.
62704 2009-03-27  Eric Blake  <ebb9@byu.net>
62706         test-strerror: make debugging EAI_SYSTEM easier
62707         * modules/getaddrinfo-tests (Depends-on): Add strerror.
62708         * test-getaddrinfo.c (simple) [ENABLE_DEBUGGING]: Report errno if
62709         failure was EAI_SYSTEM.
62711 2009-03-25  Bruno Haible  <bruno@clisp.org>
62713         Fix a problem with --enable-relocatable on Solaris 7.
62714         * modules/relocatable-prog-wrapper (Depends-on): Add environ. Needed
62715         since 2008-02-24.
62717 2009-03-25  Eric Blake  <ebb9@byu.net>
62719         test-sockets: avoid gcc warning
62720         * tests/test-sockets.c (main): Silence compiler warning.
62722 2009-03-25  Paul Eggert  <eggert@cs.ucla.edu>
62724         New modules nproc, pthread, contributed by Glen Lenker.
62726         * MODULES.html.sh: Add pthread, nproc.
62727         * lib/nproc.c: New file.
62728         * lib/nproc.h: New file.
62729         * lib/pthread.in.h: New file.
62730         * m4/pthread.m4: New file.
62731         * modules/nproc: New file.
62732         * modules/pthread: New file.
62734 2009-03-24  Simon Josefsson  <simon@josefsson.org>
62736         * modules/unicase/locale-language-tests (test_locale_language_LDADD):
62737         New variable.
62739 2009-03-24  Kamil Dudka  <kdudka@redhat.com>
62741         filevercmp: handle simple~ and numbered.~3~ backup suffixes
62742         * lib/filevercmp.c: Handle simple~ and numbered.~3~ backup suffixes.
62743         * tests/test-filevercmp.c: Add tests for backup suffixes.
62745 2009-03-24  Simon Josefsson  <simon@josefsson.org>
62747         * modules/stdlib (Depends-on): Add stdint, needed when defining
62748         struct random_data on, for example, HP-UX 10.20.  Reported by
62749         Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
62751 2009-03-24  Simon Josefsson  <simon@josefsson.org>
62753         * lib/readline.c (readline): Call fflush on stdout after printing
62754         prompt.
62756 2009-03-20  Bruno Haible  <bruno@clisp.org>
62758         Remove dependency from 'close' module to -lws2_32 on native Windows.
62759         * lib/close-hook.h: New file.
62760         * lib/close-hook.c: New file.
62761         * lib/close.c: Include close-hook.h. Don't include <sys/socket.h>,
62762         w32sock.h.
62763         (_gl_close_fd_maybe_socket): Remove function.
62764         (rpl_close): Invoke execute_all_close_hooks instead of
62765         _gl_close_fd_maybe_socket.
62766         * lib/sockets.c: Include close-hook.h, w32sock.h.
62767         (close_fd_maybe_socket): New function, essentially from lib/close.c.
62768         (close_sockets_hook): New variable.
62769         (gl_sockets_startup): Register close_fd_maybe_socket as a hook.
62770         (gl_sockets_cleanup): Unregister it.
62771         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): Remove macro.
62772         * m4/close.m4 (gl_REPLACE_CLOSE): Undo 2009-02-05 change.
62773         * modules/close-hook: New file.
62774         * modules/close (Files): Remove lib/w32sock.h.
62775         (Depends-on): Add close-hook.
62776         (Link): Remove section.
62777         * modules/sockets (Files): Add lib/w32sock.h.
62778         (Depends-on): Add close-hook.
62779         * modules/sys_socket (configure.ac): Remove gl_MODULE_INDICATOR
62780         invocation.
62781         * NEWS: Mention that LIB_CLOSE is gone.
62783 2009-03-23  Eric Blake  <ebb9@byu.net>
62785         signal-tests: test previous patch
62786         * tests/test-signal.c: New file.
62787         * modules/signal-tests: Likewise.
62789         signal.h: always support 'volatile sig_atomic_t'
62790         * m4/signal_h.m4 (gl_SIGNAL_H): Check for AIX limitation.
62791         (gl_SIGNAL_H_DEFAULTS): Add a default.
62792         * modules/signal (Makefile.am): Substitute if needed.
62793         * lib/signal.in.h (sig_atomic_t): Redefine if needed, so that
62794         users can blindly add volatile.
62795         * doc/posix-headers/signal.texi (signal.h): Document it.
62796         Reported by Matthew Woehlke.
62798 2009-03-23  Jim Meyering  <meyering@redhat.com>
62800         pathmax: PATH_MAX: use pathconf only when available
62801         * lib/pathmax.h (PATH_MAX): Select the pathconf-using definition
62802         only if HAVE_PATHCONF is defined.  Patch by Sylvain Beucler.
62803         * m4/pathmax.m4 (gl_PATHMAX): Check for pathconf.
62804         This avoids a link failure in a PSP cross-compilation environment
62805         described in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/17048
62807         * lib/vasnprintf.c (divide): Fix typo in comment.
62809 2009-03-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62811         * gnulib-tool (func_filter_filelist): Fix comment.
62813 2009-03-20  Bruno Haible  <bruno@clisp.org>
62815         Make sockets.h self-contained.
62816         * lib/sockets.c: Include sockets.h first.
62817         * lib/sockets.h: Include <sys/socket.h> before using the SOCKET type.
62819 2009-03-19  Eric Blake  <ebb9@byu.net>
62821         doc: mention more functions added in cygwin 1.7.0
62822         * doc/posix-functions/log2.texi: Mention recent cygwin 1.7.0
62823         addition.
62824         * doc/posix-functions/log2f.texi: Likewise.
62826 2009-03-19  Jim Meyering  <meyering@redhat.com>
62828         fsusage: avoid syntax error due to statement-before-declaration
62829         * lib/fsusage.c (get_fs_usage): Put warning-avoidance statement
62830         after all declarations.  Reported by Matthew Woehlke in
62831         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/16231
62833 2009-03-18  Eric Blake  <ebb9@byu.net>
62835         build-aux/compile: sync from automake
62836         * build-aux/compile: New file, from automake.
62837         * config/srclist.txt: Mention build-aux/compile.
62839 2009-03-17  Bruno Haible  <bruno@clisp.org>
62841         * lib/git-merge-changelog.c: Fix typo in comment.
62842         Reported by Reuben Thomas <rrt@sc3d.org>.
62844 2009-03-17  Reuben Thomas  <rrt@sc3d.org>
62846         * m4/regex.m4: update and improve help for
62847         --without-included-regex.
62849 2009-03-17  Simon Josefsson  <simon@josefsson.org>
62851         * modules/isnanl-nolibm-tests (Files): Add tests/nan.h to avoid
62852         failure on missing include files.
62854 2009-03-17  Eric Blake  <ebb9@byu.net>
62856         doc: mention more functions added in cygwin 1.7.0
62857         * doc/posix-functions/fwprintf.texi: Mention recent cygwin 1.7.0
62858         addition.
62859         * doc/posix-functions/fwscanf.texi: Likewise.
62860         * doc/posix-functions/swprintf.texi: Likewise.
62861         * doc/posix-functions/swscanf.texi: Likewise.
62862         * doc/posix-functions/vfwprintf.texi: Likewise.
62863         * doc/posix-functions/vfwscanf.texi: Likewise.
62864         * doc/posix-functions/vswprintf.texi: Likewise.
62865         * doc/posix-functions/vswscanf.texi: Likewise.
62866         * doc/posix-functions/vwprintf.texi: Likewise.
62867         * doc/posix-functions/vwscanf.texi: Likewise.
62868         * doc/posix-functions/wcscasecmp.texi: Likewise.
62869         * doc/posix-functions/wcsdup.texi: Likewise.
62870         * doc/posix-functions/wcsftime.texi: Likewise.
62871         * doc/posix-functions/wcsncasecmp.texi: Likewise.
62872         * doc/posix-functions/wprintf.texi: Likewise.
62873         * doc/posix-functions/wscanf.texi: Likewise.
62874         * doc/glibc-functions/gethostbyname2.texi: Likewise.
62876 2009-03-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62878         maint.mk: really add $(AM_MAKEFLAGS)
62879         * top/maint.mk (init-coverage, build-coverage): `$(AM_MAKEFLAGS)'
62880         was inadvertently omitted in the last commit.
62881         Spotted by Bruno Haible.
62883         maint.mk: use $(MAKE) $(AM_MAKEFLAGS) not make
62884         * top/maint.mk (init-coverage, build-coverage): Use `$(MAKE)
62885         $(AM_MAKEFLAGS)' rather than plain `make'.
62887         gnulib-tool: execute $MAKE not make
62888         * gnulib-tool: Default $MAKE to 'make'.
62889         (func_create_testdir, func_create_megatestdir): Use $MAKE rather
62890         than make.  Initialize $MAKE in the do-autobuild script.
62892         gnulib-tool: use $MAKE not make in generated files
62893         * gnulib-tool (func_create_megatestdir): Use $MAKE rather than
62894         make, in generated files.  Initialize $MAKE in the do-autobuild
62895         script.
62897         * top/GNUmakefile (_have-git-version-gen): Fix typo.
62899         GNUmakefile: disable parallelism only for multiple, recursive targets
62900         * top/GNUmakefile (ALL_RECURSIVE_TARGETS): New macro; allow user
62901         additions in the Makefile.
62902         (AM_RECURSIVE_TARGETS): New macro, override only if not provided
62903         by Automake.
62904         (.NOTPARALLEL): Only disable parallel builds if multiple targets
62905         are listed on the command line and at least one of them is
62906         listed in $(ALL_RECURSIVE_TARGETS).
62908 2009-03-14  Bruno Haible  <bruno@clisp.org>
62910         * modules/unilbrk/u8-possible-linebreaks (Depends-on): Replace
62911         utf8-ucs4-unsafe with unistr/u8-mbtouc-unsafe.
62912         * modules/unilbrk/u8-width-linebreaks (Depends-on): Likewise.
62913         * modules/unilbrk/u16-possible-linebreaks (Depends-on): Replace
62914         utf16-ucs4-unsafe with unistr/u16-mbtouc-unsafe.
62915         * modules/unilbrk/u16-width-linebreaks (Depends-on): Likewise.
62916         * modules/unistr/u8-chr (Depends-on): Replace ucs4-utf8 with
62917         unistr/u8-uctomb.
62918         * modules/unistr/u8-strchr (Depends-on): Likewise.
62919         * modules/unistr/u8-strrchr (Depends-on): Likewise.
62920         * modules/unistr/u16-chr (Depends-on): Replace ucs4-utf16 with
62921         unistr/u16-uctomb.
62922         * modules/unistr/u16-strchr (Depends-on): Likewise.
62923         * modules/unistr/u16-strrchr (Depends-on): Likewise.
62925 2009-03-12  Bruno Haible  <bruno@clisp.org>
62927         Work around select() bug on Interix 3.5.
62928         * lib/sys_select.in.h (select): Also replace if REPLACE_SELECT is 1.
62929         * lib/select.c (rpl_select): Add an implementation for Unix platforms.
62930         * m4/select.m4: New file.
62931         * m4/sys_select_h.m4 (gl_SYS_SELECT_H_DEFAULTS): Initialize REPLACE_SELECT.
62932         * modules/sys_select (Makefile.am): Substitute REPLACE_SELECT.
62933         * modules/select (Files): Add m4/select.m4.
62934         (configure.ac): Move conditional to m4/select.m4. Invoke gl_FUNC_SELECT.
62935         * modules/nanosleep (Depends-on): Add select.
62936         * modules/poll (Depends-on): Likewise.
62937         * doc/posix-functions/select.texi: Mention the Interix bug.
62938         Reported by Markus Duft <mduft@gentoo.org>.
62940         * lib/select.c: Renamed from lib/winsock-select.c.
62941         * modules/select (Files): Add lib/select.c, remove
62942         lib/winsock-select.c.
62943         (configure.ac): Update.
62945 2009-03-12  Jim Meyering  <meyering@redhat.com>
62947         avoid gcc warnings about unused macro definitions
62948         * lib/readtokens.c (STREQ): Remove unused definition.
62949         * lib/xmalloc.c (SIZE_MAX): Likewise.
62950         * lib/openat-die.c (N_): Likewise.
62951         * lib/mountlist.c (SIZE_MAX): Remove definition.
62952         Instead, include <stdint.h>.
62953         * lib/readutmp.c: Likewise.
62954         * modules/readutmp (Depends-on): Add stdint.
62955         * modules/mountlist (Depends-on): Add stdint.
62956         * lib/userspec.c (ISDIGIT): Move definition into #if block where used.
62958 2009-03-10  Bruno Haible  <bruno@clisp.org>
62960         Tests for module 'mbmemcasecoll'.
62961         * modules/mbmemcasecoll-tests: New file.
62962         * tests/test-mbmemcasecoll1.sh: New file.
62963         * tests/test-mbmemcasecoll2.sh: New file.
62964         * tests/test-mbmemcasecoll3.sh: New file.
62965         * tests/test-mbmemcasecoll.c: New file.
62967         New module 'mbmemcasecoll'.
62968         * lib/mbmemcasecoll.h: New file.
62969         * lib/mbmemcasecoll.c: New file.
62970         * modules/mbmemcasecoll: New file.
62972         * tests/test-mbmemcasecmp.h: New file, extracted from
62973         tests/test-mbmemcasecmp.c.
62974         * tests/test-mbmemcasecmp.c: Include test-mbmemcasecmp.h.
62975         (test_ascii, test_iso_8859_1, test_utf_8): Remove functions.
62976         (main): Update.
62977         * modules/mbmemcasecmp-tests (Files): Add tests/test-mbmemcasecmp.h.
62979 2009-03-09  Bruno Haible  <bruno@clisp.org>
62981         Tests for module 'mbmemcasecmp'.
62982         * modules/mbmemcasecmp-tests: New file.
62983         * tests/test-mbmemcasecmp1.sh: New file.
62984         * tests/test-mbmemcasecmp2.sh: New file.
62985         * tests/test-mbmemcasecmp3.sh: New file.
62986         * tests/test-mbmemcasecmp.c: New file.
62988         New module 'mbmemcasecmp'.
62989         * lib/mbmemcasecmp.h: New file.
62990         * lib/mbmemcasecmp.c: New file.
62991         * modules/mbmemcasecmp: New file.
62993 2009-03-09  Bruno Haible  <bruno@clisp.org>
62995         Tests for module 'unicase/ulc-casecoll'.
62996         * modules/unicase/ulc-casecoll-tests: New file.
62997         * tests/unicase/test-ulc-casecoll1.sh: New file.
62998         * tests/unicase/test-ulc-casecoll2.sh: New file.
62999         * tests/unicase/test-ulc-casecoll.c: New file.
63001         New module 'unicase/ulc-casecoll'.
63002         * lib/unicase.h (ulc_casecoll): New declaration.
63003         * lib/unicase/ulc-casecoll.c: New file.
63004         * modules/unicase/ulc-casecoll: New file.
63006         New module 'unicase/ulc-casexfrm'.
63007         * lib/unicase.h (ulc_casexfrm): New declaration.
63008         * lib/unicase/ulc-casexfrm.c: New file.
63009         * modules/unicase/ulc-casexfrm: New file.
63011 2009-03-09  Bruno Haible  <bruno@clisp.org>
63013         Followup to 2008-12-22 commit: Remove unnecessary AC_FUNC_MBRTOWC
63014         invocations.
63016         * m4/mbscasecmp.m4: Remove file.
63017         * modules/mbscasecmp (Files): Remove it and m4/mbrtowc.m4
63018         (configure.ac): Remove gl_FUNC_MBSCASECMP invocation.
63020         * m4/mbscasestr.m4: Remove file.
63021         * modules/mbscasestr (Files): Remove it and m4/mbrtowc.m4
63022         (configure.ac): Remove gl_FUNC_MBSCASESTR invocation.
63024         * m4/mbschr.m4: Remove file.
63025         * modules/mbschr (Files): Remove it and m4/mbrtowc.m4
63026         (configure.ac): Remove gl_FUNC_MBSCHR invocation.
63028         * m4/mbscspn.m4: Remove file.
63029         * modules/mbscspn (Files): Remove it and m4/mbrtowc.m4
63030         (configure.ac): Remove gl_FUNC_MBSCSPN invocation.
63032         * m4/mbslen.m4: Remove file.
63033         * modules/mbslen (Files): Remove it and m4/mbrtowc.m4
63034         (configure.ac): Remove gl_FUNC_MBSLEN invocation.
63036         * m4/mbsncasecmp.m4: Remove file.
63037         * modules/mbsncasecmp (Files): Remove it and m4/mbrtowc.m4
63038         (configure.ac): Remove gl_FUNC_MBSNCASECMP invocation.
63040         * m4/mbsnlen.m4: Remove file.
63041         * modules/mbsnlen (Files): Remove it and m4/mbrtowc.m4
63042         (configure.ac): Remove gl_FUNC_MBSNLEN invocation.
63044         * m4/mbspbrk.m4: Remove file.
63045         * modules/mbspbrk (Files): Remove it and m4/mbrtowc.m4
63046         (configure.ac): Remove gl_FUNC_MBSPBRK invocation.
63048         * m4/mbspcasecmp.m4: Remove file.
63049         * modules/mbspcasecmp (Files): Remove it and m4/mbrtowc.m4
63050         (configure.ac): Remove gl_FUNC_MBSPCASECMP invocation.
63052         * m4/mbsrchr.m4: Remove file.
63053         * modules/mbsrchr (Files): Remove it and m4/mbrtowc.m4
63054         (configure.ac): Remove gl_FUNC_MBSRCHR invocation.
63056         * m4/mbssep.m4: Remove file.
63057         * modules/mbssep (Files): Remove it and m4/mbrtowc.m4
63058         (configure.ac): Remove gl_FUNC_MBSSEP invocation.
63060         * m4/mbsspn.m4: Remove file.
63061         * modules/mbsspn (Files): Remove it and m4/mbrtowc.m4
63062         (configure.ac): Remove gl_FUNC_MBSSPN invocation.
63064         * m4/mbsstr.m4: Remove file.
63065         * modules/mbsstr (Files): Remove it and m4/mbrtowc.m4
63066         (configure.ac): Remove gl_FUNC_MBSSTR invocation.
63068         * m4/mbstok_r.m4: Remove file.
63069         * modules/mbstok_r (Files): Remove it and m4/mbrtowc.m4
63070         (configure.ac): Remove gl_FUNC_MBSTOK_R invocation.
63072         * m4/mbswidth.m4 (gl_MBSWIDTH): Remove AC_FUNC_MBRTOWC invocation.
63074         * m4/quotearg.m4 (gl_QUOTEARG): Remove mbsinit test and
63075         AC_TYPE_MBSTATE_T, AC_FUNC_MBRTOWC invocations.
63077         * modules/trim (configure.ac): Remove AC_FUNC_MBRTOWC invocation.
63079 2009-03-08  Bruno Haible  <bruno@clisp.org>
63081         Tests for module 'unicase/ulc-casecmp'.
63082         * modules/unicase/ulc-casecmp-tests: New file.
63083         * tests/unicase/test-ulc-casecmp1.sh: New file.
63084         * tests/unicase/test-ulc-casecmp2.sh: New file.
63085         * tests/unicase/test-ulc-casecmp.c: New file.
63087         New module 'unicase/ulc-casecmp'.
63088         * lib/unicase.h (ulc_casecmp): New declaration.
63089         * lib/unicase/ulc-casecmp.c: New file.
63090         * lib/unicase/u-casecmp.h (FUNC): Change argument types to
63091         'const SRC_UNIT *'.
63092         * lib/unicase/u8-casecmp.c (SRC_UNIT): Define like UNIT.
63093         * lib/unicase/u16-casecmp.c (SRC_UNIT): Likewise.
63094         * lib/unicase/u32-casecmp.c (SRC_UNIT): Likewise.
63095         * modules/unicase/ulc-casecmp: New file.
63097         Tests for module 'unicase/u32-is-cased'.
63098         * modules/unicase/u32-is-cased-tests: New file.
63099         * tests/unicase/test-u32-is-cased.c: New file.
63101         Tests for module 'unicase/u16-is-cased'.
63102         * modules/unicase/u16-is-cased-tests: New file.
63103         * tests/unicase/test-u16-is-cased.c: New file.
63105         Tests for module 'unicase/u8-is-cased'.
63106         * modules/unicase/u8-is-cased-tests: New file.
63107         * tests/unicase/test-u8-is-cased.c: New file.
63108         * tests/unicase/test-is-cased.h: New file.
63110         New module 'unicase/u32-is-cased'.
63111         * lib/unicase/u32-is-cased.c: New file.
63112         * modules/unicase/u32-is-cased: New file.
63114         New module 'unicase/u16-is-cased'.
63115         * lib/unicase/u16-is-cased.c: New file.
63116         * modules/unicase/u16-is-cased: New file.
63118         New module 'unicase/u8-is-cased'.
63119         * lib/unicase/u8-is-cased.c: New file.
63120         * lib/unicase/u-is-cased.h: New file.
63121         * modules/unicase/u8-is-cased: New file.
63123         Tests for module 'unicase/u32-is-casefolded'.
63124         * modules/unicase/u32-is-casefolded-tests: New file.
63125         * tests/unicase/test-u32-is-casefolded.c: New file.
63127         Tests for module 'unicase/u16-is-casefolded'.
63128         * modules/unicase/u16-is-casefolded-tests: New file.
63129         * tests/unicase/test-u16-is-casefolded.c: New file.
63131         Tests for module 'unicase/u8-is-casefolded'.
63132         * modules/unicase/u8-is-casefolded-tests: New file.
63133         * tests/unicase/test-u8-is-casefolded.c: New file.
63134         * tests/unicase/test-is-casefolded.h: New file.
63136         New module 'unicase/u32-is-casefolded'.
63137         * lib/unicase/u32-is-casefolded.c: New file.
63138         * modules/unicase/u32-is-casefolded: New file.
63140         New module 'unicase/u16-is-casefolded'.
63141         * lib/unicase/u16-is-casefolded.c: New file.
63142         * modules/unicase/u16-is-casefolded: New file.
63144         New module 'unicase/u8-is-casefolded'.
63145         * lib/unicase/u8-is-casefolded.c: New file.
63146         * modules/unicase/u8-is-casefolded: New file.
63148         Tests for module 'unicase/u32-is-titlecase'.
63149         * modules/unicase/u32-is-titlecase-tests: New file.
63150         * tests/unicase/test-u32-is-titlecase.c: New file.
63152         Tests for module 'unicase/u16-is-titlecase'.
63153         * modules/unicase/u16-is-titlecase-tests: New file.
63154         * tests/unicase/test-u16-is-titlecase.c: New file.
63156         Tests for module 'unicase/u8-is-titlecase'.
63157         * modules/unicase/u8-is-titlecase-tests: New file.
63158         * tests/unicase/test-u8-is-titlecase.c: New file.
63159         * tests/unicase/test-is-titlecase.h: New file.
63161         New module 'unicase/u32-is-titlecase'.
63162         * lib/unicase/u32-is-titlecase.c: New file.
63163         * modules/unicase/u32-is-titlecase: New file.
63165         New module 'unicase/u16-is-titlecase'.
63166         * lib/unicase/u16-is-titlecase.c: New file.
63167         * modules/unicase/u16-is-titlecase: New file.
63169         New module 'unicase/u8-is-titlecase'.
63170         * lib/unicase/u8-is-titlecase.c: New file.
63171         * modules/unicase/u8-is-titlecase: New file.
63173         Tests for module 'unicase/u32-is-lowercase'.
63174         * modules/unicase/u32-is-lowercase-tests: New file.
63175         * tests/unicase/test-u32-is-lowercase.c: New file.
63177         Tests for module 'unicase/u16-is-lowercase'.
63178         * modules/unicase/u16-is-lowercase-tests: New file.
63179         * tests/unicase/test-u16-is-lowercase.c: New file.
63181         Tests for module 'unicase/u8-is-lowercase'.
63182         * modules/unicase/u8-is-lowercase-tests: New file.
63183         * tests/unicase/test-u8-is-lowercase.c: New file.
63184         * tests/unicase/test-is-lowercase.h: New file.
63186         New module 'unicase/u32-is-lowercase'.
63187         * lib/unicase/u32-is-lowercase.c: New file.
63188         * modules/unicase/u32-is-lowercase: New file.
63190         New module 'unicase/u16-is-lowercase'.
63191         * lib/unicase/u16-is-lowercase.c: New file.
63192         * modules/unicase/u16-is-lowercase: New file.
63194         New module 'unicase/u8-is-lowercase'.
63195         * lib/unicase/u8-is-lowercase.c: New file.
63196         * modules/unicase/u8-is-lowercase: New file.
63198         Tests for module 'unicase/u32-is-uppercase'.
63199         * modules/unicase/u32-is-uppercase-tests: New file.
63200         * tests/unicase/test-u32-is-uppercase.c: New file.
63202         Tests for module 'unicase/u16-is-uppercase'.
63203         * modules/unicase/u16-is-uppercase-tests: New file.
63204         * tests/unicase/test-u16-is-uppercase.c: New file.
63206         Tests for module 'unicase/u8-is-uppercase'.
63207         * modules/unicase/u8-is-uppercase-tests: New file.
63208         * tests/unicase/test-u8-is-uppercase.c: New file.
63209         * tests/unicase/test-is-uppercase.h: New file.
63211         New module 'unicase/u32-is-uppercase'.
63212         * lib/unicase/u32-is-uppercase.c: New file.
63213         * modules/unicase/u32-is-uppercase: New file.
63215         New module 'unicase/u16-is-uppercase'.
63216         * lib/unicase/u16-is-uppercase.c: New file.
63217         * modules/unicase/u16-is-uppercase: New file.
63219         New module 'unicase/u8-is-uppercase'.
63220         * lib/unicase/u8-is-uppercase.c: New file.
63221         * modules/unicase/u8-is-uppercase: New file.
63223         New module 'unicase/u32-is-invariant'.
63224         * lib/unicase/u32-is-invariant.c: New file.
63225         * modules/unicase/u32-is-invariant: New file.
63227         New module 'unicase/u16-is-invariant'.
63228         * lib/unicase/u16-is-invariant.c: New file.
63229         * modules/unicase/u16-is-invariant: New file.
63231         New module 'unicase/u8-is-invariant'.
63232         * lib/unicase/u8-is-invariant.c: New file.
63233         * lib/unicase/invariant.h: New file.
63234         * lib/unicase/u-is-invariant.h: New file.
63235         * modules/unicase/u8-is-invariant: New file.
63237         Tests for module 'unicase/u32-casecoll'.
63238         * modules/unicase/u32-casecoll-tests: New file.
63239         * tests/unicase/test-u32-casecoll.c: New file.
63241         Tests for module 'unicase/u16-casecoll'.
63242         * modules/unicase/u16-casecoll-tests: New file.
63243         * tests/unicase/test-u16-casecoll.c: New file.
63245         Tests for module 'unicase/u8-casecoll'.
63246         * modules/unicase/u8-casecoll-tests: New file.
63247         * tests/unicase/test-u8-casecoll.c: New file.
63249         New module 'unicase/u32-casecoll'.
63250         * lib/unicase/u32-casecoll.c: New file.
63251         * modules/unicase/u32-casecoll: New file.
63253         New module 'unicase/u16-casecoll'.
63254         * lib/unicase/u16-casecoll.c: New file.
63255         * modules/unicase/u16-casecoll: New file.
63257         New module 'unicase/u8-casecoll'.
63258         * lib/unicase/u8-casecoll.c: New file.
63259         * lib/unicase/u-casecoll.h: New file.
63260         * modules/unicase/u8-casecoll: New file.
63262         New module 'unicase/u32-casexfrm'.
63263         * lib/unicase/u32-casexfrm.c: New file.
63264         * modules/unicase/u32-casexfrm: New file.
63266         New module 'unicase/u16-casexfrm'.
63267         * lib/unicase/u16-casexfrm.c: New file.
63268         * modules/unicase/u16-casexfrm: New file.
63270         New module 'unicase/u8-casexfrm'.
63271         * lib/unicase/u8-casexfrm.c: New file.
63272         * lib/unicase/u-casexfrm.h: New file.
63273         * modules/unicase/u8-casexfrm: New file.
63275         Tests for module 'unicase/u32-casecmp'.
63276         * modules/unicase/u32-casecmp-tests: New file.
63277         * tests/unicase/test-u32-casecmp.c: New file.
63279         Tests for module 'unicase/u16-casecmp'.
63280         * modules/unicase/u16-casecmp-tests: New file.
63281         * tests/unicase/test-u16-casecmp.c: New file.
63283         Tests for module 'unicase/u8-casecmp'.
63284         * modules/unicase/u8-casecmp-tests: New file.
63285         * tests/unicase/test-u8-casecmp.c: New file.
63286         * tests/unicase/test-casecmp.h: New file.
63288         New module 'unicase/u32-casecmp'.
63289         * lib/unicase/u32-casecmp.c: New file.
63290         * modules/unicase/u32-casecmp: New file.
63292         New module 'unicase/u16-casecmp'.
63293         * lib/unicase/u16-casecmp.c: New file.
63294         * modules/unicase/u16-casecmp: New file.
63296         New module 'unicase/u8-casecmp'.
63297         * lib/unicase/u8-casecmp.c: New file.
63298         * lib/unicase/u-casecmp.h: New file.
63299         * modules/unicase/u8-casecmp: New file.
63301         Tests for module 'unicase/u32-casefold'.
63302         * modules/unicase/u32-casefold-tests: New file.
63303         * tests/unicase/test-u32-casefold.c: New file.
63305         Tests for module 'unicase/u16-casefold'.
63306         * modules/unicase/u16-casefold-tests: New file.
63307         * tests/unicase/test-u16-casefold.c: New file.
63309         Tests for module 'unicase/u8-casefold'.
63310         * modules/unicase/u8-casefold-tests: New file.
63311         * tests/unicase/test-u8-casefold.c: New file.
63313         New module 'unicase/u32-casefold'.
63314         * lib/unicase/u32-casefold.c: New file.
63315         * modules/unicase/u32-casefold: New file.
63317         New module 'unicase/u16-casefold'.
63318         * lib/unicase/u16-casefold.c: New file.
63319         * modules/unicase/u16-casefold: New file.
63321         New module 'unicase/u8-casefold'.
63322         * lib/unicase/u8-casefold.c: New file.
63323         * lib/unicase/u-casefold.h: New file.
63324         * modules/unicase/u8-casefold: New file.
63326         New module 'unicase/tocasefold'.
63327         * lib/unicase/casefold.h: New file.
63328         * lib/unicase/tocasefold.c: New file.
63329         * lib/unicase/tocasefold.h: New file, generated by gen-uni-tables.c.
63330         * modules/unicase/tocasefold: New file.
63332         Tests for module 'unicase/u32-totitle'.
63333         * modules/unicase/u32-totitle-tests: New file.
63334         * tests/unicase/test-u32-totitle.c: New file.
63336         Tests for module 'unicase/u16-totitle'.
63337         * modules/unicase/u16-totitle-tests: New file.
63338         * tests/unicase/test-u16-totitle.c: New file.
63340         Tests for module 'unicase/u8-totitle'.
63341         * modules/unicase/u8-totitle-tests: New file.
63342         * tests/unicase/test-u8-totitle.c: New file.
63344         New module 'unicase/u32-totitle'.
63345         * lib/unicase/u32-totitle.c: New file.
63346         * modules/unicase/u32-totitle: New file.
63348         New module 'unicase/u16-totitle'.
63349         * lib/unicase/u16-totitle.c: New file.
63350         * modules/unicase/u16-totitle: New file.
63352         New module 'unicase/u8-totitle'.
63353         * lib/unicase/u8-totitle.c: New file.
63354         * lib/unicase/u-totitle.h: New file.
63355         * modules/unicase/u8-totitle: New file.
63357         Tests for module 'unicase/u32-tolower'.
63358         * modules/unicase/u32-tolower-tests: New file.
63359         * tests/unicase/test-u32-tolower.c: New file.
63361         Tests for module 'unicase/u16-tolower'.
63362         * modules/unicase/u16-tolower-tests: New file.
63363         * tests/unicase/test-u16-tolower.c: New file.
63365         Tests for module 'unicase/u8-tolower'.
63366         * modules/unicase/u8-tolower-tests: New file.
63367         * tests/unicase/test-u8-tolower.c: New file.
63369         New module 'unicase/u32-tolower'.
63370         * lib/unicase/u32-tolower.c: New file.
63371         * modules/unicase/u32-tolower: New file.
63373         New module 'unicase/u16-tolower'.
63374         * lib/unicase/u16-tolower.c: New file.
63375         * modules/unicase/u16-tolower: New file.
63377         New module 'unicase/u8-tolower'.
63378         * lib/unicase/u8-tolower.c: New file.
63379         * modules/unicase/u8-tolower: New file.
63381         Tests for module 'unicase/u32-toupper'.
63382         * modules/unicase/u32-toupper-tests: New file.
63383         * tests/unicase/test-u32-toupper.c: New file.
63385         Tests for module 'unicase/u16-toupper'.
63386         * modules/unicase/u16-toupper-tests: New file.
63387         * tests/unicase/test-u16-toupper.c: New file.
63389         Tests for module 'unicase/u8-toupper'.
63390         * modules/unicase/u8-toupper-tests: New file.
63391         * tests/unicase/test-u8-toupper.c: New file.
63393         New module 'unicase/u32-toupper'.
63394         * lib/unicase/u32-toupper.c: New file.
63395         * modules/unicase/u32-toupper: New file.
63397         New module 'unicase/u16-toupper'.
63398         * lib/unicase/u16-toupper.c: New file.
63399         * modules/unicase/u16-toupper: New file.
63401         New module 'unicase/u8-toupper'.
63402         * lib/unicase/u8-toupper.c: New file.
63403         * modules/unicase/u8-toupper: New file.
63405         New module 'unicase/u32-casemap'.
63406         * lib/unicase/u32-casemap.c: New file.
63407         * modules/unicase/u32-casemap: New file.
63409         New module 'unicase/u16-casemap'.
63410         * lib/unicase/u16-casemap.c: New file.
63411         * modules/unicase/u16-casemap: New file.
63413         New module 'unicase/u8-casemap'.
63414         * lib/unicase/unicasemap.h: New file.
63415         * lib/unicase/u8-casemap.c: New file.
63416         * lib/unicase/u-casemap.h: New file.
63417         * modules/unicase/u8-casemap: New file.
63419         New module 'unicase/special-casing'.
63420         * lib/unicase/special-casing.h: New file.
63421         * lib/unicase/special-casing.c: New file.
63422         * lib/unicase/special-casing-table.gperf: New file, generated by
63423         gen-uni-tables.c.
63424         * modules/unicase/special-casing: New file.
63426         Tests for module 'unicase/locale-language'.
63427         * modules/unicase/locale-language-tests: New file.
63428         * tests/unicase/test-locale-language.sh: New file.
63429         * tests/unicase/test-locale-language.c: New file.
63431         New module 'unicase/locale-language'.
63432         * lib/unicase/locale-language.c: New file.
63433         * lib/unicase/locale-languages.gperf: New file.
63434         * modules/unicase/locale-language: New file.
63436         Generate more tables for case conversion and case folding.
63437         * lib/gen-uni-tables.c (SCC_*): New enum items.
63438         (struct special_casing_rule): New type.
63439         (casing_rules, num_casing_rules, allocated_casing_rules): New
63440         variables.
63441         (add_casing_rule, fill_casing_rules): New functions.
63442         (struct casefold_rule): New type.
63443         (casefolding_rules, num_casefolding_rules,
63444         allocated_casefolding_rules): New variables.
63445         (fill_casefolding_rules): New function.
63446         (unicode_casefold): New variable.
63447         (to_casefold, redistribute_casefolding_rules, compare_casing_rules,
63448         sort_casing_rules, output_casing_rules): New functions.
63449         (main): Accept to more arguments: SpecialCasing.txt and
63450         CaseFolding.txt. Invoke fill_casing_rules, fill_casefolding_rules,
63451         redistribute_casefolding_rules, sort_casing_rules, output_casing_rules.
63452         Output mapping for casefolding.
63454         * lib/unicase.h: Include stdbool.h, uninorm.h.
63455         (u8_toupper, u16_toupper, u32_toupper, u8_tolower, u16_tolower,
63456         u32_tolower, u8_totitle, u16_totitle, u32_totitle): Add nf argument.
63457         (u8_casefold, u16_casefold, u32_casefold): Add iso639_language and nf
63458         arguments.
63459         (u8_casecmp, u16_casecmp, u32_casecmp): Add iso639_language, nf,
63460         resultp arguments.
63461         (u8_casexfrm, u16_casexfrm, u32_casexfrm): New declarations.
63462         (u8_casecoll, u16_casecoll, u32_casecoll): Add iso639_language, nf,
63463         resultp arguments.
63464         (u8_is_uppercase, u16_is_uppercase, u32_is_uppercase, u8_is_lowercase,
63465         u16_is_lowercase, u32_is_lowercase, u8_is_titlecase, u16_is_titlecase,
63466         u32_is_titlecase, u8_is_casefolded, u16_is_casefolded,
63467         u32_is_casefolded, u8_is_cased, u16_is_cased, u32_is_cased): New
63468         declarations.
63469         * modules/unicase/base (Depends-on): Add uninorm/base, stdbool.
63471 2009-03-08  Bruno Haible  <bruno@clisp.org>
63473         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
63474         u16_normcoll, u32_normcoll): Rename argument 'result' to 'resultp'.
63475         * lib/uninorm/u-normcmp.h (FUNC): Likewise.
63476         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
63478 2009-03-07  Bruno Haible  <bruno@clisp.org>
63480         Adjust u*_normcmp, u*_normcoll API.
63481         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
63482         u16_normcoll, u32_normcoll): Change failure conventions.
63483         * lib/uninorm/u-normcmp.h (FUNC): Upon failure, store the error code in
63484         errno and return -1.
63485         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
63487 2009-03-07  Bruno Haible  <bruno@clisp.org>
63489         Tests for module 'uninorm/u32-normcoll'.
63490         * modules/uninorm/u32-normcoll-tests: New file.
63491         * tests/uninorm/test-u32-normcoll.c: New file.
63493         Tests for module 'uninorm/u16-normcoll'.
63494         * modules/uninorm/u16-normcoll-tests: New file.
63495         * tests/uninorm/test-u16-normcoll.c: New file.
63497         Tests for module 'uninorm/u8-normcoll'.
63498         * modules/uninorm/u8-normcoll-tests: New file.
63499         * tests/uninorm/test-u8-normcoll.c: New file.
63501 2009-03-07  Bruno Haible  <bruno@clisp.org>
63503         * tests/uninorm/test-u32-normcmp.h: New file, extracted from
63504         tests/uninorm/test-u32-normcmp.c.
63505         * tests/uninorm/test-u32-normcmp.c: Include it.
63506         (test_nonascii): New function, extracted from main. Add some more
63507         tests.
63508         (main): Invoke test_ascii and test_nonascii.
63509         * modules/uninorm/u32-normcmp-tests (Files): Add
63510         tests/uninorm/test-u32-normcmp.h.
63511         (Depends-on): Remove uninorm/u32-normcmp.
63513         * tests/uninorm/test-u16-normcmp.h: New file, extracted from
63514         tests/uninorm/test-u16-normcmp.c.
63515         * tests/uninorm/test-u16-normcmp.c: Include it.
63516         (test_nonascii): New function, extracted from main. Add some more
63517         tests.
63518         (main): Invoke test_ascii and test_nonascii.
63519         * modules/uninorm/u16-normcmp-tests (Files): Add
63520         tests/uninorm/test-u16-normcmp.h.
63521         (Depends-on): Remove uninorm/u16-normcmp.
63523         * tests/uninorm/test-u8-normcmp.h: New file, extracted from
63524         tests/uninorm/test-u8-normcmp.c.
63525         * tests/uninorm/test-u8-normcmp.c: Include it.
63526         (test_nonascii): New function, extracted from main. Add some more
63527         tests.
63528         (main): Invoke test_ascii and test_nonascii.
63529         * modules/uninorm/u8-normcmp-tests (Files): Add
63530         tests/uninorm/test-u8-normcmp.h.
63531         (Depends-on): Remove uninorm/u8-normcmp.
63533 2009-03-07  Bruno Haible  <bruno@clisp.org>
63535         New module 'uninorm/u32-normcoll'.
63536         * lib/uninorm/u32-normcoll.c: New file.
63537         * modules/uninorm/u32-normcoll: New file.
63539         New module 'uninorm/u16-normcoll'.
63540         * lib/uninorm/u16-normcoll.c: New file.
63541         * modules/uninorm/u16-normcoll: New file.
63543         New module 'uninorm/u8-normcoll'.
63544         * lib/uninorm.h (u8_normcoll, u16_normcoll, u32_normcoll): New
63545         declarations.
63546         * lib/uninorm/u8-normcoll.c: New file.
63547         * lib/uninorm/u-normcoll.h: New file.
63548         * modules/uninorm/u8-normcoll: New file.
63550         New module 'uninorm/u32-normxfrm'.
63551         * lib/uninorm/u32-normxfrm.c: New file.
63552         * modules/uninorm/u32-normxfrm: New file.
63554         New module 'uninorm/u16-normxfrm'.
63555         * lib/uninorm/u16-normxfrm.c: New file.
63556         * modules/uninorm/u16-normxfrm: New file.
63558         New module 'uninorm/u8-normxfrm'.
63559         * lib/uninorm.h (u8_normxfrm, u16_normxfrm, u32_normxfrm): New
63560         declarations.
63561         * lib/uninorm/u8-normxfrm.c: New file.
63562         * lib/uninorm/u-normxfrm.h: New file.
63563         * modules/uninorm/u8-normxfrm: New file.
63565 2009-03-07  Bruno Haible  <bruno@clisp.org>
63567         * modules/uninorm/u8-normcmp (Depends-on): Add uninorm/base.
63568         * modules/uninorm/u16-normcmp (Depends-on): Likewise.
63569         * modules/uninorm/u32-normcmp (Depends-on): Likewise.
63571 2009-03-07  Bruno Haible  <bruno@clisp.org>
63573         New module 'memxfrm'.
63574         * lib/memxfrm.h: New file.
63575         * lib/memxfrm.c: New file.
63576         * modules/memxfrm: New file.
63578 2009-03-07  Bruno Haible  <bruno@clisp.org>
63580         New module 'memcmp2'.
63581         * lib/memcmp2.h: New file.
63582         * lib/memcmp2.c: New file.
63583         * modules/memcmp2: New file.
63585 2009-03-07  Bruno Haible  <bruno@clisp.org>
63587         Tests for module 'uninorm/decomposing-form'.
63588         * modules/uninorm/decomposing-form-tests: New file.
63589         * tests/uninorm/test-decomposing-form.c: New file.
63591         New module 'uninorm/decomposing-form'.
63592         * lib/uninorm.h (uninorm_decomposing_form): New declaration.
63593         * lib/uninorm/normalize-internal.h (struct unicode_normalization_form):
63594         Add 'decomposing_variant' field.
63595         * lib/uninorm/decomposing-form.c: New file.
63596         * lib/uninorm/nfc.c (uninorm_nfc): Update.
63597         * lib/uninorm/nfd.c (uninorm_nfd): Update.
63598         * lib/uninorm/nfkc.c (uninorm_nfkc): Update.
63599         * lib/uninorm/nfkd.c (uninorm_nfkd): Update.
63600         * modules/uninorm/decomposing-form: New file.
63601         * modules/uninorm/nfc (Depends-on): Add uninorm/nfd.
63602         * modules/uninorm/nfkc (Depends-on): Add uninorm/nfkd.
63604 2009-03-07  Bruno Haible  <bruno@clisp.org>
63606         * lib/uninorm/u-normcmp.h (FUNC): Use stack=allocated buffers for small
63607         strings.
63609 2009-03-06  Bruno Haible  <bruno@clisp.org>
63611         Tests for module 'uninorm/u32-normcmp'.
63612         * tests/uninorm/test-u32-normcmp.c: New file.
63613         * modules/uninorm/u32-normcmp-tests: New file.
63615         Tests for module 'uninorm/u16-normcmp'.
63616         * tests/uninorm/test-u16-normcmp.c: New file.
63617         * modules/uninorm/u16-normcmp-tests: New file.
63619         Tests for module 'uninorm/u8-normcmp'.
63620         * tests/uninorm/test-u8-normcmp.c: New file.
63621         * modules/uninorm/u8-normcmp-tests: New file.
63623         New module 'uninorm/u32-normcmp'.
63624         * lib/uninorm/u32-normcmp.c: New file.
63625         * modules/uninorm/u32-normcmp: New file.
63627         New module 'uninorm/u16-normcmp'.
63628         * lib/uninorm/u16-normcmp.c: New file.
63629         * modules/uninorm/u16-normcmp: New file.
63631         New module 'uninorm/u8-normcmp'.
63632         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp): New
63633         declarations.
63634         * lib/uninorm/u8-normcmp.c: New file.
63635         * lib/uninorm/u-normcmp.h: New file.
63636         * modules/uninorm/u8-normcmp: New file.
63638 2009-03-06  Bruno Haible  <bruno@clisp.org>
63640         * lib/w32spawn.h (dup_noinherit): Add cast, to avoid gcc warning.
63641         Reported by Eric Blake.
63643 2009-03-06  Eric Blake  <ebb9@byu.net>
63644             Bruno Haible  <bruno@clisp.org>
63646         * lib/spawni.c (__spawni) [WIN32_NATIVE]: Define as a stub.
63647         * modules/posix_spawn-tests (configure.ac): Define POSIX_SPAWN_PORTED
63648         condition.
63649         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
63650         * modules/posix_spawnp-tests (configure.ac): Define POSIX_SPAWN_PORTED
63651         condition.
63652         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
63654 2009-03-06  Eric Blake  <ebb9@byu.net>
63656         * lib/execute.c (execute) [WIN32_NATIVE]: Cast arguments of spawnvpe,
63657         to avoid compiler warnings.
63658         * lib/pipe.c (create_pipe) [WIN32_NATIVE]: Likewise.
63660 2009-03-05  Bruno Haible  <bruno@clisp.org>
63662         * tests/test-ftell.c (main): Disable test beyond end of file on
63663         FreeMiNT.
63664         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
63666 2009-03-05  Kamil Dudka  <kdudka@redhat.com>
63668         * lib/filevercmp.c: Move hidden files up in ordering.
63669         * tests/test-filevercmp.c: Add tests for hidden files.
63671 2009-03-04  Bruno Haible  <bruno@clisp.org>
63673         * modules/visibility (Makefile.am): Augment AM_CFLAGS.
63674         * gnulib-tool (func_emit_lib_Makefile_am): Emit initialization of
63675         AM_CFLAGS.
63676         Reported by Simon Josefsson.
63678 2009-03-03  Bruno Haible  <bruno@clisp.org>
63680         * doc/visibility.texi: Recommend to use HAVE_VISIBILITY as a C macro.
63681         Reported by Simon Josefsson.
63683         * doc/ld-version-script.texi: Update node reference.
63685 2009-03-03  Bruno Haible  <bruno@clisp.org>
63687         * modules/visibility (License): Change to 'unlimited'.
63688         Suggested by Simon Josefsson.
63690 2009-03-03  Jim Meyering  <meyering@redhat.com>
63692         unlinkdir: cannot_unlink_dir may modify process state
63693         * lib/unlinkdir.c (cannot_unlink_dir): Add a comment warning that
63694         it's neither thread-safe nor appropriate for use in a library.
63696 2009-03-03  Eric Blake  <ebb9@byu.net>
63698         test-closein: silence test under Darwin
63699         * tests/test-closein.sh: Ignore stderr from cat, since we don't
63700         care if it dies from EPIPE or EBADF.
63702 2009-03-03  Bruno Haible  <bruno@clisp.org>
63704         * doc/gnulib.texi: Include visibility.texi and ld-version-script.texi
63705         earlier.
63706         * doc/visibility.texi: Fix @node and @section.
63708 2009-03-03  Simon Josefsson  <simon@josefsson.org>
63710         * doc/gnulib.texi: Link to sections for ld version script and
63711         visibility.
63712         * doc/visibility.texi: Add @node and @section.
63713         * modules/ld-version-script: New module.
63714         * m4/ld-version-script.m4: New file.
63715         * doc/ld-version-script.texi: New file.
63717 2009-03-02  David Lutterkort  <lutter@redhat.com>
63719         * lib/safe-alloc.h (__GNUC_PREREQ): New macro.
63720         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
63722 2009-03-02  Bruno Haible  <bruno@clisp.org>
63724         * doc/visibility.texi: Mention libtool's -export-symbols option.
63726 2009-03-02  Jim Meyering  <meyering@redhat.com>
63728         announce-gen: new option: --no-print-checksums
63729         * build-aux/announce-gen (usage): Describe it.
63730         (print_checksums): Print a newline here, not in the [*] footnote.
63731         (main): Honor it.
63733 2009-03-01  Bruno Haible  <bruno@clisp.org>
63735         Use socklen_t in the native Windows replacements prototypes.
63736         * lib/sys_socket.in.h (rpl_getsockopt, rpl_setsockopt): Use socklen_t
63737         instead of 'int'.
63738         * lib/getsockopt.c (rpl_getsockopt): Likewise.
63739         * lib/setsockopt.c (rpl_setsockopt): Likewise.
63740         * modules/getsockopt (Depends-on): Add socklen.
63741         * modules/setsockopt (Depends-on): Add socklen.
63743 2009-03-01  Bruno Haible  <bruno@clisp.org>
63745         * gnulib-tool (sed): Do alias as "sed --posix" if sed's version is at
63746         least 4.2.
63748 2009-03-01  Eric Blake  <ebb9@byu.net>
63749             Bruno Haible  <bruno@clisp.org>
63751         * lib/wait-process.h (wait_subprocess): Describe effect of termsigp on
63752         error messages.
63753         * lib/wait-process.c (wait_subprocess): Omit error message about
63754         deadly signal sent to the child of termsigp != NULL.
63756 2009-03-01  Eric Blake  <ebb9@byu.net>
63758         * lib/wait-process.c (wait_subprocess): Remove unnecessary cast.
63760 2009-03-01  Bruno Haible  <bruno@clisp.org>
63762         Avoid a gcc warning.
63763         * tests/test-sched.c (b): Make global.
63764         Reported by Eric Blake.
63766 2009-01-19  Martin Lambers  <marlam@marlam.de>
63768         Provide POSIX semantics for socket timeout options on W32.
63769         * lib/setsockopt.c: Convert struct timeval to milliseconds on W32.
63770         * lib/getsockopt.c: Convert milliseconds to struct timeval on W32.
63771         * modules/setsockopt: Depend on sys_time module for struct timeval.
63772         * modules/getsockopt: Depend on sys_time module for struct timeval.
63774 2009-03-01  Simon Josefsson  <simon@josefsson.org>
63776         * lib/gai_strerror.c (values): Use EAI_INPROGRESS instead of
63777         __USE_GNU, for consistency with netdb.in.h.
63778         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
63780 2009-03-01  Bruno Haible  <bruno@clisp.org>
63782         More support for FreeMiNT.
63783         * lib/fseeko.c (rpl_fseeko): Complete last commit.
63784         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
63786 2009-03-01  Bruno Haible  <bruno@clisp.org>
63788         More support for FreeMiNT.
63789         * lib/fpurge.c (fpurge): Correct last commit.
63790         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
63792 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63794         Fix unportable awk script in vc-list-files.
63795         * build-aux/vc-list-files: In the replacement awk script, use
63796         substr with a second argument of 1, not zero.
63797         Report by Simon Josefsson.
63799 2009-02-28  Bruno Haible  <bruno@clisp.org>
63801         More support for FreeMiNT.
63802         * lib/freading.c (freading) [__MINT__]: Use new macros that were added
63803         to FreeMiNT today.
63804         * lib/fwriting.c (fwriting): Likewise.
63805         Based on patch by Alan Hourihane <alanh@fairlite.co.uk>.
63807 2009-02-28  Bruno Haible  <bruno@clisp.org>
63809         * tests/test-freadseek.c (main): Disable test beyond end of file on
63810         FreeMiNT.
63811         * tests/test-ftello.c (main): Likewise.
63812         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
63814 2009-02-28  Bruno Haible  <bruno@clisp.org>
63816         Add tentative support for FreeMiNT.
63817         * lib/fbufmode.c (fbufmode) [__MINT__]: Add conditional code.
63818         * lib/fpurge.c (fpurge): Likewise.
63819         * lib/freadable.c (freadable): Likewise.
63820         * lib/freading.c (freading): Likewise.
63821         * lib/freadptr.c (freadptr): Likewise.
63822         * lib/freadseek.c (freadptrinc): Likewise.
63823         * lib/fseeko.c (rpl_fseeko): Likewise.
63824         * lib/fseterr.c (fseterr): Likewise.
63825         * lib/fwritable.c (fwritable): Likewise.
63826         * lib/fwriting.c (fwriting): Likewise.
63827         * lib/freadahead.c (freadahead): Likewise, based on code by Alan
63828         Hourihane.
63829         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
63831 2009-02-28  Bruno Haible  <bruno@clisp.org>
63833         * lib/wait-process.h (wait_subprocess): Clarify restriction regarding
63834         SIGCHLD.
63835         Reported by Jim Meyering.
63837 2009-02-28  Bruno Haible  <bruno@clisp.org>
63839         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Separate the two first tests.
63840         Mention the results of these tests on various platforms.
63841         * doc/posix-functions/fprintf.texi: Mention platforms in canonical
63842         order.
63843         * doc/posix-functions/printf.texi: Likewise.
63844         * doc/posix-functions/snprintf.texi: Likewise.
63845         * doc/posix-functions/sprintf.texi: Likewise.
63846         * doc/posix-functions/vfprintf.texi: Likewise.
63847         * doc/posix-functions/vprintf.texi: Likewise.
63848         * doc/posix-functions/vsnprintf.texi: Likewise.
63849         * doc/posix-functions/vsprintf.texi: Likewise.
63850         * doc/glibc-functions/obstack_printf.texi: Likewise.
63851         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
63853 2009-02-28  Bruno Haible  <bruno@clisp.org>
63855         * build-aux/po/Makefile.in.in: Update from GNU gettext 0.17.
63856         Reported by Loïc Minier <lool@dooz.org>.
63858 2009-02-27  Bruno Haible  <bruno@clisp.org>
63860         * gnulib-tool (func_import): Make the sed expression used to create the
63861         sed script for updating the .gitignore file POSIX compliant.
63862         Reported by Eric Blake.
63864 2009-02-27  Bruno Haible  <bruno@clisp.org>
63866         * gnulib-tool (sed): Don't alias as "sed --posix".
63867         Reported by Eric Blake.
63869 2009-02-27  Bruno Haible  <bruno@clisp.org>
63871         Avoid test link errors.
63872         * modules/uninorm/nfc-tests (test_u32_nfc_big_LDADD): New variable.
63873         * modules/uninorm/nfd-tests (test_u32_nfd_big_LDADD): New variable.
63874         * modules/uninorm/nfkc-tests (test_u32_nfkc_big_LDADD): New variable.
63875         * modules/uninorm/nfkd-tests (test_u32_nfkd_big_LDADD): New variable.
63876         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
63878 2009-02-27  Bruno Haible  <bruno@clisp.org>
63880         Avoid spurious "(cached)" in configure output.
63881         * m4/gnulib-common.m4 (gl_CACHE_VAL_SILENT): New macro.
63882         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Use it instead of AC_CACHE_VAL.
63883         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
63884         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
63885         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
63886         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
63887         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
63888         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
63889         Reported by Eric Blake.
63891 2009-02-27  Eric Blake  <ebb9@byu.net>
63893         printf: fix regression in previous patch
63894         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Fix compilation error.
63896 2009-02-27  Bruno Haible  <bruno@clisp.org>
63898         * lib/inttypes.in.h: Test merely whether _LP64 is defined, not its
63899         value.
63900         * lib/stdint.in.h: Likewise.
63901         Suggested by Eric Blake. Reported by Peter Bray <pdb_ml@yahoo.com.au>.
63903 2009-02-27  Eric Blake  <ebb9@byu.net>
63905         doc: mention more functions added in cygwin 1.7.0
63906         * doc/posix-functions/mbsnrtowcs.texi: Mention recent cygwin 1.7.0
63907         addition.
63908         * doc/posix-functions/open_wmemstream.texi: Likewise.
63909         * doc/posix-functions/wcsnlen.texi: Likewise.
63910         * doc/posix-functions/wcsnrtombs.texi: Likewise.
63911         * doc/posix-functions/wcstod.texi: Likewise.
63912         * doc/posix-functions/wcstof.texi: Likewise.
63913         * doc/posix-functions/wcstoimax.texi: Likewise.
63914         * doc/posix-functions/wcstok.texi: Likewise.
63915         * doc/posix-functions/wcstoumax.texi: Likewise.
63917         Detect bug in cygwin 1.5.x *printf on 1-character %ls.
63918         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Enhance filter.
63919         * doc/posix-functions/fprintf.texi: Update.
63920         * doc/posix-functions/printf.texi: Update.
63921         * doc/posix-functions/snprintf.texi: Update.
63922         * doc/posix-functions/sprintf.texi: Update.
63923         * doc/posix-functions/vfprintf.texi: Update.
63924         * doc/posix-functions/vprintf.texi: Update.
63925         * doc/posix-functions/vsnprintf.texi: Update.
63926         * doc/posix-functions/vsprintf.texi: Update.
63927         * doc/glibc-functions/obstack_printf.texi: Update.
63928         * doc/glibc-functions/obstack_vprintf.texi: Update.
63930 2009-02-26  Eric Blake  <ebb9@byu.net>
63932         avoid gcc 3.4.3 bug on long double NaN on Irix 6.5
63933         * tests/nan.h (NaNl): Rewrite as function on Irix, to avoid
63934         compilation bug by using runtime conversion.
63935         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
63936         * m4/isnanl.m4 (gl_FUNC_ISNANL): Likewise.
63937         * modules/ceill-tests (Files): Use nan.h.
63938         * modules/floorl-tests (Files): Likewise.
63939         * modules/frexpl-tests (Files): Likewise.
63940         * modules/isnanl-tests (Files): Likewise.
63941         * modules/ldexpl-tests (Files): Likewise.
63942         * modules/roundl-tests (Files): Likewise.
63943         * modules/truncl-tests (Files): Likewise.
63944         * tests/test-ceill.c (main): Use a working NaN.
63945         * tests/test-floorl.c (main): Likewise.
63946         * tests/test-frexpl.c (main): Likewise.
63947         * tests/test-isnan.c (test_long_double): Likewise.
63948         * tests/test-isnanl.h (main): Likewise.
63949         * tests/test-ldexpl.h (main): Likewise.
63950         * tests/test-roundl.h (main): Likewise.
63951         * tests/test-truncl.h (main): Likewise.
63952         See http://lists.gnu.org/archive/html/bug-gnulib/2009-02/msg00190.html.
63954 2009-02-26  Eric Blake  <ebb9@byu.net>
63955             Bruno Haible  <bruno@clisp.org>
63957         Work around a *printf bug with %ls on Solaris.
63958         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Also test whether, when a
63959         precision is specified, sprintf stops converting the wide string
63960         argument when the number of bytes that have been produced by this
63961         conversion equals or exceeds the precision.
63962         * doc/posix-functions/fprintf.texi: Update.
63963         * doc/posix-functions/printf.texi: Update.
63964         * doc/posix-functions/snprintf.texi: Update.
63965         * doc/posix-functions/sprintf.texi: Update.
63966         * doc/posix-functions/vfprintf.texi: Update.
63967         * doc/posix-functions/vprintf.texi: Update.
63968         * doc/posix-functions/vsnprintf.texi: Update.
63969         * doc/posix-functions/vsprintf.texi: Update.
63970         * doc/glibc-functions/obstack_printf.texi: Update.
63971         * doc/glibc-functions/obstack_vprintf.texi: Update.
63973 2009-02-26  Eric Blake  <ebb9@byu.net>
63975         stdlib: favor compiler check of random.h
63976         * m4/stdlib_h.m4 (gl_STDLIB_H): Skip preprocessor check.  Needed
63977         to avoid an ObjC random.h installed by Swarm.
63979 2009-02-26  Bruno Haible  <bruno@clisp.org>
63981         Work around *printf bug with %g directive and 0.0 on HP-UX 10.20.
63982         * m4/printf.m4 (gl_PRINTF_INFINITE): Also test for %g output of -0.0.
63983         Reported by Gary V. Vaughan <gary@gnu.org>.
63985 2009-02-26  Bruno Haible  <bruno@clisp.org>
63987         Fix *printf behaviour regarding the %ls directive.
63988         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): New macro.
63989         * lib/vasnprintf.c (local_wcslen, VASNPRINTF): Handle
63990         NEED_PRINTF_DIRECTIVE_LS.
63991         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_LS): New macro.
63992         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
63993         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
63994         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS and test its result. Invoke
63995         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS.
63996         * m4/dprintf-posix.m4 (gl_FUNC_DPRINTF_POSIX): Likewise.
63997         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
63998         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
63999         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
64000         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
64001         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
64002         * m4/vdprintf-posix.m4 (gl_FUNC_VDPRINTF_POSIX): Likewise.
64003         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
64004         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
64005         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
64006         * doc/posix-functions/fprintf.texi: Update.
64007         * doc/posix-functions/printf.texi: Update.
64008         * doc/posix-functions/snprintf.texi: Update.
64009         * doc/posix-functions/sprintf.texi: Update.
64010         * doc/posix-functions/vfprintf.texi: Update.
64011         * doc/posix-functions/vprintf.texi: Update.
64012         * doc/posix-functions/vsnprintf.texi: Update.
64013         * doc/posix-functions/vsprintf.texi: Update.
64014         * doc/glibc-functions/obstack_printf.texi: Update.
64015         * doc/glibc-functions/obstack_vprintf.texi: Update.
64016         Reported by Eric Blake.
64018 2009-02-25  Bruno Haible  <bruno@clisp.org>
64020         * m4/mbrtowc.m4 (gl_MBRTOWC_NUL_RETVAL): Update guess for Solaris 8
64021         with known value.
64022         Reported by Gary V. Vaughan <gary@gnu.org>.
64024 2009-02-25  Bruno Haible  <bruno@clisp.org>
64026         Work around mbrtowc bug in zh_CN.GB18030 locale on Solaris 8.
64027         * m4/mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): New macro.
64028         (gl_MBSTATE_T_BROKEN): Invoke it. Replace mbstate_t when it says "no".
64029         * doc/posix-functions/mbrtowc.texi: Document the Solaris 8 bug.
64030         Reported by Gary V. Vaughan <gary@gnu.org>.
64032 2009-02-25  Bruno Haible  <bruno@clisp.org>
64034         Work around broken INT8_MAX, UINT8_MAX etc. values on HP-UX 11.23.
64035         * m4/stdint.m4 (gl_STDINT_H): Also check whether the expansions of
64036         INT8_MAX, UINT8_MAX etc. contain casts to elementary types.
64037         * doc/posix-headers/stdint.texi: Mention the HP-UX bug.
64038         Reported by Gary V. Vaughan <gary@gnu.org>.
64040 2009-02-25  Eric Blake  <ebb9@byu.net>
64042         tests: skip fseek/ftell tests if ungetc is broken
64043         * m4/ungetc.m4: New file.
64044         * modules/fseek-tests: Split test, so ungetc dependency is
64045         separate from rest of test.
64046         * modules/fseeko-tests: Likewise.
64047         * modules/ftell-tests: Likewise.
64048         * modules/ftello-tests: Likewise.
64049         * tests/test-fseek.c (main): Isolate ungetc dependency.
64050         * tests/test-fseeko.c (main): Likewise.
64051         * tests/test-ftell.c (main): Likewise.
64052         * tests/test-ftello.c (main): Likewise.
64053         * tests/test-fseek2.sh: New file.
64054         * tests/test-fseeko2.sh: Likewise.
64055         * tests/test-ftell2.sh: Likewise.
64056         * tests/test-ftello2.sh: Likewise.
64058 2009-02-25  Ondřej Vašík  <ovasik@redhat.com>
64060         test-getaddrinfo: fix usage of skip return code 77
64061         * tests/test-gettaddrinfo.c: Return skip code 77 only
64062         for first occurrence of skip (4x77 is not 77)
64064 2009-02-25  Gary V. Vaughan  <gary@gnu.org>
64066         strtod: avoid C99 decl-after-statement
64067         * m4/strtod.m4 (gl_FUNC_STRTOD): Rearrange declaration.
64069 2009-02-24  Eric Blake  <ebb9@byu.net>
64071         strtod: detect HP-UX 11.31 bug
64072         * m4/strtod.m4 (gl_FUNC_STRTOD): Detect errno handling bug.
64073         Reported by Gary V. Vaughan.
64075 2009-02-23  Bruno Haible  <bruno@clisp.org>
64077         Fix invalid read past end of memory block.
64078         * lib/vasnprintf.c (DCHAR_SET): Define.
64079         (local_wcslen): Define only when needed.
64080         (local_strnlen, local_wcsnlen): New functions.
64081         (VASNPRINTF) [!USE_SNPRINTF && HAVE_WCHAR_T]: Implement the %s and %ls
64082         directives that involve a conversion ourselves.
64083         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for strnlen,
64084         wcsnlen, mbrtowc, wcrtomb.
64085         * tests/test-vasnprintf-posix.c (test_function): Add tests for %.*s.
64086         * tests/test-vasprintf-posix.c (test_function): Likewise.
64087         * tests/test-snprintf-posix.h (test_function): Likewise.
64088         * tests/test-sprintf-posix.h (test_function): Likewise.
64089         Reported by Ben Pfaff <blp@cs.stanford.edu>.
64091 2009-02-22  Bruno Haible  <bruno@clisp.org>
64093         Implement new clarified decomposition of Hangul syllables.
64094         * lib/uninorm/decomposition.c (uc_decomposition): For Hangul syllables
64095         of type LTV, return only a pairwise decomposition.
64096         * lib/uninorm/canonical-decomposition.c (uc_canonical_decomposition):
64097         Likewise.
64098         * tests/uninorm/test-decomposition.c (main): Updated expected result.
64099         * tests/uninorm/test-canonical-decomposition.c (main): Likewise.
64100         * tests/uninorm/test-compat-decomposition.c (main): Likewise.
64102 2009-02-22  Bruno Haible  <bruno@clisp.org>
64104         * lib/uninorm/u-normalize-internal.h (FUNC): At the end, handle
64105         zero-length results and shrink excess allocated memory.
64106         * tests/uninorm/test-u8-nfc.c (test_u8_nfc): Check empty string result.
64107         * tests/uninorm/test-u8-nfd.c (test_u8_nfd): Likewise.
64108         * tests/uninorm/test-u8-nfkc.c (test_u8_nfkc): Likewise.
64109         * tests/uninorm/test-u8-nfkd.c (test_u8_nfkd): Likewise.
64110         * tests/uninorm/test-u16-nfc.c (test_u16_nfc): Likewise.
64111         * tests/uninorm/test-u16-nfd.c (test_u16_nfd): Likewise.
64112         * tests/uninorm/test-u16-nfkc.c (test_u16_nfkc): Likewise.
64113         * tests/uninorm/test-u16-nfkd.c (test_u16_nfkd): Likewise.
64114         * tests/uninorm/test-u32-nfc.c (test_u32_nfc): Likewise.
64115         * tests/uninorm/test-u32-nfd.c (test_u32_nfd): Likewise.
64116         * tests/uninorm/test-u32-nfkc.c (test_u32_nfkc): Likewise.
64117         * tests/uninorm/test-u32-nfkd.c (test_u32_nfkd): Likewise.
64119 2009-02-21  Bruno Haible  <bruno@clisp.org>
64121         * doc/gnulib.texi: Include safe-alloc.texi earlier.
64122         * doc/safe-alloc.texi: Terminate sentences with a period. Use two
64123         spaces after a period. Put a space between a macro name and its
64124         argument list. Trivial rewordings.
64125         * lib/safe-alloc.c: Include safe-alloc.h right after config.h.
64126         * tests/test-safe-alloc.c: Likewise. Include stdlib.h.
64127         (main): Return 0 explicitly.
64129 2009-02-21  Bruno Haible  <bruno@clisp.org>
64131         Tests for module 'uninorm/filter'.
64132         * tests/uninorm/test-uninorm-filter-nfc.c: New file.
64133         * modules/uninorm/filter-tests: New file.
64135         New module 'uninorm/filter'.
64136         * lib/uninorm.h (uninorm_filter_create, uninorm_filter_write,
64137         uninorm_filter_flush, uninorm_filter_free): New declarations.
64138         * lib/uninorm/uninorm-filter.c: New file.
64139         * modules/uninorm/filter: New file.
64141 2009-02-21  Bruno Haible  <bruno@clisp.org>
64143         Tests for module 'uninorm/nfkc'.
64144         * tests/uninorm/test-nfkc.c: New file.
64145         * tests/uninorm/test-u8-nfkc.c: New file.
64146         * tests/uninorm/test-u16-nfkc.c: New file.
64147         * tests/uninorm/test-u32-nfkc.c: New file.
64148         * tests/uninorm/test-u32-nfkc-big.sh: New file.
64149         * tests/uninorm/test-u32-nfkc-big.c: New file.
64150         * modules/uninorm/nfkc-tests: New file.
64152         New module 'uninorm/nfkc'.
64153         * lib/uninorm/nfkc.c: New file.
64154         * modules/uninorm/nfkc: New file.
64156         Tests for module 'uninorm/nfkd'.
64157         * tests/uninorm/test-nfkd.c: New file.
64158         * tests/uninorm/test-u8-nfkd.c: New file.
64159         * tests/uninorm/test-u16-nfkd.c: New file.
64160         * tests/uninorm/test-u32-nfkd.c: New file.
64161         * tests/uninorm/test-u32-nfkd-big.sh: New file.
64162         * tests/uninorm/test-u32-nfkd-big.c: New file.
64163         * modules/uninorm/nfkd-tests: New file.
64165         New module 'uninorm/nfkd'.
64166         * lib/uninorm/nfkd.c: New file.
64167         * modules/uninorm/nfkd: New file.
64169         Tests for module 'uninorm/nfc'.
64170         * tests/uninorm/test-nfc.c: New file.
64171         * tests/uninorm/test-u8-nfc.c: New file.
64172         * tests/uninorm/test-u16-nfc.c: New file.
64173         * tests/uninorm/test-u32-nfc.c: New file.
64174         * tests/uninorm/test-u32-nfc-big.sh: New file.
64175         * tests/uninorm/test-u32-nfc-big.c: New file.
64176         * modules/uninorm/nfc-tests: New file.
64178         New module 'uninorm/nfc'.
64179         * lib/uninorm/nfc.c: New file.
64180         * modules/uninorm/nfc: New file.
64182         Tests for module 'uninorm/nfd'.
64183         * tests/uninorm/test-nfd.c: New file.
64184         * tests/uninorm/test-u8-nfd.c: New file.
64185         * tests/uninorm/test-u16-nfd.c: New file.
64186         * tests/uninorm/test-u32-nfd.c: New file.
64187         * tests/uninorm/test-u32-nfd-big.sh: New file.
64188         * tests/uninorm/test-u32-nfd-big.c: New file.
64189         * tests/uninorm/test-u32-normalize-big.h: New file.
64190         * tests/uninorm/test-u32-normalize-big.c: New file.
64191         * tests/uninorm/NormalizationTest.txt: New file, created from
64192         Unicode 5.1.0 NormalizationTest.txt.
64193         * modules/uninorm/nfd-tests: New file.
64195         New module 'uninorm/nfd'.
64196         * lib/uninorm/nfd.c: New file.
64197         * modules/uninorm/nfd: New file.
64199         New module 'uninorm/u32-normalize'.
64200         * lib/uninorm/u32-normalize.c: New file.
64201         * modules/uninorm/u32-normalize: New file.
64203         New module 'uninorm/u16-normalize'.
64204         * lib/uninorm/u16-normalize.c: New file.
64205         * modules/uninorm/u16-normalize: New file.
64207         New module 'uninorm/u8-normalize'.
64208         * lib/uninorm/u8-normalize.c: New file.
64209         * lib/uninorm/normalize-internal.h: New file.
64210         * lib/uninorm/u-normalize-internal.h: New file.
64211         * modules/uninorm/u8-normalize: New file.
64213         New module 'uninorm/decompose-internal'.
64214         * lib/uninorm/decompose-internal.c: New file.
64215         * modules/uninorm/decompose-internal: New file.
64217         Tests for module 'uninorm/composition'.
64218         * tests/uninorm/test-composition.c: New file.
64219         * modules/uninorm/composition-tests: New file.
64221         New module 'uninorm/composition'.
64222         * lib/uninorm/composition.c: New file.
64223         * lib/uninorm/composition-table.gperf: New file, generated by
64224         gen-uni-tables.
64225         * modules/uninorm/composition: New file.
64227         Tests for module 'uninorm/compat-decomposition'.
64228         * tests/uninorm/test-compat-decomposition.c: New file.
64229         * modules/uninorm/compat-decomposition-tests: New file.
64231         New module 'uninorm/compat-decomposition'.
64232         * lib/uninorm/decompose-internal.h: New file.
64233         * lib/uninorm/compat-decomposition.c: New file.
64234         * modules/uninorm/compat-decomposition: New file.
64236         Tests for module 'uninorm/canonical-decomposition'.
64237         * tests/uninorm/test-canonical-decomposition.c: New file.
64238         * modules/uninorm/canonical-decomposition-tests: New file.
64240         New module 'uninorm/canonical-decomposition'.
64241         * lib/uninorm/canonical-decomposition.c: New file.
64242         * modules/uninorm/canonical-decomposition: New file.
64244         Tests for module 'uninorm/decomposition'.
64245         * tests/uninorm/test-decomposition.c: New file.
64246         * modules/uninorm/decomposition-tests: New file.
64248         New module 'uninorm/decomposition'.
64249         * lib/uninorm/decomposition.c: New file.
64250         * modules/uninorm/decomposition: New file.
64252         New module 'uninorm/decomposition-table'.
64253         * lib/uninorm/decomposition-table.h: New file.
64254         * lib/uninorm/decomposition-table.c: New file.
64255         * lib/uninorm/decomposition-table1.h: New file, generated by
64256         gen-uni-tables.
64257         * lib/uninorm/decomposition-table2.h: New file, generated by
64258         gen-uni-tables.
64259         * modules/uninorm/decomposition-table: New file.
64261         * lib/gen-uni-tables.c (MAX_DECOMP_LENGTH): New macro.
64262         (UC_DECOMP_*): New enumeration items.
64263         (get_decomposition): New function.
64264         (struct decomp_table): New type.
64265         (output_decomposition, output_decomposition_tables): New functions.
64266         (unicode_composition_exclusions): New variable.
64267         (fill_composition_exclusions, debug_output_composition_tables): New
64268         functions.
64269         (main): Accept one more argument. Invoke fill_composition_exclusions.
64270         Output decomposition and composition tables.
64272         New module 'uninorm/base'.
64273         * lib/uninorm.h: New file.
64274         * lib/unictype.h: Update comment.
64275         * modules/uninorm/base: New file.
64277 2009-02-21  David Lutterkort  <lutter@redhat.com>
64279         Tests for module 'safe-alloc'.
64280         * tests/test-safe-alloc.c: New file.
64281         * modules/safe-alloc-tests: New file.
64283         New module 'safe-alloc'.
64284         * lib/safe-alloc.h: New file.
64285         * lib/safe-alloc.c: New file.
64286         * m4/safe-alloc.m4: New file.
64287         * modules/safe-alloc: New file.
64288         * doc/safe-alloc.texi: New file.
64289         * doc/gnulib.texi: Include it.
64290         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
64291         safe-alloc.
64293 2009-02-18  Bruno Haible  <bruno@clisp.org>
64295         Fix link error on non-glibc systems.
64296         * modules/uniwbrk/ulc-wordbreaks-tests (test_ulc_wordbreaks_LDADD): New
64297         variable.
64298         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
64300 2009-02-18  Jim Meyering  <meyering@redhat.com>
64302         fts: avoid used-uninitialized error due to recent change
64303         * lib/fts.c (fts_read): Guard uses of the new member,
64304         parent->fts_n_dirs_remaining, since it's not relevant for
64305         the parent of a directory specified on the command-line.
64307 2009-02-17  James Youngman  <jay@gnu.org>
64308             Bruno Haible  <bruno@clisp.org>
64310         * m4/include_next.m4: Reformulate comment.
64312 2009-02-16  Jim Meyering  <meyering@redhat.com>
64314         fts: add #if guards so that the fts_lgpl module still builds
64315         * lib/fts.c: Guard just-added hash-table-using parts with
64316         #if GNULIB_FTS, so as not to break builds of the fts_lgpl module.
64317         Reported by Simon Josefsson.
64319 2009-02-15  Bruno Haible  <bruno@clisp.org>
64321         * modules/array-mergesort-tests: New file.
64322         * tests/test-array-mergesort.c: New file.
64324         New module 'array-mergesort'.
64325         * modules/array-mergesort: New file.
64326         * lib/array-mergesort.h: New file.
64328 2009-02-15  Bruno Haible  <bruno@clisp.org>
64330         Fix 2009-02-07 commit.
64331         * lib/gen-uni-tables.c (output_predicate, output_category,
64332         output_combclass, output_bidi_category, output_decimal_digit,
64333         output_digit, output_numeric, output_mirror, output_scripts,
64334         output_ident_category, output_simple_mapping): Fix format directives.
64335         (output_lbp, output_wbp): Don't convert -1 to a size_t implicitly.
64337 2009-02-15  Albert Chin-A-Young  <china@thewrittenword.com>
64339         * m4/include_next.m4: Update comment about IBM C 9.0/10.1 bug, now that
64340         fixes are available from IBM.
64342 2009-02-13  Jim Meyering  <meyering@redhat.com>
64344         fts: arrange not to stat non-directories in more cases
64345         This makes GNU find (when it doesn't need to stat each file)
64346         *much* more efficient at traversing reiserfs file systems.
64347         * lib/fts_.h (struct ftsent) [fts_n_dirs_remaining]: New member.
64348         (struct FTS) [fts_leaf_optimization_works_ht]: Add member.
64349         * lib/fts.c (fts_close): Free ->fts_leaf_optimization_works_ht.
64350         (S_MAGIC_REISERFS, S_MAGIC_PROC): Define.
64351         (leaf_optimization_applies): New function.
64352         (LCO_hash, LCO_compare): New helper functions.
64353         (link_count_optimize_ok): New function.
64354         (fts_stat): Initialize new member (if dir).
64355         (fts_read): Decrement parent's fts_n_dirs_remaining count if
64356         we've just stat'ed a directory.  Skip the stat call when possible.
64357         ---
64358         Note this AFS-related exchange:
64359         http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=143111
64360         and note find's pioctl call in find/fstype.c.
64361         But that is necessary only if you want to enable the
64362         optimization for AFS, and for now, I don't.
64364         fts: move a function definition "up" (no semantic change)
64365         * lib/fts.c (dirent_inode_sort_may_be_useful): Move definition
64366         "up" to precede upcoming use of a related function.
64368 2009-02-11  Jim Meyering  <meyering@redhat.com>
64370         fts: correct internal computation of nlinks (optimization-related)
64371         * lib/fts.c (fts_build): ISSET(FTS_NOSTAT) has no bearing on
64372         whether the current entry is a directory, so don't test it.
64374 2009-02-10  Bruno Haible  <bruno@clisp.org>
64376         Tests for module 'uniwbrk/ulc-wordbreaks'.
64377         * modules/uniwbrk/ulc-wordbreaks-tests: New file.
64378         * tests/uniwbrk/test-ulc-wordbreaks.sh: New file.
64379         * tests/uniwbrk/test-ulc-wordbreaks.c: New file.
64381         Tests for module 'uniwbrk/u32-wordbreaks'.
64382         * modules/uniwbrk/u32-wordbreaks-tests: New file.
64383         * tests/uniwbrk/test-u32-wordbreaks.c: New file.
64385         Tests for module 'uniwbrk/u16-wordbreaks'.
64386         * modules/uniwbrk/u16-wordbreaks-tests: New file.
64387         * tests/uniwbrk/test-u16-wordbreaks.c: New file.
64389         Tests for module 'uniwbrk/u8-wordbreaks'.
64390         * modules/uniwbrk/u8-wordbreaks-tests: New file.
64391         * tests/uniwbrk/test-u8-wordbreaks.c: New file.
64393 2009-02-10  Bruno Haible  <bruno@clisp.org>
64395         * modules/uniwbrk/u8-wordbreaks (Depends-on): Add uniwbrk/wordbreak
64396         property.
64397         * modules/uniwbrk/u16-wordbreaks (Depends-on): Likewise.
64398         * modules/uniwbrk/u32-wordbreaks (Depends-on): Likewise.
64399         * modules/uniwbrk/ulc-wordbreaks (Depends-on): Add localcharset.
64401 2009-02-10  Simon Josefsson  <simon@josefsson.org>
64403         * m4/sockets.m4: Call AC_C_INLINE since sockets.h now can use
64404         inline keywords.  Reported by Bruno Haible <bruno@clisp.org>.
64406 2009-02-10  Bruno Haible  <bruno@clisp.org>
64408         * lib/unilbrk/lbrktables.h: Renamed from lib/unilbrk/tables.h.
64409         * lib/unilbrk/lbrktables.c: Renamed from lib/unilbrk/tables.c.
64410         * modules/unilbrk/tables (Files, Makefile.am, Include): Update.
64411         * lib/unilbrk/u8-possible-linebreaks.c: Update.
64412         * lib/unilbrk/u16-possible-linebreaks.c: Likewise.
64413         * lib/unilbrk/u32-possible-linebreaks.c: Likewise.
64415 2009-02-09  Simon Josefsson  <simon@josefsson.org>
64417         * lib/sockets.h (gl_fd_to_handle): New function.
64419         * tests/test-sockets.c: Call gl_fd_to_handle.
64421 2009-02-09  Bruno Haible  <bruno@clisp.org>
64423         * doc/havelib.texi: Document the conventions on bi-arch systems.
64425 2009-02-08  Bruno Haible  <bruno@clisp.org>
64427         Document the AC_LIB_LINKFLAGS macro.
64428         * doc/havelib.texi: New file, mostly written on 2005-05-24.
64429         * doc/gnulib.texi: Include it.
64431 2009-02-08  Bruno Haible  <bruno@clisp.org>
64433         Fix wrong order of sections, compared to TOC.
64434         * doc/gnulib.texi: Include relocatable-maint.texi after the
64435         "Regular expressions" node, not before.
64437 2009-02-08  Bruno Haible  <bruno@clisp.org>
64439         Tests for module 'unicase/totitle'.
64440         * modules/unicase/totitle-tests: New file.
64442         Tests for module 'unicase/tolower'.
64443         * modules/unicase/tolower-tests: New file.
64445         Tests for module 'unicase/toupper'.
64446         * modules/unicase/toupper-tests: New file.
64447         * tests/unicase/test-mapping-part1.h: New file.
64448         * tests/unicase/test-mapping-part2.h: New file.
64450         New module 'unicase/totitle'.
64451         * modules/unicase/totitle: New file.
64452         * lib/unicase/totitle.c: New file.
64454         New module 'unicase/tolower'.
64455         * modules/unicase/tolower: New file.
64456         * lib/unicase/tolower.c: New file.
64458         New module 'unicase/toupper'.
64459         * modules/unicase/toupper: New file.
64460         * lib/unicase/toupper.c: New file.
64461         * lib/unicase/simple-mapping.h: New file.
64463         * lib/gen-uni-tables.c (output_simple_mapping_test): New function.
64464         (mapping_table): New structure.
64465         (output_simple_mapping): New function.
64466         (main): Invoke output_simple_mapping_test and output_simple_mapping.
64467         * modules/gen-uni-tables (Description): Update.
64468         * lib/unicase/toupper.h: New file, automatically generated by
64469         gen-uni-tables.
64470         * lib/unicase/tolower.h: New file, automatically generated by
64471         gen-uni-tables.
64472         * lib/unicase/totitle.h: New file, automatically generated by
64473         gen-uni-tables.
64474         * tests/unicase/test-uc_toupper.c: New file, automatically generated by
64475         gen-uni-tables.
64476         * tests/unicase/test-uc_tolower.c: New file, automatically generated by
64477         gen-uni-tables.
64478         * tests/unicase/test-uc_totitle.c: New file, automatically generated by
64479         gen-uni-tables.
64481         New module 'unicase/base'.
64482         * modules/unicase/base: New file.
64483         * lib/unicase.h: New file.
64485 2009-02-08  Bruno Haible  <bruno@clisp.org>
64487         New module 'uniwbrk/ulc-wordbreaks'.
64488         * modules/uniwbrk/ulc-wordbreaks: New file.
64489         * lib/uniwbrk/ulc-wordbreaks.c: New file.
64491         New module 'uniwbrk/u32-wordbreaks'.
64492         * modules/uniwbrk/u32-wordbreaks: New file.
64493         * lib/uniwbrk/u32-wordbreaks.c: New file.
64495         New module 'uniwbrk/u16-wordbreaks'.
64496         * modules/uniwbrk/u16-wordbreaks: New file.
64497         * lib/uniwbrk/u16-wordbreaks.c: New file.
64499         New module 'uniwbrk/u8-wordbreaks'.
64500         * modules/uniwbrk/u8-wordbreaks: New file.
64501         * lib/uniwbrk/u8-wordbreaks.c: New file.
64502         * lib/uniwbrk/u-wordbreaks.h: New file.
64504         New module 'uniwbrk/table'.
64505         * modules/uniwbrk/table: New file.
64506         * lib/uniwbrk/wbrktable.h: New file.
64507         * lib/uniwbrk/wbrktable.c: New file.
64509         New module 'uniwbrk/wordbreak-property'.
64510         * modules/uniwbrk/wordbreak-property: New file.
64511         * lib/uniwbrk/wordbreak-property.c: New file.
64513         * lib/gen-uni-tables.c (WBP_*): New enum items.
64514         (get_wbp, debug_output_wbp, debug_output_wbrk_tables): New functions.
64515         (unicode_org_wbp): New variable.
64516         (fill_org_wbp, debug_output_org_wbp, debug_output_org_wbrk_tables):
64517         New functions.
64518         (wbp_table): New structure.
64519         (output_wbp, output_wbrk_tables): New functions.
64520         (main): Accept additional argument. Invoke fill_org_wbp,
64521         debug_output_wbrk_tables, debug_output_org_wbrk_tables,
64522         output_wbrk_tables.
64523         * modules/gen-uni-tables (Description): Update.
64524         * lib/uniwbrk/wbrkprop.h: New file, automatically generated by
64525         gen-uni-tables.
64527         New module 'uniwbrk/base'.
64528         * modules/uniwbrk/base: New file.
64529         * lib/uniwbrk.h: New file.
64531 2009-02-08  Bruno Haible  <bruno@clisp.org>
64533         Update to Unicode 5.1.0.
64534         * lib/gen-uni-tables.c (is_property_alphabetic): Include
64535         U+2185..U+2188.
64536         (is_property_default_ignorable_code_point): Don't include characters
64537         of category Cc or Cs and not-a-characters.
64538         (get_lbp): Assume REVISION_22. Special handling of U+0609, U+060A,
64539         U+0D79, U+109E, U+109F, U+A60C.
64540         * lib/unictype/bidi_of.h: Regenerated.
64541         * lib/unictype/blocks.h: Regenerated.
64542         * lib/unictype/categ_C.h: Regenerated.
64543         * lib/unictype/categ_Cf.h: Regenerated.
64544         * lib/unictype/categ_Cn.h: Regenerated.
64545         * lib/unictype/categ_L.h: Regenerated.
64546         * lib/unictype/categ_Ll.h: Regenerated.
64547         * lib/unictype/categ_Lm.h: Regenerated.
64548         * lib/unictype/categ_Lo.h: Regenerated.
64549         * lib/unictype/categ_Lu.h: Regenerated.
64550         * lib/unictype/categ_M.h: Regenerated.
64551         * lib/unictype/categ_Mc.h: Regenerated.
64552         * lib/unictype/categ_Me.h: Regenerated.
64553         * lib/unictype/categ_Mn.h: Regenerated.
64554         * lib/unictype/categ_N.h: Regenerated.
64555         * lib/unictype/categ_Nd.h: Regenerated.
64556         * lib/unictype/categ_Nl.h: Regenerated.
64557         * lib/unictype/categ_No.h: Regenerated.
64558         * lib/unictype/categ_P.h: Regenerated.
64559         * lib/unictype/categ_Pd.h: Regenerated.
64560         * lib/unictype/categ_Pe.h: Regenerated.
64561         * lib/unictype/categ_Pf.h: Regenerated.
64562         * lib/unictype/categ_Pi.h: Regenerated.
64563         * lib/unictype/categ_Po.h: Regenerated.
64564         * lib/unictype/categ_Ps.h: Regenerated.
64565         * lib/unictype/categ_S.h: Regenerated.
64566         * lib/unictype/categ_Sk.h: Regenerated.
64567         * lib/unictype/categ_Sm.h: Regenerated.
64568         * lib/unictype/categ_So.h: Regenerated.
64569         * lib/unictype/categ_of.h: Regenerated.
64570         * lib/unictype/combining.h: Regenerated.
64571         * lib/unictype/ctype_alnum.h: Regenerated.
64572         * lib/unictype/ctype_alpha.h: Regenerated.
64573         * lib/unictype/ctype_graph.h: Regenerated.
64574         * lib/unictype/ctype_lower.h: Regenerated.
64575         * lib/unictype/ctype_print.h: Regenerated.
64576         * lib/unictype/ctype_punct.h: Regenerated.
64577         * lib/unictype/ctype_upper.h: Regenerated.
64578         * lib/unictype/decdigit.h: Regenerated.
64579         * lib/unictype/digit.h: Regenerated.
64580         * lib/unictype/mirror.h: Regenerated.
64581         * lib/unictype/numeric.h: Regenerated.
64582         * lib/unictype/pr_alphabetic.h: Regenerated.
64583         * lib/unictype/pr_bidi_arabic_digit.h: Regenerated.
64584         * lib/unictype/pr_bidi_arabic_right_to_left.h: Regenerated.
64585         * lib/unictype/pr_bidi_boundary_neutral.h: Regenerated.
64586         * lib/unictype/pr_bidi_eur_num_terminator.h: Regenerated.
64587         * lib/unictype/pr_bidi_left_to_right.h: Regenerated.
64588         * lib/unictype/pr_bidi_non_spacing_mark.h: Regenerated.
64589         * lib/unictype/pr_bidi_other_neutral.h: Regenerated.
64590         * lib/unictype/pr_combining.h: Regenerated.
64591         * lib/unictype/pr_dash.h: Regenerated.
64592         * lib/unictype/pr_decimal_digit.h: Regenerated.
64593         * lib/unictype/pr_default_ignorable_code_point.h: Regenerated.
64594         * lib/unictype/pr_deprecated.h: Regenerated.
64595         * lib/unictype/pr_diacritic.h: Regenerated.
64596         * lib/unictype/pr_extender.h: Regenerated.
64597         * lib/unictype/pr_format_control.h: Regenerated.
64598         * lib/unictype/pr_grapheme_base.h: Regenerated.
64599         * lib/unictype/pr_grapheme_extend.h: Regenerated.
64600         * lib/unictype/pr_grapheme_link.h: Regenerated.
64601         * lib/unictype/pr_id_continue.h: Regenerated.
64602         * lib/unictype/pr_id_start.h: Regenerated.
64603         * lib/unictype/pr_ideographic.h: Regenerated.
64604         * lib/unictype/pr_ignorable_control.h: Regenerated.
64605         * lib/unictype/pr_lowercase.h: Regenerated.
64606         * lib/unictype/pr_math.h: Regenerated.
64607         * lib/unictype/pr_numeric.h: Regenerated.
64608         * lib/unictype/pr_other_alphabetic.h: Regenerated.
64609         * lib/unictype/pr_other_default_ignorable_code_point.h: Regenerated.
64610         * lib/unictype/pr_other_grapheme_extend.h: Regenerated.
64611         * lib/unictype/pr_other_id_continue.h: Regenerated.
64612         * lib/unictype/pr_other_lowercase.h: Regenerated.
64613         * lib/unictype/pr_other_math.h: Regenerated.
64614         * lib/unictype/pr_punctuation.h: Regenerated.
64615         * lib/unictype/pr_sentence_terminal.h: Regenerated.
64616         * lib/unictype/pr_soft_dotted.h: Regenerated.
64617         * lib/unictype/pr_terminal_punctuation.h: Regenerated.
64618         * lib/unictype/pr_unassigned_code_value.h: Regenerated.
64619         * lib/unictype/pr_unified_ideograph.h: Regenerated.
64620         * lib/unictype/pr_uppercase.h: Regenerated.
64621         * lib/unictype/pr_xid_continue.h: Regenerated.
64622         * lib/unictype/pr_xid_start.h: Regenerated.
64623         * lib/unictype/pr_zero_width.h: Regenerated.
64624         * lib/unictype/scripts.h: Regenerated.
64625         * lib/unictype/scripts_byname.gperf: Regenerated.
64626         * lib/unictype/sy_java_ident.h: Regenerated.
64627         * lib/unilbrk/lbrkprop1.h: Regenerated.
64628         * lib/unilbrk/lbrkprop2.h: Regenerated.
64629         * tests/unictype/test-categ_C.c: Regenerated.
64630         * tests/unictype/test-categ_Cf.c: Regenerated.
64631         * tests/unictype/test-categ_Cn.c: Regenerated.
64632         * tests/unictype/test-categ_L.c: Regenerated.
64633         * tests/unictype/test-categ_Ll.c: Regenerated.
64634         * tests/unictype/test-categ_Lm.c: Regenerated.
64635         * tests/unictype/test-categ_Lo.c: Regenerated.
64636         * tests/unictype/test-categ_Lu.c: Regenerated.
64637         * tests/unictype/test-categ_M.c: Regenerated.
64638         * tests/unictype/test-categ_Mc.c: Regenerated.
64639         * tests/unictype/test-categ_Me.c: Regenerated.
64640         * tests/unictype/test-categ_Mn.c: Regenerated.
64641         * tests/unictype/test-categ_N.c: Regenerated.
64642         * tests/unictype/test-categ_Nd.c: Regenerated.
64643         * tests/unictype/test-categ_Nl.c: Regenerated.
64644         * tests/unictype/test-categ_No.c: Regenerated.
64645         * tests/unictype/test-categ_P.c: Regenerated.
64646         * tests/unictype/test-categ_Pd.c: Regenerated.
64647         * tests/unictype/test-categ_Pe.c: Regenerated.
64648         * tests/unictype/test-categ_Pf.c: Regenerated.
64649         * tests/unictype/test-categ_Pi.c: Regenerated.
64650         * tests/unictype/test-categ_Po.c: Regenerated.
64651         * tests/unictype/test-categ_Ps.c: Regenerated.
64652         * tests/unictype/test-categ_S.c: Regenerated.
64653         * tests/unictype/test-categ_Sk.c: Regenerated.
64654         * tests/unictype/test-categ_Sm.c: Regenerated.
64655         * tests/unictype/test-categ_So.c: Regenerated.
64656         * tests/unictype/test-ctype_alnum.c: Regenerated.
64657         * tests/unictype/test-ctype_alpha.c: Regenerated.
64658         * tests/unictype/test-ctype_graph.c: Regenerated.
64659         * tests/unictype/test-ctype_lower.c: Regenerated.
64660         * tests/unictype/test-ctype_print.c: Regenerated.
64661         * tests/unictype/test-ctype_punct.c: Regenerated.
64662         * tests/unictype/test-ctype_upper.c: Regenerated.
64663         * tests/unictype/test-decdigit.h: Regenerated.
64664         * tests/unictype/test-digit.h: Regenerated.
64665         * tests/unictype/test-numeric.h: Regenerated.
64666         * tests/unictype/test-pr_alphabetic.c: Regenerated.
64667         * tests/unictype/test-pr_bidi_arabic_digit.c: Regenerated.
64668         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Regenerated.
64669         * tests/unictype/test-pr_bidi_boundary_neutral.c: Regenerated.
64670         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Regenerated.
64671         * tests/unictype/test-pr_bidi_left_to_right.c: Regenerated.
64672         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Regenerated.
64673         * tests/unictype/test-pr_bidi_other_neutral.c: Regenerated.
64674         * tests/unictype/test-pr_combining.c: Regenerated.
64675         * tests/unictype/test-pr_dash.c: Regenerated.
64676         * tests/unictype/test-pr_decimal_digit.c: Regenerated.
64677         * tests/unictype/test-pr_default_ignorable_code_point.c: Regenerated.
64678         * tests/unictype/test-pr_deprecated.c: Regenerated.
64679         * tests/unictype/test-pr_diacritic.c: Regenerated.
64680         * tests/unictype/test-pr_extender.c: Regenerated.
64681         * tests/unictype/test-pr_format_control.c: Regenerated.
64682         * tests/unictype/test-pr_grapheme_base.c: Regenerated.
64683         * tests/unictype/test-pr_grapheme_extend.c: Regenerated.
64684         * tests/unictype/test-pr_grapheme_link.c: Regenerated.
64685         * tests/unictype/test-pr_id_continue.c: Regenerated.
64686         * tests/unictype/test-pr_id_start.c: Regenerated.
64687         * tests/unictype/test-pr_ideographic.c: Regenerated.
64688         * tests/unictype/test-pr_ignorable_control.c: Regenerated.
64689         * tests/unictype/test-pr_lowercase.c: Regenerated.
64690         * tests/unictype/test-pr_math.c: Regenerated.
64691         * tests/unictype/test-pr_numeric.c: Regenerated.
64692         * tests/unictype/test-pr_other_alphabetic.c: Regenerated.
64693         * tests/unictype/test-pr_other_default_ignorable_code_point.c:
64694         Regenerated.
64695         * tests/unictype/test-pr_other_grapheme_extend.c: Regenerated.
64696         * tests/unictype/test-pr_other_id_continue.c: Regenerated.
64697         * tests/unictype/test-pr_other_lowercase.c: Regenerated.
64698         * tests/unictype/test-pr_other_math.c: Regenerated.
64699         * tests/unictype/test-pr_punctuation.c: Regenerated.
64700         * tests/unictype/test-pr_sentence_terminal.c: Regenerated.
64701         * tests/unictype/test-pr_soft_dotted.c: Regenerated.
64702         * tests/unictype/test-pr_terminal_punctuation.c: Regenerated.
64703         * tests/unictype/test-pr_unassigned_code_value.c: Regenerated.
64704         * tests/unictype/test-pr_unified_ideograph.c: Regenerated.
64705         * tests/unictype/test-pr_uppercase.c: Regenerated.
64706         * tests/unictype/test-pr_xid_continue.c: Regenerated.
64707         * tests/unictype/test-pr_xid_start.c: Regenerated.
64708         * tests/unictype/test-pr_zero_width.c: Regenerated.
64710         Update to Unicode 5.1.0.
64711         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0487,
64712         U+0616..U+061A, U+0A51, U+0A75, U+0B44, U+0B62..U+0B63, U+0C62..U+0C63,
64713         U+0D44, U+0D62..U+0D63, U+1033..U+1035, U+103A, U+103D..U+103E,
64714         U+105E..U+1060, U+1071..U+1074, U+1082, U+1085..U+1086, U+108D,
64715         U+1B80..U+1B81, U+1BA2..U+1BA5, U+1BA8..U+1BA9, U+1C2C..U+1C33,
64716         U+1C36..U+1C37, U+1DCB..U+1DE6, U+2064, U+20F0, U+2DE0..U+2DFF,
64717         U+A66F..U+A672, U+A67C..U+A67D, U+A8C4, U+A926..U+A92D, U+A947..U+A951,
64718         U+AA29..U+AA2E, U+AA31..U+AA32, U+AA35..U+AA36, U+AA43, U+AA4C,
64719         U+FE24..U+FE26, U+101FD. Remove U+1929..U+192B.
64720         (nonspacing_table_ind): Update.
64721         * tests/uniwidth/test-uc_width2.sh: Update expected result.
64723         Update to Unicode 5.1.0.
64724         * lib/uniname/gen-uninames.lisp (main): Add the range 0x1Fxxx to the
64725         code transform.
64726         * lib/uniname/uniname.c (unicode_character_name,
64727         unicode_name_character): Add the range 0x1Fxxx to the code transform.
64728         * lib/uniname/uninames.h: Regenerated.
64729         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.1.0.
64731 2009-02-07  Bruno Haible  <bruno@clisp.org>
64733         Merge gen-ctype and gen-lbrk into a single program.
64734         * lib/gen-uni-tables.c: New file, incorporating
64735         lib/unictype/gen-ctype.c and lib/unilbrk/gen-lbrk.c.
64736         Add directory prefixes to the names of the generated files.
64737         * lib/unictype/gen-ctype.c: Remove file.
64738         * lib/unilbrk/gen-lbrk.c: Remove file.
64739         * modules/gen-uni-tables: New file.
64740         * modules/unictype/gen-ctype: Remove file.
64741         * modules/unilbrk/gen-lbrk: Remove file.
64743 2009-02-07  Bruno Haible  <bruno@clisp.org>
64745         * lib/unistr.h (u8_strcoll, u16_strcoll, u32_strcoll): New declations.
64747         New module 'unistr/u32-strcoll'.
64748         * modules/unistr/u32-strcoll: New file.
64749         * lib/unistr/u32-strcoll.c: New file.
64751         New module 'unistr/u16-strcoll'.
64752         * modules/unistr/u16-strcoll: New file.
64753         * lib/unistr/u16-strcoll.c: New file.
64755         New module 'unistr/u8-strcoll'.
64756         * modules/unistr/u8-strcoll: New file.
64757         * lib/unistr/u8-strcoll.c: New file.
64758         * lib/unistr/u-strcoll.h: New file.
64760 2009-02-07  Bruno Haible  <bruno@clisp.org>
64762         * test-mbrtowc4.sh (LOCALE_ZH_CN): Fix default value.
64763         * test-mbsnrtowcs4.sh (LOCALE_ZH_CN): Likewise.
64764         * test-mbsrtowcs4.sh (LOCALE_ZH_CN): Likewise.
64765         * test-wcrtomb.sh (LOCALE_ZH_CN): Likewise.
64766         * test-wcsnrtombs4.sh (LOCALE_ZH_CN): Likewise.
64767         * test-wcsrtombs4.sh (LOCALE_ZH_CN): Likewise.
64769 2009-02-07  Bruno Haible  <bruno@clisp.org>
64771         Make 64-bit clean.
64772         * lib/unictype/gen-ctype.c (output_predicate, output_category,
64773         output_combclass, output_bidi_category, output_decimal_digit,
64774         output_digit, output_numeric, output_mirror, output_scripts,
64775         output_ident_category): Use proper width specifier in format strings.
64777 2009-02-07  Bruno Haible  <bruno@clisp.org>
64779         * doc/posix-functions/dirfd.texi: Clarify situation on mingw. Document
64780         failure behaviour.
64782 2009-02-07  Jim Meyering  <meyering@redhat.com>
64784         regex: avoid compilation failure with upcoming gcc-4.4
64785         * lib/regex_internal.h: Revert e48d8b47fb3eee81d341b71c3e006efe9e3433a7
64786         [workaround for PGC prior to 6.1-2].  Otherwise, we'd get this:
64787         "... error: integer overflow in preprocessor expression".
64789 2009-02-05  Ben Pfaff  <blp@gnu.org>
64791         Fix link errors on Windows when close module is used.
64792         * modules/close: Add $(LIB_CLOSE) to Link section.
64793         * m4/close.m4 (gl_REPLACE_CLOSE): Substitute -lws2_32 into
64794         $(LIB_CLOSE) on Windows.
64796 2009-02-05  Jim Meyering  <meyering@redhat.com>
64798         still avoid unused-parameter warnings, but do it cleanly
64799         * lib/fsusage.c (UNUSED_PARAM): Remove definition.
64800         (get_fs_usage): Cast to void instead.
64801         * lib/mountlist.c (UNUSED_PARAM): Remove definition.
64802         (dev_from_mount_options, read_file_system_list): Cast to void.
64803         Prompted by Bruno Haible.
64805 2009-02-04  Jim Meyering  <meyering@redhat.com>
64807         fsusage.c: correct copyright year
64808         * lib/fsusage.c: Reflect year in which the change is pushed into
64810         avoid misc. warnings
64811         * lib/fsusage.c (UNUSED_PARAM): Define.
64812         (get_fs_usage): Mark parameter "disk" as unused.
64813         * lib/getugroups.c (getgrent): Use "void" in prototype.
64814         * lib/mountlist.c: Mark unused parameters.
64815         (read_file_system_list): Declare a local with "const".
64816         * lib/nanosleep.c (getnow): Declare static.
64817         * lib/strftime.c: Include strftime.h, for declaration of nstrftime.
64819         dirfd: set errno upon failure
64820         * lib/dirfd.c: Include <errno.h>.
64821         Set errno to ENOTSUP when returning -1.
64822         * modules/dirfd (Depends-on): Add errno.
64823         Suggested by John Kodis <kodis@comcast.net>.
64825 2009-02-01  Bruno Haible  <bruno@clisp.org>
64827         Don't assume sizeof (long) >= sizeof (void *).
64828         * lib/memcmp.c: Include stdint.h.
64829         (memcmp_bytes): Change argument types to op_t. Change type of srcp1,
64830         srcp2 to 'const byte *'.
64831         (memcmp_common_alignment, memcmp_not_common_alignment): Change argument
64832         types to uintptr_t.
64833         (rpl_memcmp): Change type of srcp1, srcp2 to 'uintptr_t'.
64834         * modules/memcmp (Depends-on): Add stdint.
64835         Reported by Ozkan Sezer <sezeroz@gmail.com>.
64837 2009-01-30  Eric Blake  <ebb9@byu.net>
64839         fix more require-before-expand issues
64840         * m4/pmccabe2html.m4 (gl_PMCCABE2HTML): Require, rather than
64841         expand, AC_PROG_AWK.
64842         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Use AC_DEFUN_ONCE.
64844 2009-01-28  Eric Blake  <ebb9@byu.net>
64846         version-etc: use consistent URL formatting
64847         * lib/version-etc.c (emit_bug_reporting_address, version_etc_va):
64848         Improve formatting.  Use fputs for string without %.
64850 2009-01-28  Jim Meyering  <meyering@redhat.com>
64852         00gnulib.m4: add m4 quotes in shell comment to avoid autoconf warning
64853         * m4/00gnulib.m4 (AC_DEFUN_ONCE): Add quotes to avoid an
64854         "underquoted definition of NAME" from autoconf-2.59.
64856 2009-01-28  Bruno Haible  <bruno@clisp.org>
64858         * doc/gnulib.texi: Add "Obsolete modules" to index.
64860 2009-01-28  Jim Meyering  <meyering@redhat.com>
64862         useless-if-before-free: recognize more variants
64863         * build-aux/useless-if-before-free: Also recognize e.g.,
64864         if (NULL != p) free (p);
64866 2009-01-27  Mark McLoughlin  <markmc@redhat.com>
64868         test-getaddrinfo: skip (don't fail) this test when there's no network
64869         * tests/test-getaddrinfo.c: Skip test upon failure with EAI_AGAIN,
64870         on the presumption that it means you lack network access.
64872 2009-01-26  Jim Meyering  <meyering@redhat.com>
64874         fflush: avoid warnings on modern systems
64875         * lib/fflush.c (rpl_fflush): Move declarations of locals,
64876         pos and result, into scopes where they're used.
64878 2009-01-26  Eric Blake  <ebb9@byu.net>
64880         Silence warning reintroduced by recent extensions patch.
64881         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS)
64882         (gl_USE_SYSTEM_EXTENSIONS): Use AC_DEFUN_ONCE to silence newer
64883         autoconf.
64885         Backport improved autoconf semantics of AC_DEFUN_ONCE.
64886         * m4/00gnulib.m4: New file.
64887         * gnulib-tool (func_get_filelist): Always use it.
64888         * m4/gnulib-common.m4 (gl_COMMON): Force the file to be used.
64889         Reported by Bruno Haible, with suggestions from Paolo Bonzini.
64891 2009-01-25  Bruno Haible  <bruno@clisp.org>
64893         Make test-quotearg work on MacOS X and AIX.
64894         * tests/test-quotearg.sh: New file.
64895         * tests/locale/fr/LC_MESSAGES/test-quotearg.po: New file.
64896         * tests/locale/fr/LC_MESSAGES/test-quotearg.mo: New file.
64897         * tests/test-quotearg.c: Include <locale.h> and gettext.h. Don't
64898         include <libintl.h>.
64899         (fake_locale): Remove variable.
64900         (gettext, dgettext, dcgettext): Remove functions.
64901         (main): Instead of setting a fake locale, set a real locale. Call
64902         textdomain and bindtextdomain.
64903         * modules/quotearg-tests (Files): Add the new files.
64904         (Depends-on): Add gettext, setenv, unsetenv.
64905         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
64906         (Makefile.am): Add test-quotearg.sh to TESTS, remove test-quotearg.
64907         Augment TESTS_ENVIRONMENT.
64909 2009-01-25  Bruno Haible  <bruno@clisp.org>
64911         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove special code that hid the
64912         fr_FR.ISO8859-1 locale on MacOS X.
64913         * m4/locale-ja.m4 (gt_LOCALE_JA): Remove special code that hid the
64914         ja_JP.eucJP locale on MacOS X.
64915         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Remove special code that hid the
64916         zh_CN.GB18030 locale on MacOS X.
64918 2009-01-25  Bruno Haible  <bruno@clisp.org>
64920         Avoid link errors on MacOS X 10.3.
64921         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Add initializer.
64922         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
64924 2009-01-25  Bruno Haible  <bruno@clisp.org>
64926         * lib/pipe.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
64927         * m4/pipe.m4 (gl_PIPE): Remove tests for vfork() based code.
64928         * modules/pipe (Files): Remove m4/posix_spawn.m4.
64929         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
64930         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2,
64931         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
64932         posix_spawnattr_init, posix_spawnattr_setsigmask,
64933         posix_spawnattr_setflags, posix_spawnattr_destroy.
64935         * lib/execute.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
64936         * m4/execute.m4 (gl_EXECUTE): Remove tests for vfork() based code.
64937         * modules/execute (Files): Remove m4/posix_spawn.m4.
64938         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
64939         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
64940         posix_spawnattr_init, posix_spawnattr_setsigmask,
64941         posix_spawnattr_setflags, posix_spawnattr_destroy.
64943 2009-01-25  Bruno Haible  <bruno@clisp.org>
64945         * lib/glthread/threadlib.c: Include <stdlib.h>.
64947 2009-01-25  Bruno Haible  <bruno@clisp.org>
64949         * lib/glthread/threadlib.c (dummy): New declaration.
64951 2009-01-25  Bruno Haible  <bruno@clisp.org>
64953         * lib/mbrtowc.c (mbrtowc): Distinguish invalid and incomplete
64954         multibyte characters also for the GB18030 encoding. Don't crash when
64955         the encoding is unknown and nstate = 0. Needed on OSF/1 5.1.
64957 2009-01-25  Bruno Haible  <bruno@clisp.org>
64959         Avoid redefining 'struct random_data' on OSF/1 5.1.
64960         * lib/stdlib.in.h: Include <random.h> if it exists.
64961         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether <random.h> exists. Set
64962         HAVE_RANDOM_H. Include <random.h> when testing whether
64963         'struct random_data' exists.
64964         * modules/stdlib (Makefile.am): Substitute HAVE_RANDOM_H.
64966 2009-01-25  Bruno Haible  <bruno@clisp.org>
64968         Don't install charset.alias on MacOS X >= 10.3.
64969         * lib/localcharset.c (DARWIN7): New macro.
64970         (get_charset_aliases): Hardcode the result for Darwin7.
64971         * modules/localcharset (install-exec-local): Don't install
64972         charset.alias on MacOS X >= 10.3, if the file does not yet exist.
64974 2009-01-25  Bruno Haible  <bruno@clisp.org>
64976         Don't install charset.alias on mingw and Cygwin.
64977         * modules/localcharset (install-exec-local): Don't install
64978         charset.alias on mingw and Cygwin, if the file does not yet exist.
64979         The result for these platforms is hardcoded in localcharset.c.
64981 2009-01-25  Bruno Haible  <bruno@clisp.org>
64983         Make it possible again to use AC_GNU_SOURCE together with gnulib.
64984         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_GNU_SOURCE
64985         before requiring AC_USE_SYSTEM_EXTENSIONS.
64987 2009-01-25  Jim Meyering  <meyering@redhat.com>
64989         c-strtod: avoid warnings
64990         * lib/c-strtod.c (C_STRTOD): Cast nptr to (char *) to avoid
64991         "assignment discards qualifiers from pointer target type" warnings.
64993 2009-01-24  Bruno Haible  <bruno@clisp.org>
64995         Add support for non-UTF-8 locales on MacOS X.
64996         * lib/config.charset: Add CP1131, ARMSCII-8, PT154 to the list of
64997         canonical encodings. For Darwin 7 and newer, don't map traditional
64998         encodings to UTF-8.
64999         Reported by Vincent Lefevre <vincent@vinc17.org>
65000         at <http://savannah.gnu.org/bugs/?25235>.
65002 2009-01-24  Bruno Haible  <bruno@clisp.org>
65004         * doc/gnulib.texi (Obsolete modules): New section.
65005         Reported by Mike Frysinger <vapier@gentoo.org>.
65007 2009-01-24  Bruno Haible  <bruno@clisp.org>
65009         * doc/Makefile (%.pdf): Clarify where to find texmf.cnf.
65010         (%.dvi): New rule.
65012 2009-01-24  Bruno Haible  <bruno@clisp.org>
65014         * lib/c-strtod.h (c_strtod, c_strtold): Adjust specification.
65015         Reported by Eric Blake.
65017 2009-01-24  Bruno Haible  <bruno@clisp.org>
65019         * lib/c-stack.c (segv_handler): If !HAVE_XSI_STACK_OVERFLOW_HEURISTIC,
65020         set signo = 0 also if info->si_code <= 0. Needed on HP-UX 11.11.
65021         Reported by Gary V. Vaughan <gary@gnu.org>.
65023 2009-01-24  Bruno Haible  <bruno@clisp.org>
65025         * lib/c-strtod.h (c_strtod, c_strtold): Add specification.
65027 2009-01-23  Bruno Haible  <bruno@clisp.org>
65029         Make c-strtod, c-strtold usable in libraries.
65030         * lib/c-strtod.c: Include string.h instead of xalloc.h.
65031         (C_STRTOD): Call strdup instead of xstrdup.
65032         * modules/c-strtod (Depends-on): Add strdup-posix, remove xalloc.
65033         * modules/c-strtold (Depends-on): Likewise.
65034         * doc/c-strtod.texi: Remove the sentence mentioning xalloc_die.
65035         * NEWS: Mention the change.
65036         Reported by Michael Gold <mgold@ncf.ca>.
65038 2009-01-23  Jim Meyering  <meyering@redhat.com>
65040         c-strtod: when ENDPTR is non-NULL, set *ENDPTR in new failure path
65041         * lib/c-strtod.c (C_STRTOD) [LC_ALL_MASKC]: Ensure that when
65042         ENDPTR is non-NULL, *ENDPTR is set to NPTR upon failure.
65044 2009-01-23  Simon Josefsson  <simon@josefsson.org>
65046         * lib/version-etc.c: Add emit_bug_reporting_address, inspired by
65047         GNU CoreUtils.
65048         * lib/version-etc.h: Add prototype for emit_bug_reporting_address.
65049         * modules/version-etc (Description): Update.
65051 2009-01-22  Bruno Haible  <bruno@clisp.org>
65053         Cache the C locale object.
65054         * lib/c-strtod.c (c_locale_cache): New variable.
65055         (c_locale): New function.
65056         (C_STRTOD): Use it, and don't call freelocale.
65057         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD): Require AC_C_INLINE.
65058         Suggested by Paolo Bonzini.
65060 2009-01-21  Bruno Haible  <bruno@clisp.org>
65062         * lib/getloadavg.c (getloadavg): Check c_strtod result against error
65063         conditions other than overflow.
65065 2009-01-21  Bruno Haible  <bruno@clisp.org>
65067         * lib/c-strtod.c: Include errno.h.
65068         (C_STRTOD): Check against NULL return from newlocale. Preserve errno
65069         value from STRTOD_L and STRTOD.
65071 2009-01-21  Bruno Haible  <bruno@clisp.org>
65072         and Jim Meyering  <meyering@redhat.com>
65074         nanosleep: skip configure test (fail it) for apple universal builds
65075         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_MULTIARCH. In Apple
65076         universal builds, assume that nanosleep does not work.
65077         * modules/nanosleep (Depends-on): Add multiarch.
65079         mktime: skip configure test (fail it) for apple universal builds
65080         * m4/mktime.m4 (AC_FUNC_MKTIME): Require gl_MULTIARCH. In Apple
65081         universal builds, assume that mktime does not work.
65082         * modules/mktime (Depends-on): Add multiarch.
65084 2009-01-21  Eric Blake  <ebb9@byu.net>
65086         multiarch: avoid expand-before-require warning
65087         * modules/multiarch (configure.ac): Require, rather than expand,
65088         gl_MULTIARCH.
65089         * m4/multiarch.m4 (gl_MULTIARCH_BODY): Merge...
65090         (gl_MULTIARCH): ...into this macro, and use AC_DEFUN_ONCE to
65091         enforce that all clients require it.  Partial reversion of
65092         2008-12-29 patch.
65094         error: avoid expand-before-require warning
65095         * modules/errno (configure.ac): Require, rather than expand,
65096         gl_HEADER_ERRNO_H.
65097         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Merge...
65098         (gl_HEADER_ERRNO_H): ...into this macro, and use AC_DEFUN_ONCE to
65099         enforce that all clients require it.
65101         gnulib-tool: avoid warnings from using obsolete AC_GNU_SOURCE
65102         * gnulib-tool (func_dest_tmpfilename, func_create_testdir): Using
65103         obsolete AC_GNU_SOURCE causes out-of-order expansion; avoid it,
65104         and rely solely on gl_USE_SYSTEM_EXTENSIONS.
65106 2009-01-21  Paolo Bonzini  <bonzini@gnu.org>
65108         Revert:
65109         2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
65111         regex: do not depend on obsolete modules.
65112         * modules/regex: Remove memcmp and memmove.
65114 2009-01-20  Bruno Haible  <bruno@clisp.org>
65116         Make the 'link' module link on Windows NT 4.
65117         * lib/link.c (_WIN32_WINNT): Don't define.
65118         (CreateHardLinkFuncType): New type.
65119         (CreateHardLinkFunc, initialized): New variables.
65120         (initialize): New function.
65121         (link): Invoke CreateHardLink indirectly through the function pointer.
65123 2009-01-20  Bruno Haible  <bruno@clisp.org>
65125         Fix compilation failure on mingw.
65126         * tests/test-link.c (main): Don't assume that EOPNOTSUPP exists.
65128 2009-01-20  Michael Gold  <mgold@ncf.ca>  (tiny change)
65130         * doc/c-strtod.texi: Mention a couple of restrictions.
65132 2009-01-20  Jim Meyering  <meyering@redhat.com>
65134         gettimeofday: move more declarations out of functions
65135         * lib/gettimeofday.c: Move extern declarations of tzset and
65136         gmtime out of containing functions.  Prompted by Bruno Haible.
65138 2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
65140         regex: do not depend on obsolete modules.
65141         * modules/regex: Remove memcmp and memmove.
65143 2009-01-19  Bruno Haible  <bruno@clisp.org>
65145         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
65146         * modules/uniconv/u16-conv-from-enc (configure.ac): Require
65147         gl_BIGENDIAN, not AC_C_BIGENDIAN.
65148         * modules/uniconv/u16-conv-to-enc (configure.ac): Likewise.
65149         * modules/uniconv/u16-strconv-to-enc (configure.ac): Likewise.
65151 2009-01-19  Bruno Haible  <bruno@clisp.org>
65153         * tests/test-link.c: Include <errno.h>.
65154         (main): Exit with code 77 when a hard link cannot be created due to
65155         the file system.
65156         * tests/test-link.sh: Skip test when a hard link cannot be created due
65157         to the file system.
65158         Suggested by Eric Blake.
65160 2009-01-19  Martin Lambers  <marlam@marlam.de>
65162         * modules/link-tests: New file.
65163         * tests/test-link.sh: New file.
65164         * tests/test-link.c: New file.
65166 2009-01-19  Eric Blake  <ebb9@byu.net>
65168         doc: mention another function added in cygwin 1.7.0
65169         * doc/glibc-functions/glob_pattern_p.texi (glob_pattern_p):
65170         Another new function in cygwin 1.7.
65172 2009-01-19  Bruno Haible  <bruno@clisp.org>
65174         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
65175         * m4/gnulib-common.m4 (gl_BIGENDIAN): New macro.
65176         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require
65177         gl_BIGENDIAN, not AC_C_BIGENDIAN.
65178         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
65179         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
65180         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
65181         * m4/md4.m4 (gl_MD4): Likewise.
65182         * m4/md5.m4 (gl_MD5): Likewise.
65183         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Likewise.
65184         * m4/sha1.m4 (gl_SHA1): Likewise.
65185         * m4/sha256.m4 (gl_SHA256): Likewise.
65186         * m4/sha512.m4 (gl_SHA512): Likewise.
65188 2009-01-19  Bruno Haible  <bruno@clisp.org>
65190         * modules/uniname/uniname-tests (Depends-on): Add progname.
65191         * tests/uniname/test-uninames.c: Include progname.h.
65192         (main): Call set_program_name.
65194         * modules/unistdio/u8-vsprintf-tests (Depends-on): Add progname.
65195         * tests/unistdio/test-u8-vsprintf1.c: Include progname.h.
65196         (main): Call set_program_name.
65198         * modules/unistdio/u8-vsnprintf-tests (Depends-on): Add progname.
65199         * tests/unistdio/test-u8-vsnprintf1.c: Include progname.h.
65200         (main): Call set_program_name.
65202         * modules/unistdio/u16-vsprintf-tests (Depends-on): Add progname.
65203         * tests/unistdio/test-u16-vsprintf1.c: Include progname.h.
65204         (main): Call set_program_name.
65206         * modules/unistdio/u16-vsnprintf-tests (Depends-on): Add progname.
65207         * tests/unistdio/test-u16-vsnprintf1.c: Include progname.h.
65208         (main): Call set_program_name.
65210         * modules/unistdio/u32-vsprintf-tests (Depends-on): Add progname.
65211         * tests/unistdio/test-u32-vsprintf1.c: Include progname.h.
65212         (main): Call set_program_name.
65214         * modules/unistdio/u32-vsnprintf-tests (Depends-on): Add progname.
65215         * tests/unistdio/test-u32-vsnprintf1.c: Include progname.h.
65216         (main): Call set_program_name.
65218         * modules/unistdio/ulc-vsprintf-tests (Depends-on): Add progname.
65219         * tests/unistdio/test-ulc-vsprintf1.c: Include progname.h.
65220         (main): Call set_program_name.
65222         * modules/unistdio/ulc-vsnprintf-tests (Depends-on): Add progname.
65223         * tests/unistdio/test-ulc-vsnprintf1.c: Include progname.h.
65224         (main): Call set_program_name.
65226 2009-01-19  Eric Blake  <ebb9@byu.net>
65228         test-unistd: test previous patch
65229         * tests/test-unistd.c: Test *_FILENO macros.
65231         unistd: guarantee STDIN_FILENO here, for OS/2 EMX
65232         * lib/unistd.in.h (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
65233         Guarantee a definition.
65234         * doc/posix-headers/unistd.texi (unistd.h): Document the bug.
65235         * modules/unistd-safer (Depends-on): Add dependency on unistd.
65236         * lib/c-stack.c (STDERR_FILENO): Rely on <unistd.h>.
65237         * lib/dup-safer.c (STDERR_FILENO): Likewise.
65238         * lib/execute.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
65239         Likewise.
65240         * lib/fd-safer.c (STDIN_FILENO, STDERR_FILENO): Likewise.
65241         * lib/fopen-safer.c (STDERR_FILENO): Likewise.
65242         * lib/pipe.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
65243         Likewise.
65244         * lib/tmpfile-safer.c (STDERR_FILENO): Likewise.
65245         * tests/test-posix_spawn1.c (STDIN_FILENO, STDOUT_FILENO)
65246         (STDERR_FILENO): Likewise.
65247         * tests/test-posix_spawn2.c (STDIN_FILENO, STDOUT_FILENO)
65248         (STDERR_FILENO): Likewise.
65249         * tests/test-posix_spawn3.c (STDIN_FILENO, STDOUT_FILENO)
65250         (STDERR_FILENO): Likewise.
65251         Reported by Elbert Pol.
65253 2009-01-19  Eric Blake  <ebb9@byu.net>
65255         doc: mention more functions added in cygwin 1.7.0
65256         * doc/posix-functions/abort.texi (abort): Update wording related
65257         to cygwin.
65258         * doc/posix-functions/daylight.texi (daylight): Likewise.
65259         * doc/posix-functions/optarg.texi (optarg): Likewise.
65260         * doc/posix-functions/optarg.texi (opterr): Likewise.
65261         * doc/posix-functions/optarg.texi (optind): Likewise.
65262         * doc/posix-functions/optarg.texi (optopt): Likewise.
65263         * doc/posix-functions/wprintf.texi (wprintf): Cygwin wprintf never
65264         worked in 1.5.x, and was withdrawn in 1.7.
65265         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
65266         * doc/posix-functions/fprintf.texi (fprintf): Tighten mention of
65267         cygwin versions.
65268         * doc/posix-functions/perror.texi (perror): Likewise.
65269         * doc/posix-functions/printf.texi (printf): Likewise.
65270         * doc/posix-functions/snprintf.texi (snprintf): Likewise.
65271         * doc/posix-functions/sprintf.texi (sprintf): Likewise.
65272         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
65273         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
65274         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
65275         * doc/posix-functions/vsprintf.texi (vsprintf): Likewise.
65276         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
65277         Likewise.
65278         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
65279         Likewise.
65280         * doc/glibc-functions/cfmakeraw.texi (cfmakeraw): Cygwin 1.7 adds
65281         this function.
65282         * doc/glibc-functions/in6addr_any.texi (in6addr_any): Likewise.
65283         * doc/glibc-functions/in6addr_loopback.texi (in6addr_loopback):
65284         Likewise.
65285         * doc/glibc-functions/updwtmpx.texi (updwtmpx): Likewise.
65286         * doc/posix-functions/_Exit_C99.texi (_Exit): Likewise.
65287         * doc/posix-functions/confstr.texi (confstr): Likewise.
65288         * doc/posix-functions/dprintf.texi (dprintf): Likewise.
65289         * doc/posix-functions/fgetwc.texi (fgetwc): Likewise.
65290         * doc/posix-functions/fgetws.texi (fgetws): Likewise.
65291         * doc/posix-functions/fputwc.texi (fputwc): Likewise.
65292         * doc/posix-functions/fputws.texi (fputws): Likewise.
65293         * doc/posix-functions/fwide.texi (fwide): Likewise.
65294         * doc/posix-functions/getwc.texi (getwc): Likewise.
65295         * doc/posix-functions/getwchar.texi (getwchar): Likewise.
65296         * doc/posix-functions/putwc.texi (putwc): Likewise.
65297         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
65298         * doc/posix-functions/sigignore.texi (sigignore): Likewise.
65299         * doc/posix-functions/ungetwc.texi (ungetwc): Likewise.
65300         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
65301         * doc/posix-functions/wcpcpy.texi (wcpcpy): Likewise.
65302         * doc/posix-functions/wcpncpy.texi (wcpncpy): Likewise.
65303         * doc/posix-functions/wcstol.texi (wcstol): Likewise.
65304         * doc/posix-functions/wcstoll.texi (wcstoll): Likewise.
65305         * doc/posix-functions/wcstoul.texi (wcstoul): Likewise.
65306         * doc/posix-functions/wcstoull.texi (wcstoull): Likewise.
65307         * doc/posix-functions/wcsxfrm.texi (wcsxfrm): Likewise.
65309 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
65311         ioctl: avoid warning: no previous prototype for 'rpl_ioctl'
65312         * lib/ioctl.c: Include <sys/ioctl.h>.
65314 2009-01-19  Simon Josefsson  <simon@josefsson.org>
65316         * modules/getdate-tests (Depends-on): Add progname.
65317         * tests/test-getdate.c: Use progname module, to avoid link errors
65318         on non-glibc systems.
65320 2009-01-18  Simon Josefsson  <simon@josefsson.org>
65322         * modules/filenamecat-tests (Depends-on): Add progname.
65323         * modules/fstrcmp-tests (Depends-on): Likewise.
65325         * tests/test-filenamecat.c: Use progname module, to avoid link
65326         errors on non-glibc systems.
65327         * tests/test-fstrcmp.c: Likewise.
65329 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
65331         gettimeofday: avoid warning: nested extern declaration of 'localtime'
65332         * lib/gettimeofday.c: Move extern declaration out of function.
65334 2009-01-18  Bruno Haible  <bruno@clisp.org>
65336         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mblen and mbrlen.
65337         * lib/strftime.c (HAVE_MBLEN, HAVE_MBRLEN): Remove macros.
65338         (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 on all platforms except OSF/1.
65340 2009-01-18  Bruno Haible  <bruno@clisp.org>
65342         * lib/strftime.c (MEMPCPY): Remove unused macro.
65343         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mempcpy.
65345 2009-01-18  Martin Lambers  <marlam@marlam.de>
65347         New module 'link'.
65348         * lib/unistd.in.h (link): New declaration.
65349         * lib/link.c: New file.
65350         * m4/link.m4: New file.
65351         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_LINK,
65352         HAVE_LINK.
65353         * modules/unistd (Makefile.am): Substitute GNULIB_LINK, HAVE_LINK.
65354         * modules/link: New file.
65355         * doc/posix-functions/link.texi: Mention the new module.
65357 2009-01-18  Bruno Haible  <bruno@clisp.org>
65359         * tests/test-avltree_list.c (main): Call set_program_name.
65360         * tests/test-avltree_oset.c (main): Likewise.
65361         * tests/test-obstack-printf.c: Include progname.h.
65362         (main): Call set_program_name.
65363         * tests/test-quotearg.c: Include progname.h.
65364         (main): Call set_program_name.
65365         * tests/test-xmemdup0.c: Include progname.h.
65366         (main): Call set_program_name.
65368 2009-01-18  Bruno Haible  <bruno@clisp.org>
65370         New module 'alphasort'.
65371         * lib/dirent.in.h (alphasort): New declaration.
65372         * lib/alphasort.c: New file, from glibc with modifications.
65373         * m4/alphasort.m4: New file.
65374         * modules/alphasort: New file.
65375         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_ALPHASORT,
65376         HAVE_ALPHASORT.
65377         * modules/dirent (Makefile.am): Substitute GNULIB_ALPHASORT,
65378         HAVE_ALPHASORT.
65379         * doc/posix-functions/alphasort.texi: Mention the new module and the
65380         portability problems.
65382 2009-01-18  Bruno Haible  <bruno@clisp.org>
65384         New module 'scandir'.
65385         * lib/dirent.in.h (scandir): New declaration.
65386         * lib/scandir.c: New file, from glibc with modifications.
65387         * m4/scandir.m4: New file.
65388         * modules/scandir: New file.
65389         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_SCANDIR,
65390         HAVE_SCANDIR.
65391         * modules/dirent (Makefile.am): Substitute GNULIB_SCANDIR,
65392         HAVE_SCANDIR.
65393         * doc/posix-functions/scandir.texi: Mention the new module and the
65394         portability problems.
65396 2009-01-17  Bruno Haible  <bruno@clisp.org>
65398         * gnulib-tool (func_remove_prefix): Escape all dots in the prefix.
65399         Update documentation.
65400         (func_remove_suffix): Escape all dots in the suffix. Update
65401         documentation.
65402         (func_filter_filelist): Update documentation.
65403         Reported by Ralf Wildenhues.
65405 2009-01-17  Bruno Haible  <bruno@clisp.org>
65407         * modules/dprintf-posix-tests: New file.
65408         * tests/test-dprintf-posix.sh: New file.
65409         * tests/test-dprintf-posix.c: New file.
65411         New modules 'dprintf', 'dprintf-posix'.
65412         * lib/stdio.in.h (dprintf): New declaration.
65413         * lib/dprintf.c: New file.
65414         * m4/dprintf.m4: New file.
65415         * m4/dprintf-posix.m4: New file.
65416         * modules/dprintf: New file.
65417         * modules/dprintf-posix: New file.
65418         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_DPRINTF,
65419         HAVE_DPRINTF, REPLACE_DPRINTF.
65420         * modules/stdio (Makefile.am): Substitute also GNULIB_DPRINTF,
65421         HAVE_DPRINTF, REPLACE_DPRINTF.
65422         * doc/posix-functions/dprintf.texi: Mention the new modules.
65424 2009-01-17  Bruno Haible  <bruno@clisp.org>
65426         * modules/vdprintf-posix-tests: New file.
65427         * tests/test-vdprintf-posix.sh: New file.
65428         * tests/test-vdprintf-posix.c: New file.
65430         New modules 'vdprintf', 'vdprintf-posix'.
65431         * lib/stdio.in.h (vdprintf): New declaration.
65432         * lib/vdprintf.c: New file.
65433         * m4/vdprintf.m4: New file.
65434         * m4/vdprintf-posix.m4: New file.
65435         * modules/vdprintf: New file.
65436         * modules/vdprintf-posix: New file.
65437         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_VDPRINTF,
65438         HAVE_VDPRINTF, REPLACE_VDPRINTF.
65439         * modules/stdio (Makefile.am): Substitute also GNULIB_VDPRINTF,
65440         HAVE_VDPRINTF, REPLACE_VDPRINTF.
65441         * doc/posix-functions/vdprintf.texi: Mention the new modules.
65443 2009-01-17  Bruno Haible  <bruno@clisp.org>
65445         Fix replacement of fopen on mingw.
65446         * m4/fopen.m4 (gl_FUNC_FOPEN): Define FOPEN_TRAILING_SLASH_BUG also on
65447         mingw.
65449 2009-01-17  Bruno Haible  <bruno@clisp.org>
65451         Fix compilation error on HP-UX 11.00, present since 2008-09-24.
65452         * lib/fopen.c: Include <sys/types.h> and <sys/types.h>.
65454 2009-01-17  Bruno Haible  <bruno@clisp.org>
65456         Avoid test-fflush2.sh failure on mingw.
65457         * tests/test-fflush2.c: Include binary-io.h.
65458         (main): Put standard input into binary mode.
65459         * modules/fflush-tests (Depends-on): Add binary-io.
65461 2009-01-17  Bruno Haible  <bruno@clisp.org>
65463         * lib/wchar.in.h: In another particular situation, include only the
65464         system's <wchar.h> file.
65465         (_GL_ALREADY_INCLUDING_WCHAR_H): New macro.
65466         Reported by Albert Chin-A-Young <china@thewrittenword.com>
65467         and Thomas Guyot-Sionnest <dermoth@aei.ca>.
65469 2009-01-17  Bruno Haible  <bruno@clisp.org>
65471         Support for stripping executables in --enable-relocatable.
65472         * build-aux/install-reloc: Expect one more argument, or an environment
65473         variable RELOC_STRIP_PROG. If set, strip the destination program and
65474         its wrapper.
65475         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV, set
65476         RELOC_STRIP_PROG.
65477         * doc/relocatable-maint.texi (Supporting Relocation): Mention the need
65478         to set RELOCATABLE_STRIP.
65479         * NEWS: Mention the new Makefile requirement.
65481 2009-01-17  Bruno Haible  <bruno@clisp.org>
65483         * build-aux/install-reloc: Remove debugging information left over by
65484         C compiler on MacOS X.
65486 2009-01-17  Bruno Haible  <bruno@clisp.org>
65488         Update use of _NSGetExecutablePath after API change in MacOS X 10.4.
65489         * lib/progreloc.c (find_executable): Fix type of pointer passed to
65490         _NSGetExecutablePath.
65492 2009-01-16  Jim Meyering  <meyering@redhat.com>
65494         strerror: avoid warnings about discarding "const"
65495         * lib/strerror.c (rpl_strerror): Instead of returning a const
65496         string from each and every "case", use a variable, and add a single
65497         cast after the switch.
65499 2009-01-16  Albert Chin-A-Young  <china@thewrittenword.com>
65501         * lib/arpa_inet.in.h: Add extern "C" block for C++.
65503 2009-01-16  Bruno Haible  <bruno@clisp.org>
65505         * m4/printf.m4 (gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99): Use an
65506         array initializer syntax that also works in C++ mode.
65507         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
65509 2009-01-16  Jim Meyering  <meyering@redhat.com>
65511         poll: suppress a warning
65512         * lib/poll.c: Use #pragma GCC diagnostic ignored "-Wtype-limits"
65513         to ignore "...unsigned expression < 0 is always false" warnings.
65515 2009-01-16  Daniel P. Berrange  <berrange@redhat.com>
65517         poll: remove declarations of unused variables
65518         * lib/poll.c (poll) [WIN32_NATIVE]: Remove declarations of unused
65519         sockbuf and optlen.
65521 2009-01-15  Bruno Haible  <bruno@clisp.org>
65523         Make fflush-after-ungetc POSIX compliant on BSD systems.
65524         * lib/fflush.c (clear_ungetc_buffer_preserving_position): New function.
65525         (clear_ungetc_buffer): Implement also for other systems.
65526         (rpl_fflush): On glibc systems, invoke
65527         clear_ungetc_buffer_preserving_position. Otherwise, invoke
65528         clear_ungetc_buffer after fetching the stream's position, not before.
65530 2009-01-15  Bruno Haible  <bruno@clisp.org>
65532         Make fflush-after-ungetc POSIX compliant on glibc systems.
65533         * m4/fflush.m4 (gl_FUNC_FFLUSH): Test also the behaviour of fflush
65534         after ungetc.
65535         * lib/fflush.c (clear_ungetc_buffer): Implement for glibc systems.
65536         (rpl_fflush): On glibc systems, simply call the system's fflush
65537         function after clearing the ungetc buffer.
65538         * lib/fseeko.c (rpl_fseeko): Don't try to lseek past the end of file.
65539         Instead, lseek only to the end of file, then use the system's fseeko
65540         for the rest. On glibc systems, reset the EOF indicator bit.
65542 2009-01-15  Jim Meyering  <meyering@redhat.com>
65544         openmp.m4: revert quote-adding change, for portability to older autoconf
65545         * m4/openmp.m4: Remove the quotes added on 2009-01-14.
65546         This reverts part of 42d1eda5dcce2d68deab7a642e7f29bcd7144a0d.
65547         Simon Josefsson noticed the problem when using autoconf-2.61.
65549 2009-01-15  Bruno Haible  <bruno@clisp.org>
65551         * tests/test-fflush2.sh: Invoke test-fflush2 twice.
65552         * tests/test-fflush2.c (ASSERT): Always fail.
65553         (main): Add two tests for fflush() after ungetc(), taking into account
65554         the Austin Group's clarification.
65555         Suggested by Eric Blake.
65557 2009-01-15  Albert Chin-A-Young  <china@thewrittenword.com>
65559         mktime.m4: remove K&R-style function prototypes
65560         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove K&R-style function prototypes
65561         for the Sun C++ compiler.
65563 2009-01-14  Bruno Haible  <bruno@clisp.org>
65565         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_WCHAR_H): New macro, defined
65566         while including <wchar.h>.
65567         * lib/wchar.in.h: In two particular situations on HP-UX, include only
65568         the system's <wchar.h> file.
65569         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
65571 2009-01-14  Bruno Haible  <bruno@clisp.org>
65573         * m4/csharp.m4: Don't mention gettext on the serial number line.
65574         * m4/csharpexec.m4: Likewise.
65575         * m4/eaccess.m4: Likewise.
65576         * m4/javaexec.m4: Likewise.
65577         * m4/sig_atomic_t.m4: Likewise.
65578         * m4/tmpdir.m4: Likewise.
65579         * m4/intldir.m4: Bump gettext version.
65580         * m4/lib-ld.m4: Likewise.
65582 2009-01-14  Bruno Haible  <bruno@clisp.org>
65584         * lib/progname.c (set_program_name): Add more comments.
65585         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
65587 2009-01-14  Simon Josefsson  <simon@josefsson.org>
65589         * lib/sys_stat.in.h: Include sys/types.h for nlink_t on systems
65590         were sys/stat.h does not define it.
65592 2009-01-14  Jim Meyering  <meyering@redhat.com>
65594         many *.m4 files: improve m4 quoting
65595         99% of this change was performed by running the following commands:
65596         git ls-files | grep '\.m4$' | xargs perl -pi \
65597           -e 's/(AC_\w+\()([^[()]+?)([,)])/$1\[$2]$3/g;' \
65598           -e 's/(AC_\w+\((?:\[[^,]+?\], ){1})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
65599           -e 's/(AC_\w+\((?:\[[^,]+?\], ){2})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
65600           -e 's/(AC_\w+\((?:\[[^,]+?\], ){3})([^,[()]+?)([,)])/$1\[$2]$3/g'
65601         perl -pi -e 's/\[\.\.\.\]/.../' m4/onceonly.m4
65602         The remainder were to add Copyright dates, increment serial numbers,
65603         undo some changes in comments, exclude m4/intl.m4, and add quotes
65604         around the "1" in ",1" where the unusual spacing prohibited the
65605         above regexps from doing the job.  For more details, see
65606         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16175>.
65607         * m4/acl.m4: Modified.
65608         * m4/afs.m4: Likewise.
65609         * m4/alloca.m4: Likewise.
65610         * m4/argp.m4: Likewise.
65611         * m4/argz.m4: Likewise.
65612         * m4/atexit.m4: Likewise.
65613         * m4/bison-i18n.m4: Likewise.
65614         * m4/bison.m4: Likewise.
65615         * m4/byteswap.m4: Likewise.
65616         * m4/c-stack.m4: Likewise.
65617         * m4/c-strtod.m4: Likewise.
65618         * m4/calloc.m4: Likewise.
65619         * m4/canonicalize-lgpl.m4: Likewise.
65620         * m4/chown.m4: Likewise.
65621         * m4/clock_time.m4: Likewise.
65622         * m4/codeset.m4: Likewise.
65623         * m4/copy-file.m4: Likewise.
65624         * m4/csharp.m4: Likewise.
65625         * m4/csharpcomp.m4: Likewise.
65626         * m4/csharpexec.m4: Likewise.
65627         * m4/d-ino.m4: Likewise.
65628         * m4/d-type.m4: Likewise.
65629         * m4/dirfd.m4: Likewise.
65630         * m4/double-slash-root.m4: Likewise.
65631         * m4/eaccess.m4: Likewise.
65632         * m4/eealloc.m4: Likewise.
65633         * m4/environ.m4: Likewise.
65634         * m4/errno_h.m4: Likewise.
65635         * m4/euidaccess.m4: Likewise.
65636         * m4/execute.m4: Likewise.
65637         * m4/fatal-signal.m4: Likewise.
65638         * m4/fchdir.m4: Likewise.
65639         * m4/fcntl_h.m4: Likewise.
65640         * m4/fileblocks.m4: Likewise.
65641         * m4/filenamecat.m4: Likewise.
65642         * m4/findprog.m4: Likewise.
65643         * m4/flexmember.m4: Likewise.
65644         * m4/fnmatch.m4: Likewise.
65645         * m4/fopen.m4: Likewise.
65646         * m4/fpending.m4: Likewise.
65647         * m4/fprintf-posix.m4: Likewise.
65648         * m4/free.m4: Likewise.
65649         * m4/frexp.m4: Likewise.
65650         * m4/frexpl.m4: Likewise.
65651         * m4/fsusage.m4: Likewise.
65652         * m4/ftruncate.m4: Likewise.
65653         * m4/gc-camellia.m4: Likewise.
65654         * m4/gc-random.m4: Likewise.
65655         * m4/gc.m4: Likewise.
65656         * m4/getaddrinfo.m4: Likewise.
65657         * m4/getcwd-abort-bug.m4: Likewise.
65658         * m4/getcwd-path-max.m4: Likewise.
65659         * m4/getdate.m4: Likewise.
65660         * m4/getdomainname.m4: Likewise.
65661         * m4/getgroups.m4: Likewise.
65662         * m4/gethostname.m4: Likewise.
65663         * m4/gethrxtime.m4: Likewise.
65664         * m4/getline.m4: Likewise.
65665         * m4/getloadavg.m4: Likewise.
65666         * m4/getndelim2.m4: Likewise.
65667         * m4/getpass.m4: Likewise.
65668         * m4/gettext.m4: Likewise.
65669         * m4/gettime.m4: Likewise.
65670         * m4/gettimeofday.m4: Likewise.
65671         * m4/gnulib-common.m4: Likewise.
65672         * m4/group-member.m4: Likewise.
65673         * m4/host-os.m4: Likewise.
65674         * m4/iconv.m4: Likewise.
65675         * m4/iconv_open.m4: Likewise.
65676         * m4/inet_ntop.m4: Likewise.
65677         * m4/inet_pton.m4: Likewise.
65678         * m4/inline.m4: Likewise.
65679         * m4/intldir.m4: Likewise.
65680         * m4/intlmacosx.m4: Likewise.
65681         * m4/intmax.m4: Likewise.
65682         * m4/intmax_t.m4: Likewise.
65683         * m4/inttypes.m4: Likewise.
65684         * m4/inttypes_h.m4: Likewise.
65685         * m4/inttypes-pri.m4: Likewise.
65686         * m4/isapipe.m4: Likewise.
65687         * m4/isnand.m4: Likewise.
65688         * m4/isnanf.m4: Likewise.
65689         * m4/isnanl.m4: Likewise.
65690         * m4/javacomp.m4: Likewise.
65691         * m4/javaexec.m4: Likewise.
65692         * m4/jm-winsz1.m4: Likewise.
65693         * m4/jm-winsz2.m4: Likewise.
65694         * m4/lchown.m4: Likewise.
65695         * m4/lcmessage.m4: Likewise.
65696         * m4/ldexpl.m4: Likewise.
65697         * m4/lib-ld.m4: Likewise.
65698         * m4/lib-link.m4: Likewise.
65699         * m4/libsigsegv.m4: Likewise.
65700         * m4/link-follow.m4: Likewise.
65701         * m4/localcharset.m4: Likewise.
65702         * m4/locale-fr.m4: Likewise.
65703         * m4/locale-ja.m4: Likewise.
65704         * m4/locale-tr.m4: Likewise.
65705         * m4/locale-zh.m4: Likewise.
65706         * m4/lock.m4: Likewise.
65707         * m4/longlong.m4: Likewise.
65708         * m4/ls-mntd-fs.m4: Likewise.
65709         * m4/lstat.m4: Likewise.
65710         * m4/malloc.m4: Likewise.
65711         * m4/mathl.m4: Likewise.
65712         * m4/mbrtowc.m4: Likewise.
65713         * m4/mbstate_t.m4: Likewise.
65714         * m4/mbswidth.m4: Likewise.
65715         * m4/memchr.m4: Likewise.
65716         * m4/memcmp.m4: Likewise.
65717         * m4/memcpy.m4: Likewise.
65718         * m4/memmem.m4: Likewise.
65719         * m4/memmove.m4: Likewise.
65720         * m4/mempcpy.m4: Likewise.
65721         * m4/memrchr.m4: Likewise.
65722         * m4/memset.m4: Likewise.
65723         * m4/minmax.m4: Likewise.
65724         * m4/mkdir-slash.m4: Likewise.
65725         * m4/mkdtemp.m4: Likewise.
65726         * m4/mktime.m4: Likewise.
65727         * m4/mmap-anon.m4: Likewise.
65728         * m4/mountlist.m4: Likewise.
65729         * m4/nanosleep.m4: Likewise.
65730         * m4/nls.m4: Likewise.
65731         * m4/nocrash.m4: Likewise.
65732         * m4/open.m4: Likewise.
65733         * m4/openat.m4: Likewise.
65734         * m4/openmp.m4: Likewise.
65735         * m4/pathmax.m4: Likewise.
65736         * m4/perl.m4: Likewise.
65737         * m4/physmem.m4: Likewise.
65738         * m4/pipe.m4: Likewise.
65739         * m4/po.m4: Likewise.
65740         * m4/poll.m4: Likewise.
65741         * m4/posixtm.m4: Likewise.
65742         * m4/posixver.m4: Likewise.
65743         * m4/printf-frexp.m4: Likewise.
65744         * m4/printf-frexpl.m4: Likewise.
65745         * m4/printf-posix.m4: Likewise.
65746         * m4/printf-posix-rpl.m4: Likewise.
65747         * m4/printf.m4: Likewise.
65748         * m4/progtest.m4: Likewise.
65749         * m4/putenv.m4: Likewise.
65750         * m4/readline.m4: Likewise.
65751         * m4/readlink.m4: Likewise.
65752         * m4/readutmp.m4: Likewise.
65753         * m4/realloc.m4: Likewise.
65754         * m4/regex.m4: Likewise.
65755         * m4/relocatable.m4: Likewise.
65756         * m4/relocatable-lib.m4: Likewise.
65757         * m4/rename-dest-slash.m4: Likewise.
65758         * m4/rename.m4: Likewise.
65759         * m4/rmdir-errno.m4: Likewise.
65760         * m4/rmdir.m4: Likewise.
65761         * m4/roundf.m4: Likewise.
65762         * m4/roundl.m4: Likewise.
65763         * m4/rpmatch.m4: Likewise.
65764         * m4/save-cwd.m4: Likewise.
65765         * m4/selinux-selinux-h.m4: Likewise.
65766         * m4/setenv.m4: Likewise.
65767         * m4/settime.m4: Likewise.
65768         * m4/sig2str.m4: Likewise.
65769         * m4/sig_atomic_t.m4: Likewise.
65770         * m4/signalblocking.m4: Likewise.
65771         * m4/signbit.m4: Likewise.
65772         * m4/sigpipe.m4: Likewise.
65773         * m4/sockets.m4: Likewise.
65774         * m4/sockpfaf.m4: Likewise.
65775         * m4/st_dm_mode.m4: Likewise.
65776         * m4/stat-time.m4: Likewise.
65777         * m4/stdbool.m4: Likewise.
65778         * m4/stdint.m4: Likewise.
65779         * m4/stdint_h.m4: Likewise.
65780         * m4/stpcpy.m4: Likewise.
65781         * m4/stpncpy.m4: Likewise.
65782         * m4/strcase.m4: Likewise.
65783         * m4/strchrnul.m4: Likewise.
65784         * m4/strcspn.m4: Likewise.
65785         * m4/strdup.m4: Likewise.
65786         * m4/strftime.m4: Likewise.
65787         * m4/strndup.m4: Likewise.
65788         * m4/strnlen.m4: Likewise.
65789         * m4/strpbrk.m4: Likewise.
65790         * m4/strptime.m4: Likewise.
65791         * m4/strsep.m4: Likewise.
65792         * m4/strtod.m4: Likewise.
65793         * m4/strtoimax.m4: Likewise.
65794         * m4/strtok_r.m4: Likewise.
65795         * m4/strtol.m4: Likewise.
65796         * m4/strtoll.m4: Likewise.
65797         * m4/strtoul.m4: Likewise.
65798         * m4/strtoull.m4: Likewise.
65799         * m4/strtoumax.m4: Likewise.
65800         * m4/strverscmp.m4: Likewise.
65801         * m4/threadlib.m4: Likewise.
65802         * m4/timegm.m4: Likewise.
65803         * m4/tm_gmtoff.m4: Likewise.
65804         * m4/tmpdir.m4: Likewise.
65805         * m4/tmpfile.m4: Likewise.
65806         * m4/tzset.m4: Likewise.
65807         * m4/uintmax_t.m4: Likewise.
65808         * m4/unlinkdir.m4: Likewise.
65809         * m4/unlocked-io.m4: Likewise.
65810         * m4/uptime.m4: Likewise.
65811         * m4/userspec.m4: Likewise.
65812         * m4/utimbuf.m4: Likewise.
65813         * m4/utime.m4: Likewise.
65814         * m4/utimes-null.m4: Likewise.
65815         * m4/utimes.m4: Likewise.
65816         * m4/vararrays.m4: Likewise.
65817         * m4/vasnprintf.m4: Likewise.
65818         * m4/vfprintf-posix.m4: Likewise.
65819         * m4/vprintf-posix.m4: Likewise.
65820         * m4/wait-process.m4: Likewise.
65821         * m4/wchar_t.m4: Likewise.
65822         * m4/wint_t.m4: Likewise.
65823         * m4/write-any-file.m4: Likewise.
65824         * m4/yield.m4: Likewise.
65826 2009-01-13  Bruno Haible  <bruno@clisp.org>
65828         Avoid test-copy-file.sh failures when ACL support insufficient.
65829         * modules/copy-file-tests (Makefile.am): Pass USE_ACL in
65830         TESTS_ENVIRONMENT.
65831         * tests/test-copy-file.sh: Skip the ACL comparisons if USE_ACL is 0.
65832         Reported by Jim Meyering.
65834 2009-01-13  Bruno Haible  <bruno@clisp.org>
65836         * modules/unistdio/u-printf-args (Files): Add m4/stdint_h.m4 and
65837         m4/inttypes_h.m4, needed by m4/intmax_t.m4.
65838         * modules/unistdio/u8-printf-parse (Files): Likewise.
65839         * modules/unistdio/u32-printf-parse (Files): Likewise.
65840         * modules/unistdio/ulc-printf-parse (Files): Likewise.
65842 2009-01-13  Simon Josefsson  <simon@josefsson.org>
65844         * modules/unistdio/u16-printf-parse (Files): Add m4/stdint_h.m4
65845         and m4/inttypes_h.m4 too.
65847 2009-01-12  Eric Blake  <ebb9@byu.net>
65849         tests: IRIX 6.2 cc can't compile -0.0 into .data
65850         * tests/test-ceill.c (minus_zero): Compute -0.0L at runtime,
65851         rather than at compile-time.
65852         * tests/test-floorl.c (minus_zero): Likewise.
65853         * tests/test-frexpl.c (minus_zero): Likewise.
65854         * tests/test-isnan.c (minus_zerol): Likewise.
65855         * tests/test-isnanl.h (minus_zero): Likewise.
65856         * tests/test-ldexpl.c (minus_zero): Likewise.
65857         * tests/test-roundl.c (minus_zero): Likewise.
65858         * tests/test-signbit.c (minus_zerol): Likewise.
65859         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
65860         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
65861         * tests/test-truncl.c (minus_zero): Likewise.
65862         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
65863         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
65864         Reported by Tom G. Christensen and Nelson H. F. Beebe.
65866 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
65868         regex: fix glibc bug 9697
65869         * lib/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
65870         handling.
65872 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
65874         regex: fix glibc bug 697
65875         * lib/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
65876         being NULL also if there are no backreferences.
65878 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
65880         regex: merge glibc changes
65881         * lib/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
65882         * lib/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
65883         re_string_skip_chars, re_string_reconstruct): Likewise.
65884         * lib/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
65886 2009-01-07  Jim Meyering  <meyering@redhat.com>
65888         poll: filter through cppi
65889         * lib/poll.c: Indent cpp directives to reflect nesting.
65891 2009-01-07  Daniel P. Berrange  <berrange@redhat.com>
65893         poll: don't return uninitialized
65894         * lib/poll.c (poll) [WIN32_NATIVE]: Initialize "rc".
65896 2009-01-06  Jeremy Olexa  <darkside@gentoo.org>  (tiny change)
65898         avoid compile failure on AIX 6.1
65899         * lib/getloadavg.c [HAVE_LIBPERFSTAT]: Include <sys/protosw.h>.
65900         Details in http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/15465
65902 2009-01-04  Jim Meyering  <meyering@redhat.com>
65904         remove duplicate inclusion of <stdio.h>
65905         * tests/test-fprintf-posix.c: Likewise.
65906         * tests/test-printf-posix.c: Likewise.
65907         * tests/test-snprintf-posix.c: Likewise.
65908         * tests/test-sprintf-posix.c: Likewise.
65909         * tests/test-vasprintf-posix.c: Likewise.
65910         * tests/test-vfprintf-posix.c: Likewise.
65911         * tests/test-vprintf-posix.c: Likewise.
65912         * tests/test-vsnprintf-posix.c: Likewise.
65913         * tests/test-vsprintf-posix.c: Likewise.
65915 2009-01-03  Jim Meyering  <meyering@redhat.com>
65917         gnulib-tool: fix sed-based filtering
65918         * gnulib-tool (func_filter_filelist): Remove extra backslash
65919         in sed_fff_filter definition.
65921 2009-01-02  Jim Meyering  <meyering@redhat.com>
65923         strftime: avoid compilation failure on Solaris 2.6
65924         * modules/strftime (Depends-on): Add mbrlen and mbsinit.
65925         * lib/strftime.c [DO_MULTIBYTE]: Include <wchar.h> unconditionally.
65926         Don't #define mbrlen or mbsinit, since now they're guaranteed to
65927         be available.  Reported by Tom G. Christensen.  Details in
65928         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16180>.
65930 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65931             Bruno Haible  <bruno@clisp.org>
65933         Speed up gnulib-tool by doing more string processing through shell
65934         built-ins.
65935         * gnulib-tool (fast_func_append): New variable.
65936         (func_remove_prefix, func_remove_suffix): New functions.
65937         (fast_func_remove_prefix, fast_func_remove_suffix): New variables.
65938         (func_filter_filelist): New function.
65939         (func_get_dependencies): Use func_remove_suffix instead of sed.
65940         (func_get_automake_snippet): Use func_filter_filelist instead of a
65941         subshell and sed invocation.
65943 2009-01-01  Bruno Haible  <bruno@clisp.org>
65945         Fix a security bug.
65946         * gnulib-tool (func_import, import, update): Don't allow the characters
65947         '"', '$', '`', '\' in macro arguments that become part of commands that
65948         are evaluated.
65950 2009-01-01  Bruno Haible  <bruno@clisp.org>
65952         * gnulib-tool (func_reset_sigpipe): Add more comments.
65954 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65956         * gnulib-tool (func_modules_add_dummy, func_emit_lib_Makefile_am,
65957         func_emit_tests_Makefile_am, func_import): Abort loops early if we
65958         already know the answer.
65960 2009-01-01  Jim Meyering  <meyering@redhat.com>
65962         * lib/version-etc.c (version_etc_va): Update copyright year.
65964 2008-12-30  Bruno Haible  <bruno@clisp.org>
65966         * m4/lib-prefix.m4 (AC_LIB_LINKFLAGS_BODY): Don't overwrite
65967         LIB${NAME}_PREFIX when considering the dependencies of lib${name}.
65968         Reported by Charles Wilson <cygwin@cwilson.fastmail.fm>.
65970 2008-12-29  Eric Blake  <ebb9@byu.net>
65972         multiarch: avoid autoconf AC_REQUIRE bug
65973         * m4/multiarch.m4 (gl_MULTIARCH): Split body...
65974         (gl_MULTIARCH_BODY): ...into new macro, to work around bug in Autoconf
65975         2.63 and older.
65976         Reported by Bruno Haible, and analyzed in
65977         http://lists.gnu.org/archive/html/bug-autoconf/2008-12/msg00039.html
65979 2008-12-29  Bruno Haible  <bruno@clisp.org>
65981         * gnulib-tool (func_import): When generating sed-ignore-removed, handle
65982         files in subdirectories correctly.
65983         Reported by Ralf Wildenhues.
65985 2008-12-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65987         * gnulib-tool (func_update_ignorelist): Use 'join - FILE'
65988         rather than 'join FILE -', for Solaris join.
65990 2008-12-29  Bruno Haible  <bruno@clisp.org>
65992         * m4/codeset.m4 (AM_LANGINFO_CODESET): More systematic m4 argument
65993         quoting.
65994         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
65995         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
65996         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
65997         * m4/iconv.m4 (AM_ICONV_LINK, AM_ICONV): Likewise.
65998         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
65999         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
66000         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
66001         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
66002         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
66003         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
66004         * m4/nls.m4 (AM_NLS): Likewise.
66005         * m4/po.m4 (AM_PO_SUBDIRS): Likewise.
66006         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
66007         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
66008         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
66009         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
66010         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
66011         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Likewise.
66012         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
66013         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
66014         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
66015         * m4/xsize.m4 (gl_XSIZE): Likewise.
66016         Suggested by Jim Meyering.
66018 2008-11-17  Bruce Korb  <bkorb@gnu.org>
66020         * lib/parse-duration.h: non-iso form accepts years, months weeks, too
66021         * lib/parse-duration.c: use a switch instead of cascading if's.
66023 2008-12-29  Eric Blake  <ebb9@byu.net>
66025         wchar.h: supply WEOF on Irix 5.3
66026         * lib/wchar.in.h (wint_t): Also supply WEOF.
66027         * lib/wctype.in.h (wint_t): Likewise.
66028         * doc/posix-headers/wchar.texi (wchar.h): Document the bug.
66029         * doc/posix-headers/wctype.texi (wctype.h): Likewise.
66030         Reported by Tom G. Christensen.
66032 2008-12-26  Bruno Haible  <bruno@clisp.org>
66034         * m4/multiarch.m4 (gl_MULTIARCH): Recognize also the architecture names
66035         i486, i586, i686.
66037 2008-12-26  Bruno Haible  <bruno@clisp.org>
66039         * lib/stdlib.in.h (struct random_data): Fix indentation of comments.
66041 2008-12-26  Bruno Haible  <bruno@clisp.org>
66043         * lib/stdint.in.h: Move the include of <wchar.h> down until after all
66044         the types are defined. Also conditionalize it on __STDC_LIMIT_MACROS,
66045         not __STDC_CONSTANT_MACROS.
66046         Reported by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
66048 2008-12-25  Bruno Haible  <bruno@clisp.org>
66050         Add support for universal builds to vasnprintf.
66051         * m4/printf.m4 (gl_PRINTF_ENOMEM): Require gl_MULTIARCH. In Apple
66052         universal builds, guess no.
66053         * modules/vasnprintf-posix (Depends-on): Add multiarch.
66054         * modules/vasprintf-posix (Depends-on): Likewise.
66055         * modules/fprintf-posix (Depends-on): Likewise.
66056         * modules/vfprintf-posix (Depends-on): Likewise.
66057         * modules/snprintf-posix (Depends-on): Likewise.
66058         * modules/vsnprintf-posix (Depends-on): Likewise.
66059         * modules/sprintf-posix (Depends-on): Likewise.
66060         * modules/vsprintf-posix (Depends-on): Likewise.
66061         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
66062         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
66063         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
66064         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
66065         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
66066         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
66067         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
66069         Add support for universal builds to <inttypes.h>.
66070         * lib/inttypes.in.h (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX,
66071         _SCNu64_PREFIX): In Apple
66072         universal builds, define directly, using _LP64.
66073         * m4/inttypes.m4 (gl_INTTYPES_H): In Apple universal builds, set
66074         INT64_MAX_EQ_LONG_MAX and UINT64_MAX_EQ_ULONG_MAX to -1.
66075         * modules/inttypes (Depends-on): Add multiarch.
66076         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
66078         Add support for universal builds to <stdint.h>.
66079         * lib/stdint.in.h (PDFDIFF_MIN, PTRDIFF_MAX, SIZE_MAX): In Apple
66080         universal builds, define directly, using _LP64.
66081         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Require gl_MULTIARCH. In
66082         Apple universal builds, don't test for the size and suffix of ptrdiff_t
66083         and size_t.
66084         * modules/stdint (Depends-on): Add multiarch.
66085         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
66087         New module 'multiarch'.
66088         * modules/multiarch: New file.
66089         * m4/multiarch.m4: New file.
66091 2008-12-25  Bruno Haible  <bruno@clisp.org>
66093         * gnulib-tool (func_create_testdir): Avoid failure of mv command.
66095 2008-12-25  Bruno Haible  <bruno@clisp.org>
66097         * modules/btowc (License): Relicense under LGPLv2+.
66098         * modules/mbsinit (License): Likewise.
66099         * modules/mbrtowc (License): Likewise.
66100         * modules/wcrtomb (License): Likewise.
66101         * modules/streq (License): Likewise.
66102         Reported by David Lutterkort <lutter@redhat.com>.
66104 2008-12-23  Bruno Haible  <bruno@clisp.org>
66106         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Fix conditional and comment.
66108 2008-12-23  Bruno Haible  <bruno@clisp.org>
66110         Module getaddrinfo requires linking with $(GETADDRINFO_LIB).
66111         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Put link options into
66112         GETADDRINFO_LIB, not in LIBS.
66113         * modules/getaddrinfo (Link): Set to $(GETADDRINFO_LIB).
66114         * modules/canon-host (Link): Likewise.
66115         * NEWS: Mention the change.
66116         * modules/getaddrinfo-tests (test_getaddrinfo_LDADD): Add the
66117         GETADDRINFO_LIB.
66119 2008-12-22  Bruno Haible  <bruno@clisp.org>
66121         * doc/posix-functions/iswalnum_l.texi: Mention limitation of wchar_t.
66122         * doc/posix-functions/iswalpha_l.texi: Likewise.
66123         * doc/posix-functions/iswblank_l.texi: Likewise.
66124         * doc/posix-functions/iswcntrl_l.texi: Likewise.
66125         * doc/posix-functions/iswctype_l.texi: Likewise.
66126         * doc/posix-functions/iswdigit_l.texi: Likewise.
66127         * doc/posix-functions/iswgraph_l.texi: Likewise.
66128         * doc/posix-functions/iswlower_l.texi: Likewise.
66129         * doc/posix-functions/iswprint_l.texi: Likewise.
66130         * doc/posix-functions/iswpunct_l.texi: Likewise.
66131         * doc/posix-functions/iswspace_l.texi: Likewise.
66132         * doc/posix-functions/iswupper_l.texi: Likewise.
66133         * doc/posix-functions/iswxdigit_l.texi: Likewise.
66134         * doc/posix-functions/mbsnrtowcs.texi: Likewise.
66135         * doc/posix-functions/open_wmemstream.texi: Likewise.
66136         * doc/posix-functions/swscanf.texi: Likewise.
66137         * doc/posix-functions/towctrans_l.texi: Likewise.
66138         * doc/posix-functions/towlower.texi: Likewise.
66139         * doc/posix-functions/towlower_l.texi: Likewise.
66140         * doc/posix-functions/towupper.texi: Likewise.
66141         * doc/posix-functions/towupper_l.texi: Likewise.
66142         * doc/posix-functions/vfwprintf.texi: Likewise.
66143         * doc/posix-functions/vfwscanf.texi: Likewise.
66144         * doc/posix-functions/vswscanf.texi: Likewise.
66145         * doc/posix-functions/vwprintf.texi: Likewise.
66146         * doc/posix-functions/vwscanf.texi: Likewise.
66147         * doc/posix-functions/wcpcpy.texi: Likewise.
66148         * doc/posix-functions/wcpncpy.texi: Likewise.
66149         * doc/posix-functions/wcscasecmp.texi: Likewise.
66150         * doc/posix-functions/wcscasecmp_l.texi: Likewise.
66151         * doc/posix-functions/wcscoll_l.texi: Likewise.
66152         * doc/posix-functions/wcsdup.texi: Likewise.
66153         * doc/posix-functions/wcsncasecmp.texi: Likewise.
66154         * doc/posix-functions/wcsncasecmp_l.texi: Likewise.
66155         * doc/posix-functions/wcsnlen.texi: Likewise.
66156         * doc/posix-functions/wcsnrtombs.texi: Likewise.
66157         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
66158         * doc/posix-functions/wctrans_l.texi: Likewise.
66159         * doc/posix-functions/wctype_l.texi: Likewise.
66160         * doc/glibc-functions/fgetwc_unlocked.texi: Likewise.
66161         * doc/glibc-functions/fgetws_unlocked.texi: Likewise.
66162         * doc/glibc-functions/fputwc_unlocked.texi: Likewise.
66163         * doc/glibc-functions/fputws_unlocked.texi: Likewise.
66164         * doc/glibc-functions/getwc_unlocked.texi: Likewise.
66165         * doc/glibc-functions/getwchar_unlocked.texi: Likewise.
66166         * doc/glibc-functions/putwc_unlocked.texi: Likewise.
66167         * doc/glibc-functions/putwchar_unlocked.texi: Likewise.
66168         * doc/glibc-functions/wcschrnul.texi: Likewise.
66169         * doc/glibc-functions/wcsftime_l.texi: Likewise.
66170         * doc/glibc-functions/wcstod_l.texi: Likewise.
66171         * doc/glibc-functions/wcstof_l.texi: Likewise.
66172         * doc/glibc-functions/wcstol_l.texi: Likewise.
66173         * doc/glibc-functions/wcstold_l.texi: Likewise.
66174         * doc/glibc-functions/wcstoll_l.texi: Likewise.
66175         * doc/glibc-functions/wcstoq.texi: Likewise.
66176         * doc/glibc-functions/wcstoul_l.texi: Likewise.
66177         * doc/glibc-functions/wcstoull_l.texi: Likewise.
66178         * doc/glibc-functions/wcstouq.texi: Likewise.
66179         * doc/glibc-functions/wmempcpy.texi: Likewise.
66181 2008-12-22  Ingo Weinhold  <ingo_weinhold@gmx.de>  (tiny change)
66182             Eric Blake  <ebb9@byu.net>
66183             Paolo Bonzini  <bonzini@gnu.org>
66184             Bruno Haible  <bruno@clisp.org>
66186         Make c-stack work on Haiku.
66187         * lib/c-stack.c (SA_ONSTACK): Define fallback.
66188         (c_stack_action): Use SA_ONSTACK flag.
66190 2008-12-22  Bruno Haible  <bruno@clisp.org>
66192         * m4/locale-fr.m4 (gt_LOCALE_FR_UTF8): Treat Haiku like BeOS.
66194 2008-12-22  Bruno Haible  <bruno@clisp.org>
66196         Work around mbrlen() bugs on AIX, HP-UX, OSF/1, Solaris.
66197         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Set REPLACE_MBRLEN if mbrtowc is
66198         being overridden.
66199         (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL, gl_MBRLEN_NUL_RETVAL):
66200         New macros.
66201         * lib/wchar.in.h (mbrlen): Override if REPLACE_MBRLEN is set.
66202         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBRLEN.
66203         * modules/wchar (Makefile.am): Substitute REPLACE_MBRLEN.
66204         * doc/posix-functions/mbrlen.texi: Mention the various platform bugs.
66206 2008-12-22  Bruno Haible  <bruno@clisp.org>
66208         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Remove unused variable
66209         from test code.
66211 2008-12-22  Eric Blake  <ebb9@byu.net>
66213         Avoid gcc warnings on cygwin.
66214         * lib/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
66215         Avoid unused variable.
66216         * lib/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
66217         Likewise.
66219 2008-12-22  Bruno Haible  <bruno@clisp.org>
66221         Remove HAVE_MBRTOWC conditionals.
66222         * lib/mbscasecmp.c: Include mbuiter.h unconditionally.
66223         (mbscasecmp): Assume mbrtowc function.
66224         * lib/mbscasestr.c: Include mbuiter.h unconditionally.
66225         (knuth_morris_pratt_multibyte, mbscasestr): Assume mbrtowc function.
66226         * lib/mbschr.c: Include mbuiter.h unconditionally.
66227         (mbschr): Assume mbrtowc function.
66228         * lib/mbscspn.c: Include mbuiter.h unconditionally.
66229         (mbscspn): Assume mbrtowc function.
66230         * lib/mbslen.c: Include mbuiter.h unconditionally.
66231         (mbslen): Assume mbrtowc function.
66232         * lib/mbsncasecmp.c: Include mbuiter.h unconditionally.
66233         (mbsncasecmp): Assume mbrtowc function.
66234         * lib/mbsnlen.c: Include mbiter.h unconditionally.
66235         (mbsnlen): Assume mbrtowc function.
66236         * lib/mbspbrk.c: Include mbuiter.h unconditionally.
66237         (mbspbrk): Assume mbrtowc function.
66238         * lib/mbspcasecmp.c: Include mbuiter.h unconditionally.
66239         (mbspcasecmp): Assume mbrtowc function.
66240         * lib/mbsrchr.c: Include mbuiter.h unconditionally.
66241         (mbsrchr): Assume mbrtowc function.
66242         * lib/mbssep.c: Include mbuiter.h unconditionally.
66243         (mbssep): Assume mbrtowc function.
66244         * lib/mbsspn.c: Include mbuiter.h unconditionally.
66245         (mbsspn): Assume mbrtowc function.
66246         * lib/mbsstr.c: Include mbuiter.h unconditionally.
66247         (knuth_morris_pratt_multibyte, mbsstr): Assume mbrtowc function.
66248         * lib/mbstok_r.c: Include mbuiter.h unconditionally.
66249         (mbstok_r): Assume mbrtowc function.
66250         * lib/propername.c: Include mbuiter.h unconditionally.
66251         (mbsstr_trimmed_wordbounded): Assume mbrtowc function.
66252         * lib/trim.c: Include mbchar.h, mbiter.h uncondtionally.
66253         (trim2): Assume mbrtowc function.
66254         * lib/mbswidth.c (mbsinit): Remove fallback definition.
66255         (mbsnwidth): Assume mbrtowc function.
66256         * modules/mbswidth (Depends-on): Add mbrtowc, mbsinit.
66257         * lib/quotearg.c (MB_CUR_MAX, mbstate_t, mbrtowc, iswprint): Remove
66258         fallback definitions.
66259         * modules/quotearg (Depends-on): Add mbrtowc, mbsinit.
66261 2008-12-22  Bruno Haible  <bruno@clisp.org>
66263         * doc/posix-functions/mbtowc.texi: Mention a glibc bug.
66265 2008-12-22  Paolo Bonzini  <bonzini@gnu.org>
66267         * modules/regex: Request emulations for the mb*/wc* functions we need.
66268         * m4/regex.m4: Don't look for those functions here.
66269         * lib/regex_internal.h: Do not check HAVE_WCRTOMB and HAVE_MBRTOWC.
66271 2008-12-22  Bruno Haible  <bruno@clisp.org>
66273         * modules/fnmatch (Depends-on): Remove duplicated dependency.
66275 2008-12-21  Bruno Haible  <bruno@clisp.org>
66277         Make mbiter.h, mbuiter.h, mbfile.h usable unconditionally.
66278         * modules/mbiter (Depends-on): Add mbrtowc, mbsinit.
66279         (Include): Remove conditionalization.
66280         * modules/mbuiter (Depends-on): Add mbrtowc, mbsinit.
66281         (Include): Remove conditionalization.
66282         * modules/mbfile (Depends-on): Add mbrtowc, mbsinit.
66283         (Include): Remove conditionalization.
66284         * m4/mbiter.m4 (gl_MBITER): Deprecate the use of AC_FUNC_MBRTOWC.
66285         * m4/mbfile.m4 (gl_MBFILE): Likewise.
66286         * NEWS: Mention the change.
66287         Reported by Alan Hourihane <alanh@fairlite.co.uk>
66288         via Sergey Poznyakoff <gray@gnu.org.ua>.
66290 2008-12-21  Bruno Haible  <bruno@clisp.org>
66292         * MODULES.html.sh (Extended multibyte and wide character utilities
66293         <wchar.h>): Add btowc, wctob, mbsinit, mbrlen, mbrtowc, mbsrtowcs,
66294         wcrtomb, wcsrtombs.
66295         (Support for systems lacking POSIX:2008): Add accept, bind, close,
66296         connect, fclose, getpeername, getsockname, getsockopt, hostent, listen,
66297         mbsnrtowcs, posix_spawn*, recv, recvfrom, sched, select, send, sendto,
66298         setsockopt, shutdown, socket, spawn, sys_wait, wcsnrtombs, write.
66300 2008-12-21  Bruno Haible  <bruno@clisp.org>
66302         * MODULES.html.sh: Change section titles to refer to POSIX:2008.
66304 2008-12-21  Bruno Haible  <bruno@clisp.org>
66306         * modules/wcsnrtombs-tests: New file.
66307         * tests/test-wcsnrtombs1.sh: New file.
66308         * tests/test-wcsnrtombs2.sh: New file.
66309         * tests/test-wcsnrtombs3.sh: New file.
66310         * tests/test-wcsnrtombs4.sh: New file.
66311         * tests/test-wcsnrtombs.c: New file.
66313         New module 'wcsnrtombs'.
66314         * lib/wchar.in.h (wcsnrtombs): New declaration.
66315         * lib/wcsnrtombs.c: New file.
66316         * lib/wcsrtombs-state.c: New file.
66317         * lib/wcsrtombs.c: Refer to _gl_wcsrtombs_state.
66318         (internal_state): Remove variable.
66319         * m4/wcsnrtombs.m4: New file.
66320         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Add wcsrtombs-state.c to the
66321         compilation units.
66322         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNRTOMBS,
66323         HAVE_WCSNRTOMBS.
66324         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNRTOMBS,
66325         HAVE_WCSNRTOMBS.
66326         * modules/wcsnrtombs: New file.
66327         * modules/wcsrtombs (Files): Add lib/wcsrtombs-state.c.
66328         * doc/posix-functions/wcsnrtombs.texi: Mention the new module.
66330 2008-12-21  Bruno Haible  <bruno@clisp.org>
66332         * modules/wcsrtombs-tests: New file.
66333         * tests/test-wcsrtombs1.sh: New file.
66334         * tests/test-wcsrtombs2.sh: New file.
66335         * tests/test-wcsrtombs3.sh: New file.
66336         * tests/test-wcsrtombs4.sh: New file.
66337         * tests/test-wcsrtombs.c: New file.
66339         New module 'wcsrtombs'.
66340         * lib/wchar.in.h (wcsrtombs): New declaration.
66341         * lib/wcsrtombs.c: New file.
66342         * m4/wcsrtombs.m4: New file.
66343         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRTOMBS,
66344         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
66345         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRTOMBS,
66346         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
66347         * modules/wcsrtombs: New file.
66348         * doc/posix-functions/wcsrtombs.texi: Mention the new module and the
66349         bugs.
66351 2008-12-21  Bruno Haible  <bruno@clisp.org>
66353         Work around a wcrtomb() bug on Solaris 10 and OSF/1 5.1.
66354         * lib/wchar.in.h (wcrtomb): Override if REPLACE_WCRTOMB is set.
66355         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Test the return value of wcrtomb
66356         with NULL destination argument in various locales. Set REPLACE_WCRTOMB
66357         if not correct.
66358         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCRTOMB.
66359         * modules/wchar (Makefile.am): Substitute REPLACE_WCRTOMB.
66360         * modules/wcrtomb (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
66361         m4/locale-zh.m4, m4/codeset.m4.
66362         * doc/posix-functions/wcrtomb.texi: Document the bug.
66364 2008-12-21  Bruno Haible  <bruno@clisp.org>
66366         Work around a btowc() bug on IRIX 6.5.
66367         * lib/wchar.in.h (btowc): Override if REPLACE_BTOWC is set.
66368         * m4/btowc.m4 (gl_FUNC_BTOWC): Test whether btowc(EOF) is correct. Set
66369         REPLACE_WTOBC if not.
66370         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_BTOWC.
66371         * modules/wchar (Makefile.am): Substitute REPLACE_BTOWC.
66372         * doc/posix-functions/btowc.texi: Mention the IRIX bug.
66374 2008-12-21  Bruno Haible  <bruno@clisp.org>
66376         * modules/wcrtomb-tests: New file.
66377         * tests/test-wcrtomb.sh: New file.
66378         * tests/test-wcrtomb.c: New file.
66380         New module 'wcrtomb'.
66381         * lib/wchar.in.h (wcrtomb): New declaration.
66382         * lib/wcrtomb.c: New file.
66383         * m4/wcrtomb.m4: New file.
66384         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCRTOMB,
66385         HAVE_WCRTOMB.
66386         * modules/wchar (Makefile.am): Substitute GNULIB_WCRTOMB,
66387         HAVE_WCRTOMB.
66388         * modules/wcrtomb: New file.
66389         * doc/posix-functions/wcrtomb.texi: Mention the new module.
66391 2008-12-21  Bruno Haible  <bruno@clisp.org>
66393         * modules/mbrtowc (Files): Add m4/codeset.m4, needed by m4/locale-fr.m4.
66394         * modules/mbsrtowcs (Files): Likewise.
66395         * modules/wctob (Files): Likewise.
66396         * modules/c-strcase-tests (Files): Likewise.
66397         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
66398         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
66399         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
66400         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
66401         * modules/vasnprintf-posix-tests (Files): Likewise.
66403 2008-12-21  William Pursell  <bill.pursell@gmail.com>
66405         gitlog-to-changelog: pass all command-line arguments to git-log
66406         * build-aux/gitlog-to-changelog: When producing a ChangeLog,
66407         it is sometimes convenient to filter the commits in various ways.
66408         gitlog-to-changelog only allows --since to specify a start date,
66409         but git-log itself supports many other filtering mechanisms.
66410         At the moment, I want to filter by branch name.  Rather than
66411         adding a --branch option to gitlog-to-changelog, it seems more
66412         flexible to simply pass all options directly to git-log and let
66413         git do the work.  Notice that this effectively makes --since a
66414         redundant option for gitlog-to-changelog, but removing it would
66415         require current usage to change since calls would then require
66416         an additional '--'.
66418 2008-12-21  Bruno Haible  <bruno@clisp.org>
66420         * modules/mbsnrtowcs-tests: New file.
66421         * tests/test-mbsnrtowcs1.sh: New file.
66422         * tests/test-mbsnrtowcs2.sh: New file.
66423         * tests/test-mbsnrtowcs3.sh: New file.
66424         * tests/test-mbsnrtowcs4.sh: New file.
66425         * tests/test-mbsnrtowcs.c: New file.
66427         New module 'mbsnrtowcs'.
66428         * lib/wchar.in.h (mbsnrtowcs): New declaration.
66429         * lib/mbsnrtowcs.c: New file.
66430         * lib/mbsrtowcs-state.c: New file.
66431         * lib/mbsrtowcs.c: Refer to _gl_mbsrtowcs_state.
66432         (internal_state): Remove variable.
66433         * m4/mbsnrtowcs.m4: New file.
66434         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Add mbsrtowcs-state.c to the
66435         compilation units.
66436         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSNRTOWCS,
66437         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
66438         * modules/wchar (Makefile.am): Substitute GNULIB_MBSNRTOWCS,
66439         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
66440         * modules/mbsnrtowcs: New file.
66441         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-state.c.
66442         * doc/posix-functions/mbsnrtowcs.texi: Mention the new module and a
66443         portability problem.
66445 2008-12-21  Bruno Haible  <bruno@clisp.org>
66447         Work around mbsrtowcs bug.
66448         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): New macro.
66449         (gl_FUNC_MBSRTOWCS): Invoke it.
66450         * modules/mbsrtowcs (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
66451         m4/locale-zh.m4.
66452         * doc/posix-functions/mbsrtowcs.texi: Document the bug.
66454 2008-12-21  Bruno Haible  <bruno@clisp.org>
66456         * tests/test-mbsrtowcs.c (main): Execute the loop also for unlimited=1.
66458 2008-12-21  Bruno Haible  <bruno@clisp.org>
66460         Update doc for AIX.
66461         * doc/pastposix-functions/wcswcs.texi: Mention that AIX has only a
66462         16-bit wchar_t type.
66463         * doc/posix-functions/btowc.texi: Likewise.
66464         * doc/posix-functions/fgetwc.texi: Likewise.
66465         * doc/posix-functions/fgetws.texi: Likewise.
66466         * doc/posix-functions/fputwc.texi: Likewise.
66467         * doc/posix-functions/fputws.texi: Likewise.
66468         * doc/posix-functions/fwide.texi: Likewise.
66469         * doc/posix-functions/fwprintf.texi: Likewise.
66470         * doc/posix-functions/fwscanf.texi: Likewise.
66471         * doc/posix-functions/getwchar.texi: Likewise.
66472         * doc/posix-functions/getwc.texi: Likewise.
66473         * doc/posix-functions/iswalnum.texi: Likewise.
66474         * doc/posix-functions/iswalpha.texi: Likewise.
66475         * doc/posix-functions/iswblank.texi: Likewise.
66476         * doc/posix-functions/iswcntrl.texi: Likewise.
66477         * doc/posix-functions/iswctype.texi: Likewise.
66478         * doc/posix-functions/iswdigit.texi: Likewise.
66479         * doc/posix-functions/iswgraph.texi: Likewise.
66480         * doc/posix-functions/iswlower.texi: Likewise.
66481         * doc/posix-functions/iswprint.texi: Likewise.
66482         * doc/posix-functions/iswpunct.texi: Likewise.
66483         * doc/posix-functions/iswspace.texi: Likewise.
66484         * doc/posix-functions/iswupper.texi: Likewise.
66485         * doc/posix-functions/iswxdigit.texi: Likewise.
66486         * doc/posix-functions/mbrtowc.texi: Likewise.
66487         * doc/posix-functions/mbsrtowcs.texi: Likewise.
66488         * doc/posix-functions/mbstowcs.texi: Likewise.
66489         * doc/posix-functions/mbtowc.texi: Likewise.
66490         * doc/posix-functions/putwchar.texi: Likewise.
66491         * doc/posix-functions/putwc.texi: Likewise.
66492         * doc/posix-functions/swprintf.texi: Likewise.
66493         * doc/posix-functions/tolower.texi: Likewise.
66494         * doc/posix-functions/toupper.texi: Likewise.
66495         * doc/posix-functions/towctrans.texi: Likewise.
66496         * doc/posix-functions/ungetwc.texi: Likewise.
66497         * doc/posix-functions/vswprintf.texi: Likewise.
66498         * doc/posix-functions/wcrtomb.texi: Likewise.
66499         * doc/posix-functions/wcscat.texi: Likewise.
66500         * doc/posix-functions/wcschr.texi: Likewise.
66501         * doc/posix-functions/wcscmp.texi: Likewise.
66502         * doc/posix-functions/wcscoll.texi: Likewise.
66503         * doc/posix-functions/wcscpy.texi: Likewise.
66504         * doc/posix-functions/wcscspn.texi: Likewise.
66505         * doc/posix-functions/wcsftime.texi: Likewise.
66506         * doc/posix-functions/wcslen.texi: Likewise.
66507         * doc/posix-functions/wcsncat.texi: Likewise.
66508         * doc/posix-functions/wcsncmp.texi: Likewise.
66509         * doc/posix-functions/wcsncpy.texi: Likewise.
66510         * doc/posix-functions/wcspbrk.texi: Likewise.
66511         * doc/posix-functions/wcsrchr.texi: Likewise.
66512         * doc/posix-functions/wcsrtombs.texi: Likewise.
66513         * doc/posix-functions/wcsspn.texi: Likewise.
66514         * doc/posix-functions/wcsstr.texi: Likewise.
66515         * doc/posix-functions/wcstod.texi: Likewise.
66516         * doc/posix-functions/wcstof.texi: Likewise.
66517         * doc/posix-functions/wcstoimax.texi: Likewise.
66518         * doc/posix-functions/wcstok.texi: Likewise.
66519         * doc/posix-functions/wcstold.texi: Likewise.
66520         * doc/posix-functions/wcstoll.texi: Likewise.
66521         * doc/posix-functions/wcstol.texi: Likewise.
66522         * doc/posix-functions/wcstombs.texi: Likewise.
66523         * doc/posix-functions/wcstoull.texi: Likewise.
66524         * doc/posix-functions/wcstoul.texi: Likewise.
66525         * doc/posix-functions/wcstoumax.texi: Likewise.
66526         * doc/posix-functions/wcswidth.texi: Likewise.
66527         * doc/posix-functions/wcsxfrm.texi: Likewise.
66528         * doc/posix-functions/wctob.texi: Likewise.
66529         * doc/posix-functions/wctomb.texi: Likewise.
66530         * doc/posix-functions/wctrans.texi: Likewise.
66531         * doc/posix-functions/wctype.texi: Likewise.
66532         * doc/posix-functions/wcwidth.texi: Likewise.
66533         * doc/posix-functions/wmemchr.texi: Likewise.
66534         * doc/posix-functions/wmemcmp.texi: Likewise.
66535         * doc/posix-functions/wmemcpy.texi: Likewise.
66536         * doc/posix-functions/wmemmove.texi: Likewise.
66537         * doc/posix-functions/wmemset.texi: Likewise.
66538         * doc/posix-functions/wprintf.texi: Likewise.
66539         * doc/posix-functions/wscanf.texi: Likewise.
66541 2008-12-21  Bruno Haible  <bruno@clisp.org>
66543         Update doc for HP-UX 11.11.
66544         * doc/posix-functions/btowc.texi: Clarify that the function is missing
66545         in HP-UX version 11.00, not in all versions of HP-UX 11.
66546         * doc/posix-functions/fwide.texi: Likewise.
66547         * doc/posix-functions/fwprintf.texi: Likewise.
66548         * doc/posix-functions/fwscanf.texi: Likewise.
66549         * doc/posix-functions/inet_ntop.texi: Likewise.
66550         * doc/posix-functions/inet_pton.texi: Likewise.
66551         * doc/posix-functions/mbrlen.texi: Likewise.
66552         * doc/posix-functions/mbrtowc.texi: Likewise.
66553         * doc/posix-functions/mbsinit.texi: Likewise.
66554         * doc/posix-functions/mbsrtowcs.texi: Likewise.
66555         * doc/posix-functions/swprintf.texi: Likewise.
66556         * doc/posix-functions/swscanf.texi: Likewise.
66557         * doc/posix-functions/towctrans.texi: Likewise.
66558         * doc/posix-functions/vfwprintf.texi: Likewise.
66559         * doc/posix-functions/vswprintf.texi: Likewise.
66560         * doc/posix-functions/vwprintf.texi: Likewise.
66561         * doc/posix-functions/wcrtomb.texi: Likewise.
66562         * doc/posix-functions/wcsrtombs.texi: Likewise.
66563         * doc/posix-functions/wcsstr.texi: Likewise.
66564         * doc/posix-functions/wctob.texi: Likewise.
66565         * doc/posix-functions/wctrans.texi: Likewise.
66566         * doc/posix-functions/wmemchr.texi: Likewise.
66567         * doc/posix-functions/wmemcmp.texi: Likewise.
66568         * doc/posix-functions/wmemcpy.texi: Likewise.
66569         * doc/posix-functions/wmemmove.texi: Likewise.
66570         * doc/posix-functions/wmemset.texi: Likewise.
66571         * doc/posix-functions/wprintf.texi: Likewise.
66572         * doc/posix-functions/wscanf.texi: Likewise.
66574 2008-12-21  Bruno Haible  <bruno@clisp.org>
66576         Work around a portability problem.
66577         * tests/test-mbsrtowcs.c (main): Use a temporary conversion state.
66578         * doc/posix-functions/mbsrtowcs.texi: Document the portability problem.
66580 2008-12-20  Bruno Haible  <bruno@clisp.org>
66582         * lib/wchar.in.h (mbsrtowcs): Redefine if REPLACE_MBSRTOWCS is set.
66583         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Invoke gl_MBSTATE_T_BROKEN. Set
66584         REPLACE_MBSRTOWCS if mbsrtowcs needs to be overridden.
66585         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSRTOWCS.
66586         * modules/wchar (Makefile.am): Substitute REPLACE_MBSRTOWCS.
66588         Work around mbrtowc bugs on AIX, HP-UX, OSF/1, Solaris.
66589         * lib/wchar.in.h (mbstate_t): Redefine also if REPLACE_MBSTATE_T is
66590         set.
66591         (GNULIB_defined_mbstate_t): New macro.
66592         (mbsinit): Redefine if REPLACE_MBSINIT is set.
66593         (mbrtowc): Redefine if REPLACE_MBRTOWC is set.
66594         * lib/mbrtowc.c (rpl_mbrtowc): Add an alternative implementation that
66595         reuses the system's mbrtowc function but works around the bugs.
66596         * m4/mbrtowc.m4 (gl_MBSTATE_T_BROKEN, gl_MBRTOWC_INCOMPLETE_STATE,
66597         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL): New
66598         macros.
66599         (gl_FUNC_MBRTOWC): Invoke them. Set REPLACE_MBRTOWC if mbrtowc needs to
66600         be overridden. Optionally define MBRTOWC_NULL_ARG_BUG,
66601         MBRTOWC_RETVAL_BUG, MBRTOWC_NUL_RETVAL_BUG.
66602         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_MBSTATE_T_BROKEN. Set
66603         REPLACE_MBSINIT if mbsinit needs to be overridden.
66604         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSTATE_T,
66605         REPLACE_MBSINIT, REPLACE_MBRTOWC.
66606         * modules/wchar (Makefile.am): Substitute REPLACE_MBSTATE_T,
66607         REPLACE_MBSINIT, REPLACE_MBRTOWC.
66608         * modules/mbrtowc (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
66609         m4/locale-zh.m4.
66610         (Depends): Add mbsinit.
66611         * modules/mbsinit (Depends): Add mbrtowc.
66612         * doc/posix-functions/mbrtowc.texi: Mention the various bugs.
66614 2008-12-20  Bruno Haible  <bruno@clisp.org>
66616         * tests/test-mbrtowc.c (main): Change sample string in EUC-JP encoding
66617         so that there are no conversion errors on AIX.
66618         * tests/test-mbsrtowcs.c (main): LIkewise.
66620 2008-12-20  Bruno Haible  <bruno@clisp.org>
66622         Work around wctob bug on Solaris <= 9.
66623         * lib/wchar.in.h (wctob): Redefine if REPLACE_WCTOB is set.
66624         * m4/wctob.m4 (gl_FUNC_WCTOB): Test whether wctob works.
66625         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCTOB.
66626         * modules/wchar (Makefile.am): Substitute REPLACE_WCTOB.
66627         * modules/wctob (Files): Add m4/locale-fr.m4.
66628         * doc/posix-functions/wctob.texi: Mention the Solaris bug.
66630 2008-12-20  Bruno Haible  <bruno@clisp.org>
66632         * doc/posix-functions/select.texi: Mention Solaris 2.6 bug with
66633         /dev/null.
66634         * tests/test-select-in.sh: Likewise.
66635         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
66637 2008-12-20  Bruno Haible  <bruno@clisp.org>
66639         Don't pretend that Cygwin has a ja_JP.EUC-JP locale.
66640         * m4/locale-ja.m4 (gt_LOCALE_JA): Add test for MB_CUR_MAX. Needed on
66641         Cygwin 1.5.x.
66643 2008-12-20  Bruno Haible  <bruno@clisp.org>
66645         Ensure mbstate_t is defined on HP-UX 11.11.
66646         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Require
66647         AC_CANONICAL_HOST. On HP-UX, define _XOPEN_SOURCE to 500.
66648         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Require
66649         AC_USE_SYSTEM_EXTENSIONS.
66650         * modules/fnmatch (Depends-on): Add extensions.
66651         * modules/mbrlen (Depends-on): Likewise.
66652         * modules/mbrtowc (Depends-on): Likewise.
66653         * modules/mbsinit (Depends-on): Likewise.
66654         * modules/mbsrtowcs (Depends-on): Likewise.
66655         * modules/mbswidth (Depends-on): Likewise.
66656         * modules/quotearg (Depends-on): Likewise.
66657         * modules/strftime (Depends-on): Likewise.
66659 2008-12-20  Bruno Haible  <bruno@clisp.org>
66661         Ensure wctob is declared on IRIX 6.5.
66662         * lib/wchar.in.h (wctob): Declare also when HAVE_DECL_WCTOB is 0.
66663         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_DECL_WCTOB instead of
66664         HAVE_WCTOB. Also test whether <wchar.h> declares wctob.
66665         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize HAVE_DECL_WCTOB instead
66666         of HAVE_WCTOB.
66667         * modules/wchar (Makefile.am): Substitute HAVE_DECL_WCTOB instead of
66668         HAVE_WCTOB.
66669         * doc/posix-functions/wctob.texi: Mention missing declaration on IRIX.
66671 2008-12-19  Bruno Haible  <bruno@clisp.org>
66673         * modules/mbsrtowcs-tests: New file.
66674         * tests/test-mbsrtowcs1.sh: New file.
66675         * tests/test-mbsrtowcs2.sh: New file.
66676         * tests/test-mbsrtowcs3.sh: New file.
66677         * tests/test-mbsrtowcs4.sh: New file.
66678         * tests/test-mbsrtowcs.c: New file.
66680         New module 'mbsrtowcs'.
66681         * lib/wchar.in.h (mbsrtowcs): New declaration.
66682         * lib/mbsrtowcs.c: New file.
66683         * m4/mbsrtowcs.m4: New file.
66684         * modules/mbsrtowcs: New file.
66685         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSRTOWCS and
66686         HAVE_MBSRTOWCS.
66687         * modules/wchar (Makefile.am): Substitute GNULIB_MBSRTOWCS and
66688         HAVE_MBSRTOWCS.
66689         * doc/posix-functions/mbsrtowcs.texi: Document the new module.
66691 2008-12-19  Bruno Haible  <bruno@clisp.org>
66693         New module 'mbrlen'.
66694         * lib/wchar.in.h (mbrlen): New declaration.
66695         * lib/mbrlen.c: New file.
66696         * m4/mbrlen.m4: New file.
66697         * modules/mbrlen: New file.
66698         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRLEN and
66699         HAVE_MBRLEN.
66700         * modules/wchar (Makefile.am): Substitute GNULIB_MBRLEN and
66701         HAVE_MBRLEN.
66702         * doc/posix-functions/mbrlen.texi: Document the new module.
66704 2008-12-19  Bruno Haible  <bruno@clisp.org>
66706         * lib/mbrtowc.c: Include verify.h. Verify an assumption.
66707         * modules/mbrtowc (Depends-on): Add verify.
66708         Suggested by Paul Eggert.
66710 2008-12-18  Bruno Haible  <bruno@clisp.org>
66712         * modules/mbsinit-tests: New file.
66713         * tests/test-mbsinit.sh: New file.
66714         * tests/test-mbsinit.c: New file.
66716 2008-12-18  Bruno Haible  <bruno@clisp.org>
66718         * modules/mbrtowc-tests: New file.
66719         * tests/test-mbrtowc1.sh: New file.
66720         * tests/test-mbrtowc2.sh: New file.
66721         * tests/test-mbrtowc3.sh: New file.
66722         * tests/test-mbrtowc4.sh: New file.
66723         * tests/test-mbrtowc.c: New file.
66725         New module 'mbrtowc'.
66726         * lib/wchar.in.h (mbstate_t): Override when the system does not have
66727         mbsinit and mbrtowc.
66728         (mbrtowc): New declaration.
66729         * lib/mbrtowc.c: New file.
66730         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC, gl_PREREQ_MBRTOWC): New macros.
66731         * modules/mbrtowc: New file.
66732         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRTOWC and
66733         HAVE_MBRTOWC.
66734         * modules/wchar (Makefile.am): Substitute GNULIB_MBRTOWC and
66735         HAVE_MBRTOWC.
66736         * doc/posix-functions/mbrtowc.texi: Document the new module.
66738 2008-12-18  Bruno Haible  <bruno@clisp.org>
66740         New module 'wctob'.
66741         * lib/wchar.in.h (wctob): New declaration.
66742         * lib/wctob.c: New file.
66743         * m4/wctob.m4: New file.
66744         * modules/wctob: New file.
66745         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCTOB and
66746         HAVE_WCTOB.
66747         * modules/wchar (Makefile.am): Substitute GNULIB_WCTOB and HAVE_WCTOB.
66748         * doc/posix-functions/wctob.texi: Document the new module.
66750 2008-12-18  Bruno Haible  <bruno@clisp.org>
66752         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_REPLACE_WCHAR_H.
66753         * m4/btowc.m4 (gl_FUNC_BTOWC): Likewise.
66755 2008-12-18  Simon Josefsson  <simon@josefsson.org>
66757         * lib/flock.c: Use proper #if symbol in check.  Reported by "Tom
66758         G. Christensen" <tgc@jupiterrise.com>.
66760         * lib/flock.c: Need to include errno.h.  Reported by "Tom
66761         G. Christensen" <tgc@jupiterrise.com>.
66763         * lib/flock.c: Need to include string.h.  Reported by "Tom
66764         G. Christensen" <tgc@jupiterrise.com> and Eric Blake
66765         <ebb9@byu.net>.
66767 2008-12-18  Bruno Haible  <bruno@clisp.org>
66769         * m4/locale-ja.m4: New file, from GNU gettext.
66771 2008-12-17  Bruno Haible  <bruno@clisp.org>
66773         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Don't override in autoconf >= 2.60.
66774         Suggested by Eric Blake.
66776 2008-12-17  Bruno Haible  <bruno@clisp.org>
66778         * m4/errno_h.m4 (AC_COMPUTE_INT): Provide fallback definition.
66780 2008-12-17  Bruno Haible  <bruno@clisp.org>
66782         * lib/mbsinit.c: Include verify.h. Verify an assumption.
66783         * modules/mbsinit (Depends-on): Add verify.
66784         Suggested by Paul Eggert.
66786 2008-12-17  Bruno Haible  <bruno@clisp.org>
66788         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Renamed from gl_FUNC_MBRTOWC.
66789         * m4/mbfile.m4 (gl_MBFILE): Use AC_FUNC_MBRTOWC instead of
66790         gl_FUNC_MBRTOWC.
66791         * m4/mbiter.m4 (gl_MBITER): LIkewise.
66792         * m4/mbscasecmp.m4 (gl_PREREQ_MBSCASECMP): Likewise.
66793         * m4/mbscasestr.m4 (gl_PREREQ_MBSCASESTR): Likewise.
66794         * m4/mbschr.m4 (gl_PREREQ_MBSCHR): Likewise.
66795         * m4/mbscspn.m4 (gl_PREREQ_MBSCSPN): Likewise.
66796         * m4/mbslen.m4 (gl_PREREQ_MBSLEN): Likewise.
66797         * m4/mbsncasecmp.m4 (gl_PREREQ_MBSNCASECMP): Likewise.
66798         * m4/mbsnlen.m4 (gl_PREREQ_MBSNLEN): Likewise.
66799         * m4/mbspbrk.m4 (gl_PREREQ_MBSPBRK): Likewise.
66800         * m4/mbspcasecmp.m4 (gl_PREREQ_MBSPCASECMP): Likewise.
66801         * m4/mbsrchr.m4 (gl_PREREQ_MBSRCHR): Likewise.
66802         * m4/mbssep.m4 (gl_PREREQ_MBSSEP): Likewise.
66803         * m4/mbsspn.m4 (gl_PREREQ_MBSSPN): Likewise.
66804         * m4/mbsstr.m4 (gl_PREREQ_MBSSTR): Likewise.
66805         * m4/mbstok_r.m4 (gl_PREREQ_MBSTOK_R): Likewise.
66806         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
66807         * m4/quotearg.m4 (gl_QUOTEARG): Likewise.
66808         * modules/trim (configure.ac): Likewise.
66810 2008-12-17  Bruno Haible  <bruno@clisp.org>
66812         * modules/btowc-tests: New file.
66813         * tests/test-btowc1.sh: New file.
66814         * tests/test-btowc2.sh: New file.
66815         * tests/test-btowc.c: New file.
66817         New module 'btowc'.
66818         * lib/wchar.in.h (btowc): New declaration.
66819         * lib/btowc.c: New file.
66820         * m4/btowc.m4: New file.
66821         * modules/btowc: New file.
66822         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_BTOWC and
66823         HAVE_BTOWC.
66824         * modules/wchar (Makefile.am): Substitute GNULIB_BTOWC and HAVE_BTOWC.
66825         * doc/posix-functions/btowc.texi: Document the new module.
66827 2008-12-17  Bruno Haible  <bruno@clisp.org>
66829         New module 'mbsinit'.
66830         * lib/wchar.in.h (mbsinit): New declaration.
66831         * lib/mbsinit.c: New file.
66832         * m4/mbsinit.m4: New file.
66833         * modules/mbsinit: New file.
66834         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSINIT and
66835         HAVE_MBSINIT.
66836         * modules/wchar (Makefile.am): Substitute GNULIB_MBSINIT and
66837         HAVE_MBSINIT.
66838         * doc/posix-functions/mbsinit.texi: Document the new module.
66840 2008-12-16  Bruno Haible  <bruno@clisp.org>
66842         * lib/unistd.in.h: Add comment.
66843         * tests/test-environ.c: Don't include <stdlib.h>.
66845 2008-12-16  Bruno Haible  <bruno@clisp.org>
66847         * lib/parse-duration.h (parse_duration): Document return value
66848         convention.
66849         * lib/parse-duration.c: Include specification header first. Add
66850         comments.
66851         (_): Remove macro.
66852         (parse_year_month_day, parse_hour_minute_second): Move side effects
66853         outside of strchr call.
66854         (parse_non_iso8601): Move side effects outside of isspace call.
66855         (parse_duration): Don't test errno is res != BAD_TIME. Remove fprintf
66856         call.
66858 2008-12-16  Bruno Haible  <bruno@clisp.org>
66860         * tests/test-parse-duration.sh: Produce no output when the test
66861         succeeds.
66863 2008-12-16  Bruno Haible  <bruno@clisp.org>
66865         * tests/test-parse-duration.sh: Fix quoting of $tmp and $tmpf
66866         expressions.
66868 2008-12-15  Bruno Haible  <bruno@clisp.org>
66870         * doc/glibc-functions/fgetxattr.texi: Tweak wording.
66871         * doc/glibc-functions/flistxattr.texi: Likewise.
66872         * doc/glibc-functions/fopencookie.texi: Likewise.
66873         * doc/glibc-functions/fremovexattr.texi: Likewise.
66874         * doc/glibc-functions/fsetxattr.texi: Likewise.
66875         * doc/glibc-functions/getxattr.texi: Likewise.
66876         * doc/glibc-functions/lgetxattr.texi: Likewise.
66877         * doc/glibc-functions/listxattr.texi: Likewise.
66878         * doc/glibc-functions/llistxattr.texi: Likewise.
66879         * doc/glibc-functions/lremovexattr.texi: Likewise.
66880         * doc/glibc-functions/lsetxattr.texi: Likewise.
66881         * doc/glibc-functions/removexattr.texi: Likewise.
66882         * doc/glibc-functions/setxattr.texi: Likewise.
66883         * doc/posix-functions/open_memstream.texi: Likewise.
66885 2008-12-15  Eric Blake  <ebb9@byu.net>
66887         Update doc for cygwin 1.7.
66888         * doc/posix-functions/faccessat.texi: Cygwin 1.7 added several new
66889         functions.
66890         * doc/posix-functions/fchmodat.texi: Likewise.
66891         * doc/posix-functions/fchownat.texi: Likewise.
66892         * doc/posix-functions/fdopendir.texi: Likewise.
66893         * doc/posix-functions/fmemopen.texi: Likewise.
66894         * doc/posix-functions/freeaddrinfo.texi: Likewise.
66895         * doc/posix-functions/fstatat.texi: Likewise.
66896         * doc/posix-functions/futimens.texi: Likewise.
66897         * doc/posix-functions/gai_strerror.texi: Likewise.
66898         * doc/posix-functions/getaddrinfo.texi: Likewise.
66899         * doc/posix-functions/getnameinfo.texi: Likewise.
66900         * doc/posix-functions/if_freenameindex.texi: Likewise.
66901         * doc/posix-functions/if_indextoname.texi: Likewise.
66902         * doc/posix-functions/if_nameindex.texi: Likewise.
66903         * doc/posix-functions/if_nametoindex.texi: Likewise.
66904         * doc/posix-functions/insque.texi: Likewise.
66905         * doc/posix-functions/linkat.texi: Likewise.
66906         * doc/posix-functions/llrint.texi: Likewise.
66907         * doc/posix-functions/llrintf.texi: Likewise.
66908         * doc/posix-functions/llrintl.texi: Likewise.
66909         * doc/posix-functions/lockf.texi: Likewise.
66910         * doc/posix-functions/lrintl.texi: Likewise.
66911         * doc/posix-functions/mkdirat.texi: Likewise.
66912         * doc/posix-functions/mkfifoat.texi: Likewise.
66913         * doc/posix-functions/mknodat.texi: Likewise.
66914         * doc/posix-functions/mq_close.texi: Likewise.
66915         * doc/posix-functions/mq_getattr.texi: Likewise.
66916         * doc/posix-functions/mq_notify.texi: Likewise.
66917         * doc/posix-functions/mq_open.texi: Likewise.
66918         * doc/posix-functions/mq_receive.texi: Likewise.
66919         * doc/posix-functions/mq_send.texi: Likewise.
66920         * doc/posix-functions/mq_setattr.texi: Likewise.
66921         * doc/posix-functions/mq_timedreceive.texi: Likewise.
66922         * doc/posix-functions/mq_timedsend.texi: Likewise.
66923         * doc/posix-functions/mq_unlink.texi: Likewise.
66924         * doc/posix-functions/open_memstream.texi: Likewise.
66925         * doc/posix-functions/openat.texi: Likewise.
66926         * doc/posix-functions/posix_fadvise.texi: Likewise.
66927         * doc/posix-functions/posix_fallocate.texi: Likewise.
66928         * doc/posix-functions/posix_madvise.texi: Likewise.
66929         * doc/posix-functions/posix_memalign.texi: Likewise.
66930         * doc/posix-functions/posix_openpt.texi: Likewise.
66931         * doc/posix-functions/readlinkat.texi: Likewise.
66932         * doc/posix-functions/remque.texi: Likewise.
66933         * doc/posix-functions/renameat.texi: Likewise.
66934         * doc/posix-functions/rintl.texi: Likewise.
66935         * doc/posix-functions/sem_unlink.texi: Likewise.
66936         * doc/posix-functions/shm_open.texi: Likewise.
66937         * doc/posix-functions/shm_unlink.texi: Likewise.
66938         * doc/posix-functions/signgam.texi: Likewise.
66939         * doc/posix-functions/sigset.texi: Likewise.
66940         * doc/posix-functions/stpcpy.texi: Likewise.
66941         * doc/posix-functions/stpncpy.texi: Likewise.
66942         * doc/posix-functions/strerror.texi: Likewise.
66943         * doc/posix-functions/strtod.texi: Likewise.
66944         * doc/posix-functions/symlinkat.texi: Likewise.
66945         * doc/posix-functions/unlinkat.texi: Likewise.
66946         * doc/posix-functions/utimensat.texi: Likewise.
66947         * doc/glibc-functions/bindresvport.texi: Likewise.
66948         * doc/glibc-functions/dn_expand.texi: Likewise.
66949         * doc/glibc-functions/exp10.texi: Likewise.
66950         * doc/glibc-functions/exp10f.texi: Likewise.
66951         * doc/glibc-functions/fgetxattr.texi: Likewise.
66952         * doc/glibc-functions/flistxattr.texi: Likewise.
66953         * doc/glibc-functions/fopencookie.texi: Likewise.
66954         * doc/glibc-functions/freeifaddrs.texi: Likewise.
66955         * doc/glibc-functions/fremovexattr.texi: Likewise.
66956         * doc/glibc-functions/fsetxattr.texi: Likewise.
66957         * doc/glibc-functions/getifaddrs.texi: Likewise.
66958         * doc/glibc-functions/getxattr.texi: Likewise.
66959         * doc/glibc-functions/lgetxattr.texi: Likewise.
66960         * doc/glibc-functions/listxattr.texi: Likewise.
66961         * doc/glibc-functions/llistxattr.texi: Likewise.
66962         * doc/glibc-functions/lremovexattr.texi: Likewise.
66963         * doc/glibc-functions/lsetxattr.texi: Likewise.
66964         * doc/glibc-functions/pow10.texi: Likewise.
66965         * doc/glibc-functions/pow10f.texi: Likewise.
66966         * doc/glibc-functions/rcmd_af.texi: Likewise.
66967         * doc/glibc-functions/removexattr.texi: Likewise.
66968         * doc/glibc-functions/res_init.texi: Likewise.
66969         * doc/glibc-functions/res_mkquery.texi: Likewise.
66970         * doc/glibc-functions/res_query.texi: Likewise.
66971         * doc/glibc-functions/res_querydomain.texi: Likewise.
66972         * doc/glibc-functions/res_send.texi: Likewise.
66973         * doc/glibc-functions/rresvport_af.texi: Likewise.
66974         * doc/glibc-functions/setxattr.texi: Likewise.
66975         * doc/glibc-functions/strcasestr.texi: Likewise.
66977 2008-12-15  Bruno Haible  <bruno@clisp.org>
66979         Fix compilation error on OSF/1 4.0.
66980         * lib/sys_select.in.h: When invoked from OSF/1 <sys/types.h> or
66981         <sys/time.h>, simply delegate to the system header.
66982         Reported by Daniel Richard G. <oss@teragram.com>.
66984 2008-12-15  Bruno Haible  <bruno@clisp.org>
66986         * doc/posix-functions/openat.texi: Mention the 'openat' module.
66987         * doc/posix-functions/fchmodat.texi: Likewise.
66988         * doc/posix-functions/fchownat.texi: Likewise.
66989         * doc/posix-functions/fdopendir.texi: Likewise.
66990         * doc/posix-functions/fstatat.texi: Likewise.
66991         * doc/posix-functions/mkdirat.texi: Likewise.
66992         * doc/posix-functions/unlinkat.texi: Likewise.
66994 2008-12-14  Bruno Haible  <bruno@clisp.org>
66996         Update doc for POSIX:2008.
66997         * doc/posix-functions/faccessat.texi: New file.
66998         * doc/posix-functions/fchmodat.texi: New file.
66999         * doc/posix-functions/fchownat.texi: New file.
67000         * doc/posix-functions/fdopendir.texi: New file.
67001         * doc/posix-functions/fstatat.texi: New file.
67002         * doc/posix-functions/futimens.texi: New file.
67003         * doc/posix-functions/linkat.texi: New file.
67004         * doc/posix-functions/mkdirat.texi: New file.
67005         * doc/posix-functions/mkfifoat.texi: New file.
67006         * doc/posix-functions/mknodat.texi: New file.
67007         * doc/posix-functions/open_wmemstream.texi: New file.
67008         * doc/posix-functions/openat.texi: New file.
67009         * doc/posix-functions/psiginfo.texi: New file.
67010         * doc/posix-functions/pthread_mutex_consistent.texi: New file.
67011         * doc/posix-functions/pthread_mutexattr_getrobust.texi: New file.
67012         * doc/posix-functions/pthread_mutexattr_setrobust.texi: New file.
67013         * doc/posix-functions/readlinkat.texi: New file.
67014         * doc/posix-functions/renameat.texi: New file.
67015         * doc/posix-functions/strerror_l.texi: New file.
67016         * doc/posix-functions/symlinkat.texi: New file.
67017         * doc/posix-functions/unlinkat.texi: New file.
67018         * doc/posix-functions/utimensat.texi: New file.
67019         * doc/gnulib.texi (Function Substitutes): Add these subsections.
67021 2008-12-14  Bruno Haible  <bruno@clisp.org>
67023         Update doc for POSIX:2008.
67024         * doc/posix-functions/alphasort.texi: Renamed from
67025         doc/glibc-functions/alphasort.texi.
67026         * doc/posix-functions/dirfd.texi: Renamed from
67027         doc/glibc-functions/dirfd.texi.
67028         * doc/posix-functions/dprintf.texi: Renamed from
67029         doc/glibc-functions/dprintf.texi.
67030         * doc/posix-functions/duplocale.texi: Renamed from
67031         doc/glibc-functions/duplocale.texi.
67032         * doc/posix-functions/fexecve.texi: Renamed from
67033         doc/glibc-functions/fexecve.texi.
67034         * doc/posix-functions/fmemopen.texi: Renamed from
67035         doc/glibc-functions/fmemopen.texi.
67036         * doc/posix-functions/freelocale.texi: Renamed from
67037         doc/glibc-functions/freelocale.texi.
67038         * doc/posix-functions/getdate_err.texi: Renamed from
67039         doc/glibc-functions/getdate_err.texi.
67040         * doc/posix-functions/isalnum_l.texi: Renamed from
67041         doc/glibc-functions/isalnum_l.texi.
67042         * doc/posix-functions/isalpha_l.texi: Renamed from
67043         doc/glibc-functions/isalpha_l.texi.
67044         * doc/posix-functions/isblank_l.texi: Renamed from
67045         doc/glibc-functions/isblank_l.texi.
67046         * doc/posix-functions/iscntrl_l.texi: Renamed from
67047         doc/glibc-functions/iscntrl_l.texi.
67048         * doc/posix-functions/isdigit_l.texi: Renamed from
67049         doc/glibc-functions/isdigit_l.texi.
67050         * doc/posix-functions/isgraph_l.texi: Renamed from
67051         doc/glibc-functions/isgraph_l.texi.
67052         * doc/posix-functions/islower_l.texi: Renamed from
67053         doc/glibc-functions/islower_l.texi.
67054         * doc/posix-functions/isprint_l.texi: Renamed from
67055         doc/glibc-functions/isprint_l.texi.
67056         * doc/posix-functions/ispunct_l.texi: Renamed from
67057         doc/glibc-functions/ispunct_l.texi.
67058         * doc/posix-functions/isspace_l.texi: Renamed from
67059         doc/glibc-functions/isspace_l.texi.
67060         * doc/posix-functions/isupper_l.texi: Renamed from
67061         doc/glibc-functions/isupper_l.texi.
67062         * doc/posix-functions/iswalnum_l.texi: Renamed from
67063         doc/glibc-functions/iswalnum_l.texi.
67064         * doc/posix-functions/iswalpha_l.texi: Renamed from
67065         doc/glibc-functions/iswalpha_l.texi.
67066         * doc/posix-functions/iswblank_l.texi: Renamed from
67067         doc/glibc-functions/iswblank_l.texi.
67068         * doc/posix-functions/iswcntrl_l.texi: Renamed from
67069         doc/glibc-functions/iswcntrl_l.texi.
67070         * doc/posix-functions/iswctype_l.texi: Renamed from
67071         doc/glibc-functions/iswctype_l.texi.
67072         * doc/posix-functions/iswdigit_l.texi: Renamed from
67073         doc/glibc-functions/iswdigit_l.texi.
67074         * doc/posix-functions/iswgraph_l.texi: Renamed from
67075         doc/glibc-functions/iswgraph_l.texi.
67076         * doc/posix-functions/iswlower_l.texi: Renamed from
67077         doc/glibc-functions/iswlower_l.texi.
67078         * doc/posix-functions/iswprint_l.texi: Renamed from
67079         doc/glibc-functions/iswprint_l.texi.
67080         * doc/posix-functions/iswpunct_l.texi: Renamed from
67081         doc/glibc-functions/iswpunct_l.texi.
67082         * doc/posix-functions/iswspace_l.texi: Renamed from
67083         doc/glibc-functions/iswspace_l.texi.
67084         * doc/posix-functions/iswupper_l.texi: Renamed from
67085         doc/glibc-functions/iswupper_l.texi.
67086         * doc/posix-functions/iswxdigit_l.texi: Renamed from
67087         doc/glibc-functions/iswxdigit_l.texi.
67088         * doc/posix-functions/isxdigit_l.texi: Renamed from
67089         doc/glibc-functions/isxdigit_l.texi.
67090         * doc/posix-functions/mbsnrtowcs.texi: Renamed from
67091         doc/glibc-functions/mbsnrtowcs.texi.
67092         * doc/posix-functions/mkdtemp.texi: Renamed from
67093         doc/glibc-functions/mkdtemp.texi.
67094         * doc/posix-functions/newlocale.texi: Renamed from
67095         doc/glibc-functions/newlocale.texi.
67096         * doc/posix-functions/nl_langinfo_l.texi: Renamed from
67097         doc/glibc-functions/nl_langinfo_l.texi.
67098         * doc/posix-functions/open_memstream.texi: Renamed from
67099         doc/glibc-functions/open_memstream.texi.
67100         * doc/posix-functions/opterr.texi: Renamed from
67101         doc/glibc-functions/opterr.texi.
67102         * doc/posix-functions/optind.texi: Renamed from
67103         doc/glibc-functions/optind.texi.
67104         * doc/posix-functions/optopt.texi: Renamed from
67105         doc/glibc-functions/optopt.texi.
67106         * doc/posix-functions/psignal.texi: Renamed from
67107         doc/glibc-functions/psignal.texi.
67108         * doc/posix-functions/scandir.texi: Renamed from
67109         doc/glibc-functions/scandir.texi.
67110         * doc/posix-functions/sched_get_priority_min.texi: Renamed from
67111         doc/glibc-functions/sched_get_priority_min.texi.
67112         * doc/posix-functions/signgam.texi: Renamed from
67113         doc/glibc-functions/signgam.texi.
67114         * doc/posix-functions/stpcpy.texi: Renamed from
67115         doc/glibc-functions/stpcpy.texi.
67116         * doc/posix-functions/stpncpy.texi: Renamed from
67117         doc/glibc-functions/stpncpy.texi.
67118         * doc/posix-functions/strcasecmp_l.texi: Renamed from
67119         doc/glibc-functions/strcasecmp_l.texi.
67120         * doc/posix-functions/strcoll_l.texi: Renamed from
67121         doc/glibc-functions/strcoll_l.texi.
67122         * doc/posix-functions/strfmon_l.texi: Renamed from
67123         doc/glibc-functions/strfmon_l.texi.
67124         * doc/posix-functions/strftime_l.texi: Renamed from
67125         doc/glibc-functions/strftime_l.texi.
67126         * doc/posix-functions/strncasecmp_l.texi: Renamed from
67127         doc/glibc-functions/strncasecmp_l.texi.
67128         * doc/posix-functions/strndup.texi: Renamed from
67129         doc/glibc-functions/strndup.texi.
67130         * doc/posix-functions/strnlen.texi: Renamed from
67131         doc/glibc-functions/strnlen.texi.
67132         * doc/posix-functions/strsignal.texi: Renamed from
67133         doc/glibc-functions/strsignal.texi.
67134         * doc/posix-functions/strxfrm_l.texi: Renamed from
67135         doc/glibc-functions/strxfrm_l.texi.
67136         * doc/posix-functions/timer_gettime.texi: Renamed from
67137         doc/glibc-functions/timer_gettime.texi.
67138         * doc/posix-functions/tolower_l.texi: Renamed from
67139         doc/glibc-functions/tolower_l.texi.
67140         * doc/posix-functions/toupper_l.texi: Renamed from
67141         doc/glibc-functions/toupper_l.texi.
67142         * doc/posix-functions/towctrans_l.texi: Renamed from
67143         doc/glibc-functions/towctrans_l.texi.
67144         * doc/posix-functions/towlower_l.texi: Renamed from
67145         doc/glibc-functions/towlower_l.texi.
67146         * doc/posix-functions/towupper_l.texi: Renamed from
67147         doc/glibc-functions/towupper_l.texi.
67148         * doc/posix-functions/uselocale.texi: Renamed from
67149         doc/glibc-functions/uselocale.texi.
67150         * doc/posix-functions/vdprintf.texi: Renamed from
67151         doc/glibc-functions/vdprintf.texi.
67152         * doc/posix-functions/wcpcpy.texi:
67153         Renamed from doc/glibc-functions/wcpcpy.texi.
67154         * doc/posix-functions/wcpncpy.texi: Renamed from
67155         doc/glibc-functions/wcpncpy.texi.
67156         * doc/posix-functions/wcscasecmp.texi: Renamed from
67157         doc/glibc-functions/wcscasecmp.texi.
67158         * doc/posix-functions/wcscasecmp_l.texi: Renamed from
67159         doc/glibc-functions/wcscasecmp_l.texi.
67160         * doc/posix-functions/wcscoll_l.texi: Renamed from
67161         doc/glibc-functions/wcscoll_l.texi.
67162         * doc/posix-functions/wcsdup.texi: Renamed from
67163         doc/glibc-functions/wcsdup.texi.
67164         * doc/posix-functions/wcsncasecmp.texi: Renamed from
67165         doc/glibc-functions/wcsncasecmp.texi.
67166         * doc/posix-functions/wcsncasecmp_l.texi: Renamed from
67167         doc/glibc-functions/wcsncasecmp_l.texi.
67168         * doc/posix-functions/wcsnlen.texi: Renamed from
67169         doc/glibc-functions/wcsnlen.texi.
67170         * doc/posix-functions/wcsnrtombs.texi: Renamed from
67171         doc/glibc-functions/wcsnrtombs.texi.
67172         * doc/posix-functions/wcsxfrm_l.texi: Renamed from
67173         doc/glibc-functions/wcsxfrm_l.texi.
67174         * doc/posix-functions/wctrans_l.texi: Renamed from
67175         doc/glibc-functions/wctrans_l.texi.
67176         * doc/posix-functions/wctype_l.texi: Renamed from
67177         doc/glibc-functions/wctype_l.texi.
67178         * doc/gnulib.texi (Function Substitutes): Add these subsections.
67179         (Glibc ctype.h, Glibc dirent.h, Glibc getopt.h, Glibc math.h,
67180         Glibc sched.h, Glibc signal.h, Glibc stdio.h, Glibc stdlib.h,
67181         Glibc string.h, Glibc time.h, Glibc unistd.h, Glibc wchar.h): Remove
67182         these subsections.
67183         (Glibc langinfo.h, Glibc locale.h, Glibc monetary.h, Glibc wctype.h):
67184         Remove sections.
67186 2008-12-14  Bruno Haible  <bruno@clisp.org>
67188         Update doc for POSIX:2008.
67189         * doc/posix-functions/*.texi: Update URL of POSIX specification.
67191 2008-12-14  Bruno Haible  <bruno@clisp.org>
67193         Update doc for POSIX:2008.
67194         * doc/pastposix-functions/bcmp.texi: Renamed from
67195         doc/posix-functions/bcmp.texi.
67196         * doc/pastposix-functions/bcopy.texi: Renamed from
67197         doc/posix-functions/bcopy.texi.
67198         * doc/pastposix-functions/bsd_signal.texi: Renamed from
67199         doc/posix-functions/bsd_signal.texi.
67200         * doc/pastposix-functions/bzero.texi: Renamed from
67201         doc/posix-functions/bzero.texi.
67202         * doc/pastposix-functions/ecvt.texi: Renamed from
67203         doc/posix-functions/ecvt.texi.
67204         * doc/pastposix-functions/fcvt.texi: Renamed from
67205         doc/posix-functions/fcvt.texi.
67206         * doc/pastposix-functions/ftime.texi: Renamed from
67207         doc/posix-functions/ftime.texi.
67208         * doc/pastposix-functions/gcvt.texi: Renamed from
67209         doc/posix-functions/gcvt.texi.
67210         * doc/pastposix-functions/getcontext.texi: Renamed from
67211         doc/posix-functions/getcontext.texi.
67212         * doc/pastposix-functions/gethostbyaddr.texi: Renamed from
67213         doc/posix-functions/gethostbyaddr.texi.
67214         * doc/pastposix-functions/gethostbyname.texi: Renamed from
67215         doc/posix-functions/gethostbyname.texi.
67216         * doc/pastposix-functions/getwd.texi: Renamed from
67217         doc/posix-functions/getwd.texi.
67218         * doc/pastposix-functions/h_errno.texi: Renamed from
67219         doc/posix-functions/h_errno.texi.
67220         * doc/pastposix-functions/index.texi: Renamed from
67221         doc/posix-functions/index.texi.
67222         * doc/pastposix-functions/makecontext.texi: Renamed from
67223         doc/posix-functions/makecontext.texi.
67224         * doc/pastposix-functions/mktemp.texi: Renamed from
67225         doc/posix-functions/mktemp.texi.
67226         * doc/pastposix-functions/pthread_attr_getstackaddr.texi: Renamed from
67227         doc/posix-functions/pthread_attr_getstackaddr.texi.
67228         * doc/pastposix-functions/pthread_attr_setstackaddr.texi: Renamed from
67229         doc/posix-functions/pthread_attr_setstackaddr.texi.
67230         * doc/pastposix-functions/rindex.texi: Renamed from
67231         doc/posix-functions/rindex.texi.
67232         * doc/pastposix-functions/scalb.texi: Renamed from
67233         doc/posix-functions/scalb.texi.
67234         * doc/pastposix-functions/setcontext.texi: Renamed from
67235         doc/posix-functions/setcontext.texi.
67236         * doc/pastposix-functions/swapcontext.texi: Renamed from
67237         doc/posix-functions/swapcontext.texi.
67238         * doc/pastposix-functions/ualarm.texi: Renamed from
67239         doc/posix-functions/ualarm.texi.
67240         * doc/pastposix-functions/usleep.texi: Renamed from
67241         doc/posix-functions/usleep.texi.
67242         * doc/pastposix-functions/vfork.texi: Renamed from
67243         doc/posix-functions/vfork.texi.
67244         * doc/pastposix-functions/wcswcs.texi: Renamed from
67245         doc/posix-functions/wcswcs.texi.
67246         * doc/gnulib.texi (Legacy Function Substitutes): New chapter.
67247         (Function Substitutes): Update.
67249 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67251         * modules/relocatable-prog-wrapper (Depends-on): Add errno, needed by
67252         m4/strerror.m4.
67254 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67255             Bruno Haible  <bruno@clisp.org>
67257         * modules/unilbrk/tables (Depends-on): Add unilbrk/base.
67259 2008-12-13  Bruno Haible  <bruno@clisp.org>
67261         * modules/strtoull (Depends-on): Remove unistd.
67263 2008-12-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67265         * modules/strtoull (Depends-on): Add stdlib.
67267 2008-12-11  Simon Josefsson  <simon@josefsson.org>
67269         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add more warnings.
67271 2008-12-10  Jim Meyering  <meyering@redhat.com>
67273         gl_ASSERT: don't say assertions are disabled when they're not
67274         * m4/assert.m4 (gl_ASSERT): Do not make configure report
67275         "checking whether to enable assertions... no", when they are in
67276         fact enabled.  This is solely a bug in the output of configure.
67277         In spite of saying "no", NDEBUG was not defined in that case.
67278         Also, as noted by Eric Blake, leave assertions enabled upon
67279         --enable-assert=INVALID.
67281 2008-12-10  Bruno Haible  <bruno@clisp.org>
67283         Change MODULES.html to refer to POSIX:2008 where possible.
67284         * MODULES.html.sh (POSIX2008_URL): New variable.
67285         (posix_headers): Remove sys/timeb, ucontext.
67286         (posix2001_headers): New variable.
67287         (posix_functions): Remove bcmp, bcopy, bsd_signal, bzero, ecvt, fcvt,
67288         ftime, gcvt, getcontext, gethostbyaddr, gethostbyname, getwd, h_errno,
67289         index, makecontext, mktemp, pthread_attr_getstackaddr,
67290         pthread_attr_setstackaddr, rindex, scalb, setcontext, swapcontext,
67291         ualarm, usleep, vfork, wcswcs. Add the new POSIX:2008 functions.
67292         (posix2001_functions): New variable.
67293         (func_module): Use URLs to POSIX:2008 where possible and to POSIX:2001
67294         otherwise.
67296 2008-12-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67298         add missing include to parse-duration.c
67299         * lib/parse-duration.c: #include "xalloc.h", for xstrdup.
67300         * modules/parse-duration (Depends-on): Add xalloc.
67302         fix sed script reading maint.mk
67303         * top/maint.mk (MYSELF): New macro, define as $(srcdir)/$(ME).
67304         (syntax-check-rules): Use it.
67306 2008-12-09  Bruno Haible  <bruno@clisp.org>
67308         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Add another check, that fails on
67309         MacOS X 10.4/PowerPC.
67310         Reported by Simon Josefsson.
67312 2008-12-08  Jim Meyering  <meyering@redhat.com>
67314         work around mingw's lack of some S_IF definitions
67315         * lib/fts.c (S_IFLNK, S_IFSOCK): Define if not already defined.
67316         Reported by Simon Josefsson.
67318 2008-12-08  Bruno Haible  <bruno@clisp.org>
67320         * m4/signbitl.m4 (gl_SIGNBIT_TEST_PROGRAM): Add a link check of signbit
67321         applied to variables. Needed on MacOS X 10.4/PowerPC.
67322         Reported by Simon Josefsson.
67324 2008-12-08  William Pursell  <bill.pursell@gmail.com>  (tiny change)
67325         and Eric Blake  <ebb9@byu.net>
67327         assert: honor --enable-assert
67328         * m4/assert.m4 (gl_ASSERT): Synchronize with autoconf 2.64, in
67329         order to honor --enable-assert, rather than treating it as a
67330         synonym for --disable-assert.
67332 2008-12-08  Jim Meyering  <meyering@redhat.com>
67334         * lib/posixtm.c: Remove now-useless declaration of mktime.
67336         * build-aux/announce-gen (get_tool_versions): Accept .xz tarballs.
67338 2008-12-07  Bruno Haible  <bruno@clisp.org>
67340         * tests/test-lock.c (test_lock, test_rwlock, test_recursive_lock,
67341         test_once): Mark functions as static.
67342         * tests/test-tls.c (test_tls): Likewise.
67344 2008-12-07  Bruno Haible  <bruno@clisp.org>
67346         * lib/striconveha.h (uniconv_register_autodetect): Renamed from
67347         iconv_register_autodetect.
67349 2008-12-07  Jim Meyering  <meyering@redhat.com>
67351         posixtm.c: avoid a warning
67352         * lib/posixtm.c (posixtime): Don't initialize tm0.
67353         It's no longer needed to placate gcc4's -Wuninitialized,
67354         and the attempt to placate would elicit a new warning.
67356         unicodeio.c: mark unused parameters
67357         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
67358         (fallback_failure_callback): Likewise.
67360 2008-12-07  Bruno Haible  <bruno@clisp.org>
67362         * gnulib-tool (func_create_testdir): When building the tests
67363         subdirectory, ignore the modules gnumakefile and maintainer-makefile.
67364         Reported by Simon Josefsson.
67366 2008-12-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67368         * doc/manywarnings.texi, doc/gnulib-intro.texi: Fix typos.
67370 2008-12-06  Bruno Haible  <bruno@clisp.org>
67372         * lib/c-stack.h (c_stack_action): Clarify possible side effects.
67373         Suggested by Eric Blake.
67375 2008-12-06  Bruno Haible  <bruno@clisp.org>
67377         Fix a c-stack test failure on MacOS X.
67378         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Require
67379         AC_CANONICAL_HOST. Define FAULT_YIELDS_SIGBUS. If set, install a signal
67380         handler for SIGBUS as well.
67381         * lib/c-stack.c (c_stack_action): If FAULT_YIELDS_SIGBUS is set,
67382         install a signal handler for SIGBUS as well.
67383         Reported by Bruce Dugan <bld0401@gmail.com> via Eric Blake.
67385 2008-12-06  Bruno Haible  <bruno@clisp.org>
67387         Advocacy documentation.
67388         * doc/gnulib-intro.texi (Benefits): New section.
67389         * doc/gnulib.texi: Update.
67391 2008-12-06  Bruno Haible  <bruno@clisp.org>
67393         Document the 'manywarnings' module.
67394         * doc/manywarnings.texi: New file.
67395         * doc/gnulib.texi: Include it.
67397 2008-12-05  Eric Blake  <ebb9@byu.net>
67399         tests: silence some gcc warnings
67400         * tests/test-getdate.c (LOG) [!DEBUG]: Mark no-op void.
67401         * tests/uniwidth/test-uc_width2.c (finish_interval): Avoid printf
67402         type mismatches.
67404 2008-12-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67405             Bruno Haible  <bruno@clisp.org>
67407         * m4/openmp.m4 (AC_OPENMP): Do not define with Autoconf 2.62 or newer.
67409 2008-11-29  Jim Meyering  <meyering@redhat.com>
67411         unicodeio.c: mark unused parameters
67412         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
67413         (fallback_failure_callback): Likewise.
67415         fts: fix a thinko
67416         * lib/fts.c (s_ifmt_shift_bits): Remove function.  Not needed after all.
67417         (set_stat_type): Return S_IF*-valued "type" directly.
67418         Prompted by James Youngman's spotting a related bug.
67419         Confirmed by further testing through find.
67421         fts: provide dirent.d_type via FTSENT.fts_statp, when possible
67422         * lib/fts.c (D_TYPE): Define.
67423         (DT_UNKNOWN, DT_BLK, DT_CHR) [HAVE_STRUCT_DIRENT_D_TYPE]: Define.
67424         (DT_DIR, DT_FIFO, DT_LNK, DT_REG, DT_SOCK): Likewise.
67425         (s_ifmt_shift_bits): New function.
67426         (set_stat_type): New function.
67427         (fts_build): When not calling fts_stat, call set_stat_type
67428         to propagate dirent.d_type info to fts_read caller.
67429         * lib/fts_.h (FTSENT) [FTS_DEFER_STAT]: Mention that
67430         fts_statp->st_mode type information may be valid.
67432 2008-11-28  Simon Josefsson  <simon@josefsson.org>
67434         * lib/sys_time.in.h: Add extern "C" block for C++.  Suggested by
67435         Brian Dessent <brian@dessent.net>.  Reported by Sam Steingold
67436         <sds@gnu.org>.
67438 2008-11-20  Bruno Haible  <bruno@clisp.org>
67440         Attempt to work around an AIX 5.3, 6.1 compiler bug with include_next.
67441         * lib/math.in.h: Use INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of
67442         INCLUDE_NEXT.
67443         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also
67444         INCLUDE_NEXT_AS_FIRST_DIRECTIVE.
67445         * modules/math (Makefile.am): Substitute
67446         INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of INCLUDE_NEXT.
67447         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
67449 2008-11-18  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
67450             Bruno Haible  <bruno@clisp.org>
67452         * lib/stdint.in.h: Define all type macros so that their expansion is
67453         a single typedef'ed token. Fixes a compilation failure in Boost which
67454         does "using ::int8_t;".
67456 2008-11-18  Simon Josefsson  <simon@josefsson.org>
67458         * m4/manywarnings.m4: New file with gl_MANYWARN_COMPLEMENT and
67459         gl_MANYWARN_ALL_GCC.
67460         * m4/warnings.m4: Removed gl_WARN_SUPPORTED and
67461         gl_WARN_COMPLEMENT.  Suggested by Bruno Haible <bruno@clisp.org>.
67462         * modules/manywarnings: New file.
67463         * MODULES.html.sh: Mention manywarnings module.
67465 2008-11-18  Bruno Haible  <bruno@clisp.org>
67467         * doc/gnulib-tool.texi (Unit tests): New section.
67469 2008-11-18  Simon Josefsson  <simon@josefsson.org>
67471         * top/maint.mk (refresh-po): Fix sed regexp to avoid problems with
67472         paths like 'lib/po/foo.po'.
67474 2008-11-17  Simon Josefsson  <simon@josefsson.org>
67476         * m4/warnings.m4: Improve code.  Reported by Ralf Wildenhues
67477         <Ralf.Wildenhues@gmx.de> and Paolo Bonzini <bonzini@gnu.org>.
67479 2008-11-17  Simon Josefsson  <simon@josefsson.org>
67481         * m4/warnings.m4: Use CPPFLAGS to really check whether the
67482         parameter works.
67484 2008-11-17  Simon Josefsson  <simon@josefsson.org>
67486         * m4/warnings.m4: Add gl_WARN_COMPLEMENT and gl_WARN_SUPPORTED.
67488 2008-11-17  Bruce Korb  <bkorb@gnu.org>
67490         * modules/parse-duration-tests: New file.
67491         * tests/test-parse-duration.sh: New file.
67492         * tests/test-parse-duration.c: New file.
67494         New module 'parse-duration'.
67495         * lib/parse-duration.h: New file.
67496         * lib/parse-duration.c: New file.
67497         * modules/parse-duration: New file.
67499 2008-11-17  Bruno Haible  <bruno@clisp.org>
67501         * tests/test-select-out.sh: Comment out the first pipe test.
67502         Reported by Simon Josefsson.
67504 2008-11-17  Bruno Haible  <bruno@clisp.org>
67506         * modules/getaddrinfo (Depends-on): Add servent, hostent.
67507         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_SERVENT and
67508         gl_HOSTENT.
67510 2008-11-17  Bruno Haible  <bruno@clisp.org>
67512         * m4/sockets.m4 (gl_SOCKETS): After trying -lsocket, try also
67513         -lnetwork and -lnet. Needed for Haiku and BeOS.
67515 2008-11-16  Bruno Haible  <bruno@clisp.org>
67517         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix indentation.
67519 2008-11-16  Bruno Haible  <bruno@clisp.org>
67521         Avoid test failure on Haiku.
67522         * tests/test-fsync.c: Include <errno.h>.
67523         (main): Don't require that fsync (0) fails.
67525 2008-11-15  Bruno Haible  <bruno@clisp.org>
67527         New module 'hostent'.
67528         * modules/hostent: New file.
67529         * m4/hostent.m4: New file, based on code in m4/getaddrinfo.m4.
67531 2008-11-15  Bruno Haible  <bruno@clisp.org>
67533         New module 'servent'.
67534         * modules/servent: New file.
67535         * m4/servent.m4: New file, based on code in m4/getaddrinfo.m4.
67537 2008-11-15  Bruno Haible  <bruno@clisp.org>
67539         Avoid generating same test program with two different rules.
67540         * modules/frexp-nolibm-tests (Makefile.am): Rename test program from
67541         test-frexp to test-frexp-nolibm.
67542         * modules/frexpl-nolibm-tests (Makefile.am): Rename test program from
67543         test-frexpl to test-frexpl-nolibm.
67545 2008-11-15  Bruno Haible  <bruno@clisp.org>
67547         * modules/frexpl-tests (Makefile.am): Link test-frexpl with
67548         $(FREXPL_LIBM).
67550 2008-11-15  Bruno Haible  <bruno@clisp.org>
67552         * lib/netdb.in.h: Activate the definitions also when the system's
67553         <netdb.h> has 'struct addrinfo'.
67554         * m4/netdb_h.m4 (gl_HEADER_NETDB): Replace netdb.h also when it lacks
67555         EAI_OVERFLOW or AI_NUMERICSERV.
67556         * doc/posix-headers/netdb.texi: Document the problem.
67558 2008-11-15  Bruno Haible  <bruno@clisp.org>
67560         * tests/test-sched.c: Test also the existence of the SCHED_* macros.
67562         Make the 'sched' module work on platforms where <sched.h> exists but
67563         is incomplete (such as Haiku).
67564         * lib/sched.in.h; Include the system's <sched.h> if it exists.
67565         (SCHED_FIFO, SCHED_RR, SCHED_OTHER): New macros.
67566         * m4/sched_h.m4 (gl_SCHED_H): Test whether <sched.h> exists and also
67567         defines SCHED_FIFO, SCHED_RR, SCHED_OTHER. Set HAVE_SCHED_H,
67568         HAVE_STRUCT_SCHED_PARAM.
67569         * modules/sched (Depends-on): Add include_next.
67570         (Makefile.am): Substitute HAVE_SCHED_H, INCLUDE_NEXT,
67571         PRAGMA_SYSTEM_HEADER, NEXT_SCHED_H, HAVE_STRUCT_SCHED_PARAM.
67572         * doc/posix-headers/sched.texi: Document the issue.
67574 2008-11-13  Jim Meyering  <meyering@redhat.com>
67576         test-argp-2: avoid test failure when PACKAGE_BUGREPORT is defined
67577         * tests/test-argp-2.sh: When PACKAGE_BUGREPORT was defined, this
67578         test would fail due to the difference in the Report bugs to ...
67579         line.  The expected address is empty, "<>", while the actual
67580         would contain e.g., "<bug-tar@gnu.org>".  Filter out any address.
67582 2008-11-12  Bruno Haible  <bruno@clisp.org>
67584         lstat: don't compile lstat.c on systems lacking lstat
67585         * m4/lstat.m4 (gl_FUNC_LSTAT): Don't compile lstat.c on systems
67586         which don't have lstat; this is handled by lib/sys_stat.in.h already.
67587         Reported by Daniel P. Berrange via Jim Meyering.
67589 2008-11-12  Jim Meyering  <meyering@redhat.com>
67591         * lib/unicodeio.c (unicode_to_mb): Correct spelling of u8_uctomb.
67593 2008-11-12  Simon Josefsson  <simon@josefsson.org>
67595         * modules/warnings (configure.ac): Do AC_SUBST([WARN_CFLAGS]) here
67596         instead.
67598 2008-11-12  Bruno Haible  <bruno@clisp.org>
67600         * lib/unicodeio.c: Include unistr.h.
67601         (utf8_wctomb): Remove function.
67602         (unicode_to_mb): Use utf8_uctomb instead of utf8_wctomb.
67604 2008-11-12  Simon Josefsson  <simon@josefsson.org>
67606         * m4/warnings.m4 (gl_WARN_INIT): Remove, suggested by Ralf
67607         Wildenhues <Ralf.Wildenhues@gmx.de> and Bruno Haible
67608         <bruno@clisp.org>.
67609         * modules/warnings (configure.ac): Don't call gl_WARN_INIT.
67611 2008-11-12  Simon Josefsson  <simon@josefsson.org>
67613         * doc/warnings.texi: New file, from Bruno Haible <bruno@clisp.org>.
67614         * doc/gnulib.texi: Add section for warnings.
67616 2008-11-11  Bruno Haible  <bruno@clisp.org>
67618         * lib/sockets.h: Add a comment.
67620 2008-11-11  Karl Berry  <karl@gnu.org>
67622         * config/srclist.txt (fdl.texi): add, syncing from gnustandards.
67624 2008-11-11  Eric Blake  <ebb9@byu.net>
67626         fdl.texi: avoid git symlinks
67627         * doc/fdl.texi: Copy, rather than link, fdl-1.3.texi.
67629 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
67631         * m4/warnings.m4 (gl_WARN_ADD): Don't AC_SUBST the empty string.
67633 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
67635         * m4/warnings.m4 (gl_WARN_INIT): Substitute WARN_CFLAGS.
67636         (gl_WARN_ADD): Substitute $2 if literal.
67638 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
67640         * m4/warning.m4: Remove.
67642 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
67644         * m4/warnings.m4: Almost complete rewrite. :-)
67646 2008-11-10  Simon Josefsson  <simon@josefsson.org>
67648         * modules/warnings: New module.
67649         * m4/warnings.m4: New file.
67650         * MODULES.html.sh: Mention warnings module.
67651         With review improvements from Paolo Bonzini <bonzini@gnu.org> and
67652         Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
67654 2008-11-10  Eric Blake  <ebb9@byu.net>
67656         fdl.texi: make a symlink to the latest version
67657         * doc/standards.texi: Revert today's earlier change.
67658         * doc/fdl-1.2.texi: Rename from old fdl.texi...
67659         * doc/fdl.texi: ...and replace this with a symlink to the newer
67660         fdl-1.3.texi.
67662 2008-11-10  Bruno Haible  <bruno@clisp.org>
67664         * tests/test-select-fd.c (main): Accept the result file name as fourth
67665         argument.
67666         * tests/test-select-in.sh: Pass t-select-in.tmp as fourth argument.
67667         * tests/test-select-out.sh: Pass t-select-out.tmp as fourth argument.
67669 2008-11-10  Bruno Haible  <bruno@clisp.org>
67671         * lib/netdb.in.h: Use HAVE_STRUCT_ADDRINFO, HAVE_DECL_GETADDRINFO,
67672         HAVE_DECL_FREEADDRINFO, HAVE_DECL_GAI_STRERROR, HAVE_DECL_GETNAMEINFO
67673         as autoconf-substituted macros.
67674         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Initialize these variables to 1.
67675         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require
67676         gl_NETDB_H_DEFAULTS. Set these variables.
67677         * modules/netdb (Makefile.am): Substitute these variables.
67679 2008-11-10  Eric Blake  <ebb9@byu.net>
67681         standards.texi: include correct file for FDL 1.3
67682         * doc/standards.texi (GNU Free Documentation License): Change
67683         include file to pull in FDL 1.3, not 1.2.
67685         fdl.texi: revert accidental change to license
67686         * doc/fdl.texi: This is FDL 1.2, not 1.3.
67688 2008-11-10  Bruno Haible  <bruno@clisp.org>
67690         * m4/printf.m4 (gl_PRINTF_ENOMEM): Guess yes on Haiku. Use the
67691         cross-compiling guesses also when the native compile gives no result.
67693 2008-11-10  Bruno Haible  <bruno@clisp.org>
67695         * lib/spawni.c (__spawni): Force variable into the stack.
67697 2008-11-10  Bruno Haible  <bruno@clisp.org>
67699         Add support for Haiku.
67700         * lib/fbufmode.c (fbufmode): Test a symbol that is not only defined on
67701         glibc and BeOS, but also on Haiku.
67702         * lib/fpurge.c (fpurge): Likewise.
67703         * lib/freadable.c (freadable): Likewise.
67704         * lib/freadahead.c (freadahead): Likewise.
67705         * lib/freading.c (freading): Likewise.
67706         * lib/freadptr.c (freadptr): Likewise.
67707         * lib/freadseek.c (freadptrinc): Likewise.
67708         * lib/fseeko.c (rpl_fseeko): Likewise.
67709         * lib/fseterr.c (fseterr): Likewise.
67710         * lib/fwritable.c (fwritable): Likewise.
67711         * lib/fwriting.c (fwriting): Likewise.
67712         Reported by Ingo Weinhold <ingo_weinhold@gmx.de>.
67714 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
67716         * lib/config.charset: Treat Haiku like BeOS.
67718 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
67720         * lib/binary-io.h (O_BINARY, O_TEXT): Treat Haiku like BeOS.
67721         * lib/fcntl.in.h (O_BINARY, O_TEXT): Likewise.
67723 2008-11-08  Bruno Haible  <bruno@clisp.org>
67725         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Avoid using AC_CHECK_DECL inside
67726         AC_CACHE_CHECK.
67728 2008-11-08  Bruno Haible  <bruno@clisp.org>
67730         * modules/select-tests (configure.ac): Check for unistd.h, sys/wait.h.
67732 2008-11-08  Bruno Haible  <bruno@clisp.org>
67734         * tests/test-select-fd.c: New file.
67735         * tests/test-select-in.sh: New file.
67736         * tests/test-select-out.sh: New file.
67737         * tests/test-select-stdin.c: New file.
67738         * modules/select-tests (Files): Add the new files.
67739         (Depends-on): Add gettimeofday.
67740         (Makefile.am): Add test-select-in.sh, test-select-out.sh to TESTS.
67741         Set TESTS_ENVIRONMENT. Add test-select-fd, test-select-stdin to
67742         check_PROGRAMS. Define test_select_fd_LDADD, test_select_stdin_LDADD.
67744 2008-11-06  Alexander V. Lukyanov  <lav@netis.ru>
67745             Bruno Haible  <bruno@clisp.org>
67747         * lib/sys_stat.in.h: Enclose function definitions in extern "C".
67749 2008-10-12  Giuseppe Scrivano  <gscrivano@gnu.org>
67751         * build-aux/pmccabe2html: Added support for C++ source files.
67753 2008-11-05  Ben Pfaff  <blp@gnu.org>
67755         Fix lib/close.c build on Windows.
67756         * modules/close (Files): Add lib/w32sock.h.
67758 2008-11-05  Joel E. Denny  <jdenny@ces.clemson.edu>
67760         Accept Bison's NEWS format.
67761         * build-aux/announce-gen (print_news_deltas): Tweak
67762         $re_prefix.
67764 2008-11-04  Bruno Haible  <bruno@clisp.org>
67766         * modules/random_r (Maintainer): Add glibc.
67768 2008-11-04  Simon Josefsson  <simon@josefsson.org>
67770         * doc/alloca-opt.texi: Change license to GFDLv1.3+, as suggested
67771         by karl@freefriends.org (Karl Berry).
67772         * doc/alloca.texi: Likewise.
67773         * doc/c-ctype.texi: Likewise.
67774         * doc/c-strcase.texi: Likewise.
67775         * doc/c-strcaseeq.texi: Likewise.
67776         * doc/c-strcasestr.texi: Likewise.
67777         * doc/c-strstr.texi: Likewise.
67778         * doc/c-strtod.texi: Likewise.
67779         * doc/c-strtold.texi: Likewise.
67780         * doc/ctime.texi: Likewise.
67781         * doc/error.texi: Likewise.
67782         * doc/fdl.texi: Likewise.
67783         * doc/gcd.texi: Likewise.
67784         * doc/getdate.texi: Likewise.
67785         * doc/gnulib-intro.texi: Likewise.
67786         * doc/gnulib-tool.texi: Likewise.
67787         * doc/gnulib.texi: Likewise.
67788         * doc/inet_ntoa.texi: Likewise.
67789         * doc/maintain.texi: Likewise.
67790         * doc/make-stds.texi: Likewise.
67791         * doc/quote.texi: Likewise.
67792         * doc/regexprops-generic.texi: Likewise.
67793         * doc/standards.texi: Likewise.
67794         * doc/verify.texi: Likewise.
67795         * doc/visibility.texi: Likewise.
67796         * doc/gnulib.texi (GNU Free Documentation License): Include
67797         fdl-1.3.texi instead of fdl.texi.
67799 2008-11-04  Simon Josefsson  <simon@josefsson.org>
67801         * doc/fdl-1.3.texi: New file, from
67802         <http://www.gnu.org/licenses/fdl-1.3.texi>.
67803         * modules/fdl-1.3: Add.
67804         * MODULES.html.sh: Add fdl-1.3.
67806 2008-11-03  Bruno Haible  <bruno@clisp.org>
67808         Make determination of absolute name of header file work with AIX xlc.
67809         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Require
67810         AC_CANONICAL_HOST. On AIX, use "$CPP -C" rather than "$CPP" for
67811         preprocessing.
67812         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
67813         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
67815 2008-11-03  Simon Josefsson  <simon@josefsson.org>
67817         * top/maint.mk (COVERAGE_CCOPTS): Use --coverage instead of
67818         -fprofile-arcs -ftest-coverage.  Suggested by Ludovic Courtès
67819         <ludo@gnu.org>.
67821 2008-11-02  Bruno Haible  <bruno@clisp.org>
67823         Mark 'strpbrk' obsolete.
67824         * modules/strpbrk (Status, Notice): New sections.
67825         * modules/strtok_r (Depends-on): Add strpbrk.
67827 2008-11-02  Bruno Haible  <bruno@clisp.org>
67829         Mark 'strdup' obsolete.
67830         * modules/strdup (Status, Notice): New sections.
67831         * modules/findprog (Depends-on): Add strdup.
67832         * modules/getaddrinfo (Depends-on): Likewise.
67833         * modules/localename (Depends-on): Likewise.
67834         * modules/relocatable-lib (Depends-on): Likewise.
67835         * modules/relocatable-lib-lgpl (Depends-on): Likewise.
67836         * modules/relocatable-prog (Depends-on): Likewise.
67837         * modules/trim (Depends-on): Likewise.
67838         * modules/unictype/gen-ctype (Depends-on): Likewise.
67839         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
67841 2008-11-02  Bruno Haible  <bruno@clisp.org>
67843         Mark 'strcspn' obsolete.
67844         * modules/strcspn (Status, Notice): New sections.
67846 2008-11-02  Bruno Haible  <bruno@clisp.org>
67848         Mark 'rmdir' obsolete.
67849         * modules/rmdir (Status, Notice): New sections.
67850         * modules/clean-temp (Depends-on): Add rmdir.
67851         * modules/openat (Depends-on): Likewise.
67853 2008-11-02  Bruno Haible  <bruno@clisp.org>
67855         Mark 'raise' obsolete.
67856         * modules/raise (Status, Notice): New sections.
67857         (Include): Specify <signal.h>.
67858         * modules/stdio (Depends-on): Add raise.
67859         * modules/write (Depends-on): Likewise.
67861 2008-11-02  Bruno Haible  <bruno@clisp.org>
67863         Mark 'memset' obsolete.
67864         * modules/memset (Status, Notice): New sections.
67866 2008-11-02  Bruno Haible  <bruno@clisp.org>
67868         Mark 'memmove' obsolete.
67869         * modules/memmove (Status, Notice): New sections.
67870         * modules/argp (Depends-on): Add memmove.
67871         * modules/argz (Depends-on): Likewise.
67872         * modules/canonicalize (Depends-on): Likewise.
67873         * modules/canonicalize-lgpl (Depends-on): Likewise.
67874         * modules/fts (Depends-on): Likewise.
67875         * modules/getcwd (Depends-on): Likewise.
67876         * modules/human (Depends-on): Likewise.
67877         * modules/regex (Depends-on): Likewise.
67878         * modules/striconveh (Depends-on): Likewise.
67879         * modules/trim (Depends-on): Likewise.
67880         * modules/unistr/u8-move (Depends-on): Likewise.
67881         * modules/unistr/u16-move (Depends-on): Likewise.
67882         * modules/unistr/u32-move (Depends-on): Likewise.
67884 2008-11-02  Bruno Haible  <bruno@clisp.org>
67886         Mark 'memcpy' obsolete.
67887         * modules/memcpy (Status, Notice): New sections.
67889 2008-11-02  Bruno Haible  <bruno@clisp.org>
67891         Mark 'memcmp' obsolete.
67892         * modules/memcmp (Status, Notice): New sections.
67893         * modules/argmatch (Depends-on): Add memchr.
67894         * modules/backupfile (Depends-on): Likewise.
67895         * modules/c-strcasestr (Depends-on): Likewise.
67896         * modules/crypto/des (Depends-on): Likewise.
67897         * modules/csharpcomp (Depends-on): Likewise.
67898         * modules/fnmatch (Depends-on): Likewise.
67899         * modules/git-merge-changelog (Depends-on): Likewise.
67900         * modules/isnand (Depends-on): Likewise.
67901         * modules/isnand-nolibm (Depends-on): Likewise.
67902         * modules/isnanf (Depends-on): Likewise.
67903         * modules/isnanf-nolibm (Depends-on): Likewise.
67904         * modules/isnanl (Depends-on): Likewise.
67905         * modules/isnanl-nolibm (Depends-on): Likewise.
67906         * modules/mbchar (Depends-on): Likewise.
67907         * modules/memcoll (Depends-on): Likewise.
67908         * modules/quotearg (Depends-on): Likewise.
67909         * modules/regex (Depends-on): Likewise.
67910         * modules/relocatable-prog (Depends-on): Likewise.
67911         * modules/same (Depends-on): Likewise.
67912         * modules/signbit (Depends-on): Likewise.
67913         * modules/strcasestr-simple (Depends-on): Likewise.
67914         * modules/unictype/gen-ctype (Depends-on): Likewise.
67915         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
67916         * modules/uniname/uniname (Depends-on): Likewise.
67917         * modules/unistr/u8-cmp (Depends-on): Likewise.
67919 2008-11-02  Bruno Haible  <bruno@clisp.org>
67921         Mark 'memchr' obsolete.
67922         * modules/memchr (Status, Notice): New sections.
67923         * modules/argp (Depends-on): Add memchr.
67924         * modules/base64 (Depends-on): Likewise.
67925         * modules/c-strcasestr (Depends-on): Likewise.
67926         * modules/chdir-long (Depends-on): Likewise.
67927         * modules/fnmatch (Depends-on): Likewise.
67928         * modules/getsubopt (Depends-on): Likewise.
67929         * modules/git-merge-changelog (Depends-on): Likewise.
67930         * modules/glob (Depends-on): Likewise.
67931         * modules/strcasestr-simple (Depends-on): Likewise.
67932         * modules/strnlen (Depends-on): Likewise.
67934 2008-11-02  Bruno Haible  <bruno@clisp.org>
67936         Mark 'atexit' obsolete.
67937         * modules/atexit (Status, Notice): New sections.
67938         * modules/chdir-long (Depends-on): Add atexit.
67939         * modules/wait-process (Depends-on): Likewise.
67941 2008-11-02  Bruno Haible  <bruno@clisp.org>
67943         * gnulib-tool: New option --with-obsolete.
67944         (func_usage): Document it.
67945         (func_modules_transitive_closure): Drop obsolete dependencies if
67946         incobsolete is not true.
67947         (func_import): Read and save the incobsolete variable to the cache.
67949 2008-11-02  Bruno Haible  <bruno@clisp.org>
67951         * modules/TEMPLATE-EXTENDED: New field 'Status'.
67952         * gnulib-tool: New option --extract-status.
67953         (func_usage): Document it.
67954         (sed_extract_prog): Recognize it.
67955         (func_get_status): New function.
67957 2008-10-30  Simon Josefsson  <simon@josefsson.org>
67959         * modules/sockets (License): Change from LGPL to LGPLv2+.
67961 2008-10-28  Simon Josefsson  <simon@josefsson.org>
67963         * top/maint.mk: Add coverage rules, inspired by scripts in gnupdf.
67965 2008-10-28  Simon Josefsson  <simon@josefsson.org>
67967         * MODULES.html.sh (Support for systems lacking POSIX:2001):
67968         Mention times and sys_times.
67969         * modules/sys_times, modules/sys_times-tests: New modules.
67970         * modules/times, modules/times-tests: Likewise
67971         * m4/sys_times_h.m4: New file.
67972         * lib/sys_times.in.h: Likewise
67973         * lib/times.c: Likewise.
67974         * tests/test-sys_times.c: Likewise.
67975         * tests/test-times.c: Likewise.
67976         * doc/posix-headers/sys_times.texi: Update.
67977         * doc/posix-functions/times.texi: Update.
67979 2008-10-28  Jim Meyering  <meyering@redhat.com>
67981         * modules/tempname (Depends-on): Add lstat.
67983         * modules/lstat (License): Relicense: LGPL -> LGPLv2+.
67985 2008-10-28  Simon Josefsson  <simon@josefsson.org>
67987         * gnulib-tool (func_emit_tests_Makefile_am): Revert last commit.
67988         * modules/argp-tests (test_argp_LDADD): Set EXEEXT here instead,
67989         using idiom used elsewhere in gnulib.
67991 2008-10-27  Jim Meyering  <meyering@redhat.com>
67993         * modules/gethostname (License): Relicense: LGPL -> LGPLv2+.
67995 2008-10-27  Simon Josefsson  <simon@josefsson.org>
67997         * gnulib-tool (func_emit_tests_Makefile_am): Set EXEEXT in
67998         TESTS_ENVIRONMENT, for shell scripts that needs to call built
67999         programs.
68000         * tests/test-argp-2.sh: Use $EXEEXT when needed.
68002 2008-10-27  Simon Josefsson  <simon@josefsson.org>
68004         * lib/sys_stat.in.h (lstat): Fix declaration for mingw.
68006 2008-10-27  Bruno Haible  <bruno@clisp.org>
68008         * tests/test-lstat.c: Include <stdio.h>.
68010 2008-10-27  Simon Josefsson  <simon@josefsson.org>
68012         * modules/lstat-tests: New module.
68013         * tests/test-lstat.c: New file.
68015 2008-10-26  Jim Meyering  <meyering@redhat.com>
68017         * lib/mkdir.c (rpl_mkdir) [_WIN32...]: Mark mode as an unused parameter.
68019 2008-10-26  Simon Josefsson  <simon@josefsson.org>
68020             Bruno Haible  <bruno@clisp.org>
68022         Fix a clash between the type DATADIR on Windows and the macro DATADIR.
68023         * modules/configmake (Include): Add a note that the include must come
68024         after all system headers.
68025         * lib/javaversion.c: Include configmake.h after all other includes.
68027 2008-10-26  Bruno Haible  <bruno@clisp.org>
68029         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Set default of
68030         HAVE_STRUCT_RANDOM_DATA to 1.
68031         (gl_STDLIB_H): Simplify.
68033 2008-10-26  Simon Josefsson  <simon@josefsson.org>
68035         * m4/stdlib_h.m4: Check for struct random_data.  Initialize and
68036         substitute HAVE_STRUCT_RANDOM_DATA.
68037         * lib/stdlib.in.h [!HAVE_STRUCT_RANDOM_DATA]: Provide struct
68038         random_data.
68039         * modules/stdlib (Makefile.am): Substitute
68040         HAVE_STRUCT_RANDOM_DATA.
68042 2008-10-26  Simon Josefsson  <simon@josefsson.org>
68044         * doc/gnulib.texi (@copying): Use GFDLv1.2+.
68045         * doc/gnulib-intro.texi (Copyright): Likewise.
68047 2008-10-26  Simon Josefsson  <simon@josefsson.org>
68049         * doc/gnulib.texi (Header files): C++ fixes, based on Bruno's
68050         findings.
68052 2008-10-25  Ben Pfaff  <blp@cs.stanford.edu>
68053             Bruno Haible  <bruno@clisp.org>
68055         * lib/unistd.in.h: Include <winsock2.h>.
68056         (socket, connect,accept, bind, getpeername, getsockname, getsockopt,
68057         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, select):
68058         Provide dummy declarations.
68059         (gethostname): Override.
68060         * lib/sys_socket.in.h (gethostname): Provide dummy declaration.
68061         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Invoke
68062         gl_PREREQ_SYS_H_WINSOCK2.
68063         * modules/gethostname (Files): Add m4/sys_socket_h.m4.
68064         * doc/posix-functions/gethostname.texi: More details.
68066 2008-10-25  Bruno Haible  <bruno@clisp.org>
68068         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
68069         gl_UNISTD_H_DEFAULTS, gl_SYS_IOCTL_H_DEFAULTS only if they exist.
68070         * modules/sys_socket (Files): Remove m4/unistd_h.m4, m4/sys_ioctl_h.m4.
68072         * lib/sys_socket.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); Move macro from
68073         here ...
68074         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); ... to here.
68075         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Remove invocation of
68076         gl_UNISTD_H_DEFAULTS.
68078 2008-10-25  Eric Blake  <ebb9@byu.net>
68080         signbit: avoid spurious compiler failure
68081         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Move non-constant
68082         declarations inside function.
68084 2008-10-24  Simon Josefsson  <simon@josefsson.org>
68085             Bruno Haible  <bruno@clisp.org>
68087         * lib/stdlib.in.h (@GNULIB_RANDOM_R@): Include stdint.h.
68088         * modules/random_r (Depends-on): Add stdint.
68090 2008-10-24  Bruno Haible  <bruno@clisp.org>
68092         * modules/intprops (License): Change to LGPLv2+, with approval by Paul
68093         Eggert.
68094         * modules/strerror (License): Likewise.
68096 2008-10-24  Jim Meyering  <meyering@redhat.com>
68098         sys_socket: fix typo that inhibited expansion of @GNULIB_SEND@
68099         * modules/sys_socket (Depends-on) [Depends-on]: Fix typo.
68101 2008-10-24  Eric Blake  <ebb9@byu.net>
68103         getgroups: fix compilation when getgroups is available
68104         * lib/getgroups.c (includes): Include <unistd.h> for getgroups,
68105         but with <config.h> override of getgroups disabled.
68107 2008-10-24  Simon Josefsson  <simon@josefsson.org>
68109         * doc/gnulib.texi (Header files): Add note about C++ problems.
68110         Explained by Bruno Haible <bruno@clisp.org>.
68112 2008-10-23  Bruno Haible  <bruno@clisp.org>
68114         Define a dummy SA_NODEFER macro on Interix.
68115         * lib/signal.in.h (SA_NODEFER): Define fallback.
68116         Reported by Aleksey Cheusov <cheusov@tut.by> via
68117         Thomas Klausner <wiz@netbsd.org> and Eric Blake.
68119 2008-10-23  Bruno Haible  <bruno@clisp.org>
68121         * modules/freadahead (License): Change to LGPLv2+.
68122         Suggested by Simon Josefsson.
68124 2008-10-23  Jim Meyering  <meyering@redhat.com>
68126         random_r: new module
68127         * modules/random_r: New file.
68128         * m4/random_r.m4: New file.
68129         * lib/random_r.c: New file, from glibc.
68130         * modules/random_r-tests: New file.
68131         * tests/test-random_r.c: New file.
68132         * lib/stdlib.in.h (srandom_r, initstate_r, setstate_r, random_r):
68133          Declare.
68134         (RAND_MAX): Define.
68135         * m4/stdlib_h.m4: Define and AC_SUBST GNULIB_RANDOM_R and HAVE_RANDOM_R.
68136         * modules/stdlib: Substitute them, too.
68137         * MODULES.html.sh (Extra functions based on POSIX:2001) [Misc]: Add it.
68138         * doc/glibc-functions/initstate_r.texi: Mention the new module.
68139         * doc/glibc-functions/random_r.texi: Likewise.
68140         * doc/glibc-functions/setstate_r.texi: Likewise.
68141         * doc/glibc-functions/srandom_r.texi: Likewise.
68142         * config/srclist.txt: Mention it.
68144 2008-10-23  David Lutterkort  <lutter@redhat.com>
68146         * modules/selinux-h: Search for LIB_SELINUX and mark it as a
68147         link requirement
68149 2008-10-23  Jim Meyering  <meyering@redhat.com>
68151         selinux-h: mark parameters of stub functions as intentionally unused
68152         * lib/se-selinux.in.h: Mark parameters as _UNUSED_PARAMETER_.
68153         * lib/se-context.in.h: Likewise.
68155 2008-10-22  Simon Josefsson  <simon@josefsson.org>
68157         * lib/sys_socket.in.h (FD_ISSET): Fix warnings under mingw.
68159 2008-10-22  Simon Josefsson  <simon@josefsson.org>
68161         * m4/getgroups.m4: Avoid invoking test with wrong parameters.
68163 2008-10-22  Eric Blake  <ebb9@byu.net>
68165         glthread/thread: avoid compiler warning
68166         * lib/glthread/thread.c (gl_thread_exit_func) [USE_WIN32_THREADS]:
68167         Add unreachable abort to silence compiler.
68169 2008-10-22  Eric Blake  <ebb9@byu.net>
68171         netdb: also supply struct addrinfo for cygwin 1.5.x
68172         * m4/netdb_h.m4 (gl_HEADER_NETDB): Check for incomplete header on
68173         older cygwin.
68174         * lib/netdb.in.h [!HAVE_STRUCT_ADDRINFO]: Also supply contents for
68175         cygwin.
68176         * doc/posix-headers/netdb.texi (netdb.h): Document this.
68178 2008-10-22  Bruno Haible  <bruno@clisp.org>
68180         * users.txt: Update entry about pspp.
68182 2008-10-21  Bruno Haible  <bruno@clisp.org>
68184         Simplification.
68185         * lib/sys_socket.in.h (_gl_close_fd_maybe_socket): Remove declaration.
68186         * lib/close.c (_gl_close_fd_maybe_socket): Make static.
68188         Simplification.
68189         * lib/ioctl.c (ioctl): Don't undefine.
68190         * lib/socket.c (socket): Don't undefine.
68192         Remove unused module indicator macros.
68193         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Don't define
68194         GNULIB_$1 as a C macro.
68196         * doc/posix-functions/close.texi: Undo last change.
68197         * doc/posix-functions/ioctl.texi: Merge the two paragraphs about
68198         Windows platforms.
68200 2008-10-21  Bruno Haible  <bruno@clisp.org>
68202         Add gethostname() declaration to <unistd.h>.
68203         * lib/unistd.in.h (gethostname): New declaration.
68204         * lib/gethostname.c: Include <unistd.h>.
68205         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Require
68206         gl_UNISTD_H_DEFAULTS. Set HAVE_GETHOSTNAME.
68207         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETHOSTNAME
68208         and HAVE_GETHOSTNAME.
68209         * modules/gethostname (Depends-on): Add unistd.
68210         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
68211         (Include): Specify <unistd.h>.
68212         * modules/unistd (Makefile.am): Substitute GNULIB_GETHOSTNAME and
68213         HAVE_GETHOSTNAME.
68214         * tests/test-gethostname.c: Include <unistd.h> first.
68216 2008-10-21  Bruno Haible  <bruno@clisp.org>
68218         * modules/poll-tests (Depends-on): Add sys_ioctl, ioctl.
68219         * modules/select-tests (Depends-on): Likewise.
68220         Reported by Simon Josefsson.
68222 2008-10-21  Simon Josefsson  <simon@josefsson.org>
68224         * lib/close.c: Add _gl_close_fd_maybe_socket from winsock.c.
68225         * lib/accept.c: New file, based on winsock.c.
68226         * lib/bind.c: New file, based on winsock.c.
68227         * lib/connect.c: New file, based on winsock.c.
68228         * lib/getpeername.c: New file, based on winsock.c.
68229         * lib/getsockname.c: New file, based on winsock.c.
68230         * lib/getsockopt.c: New file, based on winsock.c.
68231         * lib/ioctl.c: New file, based on winsock.c.
68232         * lib/listen.c: New file, based on winsock.c.
68233         * lib/recv.c: New file, based on winsock.c.
68234         * lib/recvfrom.c: New file, based on winsock.c.
68235         * lib/send.c: New file, based on winsock.c.
68236         * lib/sendto.c: New file, based on winsock.c.
68237         * lib/setsockopt.c: New file, based on winsock.c.
68238         * lib/shutdown.c: New file, based on winsock.c.
68239         * lib/socket.c: New file, based on winsock.c.
68240         * lib/w32sock.h: New file, based on winsock.c.
68241         * lib/winsock.c: Remove file.
68242         * modules/accept: Likewise.
68243         * modules/bind: Likewise.
68244         * modules/connect: Likewise.
68245         * modules/getpeername: Likewise.
68246         * modules/getsockname: Likewise.
68247         * modules/getsockopt: Likewise.
68248         * modules/ioctl: Likewise.
68249         * modules/listen: Likewise.
68250         * modules/recv: Likewise.
68251         * modules/recvfrom: Likewise.
68252         * modules/send: Likewise.
68253         * modules/sendto: Likewise.
68254         * modules/setsockopt: Likewise.
68255         * modules/shutdown: Likewise.
68256         * modules/socket: Use socket.c instead of winsock.c.
68257         * modules/sys_socket: Remove (unneeded?) dependency on winsock.c.
68258         * doc/posix-functions/accept.texi: Doc fix.
68259         * doc/posix-functions/bind.texi: Doc fix.
68260         * doc/posix-functions/close.texi: Doc fix.
68261         * doc/posix-functions/connect.texi: Doc fix.
68262         * doc/posix-functions/getpeername.texi: Doc fix.
68263         * doc/posix-functions/getsockname.texi: Doc fix.
68264         * doc/posix-functions/getsockopt.texi: Doc fix.
68265         * doc/posix-functions/ioctl.texi: Doc fix.
68266         * doc/posix-functions/listen.texi: Doc fix.
68267         * doc/posix-functions/recv.texi: Doc fix.
68268         * doc/posix-functions/recvfrom.texi: Doc fix.
68269         * doc/posix-functions/send.texi: Doc fix.
68270         * doc/posix-functions/sendto.texi: Doc fix.
68271         * doc/posix-functions/setsockopt.texi: Doc fix.
68272         * doc/posix-functions/shutdown.texi: Doc fix.
68273         * doc/posix-functions/socket.texi: Doc fix.
68275 2008-10-20  Bruno Haible  <bruno@clisp.org>
68277         Take into account the role of SIGABRT_COMPAT on Windows 2008.
68278         * lib/sigprocmask.c (SIGABRT_COMPAT, SIGABRT_COMPAT_MASK): New macros.
68279         (sigismember, sigaddset, sigdelset, sigfillset, rpl_signal): Handle it
68280         as an alias for SIGABRT.
68281         * lib/sigaction.c (SIGABRT_COMPAT): New macro.
68282         (sigaction): Map it to SIGABRT.
68283         Reported by Ramiro Polla <ramiro.polla@gmail.com> via Eric Blake.
68285 2008-10-20  Bruno Haible  <bruno@clisp.org>
68287         * lib/fts.c: Don't include lstat.h.
68288         * lib/openat.c: Include <sys/stat.h> instead of lstat.h.
68290         Move the lstat() declaration to <sys/stat.h>.
68291         * lib/lstat.h: Remove file.
68292         * lib/sys_stat.in.h: Add special invocation convention.
68293         (lstat): New declaration.
68294         * lib/lstat.c (orig_lstat): New function.
68295         (rpl_lstat): Use orig_lstat instead of lstat.
68296         * m4/lstat.m4 (gl_FUNC_LSTAT): Require gl_SYS_STAT_H_DEFAULTS and
68297         AC_C_INLINE. Set REPLACE_LSTAT.
68298         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LSTAT
68299         and REPLACE_LSTAT.
68300         * modules/lstat (Files): Remove lib/lstat.h.
68301         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
68302         (Include): Specify <sys/stat.h> instead of lstat.h.
68303         * modules/sys_stat (Makefile.am): Substitute GNULIB_LSTAT and
68304         REPLACE_LSTAT.
68305         * NEWS: Mention the change.
68307 2008-10-20  Bruno Haible  <bruno@clisp.org>
68309         * modules/posix_spawn-tests: New file.
68310         * tests/test-posix_spawn3.c: New file.
68312 2008-10-20  Bruno Haible  <bruno@clisp.org>
68314         * modules/posix_spawnp-tests (Depends-on): Add sys_wait.
68315         * tests/test-posix_spawn1.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
68316         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Remove fallback definitions.
68317         * tests/test-posix_spawn2.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
68318         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Likewise.
68320 2008-10-20  Bruno Haible  <bruno@clisp.org>
68322         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Test against another bug
68323         of posix_spawn on AIX 5.3.
68325 2008-10-20  Bruno Haible  <bruno@clisp.org>
68327         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Make the check on MacOS X.
68329 2008-10-20  Bruno Haible  <bruno@clisp.org>
68331         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Use AC_LANG_SOURCE instead
68332         of AC_LANG_PROGRAM.
68334 2008-10-20  Simon Josefsson  <simon@josefsson.org>
68336         * lib/netdb.in.h: Don't define GNU specific constants until they
68337         are supported or needed.  Reported by Bruno Haible
68338         <bruno@clisp.org>.
68340 2008-10-20  Simon Josefsson  <simon@josefsson.org>
68342         * lib/canon-host.c: Include netdb.h instead of getaddrinfo.h.
68344 2008-10-20  Simon Josefsson  <simon@josefsson.org>
68346         * lib/getaddrinfo.h: Remove file.
68347         * modules/getaddrinfo: Reflect move from getaddrinfo.h to netdb.h.
68348         * m4/getaddrinfo.m4: Call gl_HEADER_NETDB.  Don't check for netdb.h.
68349         * lib/netdb.in.h: Add declarations from getaddrinfo.h.
68350         * m4/netdb_h.m4: Initialize GNULIB_GETADDRINFO to 0.
68351         * modules/netdb: Substitute GNULIB_GETADDRINFO.
68352         * lib/getaddrinfo.c: Include netdb.h instead of getaddrinfo.h.
68353         * tests/test-getaddrinfo.c: Likewise.
68354         * lib/gai_strerror.c: Likewise.  Also drop HAVE_NETDB_H check.
68355         * NEWS: Mention change.
68357 2008-10-19  Bruno Haible  <bruno@clisp.org>
68359         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Remove unneeded code.
68361 2008-10-19  Bruno Haible  <bruno@clisp.org>
68363         * lib/wait-process.c: Include simply <sys/wait.h>.
68364         (waitpid, WTERMSIG, WCOREDUMP, WEXITSTATUS, WIFSIGNALED, WIFEXITED,
68365         WIFSTOPPED): Remove fallback definitions.
68366         * modules/wait-process (Depends-on): Add sys_wait.
68368         New module 'sys_wait'.
68369         * modules/sys_wait: New file.
68370         * lib/sys_wait.in.h: New file, partially copied from
68371         lib/wait-process.c.
68372         * m4/sys_wait_h.m4: New file.
68373         * doc/posix-headers/sys_wait.texi: Mention the new module.
68375 2008-10-19  Bruno Haible  <bruno@clisp.org>
68377         * m4/wait-process.m4 (gl_WAIT_PROCESS): Remove test for unistd.h.
68379 2008-10-19  Bruno Haible  <bruno@clisp.org>
68381         Assume that waitpid() fills an 'int' status, not a 'union wait'.
68382         * lib/wait-process.c (WAIT_T): Remove type.
68383         (WTERMSIG, WCOREDUMP, WEXITSTATUS): Define fallbacks using bit masks.
68384         (wait_subprocess): Update.
68386 2008-10-19  Bruno Haible  <bruno@clisp.org>
68388         New module 'atoll'.
68389         * modules/atoll: New file.
68390         * lib/stdlib.in.h (atoll): New declaration.
68391         * lib/atoll.c: New file, from glibc with modifications.
68392         * m4/atoll.m4: New file.
68393         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_ATOLL,
68394         HAVE_ATOLL.
68395         * modules/stdlib (Makefile.am): Substitute GNULIB_ATOLL, HAVE_ATOLL.
68396         * doc/posix-functions/atoll.texi: Mention the new module.
68398 2008-10-19  Bruno Haible  <bruno@clisp.org>
68400         Add strtoull() declaration to <stdlib.h>.
68401         * lib/stdlib.in.h (strtoull): New declaration.
68402         * m4/strtoull.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
68403         Set HAVE_STRTOULL.
68404         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOULL,
68405         HAVE_STRTOULL.
68406         * modules/strtoull (Depends-on): Add stdlib.
68407         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
68408         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOULL,
68409         HAVE_STRTOULL.
68411 2008-10-19  Bruno Haible  <bruno@clisp.org>
68413         Add strtoll() declaration to <stdlib.h>.
68414         * lib/stdlib.in.h (strtoll): New declaration.
68415         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
68416         Set HAVE_STRTOLL.
68417         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOLL,
68418         HAVE_STRTOLL.
68419         * modules/strtoll (Depends-on): Add stdlib.
68420         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
68421         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOLL, HAVE_STRTOLL.
68423 2008-10-19  Bruno Haible  <bruno@clisp.org>
68425         * modules/bcopy (Depends-on): Add strings.
68426         (Include): Specify <strings.h>.
68428 2008-10-19  Bruno Haible  <bruno@clisp.org>
68430         * doc/posix-functions/atexit.texi: Update doc regarding mingw.
68432 2008-10-19  Bruno Haible  <bruno@clisp.org>
68434         * lib/openat-die.c (openat_save_fail, openat_restore_fail): Rename
68435         the parameter from 'errno' to 'errnum'. Fixes a compilation error on
68436         mingw.
68438 2008-10-19  Bruno Haible  <bruno@clisp.org>
68440         * lib/atanl.c: Don't include isnanl.h.
68441         * lib/cosl.c: Likewise.
68442         * lib/ldexpl.c: Likewise.
68443         * lib/logl.c: Likewise.
68444         * lib/sinl.c: Likewise.
68445         * lib/sqrtl.c: Likewise.
68446         * lib/tanl.c: Likewise.
68448         Move the isnanf(), isnand(), isnanl() declarations to <math.h>.
68449         * lib/isnanf.h: Remove file.
68450         * lib/isnand.h: Remove file.
68451         * lib/isnanl.h: Remove file.
68452         * lib/math.in.h: Include the contents of lib/isnanf.h, lib/isnand.h,
68453         lib/isnanl.h. Use HAVE_ISNANF, HAVE_ISNAND, HAVE_ISNANL as substituted
68454         macros.
68455         * m4/isnanf.m4 (gl_FUNC_ISNANF): Require gl_MATH_H_DEFAULTS. Set
68456         HAVE_ISNANF, don't define it as a C macro.
68457         * m4/isnand.m4 (gl_FUNC_ISNAND): Require gl_MATH_H_DEFAULTS. Set
68458         HAVE_ISNAND, don't define it as a C macro.
68459         * m4/isnanl.m4 (gl_FUNC_ISNANL): Require gl_MATH_H_DEFAULTS. Set
68460         HAVE_ISNANL, don't define it as a C macro.
68461         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_ISNAN[FDL] and
68462         HAVE_ISNAN[FDL].
68463         * modules/isnanf (Files): Remove lib/isnanf.h.
68464         (Depends-on): Add math.
68465         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
68466         (Include): Specify <math.h> instead of isnanf.h.
68467         * modules/isnand (Files): Remove lib/isnand.h.
68468         (Depends-on): Add math.
68469         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
68470         (Include): Specify <math.h> instead of isnand.h.
68471         * modules/isnanl (Files): Remove lib/isnanl.h.
68472         (Depends-on): Add math.
68473         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
68474         (Include): Specify <math.h> instead of isnanl.h.
68475         * modules/math (Makefile.am): Substitute GNULIB_ISNAN[FDL] and
68476         HAVE_ISNAN[FDL].
68477         * tests/test-isnanf.c: Include <math.h> instead of isnanf.h.
68478         * tests/test-isnand.c: Include <math.h> instead of isnand.h.
68479         * tests/test-isnanl.c: Include <math.h> instead of isnanl.h.
68480         * NEWS: Mention the change.
68482 2008-10-18  Bruno Haible  <bruno@clisp.org>
68484         Add getusershell(), setusershell(), endusershell() declarations to
68485         <unistd.h>.
68486         * lib/unistd.in.h (getusershell, setusershell, endusershell): New
68487         declarations.
68488         * lib/getusershell.c: Include unistd.h.
68489         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Require
68490         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
68491         HAVE_GETUSERSHELL.
68492         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETUSERSHELL
68493         and HAVE_GETUSERSHELL.
68494         * modules/getusershell (Depends-on): Add unistd, extensions.
68495         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
68496         (Include): Specify <unistd.h>.
68497         * modules/unistd (Makefile.am): Substitute GNULIB_GETUSERSHELL and
68498         HAVE_GETUSERSHELL.
68500 2008-10-18  Bruno Haible  <bruno@clisp.org>
68502         Add a getloadavg() declaration to <stdlib.h>.
68503         * lib/stdlib.in.h; Include <sys/loadavg.h> when needed for the
68504         getloadavg declaration.
68505         (getloadavg): New declaration.
68506         * lib/getloadavg.c: Include <stdlib.h> first.
68507         * m4/getloadavg.m4 (gl_GETLOADAVG): Require gl_STDLIB_H_DEFAULTS and
68508         AC_USE_SYSTEM_EXTENSIONS. Test whether sys/loadavg.h exists. Set
68509         HAVE_SYS_LOADAVG_H and HAVE_DECL_GETLOADAVG.
68510         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GETLOADAVG,
68511         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
68512         * modules/getloadavg (Depends-on): Add stdlib, extensions.
68513         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
68514         (Include): Specify <stdlib.h>.
68515         * modules/stdlib (Makefile.am): Substitute GNULIB_GETLOADAVG,
68516         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
68518 2008-10-18  Bruno Haible  <bruno@clisp.org>
68520         * lib/dirchownmod.c: Don't include lchmod.h.
68522         Move the lchmod() declaration to <sys/stat.h>.
68523         * lib/lchmod.h: Remove file.
68524         * lib/sys_stat.in.h: Add placeholder for GL_LINK_WARNING.
68525         (lchmod): New declaration, moved here from lib/lchown.h.
68526         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Require gl_SYS_STAT_H_DEFAULTS and
68527         AC_USE_SYSTEM_EXTENSIONS. Set HAVE_LCHMOD.
68528         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LCHMOD
68529         and HAVE_LCHMOD.
68530         * modules/lchmod (Files): Remove lib/lchmod.h.
68531         (Depends-on): Add sys_stat, extensions.
68532         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
68533         (Include): Specify <sys/stat.h> instead of lchmod.h.
68534         * modules/sys_stat (Depends-on): Add link-warning.
68535         (Makefile.am): Substitute GNULIB_LCHMOD, HAVE_LCHMOD, and the
68536         definition of GL_LINK_WARNING.
68537         * NEWS: Mention the change.
68539 2008-10-18  Bruno Haible  <bruno@clisp.org>
68541         * lib/fchdir.c: Don't include dirfd.h.
68542         * lib/fts.c: Likewise.
68543         * lib/getcwd.c: Likewise.
68544         * lib/glob.c: Likewise.
68546         Move the dirfd() declaration to <dirent.h>.
68547         * lib/dirfd.h: Remove file.
68548         * lib/dirent.in.h: Add placeholder for GL_LINK_WARNING.
68549         (dirfd): New declaration.
68550         * lib/dirfd.c: Include <dirent.h> instead of dirfd.h.
68551         * m4/dirfd.m4 (gl_FUNC_DIRFD): Require gl_DIRENT_H_DEFAULTS and
68552         AC_USE_SYSTEM_EXTENSIONS. Invoke gl_REPLACE_DIRENT_H. Set
68553         HAVE_DECL_DIRFD.
68554         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_DIRFD and
68555         HAVE_DECL_DIRFD.
68556         * modules/dirfd (Files): Remove lib/dirfd.h.
68557         (Depends-on): Add dirent, extensions.
68558         (configure.ac): Invoke gl_DIRENT_MODULE_INDICATOR.
68559         (Include): Specify <dirent.h> instead of dirfd.h.
68560         * modules/dirent (Depends-on): Add link-warning.
68561         (Makefile.am): Substitute GNULIB_DIRFD, HAVE_DECL_DIRFD, and
68562         definition of GL_LINK_WARNING.
68563         * NEWS: Mention the change.
68565 2008-10-18  Bruno Haible  <bruno@clisp.org>
68567         Move the euidaccess() declaration to <unistd.h>.
68568         * lib/euidaccess.h: Remove file.
68569         * lib/unistd.in.h (euidaccess): New declaration.
68570         * lib/euidaccess.c: Don't include euidaccess.h.
68571         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Require gl_UNISTD_H_DEFAULTS.
68572         Don't check whether euidaccess is declared. Set HAVE_EUIDACCESS.
68573         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_EUIDACCESS
68574         and HAVE_EUIDACCESS.
68575         * modules/euidaccess (Files): Remove lib/euidaccess.h.
68576         (Depends-on): Add unistd.
68577         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
68578         (Include): Specify <unistd.h> instead of euidaccess.h.
68579         * modules/unistd (Makefile.am): Substitute GNULIB_EUIDACCESS and
68580         HAVE_EUIDACCESS.
68581         * NEWS: Mention the change.
68583 2008-10-18  Bruno Haible  <bruno@clisp.org>
68585         * lib/xgetdomainname.c: Include <unistd.h> instead of getdomainname.h.
68587         Move the getdomainname() declaration to <unistd.h>.
68588         * lib/getdomainname.h: Remove file.
68589         * lib/unistd.in.h (getdomainname): New declaration.
68590         * lib/getdomainname.c: Include <unistd.h> instead of getdomainname.h.
68591         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
68592         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
68593         HAVE_GETDOMAINNAME.
68594         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
68595         GNULIB_GETDOMAINNAME and HAVE_GETDOMAINNAME.
68596         * modules/getdomainname (Files): Remove lib/getdomainname.h.
68597         (Depends-on): Add unistd, extensions.
68598         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
68599         (Includes): Specify <unistd.h> instead of getdomainname.h.
68600         * modules/unistd (Makefile.am): Substitute GNULIB_GETDOMAINNAME and
68601         HAVE_GETDOMAINNAME.
68602         * NEWS: Mention the change.
68604 2008-10-18  Bruno Haible  <bruno@clisp.org>
68606         * modules/dirent: New file.
68607         * m4/dirent_h.m4: New file.
68608         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_DIRENT_H_DEFAULTS.
68609         Invoke gl_REPLACE_DIRENT_H. Don't assign DIRENT_H directly.
68610         * modules/fchdir (Files): Remove lib/dirent.in.h.
68611         (Depends-on): Add dirent.
68612         (Makefile.am): Move rules to modules/dirent.
68613         * doc/posix-headers/dirent.texi: Mention the new module.
68615 2008-10-18  Bruno Haible  <bruno@clisp.org>
68617         Avoid -Wunused-parameter warnings in public gnulib header files.
68618         * m4/gnulib-common.m4 (gl_COMMON_BODY): Define _UNUSED_PARAMETER_ as a
68619         macro.
68620         * lib/unistr.h (u32_mbtouc_unsafe, u32_mbtouc): Use it.
68622 2008-10-18  Bruno Haible  <bruno@clisp.org>
68624         * doc/glibc-functions/dirfd.texi: Mention the module 'dirfd'.
68625         * doc/glibc-functions/error.texi: Mention the module 'error'.
68626         * doc/glibc-functions/euidaccess.texi: Mention the module 'euidaccess'.
68627         * doc/glibc-functions/getdomainname.texi: Mention the module
68628         'getdomainname'.
68629         * doc/glibc-functions/getloadavg.texi: Mention the module 'getloadavg'.
68630         * doc/glibc-functions/getpagesize.texi: Mention the module
68631         'getpagesize'.
68632         * doc/glibc-functions/getusershell.texi: Mention the module
68633         'getusershell'.
68634         * doc/glibc-functions/isnanl.texi: Mention the module 'isnanl'.
68635         * doc/glibc-functions/lchmod.texi: Mention the module 'lchmod'.
68636         * doc/glibc-functions/mempcpy.texi: Mention the module 'mempcpy'.
68637         * doc/glibc-functions/memrchr.texi: Mention the module 'memrchr'.
68638         * doc/glibc-functions/mkdtemp.texi: Mention the module 'mkdtemp'.
68639         * doc/glibc-functions/rpmatch.texi: Mention the module 'rpmatch'.
68640         * doc/glibc-functions/stpcpy.texi: Mention the module 'stpcpy'.
68641         * doc/glibc-functions/stpncpy.texi: Mention the module 'stpncpy'.
68642         * doc/glibc-functions/strchrnul.texi: Mention the module 'strchrnul'.
68643         * doc/glibc-functions/strndup.texi: Mention the module 'strndup'.
68644         * doc/glibc-functions/strnlen.texi: Mention the module 'strnlen'.
68645         * doc/glibc-functions/strsep.texi: Mention the module 'strsep'.
68646         * doc/glibc-functions/timegm.texi: Mention the module 'timegm'.
68647         * doc/glibc-functions/vasprintf.texi: Mention the module 'vasprintf'.
68649 2008-10-17  Bruno Haible  <bruno@clisp.org>
68651         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): On platforms other than
68652         HP-UX and IRIX, use -0.0L.
68653         * tests/test-ceill.c (minus_zero): Likewise.
68654         * tests/test-floorl.c (minus_zero): Likewise.
68655         * tests/test-frexpl.c (minus_zero): Likewise.
68656         * tests/test-isnan.c (minus_zerol): Likewise.
68657         * tests/test-isnanl.h (minus_zero): Likewise.
68658         * tests/test-ldexpl.c (minus_zero): Likewise.
68659         * tests/test-roundl.c (minus_zero): Likewise.
68660         * tests/test-signbit.c (minus_zerol): Likewise.
68661         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
68662         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
68663         * tests/test-truncl.c (minus_zero): Likewise.
68664         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
68665         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
68666         Reported by Markus Armbruster <armbru@redhat.com> via Jim Meyering
68667         and by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
68669 2008-10-17  Bruno Haible  <bruno@clisp.org>
68671         Avoid gcc warnings because of #pragma GCC system_header on older gcc.
68672         * lib/arpa_inet.in.h: Encloses reference to PRAGMA_SYSTEM_HEADER so
68673         that it gets activated only for gcc >= 3.0.
68674         * lib/dirent.in.h: Likewise.
68675         * lib/errno.in.h: Likewise.
68676         * lib/fcntl.in.h: Likewise.
68677         * lib/float.in.h: Likewise.
68678         * lib/iconv.in.h: Likewise.
68679         * lib/inttypes.in.h: Likewise.
68680         * lib/locale.in.h: Likewise.
68681         * lib/math.in.h: Likewise.
68682         * lib/netdb.in.h: Likewise.
68683         * lib/netinet_in.in.h: Likewise.
68684         * lib/search.in.h: Likewise.
68685         * lib/signal.in.h: Likewise.
68686         * lib/spawn.in.h: Likewise.
68687         * lib/stdarg.in.h: Likewise.
68688         * lib/stdint.in.h: Likewise.
68689         * lib/stdio.in.h: Likewise.
68690         * lib/stdlib.in.h: Likewise.
68691         * lib/string.in.h: Likewise.
68692         * lib/strings.in.h: Likewise.
68693         * lib/sys_file.in.h: Likewise.
68694         * lib/sys_ioctl.in.h: Likewise.
68695         * lib/sys_select.in.h: Likewise.
68696         * lib/sys_socket.in.h: Likewise.
68697         * lib/sys_stat.in.h: Likewise.
68698         * lib/sys_time.in.h: Likewise.
68699         * lib/sysexits.in.h: Likewise.
68700         * lib/time.in.h: Likewise.
68701         * lib/unistd.in.h: Likewise.
68702         * lib/wchar.in.h: Likewise.
68703         * lib/wctype.in.h: Likewise.
68704         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
68706 2008-10-17  Jim Meyering  <meyering@redhat.com>
68708         ignore-value: don't depend on inline module
68709         * modules/ignore-value (Depends-on): Remove 'inline'.
68710         (configure.ac): Instead, add AC_REQUIRE([AC_C_INLINE]) here.
68711         Suggestion from Bruno Haible.
68713 2008-10-17  Bruno Haible  <bruno@clisp.org>
68715         New implementation of condition variables for Win32.
68716         * lib/glthread/cond.h (struct gl_waitqueue_link): New type.
68717         (gl_linked_waitqueue_t): New type.
68718         (gl_cond_t): Use it.
68719         * lib/glthread/cond.c (struct gl_waitqueue_element): New type.
68720         (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_remove,
68721         gl_waitqueue_notify_first, gl_waitqueue_notify_all): New functions.
68722         (glthread_cond_init_func, glthread_cond_wait_func,
68723         glthread_cond_timedwait_func, glthread_cond_signal_func,
68724         glthread_cond_broadcast_func, glthread_cond_destroy_func):
68725         Reimplemented on the basis of gl_linked_waitqueue_t.
68726         * lib/glthread/lock.h (gl_carray_waitqueue_t): Renamed from
68727         gl_waitqueue_t.
68728         (gl_rwlock_t): Update.
68729         * lib/glthread/lock.c (gl_waitqueue_t): Alias to gl_carray_waitqueue_t.
68731 2008-10-17  Simon Josefsson  <simon@josefsson.org>
68733         * modules/recvfrom (Depends-on): Add dependency on getpeername.
68734         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
68736 2008-10-17  Jim Meyering  <meyering@redhat.com>
68738         ignore-value: new module
68739         * modules/ignore-value: New file.
68740         * lib/ignore-value.h: New file.
68741         * MODULES.html.sh (Compiler warning management): New section,
68742         just for this module.  More to come.
68744 2008-10-16  Paul Eggert  <eggert@cs.ucla.edu>
68746         open-safer.c: avoid 'signed and unsigned in conditional...' warning
68747         * lib/open-safer.c (open_safer): Use an "if/else" statement in place
68748         of the ternary operator.  Reported by Reuben Thomas <rrt@sc3d.org>.
68750 2008-10-16  Jim Meyering  <meyering@redhat.com>
68752         openat-die.c: avoid 'no previous prototype' warning
68753         * lib/openat-die.c: Include "openat.h".
68754         Reported by Reuben Thomas <rrt@sc3d.org>.
68756 2008-10-16  Simon Josefsson  <simon@josefsson.org>
68758         * m4/netdb_h.m4: Assume that if netdb.h exists, it works.
68759         * lib/netdb.in.h: Fix typo.
68760         Reported by Bruno Haible  <bruno@clisp.org>
68762         * lib/netdb.in.h: Include sys/socket.h for platforms without
68763         netdb.h, to get structures like hostent on MinGW.
68764         * modules/netdb (Depends-on): Add sys_socket.
68766 2008-10-15  Simon Josefsson  <simon@josefsson.org>
68768         * modules/netdb, modules/netdb-tests: New file.
68769         * m4/netdb_h.m4: New file.
68770         * lib/netdb.in.h: Add, currently just an empty file pending
68771         definitions.
68772         * tests/test-netdb.c: New file.
68773         * doc/posix-headers/netdb.texi: Mention that we replace it if
68774         needed.
68775         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
68776         netdb.
68778 2008-10-15  Simon Josefsson  <simon@josefsson.org>
68780         * doc/gnulib.texi (Getaddrinfo and WINVER): Sync documentation
68781         with code.
68783 2008-10-13  Bruno Haible  <bruno@clisp.org>
68785         * lib/glthread/cond.c (glthread_cond_wait_func,
68786         glthread_cond_timedwait_func): Add a comment.
68788 2008-10-13  Yoann Vandoorselaere  <yoann@prelude-ids.org>
68790         * tests/test-poll.c: Include <sys/ioctl.h>, for ioctl().
68791         * tests/test-select.c: Likewise,
68793 2008-10-13  Bruno Haible  <bruno@clisp.org>
68795         * lib/glthread/cond.c (glthread_cond_wait_func,
68796         glthread_cond_timedwait_func): Fix variable name.
68797         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
68799 2008-10-13  Paolo Bonzini  <bonzini@gnu.org>
68801         fix getaddrinfo emulation for systems with struct sockaddr.sa_len
68802         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Detect
68803         struct sockaddr.sa_len.
68804         * lib/getaddrinfo.c (getaddrinfo): Set it if appropriate.
68806 2008-10-13  Simon Josefsson  <simon@josefsson.org>
68808         * build-aux/pmccabe2html: Add css and css_url parameters.
68810 2008-10-12  Bruno Haible  <bruno@clisp.org>
68812         * tests/test-sameacls.c (main) [AIX]: Clear type argument before
68813         calling aclx_get.
68814         Reported by Rainer Tammer <tammer@tammer.net>.
68816 2008-10-12  Bruno Haible  <bruno@clisp.org>
68818         Use msvcrt aware primitives for creation/termination of Win32 threads.
68819         * lib/glthread/thread.c: Include <process.h>.
68820         (glthread_create_func): Use _beginthreadex instead of CreateThread.
68821         (wrapper_func): Update signature.
68822         (gl_thread_exit_func): Use _endthreadex instead of EndThread.
68824 2008-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
68825             Bruno Haible  <bruno@clisp.org>
68827         Provide a Win32 implementation of the 'cond' module.
68828         * lib/glthread/cond.h [USE_WIN32]: New implementation.
68829         * lib/glthread/cond.c (glthread_cond_init_func,
68830         glthread_cond_wait_func, glthread_cond_timedwait_func,
68831         glthread_cond_signal_func, glthread_cond_broadcast_func,
68832         glthread_cond_destroy_func) [USE_WIN32]: New functions.
68833         * modules/cond (Dependencies): Add gettimeofday.
68835 2008-10-11  Bruno Haible  <bruno@clisp.org>
68837         Make sleep work on older versions of mingw.
68838         * m4/sleep.m4 (gl_FUNC_SLEEP): Test whether 'sleep' is declared, not
68839         only whether it exists.
68840         * doc/posix-functions/sleep.texi: Mention the problem with older
68841         versions of mingw.
68843 2008-10-11  Bruno Haible  <bruno@clisp.org>
68845         New module 'shutdown'.
68846         * modules/shutdown: New file.
68847         * lib/sys_socket.in.h (shutdown): New declaration.
68848         * lib/winsock.c (shutdown): New function.
68849         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
68850         GNULIB_SHUTDOWN.
68851         * modules/sys_socket (Makefile.am): Substitute GNULIB_SHUTDOWN.
68852         * doc/posix-functions/shutdown.texi: Document the new module.
68854 2008-10-11  Jim Meyering  <meyering@redhat.com>
68856         * lib/fclose.c: Fix typo in comment: s/close/fclose/.
68858 2008-10-11  Bruno Haible  <bruno@clisp.org>
68860         New module 'fclose'.
68861         * modules/fclose: New file.
68862         * lib/stdio.in.h (fclose): New declaration.
68863         * lib/fclose.c: New file.
68864         * m4/fclose.m4: New file.
68865         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FCLOSE,
68866         REPLACE_FCLOSE.
68867         * m4/close.m4 (gl_REPLACE_CLOSE): Invoke gl_REPLACE_FCLOSE.
68868         * modules/stdio (Makefile.am): Substitute GNULIB_FCLOSE,
68869         REPLACE_FCLOSE.
68870         * modules/close (Depends-on): fclose.
68871         * doc/posix-functions/fclose.texi: Mention the problem on Windows.
68873 2008-10-11  Bruno Haible  <bruno@clisp.org>
68875         * lib/winsock.c (_gl_close_fd_maybe_socket): If closesocket fails,
68876         set errno and don't call _close.
68878 2008-10-10  Bruno Haible  <bruno@clisp.org>
68880         * lib/copy-acl.c (qcopy_acl) [CYGWIN]: Call chmod before setting the
68881         ACL, not afterwards. Fixes test failure on Cygwin.
68883 2008-10-09  Ben Pfaff  <blp@gnu.org>
68885         * build-aux/announce-gen: Fix gnulib version related part of usage
68886         message.  Die with a useful error message if no tarballs are
68887         found.
68889 2008-10-10  Jim Meyering  <meyering@redhat.com>
68891         bootstrap: use git's --depth=N option only if it's supported
68892         * build-aux/bootstrap: Work with git-1.4.4.4, which does not
68893         recognize the --depth option.  Reported by Pádraig Brady.
68895 2008-10-09  Bruno Haible  <bruno@clisp.org>
68897         New module 'ioctl'.
68898         * modules/ioctl: New file.
68899         * lib/sys_socket.in.h (ioctl): Remove declaration.
68900         * lib/winsock.c: Include <sys/ioctl.h>.
68901         (rpl_ioctl): Define only of the gnulib module 'ioctl' is present.
68902         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
68903         gl_SYS_IOCTL_H_DEFAULTS. Set also SYS_IOCTL_H_HAVE_WINSOCK2_H.
68904         * modules/sys_socket (Files): Add m4/sys_ioctl_h.m4.
68905         * doc/posix-functions/ioctl.texi: Mention the new module.
68907 2008-10-09  Bruno Haible  <bruno@clisp.org>
68909         New module 'sys_ioctl'.
68910         * lib/sys_ioctl.in.h: New file.
68911         * m4/sys_ioctl_h.m4: New file.
68912         * modules/sys_ioctl: New file.
68913         * doc/glibc-headers/sys_ioctl.texi: Mention the new module.
68915 2008-10-09  Bruno Haible  <bruno@clisp.org>
68917         * lib/sys_socket.in.h (ioctl): Make signature POSIX compliant.
68918         * lib/winsock.c: Include <stdarg.h>.
68919         (rpl_ioctl): Change to second argument 'int' and then varargs.
68921 2008-10-09  Bruno Haible  <bruno@clisp.org>
68923         * m4/close.m4 (gl_FUNC_CLOSE): Arrange to replace the close() function
68924         when the sys_socket module is present and the system has <winsock2.h>.
68926 2008-10-09  Bruno Haible  <bruno@clisp.org>
68928         * doc/posix-functions/close.texi: Mention module 'close' instead of
68929         module 'sys_socket'.
68931 2008-10-09  Bruno Haible  <bruno@clisp.org>
68933         * doc/glibc-headers/sys_ioctl.texi: New file.
68934         * doc/gnulib.texi: Include it.
68936 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
68937             Bruno Haible  <bruno@clisp.org>
68939         Combine the two replacements of 'close'.
68940         * lib/sys_socket.in.h (close): Define to a reminder to include
68941         <unistd.h>.
68942         (_gl_close_fd_maybe_socket): New declaration.
68943         (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): New macro.
68944         * lib/winsock.c (close): Remove undefinition.
68945         (_gl_close_fd_maybe_socket): Renamed from rpl_close. Define only when
68946         needed for the gnulib module 'close'.
68947         * lib/unistd.in.h (close): If the gnulib module 'close' is not used,
68948         define to an error symbol or to a warning, if suitable.
68949         * lib/close.c: Include <sys/socket.h>.
68950         (rpl_close): Invoke _gl_close_fd_maybe_socket when gnulib defines it.
68951         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Set also
68952         UNISTD_H_HAVE_WINSOCK2_H.
68953         (gl_SYS_SOCKET_H_DEFAULTS): Require gl_UNISTD_H_DEFAULTS.
68954         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
68955         UNISTD_H_HAVE_WINSOCK2_H.
68956         * modules/sys_socket (Files): Add m4/unistd_h.m4.
68957         (configure.ac): Set a module indicator.
68958         (Makefile.am): Substitute GNULIB_CLOSE.
68959         * modules/unistd (Makefile.am): Substitute UNISTD_H_HAVE_WINSOCK2_H.
68960         * modules/poll-tests (Depends-on): Add close.
68961         * modules/select-tests (Depends-on): Likewise.
68963 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
68964             Bruno Haible  <bruno@clisp.org>
68966         New module 'close'.
68967         * modules/close: New file.
68968         * lib/unistd.in.h (close): Move declaration out of the
68969         FCHDIR_REPLACEMENT scope.
68970         (_gl_unregister_fd): New declaration.
68971         * lib/close.c: New file.
68972         * lib/fchdir.c (rpl_close): Remove function.
68973         * m4/close.m4: New file.
68974         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
68975         close.
68976         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CLOSE and
68977         REPLACE_CLOSE.
68978         * modules/unistd (Makefile.am): Substitute GNULIB_CLOSE and
68979         REPLACE_CLOSE.
68980         * modules/fchdir (Depends-on): Add close.
68982 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
68983             Bruno Haible  <bruno@clisp.org>
68985         * lib/fcntl.in.h (open): Simplify conditionals.
68986         (_gl_register_fd): New declaration.
68987         * lib/fchdir.c (rpl_open): Remove function.
68988         * lib/open.c: When FCHDIR_REPLACEMENT is defined, compile the file
68989         also.
68990         (open): When FCHDIR_REPLACEMENT is defined, invoke _gl_register_fd.
68991         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
68992         open.
68994 2008-10-09  Jim Meyering  <meyering@redhat.com>
68996         GNUmakefile: use the more name-space-friendly "_version"
68997         * top/GNUmakefile (_dummy): Update.
68998         (_version): Rename from "version".
69000 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
69001             Bruno Haible  <bruno@clisp.org>
69003         * lib/fchdir.c (_gl_unregister_fd): New functions, extracted from
69004         rpl_close.
69005         (_gl_register_fd): New function, extracted from rpl_open.
69006         (rpl_close, rpl_closedir): Use _gl_unregister_fd.
69007         (rpl_open, rpl_opendir): Use _gl_register_fd.
69009 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
69011         Fix organization of 'open' replacement.
69012         * m4/open.m4 (gl_REPLACE_OPEN): New macro.
69013         (gl_FUNC_OPEN): Use it.
69014         (gl_PREREQ_OPEN): Add a : to make the body non-empty.
69016 2008-10-08  Bruno Haible  <bruno@clisp.org>
69018         * modules/getdate-tests (test_getdata_LDADD): Add LIBINTL.
69020 2008-10-08  Simon Josefsson  <simon@josefsson.org>
69022         * m4/sys_socket_h.m4: Don't AC_LIBOBJ(winsock).  The file is
69023         AC_LIBOBJ'ed by each gnulib module that needs it (e.g., socket,
69024         listen).
69026 2008-10-08  Eric Blake  <ebb9@byu.net>
69028         GNUmakefile: add 'make version' target
69029         * top/GNUmakefile (_curr-ver): Split version update rules...
69030         (version): ...into a target.
69032 2008-10-07  Bruno Haible  <bruno@clisp.org>
69034         Use a more portable replacement expression for -0.0L.
69035         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Use -LDBL_MIN * LDBL_MIN
69036         instead of -0.0L. Fix m4 quotation.
69038         * tests/test-signbit.c: Include <float.h>.
69039         (minus_zero): New variable.
69040         (test_signbitl): Use minus_zero instead of -zero.
69041         * modules/signbit-tests (Depends-on): Add float.
69043         * tests/test-ceill.c: Include <float.h>.
69044         (zero): Remove variable.
69045         (minus_zero): New variable.
69046         (main): Use minus_zero instead of -zero.
69047         * modules/ceill-tests (Depends-on): Add float.
69049         * tests/test-floorl.c: Include <float.h>.
69050         (zero): Remove variable.
69051         (minus_zero): New variable.
69052         (main): Use minus_zero instead of -zero.
69053         * modules/floorl-tests (Depends-on): Add float.
69055         * tests/test-roundl.c: Include <float.h>.
69056         (zero): Remove variable.
69057         (minus_zero): New variable.
69058         (main): Use minus_zero instead of -zero.
69059         * modules/roundl-tests (Depends-on): Add float.
69061         * tests/test-truncl.c: Include <float.h>.
69062         (zero): Remove variable.
69063         (minus_zero): New variable.
69064         (main): Use minus_zero instead of -zero.
69065         * modules/truncl-tests (Depends-on): Add float.
69067         * tests/test-frexpl.c (zero): Remove variable.
69068         (minus_zero): New variable.
69069         (main): Use minus_zero instead of -zero.
69070         * modules/frexpl-tests (Depends-on): Add float.
69072         * tests/test-isnan.c (zerol): Remove variable.
69073         (minus_zerol): New variable.
69074         (test_long_double): Use minus_zerol instead of -zerol.
69075         * modules/isnan-tests (Depends-on): Add float.
69077         * tests/test-isnanl.h (zero): Remove variable.
69078         (minus_zero): New variable.
69079         (main): Use minus_zero instead of -zero.
69080         * modules/isnanl-nolibm-tests (Depends-on): Add float.
69081         * modules/isnanl-tests (Depends-on): Add float.
69083         * tests/test-ldexpl.c (zero): Remove variable.
69084         (minus_zero): New variable.
69085         (main): Use minus_zero instead of -zero.
69086         * modules/ldexpl-tests (Depends-on): Add float.
69088         * tests/test-snprintf-posix.h (zerol): Remove variable.
69089         (minus_zerol): New variable.
69090         (test_function): Use minus_zerol instead of -zerol.
69091         * modules/snprintf-posix-tests (Depends-on): Add float.
69092         * modules/vsnprintf-posix-tests (Depends-on): Add float.
69094         * tests/test-sprintf-posix.h (zerol): Remove variable.
69095         (minus_zerol): New variable.
69096         (test_function): Use minus_zerol instead of -zerol.
69097         * modules/sprintf-posix-tests (Depends-on): Add float.
69098         * modules/vsprintf-posix-tests (Depends-on): Add float.
69100         * tests/test-vasnprintf-posix.c (zerol): Remove variable.
69101         (minus_zerol): New variable.
69102         (test_function): Use minus_zerol instead of -zerol.
69103         * modules/vasnprintf-posix-tests (Depends-on): Add float.
69105         * tests/test-vasprintf-posix.c (zerol): Remove variable.
69106         (minus_zerol): New variable.
69107         (test_function): Use minus_zerol instead of -zerol.
69108         * modules/vasprintf-posix-tests (Depends-on): Add float.
69110 2008-10-07  Simon Josefsson  <simon@josefsson.org>
69112         * MODULES.html.sh (Support for building documentation): Mention
69113         pmccabe2html.  Sort entries.
69115         Add pmccabe2html module, from gnupdf.
69116         * build-aux/pmccabe.css: New file.
69117         * build-aux/pmccabe2html: New file.
69118         * m4/pmccabe2html.m4: New file.
69119         * modules/pmccabe2html: New file.
69121 2008-10-07  Richard W.M. Jones  <rjones@redhat.com>
69123         flock: new module
69124         * MODULES.html.sh: Add to list of modules.
69125         * lib/flock.c: flock implementation for Windows and Unix systems
69126         which have fcntl.
69127         * doc/glibc-functions/flock.texi: Update documentation.
69128         * lib/sys_file.in.h: <sys/file.h> header file.
69129         * m4/flock.m4: M4 macros.
69130         * m4/sys_file_h.m4: M4 macros for replacement sys/file.h.
69131         * modules/flock: flock module.
69132         * modules/flock-tests: flock tests module.
69133         * modules/sys_file: sys/file.h module.
69134         * tests/test-flock.c: test suite for flock.
69136 2008-10-06  Jim Meyering  <meyering@redhat.com>
69138         bootstrap: check for LT_INIT more portably still ;-)
69139         * build-aux/bootstrap: Don't rely on \>, since it's not portable.
69140         Spotted by Bruno Haible.
69142 2008-10-06  Eric Blake  <ebb9@byu.net>
69144         test-signbit: avoid tripping Irix cc bug on -0.0L
69145         * tests/test-signbit.c (minus_zerol): Delete, and replace with
69146         '-zerol'.  This may break on HP-UX/hppa, but at least makes the
69147         entire testsuite consistent and avoids an Irix 6.2 bug.
69149 2008-10-05  Bruno Haible  <bruno@clisp.org>
69150             Jim Meyering  <jim@meyering.net>
69152         Add an option for ignoring EPIPE during close_stdout.
69153         * lib/closeout.h: Include <stdbool.h>.
69154         (close_stdout_set_ignore_EPIPE): New declaration.
69155         * lib/closeout.c: Include <stdbool.h>.
69156         (ignore_EPIPE): New variable.
69157         (close_stdout_set_ignore_EPIPE): New function.
69158         (close_stdout): Ignore EPIPE error if ignore_EPIPE is set.
69159         * lib/close-stream.c (close_stream): Mention the possible EPIPE
69160         failure.
69161         * modules/closeout (Depends-on): Add stdbool.
69163 2008-10-05  Bruno Haible  <bruno@clisp.org>
69165         * modules/accept: New file.
69166         * modules/bind: New file.
69167         * modules/connect: New file.
69168         * modules/getpeername: New file.
69169         * modules/getsockname: New file.
69170         * modules/getsockopt: New file.
69171         * modules/listen: New file.
69172         * modules/recv: New file.
69173         * modules/recvfrom: New file.
69174         * modules/send: New file.
69175         * modules/sendto: New file.
69176         * modules/setsockopt: New file.
69177         * modules/socket: New file.
69178         * lib/sys_socket.in.h: Include the GL_LINK_WARNING definition.
69179         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
69180         listen, recv, send, recvfrom, sendto, setsockopt): Declare only when
69181         the particular module is requested. Add a link warning when the
69182         particular module is not requested.
69183         * lib/winsock.c (rpl_socket, rpl_connect, rpl_accept, rpl_bind,
69184         rpl_getpeername, rpl_getsockname, rpl_getsockopt, rpl_listen, rpl_recv,
69185         rpl_send, rpl_recvfrom, rpl_sendto, rpl_setsockopt): Define only when
69186         the particular module is requested.
69187         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR,
69188         gl_SYS_SOCKET_H_DEFAULTS): New macros.
69189         (gl_HEADER_SYS_SOCKET): Require gl_SYS_SOCKET_H_DEFAULTS.
69190         * modules/sys_socket (Depends-on): Add link-warning.
69191         (Makeifle.am): Substitute GNULIB_SOCKET, GNULIB_CONNECT, GNULIB_ACCEPT,
69192         GNULIB_BIND, GNULIB_GETPEERNAME, GNULIB_GETSOCKNAME, GNULIB_GETSOCKOPT,
69193         GNULIB_LISTEN, GNULIB_RECV, GNULIB_SEND, GNULIB_RECVFROM,
69194         GNULIB_SENDTO, GNULIB_SETSOCKOPT, and the definition of
69195         GL_LINK_WARNING.
69196         * doc/posix-functions/accept.texi: Mention the new module 'accept'.
69197         * doc/posix-functions/bind.texi: Mention the new module 'bind'.
69198         * doc/posix-functions/connect.texi: Mention the new module 'connect'.
69199         * doc/posix-functions/getpeername.texi: Mention the new module
69200         'getpeername'.
69201         * doc/posix-functions/getsockname.texi: Mention the new module
69202         'getsockname'.
69203         * doc/posix-functions/getsockopt.texi: Mention the new module
69204         'getsockopt'.
69205         * doc/posix-functions/listen.texi: Mention the new module 'listen'.
69206         * doc/posix-functions/recv.texi: Mention the new module 'recv'.
69207         * doc/posix-functions/recvfrom.texi: Mention the new module 'recvfrom'.
69208         * doc/posix-functions/send.texi: Mention the new module 'send'.
69209         * doc/posix-functions/sendto.texi: Mention the new module 'sendto'.
69210         * doc/posix-functions/setsockopt.texi: Mention the new module
69211         'setsockopt'.
69212         * doc/posix-functions/socket.texi: Mention the new module 'socket'.
69213         * modules/poll-tests (Depends-on): Add socket, bind, getsockopt,
69214         listen, connect, accept.
69215         * modules/select-tests (Depends-on): Likewise.
69217 2008-10-05  Bruno Haible  <bruno@clisp.org>
69219         * lib/winsock.c (strerror): Remove unused #undef.
69220         (rpl_close): Remove unused local variable.
69222         * modules/sys_socket (Depends-on); Add errno.
69224 2008-10-05  Bruno Haible  <bruno@clisp.org>
69226         * lib/sys_select.in.h: Include the GL_LINK_WARNING definition.
69227         (select): Add a link warning when the 'select' module is not used.
69228         * modules/sys_select (Depends-on): Add link-warning.
69229         (Makefile.am): Substitute the definition of GL_LINK_WARNING.
69230         Suggested by Paolo Bonzini.
69232 2008-10-05  Jim Meyering  <meyering@redhat.com>
69234         bootstrap: check for LT_INIT more portably
69235         * build-aux/bootstrap: Avoid using grep -E, since it's not
69236         portable enough.  Suggestion from Bruno Haible.
69238 2008-10-05  Bruno Haible  <bruno@clisp.org>
69240         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem
69241         as being fixed by gnulib.
69243 2008-10-05  Bruno Haible  <bruno@clisp.org>
69245         * modules/select-tests: New file, mostly copied from
69246         modules/sys_select-tests.
69247         * tests/test-select.c: New file, mostly copied from
69248         tests/test-sys_select.c.
69249         * tests/test-sys_select.c: Move most of the code to tests/test-select.c.
69250         * modules/sys_select-tests (Depends-on): Remove all dependencies.
69251         (Makefile.am): Remove test_sys_select_LDADD.
69253         * lib/sys_select.in.h (select): If GNULIB_SELECT is not set, define it
69254         to an undefined symbol, for an error message.
69255         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): New macro.
69256         (gl_SYS_SELECT_H_DEFAULTS): New macro.
69257         (gl_HEADER_SYS_SELECT): Require it. Don't require compilation of
69258         winsock-select.c here.
69259         * modules/sys_select (Files): Remove lib/winsock-select.c.
69260         (Depends-on): Remove alloca.
69261         (Makefile.am): Substitute GNULIB_SELECT.
69262         * modules/select: New file.
69263         * doc/posix-functions/select.texi: Update.
69265 2008-10-05  Bruno Haible  <bruno@clisp.org>
69267         * lib/spawn_faction_addclose.c (__sysconf): Use getdtablesize always.
69268         * lib/spawn_faction_adddup2.c (__sysconf): Likewise.
69269         * lib/spawn_faction_addopen.c (__sysconf): Likewise.
69270         * modules/posix_spawn_file_actions_addclose (Depends-on): Add
69271         getdtablesize.
69272         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
69273         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
69275 2008-10-05  Bruno Haible  <bruno@clisp.org>
69277         * modules/getdtablesize-tests: New file.
69278         * tests/test-getdtablesize.c: New file.
69280         New module 'getdtablesize'.
69281         * lib/unistd.in.h (getdtablesize): New declaration.
69282         * lib/getdtablesize.c: New file.
69283         * m4/getdtablesize.m4: New file.
69284         * modules/getdtablesize: New file.
69285         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
69286         GNULIB_GETDTABLESIZE, HAVE_GETDTABLESIZE.
69287         * modules/unistd (Makefile.am): Substitute GNULIB_GETDTABLESIZE,
69288         HAVE_GETDTABLESIZE.
69289         * doc/glibc-functions/getdtablesize.texi: Mention the new module.
69291 2008-10-05  Bruno Haible  <bruno@clisp.org>
69293         * modules/sched (Makefile.am): Fix typo.
69294         Reported by Simon Josefsson.
69296 2008-10-05  Jim Meyering  <meyering@redhat.com>
69298         bootstrap: check for LT_INIT, too
69299         * build-aux/bootstrap: Both AC_PROG_LIBTOOL and AM_PROG_LIBTOOL
69300         are deprecated.  Suggestion from Ralf Wildenhues.
69302 2008-10-05  Bruno Haible  <bruno@clisp.org>
69304         * lib/spawn.in.h (POSIX_SPAWN_*): Use the system's values, rather than
69305         overriding them by ours.
69306         (POSIX_SPAWN_USEVFORK): Use the next free bit position.
69308 2008-10-05  Jim Meyering  <meyering@redhat.com>
69310         bootstrap: check for AC_PROG_LIBTOOL as well as AM_PROG_LIBTOOL
69311         * build-aux/bootstrap: Check for AC_PROG_LIBTOOL, as well as the
69312         obsolete AM_PROG_LIBTOOL.  Spotted by Debarshi Ray <rishi@gnu.org>.
69314 2008-10-04  Bruno Haible  <bruno@clisp.org>
69316         * modules/dup2 (License): Change to LGPLv2+.
69317         * modules/sleep (License): Likewise.
69318         * modules/perror (License): Likewise.
69319         * modules/fopen (License): Change to LGPLv2+, with approval by Eric
69320         Blake.
69321         * modules/signal (License): Likewise.
69322         * modules/sigprocmask (License): Likewise.
69323         * modules/raise (License): Change to LGPLv2+, with approval by Jim
69324         Meyering.
69326 2008-10-04  Bruno Haible  <bruno@clisp.org>
69328         * lib/spawn.in.h (POSIX_SPAWN_*): Undefine before redefining.
69329         Reported by Rainer Tammer <tammer@tammer.net>.
69331 2008-10-03  Paolo Bonzini  <bonzini@gnu.org>
69332             Bruno Haible  <bruno@clisp.org>
69334         * lib/errno.in.h (EWOULDBLOCK) [win32]: Define to EAGAIN.
69335         * lib/winsock.c (set_winsock_errno): Map WSAEWOULDBLOCK to EWOULDBLOCK.
69336         * lib/strerror.c (rpl_strerror): Remove error string for EWOULDBLOCK.
69338 2008-10-03  Kamil Dudka  <kdudka@redhat.com>
69340         filevercmp: new module
69341         * lib/filevercmp.h: New function filevercmp comparing version strings.
69342         * lib/filevercmp.c: Implementation of filevercmp function.
69343         * modules/filevercmp: Module metadata.
69344         * tests/test-filevercmp.c: Unit test for new module.
69345         * modules/filevercmp-tests: Unit test metadata.
69346         * MODULES.html.sh: Add filevercmp module.
69348 2008-10-03  Bruno Haible  <bruno@clisp.org>
69350         * lib/c-ctype.h: Add comment.
69351         Reported by Jim Meyering.
69353 2008-10-02  Bruno Haible  <bruno@clisp.org>
69355         * modules/posix_spawn-internal (Depends-on): Add 'open'.
69357 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
69359         * build-aux/bootstrap: Allow renaming bootstrap, and change the
69360         name of bootstrap.conf accordingly.
69362 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
69364         * build-aux/bootstrap: Install git-merge-changelog configuration
69365         items into .gitconfig if needed.
69367 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
69369         * build-aux/bootstrap: Recognize `gnulib' being a submodule in a
69370         git repository, and initialize/update it accordingly.
69372 2008-10-02  Richard W.M. Jones  <rjones@redhat.com>
69374         * modules/fsync-tests: New file.
69375         * tests/test-fsync.c: New file.
69377         New module 'fsync'.
69378         * lib/fsync.c: New file.
69379         * m4/fsync.m4: New file.
69380         * modules/fsync: New file.
69381         * lib/unistd.in.h (fsync): New declaration.
69382         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define and AC_SUBST both
69383         GNULIB_FSYNC and HAVE_FSYNC.
69384         * modules/unistd: Substitute GNULIB_FSYNC and HAVE_FSYNC.
69385         * MODULES.html.sh (posix_functions): Add fsync.
69386         * doc/posix-functions/fsync.texi: Mention the new module.
69388 2008-10-02  Jim Meyering  <meyering@redhat.com>
69390         fts.c: sync with similar code from coreutils' remove.c
69391         * lib/fts.c (dirent_inode_sort_may_be_useful): Merge from coreutils.
69392         Guard also with "#if defined __linux__", since for now at least,
69393         this code is Linux-kernel-specific.
69395 2008-10-02  Jim Meyering  <meyering@redhat.com>
69397         fts: bug fixes
69398         * lib/fts.c: Remove unnecessary "defined" in cpp directive.
69399         Include <sys/vfs.h>, not <sys/statfs.h>.
69401         * m4/fts.m4 (gl_FUNC_FTS_CORE): Fix typo s/vfs/vfs.h/.
69402         Include <sys/vfs.h>, not <sys/statfs.h>.
69404 2008-10-01  Bruno Haible  <bruno@clisp.org>
69406         Avoid the broken posix_spawn function on AIX 5.3 and 6.1.
69407         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): New macro.
69408         (gl_POSIX_SPAWN_BODY): Invoke it. Set REPLACE_POSIX_SPAWN if needed.
69409         * doc/posix-functions/posix_spawn.texi: Mention the AIX bugs.
69410         * doc/posix-functions/posix_spawnp.texi: Likewise.
69411         * m4/execute.m4 (gl_EXECUTE): Invoke gl_POSIX_SPAWN_WORKS, to check
69412         whether posix_spawn actually works.
69413         * m4/pipe.m4 (gl_PIPE): Likewise.
69414         * modules/execute (Files): Add m4/posix_spawn.m4.
69415         * modules/pipe (Files): Add m4/posix_spawn.m4.
69416         Reported and analyzed by Rainer Tammer <tammer@tammer.net>.
69418 2008-10-01  Jim Meyering  <meyering@redhat.com>
69420         remove trailing spaces
69421         * NEWS: Likewise.
69422         * lib/poll.c (poll): Likewise.
69423         * lib/sys_socket.in.h (SHUT_RDWR): Likewise.
69424         * lib/winsock.c (rpl_close): Likewise.
69425         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Likewise.
69426         * modules/yield: Likewise.
69427         * tests/test-poll.c (connect_to_socket, poll1): Likewise.
69428         * tests/test-sys_select.c (connect_to_socket): Likewise.
69430         fts.c: adjust a new interface to be more generally useful
69431         * lib/fts.c (dirent_inode_sort_may_be_useful): Take an FD parameter.
69432         (fts_build): Adjust caller.
69434 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
69436         * modules/cond-tests: New file.
69437         * tests/test-cond.c: New file.
69439 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
69440             Bruno Haible  <bruno@clisp.org>
69442         * modules/cond (Dependencies): Add errno, time.
69443         * lib/glthread/cond.h: Include <time.h>.
69444         (gl_cond_define, gl_cond_define_initialized): Use the same definition
69445         across platforms.
69447 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
69448             Bruno Haible  <bruno@clisp.org>
69450         * m4/thread.m4 (gl_THREAD): Fix detection of pthread_atfork function.
69452 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
69453             Bruno Haible  <bruno@clisp.org>
69455         * modules/tls-tests (Depends-on): Add thread, yield.
69456         (configure.ac): Remove all checks.
69457         (test_tls_LDADD): Use YIELD_LIB instead of LIBSCHED.
69458         * tests/test-tls.c (gl_thread_t, gl_thread_join, gl_thread_yield,
69459         gl_thread_self): Remove definitions. Include glthread/thread.h and
69460         glthread/yield.h instead.
69461         (test_tls): Pass an additional NULL argument to gl_thread_join.
69463 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
69464             Bruno Haible  <bruno@clisp.org>
69466         * modules/lock-tests (Depends-on): Add thread, yield.
69467         (configure.ac): Remove all checks.
69468         (test_lock_LDADD): Use YIELD_LIB instead of LIBSCHED.
69469         * tests/test-lock.c (gl_thread_t, gl_thread_join, gl_thread_yield,
69470         gl_thread_self): Remove definitions. Include glthread/thread.h and
69471         glthread/yield.h instead.
69472         (test_lock, test_rwlock, test_recursive_lock, test_once): Pass an
69473         additional NULL argument to gl_thread_join.
69475 2008-09-30  Bruno Haible  <bruno@clisp.org>
69477         Fix the Win32 implementation of the 'thread' module.
69478         * lib/glthread/thread.h [USE_WIN32_THREADS] (gl_thread_t): Change to a
69479         pointer type.
69480         (gl_thread_self): Invoke gl_thread_self_func.
69481         (gl_thread_self_func): New declaration.
69482         * lib/glthread/thread.c [USE_WIN32_THREADS] (self_key): New variable.
69483         (do_init_self_key, init_self_key): New functions.
69484         (struct gl_thread_struct): Renamed from 'struct thread_extra'.
69485         Remove some fields.
69486         (running_threads, running_lock): Remove variables.
69487         (get_current_thread_handle): New function.
69488         (gl_thread_self_func, wrapper_func, glthread_create_func,
69489         glthread_join_func, gl_thread_exit_func): Largely rewritten and
69490         simplified.
69492 2008-09-30  Bruno Haible  <bruno@clisp.org>
69494         * lib/winsock-select.c (win32_poll_handle): Add shortcut for regular
69495         files.
69497 2008-09-30  Jim Meyering  <meyering@redhat.com>
69499         fts.m4: correct the test for statfs.f_type
69500         * m4/fts.m4 (gl_FUNC_FTS_CORE): Include <sys/statfs.h>
69501         when checking for statfs.f_type.
69503 2008-09-15  Simon Josefsson  <simon@josefsson.org>
69505         tests: avoid some compiler warnings
69506         * tests/test-memchr.c (main): Pass NULL indirectly.
69507         * tests/test-getdate.c (main): Remove unused variable 'ret'.
69509 2008-09-29  Ondřej Vašík  <ovasik@redhat.com>
69511         getdate.y: disallow countable dayshifts like "4 yesterday ago"
69512         * lib/getdate.y (relative_time_table) [tDAY_SHIFT]: New type for
69513         exactly specified dayshifts.
69514         (dayshift): New rule.
69515         (rel): Add dayshift.
69516         (relative_time_table) [tomorrow, yesterday, today, now]:
69517         Use tDAY_SHIFT in place of tDAY_UNIT.
69518         * tests/test-getdate.c: Add tests for now-disallowed countable
69519         dayshifts, e.g., "4 yesterday ago".
69521 2008-09-29  Bruno Haible  <bruno@clisp.org>
69523         * tests/test-posix_spawn1.c: Renamed from tests/test-posix_spawn.c.
69524         * tests/test-posix_spawn1.in.sh: Renamed from
69525         tests/test-posix_spawn.in.sh.
69526         * tests/test-posix_spawn2.c: New file.
69527         * tests/test-posix_spawn2.in.sh: New file.
69528         * modules/posix_spawnp-tests (Files): Update.
69529         (Makefile.am): Update. Add test-posix_spawn2 to the tests.
69531 2008-09-29  Bruno Haible  <bruno@clisp.org>
69533         Propagate effects of putenv/setenv/unsetenv to child processes.
69534         * lib/execute.c (execute): Use spawnvpe instead of spawnvp.
69535         * lib/pipe.c (create_pipe): Likewise.
69537 2008-09-29  Bruno Haible  <bruno@clisp.org>
69539         Enable use of shell scripts as executables in mingw.
69540         * lib/execute.c (execute): When spawnv fails with error ENOEXEC,
69541         run the program as a shell script.
69542         * lib/pipe.c (create_pipe): Likewise.
69543         * lib/w32spawn.h (prepare_spawn): Add a hidden element in front of the
69544         resulting array.
69546 2008-09-29  Eric Blake  <ebb9@byu.net>
69548         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Fix typo.
69550 2008-08-24  Paolo Bonzini  <bonzini@gnu.org>
69552         * doc/posix-functions/accept.texi: Update mingw problems.
69553         * doc/posix-functions/bind.texi: Update mingw problems.
69554         * doc/posix-functions/close.texi: Update mingw problems.
69555         * doc/posix-functions/connect.texi: Update mingw problems.
69556         * doc/posix-functions/getpeername.texi: Update mingw problems.
69557         * doc/posix-functions/getsockname.texi: Update mingw problems.
69558         * doc/posix-functions/getsockopt.texi: Update mingw problems.
69559         * doc/posix-functions/ioctl.texi: Update mingw problems.
69560         * doc/posix-functions/listen.texi: Update mingw problems.
69561         * doc/posix-functions/recv.texi: Update mingw problems.
69562         * doc/posix-functions/recvfrom.texi: Update mingw problems.
69563         * doc/posix-functions/select.texi: Update mingw problems.
69564         * doc/posix-functions/send.texi: Update mingw problems.
69565         * doc/posix-functions/sendto.texi: Update mingw problems.
69566         * doc/posix-functions/setsockopt.texi: Update mingw problems.
69567         * doc/posix-functions/socket.texi: Update mingw problems.
69569 2008-09-29  Paolo Bonzini  <bonzini@gnu.org>
69570             Bruno Haible  <bruno@clisp.org>
69572         * lib/sys_select.in.h: Include sys/time.h.
69573         * m4/sys_select.h.m4: Test that struct timeval is fully defined.
69574         * modules/sys_select: Depend on sys_time.
69575         * tests/test-sys_select.c: Test that sys/select.h defines struct
69576         timeval fully.
69578 2008-09-29  Bruno Haible  <bruno@clisp.org>
69580         * lib/sys_socket.in.h: Wrap the definitions in 'extern "C"'.
69581         * lib/sys_select.in.h: Likewise.
69583 2008-09-29  Bruno Haible  <bruno@clisp.org>
69585         * lib/winsock.c (rpl_close, rpl_socket): Remove unused variables.
69587 2008-09-29  Bruno Haible  <bruno@clisp.org>
69589         * m4/sockets.m4 (gl_SOCKETS): Check also for the need to use -lsocket.
69590         Set LIBSOCKET instead of augmenting LIBS.
69591         * modules/sockets (Link): New section.
69592         * modules/sockets-tests (test_sockets_LDADD): New variable.
69593         * modules/sys_select-tests (test_sys_select_LDADD): New variable.
69594         * modules/poll-tests (test_poll_LDADD): New variable.
69595         * NEWS: Document the change.
69597 2008-09-29  Bruno Haible  <bruno@clisp.org>
69599         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): New macro.
69600         * m4/inet_ntop.m4 (gl_INET_NTOP): Invoke it instead of assigning
69601         ARPA_INET_H directly.
69602         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
69604 2008-09-28  Bruno Haible  <bruno@clisp.org>
69606         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): New macro, extracted
69607         from gl_HEADER_SYS_SOCKET.
69608         (gl_HEADER_SYS_SOCKET): Invoke it.
69609         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
69611 2008-09-28  Bruno Haible  <bruno@clisp.org>
69613         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem.
69614         * tests/test-sys_select.c: Include <sys/time.h>, for struct timeval.
69615         Needed on OSF/1 4.0.
69617 2008-09-28  Bruno Haible  <bruno@clisp.org>
69619         Override open more carefully.
69620         * lib/open.c (orig_open): New function.
69621         (rpl_open): Use orig_open instead of open.
69622         * lib/fcntl.in.h: Add special invocation convention.
69623         * m4/open.m4 (gl_PREREQ_OPEN): New macro.
69624         (gl_FUNC_OPEN): Invoke it.
69626         Override freopen more carefully.
69627         * lib/freopen.c (orig_freopen): New function.
69628         (rpl_freopen): Use orig_freopen instead of freopen.
69629         * m4/freopen.m4 (gl_PREREQ_FREOPEN): New macro.
69630         (gl_FUNC_FREOPEN): Invoke it.
69632         Override fopen more carefully.
69633         * lib/fopen.c (orig_fopen): New function.
69634         (rpl_fopen): Use orig_fopen instead of fopen.
69635         * m4/fopen.m4 (gl_PREREQ_FOPEN): New macro.
69636         (gl_FUNC_FOPEN): Invoke it.
69637         Needed on AIX. Reported by Rainer Tammer <tammer@tammer.net>.
69639 2008-09-28  Bruno Haible  <bruno@clisp.org>
69641         * lib/pipe.h (create_pipe_out, create_pipe_bidi): Add comment about
69642         SIGPIPE.
69644 2008-09-28  Bruno Haible  <bruno@clisp.org>
69646         * tests/test-sigaction.c (handler, main): Disable the check whether
69647         SA_RESETHAND has reverted the installed handler to SIG_DFL. Needed on
69648         glibc systems with LinuxThreads.
69650 2008-09-28  Bruno Haible  <bruno@clisp.org>
69652         * doc/posix-functions/freopen.texi: Mention the trailing slash problem.
69654         * lib/stdio.in.h (fopen, freopen): Undefine before redefining. Needed
69655         with AIX xlc.
69656         * lib/fcntl.in.h (open): Likewise.
69657         Reported by Rainer Tammer <tammer@tammer.net>.
69659 2008-09-28  Bruno Haible  <bruno@clisp.org>
69661         * modules/posix_spawnp-tests: New file.
69662         * tests/test-posix_spawn.c: New file.
69663         * tests/test-posix_spawn.in.sh: New file.
69665         New module 'posix_spawnp'.
69666         * modules/posix_spawnp: New file.
69667         * lib/spawnp.c: New file, from GNU libc with modifications.
69668         * doc/posix-functions/posix_spawnp.texi: Mention the new module.
69670         New module 'posix_spawn'.
69671         * modules/posix_spawn: New file.
69672         * lib/spawn.c: New file, from GNU libc with modifications.
69673         * doc/posix-functions/posix_spawn.texi: Mention the new module.
69675         New module 'posix_spawnattr_destroy'.
69676         * modules/posix_spawnattr_destroy: New file.
69677         * lib/spawnattr_destroy.c: New file, from GNU libc with modifications.
69678         * doc/posix-functions/posix_spawnattr_destroy.texi: Mention the new
69679         module.
69681         New module 'posix_spawnattr_setsigmask'.
69682         * modules/posix_spawnattr_setsigmask: New file.
69683         * lib/spawnattr_setsigmask.c: New file, from GNU libc with
69684         modifications.
69685         * doc/posix-functions/posix_spawnattr_setsigmask.texi: Mention the
69686         new module.
69688         New module 'posix_spawnattr_getsigmask'.
69689         * modules/posix_spawnattr_getsigmask: New file.
69690         * lib/spawnattr_getsigmask.c: New file, from GNU libc with
69691         modifications.
69692         * doc/posix-functions/posix_spawnattr_getsigmask.texi: Mention the
69693         new module.
69695         New module 'posix_spawnattr_setsigdefault'.
69696         * modules/posix_spawnattr_setsigdefault: New file.
69697         * lib/spawnattr_setdefault.c: New file, from GNU libc with
69698         modifications.
69699         * doc/posix-functions/posix_spawnattr_setsigdefault.texi: Mention the
69700         new module.
69702         New module 'posix_spawnattr_getsigdefault'.
69703         * modules/posix_spawnattr_getsigdefault: New file.
69704         * lib/spawnattr_getdefault.c: New file, from GNU libc with
69705         modifications.
69706         * doc/posix-functions/posix_spawnattr_getsigdefault.texi: Mention the
69707         new module.
69709         New module 'posix_spawnattr_setschedpolicy'.
69710         * modules/posix_spawnattr_setschedpolicy: New file.
69711         * lib/spawnattr_setschedpolicy.c: New file, from GNU libc with
69712         modifications.
69713         * doc/posix-functions/posix_spawnattr_setschedpolicy.texi: Mention the
69714         new module.
69716         New module 'posix_spawnattr_getschedpolicy'.
69717         * modules/posix_spawnattr_getschedpolicy: New file.
69718         * lib/spawnattr_getschedpolicy.c: New file, from GNU libc with
69719         modifications.
69720         * doc/posix-functions/posix_spawnattr_getschedpolicy.texi: Mention the
69721         new module.
69723         New module 'posix_spawnattr_setschedparam'.
69724         * modules/posix_spawnattr_setschedparam: New file.
69725         * lib/spawnattr_setschedparam.c: New file, from GNU libc with
69726         modifications.
69727         * doc/posix-functions/posix_spawnattr_setschedparam.texi: Mention the
69728         new module.
69730         New module 'posix_spawnattr_getschedparam'.
69731         * modules/posix_spawnattr_getschedparam: New file.
69732         * lib/spawnattr_getschedparam.c: New file, from GNU libc with
69733         modifications.
69734         * doc/posix-functions/posix_spawnattr_getschedparam.texi: Mention the
69735         new module.
69737         New module 'posix_spawnattr_setpgroup'.
69738         * modules/posix_spawnattr_setpgroup: New file.
69739         * lib/spawnattr_setpgroup.c: New file, from GNU libc with
69740         modifications.
69741         * doc/posix-functions/posix_spawnattr_setpgroup.texi: Mention the new
69742         module.
69744         New module 'posix_spawnattr_getpgroup'.
69745         * modules/posix_spawnattr_getpgroup: New file.
69746         * lib/spawnattr_getpgroup.c: New file, from GNU libc with
69747         modifications.
69748         * doc/posix-functions/posix_spawnattr_getpgroup.texi: Mention the new
69749         module.
69751         New module 'posix_spawnattr_setflags'.
69752         * modules/posix_spawnattr_setflags: New file.
69753         * lib/spawnattr_setflags.c: New file, from GNU libc with modifications.
69754         * doc/posix-functions/posix_spawnattr_setflags.texi: Mention the new
69755         module.
69757         New module 'posix_spawnattr_getflags'.
69758         * modules/posix_spawnattr_getflags: New file.
69759         * lib/spawnattr_getflags.c: New file, from GNU libc with modifications.
69760         * doc/posix-functions/posix_spawnattr_getflags.texi: Mention the new
69761         module.
69763         New module 'posix_spawnattr_init'.
69764         * modules/posix_spawnattr_init: New file.
69765         * lib/spawnattr_init.c: New file, from GNU libc with modifications.
69766         * doc/posix-functions/posix_spawnattr_init.texi: Mention the new
69767         module.
69769         New module 'posix_spawn_file_actions_destroy'.
69770         * modules/posix_spawn_file_actions_destroy: New file.
69771         * lib/spawn_faction_destroy.c: New file, from GNU libc with
69772         modifications.
69773         * doc/posix-functions/posix_spawn_file_actions_destroy.texi: Mention
69774         the new module.
69776         New module 'posix_spawn_file_actions_addopen'.
69777         * modules/posix_spawn_file_actions_addopen: New file.
69778         * lib/spawn_faction_addopen.c: New file, from GNU libc with
69779         modifications.
69780         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
69781         the new module.
69783         New module 'posix_spawn_file_actions_adddup2'.
69784         * modules/posix_spawn_file_actions_adddup2: New file.
69785         * lib/spawn_faction_adddup2.c: New file, from GNU libc with
69786         modifications.
69787         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
69788         the new module.
69790         New module 'posix_spawn_file_actions_addclose'.
69791         * modules/posix_spawn_file_actions_addclose: New file.
69792         * lib/spawn_faction_addclose.c: New file, from GNU libc with
69793         modifications.
69794         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
69795         the new module.
69797         New module 'posix_spawn_file_actions_init'.
69798         * modules/posix_spawn_file_actions_init: New file.
69799         * lib/spawn_faction_init.c: New file, from GNU libc with modifications.
69800         * doc/posix-functions/posix_spawn_file_actions_init.texi: Mention the
69801         new module.
69803         New module 'posix_spawn-internal'.
69804         * modules/posix_spawn-internal: New file.
69805         * lib/spawn_int.h: New file, from GNU libc with modifications.
69806         * lib/spawni.c: New file, from GNU libc with modifications.
69807         * m4/posix_spawn.m4: New file.
69809         New module 'spawn'.
69810         * modules/spawn: New file.
69811         * lib/spawn.in.h: New file, from GNU libc with modifications.
69812         * m4/spawn_h.m4: New file.
69813         * doc/posix-headers/spawn.texi: Mention the new module.
69815 2008-09-28  Bruno Haible  <bruno@clisp.org>
69817         * modules/sched-tests: New file.
69818         * tests/test-sched.c: New file.
69820         New module 'sched'.
69821         * modules/sched: New file.
69822         * lib/sched.in.h: New file.
69823         * m4/sched_h.m4: New file.
69824         * doc/posix-headers/sched.texi: Mention the new module.
69826 2008-09-27  Eric Blake  <ebb9@byu.net>
69828         Fix previous patch, and tweak references to $0.
69829         * posix-modules: Call func_gnulib_dir before using $gnulib_dir.
69830         (func_version, func_gnulib_dir): Don't call this program
69831         gnulib-tool.
69832         (func_gnulib_dir, func_tmpdir, func_fatal_error): Avoid shell bugs
69833         with using $0 in function.
69834         * gnulib-tool (func_gnulib_dir, func_tmpdir): Likewise.
69835         (func_fatal_error): Reuse the name the user invoked us with.
69837 2008-09-27  Bruno Haible  <bruno@clisp.org>
69839         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H): New macro.
69840         (gl_ICONV_H_DEFAULTS): Initialize ICONV_H here...
69841         (gl_ICONV_H): Not here.
69842         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
69843         instead of assigning ICONV_H directly.
69845         * m4/wchar.m4 (gl_REPLACE_WCHAR_H): New macro.
69846         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Invoke it instead of assigning
69847         WCHAR_H directly.
69849 2008-09-27  Bruno Haible  <bruno@clisp.org>
69851         * lib/arpa_inet.in.h: Include the GL_LINK_WARNING anchor.
69852         * modules/arpa_inet (Depends-on): Add link-warning.
69853         (Makefile.am): Insert the definition of GL_LINK-WARNING.
69854         * modules/unistd (Makefile.am): Likewise.
69856 2008-09-26  Bruno Haible  <bruno@clisp.org>
69858         * posix-modules (cvsdatestamp, last_checkin_date, version): Remove
69859         variables.
69860         (func_version): Essentially copied from gnulib-tool.
69861         (func_exit, func_gnulib_dir, func_tmpdir, func_fatal_error,
69862         func_readlink): Copied from gnulib-tool.
69864 2008-09-26  Bruno Haible  <bruno@clisp.org>
69866         * gnulib-tool (func_version): Change directory to $gnulib_dir before
69867         invoking git-version-gen.
69869 2008-09-26  Bruno Haible  <bruno@clisp.org>
69871         * posix-modules: Update to directory names changed on 2008-01-19.
69872         Remove commas in output before splitting into words. No more need to
69873         avoid 'ftruncate' since 2007-02-19.
69875 2008-09-26  Bruno Haible  <bruno@clisp.org>
69877         * doc/posix-headers/errno.texi: Remove mention of module 'EOVERFLOW'.
69879 2008-09-26  Bruno Haible  <bruno@clisp.org>
69881         * lib/fwriteerror.c (do_fwriteerror): Ignore error EPIPE.
69882         * modules/fwriteerror (Depends-on): Add errno.
69884 2008-09-26  Bruno Haible  <bruno@clisp.org>
69886         * tests/test-vc-list-files-git.sh: Explain reason for skipping test.
69887         * tests/test-vc-list-files-cvs.sh: Likewise.
69889 2008-09-26  Bruno Haible  <bruno@clisp.org>
69891         * doc/posix-headers/sys_resource.texi: Reorder items.
69893 2008-09-26  Jim Meyering  <meyering@redhat.com>
69895         fts: tweak inode comparison function
69896         * lib/fts.c (fts_compare_ino): Sort on increasing, not decreasing
69897         inode numbers, as documented.
69899         fts: sort dirent entries on inode number before traversing
69900         This avoids a quadratic, seek-related performance penalty when
69901         operating on a directory containing many entries (measurable at 10k;
69902         3.5 hours at 2 million entries with a cold cache) on certain types
69903         of file systems, including ext3 and ext4, but not tmpfs.
69904         * lib/fts.c (DT_MUST_BE, NOT_AN_INODE_NUMBER, D_INO): Define.
69905         (FTS_INODE_SORT_DIR_ENTRIES_THRESHOLD): Define if not defined.
69906         (S_MAGIC_TMPFS, S_MAGIC_NFS): Define.
69907         (fs_handles_readdir_ordered_dirents_efficiently): New function.
69908         (dirent_inode_sort_may_be_useful, fts_compare_ino): Likewise.
69909         (fts_build): Set the stat.st_ino member from D_INO.
69910         If it is likely to be useful, sort dirent entries on inode number.
69912         * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for fstatfs, sys/vfs.h,
69913         and the struct statfs.f_type member.
69914         * modules/fts (Depends-on): Add d-ino.
69916 2008-09-26  Bruno Haible  <bruno@clisp.org>
69918         * modules/sigpipe-die (Depends-on): Add sigpipe.
69920         * lib/stdio.in.h (fprintf, vfprintf, printf, vprintf, fputc, putc,
69921         putchar, fputs, puts, fwrite): Replace when REPLACE_STDIO_WRITE_FUNCS
69922         and GNULIB_STDIO_H_SIGPIPE are set.
69923         * lib/stdio-write.c: New file.
69924         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FPRINTF, GNULIB_PRINTF,
69925         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
69926         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
69927         REPLACE_STDIO_WRITE_FUNCS.
69928         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FPRINTF, GNULIB_PRINTF,
69929         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
69930         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
69931         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
69932         * modules/stdio (Files): Add lib/stdio-write.c.
69933         (Makefile.am): Substitute GNULIB_FPRINTF, GNULIB_PRINTF,
69934         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
69935         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
69936         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
69937         * m4/fprintf-posix.m4 (gl_REPLACE_FPRINTF): Define
69938         REPLACE_FPRINTF_POSIX.
69939         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF): Define
69940         REPLACE_PRINTF_POSIX.
69941         * m4/vfprintf-posix.m4 (gl_REPLACE_VFPRINTF): Define
69942         REPLACE_VFPRINTF_POSIX.
69943         * m4/vprintf-posix.m4 (gl_REPLACE_VPRINTF): Define
69944         REPLACE_VPRINTF_POSIX.
69945         * doc/posix-functions/fprintf.texi: Mention the sigpipe module and the
69946         SIGPIPE issue.
69947         * doc/posix-functions/fputc.texi: Likewise.
69948         * doc/posix-functions/fputs.texi: Likewise.
69949         * doc/posix-functions/fwrite.texi: Likewise.
69950         * doc/posix-functions/printf.texi: Likewise.
69951         * doc/posix-functions/putc.texi: Likewise.
69952         * doc/posix-functions/putchar.texi: Likewise.
69953         * doc/posix-functions/puts.texi: Likewise.
69954         * doc/posix-functions/vfprintf.texi: Likewise.
69955         * doc/posix-functions/vprintf.texi: Likewise.
69957         * modules/safe-write (Depends-on): Add write.
69959         * modules/sigpipe-tests: New file.
69960         * tests/test-sigpipe.c: New file.
69961         * tests/test-sigpipe.sh: New file.
69963         * modules/write: New file.
69964         * lib/unistd.in.h: Include <sys/types.h>.
69965         (write): New declaration.
69966         * lib/write.c: New file.
69967         * m4/write.m4: New file.
69968         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
69969         GNULIB_UNISTD_H_SIGPIPE, GNULIB_WRITE, REPLACE_WRITE.
69970         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_SIGPIPE,
69971         GNULIB_WRITE, REPLACE_WRITE.
69972         * doc/posix-functions/write.texi: Mention the write, sigpipe modules
69973         and the SIGPIPE issue.
69975         * lib/signal.in.h (SIGPIPE): Define to a replacement value.
69976         (raise): New declaration.
69977         * lib/sigprocmask.c (SIGPIPE_handler): New variable.
69978         (ext_signal): New function.
69979         (rpl_raise): New function.
69980         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
69981         GNULIB_SIGNAL_H_SIGPIPE.
69982         * modules/signal (Makefile.am): Substitute GNULIB_SIGNAL_H_SIGPIPE.
69983         * doc/posix-headers/signal.texi: Mention the SIGPIPE issue.
69985         * modules/sigpipe: New file.
69986         * m4/sigpipe.m4: New file.
69988 2008-09-25  Derek Price  <derek@ximbiot.com>
69989             Bruno Haible  <bruno@clisp.org>
69991         * gnulib-tool (func_import): Report all license incompatibilities, not
69992         just the first one.
69994 2008-09-25  Bruno Haible  <bruno@clisp.org>
69996         * gnulib-tool (func_import): When computing the edits, consider not
69997         only the Makefile.ams that exist but also those that will be generated.
69999 2008-09-25  Simon Josefsson  <simon@josefsson.org>
70001         * modules/sys_select-tests (Depends-on): Remove sys_select itself,
70002         fixes gnulib-tool --test warning about duplicate dependency.
70004 2008-09-25  Bruno Haible  <bruno@clisp.org>
70006         * gnulib-tool: Don't ask the user to perform edits in the generated
70007         Makefile.ams.
70008         (func_emit_lib_Makefile_am): Emit empty SUBDIRS. Execute edits that
70009         apply to the Makefile.am being generated.
70010         (func_emit_tests_Makefile_am): Execute edits that apply to the
70011         Makefile.am being generated.
70012         (func_import): Setup list of Makefile.am edits before emitting the
70013         Makefile.ams, not at the end.
70014         (func_create_testdir): Update.
70015         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
70017 2008-09-25  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
70019         * gnulib-tool (func_import): Store the --tests-base option in the
70020         comment in gnulib-cache.m4.
70022 2008-09-24  Paolo Bonzini  <bonzini@gnu.org>
70024         * NEWS: Document increased portability that sys_select now provides.
70026         * lib/sys_select.in.h: Install select wrapper.
70027         * lib/sys_socket.in.h: Use more descriptive name when there is no
70028         select wrapper.
70029         * lib/winsock-select.c: New.
70030         * m4/sys_select_h.m4: Compile lib/winsock-select.c if WinSock is used.
70031         Require gl_HEADER_SYS_SOCKET.
70032         * modules/sys_select: Depend on alloca, add lib/winsock-select.c.
70033         * modules/sys_select-tests: Copy dependencies from modules/poll-tests.
70034         * tests/test-sys_select.c: Add functional tests.
70036 2008-09-24  Eric Blake  <ebb9@byu.net>
70038         open, fopen: close fd leak in last patch
70039         * lib/open.c (rpl_open): Close fd before returning error.
70040         * lib/fopen.c (rpl_fopen): Close fd before returning error.
70041         * doc/posix-functions/open.texi (open): Document that Irix also
70042         has the bug.
70043         * doc/posix-functions/fopen.texi (fopen): Likewise.
70044         Reported by Paolo Bonzini.
70046 2008-09-24  Bruno Haible  <bruno@clisp.org>
70048         Ensure that a filename ending in a slash cannot be used to access a
70049         non-directory.
70050         * lib/open.c (rpl_open): When the filename ends in a slash, use fstat()
70051         to check whether it's really a directory.
70052         * lib/fopen.c: Include fcntl.h, unistd.h.
70053         (rpl_fopen): When the filename ends in a slash, use open(), fstat(),
70054         and fdopen().
70055         * modules/fopen (Depends-on): Add unistd.
70056         * tests/test-open.c (main): Try to open "/dev/null/" as a directory.
70057         * tests/test-fopen.c (main): Likewise.
70058         * doc/posix-functions/open.texi: Mention the HP-UX, Solaris bug.
70059         * doc/posix-functions/fopen.texi: Likewise.
70060         Reported by Eric Blake.
70062 2008-09-23  Eric Blake  <ebb9@byu.net>
70064         c-stack: avoid compiler optimizations when provoking overflow
70065         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Make
70066         recursion harder to optimize, to ensure a stack overflow occurs.
70067         * tests/test-c-stack.c (recurse): Likewise.
70068         Borrowed from libsigsegv.
70070         c-stack: work around Irix sigaltstack bug
70071         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check
70072         whether sigaltstack uses wrong end of stack_t (copied in part from
70073         libsigsegv).
70074         * lib/c-stack.c (c_stack_action) [!HAVE_LIBSIGSEGV]: Work around
70075         Irix bug, without requiring an over-allocation.
70076         * doc/posix-functions/sigaltstack.texi (sigaltstack): Document the
70077         bug.
70079         fopen: document mingw bug on directories
70080         * doc/posix-functions/fopen.texi (fopen): Mention mingw bug for
70081         not allowing a stream visiting a directory, even though reading
70082         from such a stream is not portable.
70084 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
70086         * lib/poll.c: Rewrite.
70087         * modules/poll: Depend on alloca.
70089 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
70091         * lib/sys_socket.in.h: Do not implement rpl_setsockopt here,
70092         instead define prototypes for a full set of wrappers.  Ensure
70093         that Cygwin does not use the compatibility code, which is only
70094         for MinGW.
70095         * lib/winsock.c: New.
70096         * m4/sys_socket_h.m4: Compile lib/winsock.c if WinSock is being used.
70097         * modules/sys_socket: Add lib/winsock.c.
70099         * modules/poll-tests: Add errno and perror.
70100         * tests/test-poll.c: Use ioctl, not ioctlsocket.
70102 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
70104         * tests/test-poll.c: Downgrade minimum needed Winsock version.
70106 2008-09-23  Bruno Haible  <bruno@clisp.org>
70108         * doc/posix-functions/*: Add info about functions missing on IRIX 5.3.
70109         * doc/glibc-functions/*: Likewise.
70111 2008-09-23  Simon Josefsson  <simon@josefsson.org>
70113         * tests/test-perror.sh (tmpfiles): Cleanup temporary files on
70114         success.
70116 2008-09-22  Eric Blake  <ebb9@byu.net>
70117             Bruno Haible  <bruno@clisp.org>
70119         vasnprintf: fix x86/glibc regression on printf("%La", 0.0L)
70120         * lib/vasnprintf.c (VASNPRINTF): Support 0.0 on platforms that
70121         supply %A but mishandle pseudo-NaN.
70122         Reported by Simon Josefsson.
70124 2008-09-21  Bruno Haible  <bruno@clisp.org>
70126         * tests/test-lock.c (main): Tweak skip message.
70127         * tests/test-tls.c (main): Likewise.
70129 2008-09-21  Bruno Haible  <bruno@clisp.org>
70131         * m4/sigaction.m4 (gl_SIGACTION): Remove unnecessary AC_SUBST. Check
70132         whether 'struct sigaction' has sa_sigaction here...
70133         (gl_PREREQ_SIG_HANDLER_H): ... not here.
70134         (gl_PREREQ_SIGACTION): Remove unnecessary AC_SUBST.
70136 2008-09-21  Bruno Haible  <bruno@clisp.org>
70138         * MODULES.html.sh (Support for obsolete systems lacking ANSI C 89): New
70139         section.
70140         (Support for systems lacking ANSI C 89): Move stdlib, exit, strtol,
70141         strtoul, memchr, memcmp, memcpy, memmove, memset, strcspn, strpbrk to
70142         the new section.
70143         (Support for obsolete systems lacking POSIX:2001): New section.
70144         (String handling <string.h>): Move strdup to the new section.
70145         Suggested by Simon Josefsson and Paolo Bonzini.
70147 2008-09-21  Bruno Haible  <bruno@clisp.org>
70149         * tests/test-vasnprintf-posix.c (test_function): Allow 3-digit
70150         exponents in %e and %g results on 'long double'. Needed for mingw's
70151         improved *printf functions.
70152         * tests/test-vasprintf-posix.c (test_function): Likewise.
70153         * tests/test-snprintf-posix.h (test_function): Likewise.
70154         * tests/test-sprintf-posix.h (test_function): Likewise.
70155         Reported by Eric Blake.
70157 2008-09-21  Bruno Haible  <bruno@clisp.org>
70159         * tests/test-snprintf-posix.h (test_function): Remove useless ASSERTs.
70160         * tests/test-sprintf-posix.h (test_function): Likewise.
70162 2008-09-21  Bruno Haible  <bruno@clisp.org>
70164         * modules/getpass (Depends-on): Add strdup-posix.
70166         New module 'strdup-posix'.
70167         * modules/strdup-posix: New file.
70168         * m4/strdup.m4 (gl_FUNC_STRDUP_POSIX): New macro.
70169         * lib/string.in.h (strdup): Replace if REPLACE_STRDUP is 1.
70170         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
70171         REPLACE_STRDUP.
70172         * modules/string (Makefile.am): Substitute REPLACE_STRDUP.
70173         * doc/posix-functions/strdup.texi: Mention module strdup-posix.
70174         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
70175         strdup-posix.
70177         * modules/strdup (Depends-on): Remove malloc-posix.
70179 2008-09-20  Bruno Haible  <bruno@clisp.org>
70181         * lib/fstrcmp.c: Add data about branch probabilities, from Ralf
70182         Wildenhues.
70184 2008-09-20  Bruno Haible  <bruno@clisp.org>
70186         Ensure that wint_t gets defined on IRIX 5.3.
70187         * lib/wchar.in.h (wint_t): Define if not defined by the system.
70188         * lib/wctype.in.h (wint_t): Likewise.
70189         (__wctype_wint_t): Remove type.
70190         (isw*): Use wint_t instead of __wctype_wint_t.
70191         * m4/wchar.m4 (gl_WCHAR_H): Invoke gt_TYPE_WINT_T and set HAVE_WINT_T.
70192         * modules/wchar (Files): Add m4/wint_t.m4.
70193         (Makefile.am): Substitute HAVE_WINT_T.
70194         * tests/test-wchar.c: Check that wchar_t and wint_t are defined.
70195         * tests/test-wctype.c: Check that wint_t is defined.
70196         * doc/posix-headers/wchar.texi: Mention the IRIX 5 problem.
70197         * doc/posix-headers/wctype.texi: Likewise.
70198         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
70200 2008-09-18  Bruno Haible  <bruno@clisp.org>
70202         * gnulib-tool (func_exit): Update comment.
70204 2008-09-18  Simon Josefsson  <simon@josefsson.org>
70206         * modules/getaddrinfo (Depends-on): Remove strdup, this module
70207         assumes strdup exists and does not depend on strdup to return
70208         ENOMEM on out of memory conditions.
70210 2008-09-18  Bruno Haible  <bruno@clisp.org>
70212         * lib/vasnprintf.c (VASNPRINTF): When printing ±0.0L in
70213         NEED_PRINTF_INFINITE_LONG_DOUBLE case with 'e' format, always use two
70214         digits for the exponent.
70216 2008-09-18  Jim Meyering  <meyering@redhat.com>
70217             Bruno Haible  <bruno@clisp.org>
70219         * lib/vasnprintf.c (decimal_point_char): Define also if
70220         NEED_PRINTF_INFINITE_LONG_DOUBLE.
70222 2008-09-16  Bruno Haible  <bruno@clisp.org>
70223         and Eric Blake  <ebb9@byu.net>
70225         vasnprintf: support Irix 5.3
70226         * lib/vasnprintf.c (VASNPRINTF): Also handle -0.0L on platforms
70227         that mishandle long double infinity.
70228         Reported by Tom G. Christensen.
70230 2008-09-16  Bruno Haible  <bruno@clisp.org>
70232         * doc/glibc-functions/scandir.texi: Mention the function is missing on
70233         Solaris 9.
70234         * doc/glibc-functions/alphasort.texi: Likewise.
70235         Reported by Michael Haubenwallner <michael.haubenwallner@salomon.at>.
70237 2008-09-16  Jim Meyering  <meyering@redhat.com>
70239         posix-shell.m4: reject opensolaris's "sh (AT&T Research) 1993-12-28 s+"
70240         * m4/posix-shell.m4 (gl_POSIX_SHELL): Reject a shell that lets
70241         a umask modification leak out of a subshell.  Otherwise, the
70242         opensolaris /bin/sh would be accepted and thus cause unwarranted
70243         failures in the coreutils test suite.
70245 2008-09-16  Paolo Bonzini  <bonzini@gnu.org>
70247         * tests/test-poll.c (connect_to_socket): Allow non-blocking connect
70248         to succeed.
70250 2008-09-16  Jim Meyering  <meyering@redhat.com>
70252         avoid spurious test failure when library is built without ACL support
70253         * m4/acl.m4 (USE_ACL): Define as a shell variable, too, for...
70254         * modules/acl-tests (Makefile.am) [TESTS_ENVIRONMENT]: Add USE_ACL.
70255         * tests/test-file-has-acl.sh: Skip if USE_ACL == 0.
70256         * tests/test-copy-acl.sh: Likewise.
70258 2008-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70260         * lib/fstrcmp.c (fstrcmp_bounded): Use a second, less quick upper bound
70261         based on character occurrence counts.
70263 2008-09-15  Eric Blake  <ebb9@byu.net>
70265         tests: avoid some compiler warnings
70266         * tests/test-memchr.c (main): Pass NULL indirectly.
70267         * tests/test-closein.c (main): Avoid unused variable.
70269 2008-09-15  Bruno Haible  <bruno@clisp.org>
70271         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test for all the macros that
70272         are missing on OpenBSD 4.0 individually.
70273         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
70275 2008-09-15  Bruno Haible  <bruno@clisp.org>
70277         * doc/posix-headers/errno.texi: Mention the Cygwin problem.
70278         * doc/posix-functions/strerror.texi: Mention also Cygwin.
70279         * doc/posix-functions/perror.texi: Likewise.
70280         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test also whether ECANCELED
70281         is missing.
70282         Reported by Eric Blake.
70284         * lib/errno.in.h: Use replacement values >= 2000.
70285         Reported by Eric Blake.
70287 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70289         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Add field 'edit_count_limit'.
70290         (EARLY_ABORT): Return true when the edit_count has grown too beyond the
70291         limit.
70292         (fstrcmp_bounded): Initialize the edit_count_limit. Return 0 when
70293         compareseq was aborted.
70295 2008-09-14  Bruno Haible  <bruno@clisp.org>
70297         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Combine xvec_edit_count and
70298         yvec_edit_count.
70299         (NOTE_DELETE, NOTE_INSERT): Increment the combined edit count.
70300         (fstrcmp_bounded): Simplify result computation accordingly.
70302 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70304         * lib/fstrcmp.h (fstrcmp_bounded): New declaration.
70305         (fstrcmp): Define in terms of fstrcmp_bounded.
70306         * lib/fstrcmp.c (fstrcmp_bounded): Renamed from fstrcmp. Add
70307         lower_bound argument.
70308         Return quickly if the result is certainly < lower_bound.
70309         * tests/test-fstrcmp.c (check_fstrcmp): Test also fstrcmp_bounded.
70311 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70313         * lib/diffseq.h (EARLY_ABORT): New macro.
70314         (compareseq): Change return type to bool. Return true when EARLY_ABORT
70315         evaluates to true.
70317 2008-09-14  Bruno Haible  <bruno@clisp.org>
70319         * modules/perror-tests: New file.
70320         * tests/test-perror.sh: New file.
70321         * tests/test-perror.c: New file.
70323         New module 'perror'.
70324         * lib/stdio.in.h (perror): New declaration.
70325         * lib/perror.c: New file.
70326         * m4/perror.m4: New file.
70327         * modules/perror: New file.
70328         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add perror.
70329         * doc/posix-functions/perror.texi: Mention the perror module.
70330         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PERROR,
70331         REPLACE_PERROR.
70332         * modules/stdio (Makefile.am): Substitute GNULIB_PERROR,
70333         REPLACE_PERROR.
70335 2008-09-14  Bruno Haible  <bruno@clisp.org>
70337         * modules/stdio (Makefile.am): Reorder to match the order in
70338         lib/stdio.in.h.
70339         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
70341 2008-09-13  Bruno Haible  <bruno@clisp.org>
70343         * lib/sys_socket.in.h (EINPROGRESS, ...): Remove definitions.
70345 2008-09-13  Bruno Haible  <bruno@clisp.org>
70347         Extend strerror to cover the added errno values.
70348         * lib/strerror.c: Include errno.h and winsock2.h if it exists.
70349         (rpl_strerror): Provide error messages for the added errno values and
70350         for the WSA* values.
70351         * m4/strerror.m4 (gl_FUNC_STRERROR): Test REPLACE_STRERROR.
70352         (gl_FUNC_STRERROR_SEPARATE): If errno.h is replaced, always replace
70353         strerror.
70354         (gl_PREREQ_STRERROR): Test whether winsock2.h exists.
70355         * modules/strerror (Depends-on): Add errno.
70356         * doc/posix-functions/strerror.texi: Document the change.
70357         * tests/test-strerror.c (main): Check also the string for ETIMEDOUT
70358         and EOVERFLOW.
70360 2008-09-13  Bruno Haible  <bruno@clisp.org>
70362         * modules/EOVERFLOW: Remove file.
70363         * m4/eoverflow.m4: Remove file.
70364         * modules/EOVERFLOW-tests: Remove file.
70365         * tests/test-EOVERFLOW.c: Remove file.
70366         * modules/fprintf-posix (Depends-on): Replace EOVERFLOW with errno.
70367         * modules/ftell (Depends-on): Likewise.
70368         * modules/getdelim (Depends-on): Likewise.
70369         * modules/getugroups (Depends-on): Likewise.
70370         * modules/poll (Depends-on): Likewise.
70371         * modules/snprintf (Depends-on): Likewise.
70372         * modules/sprintf-posix (Depends-on): Likewise.
70373         * modules/vasnprintf (Depends-on): Likewise.
70374         * modules/vasprintf (Depends-on): Likewise.
70375         * modules/vfprintf-posix (Depends-on): Likewise.
70376         * modules/vsnprintf (Depends-on): Likewise.
70377         * modules/vsprintf-posix (Depends-on): Likewise.
70378         * modules/xvasprintf (Depends-on): Likewise.
70379         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
70380         * modules/unistdio/u8-vasprintf (Depends-on): Likewise.
70381         * modules/unistdio/u8-vsnprintf (Depends-on): Likewise.
70382         * modules/unistdio/u8-vsprintf (Depends-on): Likewise.
70383         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
70384         * modules/unistdio/u8-u8-vasprintf (Depends-on): Likewise.
70385         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Likewise.
70386         * modules/unistdio/u8-u8-vsprintf (Depends-on): Likewise.
70387         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
70388         * modules/unistdio/u16-u16-vasprintf (Depends-on): Likewise.
70389         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Likewise.
70390         * modules/unistdio/u16-u16-vsprintf (Depends-on): Likewise.
70391         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
70392         * modules/unistdio/u16-vasprintf (Depends-on): Likewise.
70393         * modules/unistdio/u16-vsnprintf (Depends-on): Likewise.
70394         * modules/unistdio/u16-vsprintf (Depends-on): Likewise.
70395         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
70396         * modules/unistdio/u32-vasprintf (Depends-on): Likewise.
70397         * modules/unistdio/u32-vsnprintf (Depends-on): Likewise.
70398         * modules/unistdio/u32-vsprintf (Depends-on): Likewise.
70399         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
70400         * modules/unistdio/u32-u32-vasprintf (Depends-on): Likewise.
70401         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Likewise.
70402         * modules/unistdio/u32-u32-vsprintf (Depends-on): Likewise.
70403         * modules/unistdio/ulc-fprintf (Depends-on): Likewise.
70404         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
70405         * modules/unistdio/ulc-vasprintf (Depends-on): Likewise.
70406         * modules/unistdio/ulc-vfprintf (Depends-on): Likewise.
70407         * modules/unistdio/ulc-vsnprintf (Depends-on): Likewise.
70408         * modules/unistdio/ulc-vsprintf (Depends-on): Likewise.
70409         * MODULES.html.sh: Remove EOVERFLOW.
70410         * NEWS: Mention the change.
70412 2008-09-13  Bruno Haible  <bruno@clisp.org>
70414         * modules/errno-tests: New file.
70415         * tests/test-errno.c: New file, incorporating tests/test-EOVERFLOW.c.
70417         * lib/errno.in.h: New file.
70418         * m4/errno_h.m4: New file, borrowing from m4/eoverflow.m4.
70419         * modules/errno: New file.
70420         * doc/posix-headers/errno.texi: Update documentation.
70421         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add errno.
70423 2008-09-13  Bruno Haible  <bruno@clisp.org>
70425         * tests/test-poll.c: Use #if for native Windows, rather than testing
70426         __MSVCRT__.
70428 2008-09-13  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
70429             Bruno Haible  <bruno@clisp.org>
70431         * lib/glob.c: Don't include <pwd.h> on native Windows.
70432         (WINDOWS32): New macro.
70433         (glob) [WINDOW32]: Provide a reasonable replacement for getenv("HOME").
70435 2008-09-13  Bruno Haible  <bruno@clisp.org>
70437         * lib/glthread/cond.h [USE_SOLARIS_THREADS]
70438         (ETIMEDOUT): Remove macro.
70439         (glthread_cond_timedwait_multithreaded): New declaration.
70440         (glthread_cond_timedwait): Use it.
70441         * lib/glthread/cond.c [USE_SOLARIS_THREADS]
70442         (glthread_cond_timedwait_multithreaded): New function.
70444 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
70446         * modules/poll-tests: Do not check for io.h.
70447         * tests/test-poll.c: Check for __MSVCRT__ instead.
70449 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
70451         * lib/sys_socket.in.h (EINPROGRESS): Define for Winsock case.
70452         * modules/poll-tests: Add inet_pton, stdbool, sockets.
70453         * tests/test-poll.c: Use them.  Use _pipe on Windows.
70455 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
70457         * modules/poll-tests: New.
70458         * tests/test-poll.c: New.
70460 2008-09-12  Eric Blake  <ebb9@byu.net>
70462         frexp: test for NetBSD failure on -0.0
70463         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Enhance test, since some, but
70464         not all, bugs from NetBSD 3.0 have been fixed.
70465         * doc/posix-functions/frexp.texi (frexp): Document bug.
70466         Reported by Thomas Klausner.
70468         signbit: work around bug of HP-UX 10.20 cc with -0.0 literal
70469         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Rewrite test to avoid
70470         literal -0.0.
70471         Reported by Jonathan C. Patschke <jp@centtech.com>.
70473 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
70475         * lib/glthread/cond.h: Use dummy implementation also if
70476         USE_WIN32_THREADS.
70478 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
70480         * modules/fnmatch-posix (License): Change to LGPLv2+.
70481         * modules/fnmatch-gnu (License): Likewise.
70483 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
70485         * lib/poll.c (poll): Fix polling unconnected server sockets on WIN32.
70487 2008-09-11  Jim Meyering  <meyering@redhat.com>
70489         * users.txt: Add gtk-vnc.
70491 2008-09-08  Simon Josefsson  <simon@josefsson.org>
70493         * tests/test-bitrotate.c: Test 8/16-bit rotates with 0 and maximum
70494         rotate amounts.
70496         * lib/bitrotate.h: Doc fix, mention that N can be wider than minimally
70497         required for 16-bit and 8-bit rotates.
70498         * lib/bitrotate.h (rotl64, rotr64, rotl32, rotl32, rotl16, rotr16,
70499         rotl8, rotr8): Use UINT64_MAX, UINT32_MAX, UINT16_MAX, and
70500         UINT8_MAX instead of hard-coded constants.
70501         Suggested by Paul Eggert.
70503 2008-09-07  Bruno Haible  <bruno@clisp.org>
70505         * tests/test-striconveh.c (main): Check behaviour when converting from
70506         UTF-7.
70508         Make striconveh work better with stateful encodings.
70509         * lib/striconveh.c (iconv_carefully, iconv_carefully_1): Don't assume
70510         that iconv does not increment the inptr when returning -1/EINVAL.
70512 2008-09-07  Bruno Haible  <bruno@clisp.org>
70514         * build-aux/config.rpath: Update according to libtool-2.2.6.
70515         * build-aux/config.libpath: Likewise.
70517 2008-09-06  Bruno Haible  <bruno@clisp.org>
70519         * lib/freadahead.c (freadahead): Add conditional for SLOW_BUT_NO_HACKS.
70520         * lib/freadptr.c (freadptr): Likewise.
70521         * lib/freadseek.c (freadptrinc): Likewise.
70522         Reported by Simon Josefsson.
70524 2008-09-06  Bruno Haible  <bruno@clisp.org>
70526         * modules/freadptr (License): Change to LGPLv2+.
70527         * modules/freadseek (License): Likewise.
70528         Suggested by Eric Blake.
70530         * modules/memchr2 (License): Change to LGPLv2+.
70531         Approved by Eric Blake.
70533 2008-09-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70534             Bruno Haible  <bruno@clisp.org>
70536         Make gnulib-tool work with native 'sed' on AIX.
70537         * gnulib-tool (sed_noop): New variable.
70538         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am, func_import,
70539         func_add_or_update, func_create_testdir): Use it to initialize sed
70540         script variables.
70541         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
70543 2008-09-04  Albert Chin  <bug-gnulib@mlists.thewrittenword.com>
70544             Bruno Haible  <bruno@clisp.org>
70546         * m4/include_next.m4 (gl_INCLUDE_NEXT): Add check whether #include_next
70547         also works after #include directives.
70549 2008-09-04  Ondřej Vašík  <ovasik@redhat.com>
70551         getdate.y: reject an out-of-range timezone value
70552         * lib/getdate.y (time_zone_hhmm): Reject any TZ offset that is outside
70553         the range [-24...+24].  When specified with only one or two digits,
70554         * tests/test-getdate.c: Tests for the fix.
70555         * doc/getdate.texi: Document this change.
70557 2008-09-03  Bruno Haible  <bruno@clisp.org>
70559         * doc/glibc-functions/strverscmp.texi: Mention the strverscmp module.
70561 2008-09-02  Simon Josefsson  <simon@josefsson.org>
70563         * lib/bitrotate.h (rotl64, rotr64): Add.  Suggested by Bruce Korb
70564         <bruce.korb@gmail.com> with ideas from Ben Pfaff
70565         <blp@cs.stanford.edu>, Bruno Haible <bruno@clisp.org> and Eric
70566         Blake <ebb9@byu.net>.
70568         * tests/test-bitrotate.c: Add more test vectors.
70570 2008-09-02  Eric Blake  <ebb9@byu.net>
70572         vasnprintf-posix: handle large precision via %.*d
70573         * lib/vasnprintf.c (VASNPRINTF): Don't pass precision to snprintf
70574         when handling it ourselves.
70575         * tests/test-vasnprintf-posix.c (test_function): Add test.
70576         * tests/test-snprintf-posix.h (test_function): Likewise.
70577         * tests/test-sprintf-posix.h (test_function): Likewise.
70578         * tests/test-vasprintf-posix.c (test_function): Likewise.
70579         Reported by Alain Guibert.
70581 2008-09-01  Eric Blake  <ebb9@byu.net>
70583         c-stack: make configure-time check more robust
70584         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check for
70585         successful sigaction call.
70586         Reported by Tom G. Christensen.
70588 2008-09-01  Bruno Haible  <bruno@clisp.org>
70590         New module 'findprog-lgpl'.
70591         * modules/findprog-lgpl: New file.
70592         * lib/findprog-lgpl.c: New file.
70593         * lib/findprog.c: Compile nothing in findprog.c if findprog-lgpl.c is
70594         also compiled. Consider the possibly defined symbol IN_FINDPROG_LGPL
70595         to decide whether to use strdup or xstrdup, concatenated_filename or
70596         xconcatenated_filename.
70598 2008-09-01  Bruno Haible  <bruno@clisp.org>
70600         Split module 'concat-filename' into 'concat-filename' (LGPL) and
70601         'xconcat-filename' (GPL).
70602         * modules/concat-filename (Depends-on): Add malloc-posix, remove xalloc.
70603         (License): Change to LGPLv2+.
70604         * modules/xconcat-filename: New file.
70605         * lib/concat-filename.h (concatenated_filename): Change specification.
70606         (xconcatenated_filename): New declaration.
70607         * lib/concat-filename.c: Include errno.h, stdlib.h, not xalloc.h.
70608         (concatenated_filename): Use malloc instead of xalloc. Handle out-of-
70609         memory situations.
70610         * lib/xconcat-filename.c: New file.
70611         * NEWS: Mention the change.
70612         * lib/findprog.c: Include concat-filename.h, not filename.h.
70613         (find_in_path): Use xconcatenated_filename instead of
70614         concatenated_filename.
70615         * lib/javacomp.c: Include concat-filename.h, not filename.h.
70616         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
70617         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
70618         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
70619         is_oldgcj_14_13_usable, is_javac_usable): Use xconcatenated_filename
70620         instead of concatenated_filename.
70621         * lib/javaexec.c: Include concat-filename.h, not filename.h.
70622         (execute_java_class): Use xconcatenated_filename instead of
70623         concatenated_filename.
70624         * modules/findprog (Depends-on): Add xconcat-filename, remove filename.
70625         * modules/javacomp (Depends-on): Likewise.
70626         * modules/javaexec (Depends-on): Likewise.
70628 2008-09-01  Bruno Haible  <bruno@clisp.org>
70630         Split module 'filename' into 'filename' and 'concat-filename'.
70631         * modules/filename: Keep only lib/filename.h.
70632         (License): Change to LGPLv2+.
70633         * modules/concat-filename: New file, extracted from modules/filename.
70634         * lib/filename.h (concatenated_filename): Remove declaration.
70635         * lib/concat-filename.h: New file, extracted from lib/filename.h.
70636         * lib/concat-filename.c: Include concat-filename.h.
70637         * NEWS: Mention the change.
70639 2008-09-01  Simon Josefsson  <simon@josefsson.org>
70641         * lib/bitrotate.h (rotl8, rotr8): Add.
70643         * modules/bitrotate (configure.ac): Need
70644         AC_REQUIRE([AC_C_INLINE]).
70645         (Description): Mention stdint.h.  Reported by Bruno Haible
70646         <bruno@clisp.org>.
70648         * lib/bitrotate.h (rotr16, rotl16): Fix mask value.  Reported by
70649         Paolo Bonzini <bonzini@gnu.org>.
70651 2008-08-31  Bruno Haible  <bruno@clisp.org>
70653         Assume Solaris specific bi-arch conventions on Solaris systems.
70654         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): On Solaris in 64-bit
70655         mode, set acl_libdirstem to lib/64. Also set acl_libdirstem2.
70656         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): If acl_libdirstem does not
70657         work, try acl_libdirstem2 as fallback. Otherwise treat acl_libdirstem2
70658         like acl_libdirstem.
70659         (AC_LIB_LINKFLAGS_FROM_LIBS): Treat acl_libdirstem2 like
70660         acl_libdirstem.
70661         * NEWS: Mention the change.
70662         Reported by Ben Taylor <bentaylor.solx86@gmail.com>.
70664 2008-08-31  Jim Meyering  <meyering@redhat.com>
70666         * lib/strftime.h: Add comments describing the two added arguments.
70668         remove duplicate #include directives
70669         * lib/chdir-long.c [TEST_CHDIR]: Remove duplicate #include <stdio.h>.
70670         * lib/putenv.c: Remove duplicate #include <stdlib.h>.
70672 2008-08-31  Bruno Haible  <bruno@clisp.org>
70674         New module 'sigpipe-die'.
70675         * modules/sigpipe-die: New file.
70676         * lib/sigpipe-die.h: New file.
70677         * lib/sigpipe-die.c: New file.
70678         * MODULES.html.sh (Signal handling): Add sigpipe-die.
70680 2008-08-31  Bruno Haible  <bruno@clisp.org>
70682         Don't override previously installed signal handlers.
70683         * lib/fatal-signal.c (saved_sigactions): New variable.
70684         (uninstall_handlers): Reset the signal to the saved handler, not
70685         to SIG_DFL (except when ignored).
70686         (install_handlers): Save the previous handlers.
70688 2008-08-30  Bruno Haible  <bruno@clisp.org>
70690         * gnulib-tool (func_reset_sigpipe): New function.
70691         (func_get_automake_snippet, func_modules_transitive_closure,
70692         func_import): Invoke it before a join command that reads from stdin,
70693         to avoid "echo: write error: Broken pipe" error messages on stderr.
70694         Reported by Sam Steingold <sds@gnu.org>.
70696 2008-08-30  Bruno Haible  <bruno@clisp.org>
70698         * m4/fopen.m4 (gl_FUNC_FOPEN): Test against bug with trailing slash.
70699         Code copied from m4/open.m4.
70700         * lib/fopen.c (rpl_fopen): Return NULL if the mode specifies write
70701         access and the filename ends in a slash. Code copied from lib/open.c.
70702         * doc/posix-functions/fopen.texi: Document bug with trailing slash.
70703         * tests/test-fopen.c (main): Check against bug with trailing slash.
70705 2008-08-29  Bruno Haible  <bruno@clisp.org>
70707         Avoid some "gcc -pedantic" warnings.
70708         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also PRAGMA_SYSTEM_HEADER.
70709         * lib/arpa_inet.in.h: Use PRAGMA_SYSTEM_HEADER.
70710         * lib/dirent.in.h: Likewise.
70711         * lib/fcntl.in.h: Likewise.
70712         * lib/float.in.h: Likewise.
70713         * lib/iconv.in.h: Likewise.
70714         * lib/inttypes.in.h: Likewise.
70715         * lib/locale.in.h: Likewise.
70716         * lib/math.in.h: Likewise.
70717         * lib/netinet_in.in.h: Likewise.
70718         * lib/search.in.h: Likewise.
70719         * lib/signal.in.h: Likewise.
70720         * lib/stdarg.in.h: Likewise.
70721         * lib/stdint.in.h: Likewise.
70722         * lib/stdio.in.h: Likewise.
70723         * lib/stdlib.in.h: Likewise.
70724         * lib/string.in.h: Likewise.
70725         * lib/strings.in.h: Likewise.
70726         * lib/sys_select.in.h: Likewise.
70727         * lib/sys_socket.in.h: Likewise.
70728         * lib/sys_stat.in.h: Likewise.
70729         * lib/sys_time.in.h: Likewise.
70730         * lib/sysexits.in.h: Likewise.
70731         * lib/time.in.h: Likewise.
70732         * lib/unistd.in.h: Likewise.
70733         * lib/wchar.in.h: Likewise.
70734         * lib/wctype.in.h: Likewise.
70735         * modules/arpa_inet (Makefile.am): Also substitute PRAGMA_SYSTEM_HEADER.
70736         * modules/fchdir (Makefile.am): Likewise.
70737         * modules/fcntl (Makefile.am): Likewise.
70738         * modules/float (Makefile.am): Likewise.
70739         * modules/iconv_open (Makefile.am): Likewise.
70740         * modules/inttypes (Makefile.am): Likewise.
70741         * modules/locale (Makefile.am): Likewise.
70742         * modules/math (Makefile.am): Likewise.
70743         * modules/netinet_in (Makefile.am): Likewise.
70744         * modules/search (Makefile.am): Likewise.
70745         * modules/signal (Makefile.am): Likewise.
70746         * modules/stdarg (Makefile.am): Likewise.
70747         * modules/stdint (Makefile.am): Likewise.
70748         * modules/stdio (Makefile.am): Likewise.
70749         * modules/stdlib (Makefile.am): Likewise.
70750         * modules/string (Makefile.am): Likewise.
70751         * modules/strings (Makefile.am): Likewise.
70752         * modules/sys_select (Makefile.am): Likewise.
70753         * modules/sys_socket (Makefile.am): Likewise.
70754         * modules/sys_stat (Makefile.am): Likewise.
70755         * modules/sys_time (Makefile.am): Likewise.
70756         * modules/sysexits (Makefile.am): Likewise.
70757         * modules/time (Makefile.am): Likewise.
70758         * modules/unistd (Makefile.am): Likewise.
70759         * modules/wchar (Makefile.am): Likewise.
70760         * modules/wctype (Makefile.am): Likewise.
70761         Reported by Reuben Thomas <rrt@sc3d.org>.
70763 2008-08-29  Bruno Haible  <bruno@clisp.org>
70765         * m4/include_next.m4 (gl_INCLUDE_NEXT): Don't define HAVE_INCLUDE_NEXT
70766         any more.
70768 2008-08-29  Simon Josefsson  <simon@josefsson.org>
70770         * MODULES.html.sh (Misc): Add bitrotate.
70772         * modules/bitrotate: New file.
70774         * lib/bitrotate.h: New file.
70776         * modules/bitrotate-tests: New file.
70778         * tests/test-bitrotate.c: New file.
70780         * modules/crypto/gc-arctwo, modules/crypto/arctwo: Add dependency
70781         on the bitrotate module.
70783         * lib/arctwo.c: Use new bitrotate module.
70785 2008-08-29  Jim Meyering  <meyering@redhat.com>
70787         bootstrap: merge changes from coreutils
70788         * build-aux/bootstrap (cp_mark_as_generated): Preserve perms
70789         of copied files.  Remove a kludge, now that this is fixed.
70790         * build-aux/bootstrap: Fix unportable expr usage. (by Ralf Wildenhues)
70791         * build-aux/bootstrap: Remove $bt and $bt2 also when not using gettext.
70792         * build-aux/bootstrap: Remove coreutils-specific SUBDIRS-related code.
70794 2008-08-29  Bruno Haible  <bruno@clisp.org>
70796         * MODULES.html.sh: Remove --cvs-urls option.
70798 2008-08-28  Jose E. Marchesi  <jemarch@gnu.org>  (tiny change)
70800         maint.mk: adjust to file name change
70801         * top/maint.mk: s/Makefile.cfg/cfg.mk/.
70803 2008-08-28  Jim Meyering  <meyering@redhat.com>
70805         * modules/getndelim2 (License): Relicense to LGPLv2+.
70806         Approved by Richard Stallman for the version of 1995, and by
70807         Paul Eggert, Bruno Haible, Eric Blake for their contributions.
70809 2008-08-27  Paolo Bonzini  <bonzini@gnu.org>
70811         * lib/getdelim.c (flockfile, funlockfile): Make all of them
70812         dummy if one is not available.  Do not touch them if
70813         USE_UNLOCKED_IO, instead letting unlocked-io.h do that.
70814         (getc_maybe_unlocked): New.
70815         * m4/getdelim.m4 (gl_PREREQ_GETDELIM): Check for getc_unlocked.
70817 2008-08-26  Eric Blake  <ebb9@byu.net>
70819         doc/INSTALL: resync from autoconf
70820         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Simplify.
70821         (INSTALL_PRELUDE): Delete; this is done more efficiently by
70822         moving...
70823         * install.texi [!autoconf]: ...here.  Resync from autoconf.
70824         * INSTALL: Regenerate.
70825         * INSTALL.ISO: New file.
70826         * INSTALL.UTF-8: Likewise.
70828 2008-08-26  Jim Meyering  <meyering@redhat.com>
70830         GNUmakefile: cfg.mk definitions override default autoreconf-rerun policy
70831         * top/GNUmakefile (_is-dist-target, _is-install-target): Make
70832         these definitions conditional, so that they may be overridden, too.
70834 2008-08-26  Bruno Haible  <bruno@clisp.org>
70836         Generate INSTALL file variants with prettier quotes.
70837         * doc/Makefile (INSTALL_PRELUDE): New macro.
70838         (INSTALL): Use it.
70839         (INSTALL.ISO, INSTALL.UTF-8): New rules.
70841 2008-08-26  Bruno Haible  <bruno@clisp.org>
70843         Run makeinfo in an English locale.
70844         * doc/Makefile (MAKEINFO): New variable.
70846 2008-08-26  Bruno Haible  <bruno@clisp.org>
70848         * doc/Makefile (INSTALL): Use --no-validate instead of --no-warn.
70849         Suggested by Eric Blake.
70851 2008-08-25  Bruno Haible  <bruno@clisp.org>
70853         * doc/Makefile (INSTALL): Generate with @firstparagraphindent set.
70855 2008-08-25  Eric Blake  <ebb9@byu.net>
70857         c-stack: test that stack overflow can be caught
70858         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Also check
70859         that platform allows handling stack overflow; at least OS/2 EMX
70860         has sigaltstack, but crashes before transferring control to
70861         handler on stack overflow.
70862         * lib/c-stack.c [HAVE_SIGALTSTACK]: Adjust conditions to also
70863         check for HAVE_STACK_OVERFLOW_HANDLING.
70864         Reported by Elbert Pol.
70866 2008-08-25  Bruno Haible  <bruno@clisp.org>
70868         * doc/posix-functions/strftime.texi: Fix description of strftime
70869         module.
70871 2008-08-24  Bruno Haible  <bruno@clisp.org>
70873         * tests/uniwidth/test-uc_width2.c: New file.
70874         * tests/uniwidth/test-uc_width2.sh: New file.
70875         * modules/uniwidth/width-tests (Files): Add the new files.
70876         (TESTS): Add uniwidth/test-uc_width2.sh.
70877         (TESTS_ENVIRONMENT): New variable.
70878         (check_PROGRAMS): Add test-uc_width2.
70879         (test_uc_width2_SOURCES): New variable.
70881         Fix uc_width(0x00AB) bug, introduced on 2007-07-08.
70882         * lib/uniwidth/width.c (nonspacing_table_data): Set bit for 0x00AD,
70883         not 0x00AB.
70884         Reported by Alexander V. Lukyanov <lav@netis.ru>.
70886 2008-08-22  Eric Blake  <ebb9@byu.net>
70888         test-lock, test-tls: mention why a test is skipped
70889         * tests/test-lock.c (main) [!USE_*_THREADS]: Print why test is
70890         skipped.
70891         * tests/test-tls.c (main) [!USE_*_THREADS]: Likewise.
70893         count-one-bits: relax license
70894         * modules/count-one-bits (License): Relicense to LGPLv2+.
70895         Suggested by Ludovic Courtès, approved by Ben Pfaff.
70897 2008-08-22  Andreas Schwab  <schwab@suse.de>
70899         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
70900         Remove spurious space in assignment.
70902 2008-08-21  Simon Josefsson  <simon@josefsson.org>
70904         * m4/autobuild.m4: Use TZ=UTC0 instead of TZ=UTC.  Reported by
70905         Paul Eggert <eggert@CS.UCLA.EDU>.
70907 2008-08-20  Paolo Bonzini  <bonzini@gnu.org>
70909         * modules/gettext: Add m4/threadlib.m4.
70911 2008-08-19  Eric Blake  <ebb9@byu.net>
70913         test-c-stack: fix compilation failure on FreeBSD 5.0
70914         * tests/test-c-stack.c [HAVE_SETRLIMIT]: Include prerequisite
70915         headers before <sys/resource.h>.
70916         * doc/posix-headers/sys_resource.texi (sys/resource.h): Document
70917         the bug.
70918         Reported by Nelson H. F. Beebe.
70920         strverscmp: migrate from "strverscmp.h" to <string.h>
70921         * modules/string (Makefile.am): Add new hooks.
70922         * modules/strverscmp (Files): Remove strverscmp.h.
70923         (Depends-on): Add string.
70924         (configure.ac): Add indicator.
70925         (Include): Mention new header.
70926         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Provide new
70927         defaults.
70928         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Inform string module of
70929         results.
70930         * lib/strverscmp.h: Delete.
70931         * lib/string.in.h (strverscmp): Provide declaration, when needed.
70932         * tests/test-strverscmp.c (includes): Adjust client.
70933         * lib/check-version.c (includes): Likewise.
70934         * NEWS: Document the change.
70936         strverscmp: add unit test
70937         * modules/strverscmp-tests: New file.
70938         * tests/test-strverscmp.c: Likewise.
70940 2008-08-19  Simon Josefsson  <simon@josefsson.org>
70942         * lib/gc-gnulib.c: Indentation cleanup.  Add some comments
70943         regarding Windows crypto stuff, from Mono.
70945 2008-08-19  Adam Strzelecki  <ono@java.pl>  (tiny change)
70947         * lib/gc-gnulib.c: Use CRYPT_VERIFY_CONTEXT.  Try to use Intel CSP
70948         if present, for intel RND.  Return error on failures.
70950 2008-08-18  Ben Pfaff  <blp@gnu.org>
70952         gitlog-to-changelog: give better diagnostic for failed pipe-open
70953         * build-aux/gitlog-to-changelog: Improve error message: suggest
70954         that the version of Git may be too old.
70956 2008-08-18  Simon Josefsson  <simon@josefsson.org>
70958         * m4/autobuild.m4: Use TZ=UTC to avoid time zone complexity.  Use
70959         ISO 8601 format.  Suggested by Greg Troxel <gdt@ir.bbn.com>.
70961 2008-08-18  Bruno Haible  <bruno@clisp.org>
70963         * lib/glthread/thread.h [USE_SOLARIS_THREADS]: Use thread_in_use(), not
70964         pthread_in_use().
70966 2008-08-18  Bruno Haible  <bruno@clisp.org>
70968         * lib/glthread/threadlib.c: Include <pthread.h>.
70970 2008-08-18  Bruno Haible  <bruno@clisp.org>
70972         * lib/glthread/lock.h [USE_SOLARIS_THREADS]: Fix
70973         glthread_recursive_lock_* macros.
70974         * lib/glthread/lock.c (glthread_recursive_lock_destroy_multithreaded):
70975         Fix syntax error.
70977 2008-08-18  Bruno Haible  <bruno@clisp.org>
70979         * lib/glthread/thread.c: Avoid forcing a context switch right after
70980         thread creation.
70982 2008-08-17  Bruno Haible  <bruno@clisp.org>
70984         * lib/glthread/thread.c: New file, based on code from tests/test-lock.c.
70985         * lib/glthread/thread.h: Provide Win32 specific implementation.
70986         * modules/thread (Files): Add lib/glthread/thread.c.
70987         (Depends-on): Add lock.
70988         (Makefile.am): Add glthread/thread.c to lib_SOURCES.
70990 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
70992         New module 'yield'.
70993         * modules/yield: New file.
70994         * lib/glthread/yield.h: New file.
70995         * m4/yield.m4: New file.
70996         * MODULES.html.sh (Multithreading): Add yield.
70998 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
71000         New module 'thread'.
71001         * modules/thread: New file.
71002         * lib/glthread/thread.h: New file.
71003         * m4/thread.m4: New file.
71004         * MODULES.html.sh (Multithreading): Add thread.
71006 2008-08-17  Bruno Haible  <bruno@clisp.org>
71008         * lib/glthread/lock.h: Include <stdlib.h> always.
71009         * lib/glthread/tls.h: Likewise.
71010         * lib/glthread/cond.h: Likewise.
71012 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
71014         New module 'cond'.
71015         * modules/cond: New file.
71016         * lib/glthread/cond.h: New file.
71017         * lib/glthread/cond.c: New file.
71018         * m4/cond.m4: New file.
71019         * MODULES.html.sh (Multithreading): Add cond.
71021 2008-08-16  Eric Blake  <ebb9@byu.net>
71023         c-stack: fix regression on Irix 5.3 from 2008-06-21
71024         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Move check for
71025         sa_sigaction...
71026         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): ...here.
71027         (gl_PREREQ_SIGACTION): Depend on sig-handler.h prereq's.
71028         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Set the default.
71029         * modules/signal (Makefile.am): Use the value.
71030         * lib/signal.in.h (sa_sigaction) [HAVE_SIGACTION
71031         && !HAVE_STRUCT_SIGACTION_SA_SIGACTION]: Define.
71032         * doc/posix-headers/signal.texi (signal.h): Document this
71033         portability issue.
71034         * doc/posix-functions/sigaction.texi (sigaction): Likewise.
71035         Reported by Tom G. Christensen.
71037 2008-08-17  Bruno Haible  <bruno@clisp.org>
71039         New module 'threadlib'.
71040         * modules/threadlib: New file.
71041         * lib/glthread/threadlib.c: New file, extracted from
71042         lib/glthread/lock.c.
71043         * lib/glthread/lock.c (dummy_thread_func, glthread_in_use): Remove
71044         functions.
71045         * m4/threadlib.m4: New file, from m4/lock.m4, renaming gl_LOCK to
71046         gl_THREADLIB and gl_LOCK_EARLY to gl_THREADLIB_EARLY.
71047         * m4/lock.m4 (gl_LOCK_EARLY, gl_LOCK_EARLY_BODY, gl_LOCK_BODY): Remove
71048         macros.
71049         (gl_LOCK): Just require gl_THREADLIB and perform checks for lock.h.
71050         (gl_DISABLE_THREADS): Remove macro.
71051         * modules/lock (Files): Remove build-aux/config.rpath.
71052         (Depends-on): Remove havelib. Add threadlib.
71053         (configure.ac-early): Remove section.
71054         * m4/tls.m4 (gl_TLS): Require gl_THREADLIB instead of gl_LOCK.
71055         * modules/tls (Depends-on): Remove lock. Add threadlib.
71056         (Link): New section, copied from threadlib.
71057         * MODULES.html.sh (Multithreading): Add threadlib.
71059 2008-08-14  Bruno Haible  <bruno@clisp.org>
71061         * lib/glthread/lock.h (glthread_lock_lock, glthread_lock_unlock,
71062         glthread_lock_destroy, glthread_rwlock_rdlock, glthread_rwlock_wrlock,
71063         glthread_rwlock_unlock, glthread_rwlock_destroy,
71064         glthread_recursive_lock_lock, glthread_recursive_lock_unlock,
71065         glthread_recursive_lock_destroy): Define as macros always.
71066         * lib/glthread/lock.c (glthread_lock_lock_func): Renamed from
71067         glthread_lock_lock.
71068         (glthread_lock_unlock_func): Renamed from glthread_lock_unlock.
71069         (glthread_lock_destroy_func): Renamed from glthread_lock_destroy.
71070         (glthread_rwlock_rdlock_func): Renamed from glthread_rwlock_rdlock.
71071         (glthread_rwlock_wrlock_func): Renamed from glthread_rwlock_wrlock.
71072         (glthread_rwlock_unlock_func): Renamed from glthread_rwlock_unlock.
71073         (glthread_rwlock_destroy_func): Renamed from glthread_rwlock_destroy.
71074         (glthread_recursive_lock_lock_func): Renamed from
71075         glthread_recursive_lock_lock.
71076         (glthread_recursive_lock_unlock_func): Renamed from
71077         glthread_recursive_lock_unlock.
71078         (glthread_recursive_lock_destroy_func): Renamed from
71079         glthread_recursive_lock_destroy.
71081 2008-08-14  Bruno Haible  <bruno@clisp.org>
71083         * lib/glthread/lock.h: Renamed from lib/lock.h.
71084         * lib/glthread/lock.c: Renamed from lib/lock.c. Update includes.
71085         * lib/glthread/tls.h: Renamed from lib/tls.h.
71086         * lib/glthread/tls.c: Renamed from lib/tls.c. Update includes.
71087         * lib/fstrcmp.c: Update includes.
71088         * lib/strsignal.c: Update includes.
71089         * modules/lock (Files, Makefile.am): Update.
71090         (Include): Change to "glthread/lock.h".
71091         * modules/tls (Files, Makefile.am): Update.
71092         (Include): Change to "glthread/tls.h".
71093         * tests/test-lock.c: Update includes.
71094         * tests/test-tls.c: Update includes.
71095         * NEWS: Mention the renamed header files.
71097 2008-08-11  Jim Meyering  <meyering@redhat.com>
71099         * lib/fts_.h: Fix grammar (insert a missing "is") in a comment.
71101 2008-08-11  Eric Blake  <ebb9@byu.net>
71103         test-c-stack: avoid C99-ism
71104         * tests/test-c-stack.c (main): Fix whitespace, move declaration
71105         before statement.
71106         Reported by Alain Guibert.
71108 2008-08-10  Jim Meyering  <meyering@redhat.com>
71110         ensure that return value of uinttostr et al are not ignored
71111         * lib/inttostr.h (__GNUC_PREREQ): Define.
71112         (__attribute_warn_unused_result__): Define.
71113         (offtostr, imaxtostr, umaxtostr, uinttostr): Apply the attribute.
71115 2008-08-07  Paolo Bonzini  <bonzini@gnu.org>
71117         * lib/lock.c (glthread_recursive_lock_init_multithreaded)
71118         [!PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Fix typo.
71120 2008-08-07  Jim Meyering  <meyering@redhat.com>
71122         * m4/inet_pton.m4: Fix typo in comment: s/inet_ntop/inet_pton/.
71124         * modules/mkstemp (License): Relicense under LGPLv2+.
71125         * modules/tempname (License): Likewise.
71127 2008-08-06  Bruno Haible  <bruno@clisp.org>
71129         * lib/poll.c (poll): Further micro-optimization.
71131 2008-08-06  Jim Meyering  <meyering@redhat.com>
71133         inet_pton.c: use locale-independent tolower
71134         * lib/inet_pton.c: Include <c-ctype.h> rather than <ctype.h>.
71135         (inet_pton6): Use c_tolower rather than tolower.
71136         * modules/inet_pton (Depends-on): Add c-ctype.
71138 2008-08-06  Paolo Bonzini  <bonzini@gnu.org>
71140         * lib/poll.c (poll): Avoid division when timeout is 0, cache
71141         _SC_OPEN_MAX, avoid repeated access to errno.  Check for nfd < 0.
71143 2008-08-06  Jim Meyering  <meyering@redhat.com>
71145         * modules/inet_pton (License): Relicense under LGPLv2+.
71147 2008-08-03  Bruno Haible  <bruno@clisp.org>
71149         Additional non-aborting API for lock and tls.
71150         * lib/lock.h: Include <errno.h>.
71151         (glthread_lock_init): New macro/function.
71152         (gl_lock_init): Define as wrapper around glthread_lock_init.
71153         (glthread_lock_lock): New macro/function.
71154         (gl_lock_lock): Define as wrapper around glthread_lock_lock.
71155         (glthread_lock_unlock): New macro/function.
71156         (gl_lock_unlock): Define as wrapper around glthread_lock_unlock.
71157         (glthread_lock_destroy): New macro/function.
71158         (gl_lock_destroy): Define as wrapper around glthread_lock_destroy.
71159         (glthread_rwlock_init): New macro/function.
71160         (gl_rwlock_init): Define as wrapper around glthread_rwlock_init.
71161         (glthread_rwlock_rdlock): New macro/function.
71162         (gl_rwlock_rdlock): Define as wrapper around glthread_rwlock_rdlock.
71163         (glthread_rwlock_wrlock): New macro/function.
71164         (gl_rwlock_wrlock): Define as wrapper around glthread_rwlock_wrlock.
71165         (glthread_rwlock_unlock): New macro/function.
71166         (gl_rwlock_unlock): Define as wrapper around glthread_rwlock_unlock.
71167         (glthread_rwlock_destroy): New macro/function.
71168         (gl_rwlock_destroy): Define as wrapper around glthread_rwlock_destroy.
71169         (glthread_recursive_lock_init): New macro/function.
71170         (gl_recursive_lock_init): Define as wrapper around
71171         glthread_recursive_lock_init.
71172         (glthread_recursive_lock_lock): New macro/function.
71173         (gl_recursive_lock_lock): Define as wrapper around
71174         glthread_recursive_lock_lock.
71175         (glthread_recursive_lock_unlock): New macro/function.
71176         (gl_recursive_lock_unlock): Define as wrapper around
71177         glthread_recursive_lock_unlock.
71178         (glthread_recursive_lock_destroy): New macro/function.
71179         (gl_recursive_lock_destroy): Define as wrapper around
71180         glthread_recursive_lock_destroy.
71181         (glthread_once): New macro/function.
71182         (gl_once): Define as wrapper around glthread_once.
71183         Update function declarations.
71184         * lib/lock.c (glthread_rwlock_init_multithreaded): Renamed from
71185         glthread_rwlock_init. Return error code.
71186         (glthread_rwlock_rdlock_multithreaded): Renamed from
71187         glthread_rwlock_rdlock. Return error code.
71188         (glthread_rwlock_wrlock_multithreaded): Renamed from
71189         glthread_rwlock_wrlock. Return error code.
71190         (glthread_rwlock_unlock_multithreaded): Renamed from
71191         glthread_rwlock_unlock. Return error code.
71192         (glthread_rwlock_destroy_multithreaded): Renamed from
71193         glthread_rwlock_destroy. Return error code.
71194         (glthread_recursive_lock_init_multithreaded): Renamed from
71195         glthread_recursive_lock_init. Return error code.
71196         (glthread_recursive_lock_lock_multithreaded): Renamed from
71197         glthread_recursive_lock_lock. Return error code.
71198         (glthread_recursive_lock_unlock_multithreaded): Renamed from
71199         glthread_recursive_lock_unlock. Return error code.
71200         (glthread_recursive_lock_destroy_multithreaded): Renamed from
71201         glthread_recursive_lock_destroy. Return error code.
71202         (glthread_once_call): Make static.
71203         (glthread_once_multithreaded): Renamed from glthread_once.
71204         * lib/tls.h: Include <errno.h>.
71205         (glthread_tls_key_init): New macro/function.
71206         (gl_tls_key_init): Define as wrapper around glthread_tls_key_init.
71207         (glthread_tls_set): New macro/function.
71208         (gl_tls_set): Define as wrapper around glthread_tls_set.
71209         (glthread_tls_key_destroy): New macro/function.
71210         (gl_tls_key_destroy): Define as wrapper around glthread_tls_key_destroy.
71211         Update function declarations.
71212         * lib/tls.c (glthread_tls_get_multithreaded): Renamed from
71213         glthread_tls_get.
71214         Suggested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
71216 2008-08-04  Eric Blake  <ebb9@byu.net>
71218         gnumakefile: use space, not TAB, outside of targets
71219         * top/GNUmakefile (_dummy): Fix whitespace error in prior edit.
71221 2008-08-02  Jim Meyering  <meyering@redhat.com>
71223         getdate.y: avoid locale-dependent date parsing failure
71224         In Turkish locales, getdate would fail to recognize keywords
71225         containing a lowercase "i".  The solution is not to rely on
71226         locale-sensitive case-conversion.
71227         * lib/getdate.y: Include <c-ctype.h> rather than <ctype.h>.
71228         (lookup_word): Use c_toupper in place of toupper.
71229         (yylex, get_date): Use c_ prefixed variants of isspace and isalpha, too.
71230         Reported by Vefa Bicakci <bicave@superonline.com> in
71231         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/14184>.
71232         * modules/getdate (Depends-on): Add c-ctype.
71234 2008-08-02  Bruno Haible  <bruno@clisp.org>
71236         * gnulib-tool (func_import): When updating or creating a .gitignore
71237         file, prepend each added line with a slash, and ignore leading slashes
71238         from the existing lines.
71239         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
71241 2008-08-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71243         Portability fix for GNU make 3.79.1.
71244         * top/GNUmakefile: Avoid 'else COND', which older GNU make
71245         versions do not understand.
71247 2008-08-01  Bruno Haible  <bruno@clisp.org>
71249         Work around bug of HP-UX 10.20 cc with -0.0 literal.
71250         * tests/test-isnanf.h (zero): New variable.
71251         (main): Avoid literal -0.0f.
71252         * tests/test-isnand.h (zero): New variable.
71253         (main): Avoid literal -0.0.
71254         * tests/test-isnanl.h (zero): New variable.
71255         (main): Avoid literal -0.0L.
71256         * tests/test-isnan.c (zerof, zerod, zerol): New variables.
71257         (test_float, test_double, test_long_double): Avoid literals -0.0f,
71258         -0.0, -0.0L.
71259         * tests/test-signbit.c (test_signbitf): Avoid literal -0.0f.
71260         (test_signbitd): Avoid literal -0.0.
71261         (test_signbitl): Avoid literal -0.0L.
71262         * tests/test-ceilf1.c (zero): New variable.
71263         (main): Avoid literal -0.0f.
71264         * tests/test-ceill.c (zero): New variable.
71265         (main): Avoid literal -0.0L.
71266         * tests/test-floorf1.c (zero): New variable.
71267         (main): Avoid literal -0.0f.
71268         * tests/test-floorl.c (zero): New variable.
71269         (main): Avoid literal -0.0L.
71270         * tests/test-roundf1.c (zero): New variable.
71271         (main): Avoid literal -0.0f.
71272         * tests/test-round1.c (zero): New variable.
71273         (main): Avoid literal -0.0.
71274         * tests/test-roundl.c (zero): New variable.
71275         (main): Avoid literal -0.0L.
71276         * tests/test-truncf1.c (zero): New variable.
71277         (main): Avoid literal -0.0f.
71278         * tests/test-trunc1.c (zero): New variable.
71279         (main): Avoid literal -0.0.
71280         * tests/test-truncl.c (zero): New variable.
71281         (main): Avoid literal -0.0L.
71282         * tests/test-frexp.c (zero): New variable.
71283         (main): Avoid literal -0.0.
71284         * tests/test-frexpl.c (zero): New variable.
71285         (main): Avoid literal -0.0L.
71286         * tests/test-ldexpl.c (zero): New variable.
71287         (main): Avoid literal -0.0L.
71288         * tests/test-snprintf-posix.h (have_minus_zero): Avoid literal -0.0.
71289         (zerod, zerol): New variables.
71290         (test_function): Avoid literals -0.0, -0.0L.
71291         * tests/test-sprintf-posix.h (have_minus_zero): Avoid literal -0.0.
71292         (zerod, zerol): New variables.
71293         (test_function): Avoid literals -0.0, -0.0L.
71294         * tests/test-vasnprintf-posix.c (have_minus_zero): Avoid literal -0.0.
71295         (zerod, zerol): New variables.
71296         (test_function): Avoid literals -0.0, -0.0L.
71297         * tests/test-vasprintf-posix.c (have_minus_zero): Avoid literal -0.0.
71298         (zerod, zerol): New variables.
71299         (test_function): Avoid literals -0.0, -0.0L.
71300         * tests/test-strtod.c (zero): New variable.
71301         (main): Avoid literal -0.0.
71302         Reported by Jonathan C. Patschke <jp@centtech.com>.
71304 2008-07-31  Jim Meyering  <meyering@redhat.com>
71306         sha256.h: correct definition of SHA224_DIGEST_SIZE
71307         * lib/sha256.h (SHA224_DIGEST_SIZE): Define to 28, not 24.
71308         Reported by Paulie Pena IV <paulie4@gmail.com>.
71309         Define as 224 / 8, rather than as a literal.
71310         (SHA256_DIGEST_SIZE): Define as 256/8 rather than equivalent literal.
71311         * lib/sha512.h (SHA384_DIGEST_SIZE): Likewise, define as equiv: 384/8.
71312         (SHA512_DIGEST_SIZE): Likewise, define as equivalent quotient: 512/8.
71314 2008-07-31  Bruno Haible  <bruno@clisp.org>
71316         * lib/regex_internal.h (BITSET_WORD_BITS): Make first conditional work
71317         on HP-UX 10.20 with "cc -Ae". Fix second conditional.
71318         Reported by Jonathan Patschke <jp@centtech.com>.
71320 2008-07-31  Bruno Haible  <bruno@clisp.org>
71322         * gnulib-tool (func_import): Make change from 2008-06-23 more robust.
71323         Reported by Paolo Bonzini <bonzini@gnu.org>.
71325 2008-07-30  Eric Blake  <ebb9@byu.net>
71327         test-strtod: allow compilation without -lm
71328         * tests/test-strtod.c (main): Avoid link dependence on fabs.
71329         Reported by Dennis Clarke <blastwave@gmail.com>.
71331 2008-07-28  Jim Meyering  <meyering@redhat.com>
71333         bootstrap: work also when there are no .po files in po/
71334         * build-aux/bootstrap (update_po_files): Complete the change
71335         that I began in bc960df8c789c878f1c1c54a28a3c2648dead8d9.
71337 2008-07-27  Jim Meyering  <meyering@redhat.com>
71339         * users.txt: Add zile.
71341 2008-07-26  Ben Pfaff  <blp@gnu.org>
71343         Add missing dependencies on new m4/exponent[fdl].m4 files.
71344         * modules/isnanf-nolibm: Add m4/exponentf.m4.
71345         * modules/isnand-nolibm: Add m4/exponentd.m4.
71346         * modules/isnanl-nolibm: Add m4/exponentl.m4.
71347         * modules/signbit-tests: Use m4/exponent[fdl].m4 instead of
71348         m4/isnan[fdl].m4, because the macros actually used moved.
71349         Reported by Jim Meyering.
71351 2008-07-14  Ben Pfaff  <blp@gnu.org>
71353         Add isinf module.
71354         * lib/isinf.c: New file.
71355         * lib/math.in.h: Define isinf macro if we have decided to replace
71356         it.
71357         * m4/isinf.m4: New file.
71358         * m4/math_h.m4: Initialize and substitute variables for isinf
71359         module.
71360         * modules/isinf: New file.
71361         * modules/isinf-tests: New file.
71362         * modules/math: Add substitutions for new module.
71363         * tests/test-isinf.c: New file.
71364         * doc/posix-functions/isinf.texi: Mention new module.
71365         * MODULES.html.sh: Mention new module.
71367 2008-07-14  Ben Pfaff  <blp@gnu.org>
71369         Factor out some macros for use by additional modules.
71370         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Move into new file
71371         exponentf.m4.
71372         * m4/isnand.m4 (gl_DOUBLE_EXPONENT_LOCATION): Move into new file
71373         exponentd.m4.
71374         * m4/isnanl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Move into new
71375         file exponentl.m4.
71376         * m4/exponentf.m4: New file.
71377         * m4/exponentd.m4: New file.
71378         * m4/exponentl.m4: New file.
71379         * modules/isnanf: Use new file m4/exponentf.m4.
71380         * modules/isnand: Use new file m4/exponentd.m4.
71381         * modules/isnanl: Use new file m4/exponentl.m4.
71383 2008-07-23  Ulrich Drepper  <drepper@redhat.com>
71385         mktime.c: normalize tp->tm_isdst value to -1/0/1.
71386         * lib/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
71387         Reported by Michael Ringe <Michael.Ringe@gmx.de> in
71388         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>.
71390         * lib/canonicalize-lgpl.c (__realpath): Avoid buffer overflow after
71391         readlink on platforms without PATH_MAX.
71393 2008-07-21  Eric Blake  <ebb9@byu.net>
71395         Warn, not fail, on stale version.
71396         * top/GNUmakefile (_curr-ver): Tone down previous patch.
71398         Don't allow installation with stale devel version number.
71399         * top/GNUmakefile (_is-install-target): New macro.
71400         (_curr-ver): Forbid installation with stale version number.
71402 2008-07-20  Bruno Haible  <bruno@clisp.org>
71404         * modules/c-stack-tests (Makefile.am): Add LIBSIGSEGV to
71405         TESTS_ENVIRONMENT.
71406         * tests/test-c-stack2.sh: React differently if LIBSIGSEGV is in use.
71408 2008-07-20  Bruno Haible  <bruno@clisp.org>
71410         * lib/c-stack.h (c_stack_action): Add documentation.
71411         * lib/c-stack.c (c_stack_action): Remove incomplete documentation.
71413 2008-07-20  Bruno Haible  <bruno@clisp.org>
71415         * modules/canonicalize-lgpl (License): Relicense under LGPLv2+.
71416         * modules/readlink (License): Likewise.
71418 2008-07-17  Eric Blake  <ebb9@byu.net>
71420         * modules/c-stack (Link): Fix typo.
71422         Make c-stack use libsigsegv, when available.
71423         * modules/c-stack (Depends-on): Add libsigsegv.
71424         * modules/c-stack-tests (Makefile.am): Link with libsigsegv, if
71425         needed.
71426         * lib/c-stack.c (SIGSTKSZ): Define fallback.
71427         (segv_handler, overflow_handler, c_stack_action)
71428         [HAVE_LIBSIGSEGV && !HAVE_XSI_STACK_OVERFLOW_HEURISTIC]: Add new
71429         implementation when libsigsegv is available, but only when using
71430         the library is necessary.
71431         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Add
71432         comment, explaining why XSI check fails on Linux.
71433         (gl_PREREQ_C_STACK): Supply LIBCSTACK, LTLIBCSTACK.
71434         * tests/test-c-stack2.sh: Tweak skip message.
71435         * NEWS: Document new link-time requirements.
71437 2008-07-16  Eric Blake  <ebb9@byu.net>
71439         c-stack: Expose false positives when not using libsigsegv.
71440         * modules/c-stack-tests (Files): Expand test.
71441         * tests/test-c-stack.c (main): Add means to conditionally trigger
71442         non-overflow SIGSEGV.
71443         * tests/test-c-stack2.sh: New file.
71445 2008-07-14  Bruno Haible  <bruno@clisp.org>
71447         * m4/libsigsegv.m4: Remove unneeded AC_PREREQ.
71448         Reported by Eric Blake.
71450 2008-07-14  Sam Steingold  <sds@gnu.org>
71451             Bruno Haible  <bruno@clisp.org>
71453         New module libsigsegv.
71454         * modules/libsigsegv: New file.
71455         * m4/libsigsegv.m4: New file, from GNU clisp sigsegv.m4 with
71456         modifications.
71457         * MODULES.html.sh (Signal handling): New section.
71459 2008-07-14  Bruno Haible  <bruno@clisp.org>
71461         * modules/unictype/ctype-* (Description): Add the word "function".
71462         Improves the resulting doc in MODULES.html.
71464 2008-07-12  Ben Pfaff  <blp@gnu.org>
71466         Add longlong module.
71467         * modules/longlong: New file.
71469 2008-07-12  Bruno Haible  <bruno@clisp.org>
71471         * m4/isnan.m4 (gl_ISNAN): When the replacement is used, set ISNAN_LIBM
71472         to empty.
71474 2008-07-10  Ben Pfaff  <blp@gnu.org>
71476         Add isnan module.
71477         * doc/posix-functions/isnan.texi: Mention new module.
71478         * lib/math.in.h: Define isnan macro if we have decided to replace
71479         it.
71480         * m4/isnan.m4: New file.
71481         * m4/isnanl.m4 (gl_FUNC_ISNANL): Factor out some code into new
71482         macro gl_BUILD_ISNANL so that isnan.m4 can use that functionality
71483         also.
71484         (gl_FUNC_ISNANL_NO_LIBM): Factor out same code, to reduce
71485         redundancy.
71486         * m4/math_h.m4: Initialize and substitute variables for isnan
71487         module.
71488         * modules/isnan: New file.
71489         * modules/isnan-tests: New file.
71490         * modules/math: Add substitutions for new module.
71491         * tests/test-isnan.c: New file.
71492         * MODULES.html.sh: Mention new module.
71494 2008-07-10  Ben Pfaff  <blp@gnu.org>
71496         Add isnanf module.
71497         * lib/isnanf.m4: New file.
71498         * m4/isnanf.m4 (gl_FUNC_ISNANF): New macro.
71499         (gl_HAVE_ISNANF_IN_LIBM): New macro.
71500         (gl_BUILD_ISNANF): New macro used by gl_FUNC_ISNANF,
71501         gl_FUNC_ISNANF_NO_LIBM, and gl_FUNC_ISNAN.
71502         * modules/isnanf: New file.
71503         * modules/isnanf-tests: New file.
71504         * modules/isnanf-nolibm-tests: Add tests/test-isnanf.h to list of
71505         files.
71506         * tests/test-isnanf-nolibm.c: factored most of its contents into
71507         new file tests/test-isnanf.h.
71508         * tests/test-isnanf.h: New file.
71509         * tests/test-isnanf.c: New file.
71510         * MODULES.html.sh: Mention new module.
71511         * doc/glibc-functions/isnanf.texi: Mention new module.
71513 2008-07-10  Ben Pfaff  <blp@gnu.org>
71515         Add isnand module.
71516         * lib/isnand.h: New file.
71517         * m4/isnand.m4 (gl_FUNC_ISNAND): New macro.
71518         (gl_FUNC_ISNAND_NO_LIBM): Split partially into new macro
71519         gl_HAVE_ISNAND_NO_LIBM so that gl_FUNC_ISNAND can use that
71520         functionality also.
71521         (gl_BUILD_ISNAND): New macro used by gl_FUNC_ISNAND,
71522         gl_FUNC_ISNAND_NO_LIBM, and gl_FUNC_ISNAN.
71523         (gl_HAVE_ISNAND_IN_LIBM): New macro.
71524         * modules/isnand: New file.
71525         * modules/isnand-tests: New file.
71526         * modules/isnand-nolibm-tests: Add tests/test-isnand.h to list of
71527         files.
71528         * tests/test-isnand-nolibm.c: factored most of its contents into
71529         new file tests/test-isnand.h.
71530         * tests/test-isnand.h: New file.
71531         * tests/test-isnand.c: New file.
71532         * MODULES.html.sh: Mention new module.
71534 2008-07-10  Ben Pfaff  <blp@gnu.org>
71536         * lib/isnanf.h: Rename lib/isnanf-nolibm.h.
71537         * lib/isnand.h: Rename lib/isnand-nolibm.h.
71538         * tests/test-isnanf.c: Rename tests/test-isnanf-nolibm.c.
71539         * tests/test-isnand.c: Rename tests/test-isnand-nolibm.c.
71540         * modules/isnanf-nolibm: Update references to renamed files.
71541         * modules/isnand-nolibm: Likewise.
71542         * modules/isnanf-nolibm-tests: Likewise.
71543         * modules/isnand-nolibm-tests: Likewise.
71544         * lib/frexp.c: Likewise.
71545         * lib/isfinite.c: Likewise.
71546         * lib/signbitd.c: Likewise.
71547         * lib/signbitf.c: Likewise.
71548         * lib/vasnprintf.c: Likewise.
71549         * tests/test-ceilf1.c: Likewise.
71550         * tests/test-ceilf2.c: Likewise.
71551         * tests/test-floorf1.c: Likewise.
71552         * tests/test-floorf2.c: Likewise.
71553         * tests/test-frexp.c: Likewise.
71554         * tests/test-round1.c: Likewise.
71555         * tests/test-round2.c: Likewise.
71556         * tests/test-roundf1.c: Likewise.
71557         * tests/test-strtod.c: Likewise.
71558         * tests/test-trunc1.c: Likewise.
71559         * tests/test-trunc2.c: Likewise.
71560         * tests/test-truncf1.c: Likewise.
71561         * tests/test-truncf2.c: Likewise.
71562         * NEWS: Mention the renamed header files.
71564 2008-07-11  Jim Meyering  <meyering@redhat.com>
71566         vc-list-files: make the last-resort awk code more portable
71567         * build-aux/vc-list-files: Don't rely on awk's "sub" command.
71568         /bin/awk from OpenSolaris 11's SUNWesu version 2008.03.22.10.56
71569         does not support it.
71571 2008-07-10  Eric Blake  <ebb9@byu.net>
71573         Work with tar's bootstrap.
71574         * gnulib-tool (func_emit_initmacro_end): Use m4_defn in the case
71575         where LIBSOURCES_DIR contains .#bootmp but must not be treated as
71576         an m4 comment.
71578 2008-07-09  Jim Meyering  <meyering@redhat.com>
71580         posix-shell.m4: fix typo that made this test malfunction
71581         * m4/posix-shell.m4: Remove capitalization in variable name.
71583 2008-07-08  Bruno Haible  <bruno@clisp.org>
71585         * m4/onceonly.m4: Update comments.
71586         Reported by Ben Pfaff <blp@cs.stanford.edu>.
71588 2008-07-04  Jim Meyering  <meyering@redhat.com>
71590         * users.txt: Add vc-dwim.
71591         (bison, coreutils): Use the gitweb URL.
71593 2008-07-03  Jim Meyering  <meyering@redhat.com>
71595         * users.txt: Add libffcall.  From Sam Steingold.
71597 2008-07-03  Ondřej Vašík  <ovasik@redhat.com>
71599         getdate.y: do not ignore TZ with relative day, month or year offset
71600         * lib/getdate.y (get_date): Move the tz-handling block to follow the
71601         relative-date-handling, since otherwise, the latter would clobber the
71602         sole output (an updated Start value) of the tz-handling block.
71603         * tests/test-getdate.c: Tests for the fix
71605 2008-07-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71607         Recognize 'foo_LIBRARIES += libgnu.a'.
71608         * gnulib-tool (func_emit_lib_Makefile_am): Recognize if a
71609         makefile snippet has already specified an installation location,
71610         also using '+='.
71612 2008-07-02  Ondřej Vašík  <ovasik@redhat.com>
71614         getdate.y: factor out common actions
71615         * lib/getdate.y (apply_relative_time, set_hhmmss): New functions.
71616         Use them in place of open-coded actions.
71618 2008-07-01  Simon Josefsson  <simon@josefsson.org>
71620         Add self-test for getdate module.
71621         * modules/getdate-tests: New file.
71622         * tests/test-getdate.c: New file.
71624 2008-06-29  Bruno Haible  <bruno@clisp.org>
71626         * gnulib-tool (func_import): Put gnulib-comp.m4 into .cvsignore or
71627         .gitignore.
71628         Reported by Sylvain Beucler <beuc@beuc.net>.
71630 2008-06-29  Bruno Haible  <bruno@clisp.org>
71632         * doc/gnulib-tool.texi (VCS Issues): Mention --no-vc-files option.
71633         * m4/gnulib-tool.m4: Update to match current gnulib-tool.
71635 2008-06-29  Bruno Haible  <bruno@clisp.org>
71637         * gnulib-tool (func_import): Recommend to put gnulib-cache.m4 into
71638         EXTRA_DIST.
71639         Reported by Sylvain Beucler <beuc@beuc.net>.
71641 2008-06-26  Jim Meyering  <meyering@redhat.com>
71643         make several modules depend on the "open" module
71644         This provides slightly increased consistency when opening-for-write
71645         the name of a non-directory spelled with a trailing slash.
71646         * modules/chdir-safer: Likewise.
71647         * modules/chown: Likewise.
71648         * modules/clean-temp: Likewise.
71649         * modules/copy-file: Likewise.
71650         * modules/fchdir: Likewise.
71651         * modules/fcntl-safer: Likewise.
71652         * modules/pipe: Likewise.
71653         * modules/utime: Likewise.
71654         Prompted by Eric Blake and Bruno Haible.
71656 2008-06-24  Andreas Schwab  <schwab@suse.de>
71658         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Don't test whether compound
71659         literals can be used as initializers for global variables.
71661 2008-06-23  Eric Blake  <ebb9@byu.net>
71663         Make gnulib-cache.m4 easier to diff.
71664         * gnulib-tool (func_import): Allow newlines when reading cached
71665         gl_MODULES, and generate newlines when creating gnulib-cache.m4.
71667 2008-06-23  Bruno Haible  <bruno@clisp.org>
71669         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): Remove macro.
71670         (gl_PREREQ_SIGPROCMASK): Don't invoke it.
71671         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): New macro, moved here from
71672         m4/signalblocking.m4.
71673         (gl_PREREQ_SIGACTION): Don't invoke it.
71674         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Invoke
71675         gl_PREREQ_SIG_HANDLER_H.
71676         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
71677         Don't check for sigaction here.
71679 2008-06-23  Bruno Haible  <bruno@clisp.org>
71681         * lib/fatal-signal.c (fatal_signal_handler): Update comment.
71682         (install_handlers): Don't set the SA_RESETHAND flag.
71684 2008-06-23  Bruno Haible  <bruno@clisp.org>
71686         * m4/sigaction.m4: Comment fixes.
71687         * lib/signal.in.h: Likewise.
71689 2008-06-23  Eric Blake  <ebb9@byu.net>
71691         Fix typo.
71692         * tests/test-sigaction.c (MASK_SA_FLAGS): Add missing operator.
71694         Avoid SA_ namespace.
71695         * tests/test-sigaction.c (MASK_SA_FLAGS): Rename from SA_MASK.
71696         Reported by Ralf Wildenhues.
71698         Avoid test failure due to SA_RESTORER.
71699         * tests/test-sigaction.c (SA_MASK): New macro.
71700         (main): Avoid failing due to extension flags being set.
71701         Reported by Jim Meyering.
71703         Revert use of sig-handler.h in sigprocmask.c.
71704         * modules/sigprocmask (Files): Don't rely on sig-handler.h, since
71705         it requires the existence of struct sigaction.
71706         * lib/sigprocmask.c (handler_t): Restore typedef.
71707         (rpl_signal, old_handlers): Use local type.
71709 2008-06-22  Bruno Haible  <bruno@clisp.org>
71711         * tests/test-stdint.c: Disable the INTMAX_MAX preprocessor test
71712         conditionally.
71713         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
71715 2008-06-22  Bruno Haible  <bruno@clisp.org>
71717         * doc/posix-functions/siginterrupt.texi: Move note.
71719         * lib/signal.in.h (SA_RESTART): New macro.
71720         * lib/sigaction.c: Update comment.
71722         * m4/sigaction.m4 (gl_SIGACTION): Require gl_SIGNAL_H_DEFAULTS.
71724         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): New macro.
71725         (gl_PREREQ_SIGPROCMASK): Invoke it.
71726         * m4/sigaction.m4 (gl_PREREQ_SIGACTION): Likewise.
71728         * lib/nanosleep.c (rpl_nanosleep): Setup newact only when it is needed.
71730         * lib/sigprocmask.c: Update a comment.
71732 2008-06-21  Eric Blake  <ebb9@byu.net>
71734         Use sigaction module rather than signal().
71735         * modules/c-stack (Depends-on): Add sigaction.
71736         * modules/fatal-signal (Depends-on): Likewise.
71737         * modules/nanosleep (Depends-on): Likewise.
71738         * modules/sigprocmask (Files): Add sig-handler.h.
71739         * modules/sigaction (Files): Likewise.
71740         * lib/sig-handler.h (get_handler): New file, suggested by Paul
71741         Eggert.
71742         * lib/c-stack.c (SIGACTION_WORKS): Simplify conditions.
71743         (c_stack_action) [!SIGACTION_WORKS]: Use sigaction, not signal.
71744         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
71745         (init_fatal_signals): Likewise.
71746         * lib/nanosleep.c (rpl_nanosleep): Likewise.
71747         (siginterrupt): Delete fallback.
71748         * lib/sigprocmask.c (handler_t, old_handlers): Use sa_handler_t
71749         instead.
71750         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Drop check for
71751         siginterrupt.
71753         New module sigaction, for mingw.
71754         * modules/sigaction: New module...
71755         * modules/sigaction-tests: ...and its test.
71756         * m4/sigaction.m4: New file.
71757         * lib/sigaction.c: Likewise.
71758         * tests/test-sigaction.c: Likewise.
71759         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Add sigaction variables.
71760         * modules/signal (Makefile.am): Likewise.
71761         * lib/signal.in.h (!@HAVE_SIGACTION@): Define replacements when
71762         needed.
71763         * doc/posix-headers/signal.texi (signal.h): Mention provided
71764         types.
71765         * doc/posix-functions/siginterrupt.texi (siginterrupt): Mention
71766         that sigaction is preferable.
71767         * doc/posix-functions/sigaction.texi (sigaction): Mention new
71768         module.
71769         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
71770         sigaction.
71772         Improve robustness of sigprocmask by overriding signal.
71773         * lib/signal.in.h (rpl_signal): Override signal when sigprocmask
71774         is in use.
71775         * lib/sigprocmask.c (blocked_handler): Reinstall block handler.
71776         (SIGKILL, SIGSTOP): Provide fallbacks.
71777         (rpl_signal): Implement.
71778         (old_handlers, blocked_set): Mark volatile, since sigprocmask and
71779         signal can be called inside handlers.
71781         Fix nanosleep module on mingw.
71782         * modules/nanosleep (Depends-on): Add sys_select.
71783         * lib/nanosleep.c (HAVE_SYS_SELECT_H): Rely on gnulib module.
71785         Fix licensing of sigprocmask.
71786         * modules/raise (License): Relicense as LGPL.
71788 2008-06-21  Bruno Haible  <bruno@clisp.org>
71790         * lib/propername.c (proper_name_utf8): Don't use the transliterated
71791         result if it contains question marks.
71792         Reported by Michael Geng <linux@michaelgeng.de>.
71794 2008-06-19  Bruno Haible  <bruno@clisp.org>
71796         Fix CVS-ism.
71797         * doc/gnulib.texi: Include updated-stamp.texi.
71798         * doc/Makefile (GNULIB_TEXI_FILES): New variable.
71799         (updated-stamp.texi): New rule.
71800         (gnulib.info): Depend on it.
71801         * doc/.gitignore: Add updated-stamp.texi.
71802         Based on a patch by Thien-Thi Nguyen <ttn@gnuvola.org>.
71804 2008-06-19  Bruno Haible  <bruno@clisp.org>
71806         * doc/Makefile (gnulib.info): Update and simplify dependencies.
71807         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
71809 2008-06-19  Eric Blake  <ebb9@byu.net>
71811         Fix VPATH 'make dist' with GNU make and non-VCS tarball.
71812         * top/GNUmakefile (_curr-ver): Don't use $(srcdir) unnecessarily.
71813         Reported by Stepan Kasal.
71815 2008-06-18  Bruno Haible  <bruno@clisp.org>
71817         * lib/fatal-signal.c (init_fatal_signals): Add comment.
71818         Reported by Eric Blake.
71820 2008-06-18  Eric Blake  <ebb9@byu.net>
71822         Work around cygwin 1.5.25 strsignal bug.
71823         * tests/test-strsignal.c: Allow for const char *.
71824         * doc/glibc-functions/strsignal.texi (strsignal): Document the bug.
71826 2008-06-18  Simon Josefsson  <simon@josefsson.org>
71828         * users.txt: Update URL to article and add author/date
71829         information.
71831 2008-06-17  Bruno Haible  <bruno@clisp.org>
71833         New macro gl_DISABLE_THREADS.
71834         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Use value gl_use_threads_default
71835         if the user did not pass --enable-threads or --disable-threads option.
71836         (gl_DISABLE_THREADS): New macro.
71837         Reported by Eric Blake <ebb9@byu.net>.
71839 2008-06-17  Bruno Haible  <bruno@clisp.org>
71841         * lib/tls.h (gl_tls_key_init): Evaluate the destructor argument also
71842         when the macro ignores it.
71843         Based on a patch by Eric Blake <ebb9@byu.net>.
71845 2008-06-17  Bruno Haible  <bruno@clisp.org>
71847         * modules/tls (License): Change to LGPLv2+.
71848         Reported by Eric Blake.
71850 2008-06-17  Eric Blake  <ebb9@byu.net>
71852         Simplify c-stack prerequisites.
71853         * lib/c-stack.c (includes): Remove unused <sys/resource.h>.
71854         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Posix 200x
71855         no longer requires <ucontext.h> to exist.  Optimize setrlimit
71856         check.
71857         (gl_PREREQ_C_STACK): Remove check for unused getcontext and
71858         <sys/resource.h>.
71860         Move c-stack test into testsuite.
71861         * modules/c-stack-tests: New file.
71862         * lib/c-stack.c [DEBUG]: Move test program...
71863         * tests/test-c-stack.c: ...into this new file.  Skip rather than
71864         fail test if sigaltstack is lacking.
71865         * tests/test-c-stack.sh: New driver file.
71867 2008-06-16  Eric Blake  <ebb9@byu.net>
71869         Use raise module consistently.
71870         * modules/fatal-signal (Depends-on): Add raise.
71871         * modules/sigprocmask (Depends-on): Likewise.
71872         * lib/fatal-signal.c (fatal_signal_handler): Rely on raise.
71873         * lib/sigprocmask.c (sigprocmask): Likewise.
71874         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
71875         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Likewise.
71877         Fix compliance bug in sigpending.
71878         * lib/sigprocmask.c (sigpending): Return pending array via
71879         parameter, not return value.
71881 2008-06-14  Eric Blake  <ebb9@byu.net>
71883         Improve obstack-printf test code.
71884         * tests/test-obstack-printf.c (test_function): Fix comment, and
71885         simplify usage of obstack_* in macros.  Add a test for coverage.
71886         Reported by Bruno Haible.
71888 2008-06-14  Bruno Haible  <bruno@clisp.org>
71890         * lib/obstack_printf.c (obstack_vprintf): Define the stack-allocated
71891         array size as a constant, not as a const variable.
71892         * m4/obstack-printf.m4 (gl_FUNC_OBSTACK_PRINTF): Require
71893         AC_USE_SYSTEM_EXTENSIONS.
71894         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
71895         Test whether the obstack_printf function actually exists.
71896         * modules/obstack-printf (Depends-on): Add extensions.
71897         (Include): Remove obstack.h.
71898         * modules/obstack-printf-posix (Depends-on): Add extensions.
71899         (Include): Remove obstack.h.
71901 2008-06-13  Eric Blake  <ebb9@byu.net>
71903         Add obstack-printf and obstack-printf-posix modules.
71904         * modules/obstack-printf: New file.
71905         * modules/obstack-printf-posix: Likewise.
71906         * MODULES.html.sh (Misc): Mention them.
71907         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
71908         Likewise.
71909         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
71910         Likewise.
71911         * modules/stdio (Makefile.am): Accomodate new modules.
71912         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
71913         * lib/stdio.in.h (rpl_obstack_printf, rpl_obstack_vprintf):
71914         Declare.
71915         * lib/obstack_printf.c (obstack_printf, obstack_vprintf): New
71916         functions.
71917         * m4/obstack-printf.m4 (gl_OBSTACK_PRINTF)
71918         (gl_REPLACE_OBSTACK_PRINTF): New macros
71919         * m4/obstack-printf-posix.m4 (gl_OBSTACK_PRINTF_POSIX): Likewise.
71920         * tests/test-obstack-printf.c: New file.
71921         * modules/obstack-printf-tests: Likewise.
71922         * modules/obstack-printf-posix-tests: Likewise.
71924 2008-06-11  Bruno Haible  <bruno@clisp.org>
71926         * m4/open.m4 (gl_FUNC_OPEN): Add test against trailing slash bug.
71927         * lib/open.c: Include errno.h.
71928         (open): Fail when attempting to write to a file that has a trailing
71929         slash.
71930         * tests/test-open.c (main): Test against trailing slash bug.
71931         * doc/posix-functions/open.texi: Mention the trailing slash bug.
71933 2008-06-10  Bruno Haible  <bruno@clisp.org>
71935         * tests/test-vc-list-files-git.sh: Make double use of 'exit'. Needed
71936         for $? to work inside the trap command, with various /bin/sh-s.
71937         * tests/test-vc-list-files-cvs.sh: Likewise.
71939 2008-06-10  Bruno Haible  <bruno@clisp.org>
71941         * lib/acl-internal.h: Don't include gettext.h here.
71942         * lib/set-mode-acl.c: Include gettext.h here.
71943         * lib/copy-acl.c: Likewise.
71945 2008-06-10  Bruno Haible  <bruno@clisp.org>
71947         * lib/wait-process.h (wait_subprocess): Add termsigp argument.
71948         * lib/wait-process.c (wait_subprocess): Likewise.
71949         * lib/execute.h (execute): Add termsigp argument.
71950         * lib/execute.c (execute): Likewise.
71951         * lib/csharpcomp.c (compile_csharp_using_pnet,
71952         compile_csharp_using_mono, compile_csharp_using_sscli): Update.
71953         * lib/csharpexec.c (execute_csharp_using_pnet,
71954         execute_csharp_using_mono, execute_csharp_using_sscli): Update.
71955         * lib/javacomp.c (compile_using_envjavac, compile_using_gcj,
71956         compile_using_javac, compile_using_jikes, is_envjavac_gcj,
71957         is_envjavac_gcj43, is_gcj_present, is_gcj_43, is_javac_present,
71958         is_jikes_present): Update.
71959         * lib/javaexec.c (execute_java_class): Update.
71960         * lib/javaversion.c (execute_and_read_line): Update.
71961         * NEWS: Document the changes.
71962         Reported by Eric Blake.
71964 2008-06-10  Eric Blake  <ebb9@byu.net>
71966         Add missing include.
71967         * tests/test-strstr.c (includes): Add <signal.h>.
71968         * tests/test-strcasestr.c (includes): Likewise.
71969         * tests/test-memmem.c (includes): Likewise.
71971 2008-06-10  Bruno Haible  <bruno@clisp.org>
71973         * lib/wait-process.c (wait_subprocess): Add an assertion.
71975 2008-06-10  Bruno Haible  <bruno@clisp.org>
71977         * lib/wait-process.c (wait_subprocess): Try to fix waitid() based code.
71979 2008-06-10  Bruno Haible  <bruno@clisp.org>
71981         * tests/test-memmem.c (main): Reset SIGALRM to default handling before
71982         using alarm().
71983         * tests/test-strcasestr.c (main): Likewise.
71984         * tests/test-strstr.c (main): Likewise.
71986 2008-06-09  Bruno Haible  <bruno@clisp.org>
71988         Work around the Solaris 10 ACE ACLs ABI change.
71989         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): Don't
71990         declare if ACL_NO_TRIVIAL is present.
71991         (ACE_ACCESS_ALLOWED_ACE_TYPE, ACE_ACCESS_DENIED_ACE_TYPE,
71992         NEW_ACE_OWNER, NEW_ACE_GROUP, NEW_ACE_IDENTIFIER_GROUP, ACE_EVERYONE,
71993         NEW_ACE_READ_DATA, NEW_ACE_WRITE_DATA, NEW_ACE_EXECUTE): New macros.
71994         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): Don't
71995         define if ACL_NO_TRIVIAL is present.
71996         (acl_ace_nontrivial): Detect whether the old or new ABI is in use,
71997         and use the current ABI.
71998         (file_has_acl): Use same #if condition as elsewhere.
71999         * lib/set-mode-acl.c (qset_acl): Detect whether the old or new ABI is
72000         in use, and use the current ABI.
72001         * doc/acl-resources.txt: More doc about newer Solaris 10 versions.
72002         Reported by Jim Meyering.
72004 2008-06-09  Eric Blake  <ebb9@byu.net>
72006         Work around environments that (stupidly) ignore SIGALRM.
72007         * m4/strstr.m4 (gl_FUNC_STRSTR): Reset SIGALRM to default handling
72008         before using alarm().
72009         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
72010         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
72011         Reported by Ian Beckwith <ianb@erislabs.net>.
72013         Produce autobuild blurb earlier in log.
72014         * modules/autobuild (configure.ac-early): Move AB_INIT here.
72016 2008-06-09  Jim Meyering  <meyering@redhat.com>
72017         and Ondřej Vašík  <ovasik@redhat.com>
72019         utimens.c: correct kernel bug work-around
72020         Ondřej Vašík found that the invalid return value of 280 indicates
72021         failure, not success, and the kernel bug we're trying to work
72022         around affects not just the utimensat call, but also the fallback
72023         futimens call.
72024         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Simulate failure,
72025         not success.
72026         [HAVE_FUTIMENS]: Use the same work-around, here.
72028 2008-06-09  Jim Meyering  <meyering@redhat.com>
72030         add more guards around definition of ACE_-related code
72031         * lib/file-has-acl.c (acl_ace_nontrivial): Define only if
72032         ALLOW and ACE_OWNER are also defined.
72034 2008-06-08  Bruno Haible  <bruno@clisp.org>
72036         * lib/acl-internal.h: Add me as co-author.
72037         * lib/file-has-acl.c: Likewise.
72038         * lib/set-mode-acl.c: Likewise.
72039         * lib/copy-acl.c: Likewise.
72041 2008-06-08  Bruno Haible  <bruno@clisp.org>
72043         Add support for AIX ACLs.
72044         * lib/acl-internal.h (acl_nontrivial): New declaration.
72045         * lib/file-has-acl.c (acl_nontrivial): New function.
72046         (file_has_acl): Add implementation using AIX 4 ACL API.
72047         * lib/set-mode-acl.c (qset_acl): Likewise.
72048         * lib/copy-acl.c (qcopy_acl): Likewise.
72050 2008-06-08  Bruno Haible  <bruno@clisp.org>
72052         Add support for HP-UX ACLs.
72053         * lib/acl-internal.h (acl_nontrivial): New declaration.
72054         * lib/file-has-acl.c (acl_nontrivial): New function.
72055         (file_has_acl): Add implementation using HP-UX 11 ACL API.
72056         * lib/set-mode-acl.c (qset_acl): Likewise.
72057         * lib/copy-acl.c (qcopy_acl): Likewise.
72059 2008-06-08  Bruno Haible  <bruno@clisp.org>
72061         Add support for Cygwin ACLs.
72062         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro for Solaris-like API.
72063         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Don't optimize away
72064         the chmod_or_fchmod call.
72065         * lib/copy-acl.c (qcopy_acl) [!MODE_INSIDE_ACL]: Likewise.
72067 2008-06-08  Bruno Haible  <bruno@clisp.org>
72069         Fix bug with setuid modes in Solaris 10+ code.
72070         * lib/set-mode-acl.c (qset_acl): Call chmod_or_fchmod when acl_set
72071         succeeded, when the mode contains some special bits.
72073 2008-06-08  Bruno Haible  <bruno@clisp.org>
72075         Add support for Solaris 7..10 ACLs.
72076         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): New
72077         declarations.
72078         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): New
72079         functions.
72080         (file_has_acl): Add implementation using Solaris 7..10 ACL API.
72081         * lib/set-mode-acl.c (qset_acl): Likewise.
72082         * lib/copy-acl.c (qcopy_acl): Likewise.
72084 2008-06-08  Bruno Haible  <bruno@clisp.org>
72086         * lib/acl-internal.h (acl_extended_nontrivial) [MacOS X]: New
72087         declaration.
72088         * lib/file-has-acl.c (acl_extended_nontrivial) [MacOS X]: New function.
72089         (acl_access_nontrivial): Remove MacOS X case.
72090         (file_has_acl): Use acl_extended_nontrivial.
72091         * lib/copy-acl.c (qcopy_acl): Likewise.
72093 2008-06-08  Bruno Haible  <bruno@clisp.org>
72095         * lib/set-mode-acl.c (qset_acl): Trivial code simplifications.
72097 2008-06-08  Jim Meyering  <meyering@redhat.com>
72099         * modules/acl (Maintainer): Add Bruno Haible.
72101 2008-06-07  Bruno Haible  <bruno@clisp.org>
72103         Improve support for Tru64 ACLs.
72104         * lib/file-has-acl.c (file_has_acl): Don't test the ACL_TYPE_DEFAULT
72105         ACL on OSF/1.
72107 2008-06-07  Bruno Haible  <bruno@clisp.org>
72109         Add support for MacOS X ACLs.
72110         * lib/file-has-acl.c (file_has_acl): Use ACL_TYPE_EXTENDED instead of
72111         ACL_TYPE_ACCESS and ACL_TYPE_DEFAULT.
72112         * lib/set-mode-acl.c (qset_acl): Likewise.
72113         * lib/copy-acl.c (qcopy_acl): Likewise.
72115 2008-06-07  Bruno Haible  <bruno@clisp.org>
72117         Fix memory leak introduced on 2008-05-22.
72118         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Free ACLs after
72119         use.
72121 2008-06-07  Bruno Haible  <bruno@clisp.org>
72123         * lib/set-mode-acl.c (qset_acl): Use acl_init(), not acl_from_text(),
72124         to construct an empty ACL.
72126 2008-06-07  Bruno Haible  <bruno@clisp.org>
72128         * lib/set-mode-acl.c (chmod_or_fchmod): Document return value
72129         precisely.
72130         * lib/copy-acl.c (qcopy_acl): Trivial code simplifications.
72132 2008-06-07  Bruno Haible  <bruno@clisp.org>
72134         * lib/copy-acl.c (qcopy_acl): Make the #if branches independent.
72135         * lib/set-mode-acl.c (qset_acl): Choose better local variable names.
72137 2008-06-07  Bruno Haible  <bruno@clisp.org>
72139         * doc/posix-functions/_setjmp.texi: Explain the use of this function
72140         regardless of POSIX.
72141         * doc/posix-functions/_longjmp.texi: Likewise.
72142         * doc/posix-functions/setjmp.texi: Mention HP-UX as not counting as a
72143         SystemV platform in this case.
72145 2008-06-06  Eric Blake  <ebb9@byu.net>
72147         Document abort() bugs.
72148         * doc/posix-functions/abort.texi (abort): Mention anomalies.
72150         * doc/posix-functions/setjmp.texi (setjmp): Mingw has setjmp.
72151         * doc/posix-functions/sigsetjmp.texi (sigsetjmp): Cygwin has
72152         sigsetjmp.
72153         * doc/posix-functions/siglongjmp.texi (siglongjmp): Cygwin has
72154         siglongjmp, but only as a macro.
72155         * doc/posix-functions/_longjmp.texi (_longjmp): Mention that this
72156         is obsolete.
72157         * doc/posix-functions/_setjmp.texi (_setjmp): Likewise.
72159         Tweak documentation to cover cygwin argz bugs.
72160         * m4/argz.m4 (gl_FUNC_ARGZ): Mention date of last known cygwin
72161         argz bug fix; no code change needed since no cygwin releases
72162         occurred between the last fix and the bug being tested.
72163         * doc/glibc-functions/argz_add.texi (argz_add): Document the argz
72164         module and recently fixed cygwin bugs.
72165         * doc/glibc-functions/argz_add_sep.texi (argz_add_sep): Likewise.
72166         * doc/glibc-functions/argz_append.texi (argz_append): Likewise.
72167         * doc/glibc-functions/argz_count.texi (argz_count): Likewise.
72168         * doc/glibc-functions/argz_create.texi (argz_create): Likewise.
72169         * doc/glibc-functions/argz_create_sep.texi (argz_create_sep):
72170         Likewise.
72171         * doc/glibc-functions/argz_delete.texi (argz_delete): Likewise.
72172         * doc/glibc-functions/argz_extract.texi (argz_extract): Likewise.
72173         * doc/glibc-functions/argz_insert.texi (argz_insert): Likewise.
72174         * doc/glibc-functions/argz_next.texi (argz_next): Likewise.
72175         * doc/glibc-functions/argz_replace.texi (argz_replace): Likewise.
72176         * doc/glibc-functions/argz_stringify.texi (argz_stringify):
72177         Likewise.
72179         Avoid gcc warning on cygwin.
72180         * lib/copy-acl.c (qcopy_acl) [!HAVE_ACL_GET_FILE &&
72181         !ACL_NO_TRIVIAL]: Avoid unused variable.
72183 2008-06-05  Eric Blake  <ebb9@byu.net>
72185         Be tolerant of UNKNOWN version in gnulib-tool test dir.
72186         * top/GNUmakefile (_dummy): Warn rather than reconfigure if
72187         git-version-gen fails to come up with a version.
72188         Reported by Simon Josefsson.
72190 2008-06-05  Jim Meyering  <meyering@redhat.com>
72191             Paul Eggert  <eggert@cs.ucla.edu>
72193         utimens.c: work around a probable Linux kernel bug
72194         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Work around what
72195         appears to be a kernel bug that causes utimensat to return 280
72196         instead of 0, indicating success.
72198 2008-06-04  Bruno Haible  <bruno@clisp.org>
72200         * lib/copy-acl.c (qcopy_acl): Call qset_acl, not set_acl. Fixes
72201         2008-06-01 commit.
72203 2008-06-04  Bruno Haible  <bruno@clisp.org>
72205         * lib/acl-internal.h (acl_access_nontrivial): New declaration.
72206         * lib/file-has-acl.c (acl_access_nontrivial): New function.
72207         (file_has_acl): Use it. Save errno afterwards.
72208         * lib/copy-acl.c (qcopy_acl): Use acl_access_nontrivial.
72210 2008-06-03  Bruno Haible  <bruno@clisp.org>
72212         * lib/file-has-acl.c (file_has_acl): Put Solaris 10 code after POSIX-
72213         draft code. Simplify #ifs.
72214         * lib/set-mode-acl.c (qset_acl): Don't test for symlink if !USE_ACL.
72215         Put Solaris code after POSIX-draft code. Fix comments regarding
72216         Solaris 10, HP-UX. Mention Cygwin.
72217         * lib/copy-acl.c (qcopy_acl): Simplify #ifs.
72219 2008-06-03  Eric Blake  <ebb9@byu.net>
72221         Provide fallback for older kernels.
72222         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT, HAVE_FUTIMENS]:
72223         Provide runtime fallback if kernel lacks support.
72224         Reported by Mike Frysinger.
72226 2008-06-02  Bruno Haible  <bruno@clisp.org>
72228         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Include EOPNOTSUPP if
72229         it exists.
72231 2008-06-02  Bruno Haible  <bruno@clisp.org>
72233         * lib/acl_entries.c (acl_entries): Rewrite to use acl_get_entry.
72234         * lib/copy-acl.c (qcopy_acl): Update comment.
72236 2008-06-02  Bruno Haible  <bruno@clisp.org>
72238         * lib/acl-entries.h: Enclose most definitions in #ifs for POSIX-draft
72239         like ACL APIs.
72241 2008-06-02  Bruno Haible  <bruno@clisp.org>
72243         * tests/test-file-has-acl.sh: Use different code for Cygwin.
72244         * tests/test-set-mode-acl.sh: Likewise.
72245         * tests/test-copy-acl.sh: Likewise.
72246         * tests/test-copy-file.sh: Likewise.
72248 2008-06-02  Bruno Haible  <bruno@clisp.org>
72250         * tests/test-file-has-acl.sh: Remove unused code.
72252 2008-06-01  Bruno Haible  <bruno@clisp.org>
72254         * lib/copy-acl.c (qcopy_acl): New function, extracted from copy_acl.
72255         (copy_acl): Just a wrapper around qcopy_acl that emits the error
72256         messages.
72257         * lib/set-mode-acl.c (qset_acl): Document return value precisely.
72259 2008-06-01  Bruno Haible  <bruno@clisp.org>
72261         * m4/acl.m4 (gl_FUNC_ACL): Separate the POSIX-like and the Solaris
72262         tests. Test for libpacl, needed for OSF/1. Test for extended ACLs,
72263         needed for MacOS X. Test for HP-UX API. Test for newer and older AIX
72264         APIs.
72265         * modules/acl-tests (configure.ac): Remove tests now contained in
72266         m4/acl.m4.
72268 2008-06-02  Jim Meyering  <meyering@redhat.com>
72270         announce-gen: use a better key-server host name
72271         * build-aux/announce-gen (main): Recommend keys.gnupg.net, since
72272         it may be more consistently reliable.  Suggested by Werner Koch
72273         in <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/13717>.
72275 2008-06-01  Bruno Haible  <bruno@clisp.org>
72277         * lib/stdio-impl.h (fp_ub): Use fp_. Needed for DragonFly BSD.
72278         Reported by Voroskoi Andras <voroskoi@gmail.com>.
72280 2008-06-01  Voroskoi Andras  <voroskoi@gmail.com>  (tiny change)
72282         * lib/stdio-impl.h [__DragonFly__]: Fix typo.
72284 2008-06-01  Bruno Haible  <bruno@clisp.org>
72286         New ACL tests.
72287         * tests/test-file-has-acl.sh: New file.
72288         * tests/test-file-has-acl.c: New file.
72289         * tests/test-set-mode-acl.sh: New file.
72290         * tests/test-set-mode-acl.c: New file.
72291         * tests/test-copy-acl.sh: New file, based on tests/test-copy-file.sh.
72292         * tests/test-copy-acl.c: New file.
72293         * modules/acl-tests: New file, based on modules/copy-file-tests.
72294         * modules/copy-file-tests (Files): Remove tests/test-sameacls.c.
72295         (Depends-on): Add acl-tests.
72296         (configure.ac): Remove checks.
72297         (Makefile.am): Don't create test-sameacls program here any more.
72299 2008-06-01  Bruno Haible  <bruno@clisp.org>
72301         * tests/test-copy-file.sh: Portability fixes for Solaris, HP-UX, IRIX.
72302         * tests/test-sameacls.c: Include progname.h.
72303         (main): Invoke set_program_name. Portability fixes for MacOS X,
72304         Solaris, HP-UX.
72306 2008-06-01  Bruno Haible  <bruno@clisp.org>
72308         * lib/freadahead.c (freadahead) [__DragonFly__]: Use the __sreadahead
72309         function.
72310         Reported by VOROSKOI Andras <voroskoi@gmail.com>.
72312 2008-06-01  Bruno Haible  <bruno@clisp.org>
72314         * modules/rpmatch (Depends-on): Add strdup.
72316 2008-06-01  Bruno Haible  <bruno@clisp.org>
72318         * lib/pipe.c: Include unistd-safer.h.
72319         (create_pipe): Ensure the returned file descriptors are not in {0,1,2}.
72320         * modules/pipe (Depends-on): Add unistd-safer.
72322 2008-05-30  Simon Josefsson  <simon@josefsson.org>
72324         * modules/autobuild (configure.ac): Call AB_INIT.
72326 2008-05-30  Simon Josefsson  <simon@josefsson.org>
72328         * tests/test-getaddrinfo.c: Don't print debug messages by default.
72329         Suggested by Bruno Haible <bruno@clisp.org>.
72331 2008-05-30  Simon Josefsson  <simon@josefsson.org>
72333         * tests/test-base64.c: Cast size_t to unsigned long when invoking
72334         printf.  Use %lu instead of %d.  Reported by Bruno Haible
72335         <bruno@clisp.org>.
72337 2008-05-29  Eric Blake  <ebb9@byu.net>
72339         Prefer new POSIX 200x interfaces over futimesat.
72340         * m4/utimens.m4 (gl_UTIMENS): Check for futimens, utimensat.
72341         * lib/utimens.c (gl_futimens): Use them for nanosecond resolution
72342         when available.
72343         [HAVE_BUGGY_NFS_TIME_STAMPS]: Allow C89 compilation.
72345 2008-05-28  Bruno Haible  <bruno@clisp.org>
72347         * modules/stpcpy (License): Change to LGPLv2+.
72348         Requested by David Lutterkort <dlutter@redhat.com>.
72350 2008-05-27  Bruno Haible  <bruno@clisp.org>
72352         * lib/localename.c (SUBLANG_TIBETAN_BHUTAN): Force value 2. Needed for
72353         current mingw.
72354         Reported by Jose E. Marchesi <jemarch@gnu.org>.
72356 2008-05-27  Bruno Haible  <bruno@clisp.org>
72358         * modules/iconv_open (Link): New section, from module 'iconv'.
72359         * modules/striconv (Link): Likewise.
72360         * modules/striconveh (Link): Likewise.
72361         * modules/xstriconv (Link): Likewise.
72362         * modules/unicodeio (Link): Likewise.
72363         * modules/propername (Link): Likewise.
72364         Reported by Jim Meyering.
72366 2008-05-26  Jim Meyering  <meyering@redhat.com>
72368         sha256: do not artificially restrict buffer length to be < 2^32
72369         * lib/sha256.h (struct sha256_ctx) [buflen]: Change type from
72370         uint32_t to size_t.
72371         * lib/sha256.c (sha256_conclude_ctx): Change type of a local
72372         to match.
72374         avoid unaligned access errors, e.g., on sparc
72375         * lib/sha512.c (sha512_conclude_ctx): Use set_uint64 rather than
72376         direct access through a possibly-unaligned uint64* pointer.
72377         * lib/sha256.c (sha256_conclude_ctx): Use set_uint32 rather than
72378         direct access through a possibly-unaligned uint32* pointer.
72379         Prompted by this patch from Tom "spot" Callaway:
72380         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/13638
72382         sha512.c: fix typo in comment
72383         * lib/sha512.c (sha512_conclude_ctx): Length is 128-bit, not 64-bit.
72385 2008-05-25  Bruno Haible  <bruno@clisp.org>
72387         * lib/set-mode-acl.c: Renamed from lib/acl.c.
72388         * modules/acl (Files): Add lib/set-mode-acl.c, remove lib/acl.c.
72389         (Makefile.am): Update lib_SOURCES.
72391 2008-05-25  Bruno Haible  <bruno@clisp.org>
72393         * m4/acl.m4 (gl_FUNC_ACL): Don't set LIB_ACL_TRIVIAL.
72395 2008-05-25  Jim Meyering  <meyering@redhat.com>
72397         useless-if-before-free: freed expr may have white-space differences
72398         * build-aux/useless-if-before-free: Recognize cases in which the
72399         freed expression differs from the tested one in embedded white
72400         space, e.g., if (p[i + 1]) free(p[i+1]).  Correct thinko in prev:
72401         $1 was used, so we can't make any regexp shy.  Improved tests now
72402         detect this.
72404         useless-if-before-free: accept white space in the expression.
72405         * build-aux/useless-if-before-free: For now, any white space
72406         in the expression must be identical in the free argument.
72408         useless-if-before-free: efficiency tweak
72409         * build-aux/useless-if-before-free: Make the expression-matching
72410         regexp "shy".
72411         Make the *outer* regexp shy, not the expr-matching one.
72413         update code-in-comment to accept cast of free arg
72414         * build-aux/useless-if-before-free: Update regexp.
72416 2008-05-25  Bruno Haible  <bruno@clisp.org>
72418         * tests/test-sameacls.c: Renamed from tests/test-copy-file-sameacls.c.
72419         * modules/copy-file-tests (Files, Makefile.am): Update.
72420         * tests/test-copy-file.c (func_test_copy): Update.
72422 2008-05-24  Andreas Färber  <andreas.faerber@web.de>  (tiny change)
72424         * lib/stdbool.in.h [__HAIKU__]: Disable __BEOS__ workarounds.
72426 2008-05-23  Bruno Haible  <bruno@clisp.org>
72428         Improve support for ACLs on OSF/1.
72429         * lib/acl.c (qset_acl): For OSF/1, use a string that ends in a comma.
72430         Remove fallback for unknown flavors of ACLs.
72432 2008-05-22  Bruno Haible  <bruno@clisp.org>
72434         Add support for ACLs on OSF/1.
72435         * lib/acl-internal.h (acl_get_fd, acl_set_fd): New inline function
72436         replacements.
72437         (acl_free_text): New macro fallback.
72438         * lib/acl_entries.c (acl_entries): Use acl_free_text instead of
72439         acl_free.
72440         * m4/acl.m4 (gl_FUNC_ACL): Look also in libpacl library. Test for
72441         acl_free_text function. Require AC_C_INLINE.
72443 2008-05-22  Bruno Haible  <bruno@clisp.org>
72445         Make copy_acl work on MacOS X 10.5.
72446         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro.
72447         (ACL_NOT_WELL_SUPPORTED): On MacOS X, also handle ENOENT.
72448         * lib/acl.c (qset_acl): Add different code branch for !MODE_INSIDE_ACL.
72449         If MODE_INSIDE_ACL, don't assume that every system has the same text
72450         representation for ACLs as FreeBSD.
72451         * lib/copy-acl.c (copy_acl): Add support for platforms with
72452         !MODE_INSIDE_ACL.
72453         * lib/file-has-acl.c (file_has_acl): Likewise.
72454         * m4/acl.m4 (gl_FUNC_ACL): Test for some functions that are witness of
72455         FreeBSD, MacOS X, or IRIX, respectively.
72457 2008-05-22  Bruno Haible  <bruno@clisp.org>
72459         * lib/acl.h: Don't include <sys/acl.h>.
72460         (GETACLCNT): Move fallback to lib/acl-internal.h.
72461         * lib/acl-internal.h: Include <sys/acl.h> here.
72462         (GETACLCNT): New macro fallback, moved here from lib/acl.h.
72464 2008-05-22  Bruno Haible  <bruno@clisp.org>
72466         Split off copy_acl function to separate file.
72467         * lib/copy-acl.c: New file, extracted from lib/acl.c.
72468         * lib/acl.c (copy_acl): Moved function to separate file.
72469         * m4/acl.m4 (gl_FUNC_ACL): Remove unconditional AC_LIBOBJs.
72470         * modules/acl (Files): Add lib/copy-acl.c.
72471         (Makefiles.am): Augment lib_SOURCES.
72473 2008-05-22  Bruno Haible  <bruno@clisp.org>
72475         * modules/copy-file-tests: New file.
72476         * tests/test-copy-file.sh: New file.
72477         * tests/test-copy-file.c: New file.
72478         * tests/test-copy-file-sameacls.c: New file.
72480 2008-05-22  Eric Blake  <ebb9@byu.net>
72482         Avoid gcc warning.
72483         * tests/test-memcmp.c (main): Pass NULL indirectly.
72485 2008-05-21  Bruno Haible  <bruno@clisp.org>
72487         Add reference doc about ACLs.
72488         * doc/acl-resources.txt: New file.
72489         * doc/acl-cygwin.txt: New file.
72491 2008-05-21  Bruno Haible  <bruno@clisp.org>
72493         Avoid one more warning from gcc.
72494         * lib/vasnprintf.c (IF_LINT): Update comments.
72495         (VASNPRINTF): Use it also for the 'prefix' array initializer.
72497 2008-05-21  Jim Meyering  <meyering@redhat.com>
72499         avoid a warning from gcc
72500         * lib/vasnprintf.c (IF_LINT): Define.
72501         (scale10_round_decimal_long_double):
72502         Use it to avoid a "may be used uninitialized" warning.
72503         (scale10_round_decimal_double): Likewise.
72505 2008-05-21  Simon Josefsson  <simon@josefsson.org>
72507         * m4/memcmp.m4: When cross-compiling, assume memcmp works if it is
72508         declared.
72510 2008-05-20  Bruno Haible  <bruno@clisp.org>
72512         * tests/test-memcmp.c (main): Test also the sign of the result. Test
72513         against two known bugs; code taken from autoconf's AC_FUNC_MEMCMP.
72515 2008-05-20  Simon Josefsson  <simon@josefsson.org>
72517         * modules/memcmp-tests: New file.
72518         * tests/test-memcmp.c: New file.
72520 2008-05-19  Bruno Haible  <bruno@clisp.org>
72522         * modules/propername (Notice, configure.ac): Put quoted "..." into
72523         --keyword option.
72524         * lib/propername.h: Update comments accordingly.
72525         Reported by Eric Blake.
72527 2008-05-19  Martin Lambers  <marlam@marlam.de>  (tiny change)
72529         * modules/getpass-gnu (Depends-on): Add fseeko.
72531 2008-05-19  Simon Josefsson  <simon@josefsson.org>
72533         * modules/base64-tests: New file.
72535 2008-05-19  Bo Borgerson  <gigabo@gmail.com>
72537         * lib/base64.c (base64_decode_ctx): If a decode context structure
72538         was passed in use it to ignore newlines.  If a context structure
72539         was _not_ passed in, continue to treat newlines as garbage (this
72540         is the historical behavior).  Formerly base64_decode.
72541         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
72542         takes a decode context structure.
72543         * lib/base64.h (base64_decode): Macro for four-argument calls.
72544         (base64_decode_alloc): Likewise.
72545         * lib/base64.c (base64_decode_ctx): If a decode context structure
72546         was passed in use it to ignore newlines.  If a context structure
72547         was _not_ passed in, continue to treat newlines as garbage (this
72548         is the historical behavior).  Formerly base64_decode.
72549         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
72550         takes a decode context structure.
72551         * lib/base64.h (base64_decode): Macro for four-argument calls.
72552         (base64_decode_alloc): Likewise.
72554 2008-05-19  Jim Meyering  <meyering@redhat.com>
72556         avoid a warning from gcc
72557         * lib/trim.c (IF_LINT): Define.
72558         (trim2): Use it to avoid a "may be used uninitialized" warning.
72560         Fix doc typo.
72561         * doc/glibc-functions/getpass.texi (getpass): s/PATH_MAX/PASS_MAX/.
72563 2008-05-19  Bruno Haible  <bruno@clisp.org>
72565         * doc/glibc-functions/getpass.texi: Document limits of other
72566         implementations.
72568 2008-05-19  Simon Josefsson  <simon@josefsson.org>
72569             Bruno Haible <bruno@clisp.org>
72571         * doc/glibc-functions/getpass.texi: Document gnulib implementation.
72573 2008-05-18  Bruno Haible  <bruno@clisp.org>
72575         * modules/propername: New file, from GNU gettext.
72576         * lib/propername.h: New file, from GNU gettext.
72577         * lib/propername.c: New file, from GNU gettext.
72578         * MODULES.html.sh (Internationalization functions): Add propername.
72580 2008-05-16  Jim Meyering  <meyering@redhat.com>
72581             Bruno Haible  <bruno@clisp.org>
72583         Avoid some warnings from "gcc -Wshadow".
72584         * lib/vasnprintf.c (exp, remainder): Define to different identifiers.
72586 2008-05-15  Eric Blake  <ebb9@byu.net>
72588         Extend previous patch to cygwin 1.7.0.
72589         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a
72590         fast implementation in cygwin >= 1.7.0.
72591         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
72592         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
72594 2008-05-15  Bruno Haible  <bruno@clisp.org>
72596         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a fast
72597         implementation in glibc >= 2.9.
72598         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
72599         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
72601 2008-05-15  Bruno Haible  <bruno@clisp.org>
72603         * MODULES.html.sh (Internationalization functions): Remove linebreak.
72604         (Unicode string functions): Add unilbrk/*.
72605         Reported by Karl Berry.
72607 2008-05-15  Eric Blake  <ebb9@byu.net>
72609         Fix violation of <stdbool.h> replacement in regex.
72610         * lib/regcomp.c (re_compile_internal): Avoid implicit cast to bool.
72611         * lib/regexec.c (re_search_internal): Likewise.
72612         Reported by Heinrich Mislik <Heinrich.Mislik@univie.ac.at>.
72614 2008-05-15  Jim Meyering  <meyering@redhat.com>
72616         avoid distracting test output when git or cvs is not found
72617         * tests/test-vc-list-files-cvs.sh: Suppress 'init' error output.
72618         * tests/test-vc-list-files-git.sh: Likewise.
72620 2008-05-15  Eric Blake  <ebb9@byu.net>
72622         Glibc finally accepted the memmem speedup code, bugzilla #5514.
72623         * doc/glibc-functions/memmem.texi (memmem): Mention last broken
72624         glibc version.
72625         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
72626         * doc/posix-functions/strstr.texi (strstr): Likewise.
72627         * lib/str-two-way.h (MAX): Sychronize with glibc.
72629 2008-05-15  Paolo Bonzini  <bonzini@gnu.org>
72631         * lib/regcomp.c (optimize_utf8): Add a note on why we test
72632         opr.ctx_type.
72633         (calc_first): Initialize constraint field.
72634         (duplicate_node_closure): Use it instead of special casing ANCHORS.
72635         Fix grammar.
72636         (duplicate_node): Merge constraint field for all node types.
72637         (calc_eclosure_iter): Look at constraint field for all node types.
72638         * lib/regex_internal.c (create_cd_newstate): Don't look at
72639         opr.ctx_type.
72641 2008-05-14  Bruno Haible  <bruno@clisp.org>
72643         Help GCC to do better code generation.
72644         * lib/eealloc.h (eemalloc) [GCC >= 3]: Declare with attribute 'malloc'.
72645         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
72646         * lib/xalloc.h (ATTRIBUTE_MALLOC): New macro.
72647         (xmalloc, xzalloc, xcalloc, xmemdup, xstrdup, xnmalloc, xcharalloc):
72648         Declare with attribute 'malloc' if supported.
72650 2008-05-14  Lasse Collin  <lasse.collin@tukaani.org>
72652         use "echo STR|wc -c" rather than unportable "expr length STR"
72653         * build-aux/mktempd (mktempd): Vendor-supplied expr from at least
72654         OpenBSD 4.3 and Solaris 10 do not honor expr's "length" function.
72656 2008-05-14  Jim Meyering  <meyering@redhat.com>
72658         use dd ibs=$n count=1 ... rather than less-portable head -c$n
72659         * build-aux/mktempd (rand_bytes): head's -cN option is not accepted
72660         by Solaris 10's /bin/head or by the one from HP-UX 11.x.
72661         Reported in http://sourceforge.net/forum/message.php?msg_id=4960334
72662         via Collin Lasse.
72664 2008-05-14  Eric Blake  <ebb9@byu.net>
72666         Avoid quadratic growth in gl_LIBSOURCES.
72667         * gnulib-tool (func_emit_initmacro_done): s/\(m4_append\)_uniq/\1/.
72668         Suggested by Bruno Haible.
72670         Test xmemdup0.
72671         * modules/xmemdup0-tests: New file.
72672         * tests/test-xmemdup0.c: Likewise.
72674 2008-05-13  Eric Blake  <ebb9@byu.net>
72676         Split xmemdup0 into its own module.
72677         * modules/xmemdup0: New file.
72678         * lib/xmemdup0.h: Likewise.
72679         * lib/xmemdup0.c: Likewise.
72680         * MODULES.html.sh (Memory management functions): Add xmemdup0.
72681         * lib/xalloc.h (xmemdup0): Remove.
72682         * lib/xmalloc.c (xmemdup0): Likewise.
72684 2008-05-13  Eric Blake  <ebb9@byu.net>
72685             Bruno Haible  <bruno@clisp.org>
72687         Reduce number of forks required during autoconf.
72688         * gnulib-tool (func_emit_initmacro_start): Prepare gl_LIBSOURCES_LIST
72689         and gl_LIBSOURCES_DIR.
72690         (func_emit_initmacro_end): Use them here in a single m4_syscmd...
72691         (func_emit_initmacro_done) <gl_LIBSOURCES>: ...rather than in one
72692         m4_syscmd per file.
72693         <m4_foreach_w>: Move...
72694         * m4/gnulib-common.m4 (m4_foreach_w): ...here.
72696 2008-05-13  Eric Blake  <ebb9@byu.net>
72698         * gnulib-tool: Fix various comment typos.
72700 2008-05-12  Bruno Haible  <bruno@clisp.org>
72702         Tailor the linebreaking algorithm.
72703         * lib/unilbrk/tables.c (unilbrk_table): Change (IS,AL) entry.
72705 2008-05-12  Bruno Haible  <bruno@clisp.org>
72707         Update to Unicode 5.0.0.
72708         * lib/unilbrk/tables.h (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
72709         LBP_JV, LBP_JT. Redistribute values.
72710         (unilbrk_table): Change size.
72711         * lib/unilbrk/tables.c (unilbrk_table): Change size. Update to match
72712         Unicode TR#14 rev. 22.
72713         * lib/unilbrk/gen-lbrk.c (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
72714         LBP_JV, LBP_JT. Redistribute values.
72715         (get_lbp): Update to match Unicode TR#14 rev. 21/22 and Unicode 5.0.0.
72716         (debug_output_lbp, fill_org_lbp, debug_output_org_lbp, output_lbp):
72717         Update.
72718         * lib/unilbrk/lbrkprop1.h: Regenerated.
72719         * lib/unilbrk/lbrkprop2.h: Regenerated.
72720         * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks):
72721         Change handling of LBP_CM after LBP_ZW. Update for new value of LBP_BK.
72722         * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
72723         Likewise.
72724         * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
72725         Likewise.
72726         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update expected
72727         result.
72728         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
72729         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
72730         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
72731         * tests/unilbrk/test-u8-width-linebreaks.c (main): Likewise.
72732         * tests/unilbrk/test-u16-width-linebreaks.c (main): Likewise.
72733         * tests/unilbrk/test-u32-width-linebreaks.c (main): Likewise.
72735 2008-05-11  Bruno Haible  <bruno@clisp.org>
72737         * lib/unilbrk/gen-lbrk.c (output_lbp): Fix whitespace.
72739 2008-05-11  Bruno Haible  <bruno@clisp.org>
72741         * lib/unilbrk/gen-lbrk.c: New file, from GNU gettext (gen-lbrkprop.c).
72742         * modules/unilbrk/gen-lbrk: New file.
72744 2008-05-11  Bruno Haible  <bruno@clisp.org>
72746         * m4/sha256.m4 (gl_SHA256): Require AC_C_INLINE.
72747         * m4/sha512.m4 (gl_SHA512): Likewise.
72749 2008-05-11  Jim Meyering  <meyering@redhat.com>
72751         New modules: crypto/sha256, crypto/sha512 (from coreutils)
72752         * modules/crypto/sha256: New file.
72753         * modules/crypto/sha512: Likewise.
72754         * lib/sha256.c: Likewise.
72755         * lib/sha256.h: Likewise.
72756         * lib/sha512.c: Likewise.
72757         * lib/sha512.h: Likewise.
72758         * lib/u64.h: Likewise.
72759         * m4/sha256.m4: Likewise.
72760         * m4/sha512.m4: Likewise.
72761         * MODULES.html.sh (Cryptographic computations (low-level)): List them.
72763 2008-05-10  Bruno Haible  <bruno@clisp.org>
72765         * MODULES.html.sh (Environment variables <stdlib.h>): Add unsetenv.
72766         (Input/Output <stdio.h>): Add xprintf.
72767         (Signal handling <signal.h>): Add strsignal.
72768         (Cryptographic computations (high-level)): Add crypto/gc-camellia.
72769         (Core language properties): Add func.
72770         (Mathematics <math.h>): Add ceil, floor, frexp-nolibm.
72771         (Support for systems lacking POSIX:2001): Add environ, EOVERFLOW,
72772         strings.
72773         (Enhancements for POSIX:2001 functions): Add iconv_open-utf.
72774         (Input/output): New section.
72775         (File system functions): Add openat-die, stat-macros.
72776         (Networking functions): Add sockets.
72777         (Unicode string functions): Add unictype/*.
72778         (Support for building libraries and executables): Add gperf.
72779         (Support for building documentation): Add agpl-3.0.
72780         (Misc): Add nocrash.
72782 2008-05-10  Bruno Haible  <bruno@clisp.org>
72784         * modules/unictype/gen-ctype: New file.
72786 2008-05-10  Jim Meyering  <meyering@redhat.com>
72788         Make chdir-safer.c more efficient on a system with no symlinks.
72789         * lib/chdir-safer.c (chdir_no_follow): Skip lstat and fstat calls
72790         also if ELOOP is zero.  Suggested by Bruno Haible.
72792         Make chdir-safer.c slightly safer.
72793         * lib/chdir-safer.c (chdir_no_follow): Test HAVE_WORKING_O_NOFOLLOW,
72794         not O_NOFOLLOW, in case the latter is nonzero and open ignores it.
72796         Avoid compile failure on systems without ELOOP (like mingw).
72797         * lib/chdir-safer.c (ELOOP): Define if not already defined.
72798         Reported by Bruno Haible.
72800 2008-05-10  Bruno Haible  <bruno@clisp.org>
72802         * lib/unilbrk/ulc-common.c: Include c-strcaseeq.h instead of streq.h.
72803         (is_utf8_encoding): Use a case-insensitive comparison.
72804         * modules/unilbrk/ulc-common (Depends-on): Add c-strcaseeq. Remove
72805         streq.
72807 2008-05-10  Bruno Haible  <bruno@clisp.org>
72809         * lib/unilbrk/ulc-common.c: Don't include <stdlib.h>.
72810         (iconv_string_length, iconv_string_keeping_offsets): Remove functions.
72811         * lib/unilbrk/ulc-common.h (iconv_string_length,
72812         iconv_string_keeping_offsets): Remove declarations.
72813         * lib/unilbrk/ulc-possible-linebreaks.c: Include <string.h>, uniconv.h.
72814         Don't include <iconv.h>, streq.h, xsize.h.
72815         (ulc_possible_linebreaks): Use u8_conv_from_encoding for doing the
72816         conversion.
72817         * lib/unilbrk/ulc-width-linebreaks.c: Include uniconv.h. Don't include
72818         <iconv.h>, streq.h, xsize.h.
72819         (ulc_width_linebreaks): Use u8_conv_from_encoding for doing the
72820         conversion.
72821         * modules/unilbrk/ulc-common (Depends-on): Remove iconv.
72822         * modules/unilbrk/ulc-possible-linebreaks (Depends-on): Add
72823         uniconv/u8-conv-from-enc. Remove iconv_open, streq, xsize.
72824         * modules/unilbrk/ulc-width-linebreaks (Depends-on): Likewise.
72826 2008-05-10  Bruno Haible  <bruno@clisp.org>
72828         * modules/unilbrk/ulc-width-linebreaks-tests: New file.
72829         * tests/unilbrk/test-ulc-width-linebreaks.c: New file.
72831         * modules/unilbrk/u32-width-linebreaks-tests: New file.
72832         * tests/unilbrk/test-u32-width-linebreaks.c: New file.
72834         * modules/unilbrk/u16-width-linebreaks-tests: New file.
72835         * tests/unilbrk/test-u16-width-linebreaks.c: New file.
72837         * modules/unilbrk/u8-width-linebreaks-tests: New file.
72838         * tests/unilbrk/test-u8-width-linebreaks.c: New file.
72840         * modules/unilbrk/ulc-possible-linebreaks-tests: New file.
72841         * tests/unilbrk/test-ulc-possible-linebreaks.c: New file.
72843         * modules/unilbrk/u32-possible-linebreaks-tests: New file.
72844         * tests/unilbrk/test-u32-possible-linebreaks.c: New file.
72846         * modules/unilbrk/u16-possible-linebreaks-tests: New file.
72847         * tests/unilbrk/test-u16-possible-linebreaks.c: New file.
72849         * modules/unilbrk/u8-possible-linebreaks-tests: New file.
72850         * tests/unilbrk/test-u8-possible-linebreaks.c: New file.
72852 2008-05-10  Bruno Haible  <bruno@clisp.org>
72854         Split up 'linebreak' module.
72855         * lib/unilbrk.h: New file, based on lib/linebreak.h.
72856         * lib/unilbrk/lbrkprop1.h: New file, extracted from lib/lbrkprop.h.
72857         * lib/unilbrk/lbrkprop2.h: New file, renamed from lib/lbrkprop.h with
72858         modifications.
72859         * lib/unilbrk/tables.h: New file, extracted from lib/linebreak.c.
72860         * lib/unilbrk/tables.c: New file, extracted from lib/linebreak.c.
72861         * lib/unilbrk/u8-possible-linebreaks.c: New file, extracted from
72862         lib/linebreak.c.
72863         * lib/unilbrk/u16-possible-linebreaks.c: New file, extracted from
72864         lib/linebreak.c.
72865         * lib/unilbrk/u32-possible-linebreaks.c: New file, extracted from
72866         lib/linebreak.c.
72867         * lib/unilbrk/ulc-common.h: New file, extracted from lib/linebreak.c.
72868         * lib/unilbrk/ulc-common.c: New file, extracted from lib/linebreak.c.
72869         * lib/unilbrk/ulc-possible-linebreaks.c: New file, extracted from
72870         lib/linebreak.c.
72871         * lib/unilbrk/u8-width-linebreaks.c: New file, extracted from
72872         lib/linebreak.c.
72873         * lib/unilbrk/u16-width-linebreaks.c: New file, extracted from
72874         lib/linebreak.c.
72875         * lib/unilbrk/u32-width-linebreaks.c: New file, extracted from
72876         lib/linebreak.c.
72877         * lib/unilbrk/ulc-width-linebreaks.c: New file, extracted from
72878         lib/linebreak.c.
72879         * modules/unilbrk/base: New file.
72880         * modules/unilbrk/tables: New file.
72881         * modules/unilbrk/u8-possible-linebreaks: New file.
72882         * modules/unilbrk/u16-possible-linebreaks: New file.
72883         * modules/unilbrk/u32-possible-linebreaks: New file.
72884         * modules/unilbrk/ulc-common: New file.
72885         * modules/unilbrk/ulc-possible-linebreaks: New file.
72886         * modules/unilbrk/u8-width-linebreaks: New file.
72887         * modules/unilbrk/u16-width-linebreaks: New file.
72888         * modules/unilbrk/u32-width-linebreaks: New file.
72889         * modules/unilbrk/ulc-width-linebreaks: New file.
72890         * lib/linebreak.h: Remove file.
72891         * lib/linebreak.c: Remove file.
72892         * m4/linebreak.m4: Remove file.
72893         * modules/linebreak: Remove file.
72894         * NEWS: Mention the changes.
72896 2008-05-09  Eric Blake  <ebb9@byu.net>
72898         Add xmemdup0.
72899         * lib/xalloc.h (xmemdup0): New prototype and C++ typesafe
72900         implementation.
72901         * lib/xmalloc.c (xmemdup0): New C implementation.
72903 2008-05-08  Bruno Haible  <bruno@clisp.org>
72905         * m4/wctype.m4 (gl_WCTYPE_H): Correct indentation.
72907 2008-05-07  Eric Blake  <ebb9@byu.net>
72909         Support cross-compilation of <wctype.h>.
72910         * m4/wctype.m4 (gl_WCTYPE_H): Fix improper nesting in
72911         AC_CACHE_CHECK.
72913 2008-05-06  Soren Hansen  <soren@ubuntu.com>  (tiny change)
72915         * build-aux/vc-list-files: Add support for bzr.
72917 2008-05-03  Jim Meyering  <meyering@redhat.com>
72919         avoid failed assertion with tight malloc
72920         * tests/test-getndelim2.c: Correct an off-by-one assertion.
72922 2008-05-03  Simon Josefsson  <simon@josefsson.org>
72924         * m4/inet_pton.m4: Set HAVE_DECL_INET_PTON to 0 when declarations
72925         are needed from arpa/inet.h.
72926         * m4/inet_ntop.m4: Likewise, for HAVE_DECL_INET_NTOP.
72927         Reported by Bruno Haible.
72929 2008-05-02  Jim Meyering  <meyering@redhat.com>
72931         avoid compilation error on FreeBSD 6
72932         * tests/test-getaddrinfo.c [!defined EAI_NODATA] (EAI_NODATA): Define.
72934 2008-05-01  Jim Meyering  <meyering@redhat.com>
72936         useless-if-before-free: correct --help's exit status description
72937         * build-aux/useless-if-before-free (usage): Like grep, exit 0
72938         for one or more matches, etc.  Reported by Bruno Haible.
72940         vc-list-files: make the stand-alone gnulib test work
72941         * modules/vc-list-files-tests (configure.ac):
72942         Define and AC_SUBST abs_aux_dir.
72943         (Makefile.am) [TESTS_ENVIRONMENT]: Rather than passing
72944         $(abs_top_srcdir) to each script and having each of them
72945         duplicate the work of setting PATH, set PATH here, using
72946         the new variable, abs_aux_dir instead.
72947         * tests/test-vc-list-files-cvs.sh: Don't set PATH here.
72948         * tests/test-vc-list-files-git.sh: Likewise.
72949         Reported by Bruno Haible.
72951 2008-05-01  Bruno Haible  <bruno@clisp.org>
72953         * lib/getndelim2.c (getndelim2): Fix newsize computation during
72954         reallocation. Rename 'done' to 'found_delimiter'.
72956 2008-05-01  Jim Meyering  <meyering@redhat.com>
72958         vc-list-files: accommodate /bin/sh like the one from Solaris 10
72959         * build-aux/vc-list-files: Use `...`, not $(...).
72961 2008-04-30  Jim Meyering  <meyering@redhat.com>
72963         add tests for vc-list-files
72964         * modules/vc-list-files-tests: New module.
72965         * tests/test-vc-list-files-cvs.sh: New file.
72966         * tests/test-vc-list-files-git.sh: New file.
72968         avoid a warning from gcc
72969         * lib/getndelim2.c (IF_LINT): Define.
72970         (getndelim2): Use it to avoid a "may be used uninitialized" warning.
72972         vc-list-files: work properly with build-aux/cvsu, too
72973         * build-aux/vc-list-files: Hoist the "./"-removing code to apply
72974         to all cvs-based clauses.
72976         vc-list-files: work properly in the CVS+awk case, too
72977         * build-aux/vc-list-files: In the CVS+awk case, remove "./" prefix.
72979         vc-list-files: avoid use of ${*-*} that fails when /bin/sh is dash
72980         * build-aux/vc-list-files: Simplify ${*-*} to $dir, since we no longer
72981         take more than one file argument, so .  Add quotes, just in case $dir
72982         ever contains a shell meta-character.  Prompted by Soren Hansen in
72983         <http://thread.gmane.org/gmane.comp.emulators.libvirt/6221/focus=6240>.
72985 2008-04-29  Eric Blake  <ebb9@byu.net>
72987         Optimize getndelim2 to use block operations when possible.
72988         * modules/getndelim2 (Depends-on): Add stdbool, freadptr,
72989         freadseek, and memchr2.
72990         * lib/getndelim2.c (getndelim2): Use them for block reads.
72992 2008-04-29  Bruno Haible  <bruno@clisp.org>
72994         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_USE_SYSTEM_EXTENSIONS.
72995         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
72996         * modules/inet_ntop (Depends-on): Add extensions.
72997         * modules/inet_pton (Depends-on): Likewise.
72998         Reported by Simon Josefsson.
73000 2008-04-29  Jim Meyering  <meyering@redhat.com>
73002         When the is more than one match in a block, match all of them.
73003         * build-aux/useless-if-before-free: Iterate through each block
73004         until there are no more matches.
73006         Fix broken useless-if-before-free script.
73007         * build-aux/useless-if-before-free: Fix typo: missing "?" after
73008         the expression to match cast of argument to free-like function.
73010 2008-04-29  Eric Blake  <ebb9@byu.net>
73012         Use new header.
73013         * lib/getaddrinfo.c (includes): s/"inet_ntop.h"/<arpa/inet.h>/.
73015 2008-04-29  Jim Meyering  <meyering@redhat.com>
73017         Avoid test segfault on x86_64 due to lack of inet_ntop declaration.
73018         * tests/test-getaddrinfo.c: Include <arpa/inet.h>, now guaranteed
73019         by gnulib to exist and to declare e.g., inet_ntop.
73020         Don't include "inet_ntop.h", now removed.
73022         * m4/arpa_inet_h.m4: Remove trailing blanks.
73024 2008-04-29  Eric Blake  <ebb9@byu.net>
73026         Silence valgrind on safe reads beyond potential array bounds.
73027         * lib/rawmemchr.valgrind: New file.
73028         * lib/strchrnul.valgrind: Likewise.
73029         * modules/rawmemchr (Files): Distribute new file.
73030         * modules/strchrnul (Files): Likewise.
73031         Suggested by Bruno Haible.
73033 2008-04-29  Bruno Haible  <bruno@clisp.org>
73035         * lib/arpa_inet.in.h: Include system's <arpa/inet.h> if it exists.
73036         (inet_ntop, inet_pton): Change portability warning's wording.
73037         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Set HAVE_ARPA_INET_H.
73038         Invoke gl_CHECK_NEXT_HEADERS.
73039         (gl_ARPA_INET_H_DEFAULTS): Initialize ARPA_INET_H.
73040         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS and
73041         set ARPA_INET_H.
73042         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
73043         * modules/arpa_inet (Description): No longer only for systems that
73044         lack it.
73045         (Depends-on): Add include_next.
73046         (Makeile.am): Substitute INCLUDE_NEXT, NEXT_ARPA_INET_H,
73047         HAVE_ARPA_INET_H.
73049 2008-04-29  Jim Meyering  <meyering@redhat.com>
73051         * modules/mkdir (License): Re-license as LGPLv2+.
73053 2008-04-29  Bruno Haible  <bruno@clisp.org>
73055         * modules/rawmemchr (Maintainer): Set to Eric.
73056         * modules/strchrnul (Maintainer): Likewise.
73058 2008-04-29  Simon Josefsson  <simon@josefsson.org>
73060         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Set
73061         HAVE_DECL_INET_NTOP and HAVE_DECL_INET_PTON.
73063         * modules/arpa_inet (arpa/inet.h): Use them.
73065 2008-04-28  Eric Blake  <ebb9@byu.net>
73067         Test getndelim2.
73068         * modules/getndelim2-tests: New file.
73069         * tests/test-getndelim2.c: Likewise.
73070         * lib/getndelim2.c (getndelim2): Never return 0.  Lock the
73071         stream.
73072         * m4/getndelim2.m4 (gl_GETNDELIM2): Check for lock functions.
73074         * MODULES.html.sh: Document new module.
73076 2008-04-20  Bruno Haible  <bruno@clisp.org>
73078         * lib/c-stack.c (die): Use raise.
73079         * modules/c-stack (Depends-on): Add raise.
73081 2008-04-28  Bruno Haible  <bruno@clisp.org>
73083         Expect rpmatch to be declared.
73084         * lib/yesno.c (rpmatch): Remove declaration.
73086         Declare rpmatch.
73087         * lib/stdlib.in.h (rpmatch): New declaration.
73088         * lib/rpmatch.c: Include <stdlib.h> first.
73089         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Require AC_USE_SYSTEM_EXTENSIONS and
73090         gl_STDLIB_H_DEFAULTS. Set HAVE_RPMATCH.
73091         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RPMATCH,
73092         HAVE_RPMATCH.
73093         * modules/rpmatch (Depends-on): Add stdlib, extensions.
73094         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
73095         (Include): Set to <stdlib.h>.
73096         * modules/stdlib (Makefile.am): Substitute GNULIB_RPMATCH and
73097         HAVE_RPMATCH.
73098         * NEWS: Document the change.
73100 2008-04-28  Bruno Haible  <bruno@clisp.org>
73102         Change rpmatch to use nl_langinfo when appropriate.
73103         * lib/rpmatch.c: Include stdbool.h, string.h, langinfo.h.
73104         (N_): New macro.
73105         (localized_pattern): New function/macro.
73106         (try): Remove match, nomatch arguments. Copy the pattern into safe
73107         memory before caching it.
73108         (rpmatch): Use localized_pattern. Add translator comments.
73109         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Test for nl_langinfo and YESEXPR.
73110         Suggested by Eric Blake.
73111         * modules/rpmatch (Depends-on): Add stdbool.
73113 2008-04-28  Eric Blake  <ebb9@byu.net>
73115         Add rawmemchr module, matching glibc.
73116         * modules/string (Makefile.am): New indicator.
73117         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set it.
73118         * lib/string.in.h (rawmemchr): Declare when appropriate.
73119         * modules/rawmemchr: New file.
73120         * m4/rawmemchr.m4: Likewise.
73121         * lib/rawmemchr.c: Likewise.
73122         * modules/rawmemchr-tests: Likewise.
73123         * tests/test-rawmemchr.c: Likewise.
73124         * doc/glibc-functions/rawmemchr.texi (rawmemchr): Document
73125         module.
73126         * modules/strchrnul (Depends-on): Add rawmemchr.
73127         * lib/strchrnul.c (strchrnul): Optimize a corner case.
73129         Whitespace cleanup.
73130         * tests/test-strchrnul.c: Reindent.
73131         * lib/strchrnul.c: Likewise.
73133         Optimize and test strchrnul.
73134         * lib/strchrnul.c (strchrnul): Rewrite to do parallel search.
73135         * modules/strchrnul-tests: New file.
73136         * tests/test-strchrnul.c: Likewise.
73138         Remove intprops dependency.
73139         * modules/memchr (Depends-on): Remove intprops.
73140         * modules/memrchr (Depends-on): Likewise.
73141         * modules/memchr2 (Depends-on): Likewise.
73142         * lib/memchr.c (__memchr): Hand-inline the TYPE_MAXIMUM check.
73143         * lib/memrchr.c (__memrchr): Likewise.
73144         * lib/memrchr2.c (memchr2): Likewise.
73145         Reported by Simon Josefsson.
73147 2008-04-28  Simon Josefsson  <simon@josefsson.org>
73149         * m4/sys_socket_h.m4: Move AC_REQUIRE([AC_C_INLINE]) to top.
73150         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
73152 2008-04-28  Simon Josefsson  <simon@josefsson.org>
73154         * lib/inet_ntop.h, lib/inet_pton.h: Remove files.
73156         * lib/inet_ntop.c: Include arpa/inet.h instead of inet_ntop.h.
73158         * lib/inet_pton.c: Include arpa/inet.h instead of inet_pton.h.
73160         * lib/arpa_inet.in.h [@GNULIB_INET_NTOP@]: Inline inet_ntop.h
73161         declarations.
73162         [@GNULIB_INET_PTON@]: Inline inet_pton.h declarations.
73164         * m4/inet_pton.m4: Don't check for header files.
73166         * m4/inet_ntop.m4: Don't check for header files.
73168 2008-04-28  Simon Josefsson  <simon@josefsson.org>
73170         * m4/sys_socket_h.m4: Require AC_C_INLINE when necessary.
73171         * lib/sys_socket.in.h (setsockopt): Use proper win32 tests (don't
73172         trigger for cygwin).
73173         Reported by Bruno Haible  <bruno@clisp.org>.
73175 2008-04-28  Bruno Haible  <bruno@clisp.org>
73177         * doc/posix-functions/strdup.texi: Mention mingw problem.
73179 2008-04-27  Bruno Haible  <bruno@clisp.org>
73181         * modules/stat-time-tests (Depends-on): Add sleep.
73182         * tests/test-stat-time.c (force_unlink): New function.
73183         (cleanup): Use it.
73184         (test_mtime): Remove the ctime related tests.
73185         (test_ctime): New function, containing the ctime related tests.
73186         (main): Call test_ctime, except on native Windows platforms.
73188 2008-04-27  Bruno Haible  <bruno@clisp.org>
73190         * lib/rpmatch.c (rpmatch): Add some comments.
73191         Reported by James Youngman <jay@gnu.org>.
73193 2008-04-27  Bruno Haible  <bruno@clisp.org>
73195         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Also test the behaviour on
73196         quiet NaNs.
73198 2008-04-27  Bruno Haible  <bruno@clisp.org>
73200         Make test-yesno.sh work on mingw.
73201         * tests/test-yesno.sh: Postprocess the output to convert CR/LF to LF.
73202         * tests/test-yesno.c: Include yesno.h first. Include binary-io.h.
73203         (main): Set stdin to binary mode.
73204         * modules/yesno-tests (Depends-on): Add binary-io.
73206 2008-04-27  Bruno Haible  <bruno@clisp.org>
73208         Fix 'isfinite' on x86, x86_64, ia64 platforms.
73209         * tests/test-isfinite.c (test_isfinitel): Also test the behavior on
73210         argument that lie outside the IEEE 854 domain.
73211         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): New macro.
73212         (gl_ISFINITE): Use it.
73213         * doc/posix-functions/isfinite.texi: Document the fixed bugs.
73215 2008-04-27  Bruno Haible  <bruno@clisp.org>
73217         Allow local renaming in config.h.
73218         * lib/memrchr.c (memrchr): Don't undefine outside libc.
73220 2008-04-27  Bruno Haible  <bruno@clisp.org>
73222         * lib/memchr.c (__memchr): Change type of 'i'.
73223         * lib/memchr2.c (memchr2): Likewise.
73225 2008-04-26  Eric Blake  <ebb9@byu.net>
73226         and Bruno Haible  <bruno@clisp.org>
73228         Optimize and test memrchr.
73229         * modules/memrchr (Depends-on): Add intprops.
73230         * lib/memrchr.c (__memrchr): Avoid false positives in loop.
73231         * modules/memrchr-tests: New file.
73232         * tests/test-memrchr.c: New file.
73234 2008-04-26  Bruno Haible  <bruno@clisp.org>
73236         Add tentative support for DragonFly BSD.
73237         * lib/stdio-impl.h: Add macros for DragonFly BSD.
73238         * lib/fbufmode.c (fbufmode): Update conditionals. Use fp_ instead of
73239         fp.
73240         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
73241         restore_seek_optimization, update_fpos_cache, rpl_fflush: Likewise.
73242         * lib/fpurge.c (fpurge): Likewise.
73243         * lib/freadable.c (freaadable): Likewise.
73244         * lib/freadahead.c (freadahead): Likewise.
73245         * lib/freading.c (freading): Likewise.
73246         * lib/freadptr.c (freadptr): Likewise.
73247         * lib/freadseek.c (freadptrinc): Likewise.
73248         * lib/fseeko.c (fseeko): Likewise.
73249         * lib/fseterr.c (fseterr): Likewise.
73250         * lib/fwritable.c (fwritable): Likewise.
73251         * lib/fwriting.c (fwriting): Likewise.
73253 2008-04-26  Bruno Haible  <bruno@clisp.org>
73255         * lib/stdio-impl.h: New file.
73256         * lib/fbufmode.c: Include stdio-impl.h.
73257         (fbufmode): Use fp_, remove redundant #defines.
73258         * lib/fflush.c: Include stdio-impl.h.
73259         (clear_ungetc_buffer): Remove redundant #defines.
73260         * lib/fpurge.c: Include stdio-impl.h.
73261         (fpurge): Remove redundant #defines.
73262         * lib/freadable.c: Include stdio-impl.h.
73263         (freadable): Remove redundant #defines.
73264         * lib/freadahead.c: Include stdio-impl.h.
73265         (freadahead): Remove redundant #defines.
73266         * lib/freading.c: Include stdio-impl.h.
73267         (freading): Remove redundant #defines.
73268         * lib/freadptr.c: Include stdio-impl.h.
73269         (freadptr): Remove redundant #defines.
73270         * lib/freadseek.c: Include stdio-impl.h.
73271         (freadptrinc): Remove redundant #defines.
73272         * lib/fseeko.c: Include stdio-impl.h.
73273         (rpl_fseeko): Remove redundant #defines.
73274         * lib/fseterr.c: Include stdio-impl.h.
73275         (fseterr): Remove redundant #defines.
73276         * lib/fwritable.c: Include stdio-impl.h.
73277         (fwritable: Remove redundant #defines.
73278         * lib/fwriting.c: Include stdio-impl.h.
73279         (fwriting): Remove redundant #defines.
73280         * modules/fbufmode (Files): Add lib/stdio-impl.h.
73281         * modules/fflush (Files): Likewise.
73282         * modules/fpurge (Files): Likewise.
73283         * modules/freadable (Files): Likewise.
73284         * modules/freadahead (Files): Likewise.
73285         * modules/freading (Files): Likewise.
73286         * modules/freadptr (Files): Likewise.
73287         * modules/freadseek (Files): Likewise.
73288         * modules/fseeko (Files): Likewise.
73289         * modules/fseterr (Files): Likewise.
73290         * modules/fwritable (Files): Likewise.
73291         * modules/fwriting (Files): Likewise.
73293 2008-04-26  Bruno Haible  <bruno@clisp.org>
73295         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
73296         restore_seek_optimization, update_fpos_cache): New functions, extracted
73297         from rpl_fflush.
73298         (rpl_fflush): Use them.
73299         * m4/fflush.m4 (gl_PREREQ_FFLUSH): New macro.
73300         (gl_REPLACE_FFLUSH): Use it.
73302 2008-04-26  Bruno Haible  <bruno@clisp.org>
73304         * tests/test-xstrtol.sh: Work around limitation of an old 'tr' program
73305         on Solaris.
73306         * tests/test-xstrtoimax.sh: Likewise.
73307         * tests/test-xstrtoumax.sh: Likewise.
73308         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
73310 2008-04-26  Bruno Haible  <bruno@clisp.org>
73312         * modules/memchr-tests: New file.
73313         * tests/test-memchr.c; New file, based on tests/test-memchr2.c.
73315 2008-04-26  Eric Blake  <ebb9@byu.net>
73316             Bruno Haible  <bruno@clisp.org>
73318         * lib/memchr.c: Include intprops.h.
73319         (__memchr): Optimize parallel detection of matching bytes. Rename local
73320         variables. Add explanatory comments.
73322 2008-04-26  Bruno Haible  <bruno@clisp.org>
73324         Fix module 'memchr', broken since 2000-10-28.
73325         * lib/memchr.c: Outside glibc, define memchr, not __memchr.
73327 2008-04-26  Bruno Haible  <bruno@clisp.org>
73329         * lib/memchr2.c (memchr2): Rename local variables. Add explanatory
73330         comments.
73332 2008-04-25  Eric Blake  <ebb9@byu.net>
73334         Use native fstatat on cygwin 1.7.0.
73335         * m4/openat.m4 (gl_FUNC_OPENAT): Make sure lstat check is made
73336         first.
73338 2008-04-23  Eric Blake  <ebb9@byu.net>
73340         Improve memchr2 performance.
73341         * lib/memchr2.c (memchr2): Further optimize parallel detection of
73342         NUL bytes.
73343         * modules/memchr2 (Depends-on): Use intprops.h.
73345 2008-04-23  Simon Josefsson  <simon@josefsson.org>
73347         * lib/sys_socket.in.h (setsockopt): Be more type safe by declaring
73348         an inline function instead of a CPP macro.  Patch by Ben Pfaff
73349         <blp@cs.stanford.edu>.
73351 2008-04-23  Simon Josefsson  <simon@josefsson.org>
73353         * lib/arpa_inet.in.h: New file.
73355         * modules/arpa_inet (Files): Add lib/arpa_inet.in.h.
73356         (Makefile.am): Sed in substitute header file.
73358         * m4/arpa_inet_h.m4: Add gl_ARPA_INET_H_DEFAULTS and
73359         gl_ARPA_INET_MODULE_INDICATOR.  Use them.
73361         * modules/inet_ntop (configure.ac): Use
73362         gl_ARPA_INET_MODULE_INDICATOR.
73364         * modules/inet_pton (configure.ac): Use
73365         gl_ARPA_INET_MODULE_INDICATOR.
73367 2008-04-22  Jim Meyering  <meyering@redhat.com>
73369         * modules/verify (License): Re-license as LGPLv2+.
73371 2008-04-22  Simon Josefsson  <simon@josefsson.org>
73373         * lib/sys_socket.in.h: Define setsockopt macro to cast fourth
73374         parameter to void* as per POSIX standard (MinGW uses char*).
73376 2008-04-21  Bruno Haible  <bruno@clisp.org>
73378         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
73379         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
73380         Define to replacements if REPLACE_ISWCNTRL is 1.
73381         * m4/wctype.m4 (gl_WCTYPE_H): Test whether the isw* functions work.
73382         If not, set WCTYPE_H to nonempty and REPLACE_ISWCNTRL to 1.
73383         * modules/wctype (Makefile.am): Substitute REPLACE_ISWCNTRL.
73384         * doc/posix-functions/iswalnum.texi: Mention the 'wctype' module and
73385         what it fixes.
73386         * doc/posix-functions/iswalpha.texi: Likewise.
73387         * doc/posix-functions/iswblank.texi: Likewise.
73388         * doc/posix-functions/iswcntrl.texi: Likewise.
73389         * doc/posix-functions/iswdigit.texi: Likewise.
73390         * doc/posix-functions/iswgraph.texi: Likewise.
73391         * doc/posix-functions/iswlower.texi: Likewise.
73392         * doc/posix-functions/iswprint.texi: Likewise.
73393         * doc/posix-functions/iswpunct.texi: Likewise.
73394         * doc/posix-functions/iswspace.texi: Likewise.
73395         * doc/posix-functions/iswupper.texi: Likewise.
73396         * doc/posix-functions/iswxdigit.texi: Likewise.
73397         Reported by Alain Guibert.
73399 2008-04-21  Bruno Haible  <bruno@clisp.org>
73401         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Fix typo in last commit.
73402         Patch by Alain Guibert.
73404 2008-04-21  Bruno Haible  <bruno@clisp.org>
73406         Fix test failures on mingw.
73407         * tests/test-xstrtol.c (print_no_progname): New function.
73408         (main): Install it in error_print_progname hook.
73409         * tests/test-xstrtol.sh: Convert CR/LF to NL in output.
73410         * tests/test-xstrtoimax.sh: Likewise.
73411         * tests/test-xstrtoumax.sh: Likewise.
73413 2008-04-21  Bruno Haible  <bruno@clisp.org>
73415         Fix test failure on mingw.
73416         * tests/test-argp-2.sh (func_compare): Remove CRs from sed's output.
73418 2008-04-21  Bruno Haible  <bruno@clisp.org>
73420         * lib/localename.c (SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN):
73421         Actually assign a value.
73423 2008-04-20  Bruno Haible  <bruno@clisp.org>
73425         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl',
73426         take 2.
73427         * lib/canonicalize.c (canonicalize_file_name): Elide if the
73428         'canonicalize-lgpl' module is also used.
73429         * lib/canonicalize-lgpl.c: Undo last change.
73430         * modules/canonicalize-lgpl (configure.ac): Invoke gl_MODULE_INDICATOR.
73432 2008-04-20  Bruno Haible  <bruno@clisp.org>
73434         * lib/mkdir.c (mkdir): Undefine after the includes, not right after
73435         config.h. Provide _mkdir based fallback for mingw.
73436         * lib/sys_stat.in.h (mkdir): Define through an 'extern' declaration
73437         if REPLACE_MKDIR is 1. Otherwise, test for mingw directly.
73438         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Require
73439         gl_SYS_STAT_H_DEFAULTS. When doing the replacement, set REPLACE_MKDIR
73440         rather than defining mkdir in config.h.
73441         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): New macro.
73442         (gl_SYS_STAT_H_DEFAULTS): New macro.
73443         (gl_HEADER_SYS_STAT_H): Require it. Don't set HAVE_DECL_MKDIR and
73444         HAVE_IO_H any more.
73445         * modules/sys_stat (Makefile.am): Substitute REPLACE_MKDIR instead of
73446         HAVE_DECL_MKDIR and HAVE_IO_H.
73448 2008-04-20  Bruno Haible  <bruno@clisp.org>
73450         * lib/isapipe.c: Port to native Windows platforms.
73452 2008-04-20  Bruno Haible  <bruno@clisp.org>
73454         * lib/gc-gnulib.c: Include <windows.h> before <wincrypt.h>.
73456 2008-04-21  Eric Blake  <ebb9@byu.net>
73458         Work around preprocessors that don't handle UINTMAX_MAX.
73459         * lib/memchr2.c (memchr2): Avoid embedded #if.
73460         Reported by Alain Guibert, fix suggested by Bruno Haible.
73462 2008-04-21  Simon Josefsson  <simon@josefsson.org>
73464         * doc/posix-functions/strftime.texi (strftime): Explain better
73465         Windows incompatibility.  Suggested by Micah Cowan
73466         <micah@cowan.name>.
73468 2008-04-20  Bruno Haible  <bruno@clisp.org>
73470         * modules/uniconv/u32-conv-to-enc (Depends-on): Add unistr/u32-mblen,
73471         unistr/u8-mblen.
73473 2008-04-20  Bruno Haible  <bruno@clisp.org>
73475         Fix test failure on platforms with non-GNU iconv.
73476         * lib/uniconv/u16-conv-to-enc.c (u16_to_u8_lenient): New function.
73477         (U_TO_U8): Use it, rather than u16_to_u8.
73478         * lib/uniconv/u-conv-to-enc.h (FUNC): Allow an incomplete sequence of
73479         units at the end of the input string.
73480         * modules/uniconv/u16-conv-to-enc (Depends-on): Update.
73482 2008-04-20  Bruno Haible  <bruno@clisp.org>
73484         * tests/uniconv/test-u8-conv-to-enc.c (main): Accept result == NULL
73485         when the resulting length is 0.
73486         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
73488 2008-04-20  Bruno Haible  <bruno@clisp.org>
73490         * m4/roundf.m4 (gl_FUNC_ROUNDF): Add test whether roundf actually
73491         works.
73492         * doc/posix-functions/roundf.texi: Mention roundf bug on mingw.
73494 2008-04-20  Bruno Haible  <bruno@clisp.org>
73496         * tests/test-tsearch.c (main): Don't use initstate if it is missing.
73497         * modules/tsearch-tests (configure.ac): Test for initstate function.
73499 2008-04-20  Bruno Haible  <bruno@clisp.org>
73501         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Also provided a substitute
73502         for nlink_t if missing.
73503         * tests/test-sys_stat.c: Check the existence of the nlink_t type.
73505 2008-04-19  Bruno Haible  <bruno@clisp.org>
73507         Work around snprintf bug on Linux libc5.
73508         * m4/printf.m4 (gl_SNPRINTF_SIZE1): New macro.
73509         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
73510         gl_SNPRINTF_SIZE1.
73511         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
73512         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Likewise. Replace snprintf if
73513         that test failed.
73514         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
73515         * lib/vasnprintf.c (USE_SNPRINTF): Set to 0 on Linux libc5 systems.
73516         * modules/snprintf (Files): Add m4/printf.m4.
73517         * modules/vsnprintf (Files): Likewise.
73518         * doc/posix-functions/snprintf.texi: Document Linux libc5 problem.
73519         * doc/posix-functions/vsnprintf.texi: Likewise.
73521 2008-04-19  Bruno Haible  <bruno@clisp.org>
73523         * lib/vasnprintf.c (floorlog10l, floorlog10): Reduce maximum error
73524         from 0.0058 to less than 10^-7.
73526 2008-04-19  Bruno Haible  <bruno@clisp.org>
73528         Fix rounding when a precision is given.
73529         * lib/vasnprintf.c (is_borderline): New function.
73530         (VASNPRINTF): For %e and %g, consider replacing the digits 10....0 with
73531         9...9x.
73532         * tests/test-vasnprintf-posix.c (test_function): Test rounding with %f,
73533         %e, %g.
73534         * tests/test-vasprintf-posix.c (test_function): Likewise.
73535         * tests/test-snprintf-posix.h (test_function): Likewise.
73536         * tests/test-sprintf-posix.h (test_function): Likewise.
73537         * tests/test-fprintf-posix.h (test_function): Test rounding with %f.
73538         * tests/test-printf-posix.h (test_function): Likewise.
73539         * tests/test-printf-posix.output: Update.
73540         Reported by John Darrington <john@darrington.wattle.id.au> via
73541         Ben Pfaff <blp@cs.stanford.edu>.
73543 2008-04-18  Simon Josefsson  <simon@josefsson.org>
73545         * doc/posix-functions/strftime.texi (strftime): Clarify platform.
73546         Suggested by Bruno Haible <bruno@clisp.org>.
73548 2008-04-17  Bruno Haible  <bruno@clisp.org>
73550         * lib/lock.h (gl_lock_destroy, gl_rwlock_destroy,
73551         gl_recursive_lock_destroy): Provide no-op definitions for the dummy
73552         implementation.
73553         Patch by Bruce Merry <bmerry@gmail.com>.
73555 2008-04-17  Simon Josefsson  <simon@josefsson.org>
73557         * doc/posix-functions/strftime.texi (strftime): Mention that %e
73558         doesn't work under Windows.
73560 2008-04-16  Bruno Haible  <bruno@clisp.org>
73562         * lib/localename.c (LANG_MAORI, LANG_QUECHUA, LANG_SOTHO, LANG_UIGHUR):
73563         New macros.
73564         (SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_LATIN,
73565         SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_CYRILLIC,
73566         SUBLANG_CROATIAN_CROATIA, SUBLANG_CROATIAN_BOSNIA_HERZEGOVINA_LATIN,
73567         SUBLANG_MONGOLIAN_CYRILLIC_MONGOLIA, SUBLANG_MONGOLIAN_PRC,
73568         SUBLANG_QUECHUA_BOLIVIA, SUBLANG_QUECHUA_ECUADOR, SUBLANG_QUECHUA_PERU,
73569         SUBLANG_RUSSIAN_RUSSIA, SUBLANG_RUSSIAN_MOLDAVIA, SUBLANG_SPANISH_US,
73570         SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN, SUBLANG_UIGHUR_PRC): New
73571         macros.
73572         (gl_locale_name_from_win32_LANGID): Refine code for Croatian/Bosnian,
73573         Mongolian, Russian, Spanish, Tibetan. Add code for Maori, Quechua,
73574         Northern Sotho, Uighur.
73576 2008-04-16  Bruno Haible  <bruno@clisp.org>
73578         * lib/localename.c (SUBLANG_SINDHI_INDIA): New macro.
73579         (SUBLANG_SINDHI_PAKISTAN): Change value from 1 to 2.
73580         (gl_locale_name_from_win32_LANGID): Fix code for Sindhi.
73581         Reported by Daniel Bergström <daniel@octocode.com>.
73583 2007-12-25  KJK::Hyperion  <hackbunny@reactos.com>
73584             Bruno Haible  <bruno@clisp.org>
73586         * lib/localename.c (gl_locale_name_canonicalize) [WIN32_NATIVE]: New
73587         function.
73588         (gl_locale_name_from_win32_LANGID, gl_locale_name_from_win32_LCID):
73589         New functions, mostly extracted from gl_locale_name_default.
73590         (gl_locale_name_default): Use gl_locale_name_from_win32_LCID.
73592 2008-04-16  Eric Blake  <ebb9@byu.net>
73594         Adjust strtod detection to catch glibc 2.7 bug.
73595         * m4/strtod.m4 (gl_FUNC_STRTOD): Test "nan()" behavior.
73596         Reported by John Gatewood Ham.
73598 2008-04-16  Bruno Haible  <bruno@clisp.org>
73600         Add tentative support for Linux libc5.
73601         * lib/fbufmode.c (fbufmode) [__GNU_LIBRARY__==1]: Reuse glibc2 code.
73602         * lib/fpurge.c (fpurge): Likewise.
73603         * lib/freadable.c (freadable): Likewise.
73604         * lib/freadahead.c (freadahead): Likewise.
73605         * lib/freading.c (freading): Likewise.
73606         * lib/freadptr.c (freadptr): Likewise.
73607         * lib/freadseek.c (freadptrinc): Likewise.
73608         * lib/fseeko.c (rpl_fseeko): Likewise.
73609         * lib/fseterr.c (fseterr): Likewise.
73610         * lib/fwritable.c (fwritable): Likewise.
73611         * lib/fwriting.c (fwriting): Likewise.
73612         Reported by Alain Guibert <alguibert+bts@free.fr>.
73614 2008-04-15  Bruno Haible  <bruno@clisp.org>
73616         * modules/mathl (configure.ac): Define module indicator.
73618 2008-04-15  Bruno Haible  <bruno@clisp.org>
73620         * lib/logl.c (logl): Remove unused variables.
73622 2008-04-15  Bruno Haible  <bruno@clisp.org>
73624         * lib/uniconv/u-conv-to-enc.h (FUNC): Fix return value when U_TO_U8
73625         fails.
73627 2008-04-15  Bruno Haible  <bruno@clisp.org>
73629         * lib/trim.c (trim2): Fix argument of isspace() macro.
73631 2008-04-15  Paolo Bonzini  <bonzini@gnu.org>
73633         * lib/tanl.c (kernel_tanl): Rename flag to invert, initialize it
73634         to 0.
73635         * lib/trigl.c (ieee754_rem_pio2l): Fix range checks.
73637 2008-04-14  Bruno Haible  <bruno@clisp.org>
73639         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Fix underquoting of
73640         AC_LANG_PROGRAM argument.
73641         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Likewise.
73642         * m4/gethrxtime.m4 (gl_ARITHMETIC_HRTIME_T): Likewise.
73643         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
73644         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
73645         * m4/math_h.m4 (gl_MATH_H): Likewise.
73646         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
73647         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
73648         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
73649         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
73650         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
73651         * m4/regex.m4 (gl_REGEX): Likewise.
73652         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Likewise.
73653         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): Likewise.
73654         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
73655         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Likewise.
73656         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
73657         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
73658         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
73659         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
73661 2008-04-14  Jim Meyering  <meyering@redhat.com>
73663         test-strtod: fix typos: s/abs/fabs/
73664         * tests/test-strtod.c (main): Use fabs, not narrowing-to-int "abs".
73666 2008-04-13  Bruno Haible  <bruno@clisp.org>
73668         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl'.
73669         * lib/canonicalize-lgpl.c: Elide the contents if the 'canonicalize'
73670         module is also used and while not building the reloc-wrapper.
73672 2008-04-13  Bruno Haible  <bruno@clisp.org>
73674         * tests/test-getaddrinfo.c (simple): Ignore EAI_NODATA error.
73676 2008-04-13  Bruno Haible  <bruno@clisp.org>
73678         Fix AIX compilation failure introduced on 2008-04-02.
73679         * tests/test-frexp.c (exp): Undefine before redefining.
73680         * tests/test-frexpl.c (exp): Likewise.
73682 2008-04-13  Bruno Haible  <bruno@clisp.org>
73684         Work around a HP-UX stdio bug.
73685         * tests/test-ftell.c (main): Disable the fseek/ftell test on HP-UX.
73686         * tests/test-ftello.c (main): Likewise.
73687         * doc/posix-functions/ftell.texi: Mention HP-UX bug.
73688         * doc/posix-functions/ftello.texi: Likewise.
73690 2008-04-13  Bruno Haible  <bruno@clisp.org>
73692         Make test-signbit pass on HP-UX/hppa.
73693         * tests/test-signbit.c (minus_zerol): New variable.
73694         (test_signbitl): Use it.
73696 2008-04-13  Bruno Haible  <bruno@clisp.org>
73698         Make truncl work on OSF/1 4.0.
73699         * m4/truncl.m4 (gl_FUNC_TRUNCL): Test whether truncl actually works.
73700         Set REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
73701         * lib/math.in.h (truncl): Test REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
73702         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCL, not
73703         HAVE_DECL_TRUNCL.
73704         * modules/math (Makefile.am): Substitute REPLACE_TRUNCL, not
73705         HAVE_DECL_TRUNCL.
73706         * doc/posix-functions/truncl.texi: Document the OSF/1 4.0 problem.
73708 2008-04-13  Bruno Haible  <bruno@clisp.org>
73710         * lib/unictype.h: Remove trailing comma from enumeration definitions.
73712 2008-04-13  Bruno Haible  <bruno@clisp.org>
73714         * lib/count-one-bits.h (COUNT_ONE_BITS): Rewrite verification
73715         expression, so as to avoid HP-UX 11 cc compiler bug.
73717 2008-04-13  Bruno Haible  <bruno@clisp.org>
73719         * m4/regex.m4 (gl_PREREQ_REGEX): Also check for <libintl.h>.
73721 2008-04-13  Bruno Haible  <bruno@clisp.org>
73723         * lib/git-merge-changelog.c: Remove empty declaration outside of
73724         functions.
73726 2008-04-13  Bruno Haible  <bruno@clisp.org>
73728         * modules/quotearg-tests (Makefile.am): Define test_quotearg_LDADD.
73730 2008-04-13  Bruno Haible  <bruno@clisp.org>
73732         * doc/posix-headers/sys_socket.texi: Document the problem on EMX.
73733         * lib/sys_socket.in.h (SHUT_RD, SHUT_WR, SHUT_RDWR): Define if missing.
73734         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Replace <sys/socket.h>
73735         also if it exists but lacks definitions of the SHUT_* macros.
73736         * modules/sys_socket (Description): Update.
73737         Reported by Elbert Pol <e.pol@chello.nl>.
73739 2008-04-13  Bruno Haible  <bruno@clisp.org>
73741         * lib/localcharset.c (OS2): Don't redefine if already defined.
73742         Reported by Elbert Pol <e.pol@chello.nl>.
73744 2008-04-13  Bruno Haible  <bruno@clisp.org>
73746         * lib/binary-io.h [__EMX__]: Include <io.h>.
73747         Reported by Elbert Pol <e.pol@chello.nl>.
73749 2008-04-12  Bruno Haible  <bruno@clisp.org>
73751         * lib/fpucw.h: Enable the definitions also for x86_64.
73752         Needed for NetBSD/x86_64.
73753         Reported by Thomas Klausner <tk@giga.or.at>.
73755 2008-04-12  Bruno Haible  <bruno@clisp.org>
73757         * tests/test-strtod.c: Include isnand.h.
73758         (main): Use isnand instead of isnan.
73759         Reported by Jim Meyering.
73761 2008-04-12  Bruno Haible  <bruno@clisp.org>
73763         * m4/isnanf.m4 (gl_ISNANF_WORKS): Add a test for a special NaN.
73764         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
73766 2008-04-12  Jim Meyering  <meyering@redhat.com>
73768         * m4/math_h.m4 (gl_MATH_H): Fix typos.
73770 2008-04-12  Bruno Haible  <bruno@clisp.org>
73772         * lib/freadptr.c (freadptr) [__EMX__]: Fix wrong assertion.
73773         Reported by Elbert Pol <e.pol@chello.nl>.
73775 2008-04-12  Eric Blake  <ebb9@byu.net>
73777         Work around Solaris 10 math.h bug.
73778         * m4/math_h.m4 (gl_MATH_H): Check for bug.
73779         (gl_MATH_H_DEFAULTS): Set up default.
73780         * modules/math (Makefile.am): Replace new indicators.
73781         * lib/math.in.h (NAN, HUGE_VAL): Provide replacements.
73782         * tests/test-math.c (main): Test this.
73783         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't rely on HUGE_VAL.
73784         * doc/posix-headers/math.texi (math.h): Mention bug.
73785         Reported by Nelson H. F. Beebe and Jim Meyering.
73787 2008-04-11  Bruno Haible  <bruno@clisp.org>
73789         Adapt to future versions of Apple GCC.
73790         * lib/argp-fmtstream.h (ARGP_FS_EI): Don't test __GNUC_GNU_INLINE__.
73791         Reported by Peter O'Gorman <peter@pogma.com>.
73793 2008-04-11  Bruno Haible  <bruno@clisp.org>
73795         * tests/test-getaddrinfo.c (simple): Ignore EAI_NONAME error.
73797 2008-04-11  Bruno Haible  <bruno@clisp.org>
73799         * modules/strsignal-tests (Makefile.am): Define test_strsignal_LDADD.
73801         * modules/getaddrinfo-tests (Makefile.am): Define
73802         test_getaddrinfo_LDADD.
73804 2008-04-11  Bruno Haible  <bruno@clisp.org>
73806         * lib/strsignal.c (_sys_siglist): Don't declare if already declared.
73807         (init): Fix syntax error.
73808         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Check whether _sys_siglist
73809         is declared.
73811 2008-04-11  Bruno Haible  <bruno@clisp.org>
73813         * lib/glob.c: Include <stdbool.h>. Needed at least with IRIX cc.
73814         * modules/glob (Depends-on): Add stdbool.
73816 2008-04-11  Bruno Haible  <bruno@clisp.org>
73818         * lib/trim.c: Include <string.h>.
73820 2008-04-11  Eric Blake  <ebb9@byu.net>
73822         Avoid compile failure on OS/2.
73823         * lib/regex_internal.h (internal_function): Disable optimization
73824         on OS/2 (__EMX__), where it caused compiler error.
73825         Reported by Elbert Pol.
73827 2008-04-11  Bruno Haible  <bruno@clisp.org>
73829         Flush the standard error stream before aborting. Needed on mingw.
73830         * tests/test-argmatch.c (ASSERT): Call fflush(stderr) before abort().
73831         * tests/test-array_list.c (ASSERT): Likewise.
73832         * tests/test-array_oset.c (ASSERT): Likewise.
73833         * tests/test-avltree_list.c (ASSERT): Likewise.
73834         * tests/test-avltree_oset.c (ASSERT): Likewise.
73835         * tests/test-avltreehash_list.c (ASSERT): Likewise.
73836         * tests/test-binary-io.c (ASSERT): Likewise.
73837         * tests/test-byteswap.c (ASSERT): Likewise.
73838         * tests/test-c-ctype.c (ASSERT): Likewise.
73839         * tests/test-c-strcasecmp.c (ASSERT): Likewise.
73840         * tests/test-c-strcasestr.c (ASSERT): Likewise.
73841         * tests/test-c-strncasecmp.c (ASSERT): Likewise.
73842         * tests/test-c-strstr.c (ASSERT): Likewise.
73843         * tests/test-canonicalize-lgpl.c (ASSERT): Likewise.
73844         * tests/test-canonicalize.c (ASSERT): Likewise.
73845         * tests/test-carray_list.c (ASSERT): Likewise.
73846         * tests/test-ceilf1.c (ASSERT): Likewise.
73847         * tests/test-ceilf2.c (ASSERT): Likewise.
73848         * tests/test-ceill.c (ASSERT): Likewise.
73849         * tests/test-count-one-bits.c (ASSERT): Likewise.
73850         * tests/test-fbufmode.c (ASSERT): Likewise.
73851         * tests/test-fflush2.c (ASSERT): Likewise.
73852         * tests/test-floorf1.c (ASSERT): Likewise.
73853         * tests/test-floorf2.c (ASSERT): Likewise.
73854         * tests/test-floorl.c (ASSERT): Likewise.
73855         * tests/test-fopen.c (ASSERT): Likewise.
73856         * tests/test-fpending.c (ASSERT): Likewise.
73857         * tests/test-fprintf-posix.c (ASSERT): Likewise.
73858         * tests/test-fpurge.c (ASSERT): Likewise.
73859         * tests/test-freadable.c (ASSERT): Likewise.
73860         * tests/test-freadahead.c (ASSERT): Likewise.
73861         * tests/test-freading.c (ASSERT): Likewise.
73862         * tests/test-freadptr.c (ASSERT): Likewise.
73863         * tests/test-freadptr2.c (ASSERT): Likewise.
73864         * tests/test-freadseek.c (ASSERT): Likewise.
73865         * tests/test-freopen.c (ASSERT): Likewise.
73866         * tests/test-frexp.c (ASSERT): Likewise.
73867         * tests/test-frexpl.c (ASSERT): Likewise.
73868         * tests/test-fseek.c (ASSERT): Likewise.
73869         * tests/test-fseeko.c (ASSERT): Likewise.
73870         * tests/test-fstrcmp.c (ASSERT): Likewise.
73871         * tests/test-ftell.c (ASSERT): Likewise.
73872         * tests/test-ftello.c (ASSERT): Likewise.
73873         * tests/test-func.c (ASSERT): Likewise.
73874         * tests/test-fwritable.c (ASSERT): Likewise.
73875         * tests/test-fwriting.c (ASSERT): Likewise.
73876         * tests/test-getdelim.c (ASSERT): Likewise.
73877         * tests/test-getline.c (ASSERT): Likewise.
73878         * tests/test-i-ring.c (ASSERT): Likewise.
73879         * tests/test-iconv-utf.c (ASSERT): Likewise.
73880         * tests/test-iconv.c (ASSERT): Likewise.
73881         * tests/test-isfinite.c (ASSERT): Likewise.
73882         * tests/test-isnand.c (ASSERT): Likewise.
73883         * tests/test-isnanf.c (ASSERT): Likewise.
73884         * tests/test-isnanl.h (ASSERT): Likewise.
73885         * tests/test-ldexpl.c (ASSERT): Likewise.
73886         * tests/test-linked_list.c (ASSERT): Likewise.
73887         * tests/test-linkedhash_list.c (ASSERT): Likewise.
73888         * tests/test-localename.c (ASSERT): Likewise.
73889         * tests/test-lseek.c (ASSERT): Likewise.
73890         * tests/test-mbscasecmp.c (ASSERT): Likewise.
73891         * tests/test-mbscasestr1.c (ASSERT): Likewise.
73892         * tests/test-mbscasestr2.c (ASSERT): Likewise.
73893         * tests/test-mbscasestr3.c (ASSERT): Likewise.
73894         * tests/test-mbscasestr4.c (ASSERT): Likewise.
73895         * tests/test-mbschr.c (ASSERT): Likewise.
73896         * tests/test-mbscspn.c (ASSERT): Likewise.
73897         * tests/test-mbsncasecmp.c (ASSERT): Likewise.
73898         * tests/test-mbspbrk.c (ASSERT): Likewise.
73899         * tests/test-mbspcasecmp.c (ASSERT): Likewise.
73900         * tests/test-mbsrchr.c (ASSERT): Likewise.
73901         * tests/test-mbsspn.c (ASSERT): Likewise.
73902         * tests/test-mbsstr1.c (ASSERT): Likewise.
73903         * tests/test-mbsstr2.c (ASSERT): Likewise.
73904         * tests/test-mbsstr3.c (ASSERT): Likewise.
73905         * tests/test-memchr2.c (ASSERT): Likewise.
73906         * tests/test-memmem.c (ASSERT): Likewise.
73907         * tests/test-open.c (ASSERT): Likewise.
73908         * tests/test-printf-frexp.c (ASSERT): Likewise.
73909         * tests/test-printf-frexpl.c (ASSERT): Likewise.
73910         * tests/test-printf-posix.c (ASSERT): Likewise.
73911         * tests/test-quotearg.c (ASSERT): Likewise.
73912         * tests/test-rbtree_list.c (ASSERT): Likewise.
73913         * tests/test-rbtree_oset.c (ASSERT): Likewise.
73914         * tests/test-rbtreehash_list.c (ASSERT): Likewise.
73915         * tests/test-round1.c (ASSERT): Likewise.
73916         * tests/test-roundf1.c (ASSERT): Likewise.
73917         * tests/test-roundl.c (ASSERT): Likewise.
73918         * tests/test-signbit.c (ASSERT): Likewise.
73919         * tests/test-sleep.c (ASSERT): Likewise.
73920         * tests/test-snprintf-posix.c (ASSERT): Likewise.
73921         * tests/test-snprintf.c (ASSERT): Likewise.
73922         * tests/test-sprintf-posix.c (ASSERT): Likewise.
73923         * tests/test-stat-time.c (ASSERT): Likewise.
73924         * tests/test-strcasestr.c (ASSERT): Likewise.
73925         * tests/test-strerror.c (ASSERT): Likewise.
73926         * tests/test-striconv.c (ASSERT): Likewise.
73927         * tests/test-striconveh.c (ASSERT): Likewise.
73928         * tests/test-striconveha.c (ASSERT): Likewise.
73929         * tests/test-strsignal.c (ASSERT): Likewise.
73930         * tests/test-strstr.c (ASSERT): Likewise.
73931         * tests/test-strtod.c (ASSERT): Likewise.
73932         * tests/test-trunc1.c (ASSERT): Likewise.
73933         * tests/test-trunc2.c (ASSERT): Likewise.
73934         * tests/test-truncf1.c (ASSERT): Likewise.
73935         * tests/test-truncf2.c (ASSERT): Likewise.
73936         * tests/test-truncl.c (ASSERT): Likewise.
73937         * tests/test-vasnprintf-posix.c (ASSERT): Likewise.
73938         * tests/test-vasnprintf-posix2.c (ASSERT): Likewise.
73939         * tests/test-vasnprintf.c (ASSERT): Likewise.
73940         * tests/test-vasprintf-posix.c (ASSERT): Likewise.
73941         * tests/test-vasprintf.c (ASSERT): Likewise.
73942         * tests/test-vfprintf-posix.c (ASSERT): Likewise.
73943         * tests/test-vprintf-posix.c (ASSERT): Likewise.
73944         * tests/test-vsnprintf-posix.c (ASSERT): Likewise.
73945         * tests/test-vsnprintf.c (ASSERT): Likewise.
73946         * tests/test-vsprintf-posix.c (ASSERT): Likewise.
73947         * tests/test-wcwidth.c (ASSERT): Likewise.
73948         * tests/test-xfprintf-posix.c (ASSERT): Likewise.
73949         * tests/test-xprintf-posix.c (ASSERT): Likewise.
73950         * tests/test-xvasprintf.c (ASSERT): Likewise.
73951         * tests/uniconv/test-u16-conv-from-enc.c (ASSERT): Likewise.
73952         * tests/uniconv/test-u16-conv-to-enc.c (ASSERT): Likewise.
73953         * tests/uniconv/test-u16-strconv-from-enc.c (ASSERT): Likewise.
73954         * tests/uniconv/test-u16-strconv-to-enc.c (ASSERT): Likewise.
73955         * tests/uniconv/test-u32-conv-from-enc.c (ASSERT): Likewise.
73956         * tests/uniconv/test-u32-conv-to-enc.c (ASSERT): Likewise.
73957         * tests/uniconv/test-u32-strconv-from-enc.c (ASSERT): Likewise.
73958         * tests/uniconv/test-u32-strconv-to-enc.c (ASSERT): Likewise.
73959         * tests/uniconv/test-u8-conv-from-enc.c (ASSERT): Likewise.
73960         * tests/uniconv/test-u8-conv-to-enc.c (ASSERT): Likewise.
73961         * tests/uniconv/test-u8-strconv-from-enc.c (ASSERT): Likewise.
73962         * tests/uniconv/test-u8-strconv-to-enc.c (ASSERT): Likewise.
73963         * tests/unictype/test-bidi_byname.c (ASSERT): Likewise.
73964         * tests/unictype/test-bidi_name.c (ASSERT): Likewise.
73965         * tests/unictype/test-bidi_of.c (ASSERT): Likewise.
73966         * tests/unictype/test-bidi_test.c (ASSERT): Likewise.
73967         * tests/unictype/test-block_list.c (ASSERT): Likewise.
73968         * tests/unictype/test-block_of.c (ASSERT): Likewise.
73969         * tests/unictype/test-block_test.c (ASSERT): Likewise.
73970         * tests/unictype/test-categ_and.c (ASSERT): Likewise.
73971         * tests/unictype/test-categ_and_not.c (ASSERT): Likewise.
73972         * tests/unictype/test-categ_byname.c (ASSERT): Likewise.
73973         * tests/unictype/test-categ_name.c (ASSERT): Likewise.
73974         * tests/unictype/test-categ_none.c (ASSERT): Likewise.
73975         * tests/unictype/test-categ_of.c (ASSERT): Likewise.
73976         * tests/unictype/test-categ_or.c (ASSERT): Likewise.
73977         * tests/unictype/test-categ_test_withtable.c (ASSERT): Likewise.
73978         * tests/unictype/test-combining.c (ASSERT): Likewise.
73979         * tests/unictype/test-decdigit.c (ASSERT): Likewise.
73980         * tests/unictype/test-digit.c (ASSERT): Likewise.
73981         * tests/unictype/test-mirror.c (ASSERT): Likewise.
73982         * tests/unictype/test-numeric.c (ASSERT): Likewise.
73983         * tests/unictype/test-pr_byname.c (ASSERT): Likewise.
73984         * tests/unictype/test-pr_test.c (ASSERT): Likewise.
73985         * tests/unictype/test-predicate-part1.h (ASSERT): Likewise.
73986         * tests/unictype/test-scripts.c (ASSERT): Likewise.
73987         * tests/unictype/test-sy_c_ident.c (ASSERT): Likewise.
73988         * tests/unictype/test-sy_java_ident.c (ASSERT): Likewise.
73989         * tests/unistdio/test-u16-asnprintf1.c (ASSERT): Likewise.
73990         * tests/unistdio/test-u16-vasnprintf1.c (ASSERT): Likewise.
73991         * tests/unistdio/test-u16-vasnprintf2.c (ASSERT): Likewise.
73992         * tests/unistdio/test-u16-vasnprintf3.c (ASSERT): Likewise.
73993         * tests/unistdio/test-u16-vasprintf1.c (ASSERT): Likewise.
73994         * tests/unistdio/test-u16-vsnprintf1.c (ASSERT): Likewise.
73995         * tests/unistdio/test-u16-vsprintf1.c (ASSERT): Likewise.
73996         * tests/unistdio/test-u32-asnprintf1.c (ASSERT): Likewise.
73997         * tests/unistdio/test-u32-vasnprintf1.c (ASSERT): Likewise.
73998         * tests/unistdio/test-u32-vasnprintf2.c (ASSERT): Likewise.
73999         * tests/unistdio/test-u32-vasnprintf3.c (ASSERT): Likewise.
74000         * tests/unistdio/test-u32-vasprintf1.c (ASSERT): Likewise.
74001         * tests/unistdio/test-u32-vsnprintf1.c (ASSERT): Likewise.
74002         * tests/unistdio/test-u32-vsprintf1.c (ASSERT): Likewise.
74003         * tests/unistdio/test-u8-asnprintf1.c (ASSERT): Likewise.
74004         * tests/unistdio/test-u8-vasnprintf1.c (ASSERT): Likewise.
74005         * tests/unistdio/test-u8-vasnprintf2.c (ASSERT): Likewise.
74006         * tests/unistdio/test-u8-vasnprintf3.c (ASSERT): Likewise.
74007         * tests/unistdio/test-u8-vasprintf1.c (ASSERT): Likewise.
74008         * tests/unistdio/test-u8-vsnprintf1.c (ASSERT): Likewise.
74009         * tests/unistdio/test-u8-vsprintf1.c (ASSERT): Likewise.
74010         * tests/unistdio/test-ulc-asnprintf1.c (ASSERT): Likewise.
74011         * tests/unistdio/test-ulc-vasnprintf1.c (ASSERT): Likewise.
74012         * tests/unistdio/test-ulc-vasnprintf2.c (ASSERT): Likewise.
74013         * tests/unistdio/test-ulc-vasnprintf3.c (ASSERT): Likewise.
74014         * tests/unistdio/test-ulc-vasprintf1.c (ASSERT): Likewise.
74015         * tests/unistdio/test-ulc-vsnprintf1.c (ASSERT): Likewise.
74016         * tests/unistdio/test-ulc-vsprintf1.c (ASSERT): Likewise.
74017         * tests/uniwidth/test-u16-strwidth.c (ASSERT): Likewise.
74018         * tests/uniwidth/test-u16-width.c (ASSERT): Likewise.
74019         * tests/uniwidth/test-u32-strwidth.c (ASSERT): Likewise.
74020         * tests/uniwidth/test-u32-width.c (ASSERT): Likewise.
74021         * tests/uniwidth/test-u8-strwidth.c (ASSERT): Likewise.
74022         * tests/uniwidth/test-u8-width.c (ASSERT): Likewise.
74023         * tests/uniwidth/test-uc_width.c (ASSERT): Likewise.
74024         Reported by Eric Blake.
74026 2008-04-11  Bruno Haible  <bruno@clisp.org>
74028         * lib/wchar.in.h: Tweak comment.
74030 2008-04-11  Bruno Haible  <bruno@clisp.org>
74032         Fix __GNUC_STDC_INLINE__ predefine with Apple GCC on MacOS X 10.5.
74033         * gnulib-tool (func_emit_initmacro_start): Emit an invocation of
74034         gl_COMMON.
74035         * m4/gnulib-common.m4 (gl_COMMON, gl_COMMON_BODY): New macros.
74037 2008-04-11  Bruno Haible  <bruno@clisp.org>
74039         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add LIBINTL.
74041 2008-04-11  Simon Josefsson  <simon@josefsson.org>
74043         * lib/gc-gnulib.c: On Windows, use CryptGenRandom from CSP instead
74044         of attempting to use non-existing /dev/*random.  Based on patch
74045         from Adam Strzelecki <ono@java.pl> in
74046         <http://lists.gnu.org/archive/html/help-gsasl/2008-02/msg00000.html>.
74048 2008-04-08  Bruno Haible  <bruno@clisp.org>
74050         Add tentative support for emx+gcc.
74051         * lib/fbufmode.c (fbufmode) [__EMX__]: Add conditional code.
74052         * lib/fpurge.c (fpurge): Likewise.
74053         * lib/freadable.c (freadable): Likewise.
74054         * lib/freadahead.c (freadahead): Likewise.
74055         * lib/freading.c (freading): Likewise.
74056         * lib/freadptr.c (freadptr): Likewise.
74057         * lib/freadseek.c (freadptrinc): Likewise.
74058         * lib/fseeko.c (rpl_fseeko): Likewise.
74059         * lib/fseterr.c (fseterr): Likewise.
74060         * lib/fwritable.c (fwritable): Likewise.
74061         * lib/fwriting.c (fwriting): Likewise.
74062         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for emx+gcc.
74064 2008-04-09  Eric Blake  <ebb9@byu.net>
74066         Avoid some autoconf warnings.
74067         * m4/regex.m4 (gl_REGEX): s/AC_HELP_STRING/AS_HELP_STRING/.
74068         * m4/acl.m4 (gl_FUNC_ACL): Likewise.
74069         * m4/afs.m4 (gl_AFS): Likewise.
74070         * m4/gc-random.m4 (gl_GC_RANDOM): Likewise.
74071         * m4/include_next.m4 (gl_INCLUDE_NEXT): s/AC_FOREACH/m4_foreach_w/.
74072         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
74073         * m4/stdint.m4 (gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED)
74074         (gl_INTEGER_TYPE_SUFFIX): Likewise.
74075         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE)
74076         (AC_CHECK_DECLS_ONCE): Likewise.
74077         Rename file...
74078         * m4/onceonly.m4: ...to this, and delete 2.54 variant, now that
74079         gnulib-tool requires autoconf 2.59 or better.
74080         * gnulib-tool (func_get_filelist): s/\(onceonly\)_2_57.m4/\1.m4/.
74082 2008-04-08  Eric Blake  <ebb9@byu.net>
74084         Use 'git describe --match' if present (added in git 1.5.5).
74085         * build-aux/git-version-gen: Limit result to tags that match 'v*'
74086         if possible.
74088 2008-04-08  Bruno Haible  <bruno@clisp.org>
74090         Add tentative support for OpenServer.
74091         * lib/fbufmode.c (fbufmode): Add conditional define for _flag, _base,
74092         _ptr, _cnt.
74093         * lib/fpurge.c (fpurge): Likewise.
74094         * lib/freadable.c (freadable): Likewise.
74095         * lib/freadahead.c (freadahead): Likewise.
74096         * lib/freading.c (freading): Likewise.
74097         * lib/freadptr.c (freadptr): Likewise.
74098         * lib/freadseek.c (freadptrinc): Likewise.
74099         * lib/fseeko.c (rpl_fseeko): Likewise.
74100         * lib/fseterr.c (fseterr): Likewise.
74101         * lib/fwritable.c (fwritable): Likewise.
74102         * lib/fwriting.c (fwriting): Likewise.
74103         Reported by Roger Cornelius <rac@tenzing.org> and
74104         Brian K. White <brian@aljex.com>.
74106 2008-04-06  Jim Meyering  <meyering@redhat.com>
74108         * gnulib-tool (func_add_or_update): s/backuped/backed up/ in diagnostic
74110 2008-04-06  Bruno Haible  <bruno@clisp.org>
74112         Avoid possible error with non-ASCII bytes in UTF-8 locales.
74113         * tests/test-fprintf-posix.sh: Use "LC_ALL=C tr" instead of "tr".
74114         * tests/test-printf-posix.sh: Likewise.
74115         * tests/test-vfprintf-posix.sh: Likewise.
74116         * tests/test-vprintf-posix.sh: Likewise.
74117         * tests/test-xprintf-posix.sh: Likewise.
74119 2008-04-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74121         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT): Fix quoting,
74122         hide error from 'ls', needed on OS/2.
74123         Report by Elbert Pol <elbert.pol@gmail.com>.
74125 2008-04-04  Eric Blake  <ebb9@byu.net>
74127         Make test-fseeko.c failures meaningful.
74128         * tests/test-fseeko.c: Print line number on failure.
74129         * tests/test-fseek.c: Likewise.
74130         Reported by Nelson H. F. Beebe.
74132         Improve strtod bug detection check.
74133         * m4/strtod.m4 (gl_FUNC_STRTOD): Also check for hex-float parsing,
74134         required for Solaris 10.
74135         Reported by Bob Friesenhahn and Nelson H. F. Beebe.
74137 2008-04-04  Bruno Haible  <bruno@clisp.org>
74139         * modules/relocatable-prog-wrapper (Files): Add m4/environ.m4. Needed
74140         by m4/setenv.m4.
74142 2008-04-03  Eric Blake  <ebb9@byu.net>
74144         Ensure sane .version contents.
74145         * top/GNUmakefile (_dummy): Also delete .version when rebuilding
74146         version string.
74147         * build-aux/git-version-gen: Improve documentation.
74149         Make GNU make output nicer.
74150         * top/GNUmakefile [!_have-Makefile]: Add dependency on
74151         MAKECMDGOALS to enforce message for all command line targets.  Set
74152         srcdir for use in maint.mk.
74154         Another maintainer tweak.
74155         * top/GNUmakefile (_is-dist-target): Allow maintainer-distcheck as
74156         a target that regenerates version.
74158 2008-04-03  Jim Meyering  <meyering@redhat.com>
74160         vc-list-files: don't cause coreutils "make po-check" failure
74161         * build-aux/vc-list-files: Skip postprocessing when $2 is '.'
74163 2008-04-03  Eric Blake  <ebb9@byu.net>
74165         Allow VPATH usage of vc-list-files.
74166         * build-aux/vc-list-files (scriptversion): Add timestamp.
74167         (options): Add --help, --version, -C.
74168         (CVS): Support installed cvsu.
74170 2008-04-02  Bruno Haible  <bruno@clisp.org>
74172         Avoid some "statement with no effect" warnings from gcc.
74173         * tests/test-wctype.c (main): Explicitly ignore unused values.
74174         Reported by Jim Meyering.
74176 2008-04-02  Jim Meyering  <meyering@redhat.com>
74178         Avoid some warnings from "gcc -Wshadow".
74179         * tests/test-frexp.c (exp): Define to a different identifier.
74180         * tests/test-frexpl.c (exp): Likewise.
74182 2008-04-03  Jim Meyering  <meyering@redhat.com>
74184         bootstrap: remove dangling *.[ch] symlinks from lib
74185         * build-aux/bootstrap [dangling symlink removal]: Move find's
74186         -depth option to precede all others, to avoid a warning.
74187         Remove *.[ch] files too, and from "$source_base" (usually lib/).
74189 2008-04-02  Bruno Haible  <bruno@clisp.org>
74191         Avoid some warnings from "gcc -Wshadow".
74192         * tests/tests-vfprintf-posix.c (my_fprintf): Move after test_function.
74193         * tests/tests-vprintf-posix.c (my_printf): Move after test_function.
74194         * tests/tests-vsnprintf-posix.c (my_snprintf): Move after test_function.
74195         * tests/tests-vsprintf-posix.c (my_sprintf): Move after test_function.
74196         Reported by Jim Meyering.
74198 2008-04-01  Bruno Haible  <bruno@clisp.org>
74200         Fix test to work on IRIX 6.5 with cc.
74201         * tests/test-math.c (numeric_equal): New function.
74202         (main): Use it.
74204 2008-04-01  Bruno Haible  <bruno@clisp.org>
74206         * doc/posix-headers/math.texi: Refine documentation of NAN problem.
74208 2008-04-01  Bruno Haible  <bruno@clisp.org>
74210         * tests/test-vasnprintf-posix.c: Include nan.h instead of <math.h>.
74211         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
74212         * modules/vasnprintf-posix-tests (Files): Add tests/nan.h.
74213         (Depends-on): Remove math.
74215         * tests/test-vasprintf-posix.c: Include nan.h instead of <math.h>.
74216         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
74217         * modules/vasprintf-posix-tests (Files): Add tests/nan.h.
74218         (Depends-on): Remove math.
74220         * tests/test-snprintf-posix.h: Include nan.h instead of <math.h>.
74221         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
74222         * modules/snprintf-posix-tests (Files): Add tests/nan.h.
74223         (Depends-on): Remove math.
74224         * modules/vsnprintf-posix-tests (Files): Add tests/nan.h.
74225         (Depends-on): Remove math.
74227         * tests/test-sprintf-posix.h: Include nan.h instead of <math.h>.
74228         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
74229         * modules/sprintf-posix-tests (Files): Add tests/nan.h.
74230         (Depends-on): Remove math.
74231         * modules/vsprintf-posix-tests (Files): Add tests/nan.h.
74232         (Depends-on): Remove math.
74234         * tests/test-round1.c: Include nan.h.
74235         (main): Use NaNd instead of NAN.
74236         * modules/round-tests (Files): Add tests/nan.h.
74238         * tests/test-trunc1.c: Include nan.h.
74239         (main): Use NaNd instead of NAN.
74240         * modules/trunc-tests (Files): Add tests/nan.h.
74242         * tests/test-roundf1.c: Include nan.h.
74243         (main): Use NaNf instead of NAN.
74244         * modules/roundf-tests (Files): Add tests/nan.h.
74246         * tests/test-truncf1.c: Include nan.h.
74247         (main): Use NaNf instead of NAN.
74248         * modules/truncf-tests (Files): Add tests/nan.h.
74250         * tests/test-ceilf1.c: Include nan.h.
74251         (main): Use NaNf instead of NAN.
74252         * modules/ceilf-tests (Files): Add tests/nan.h.
74254         * tests/test-floorf1.c: Include nan.h.
74255         (main): Use NaNf instead of NAN.
74256         * modules/floorf-tests (Files): Add tests/nan.h.
74258         * tests/test-isnanf.c: Include nan.h instead of <math.h>.
74259         (main): Use NaNf instead of NAN.
74260         * modules/isnanf-nolibm-tests (Files): Add tests/nan.h.
74262         * tests/test-isnand.c: Include nan.h instead of <math.h>.
74263         (main): Use NaNd instead of NAN.
74264         * modules/isnand-nolibm-tests (Files): Add tests/nan.h.
74266         * tests/test-frexp.c: Include nan.h.
74267         (main): Use NaNd instead of NAN.
74268         * modules/frexp-tests (Files): Add tests/nan.h.
74270         * lib/isnan.c: Don't include <math.h>.
74271         (FUNC): Don't use NAN macro.
74272         * modules/isnand-nolibm (Depends-on): Remove math.
74273         * modules/isnanf-nolibm (Depends-on): Remove math.
74274         * modules/isnanl (Depends-on): Remove math.
74275         * modules/isnanl-nolibm (Depends-on): Remove math.
74277         * tests/nan.h: New file.
74279 2008-04-01  Eric Blake  <ebb9@byu.net>
74281         Fix typos.
74282         * tests/test-strtod.c (main): s/FLT_/DBL_/ for minimum and epsilon
74283         values to be the right type.
74285         For now, cater to gnulib strtod inaccuracies.
74286         * tests/test-strtod.c (main): Allow 1-ulp error on expected
74287         fractional results.  While not as nice from a QoI perspective, it
74288         is a quicker patch than correctly implementing decimal to binary
74289         rounding.
74291 2008-03-31  Eric Blake  <ebb9@byu.net>
74293         Guarantee a definition of NAN.
74294         * lib/math.in.h (NAN): Define if missing.
74295         * tests/test-math.c (main): Test it.
74296         * doc/posix-headers/math.texi (math.h): Document this.
74297         * lib/isnan.c (rpl_isnand): Use it.
74298         * tests/test-ceilf1.c (NaN): Delete, and use NAN instead.
74299         * tests/test-floorf1.c (NaN): Likewise.
74300         * tests/test-frexp.c (NaN): Likewise.
74301         * tests/test-isnand.c (NaN): Likewise.
74302         * tests/test-isnanf.c (NaN): Likewise.
74303         * tests/test-round1.c (NaN): Likewise.
74304         * tests/test-roundf1.c (NaN): Likewise.
74305         * tests/test-snprintf-posix.h (NaN): Likewise.
74306         * tests/test-sprintf-posix.h (NaN): Likewise.
74307         * tests/test-trunc1.c (NaN): Likewise.
74308         * tests/test-truncf1.c (NaN): Likewise.
74309         * tests/test-vasnprintf-posix.c (NaN): Likewise.
74310         * tests/test-vasprintf-posix.c (NaN): Likewise.
74311         * modules/isnand-nolibm (Depends-on): Add math.
74312         * modules/isnanf-nolibm (Depends-on): Likewise.
74313         * modules/isnanl (Depends-on): Likewise.
74314         * modules/isnanl-nolibm (Depends-on): Likewise.
74315         * modules/snprintf-posix-tests (Depends-on): Likewise.
74316         * modules/sprintf-posix-tests (Depends-on): Likewise.
74317         * modules/vsnprintf-posix-tests (Depends-on): Likewise.
74318         * modules/vsprintf-posix-tests (Depends-on): Likewise.
74319         * modules/vasnprintf-posix-tests (Depends-on): Likewise.
74320         * modules/vasprintf-posix-tests (Depends-on): Likewise.
74322 2008-03-31  Bruno Haible  <bruno@clisp.org>
74324         * tests/test-strtod.c (main): Update results for OSF/1 platforms.
74325         * doc/posix-functions/strtod.texi: Likewise.
74327 2008-03-31  Bruno Haible  <bruno@clisp.org>
74329         * tests/test-strtod.c (main): Don't use C99 syntax.
74331 2008-03-31  Bruno Haible  <bruno@clisp.org>
74333         * tests/test-strtod.c (main): Don't test NAN macro. Needed for Solaris.
74334         Reported by Eric Blake.
74336 2008-03-31  Jim Meyering  <meyering@redhat.com>
74338         Don't compare actual signbit return values.
74339         * tests/test-strtod.c (main): Rather, compare only their
74340         zero/non-zero nature.
74342 2008-03-31  Eric Blake  <ebb9@byu.net>
74344         More strtod documentation.
74345         * doc/posix-functions/strtod.texi (strtod): Interpret more test
74346         failures as distinct bugs.
74348 2008-03-30  Paul Eggert  <eggert@cs.ucla.edu>
74350         * lib/wchar.in.h [defined __need_mbstate_t]: Just include <wchar.h>.
74351         Problem reported by Erik Benada in
74352         <http://lists.gnu.org/archive/html/bug-gnulib/2008-03/msg00249.html>.
74354 2008-03-30  Bruno Haible  <bruno@clisp.org>
74356         * tests/test-strtod.c: Add comments about which assertion fails on which
74357         platform.
74358         * doc/posix-functions/strtod.texi: Add info about many more platforms.
74360 2008-03-30  Eric Blake  <ebb9@byu.net>
74362         Test signbit behavior on zeros.
74363         * tests/test-signbit.c (test_signbitf): Add tests for zero.
74364         (test_signbitd, test_signbitl): Likewise.
74366         More strtod touchups.
74367         * tests/test-strtod.c (main): Ignore tests for signbit on NaN, and
74368         sign of negative underflow, for now.  Use .5, not .1.
74369         * doc/posix-functions/strtod.texi (strtod): Mention these
74370         limitations.
74371         Reported by Jim Meyering.
74373 2008-03-30  Bruno Haible  <bruno@clisp.org>
74375         * lib/striconveh.h (mem_iconveh, str_iconveh): Optimize the conversion
74376         from UTF-8 to UTF-8//TRANSLIT in the same way as from UTF-8 to UTF-8.
74378 2008-03-30  Bruno Haible  <bruno@clisp.org>
74380         Avoid failure when attempting to return empty iconv results on some
74381         platforms.
74382         * lib/striconveh.c (mem_cd_iconveh_internal): In the final memory
74383         allocation, don't report ENOMEM when the resulting string is empty.
74385 2008-03-30  Bruno Haible  <bruno@clisp.org>
74387         Fix buffer overrun.
74388         * lib/vasnprintf.c (VASNPRINTF): If !USE_SNPRINTF && pad_ourselves:
74389         Don't consider the width for tmp_length. Check count against tmp_length
74390         before doing the padding. Ensure enough allocation during padding.
74392 2008-03-30  Eric Blake  <ebb9@byu.net>
74394         strtod touchups.
74395         * lib/strtod.c (strtod): Avoid compiler warnings.
74396         Reported by Jim Meyering.
74398 2008-03-30  Bruno Haible  <bruno@clisp.org>
74400         * lib/unistdio/u-vsprintf.h (EOVERFLOW): Remove fallback.
74401         * modules/unistdio/ulc-vsprintf (Depends-on): Add EOVERFLOW.
74402         * modules/unistdio/u8-vsprintf (Depends-on): Add EOVERFLOW.
74403         * modules/unistdio/u8-u8-vsprintf (Depends-on): Add EOVERFLOW.
74404         * modules/unistdio/u16-vsprintf (Depends-on): Add EOVERFLOW.
74405         * modules/unistdio/u16-u16-vsprintf (Depends-on): Add EOVERFLOW.
74406         * modules/unistdio/u32-vsprintf (Depends-on): Add EOVERFLOW.
74407         * modules/unistdio/u32-u32-vsprintf (Depends-on): Add EOVERFLOW.
74409         * lib/unistdio/u-vsnprintf.h (EOVERFLOW): Remove fallback.
74410         * modules/unistdio/ulc-vsnprintf (Depends-on): Add EOVERFLOW.
74411         * modules/unistdio/u8-vsnprintf (Depends-on): Add EOVERFLOW.
74412         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Add EOVERFLOW.
74413         * modules/unistdio/u16-vsnprintf (Depends-on): Add EOVERFLOW.
74414         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Add EOVERFLOW.
74415         * modules/unistdio/u32-vsnprintf (Depends-on): Add EOVERFLOW.
74416         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Add EOVERFLOW.
74418         * lib/unistdio/u-vasprintf.h (EOVERFLOW): Remove fallback.
74419         * modules/unistdio/ulc-vasprintf (Depends-on): Add EOVERFLOW.
74420         * modules/unistdio/u8-vasprintf (Depends-on): Add EOVERFLOW.
74421         * modules/unistdio/u8-u8-vasprintf (Depends-on): Add EOVERFLOW.
74422         * modules/unistdio/u16-vasprintf (Depends-on): Add EOVERFLOW.
74423         * modules/unistdio/u16-u16-vasprintf (Depends-on): Add EOVERFLOW.
74424         * modules/unistdio/u32-vasprintf (Depends-on): Add EOVERFLOW.
74425         * modules/unistdio/u32-u32-vasprintf (Depends-on): Add EOVERFLOW.
74427         * lib/unistdio/ulc-vfprintf.c (EOVERFLOW): Remove fallback.
74428         * modules/unistdio/ulc-vfprintf (Depends-on): Add EOVERFLOW.
74430         * lib/unistdio/ulc-fprintf.c (EOVERFLOW): Remove fallback.
74431         * modules/unistdio/ulc-fprintf (Depends-on): Add EOVERFLOW.
74433         * lib/xvasprintf.c (EOVERFLOW): Remove fallback.
74434         * modules/xvasprintf (Depends-on): Add EOVERFLOW.
74436         * lib/vsprintf.c (EOVERFLOW): Remove fallback.
74437         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Drop gl_EOVERFLOW.
74438         * modules/vsprintf-posix (Depends-on): Add EOVERFLOW.
74440         * lib/vsnprintf.c (EOVERFLOW): Remove fallback.
74441         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Drop gl_EOVERFLOW.
74442         * modules/vsnprintf (Depends-on): Add EOVERFLOW.
74444         * lib/vfprintf.c (EOVERFLOW): Remove fallback.
74445         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Drop gl_EOVERFLOW.
74446         * modules/vfprintf-posix (Depends-on): Add EOVERFLOW.
74448         * lib/vasprintf.c (EOVERFLOW): Remove fallback.
74449         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Drop gl_EOVERFLOW.
74450         * modules/vasprintf (Depends-on): Add EOVERFLOW.
74452         * lib/vasnprintf.c (EOVERFLOW): Remove fallback.
74453         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Drop gl_EOVERFLOW.
74454         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Drop gl_EOVERFLOW.
74455         * modules/vasnprintf (Files): Remove m4/eoverflow.m4.
74456         (Depends-on): Add EOVERFLOW.
74457         * modules/unistdio/ulc-vasnprintf (Files): Remove m4/eoverflow.m4.
74458         (Depends-on): Add EOVERFLOW.
74459         * modules/unistdio/u8-vasnprintf (Files): Remove m4/eoverflow.m4.
74460         (Depends-on): Add EOVERFLOW.
74461         * modules/unistdio/u8-u8-vasnprintf (Files): Remove m4/eoverflow.m4.
74462         (Depends-on): Add EOVERFLOW.
74463         * modules/unistdio/u16-vasnprintf (Files): Remove m4/eoverflow.m4.
74464         (Depends-on): Add EOVERFLOW.
74465         * modules/unistdio/u16-u16-vasnprintf (Files): Remove m4/eoverflow.m4.
74466         (Depends-on): Add EOVERFLOW.
74467         * modules/unistdio/u32-vasnprintf (Files): Remove m4/eoverflow.m4.
74468         (Depends-on): Add EOVERFLOW.
74469         * modules/unistdio/u32-u32-vasnprintf (Files): Remove m4/eoverflow.m4.
74470         (Depends-on): Add EOVERFLOW.
74472         * lib/sprintf.c (EOVERFLOW): Remove fallback.
74473         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Drop gl_EOVERFLOW.
74474         * modules/sprintf-posix (Depends-on): Add EOVERFLOW.
74476         * lib/snprintf.c (EOVERFLOW): Remove fallback.
74477         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Drop gl_EOVERFLOW.
74478         * modules/snprintf (Depends-on): Add EOVERFLOW.
74480         * lib/poll.c (EOVERFLOW): Remove fallback.
74481         * modules/poll (Depends-on): Add EOVERFLOW.
74483         * lib/getugroups.c (EOVERFLOW): Remove fallback.
74484         * modules/getugroups (Depends-on): Add EOVERFLOW.
74486         * lib/getdelim.c (EOVERFLOW): Remove fallback.
74487         * modules/getdelim (Depends-on): Add EOVERFLOW.
74489         * lib/ftell.c (EOVERFLOW): Remove fallback.
74490         * modules/ftell (Depends-on): Add EOVERFLOW.
74492         * lib/fprintf.c (EOVERFLOW): Remove fallback.
74493         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Drop gl_EOVERFLOW.
74494         * modules/fprintf-posix (Depends-on): Add EOVERFLOW.
74496         * lib/c-stack.c (EOVERFLOW): Remove unused fallback.
74498         * modules/EOVERFLOW-tests: New file.
74499         * tests/test-EOVERFLOW.c: New file.
74501         * modules/EOVERFLOW: New file.
74502         * doc/posix-headers/errno.texi: Mention EOVERFLOW portability problem.
74504 2008-03-30  Bruno Haible  <bruno@clisp.org>
74506         Fix bug introduced on 2007-06-10.
74507         * lib/vasnprintf.c (VASNPRINTF): When performing zero-padding, use
74508         spaces instead of 0 digits for 's' also when ENABLE_UNISTDIO.
74510 2008-03-30  Bruno Haible  <bruno@clisp.org>
74512         Improve freadseek's efficiency after ungetc.
74513         * lib/freadseek.c: Include freadahead.h.
74514         (freadptrinc): New function, extracted from freadseek.
74515         (freadseek): Use it in a loop. Use freadahead to determine the number
74516         of loop iterations.
74517         * modules/freadseek (Depends-on): Add freadahead.
74518         (configure.ac): Require AC_C_INLINE.
74520 2008-03-30  Bruno Haible  <bruno@clisp.org>
74522         * lib/freadseek.c (freadseek): Don't ignore the return value of
74523         freadptr.
74525 2008-03-29  Eric Blake  <ebb9@byu.net>
74527         Add hex float support.
74528         * modules/strtod (Depends-on): Add c-ctype.
74529         (Link): Mention POW_LIB.
74530         * lib/strtod.c (strtod): Recognize hex floats.  Don't allow
74531         whitespace between 'e' and exponent.
74532         * tests/test-strtod.c (main): Enable hex float tests.
74533         * doc/posix-functions/strtod.texi (strtod): Document what gnulib
74534         now provides.
74536         Document various strtod bugs, with some fixes.
74537         * doc/posix-functions/strtod.texi (strtod): Document bugs with
74538         "-0x", "inf", "nan", and hex constants.
74539         * doc/posix-functions/atof.texi (atof): Likewise.
74540         * modules/stdlib (Makefile.am): Support strtod.
74541         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
74542         * m4/strtod.m4 (gl_FUNC_STRTOD): Fit in stdlib framework, and
74543         detect additional strtod bugs.
74544         * lib/stdlib.in.h (rpl_strtod): Add declarations.
74545         * lib/strtod.c (strtod): Return -0.0 on negative underflow.  Use
74546         bool where appropriate.  Parse 'inf' and 'nan'.
74547         * tests/test-strtod.c: New file.
74548         * modules/strtod (Depends-on): Add stdbool, stdlib.
74549         (configure.ac): Turn on module indicator.
74550         * modules/strtod-tests: New module.
74552 2008-03-29  Eric Blake  <ebb9@byu.net>
74554         Fix ftell on mingw.
74555         * lib/ftell.c (EOVERFLOW): Define if the system lacks it.
74556         * modules/ftell-tests (Depends-on): Add binary-io.
74557         * modules/ftello-tests (Depends-on): Likewise.
74558         * tests/test-ftell.c (main): Enhance test to cover behavior after
74559         ungetc.  Enforce binary mode.
74560         * tests/test-ftello.c (main): Likewise.
74562         Pass test-freadseek on cygwin.
74563         * modules/freadseek (Depends-on): Use freadptr, not freadahead.
74564         * lib/freadseek.c (freadseek): Don't increment beyond bounds of
74565         ungetc buffer.
74567         * tests/test-fflush2.c (main): Fix typo.
74569 2008-03-29  Bruno Haible  <bruno@clisp.org>
74571         * tests/test-fflush2.c (main): Temporarily disable the contents of
74572         this test.
74573         * m4/fflush.m4 (gl_FUNC_FFLUSH): Add a TODO.
74574         Reported by Eric Blake.
74576 2008-03-28  Simon Josefsson  <simon@josefsson.org>
74578         * lib/gc.h (enum Gc_hash): Add GC_SHA224.
74579         (GC_SHA224_DIGEST_SIZE): Add.
74581         * lib/gc-libgcrypt.c (gc_hash_open): Handle SHA-224.
74582         (gc_hash_digest_length): Likewise.
74583         (gc_hash_buffer): Likewise.
74585 2008-03-25  Bruno Haible  <bruno@clisp.org>
74587         * doc/gnulib-tool.texi (gettextize and autopoint): Explain in more
74588         detail which gettext release to use.
74589         Reported by Simon Josefsson.
74591 2008-03-26  Jim Meyering  <meyering@redhat.com>
74593         gnumakefile: remove file from $(top_builddir), not from $(top_srcdir)
74594         * modules/gnumakefile (clean-GNUmakefile): Also, use
74595         test ... && ... || : syntax rather than if-then ... fi.
74597         gnumakefile: Don't double-quote-expand $(VPATH) value.
74598         * modules/gnumakefile (clean-GNUmakefile): Use single quotes.
74600 2008-03-24  Eric Blake  <ebb9@byu.net>
74602         Alter GNUmakefile to install into top directory.
74603         * modules/maintainer-makefile: Split, and add dependency...
74604         * modules/gnumakefile: to this new module.
74605         * build-aux/GNUmakefile: Move...
74606         * top/GNUmakefile: ...here.
74607         * build-aux/maint.mk: Move...
74608         * top/maint.mk: ...here.
74609         * MODULES.html.sh (Support for maintaining...): Document new
74610         module.
74612 2008-03-23  Bruno Haible  <bruno@clisp.org>
74614         * gnulib-tool: New options --vc-files, --no-vc-files.
74615         (func_usage): Document them.
74616         (vc_files): New variable.
74617         (func_import): Consider vc_files.
74618         (func_create_testdir): Set vc_files to empty.
74619         Suggested by Jim Meyering and Karl Berry.
74621 2008-03-23  Bruno Haible  <bruno@clisp.org>
74623         Fix regex compilation error on HP-UX 11.
74624         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_TYPE_MBSTATE_T.
74625         * modules/regex (Files): Add m4/mbstate_t.m4.
74626         Reported by Ton Voon <ton.voon@altinity.com>.
74628 2008-03-23  Bruno Haible  <bruno@clisp.org>
74630         * doc/gnulib-tool.texi (gettextize and autopoint): New section.
74632 2008-03-23  Eric Blake  <ebb9@byu.net>
74633             Bruno Haible  <bruno@clisp.org>
74635         Install files from top/ in the destination directory.
74636         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
74637         augmentation also for the files from top/.
74638         (func_import, func_create_testdir): Rewrite file names:
74639         top/filename -> filename.
74641 2008-03-23  Bruno Haible  <bruno@clisp.org>
74643         Tweak "gnulib --version" output.
74644         * gnulib-tool (func_version): Replace "-dirty" suffix with "-modified".
74646 2008-03-23  Bruno Haible  <bruno@clisp.org>
74648         Tweak "gnulib --version" output.
74649         * gnulib-tool (func_version): Use date of last commit to ChangeLog,
74650         rather than contents of ChangeLog, when possible.
74652 2008-03-21  Eric Blake  <ebb9@byu.net>
74654         More --version tweaks.
74655         * gnulib-tool (func_version): Obey GNU Coding Standards.  Output
74656         date of last ChangeLog entry.
74658 2008-03-21  Jim Meyering  <meyering@redhat.com>
74660         * build-aux/GNUmakefile (_have-git-version-gen): Split long line.
74662 2008-03-20  Eric Blake  <ebb9@byu.net>
74664         VPATH fix.
74665         * build-aux/GNUmakefile (_have_git-version-gen): Look in correct dir.
74667 2008-03-20  Simon Josefsson  <simon@josefsson.org>
74669         * build-aux/GNUmakefile: Make git-version-gen optional.  Add
74670         _build-aux variable.  Suggested by Eric Blake <ebb9@byu.net>.
74672 2008-03-20  Eric Blake  <ebb9@byu.net>
74674         Sync GNUmakefile with coreutils.
74675         * build-aux/GNUmakefile (have-Makefile): Rename...
74676         (_have-Makefile): ...to this, for namespace consideration.
74677         (GNUmakefile.cfg): Include, if present.
74678         (_autoreconf): Define a default.
74679         (_is-dist-target): New rule for rebuilds to pick up intra-release
74680         version.
74681         (maint-cfg.mk): Rename...
74682         (cfg.mk): ...to this.
74684 2008-03-18  Jim Meyering  <meyering@redhat.com>
74686         New script and module: mktempd
74687         * MODULES.html.sh (maint+release support): Add mktempd.
74688         * build-aux/mktempd: New file.
74689         * modules/mktempd: New file.
74691 2008-03-15  Jim Meyering  <meyering@redhat.com>
74693         Undo last change.
74694         * lib/sha1.c, lib/md5.c: 63 != ~63.
74695         Reported by Andreas Schwab.
74697         sha1.c, md5.c: Hoist a redundant expression.
74698         * lib/sha1.c (sha1_process_bytes): AND-off the low bits in
74699         "ctx->buflen" only once, before calling *_process_block.
74700         * lib/md5.c (md5_process_bytes): Likewise.
74702 2008-03-14  Eric Blake  <ebb9@byu.net>
74704         Bump copyright year in files generated by gnulib-tool.
74705         * gnulib-tool (func_emit_copyright_notice): Extract copyright from
74706         gnulib-tool, rather than hard-coding it.
74708         Fix 'gnulib-tool --version' output to work with git.
74709         * gnulib-tool (func_gnulib_dir): New function, extracted from...
74710         (startup): ...here.
74711         (func_version): Use it to invoke git-version-gen, rather than
74712         relying on CVS keyword expansion.  Modernize wording.
74713         (cvsdatestamp, last_checkin_date, version): Kill unused
74714         variables.
74716 2008-03-12  Jim Meyering  <meyering@redhat.com>
74718         Recognize optional cast of the argument to free.
74719         * build-aux/useless-if-before-free: Update regexps.
74721         * build-aux/bootstrap (gnulib_tool): Remove trailing blanks.
74723 2008-03-11  Bruno Haible  <bruno@clisp.org>
74725         Extend AC_LIB_LINKFLAGS to the situation of several libraries provided
74726         by a single package.
74727         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): New macro.
74728         (AC_LIB_LINKFLAGS_BODY): Use the information stored by
74729         AC_LIB_FROMPACKAGE. Use AC_ARG_WITH instead of AC_LIB_ARG_WITH.
74730         Reported by Sam Steingold <sds@gnu.org>.
74732 2008-03-12  Sergey Poznyakoff  <gray@gnu.org.ua>
74734         * build-aux/bootstrap (version_controlled_file): Adapt for SVN
74735         repositories.
74737 2008-03-11  Bruno Haible  <bruno@clisp.org>
74739         Avoid conflicts between local macro definitions.
74740         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
74741         AC_LIB_LINKFLAGS_BODY): Use pushdef/popdef instead of define/undefine.
74743 2008-03-10  Peter O'Gorman  <bug-gnulib@mlists.thewrittenword.com>
74744             Bruno Haible  <bruno@clisp.org>
74746         Make va_copy work with some version of xlc on AIX 5.1.
74747         * lib/stdarg.in.h: New file.
74748         * m4/stdarg.m4 (gl_STDARG_H): Initialize STDARG_H and NEXT_STDARG_H.
74749         On AIX, use a <stdarg.h> file substitute.
74750         * modules/stdarg (Files): Add lib/stdarg.in.h.
74751         (Depends-on): Add include_next.
74752         (Makefile.am): Build a stdarg.h substitute if requested.
74753         * doc/posix-functions/va_copy.texi: Document the platforms lacking it.
74755 2008-03-10  Bruno Haible  <bruno@clisp.org>
74757         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Document a restriction.
74758         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
74759         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
74761 2008-03-10  Bruno Haible  <bruno@clisp.org>
74763         * modules/stdlib (Depends-on): Add include_next, remove
74764         absolute-header.
74766 2008-03-09  Bruno Haible  <bruno@clisp.org>
74768         * lib/freadahead.h (freadahead): Document more precisely.
74769         * lib/freadahead.c (freadahead): When an ungetc is in effect, return
74770         the sum of both buffer sizes.
74771         * tests/test-freadahead.c (main): Also test behaviour after ungetc.
74772         * NEWS: Document the change.
74774 2008-03-09  Bruno Haible  <bruno@clisp.org>
74776         Extend freadptr to return also the buffer size.
74777         * lib/freadptr.h (freadptr): Add sizep argument.
74778         * lib/freadptr.c: Include freadptr.h, not freadahead.h.
74779         (freadptr): Add sizep argument. Determine buffer size like freadahead
74780         does.
74781         * tests/test-freadptr.c: Don't include freadahead.h.
74782         (main): Adapt for new calling convention of freadptr.
74783         * tests/test-freadptr2.c: New file, based on tests/test-freadahead.c.
74784         * tests/test-freadptr2.sh: New file, based on tests/test-freadahead.sh.
74785         * modules/freadptr-tests (Files): Add tests/test-freadptr2.c,
74786         tests/test-freadptr2.sh.
74787         (Depends): Remove freadahead.
74788         (TESTS): Add test-freadptr2.sh.
74789         (check_PROGRAMS): Add test-freadptr2.
74791 2008-03-09  Bruno Haible  <bruno@clisp.org>
74793         * doc/Makefile (%.pdf): Explain how to remedy the save_size error.
74794         Report and solution by Simon Josefsson.
74796 2008-03-06  Bruno Haible  <bruno@clisp.org>
74798         Make fflush after ungetc work on BSD platforms.
74799         * lib/fflush.c (rpl_fflush): Discard ungetc buffer if possible.
74800         * tests/test-fflush2.c: New file.
74801         * tests/test-fflush2.sh: New file.
74802         * modules/fflush-tests (Files): Add tests/test-fflush2.sh,
74803         tests/test-fflush2.c.
74804         (Makefile.am): Build test-fflush2 and run test-fflush2.sh.
74805         * doc/posix-functions/fflush.texi: Document fflush after ungetc bug.
74807 2008-03-06  Eric Blake  <ebb9@byu.net>
74809         Likewise for ftello.
74810         * modules/ftello (Dependencies): Add extensions.
74811         * m4/ftello.m4 (gl_FUNC_FTELLO): Require AC_USE_SYSTEM_EXTENSIONS.
74813 2008-03-06  Bruno Haible  <bruno@clisp.org>
74815         * modules/fseeko (Dependencies): Add extensions.
74816         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require AC_USE_SYSTEM_EXTENSIONS.
74817         Needed on glibc systems.
74819 2008-03-06  Bruno Haible  <bruno@clisp.org>
74821         * doc/gnulib-tool.texi (@nosuchmodulenote): Avoid line break inside
74822         email address.
74823         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
74825 2008-03-06  Bruno Haible  <bruno@clisp.org>
74827         * users.txt: Add libgnupdf.
74829 2008-03-06  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
74831         * doc/gnulib-tool.texi (@nosuchmodulenote): New macro.
74832         (Header File Substitutes, Function Substitutes,
74833         Glibc Header File Substitutes, Glibc Function Substitutes): Use it.
74834         (Build robot for gnulib): Fix typo.
74836 2008-03-06  Bruno Haible  <bruno@clisp.org>
74838         * doc/gnulib-tool.texi (VCS Issues): Small updates.
74839         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
74841 2008-03-06  Bruno Haible  <bruno@clisp.org>
74843         * doc/func.texi: New file, extracted from doc/gnulib.texi.
74844         * doc/gnulib.texi: Include it.
74846 2008-03-06  Simon Josefsson  <simon@josefsson.org>
74848         * modules/func (License): Change license to unlimited; there was
74849         no LGPL parts in the module anyway.
74851 2008-03-06  Simon Josefsson  <simon@josefsson.org>
74853         * modules/__func__: Renamed to modules/func.
74854         * modules/__func__-tests: Renamed to modules/func-tests.
74855         * tests/test-__func__.c: Renamed to tests/test-func.c.
74856         * m4/__func__.m4: Renamed to m4/func.m4.
74857         * doc/gnulib.texi (__func__): Section renamed to func.
74858         Suggested by Eric Blake <ebb9@byu.net>.
74860 2008-03-06  Simon Josefsson  <simon@josefsson.org>
74862         * doc/gnulib.texi (__func__): Use C99 terminology when talking
74863         about __func__.  Make example self-contained.  Suggested by Eric
74864         Blake <ebb9@byu.net>.
74866         * tests/test-__func__.c (main): Avoid extraneous () around __func.
74867         Suggested by Eric Blake <ebb9@byu.net>.
74869 2008-03-06  Simon Josefsson  <simon@josefsson.org>
74871         * modules/__func__: New file.
74872         * modules/__func__-tests: New file.
74873         * tests/test-__func__.c: New file.
74874         * m4/__func__.m4: New file.
74875         * doc/gnulib.texi (__func__): Document __func__ module.
74877 2008-03-05  Simon Josefsson  <simon@josefsson.org>
74879         * modules/byteswap (License): Re-license as LGPLv2+.
74881 2008-03-05  Simon Josefsson  <simon@josefsson.org>
74883         * doc/Makefile: Add pdf target.
74885 2008-03-05  Simon Josefsson  <simon@josefsson.org>
74887         * modules/inline (License): Use 'unlimited', since there are only
74888         *.m4 files in this module.
74890 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
74891             Bruno Haible  <bruno@clisp.org>
74893         Add support for HP C 7.1 on OpenVMS 8.3.
74894         * lib/alloca.in.h (alloca): Define as alias for DEC C on VMS.
74896 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
74898         Update VMS specifics.
74899         * lib/getopt.c [VMS]: Remove include of unixlib.h.
74901 2008-03-02  Jim Meyering  <meyering@redhat.com>
74903         Remove the last dependency on the "free" module.
74904         * m4/readutmp.m4 (gl_READUTMP): Don't require gl_FUNC_FREE.
74905         Reported by Bob Proulx.
74907         * lib/getdelim.c (getdelim): Don't leak memory upon failed realloc.
74909         Remove useless "if" tests before free.  Deprecate "free" module.
74910         * doc/posix-functions/free.texi: Mention that this
74911         module is no longer useful.
74912         * modules/free (Notice): Say this module is obsolete.
74913         * modules/readutmp (Depends-on): Remove free.
74914         * lib/save-cwd.c (free_cwd): Remove useless "if" before free.
74915         * lib/putenv.c (putenv): Likewise.
74916         * lib/gc-gnulib.c (gc_cipher_close): Likewise.
74917         * lib/getaddrinfo.c (freeaddrinfo): Likewise.
74918         * tests/test-c-strcasestr.c (main): Likewise.
74919         * tests/test-c-strstr.c (main): Likewise.
74920         * tests/test-mbscasestr1.c (main): Likewise.
74921         * tests/test-mbscasestr2.c (main): Likewise.
74922         * tests/test-mbsstr1.c (main): Likewise.
74923         * tests/test-mbsstr2.c (main): Likewise.
74924         * tests/test-memmem.c (main): Likewise.
74925         * tests/test-strcasestr.c (main): Likewise.
74926         * tests/test-striconv.c (main): Likewise.
74927         * tests/test-striconveh.c (main): Likewise.
74928         * tests/test-striconveha.c (main): Likewise.
74929         * tests/test-strstr.c (main): Likewise.
74931         * build-aux/git-version-gen: Adjust a comment and the Usage string.
74933         bootstrap: sync from coreutils again
74934         * build-aux/bootstrap: Remove dangling m4/*.m4 symlinks.
74936 2008-03-01  Jim Meyering  <meyering@redhat.com>
74938         bootstrap: sync from coreutils
74939         * build-aux/bootstrap (update_po_files): Copy a .po file into place
74940         also when the target doesn't exist.
74942 2008-03-01  Eric Blake  <ebb9@byu.net>
74944         Fix bugs in last patch.
74945         * lib/memchr2.c (memchr2): Fix typo.
74946         * tests/test-memchr2.c: Test previous bug, and don't use GNU
74947         extension.
74948         Reported by Bruce Korb.
74950         New module 'memchr2'.
74951         * modules/memchr2: New file.
74952         * modules/memchr2-tests: Likewise.
74953         * lib/memchr2.h: Likewise.
74954         * lib/memchr2.c: Likewise, based on memchr.c.
74955         * tests/test-memchr2.c: New test.
74956         * MODULES.html.sh (String handling): Add memchr2.
74958 2008-02-29  Bruno Haible  <bruno@clisp.org>
74960         * modules/freadseek-tests: New file.
74961         * tests/test-freadseek.sh: New file.
74962         * tests/test-freadseek.c: New file.
74964         New module 'freadseek'.
74965         * modules/freadseek: New file.
74966         * lib/freadseek.h: New file.
74967         * lib/freadseek.c: New file.
74968         * MODULES.html.sh (File stream based Input/Output): Add freadseek.
74970 2008-02-29  Sergey Poznyakoff  <gray@gnu.org.ua>
74972         * users.txt: Add anubis, cpio, mailfromd, mailutils, radius,
74973         wydawca.
74975         * m4/argp.m4 (gl_ARGP): Use AC_TRY_LINK to test if
74976         program_invocation_name and program_invocation_short_name are
74977         present.
74979 2008-02-28  Bruno Haible  <bruno@clisp.org>
74981         * tests/test-freadptr.c: Add a test for behaviour after ungetc.
74982         * tests/test-freadptr.sh: Also test non-seekable stdin.
74984 2008-02-28  Sergey Poznyakoff  <gray@gnu.org.ua>
74986         * build-aux/bootstrap (source_base, m4_base)
74987         (doc_base, tests_base): New variables.
74988         (gnulib_tool_options): Do not hardcode base directories, use
74989         the above variables instead.
74991 2008-02-28  Atsushi SAKAI  <sakaia@jp.fujitsu.com>
74993         * lib/xsize.h: Fix typo in comment: s/tupe/type/.
74995 2008-02-28  Bruno Haible  <bruno@clisp.org>
74997         * modules/freadptr-tests: New file.
74998         * tests/test-freadptr.sh: New file.
74999         * tests/test-freadptr.c: New file.
75001         New module 'freadptr'.
75002         * modules/freadptr: New file.
75003         * lib/freadptr.h: New file.
75004         * lib/freadptr.c: New file.
75005         * MODULES.html.sh (File stream based Input/Output): Add freadptr.
75007 2008-02-26  Karl Berry  <karl@freefriends.org>
75009         Sync from Libtool:
75010         * libltdl/argz.c (argz_add, argz_count): New functions.
75011         * libltdl/argz.in.h: Declare them.
75012         Report by Juan Manuel Guerrero <juan.guerrero@gmx.de>.
75014 2008-02-22  Bruno Haible  <bruno@clisp.org>
75016         * m4/time_r.m4 (gl_TIME_R): Also check that localtime_r's return type
75017         is a pointer type.  Needed for HP-UX 10.
75018         * doc/posix-functions/localtime_r.texi: Mention HP-UX 10.
75019         * doc/posix-functions/gmtime_r.texi: Likewise.
75020         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
75022 2008-02-24  Bruno Haible  <bruno@clisp.org>
75024         * modules/environ-tests: New file.
75025         * tests/test-environ.c: New file.
75027         New module 'environ'.
75028         * modules/environ: New file.
75029         * lib/unistd.in.h (environ): New declaration.
75030         * m4/environ.m4: New file.
75031         (gt_CHECK_VAR_DECL): Moved here from m4/setenv.m4. Undefine gt_cv_var
75032         after use.
75033         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ENVIRON and
75034         HAVE_DECL_ENVIRON.
75035         * modules/unistd (Makefile.am): Substitute also GNULIB_ENVIRON and
75036         HAVE_DECL_ENVIRON.
75037         * doc/posix-functions/environ.texi: Mention module 'environ'. Remove
75038         wrong claim that 'environ' is missing on some systems.
75039         * modules/execute (Depends-on): Add environ.
75040         * lib/execute.c (environ): Remove fallback declaration.
75041         * modules/pipe (Depends-on): Add environ.
75042         * lib/pipe.c (environ): Remove fallback declaration.
75043         * modules/setenv (Depends-on): Add environ.
75044         * lib/setenv.c (environ): Remove fallback declaration.
75045         * modules/unsetenv (Depends-on): Add environ.
75046         * lib/unsetenv.c (environ): Remove fallback declaration.
75047         * m4/setenv.m4 (gt_CHECK_VAR_DECL): Remove macro. Moved to
75048         m4/environ.m4.
75049         (gl_PREREQ_SETENV): Require gl_ENVIRON instead of testing for environ.
75050         (gl_PREREQ_UNSETENV): Likewise.
75052 2008-02-24  Bruno Haible  <bruno@clisp.org>
75054         * doc/posix-functions/environ.texi: Document the MacOS X problem.
75056 2008-02-20  Bob Proulx  <bob@proulx.com>
75058         Enable use of older two part flavor 'git describe'.
75059         * build-aux/git-version-gen: If using the older two part flavor of
75060         git version then recreate the third part now present in the
75061         newer three part flavor of git describe.
75063 2008-02-20  Martin Buchholz  <martin@xemacs.org>  (tiny change)
75065         * lib/fts.c (fts_build): Typo correction to comment.
75067 2008-02-17  Bruno Haible  <bruno@clisp.org>
75069         * lib/git-merge-changelog.c (main) [split_merged_entry]: Avoid
75070         generating no-op conflicts.
75072 2008-02-17  Bruno Haible  <bruno@clisp.org>
75074         Speed up by 10%.
75075         * lib/git-merge-changelog.c (main): Use the iterator to iterate through
75076         result_entries, rather than an index-based loop.
75078 2008-02-17  Bruno Haible  <bruno@clisp.org>
75080         Speed up by 25%.
75081         * lib/git-merge-changelog.c (struct entry): New fields 'hashcode',
75082         'hashcode_cached'.
75083         (entry_create): New function.
75084         (entry_hashcode): Use the cached hashcode if possible.
75085         (read_changelog_file, try_split_merged_entry): Use entry_create.
75087 2008-02-17  Bruno Haible  <bruno@clisp.org>
75089         Speed up from O(n^2) to O(n) for long ChangeLog files.
75090         * lib/git-merge-changelog.c: Include gl_rbtreehash_list.h.
75091         (read_changelog_file): Change implementation of entries_reversed list
75092         to rbtreehash.
75093         * modules/git-merge-changelog (Depends-on): Add rbtreehash-list.
75095 2008-02-17  Bruno Haible  <bruno@clisp.org>
75097         New option --split-merged-entry.
75098         * lib/git-merge-changelog.c (FSTRCMP_STRICTER_THRESHOLD): New macro.
75099         (find_paragraph_end, try_split_merged_entry): New functions.
75100         (long_options): Add option --split-merged-entry.
75101         (usage): Document option --split-merged-entry.
75102         (main): Implement option --split-merged-entry.
75103         Reported by Eric Blake.
75105 2008-02-17  Bruno Haible  <bruno@clisp.org>
75107         * lib/git-merge-changelog.c: Include c-strstr.h.
75108         (main): Support the "git pull --rebase" situation.
75109         * modules/git-merge-changelog (Depends-on): Add c-strstr.
75110         Reported by Eric Blake.
75112 2008-02-16  Eric Blake  <ebb9@byu.net>
75114         Avoid doubling \ in common case of "c-maybe" quoting style.
75115         * lib/quotearg.c (quotearg_buffer_restyled): Don't escape \ when
75116         eliding outer quotes.
75117         * lib/quotearg.h: Document this.
75118         * tests/test-quotearg.c (result_strings, inputs, results_g)
75119         (flag_results, locale_results): Test it by adding a new string to
75120         each test group.
75121         (compare_strings): Test new string.
75123 2008-02-13  Eric Blake  <ebb9@byu.net>
75125         Avoid trigraph quoting in default output.
75126         * lib/quotearg.h (enum quoting_flags): Add QA_SPLIT_TRIGRAPHS.
75127         * lib/quotearg.c (quotearg_buffer_restyled): Don't quote trigraphs
75128         unless explicitly requested.
75129         * tests/test-quotearg.c (flag_results, main): Add additional tests.
75131 2008-02-13  Lasse Collin  <lasse.collin@tukaani.org>
75133         Don't rely on signed integer overflowing to negative value.
75134         * lib/getugroups.c (getugroups): Include <limits.h>.
75135         Instead, compare against INT_MAX, and increment only if the test passes.
75137 2008-02-13  Jim Meyering  <meyering@redhat.com>
75138         and Eric Blake  <ebb9@byu.net>
75140         Avoid shadowing warning and compile errors on Linux.
75141         * tests/test-quotearg.c [ENABLE_NLS]: Disable <libintl.h>
75142         forwarding macros on Linux.
75143         (dcgettext): Define a stub, for Linux.
75144         (results_g, main): Avoid warnings.
75146 2008-02-12  Eric Blake  <ebb9@byu.net>
75148         Silence warning in last patch.
75149         * lib/quotearg.c (quotearg_buffer_restyled): Add missing const.
75151         Quotearg part 4: add tests, fix c-maybe colon quoting.
75152         * lib/quotearg.h: Improve documentation.
75153         * lib/quotearg.c (quotearg_buffer_restyled): Don't add extra
75154         escapes when adding outer quotes.  When quoting trigraphs, use
75155         valid C notation.  When quoting NUL, omit extra characters if next
75156         character is not digit.  Alter prototype.
75157         (quotearg_buffer, quotearg_alloc_mem, quotearg_n_options): Adjust
75158         callers.
75159         * modules/quotearg-tests: New module.
75160         * tests/test-quotearg.c: New test.
75162 2008-02-07  Eric Blake  <ebb9@byu.net>
75164         Quotearg part 3: add flag to control outer quote elision.
75165         * lib/quotearg.h (c_maybe_quoting_style): New style.
75166         (enum quoting_flags): Better documentation of flags.
75167         * lib/quotearg.c (quoting_style_args, quoting_style_vals): Add
75168         c-maybe style.
75169         (quotearg_buffer_restyled): Handle new flag to elide outer
75170         quotes.
75172         Quotearg part 2: add flag that can control NUL elision.
75173         * lib/quotearg.h (set_quoting_flags): New prototype.
75174         * lib/quotearg.c (struct quoting_options): Add flag field.
75175         (set_quoting_flags): New function.
75176         (quotearg_buffer_restyled): Add flags parameter.
75177         (quotearg_alloc_mem): Set the flag if length cannot be returned.
75178         (quotearg_n_options): Set the flag, since length cannot be
75179         returned.
75180         (quoting_options_from_style): Default flags correctly.
75182         Quotearg part 1: more wrappers, restore quotearg_char state.
75183         * lib/quotearg.h (quotearg_alloc_mem, quotearg_n_mem)
75184         (quotearg_mem, quotearg_style_mem, quotearg_char_mem)
75185         (quotearg_colon_mem): New wrappers.
75186         * lib/quotearg.c (quotearg_alloc, quotearg_char): Rewrite...
75187         (quotearg_alloc_mem, quotearg_char_mem): ...in terms of these new
75188         functions.
75189         (quotearg_n_mem, quotearg_mem, quotearg_style_mem)
75190         (quotearg_colon_mem): New functions.
75192 2008-02-11  Bruno Haible  <bruno@clisp.org>
75194         * modules/git-merge-changelog (Makefile.am): Don't use -L and -l for a
75195         library in the current directory: it does not work with parallel make.
75196         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
75198 2008-02-11  Bruno Haible  <bruno@clisp.org>
75200         * .gitattributes: New file.
75202 2008-02-11  Jim Meyering  <meyering@redhat.com>
75204         useless-if-before-free: Fix reversed exit values.
75205         * build-aux/useless-if-before-free: Use correct values
75206         for EXIT_MATCH and EXIT_NO_MATCH.
75208         * build-aux/useless-if-before-free: Close stdout carefully.
75210 2008-02-10  Bruno Haible  <bruno@clisp.org>
75212         New module 'git-merge-changelog'.
75213         * modules/git-merge-changelog: New file.
75214         * lib/git-merge-changelog.c: New file.
75216 2008-02-10  Jim Meyering  <meyering@redhat.com>
75218         useless-if-before-free: New option: --list (-l).
75220         useless-if-before-free: Don't exit immediately upon open failure.
75221         * build-aux/useless-if-before-free: Exit 2 for errors.
75222         Upon failure to open a file, don't exit immediately.
75223         Rather, just warn and continue with any remaining files.
75225 2008-02-10  Bruno Haible  <bruno@clisp.org>
75227         New abstract list operation 'node_set_value'.
75228         * lib/gl_list.h (gl_list_node_set_value): New function.
75229         (struct gl_list_implementation): New field node_set_value.
75230         * lib/gl_list.c (gl_list_node_set_value): New function.
75231         * lib/gl_array_list.c (gl_array_node_set_value): New function.
75232         (gl_array_list_implementation): Update.
75233         * lib/gl_carray_list.c (gl_carray_node_set_value): New function.
75234         (gl_carray_list_implementation): Update.
75235         * lib/gl_anylinked_list2.h (gl_linked_node_set_value): New function.
75236         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
75237         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
75238         * lib/gl_anytree_list2.h (gl_tree_node_set_value): New function.
75239         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
75240         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
75241         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
75242         Update.
75243         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
75244         * lib/gl_sublist.c (gl_sublist_node_set_value): New function.
75245         (gl_sublist_list_implementation): Update.
75247 2008-02-10  Bruno Haible  <bruno@clisp.org>
75249         * lib/diffseq.h: Write "ELEMENT const" instead of "const ELEMENT".
75250         Needed when ELEMENT is #defined to 'some_type *'.
75252 2008-02-10  Jim Meyering  <meyering@redhat.com>
75254         New script and module: useless-if-before-free
75255         * MODULES.html.sh (maint+release support): Add useless-if-before-free.
75256         * build-aux/useless-if-before-free: New file.
75257         * modules/useless-if-before-free: New file.
75259         * build-aux/gitlog-to-changelog: Use committer date, not author date.
75261         xstrtol_error: Fix typo.
75262         * lib/xstrtol-error.c (xstrtol_error): The parameter was unused:
75263         s/exit_failure/exit_status/.
75265 2008-02-09  Jim Meyering  <meyering@redhat.com>
75267         New script and module: gitlog-to-changelog
75268         * MODULES.html.sh (maint+release support): Add gitlog-to-changelog.
75269         * modules/gitlog-to-changelog: New file.
75270         * build-aux/gitlog-to-changelog: New file.
75272 2008-02-08  Jim Meyering  <meyering@redhat.com>
75274         Avoid two "parameter unused" warnings.
75275         * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
75276         Mark "st" as used.
75278         Use "git COMMAND", not "git-COMMAND".
75279         * build-aux/bootstrap (version_controlled_file): s/git-rm/git-rm/.
75280         * build-aux/announce-gen (get_tool_versions): Correct a diagnostic.
75281         * build-aux/git-version-gen: Use "git status", not "git-status".
75283 2008-02-07  Bruno Haible  <bruno@clisp.org>
75285         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on native Woe32 systems.
75286         Avoids a crash on Windows Vista.
75287         Reported by Adam Strzelecki <ono@java.pl> via
75288         Simon Josefsson <simon@josefsson.org>.
75290 2008-02-06  Bruno Haible  <bruno@clisp.org>
75292         Fix *printf behaviour regarding the left-adjust flag on HP-UX 10.20.
75293         * m4/printf.m4 (gl_PRINTF_FLAG_LEFTADJUST): New macro.
75294         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_FLAG_LEFTADJUST.
75295         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST): New macro.
75296         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
75297         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
75298         gl_PRINTF_FLAG_LEFTADJUST and test its result. Invoke
75299         gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST.
75300         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
75301         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
75302         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
75303         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
75304         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
75305         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
75306         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
75307         * tests/test-vasnprintf-posix.c (test_function): Add testcases for the
75308         left-adjust flag.
75309         * tests/test-snprintf-posix.h (test_function): Likewise.
75310         * tests/test-sprintf-posix.h (test_function): Likewise.
75311         * tests/test-vasprintf-posix.c (test_function): Likewise.
75312         * doc/posix-functions/fprintf.texi: Update.
75313         * doc/posix-functions/printf.texi: Update.
75314         * doc/posix-functions/snprintf.texi: Update.
75315         * doc/posix-functions/sprintf.texi: Update.
75316         * doc/posix-functions/vfprintf.texi: Update.
75317         * doc/posix-functions/vprintf.texi: Update.
75318         * doc/posix-functions/vsnprintf.texi: Update.
75319         * doc/posix-functions/vsprintf.texi: Update.
75320         Reported by Peter Fales <psfales@alcatel-lucent.com>.
75322 2008-02-06  Bruno Haible  <bruno@clisp.org>
75324         Fix bug introduced on 2008-01-26.
75325         * lib/isnan.c (FUNC): Set to rpl_isnand, not rpl_isnan.
75327 2008-02-06  Bruno Haible  <bruno@clisp.org>
75329         Fix bug introduced on 2007-06-10.
75330         * lib/vasnprintf.c (VASNPRINTF): Perform zero-padding also if
75331         !NEED_PRINTF_FLAG_ZERO.
75333 2008-02-05  Peter O'Gorman  <pogma@thewrittenword.com>
75335         getloadavg: use libperfstat on AIX5
75336         * lib/getloadavg.c, m4/getloadavg.m4 [aix]: Use libperfstat
75338 2008-02-03  Bruno Haible  <bruno@clisp.org>
75340         * lib/diffseq.h: Add comments about required #includes.
75341         Reported by Michael Biggs <gnulib@doubleplum.net>.
75343 2008-02-01  Bruno Haible  <bruno@clisp.org>
75345         * users.txt: Add gnuit.
75347 2008-01-31  Bruno Haible  <bruno@clisp.org>
75349         * lib/md4.c (set_uint32): Mark as inline.
75350         * lib/md5.c (set_uint32): Likewise.
75351         * lib/sha1.c (set_uint32): Likewise.
75352         * m4/md4.m4 (gl_MD4): Require AC_C_INLINE.
75353         * m4/md5.m4 (gl_MD5): Likewise.
75354         * m4/sha1.m4 (gl_SHA1): Likewise.
75356 2008-01-31  Jim Meyering  <meyering@redhat.com>
75358         Use "sizeof VAR", rather than a literal "4".
75359         * lib/md5.c (md5_read_ctx): Use sizeof ctx->A, not 4.
75360         * lib/md4.c (md4_read_ctx): Likewise.
75361         * lib/sha1.c (sha1_read_ctx): Likewise.
75363 2008-01-31  Simon Josefsson  <simon@josefsson.org>
75365         * tests/test-sha1.c: New file, based on test-md5.c.
75367         * modules/crypto/sha1-tests: New file.
75369 2008-01-31  Simon Josefsson  <simon@josefsson.org>
75371         * lib/sha1.h (SHA1_DIGEST_SIZE): Define.
75373 2008-01-31  Jim Meyering  <meyering@redhat.com>
75375         Prefer "sizeof v" over the equivalent "4".
75376         * lib/md4.c (set_uint32): Use "sizeof v" as memcpy length, not 4.
75377         * lib/md5.c (set_uint32): Likewise.
75378         * lib/sha1.c (set_uint32): Likewise.
75380 2008-01-31  Simon Josefsson  <simon@josefsson.org>
75382         * lib/sha1.c (set_uint32): Mark function as static.
75384 2008-01-31  Simon Josefsson  <simon@josefsson.org>
75386         md2: clarify comments to say that alignment is not required.
75387         * lib/md2.h: Remove warning about alignment in comment.
75388         * lib/md2.c (md2_read_ctx, md2_finish_ctx): Doc fix, alignment has
75389         never been required.
75391 2008-01-31  Simon Josefsson  <simon@josefsson.org>
75393         md4: adapt alignment constraint fix from sha1.
75394         * lib/md4.c (set_uint32): New function, from sha1.c
75395         (md4_read_ctx): Use it.
75396         (md4_finish_ctx): Doc fix.
75397         * lib/md4.h: Doc fix.
75399 2008-01-31  Simon Josefsson  <simon@josefsson.org>
75401         md5: adapt alignment constraint fix from sha1.
75402         * lib/md5.c (set_uint32): New function, from sha1.c
75403         (md5_read_ctx): Use it.
75404         (md5_finish_ctx): Doc fix.
75405         * lib/md5.h: Doc fix.
75407 2008-01-30  Peter Palfrader  <weasel@debian.org>
75409         sha1: remove the result buffer alignment constraint
75410         * lib/sha1.c (set_uint32): New function.
75411         (sha1_read_ctx): Rewrite to remove the result buffer alignment
75412         constraint.
75413         (sha1_finish_ctx): Remove comment warning about alignment constraint.
75414         * lib/sha1.h: Likewise.
75416 2008-01-30  Andreas Schwab  <schwab@suse.de>
75417             Bruno Haible  <bruno@clisp.org>
75419         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Include <float.h> and ensure a
75420         correct definition of LDBL_MIN_EXP.
75422 2008-01-30  Karl Berry  <karl@gnu.org>
75424         * config/srclist-update: try to preserve x bit on updates.
75425         * config/srclistvars.sh: update for karl.
75427 2008-01-29  Jim Meyering  <meyering@redhat.com>
75429         vasnprintf.c: Avoid warning about unused label
75430         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Guard the
75431         "overflow" label definition and associated code with the
75432         same cpp condition that guards the sole use of that label.
75434 2008-01-26  Bruno Haible  <bruno@clisp.org>
75436         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
75437         gl_FUNC_ISNANL_WORKS): Test the GCC >= 4.0 built-in.
75438         * lib/isnanl.h (isnanl): Use the GCC >= 4.0 built-in.
75439         * lib/isnanl-nolibm.h (isnanl): Likewise.
75440         Reported by Paul Eggert <eggert@cs.ucla.edu>.
75442 2008-01-26  Bruno Haible  <bruno@clisp.org>
75444         * m4/isnand.m4 (gl_FUNC_ISNAND_NO_LIBM): Test the GCC >= 4.0 built-in.
75445         * lib/isnand.h (isnand): Use the GCC >= 4.0 built-in.
75447 2008-01-26  Bruno Haible  <bruno@clisp.org>
75449         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Test the
75450         GCC >= 4.0 built-in.
75451         * lib/isnanf.h (isnanf): Use the GCC >= 4.0 built-in.
75453 2008-01-26  Bruno Haible  <bruno@clisp.org>
75455         Rename isnan, applicable to 'double' only, to isnand.
75456         * modules/isnand-nolibm: Renamed from modules/isnan-nolibm.
75457         (Files): Add lib/isnand.h, lib/isnand.c. Remove lib/isnan.h.
75458         (configure.ac): Update.
75459         (Include): Replace "isnan.h" with "isnand.h".
75460         * m4/isnand.m4: Renamed from m4/isnan.m4.
75461         (gl_FUNC_ISNAND_NO_LIBM): Renamed from gl_FUNC_ISNAN_NO_LIBM. Set
75462         HAVE_ISNAND_IN_LIBC instead of HAVE_ISNAN_IN_LIBC. Build isnand.c
75463         instead of isnan.c.
75464         * lib/isnand.h: Renamed from lib/isnan.h. Test HAVE_ISNAND_IN_LIBC
75465         instead of HAVE_ISNAN_IN_LIBC.
75466         (isnand): Renamed from isnan.
75467         * lib/isnand.c: New file.
75468         * modules/isnand-nolibm-tests: Renamed from modules/isnan-nolibm-tests.
75469         (Files): Add tests/test-isnand.c. Remove tests/test-isnan.c.
75470         (Makefile.am): Update.
75471         * tests/test-isnand.c: Renamed from tests/test-isnan.c.
75472         Include isnand.h instead of isnan.h.
75473         (main): Test isnand instead of isnan.
75474         * modules/fprintf-posix (Depends-on): Add isnand-nolibm, remove
75475         isnan-nolibm.
75476         * modules/frexp (Depends-on): Likewise.
75477         * modules/frexp-tests (Depends-on): Likewise.
75478         * modules/frexp-nolibm (Depends-on): Likewise.
75479         * modules/frexp-nolibm-tests (Depends-on): Likewise.
75480         * modules/isfinite (Depends-on): Likewise.
75481         * modules/round-tests (Depends-on): Likewise.
75482         * modules/signbit (Depends-on): Likewise.
75483         * modules/signbit-tests (Depends-on): Likewise.
75484         * modules/snprintf-posix (Depends-on): Likewise.
75485         * modules/sprintf-posix (Depends-on): Likewise.
75486         * modules/trunc-tests (Depends-on): Likewise.
75487         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
75488         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
75489         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
75490         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
75491         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
75492         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
75493         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
75494         * modules/vasnprintf-posix (Depends-on): Likewise.
75495         * modules/vasprintf-posix (Depends-on): Likewise.
75496         * modules/vfprintf-posix (Depends-on): Likewise.
75497         * modules/vsnprintf-posix (Depends-on): Likewise.
75498         * modules/vsprintf-posix (Depends-on): Likewise.
75499         * lib/frexp.c: Include isnand.h instead of isnan.h.
75500         (ISNAN): Set to isnand instead of isnan.
75501         * lib/isfinite.c: Include isnand.h instead of isnan.h.
75502         (gl_isfinited): Use isnand instead of isnan.
75503         * lib/signbitd.c: Include isnand.h instead of isnan.h.
75504         (gl_signbitd): Use isnand instead of isnan.
75505         * lib/vasnprintf.c: Include isnand.h instead of isnan.h.
75506         (is_infinite_or_zero, VASNPRINTF): Use isnand instead of isnan.
75507         * tests/test-frexp.c: Include isnand.h instead of isnan.h.
75508         (main): Use isnand instead of isnan.
75509         * tests/test-round1.c: Include isnand.h.
75510         (main): Use isnand instead of isnan.
75511         * tests/test-round2.c: Include isnand.h instead of isnan.h.
75512         (ISNAN): Set to isnand instead of isnan.
75513         * tests/test-trunc1.c: Include isnand.h.
75514         (main): Use isnand instead of isnan.
75515         * tests/test-trunc2.c: Include isnand.h instead of isnan.h.
75516         (equal): Use isnand instead of isnan.
75517         * MODULES.html.sh (Mathematics <math.h>): Replace isnan-nolibm with
75518         isnand-nolibm.
75519         * NEWS: Mention the change.
75521 2008-01-25  Paul Eggert  <eggert@cs.ucla.edu>
75522             Bruno Haible  <bruno@clisp.org>
75524         * m4/signbit.m4 (gl_SIGNBIT): Require a macro definition. Test whether
75525         the GCC builtins for signbits are present and set
75526         REPLACE_SIGNBIT_USING_GCC if so.
75527         * lib/math.in.h (signbit): Define using GCC builtins if
75528         REPLACE_SIGNBIT_USING_GCC is set.
75529         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
75530         REPLACE_SIGNBIT_USING_GCC.
75531         * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_GCC.
75533 2008-01-25  Jim Meyering  <meyering@redhat.com>
75535         Prefer <config.h> over "config.h".  See autoconf doc for explanation.
75536         * lib/poll.c: Include <config.h>, not "config.h".
75537         * tests/test-getaddrinfo.c: Likewise.
75539 2008-01-25  Simon Josefsson  <simon@josefsson.org>
75541         * modules/sockets-tests: New file.
75543 2008-01-24  Simon Josefsson  <simon@josefsson.org>
75545         * modules/sockets: New module, can be used to call WSA_Startup and
75546         WSA_Cleanup when needed.
75548         * lib/sockets.h, lib/sockets.c: New files.
75550         * m4/sockets.m4: New file.
75552         * tests/test-sockets.c: New file.
75554 2008-01-19  Bruno Haible  <bruno@clisp.org>
75556         * doc/posix-headers: Renamed from doc/headers.
75557         * doc/posix-functions: Renamed from doc/functions.
75558         * doc/gnulib.texi: Update.
75560 2008-01-19  Bruno Haible  <bruno@clisp.org>
75562         * doc/glibc-functions/strcasestr.texi: Include contents of
75563         doc/functions/strcasestr.texi, fixing the list of platforms.
75564         * doc/functions/strcasestr.texi: Remove file.
75566 2008-01-19  Bruno Haible  <bruno@clisp.org>
75568         * doc/glibc-functions/memmem.texi: Include contents of
75569         doc/functions/memmem.texi.
75570         * doc/functions/memmem.texi: Remove file.
75572 2008-01-18  Bruno Haible  <bruno@clisp.org>
75574         * doc/glibc-functions/*.texi: New files.
75575         * doc/gnulib.texi (Glibc Function Substitutes): Completely rewritten
75576         to use the new files.
75578 2008-01-17  Bruno Haible  <bruno@clisp.org>
75580         * tests/test-gethostname.c (main): Fix printf statement.
75582 2008-01-17  Simon Josefsson  <simon@josefsson.org>
75584         * modules/gethostname-tests: New file.
75586         * tests/test-gethostname.c: New file.
75588 2008-01-17  Simon Josefsson  <simon@josefsson.org>
75590         * lib/gethostname.c: Include string.h unconditionally, strncpy is
75591         used by the UNAME case.  Reported by Bruno Haible
75592         <bruno@clisp.org>.
75594 2008-01-17  Eric Blake  <ebb9@byu.net>
75596         Convert c-strcasestr to be more efficient.
75597         * modules/c-strcasestr (Files): Use Two-Way, not KMP.
75598         (Depends-on): Add c-strcase, remove malloca, strnlen.
75599         * tests/test-c-strcasestr.c (main): Enhance test.
75600         * lib/c-strcasestr.c (c_strcasestr): Rewrite to new algorithm.
75602 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
75604         * build-aux/bootstrap (MSGID_BUGS_ADDRESS): New overridable variable.
75605         Use it in creating po/Makevars.
75607 2008-01-15  Simon Josefsson  <simon@josefsson.org>
75609         * lib/gc-libgcrypt.c (gc_init): Disable secure memory by default.
75610         Applications that requires it should initialize libgcrypt
75611         manually.
75613 2008-01-16  Simon Josefsson  <simon@josefsson.org>
75615         * lib/gethostname.c [!HAVE_UNAME]: Need string.h for strcpy.
75617 2008-01-15  Paul Eggert  <eggert@cs.ucla.edu>
75619         Fix problem with getdate on mingw32 reported by Simon Josefsson
75620         in <http://lists.gnu.org/archive/html/bug-gnulib/2008-01/msg00192.html>.
75621         * lib/getdate.y (get_date): Check "HAVE_DECL_TZNAME", not "defined
75622         tzname", when deciding whether to declare tzname.
75623         * lib/strftime.c (tzname): Likewise.
75625 2008-01-15  Bruno Haible  <bruno@clisp.org>
75627         Work around a MacOS X 10.5 bug in frexpl().
75628         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Also check denormalized numbers.
75629         * doc/functions/frexpl.texi: Document the bug.
75630         Reported by Elias Pipping <pipping@gentoo.org>.
75632 2008-01-14  Eric Blake  <ebb9@byu.net>
75634         Touch up previous patch.
75635         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Fix typo.
75636         * doc/functions/strcasestr.texi (strcasestr): Document OpenBSD bug.
75638         Convert strcasestr module to use Two-Way algorithm.
75639         * modules/strcasestr-simple: New module, based on the old
75640         strcasestr, but with Two-Way rather than KMP.
75641         * modules/strcasestr (Depends-on): Change to strcasestr-simple.
75642         * lib/string.in.h (rpl_strcasestr): Declare.
75643         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Check for linear
75644         performance.
75645         * lib/strcasestr.c (strcasestr): Simplify, and avoid malloc.
75646         * modules/string (Makefile.am): Support strcasestr.
75647         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
75648         * modules/strcasestr-tests (Depends-on): Check for alarm.
75649         * tests/test-strcasestr.c: Augment test.
75650         * lib/str-two-way.h: Clean up stray macro.
75651         * NEWS: Document new module.
75652         * MODULES.html.sh (string handling): Likewise.
75653         * doc/functions/strcasestr.texi: New file.
75654         * doc/gnulib.texi (Function Substitutes): New node.  Move memmem
75655         here, since it is not a POSIX function.
75657 2008-01-14  Colin Watson  <cjwatson@debian.org>
75658             Bruno Haible  <bruno@clisp.org>
75660         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check whether strsignal
75661         works fine; if not, set REPLACE_STRSIGNAL.
75662         (gl_PREREQ_STRSIGNAL): Require AC_DECL_SYS_SIGLIST.
75663         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
75664         REPLACE_STRSIGNAL.
75665         * lib/string.in.h (strsignal): Consider REPLACE_STRSIGNAL.
75666         * modules/string (Makefile.am): Substitute REPLACE_STRSIGNAL.
75667         * tests/test-strsignal.c (main): Check out-of-range signal numbers.
75669 2008-01-14  Bruno Haible  <bruno@clisp.org>
75671         * modules/strsignal (Include): Change to <string.h>.
75673 2008-01-14  Colin Watson  <cjwatson@debian.org>
75675         * modules/argp (Notice): Add a notice recommending to change
75676         XGETTEXT_OPTIONS.
75677         (configure.ac): Invoke AM_XGETTEXT_OPTION if it exists.
75679 2008-01-13  Colin Watson  <cjwatson@debian.org>
75681         * modules/strsignal-tests: New file.
75682         * tests/test-strsignal.c: New file.
75684         * lib/strsignal.c: New file, from glibc with modifications.
75685         * lib/siglist.h: New file, from glibc with modifications.
75686         * lib/string.in.h (strsignal): New declaration.
75687         * m4/strsignal.m4: New file.
75688         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
75689         GNULIB_STRSIGNAL and HAVE_DECL_STRSIGNAL.
75690         * modules/strsignal: New file.
75691         * modules/string (Makefile.am): Substitute GNULIB_STRSIGNAL and
75692         HAVE_DECL_STRSIGNAL.
75694 2008-01-13  Bruno Haible  <bruno@clisp.org>
75696         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check that the
75697         locale encoding is not ASCII. Needed for OpenBSD 4.0.
75698         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
75699         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
75701 2008-01-13  Bruno Haible  <bruno@clisp.org>
75703         * lib/argp-fmtstream.h (__attribute__): Don't redefine if
75704         __STRICT_ANSI__ is set: it's not needed by any version of gcc.
75705         * lib/argp.h (__attribute__): Likewise.
75706         * lib/c-stack.c (__attribute__): Likewise.
75707         * lib/error.h (__attribute__): Likewise.
75708         * lib/fts.c (__attribute__): Likewise.
75709         * lib/openat.h (__attribute__): Likewise.
75710         * lib/stdio.in.h (__attribute__): Likewise.
75711         * lib/string.in.h (__attribute__): Likewise.
75712         * lib/utimens.c (__attribute__): Likewise.
75713         * lib/vasnprintf.h (__attribute__): Likewise.
75714         * lib/xalloc.h (__attribute__): Likewise.
75715         * lib/xprintf.h (__attribute__): Likewise.
75716         * lib/xstrtol.h (__attribute__): Likewise.
75717         * lib/xvasprintf.h (__attribute__): Likewise.
75719 2008-01-12  Bruno Haible  <bruno@clisp.org>
75721         * doc/gnulib.texi (Glibc Header File Substitutes): New chapter.
75722         * doc/glibc-headers/a.out.texi: New file.
75723         * doc/glibc-headers/aliases.texi: New file.
75724         * doc/glibc-headers/alloca.texi: New file.
75725         * doc/glibc-headers/ar.texi: New file.
75726         * doc/glibc-headers/argp.texi: New file.
75727         * doc/glibc-headers/argz.texi: New file.
75728         * doc/glibc-headers/byteswap.texi: New file.
75729         * doc/glibc-headers/crypt.texi: New file.
75730         * doc/glibc-headers/endian.texi: New file.
75731         * doc/glibc-headers/envz.texi: New file.
75732         * doc/glibc-headers/err.texi: New file.
75733         * doc/glibc-headers/error.texi: New file.
75734         * doc/glibc-headers/execinfo.texi: New file.
75735         * doc/glibc-headers/fpu_control.texi: New file.
75736         * doc/glibc-headers/fstab.texi: New file.
75737         * doc/glibc-headers/fts.texi: New file.
75738         * doc/glibc-headers/getopt.texi: New file.
75739         * doc/glibc-headers/ieee754.texi: New file.
75740         * doc/glibc-headers/ifaddrs.texi: New file.
75741         * doc/glibc-headers/libintl.texi: New file.
75742         * doc/glibc-headers/mcheck.texi: New file.
75743         * doc/glibc-headers/mntent.texi: New file.
75744         * doc/glibc-headers/obstack.texi: New file.
75745         * doc/glibc-headers/paths.texi: New file.
75746         * doc/glibc-headers/printf.texi: New file.
75747         * doc/glibc-headers/pty.texi: New file.
75748         * doc/glibc-headers/resolv.texi: New file.
75749         * doc/glibc-headers/shadow.texi: New file.
75750         * doc/glibc-headers/sysexits.texi: New file.
75751         * doc/glibc-headers/ttyent.texi: New file.
75753 2008-01-12  Jim Meyering  <meyering@redhat.com>
75755         announce-gen: emit Gnulib's git-based version string.
75756         * build-aux/announce-gen: Remove option: --gnulib-snapshot-time-stamp=S.
75757         New option --gnulib-version=V, where V is expected to be
75758         the output of running git describe in the gnulib directory.
75759         (get_tool_versions): Request feedback on xdelta.  I suspect it's
75760         not useful, and plan to stop publishing an xdelta file with each
75761         coreutils release.
75763         * build-aux/announce-gen: Also check for lzma-compressed files.
75765 2008-01-11  Bruno Haible  <bruno@clisp.org>
75767         * tests/test-memmem.c (main): Increase maximum allowed time.
75768         * tests/test-strstr.c (main): Likewise.
75770 2008-01-11  Bruno Haible  <bruno@clisp.org>
75772         * doc/functions/memmem.texi: Add more precisions about platforms.
75773         * doc/functions/strstr.texi: Likewise.
75775 2008-01-10  Eric Blake  <ebb9@byu.net>
75777         * m4/strstr.m4: Delete cruft from copy-n-paste.
75778         Reported by Bruno Haible.
75780 2008-01-10  Bruno Haible  <bruno@clisp.org>
75782         Make c-strstr rely on strstr.
75783         * lib/c-strstr.c: Don't include str-kmp.h.
75784         (c_strstr): Define in terms of strstr.
75785         * modules/c-strstr (Files): Remove lib/str-kmp.h.
75786         (Depends-on): Remove stdbool, malloca, strnlen. Add strstr.
75788 2008-01-10  Bruno Haible  <bruno@clisp.org>
75790         * doc/gnulib.texi (String Functions in C Locale): New section.
75791         * doc/c-ctype.texi: New file.
75792         * doc/c-strcase.texi: New file.
75793         * doc/c-strcaseeq.texi: New file.
75794         * doc/c-strcasestr.texi: New file.
75795         * doc/c-strstr.texi: New file.
75796         * doc/c-strtod.texi: New file.
75797         * doc/c-strtold.texi: New file.
75799 2008-01-10  Eric Blake  <ebb9@byu.net>
75801         * lib/relocatable.h: Fix a comment.
75803 2008-01-10  Eric Blake  <ebb9@byu.net>
75805         Share two-way algorithm.
75806         * lib/str-two-way.h: New file, merged from...
75807         * lib/memmem.c: ...here...
75808         * lib/strstr.c: ...and here.
75809         * modules/memmem (Files): Use it.
75810         * modules/strstr (Files): Likewise.
75812         Avoid quadratic strstr implementations.
75813         * lib/strstr.c: New file.
75814         * m4/strstr.m4: Likewise.
75815         * modules/strstr: Likewise.
75816         * modules/strstr-tests: Likewise.
75817         * tests/test-strstr.c: Likewise.
75818         * lib/string.in.h (rpl_strstr): Declare.
75819         (memmem) [GNULIB_POSIXCHECK]: Document speed issue.
75820         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Support strstr.
75821         * modules/string (Makefile.am): Likewise.
75822         * MODULES.html.sh (string handling): Mention new module.
75823         * doc/functions/strstr.texi (strstr): Document the bug.
75825 2008-01-10  Bruno Haible  <bruno@clisp.org>
75827         * lib/relocatable.h (relocate): State whether result is freshly
75828         allocated or not.
75829         * lib/relocatable.c (relocate): Return a freshly allocated string
75830         instead of a pointer to a privately held string.
75831         Reported by Sylvain Beucler <beuc@gnu.org>.
75833 2008-01-10  Colin Watson  <cjwatson@debian.org>
75835         * lib/canonicalize-lgpl.c [!_LIBC]: Fix typo in #if directive:
75836         s/S_ISNLK/S_ISLNK/.
75838 2008-01-09  Bruno Haible  <bruno@clisp.org>
75840         * doc/functions/memmem.texi: Use the same structure as snprintf.texi
75841         and other files.
75842         * m4/memmem.m4 (gl_FUNC_MEMMEM): Say "guessing no" instead of "no"
75843         if it's only a guess.
75844         * modules/memmem: Simplify by depending on memmem-simple.
75846 2008-01-09  Bruno Haible  <bruno@clisp.org>
75848         Work around OpenBSD 4.0 tdelete() bug.
75849         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Also check tdelete's return value.
75850         * lib/search.in.h: If REPLACE_TSEARCH is 1, define tsearch etc. as
75851         macros and don't redefine the enum values.
75852         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize REPLACE_TSEARCH.
75853         * modules/search (Makefile.am): Also substitute REPLACE_TSEARCH.
75854         * doc/functions/tdelete.texi: Document the OpenBSD 4.0 bug.
75856 2008-01-09  Bruno Haible  <bruno@clisp.org>
75858         * tests/test-wcwidth.c: Include <string.h> and localcharset.h.
75859         (main): Don't perform the tests if setlocale did not install a UTF-8
75860         locale. Needed on OpenBSD 4.0.
75861         * modules/wcwidth-tests (Depends-on): Add localcharset.
75863 2008-01-09  Paul Eggert  <eggert@cs.ucla.edu>
75865         gl_FUNC_ALLOCA no longer defines HAVE_ALLOCA_H unconditionally.
75866         See <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00149.html>.
75867         * NEWS: announce this.
75868         * m4/alloca.m4 (gl_FUNC_ALLOCA): Don't define HAVE_ALLOCA_H.
75870 2008-01-09  Simon Josefsson  <simon@josefsson.org>
75871         and Eric Blake  <ebb9@byu.net>
75873         Add memmem-simple module.
75874         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): New macro.
75875         (gl_FUNC_MEMMEM): Separate performance from presence checks.
75876         * modules/memmem-simple: New file.
75877         * modules/memmem (Description): Tweak.
75878         * MODULES.html.sh (string handling): Mention new module.
75879         * doc/functions/memmem.texi (memmem): Distinguish which flaws are
75880         addressed by memmem-simple.
75881         * NEWS: Document the difference.
75883 2008-01-09  Eric Blake  <ebb9@byu.net>
75885         Give gcc some memmem optimization hints.
75886         * lib/string.in.h (memmem, memrchr, strchrnul, strnlen, strpbrk)
75887         (strcasestr): Declare as pure.
75888         * modules/memmem (Maintainer): Claim my implementation.
75890 2008-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
75892         Support AIX 6.1 and higher.
75893         * build-aux/config.libpath: Likewise.
75894         * build-aux/config.rpath: Likewise.
75896 2008-01-08  Jim Meyering  <meyering@redhat.com>
75897             Bruno Haible  <bruno@clisp.org>
75899         * lib/printf-parse.c (PRINTF_PARSE): Handle a size specifier "q"
75900         on MacOS X and a size specifier "I64" on mingw. Needed for PRIdMAX.
75901         Reported by Peter Fales in
75902         <http://lists.gnu.org/archive/html/bug-coreutils/2007-12/msg00148.html>.
75904 2008-01-08  Bruno Haible  <bruno@clisp.org>
75906         * modules/unictype/category-of (Depends-on): Add
75907         unictype/category-none.
75908         * modules/unictype/category-and-tests (Depends-on): Add
75909         unictype/category-{L,N,Lu,Nd}.
75910         * modules/unictype/category-and-not-tests (Depends-on): Likewise.
75911         * modules/unictype/category-or-tests (Depends-on): Add
75912         unictype/category-{L,N}.
75913         * modules/unictype/category-name-tests (Depends-on): Add
75914         unictype/category-{Z,Nl}.
75915         Reported by Simon Josefsson.
75917 2008-01-08  Bruno Haible  <bruno@clisp.org>
75919         * lib/str-kmp.h (knuth_morris_pratt_unibyte): Document the calling
75920         convention better.
75921         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Likewise.
75922         * lib/mbscasestr.c (knuth_morris_pratt_multibyte): Likewise.
75923         Reported by Peter Miller <millerp@canb.auug.org.au>.
75925 2008-01-08  Eric Blake  <ebb9@byu.net>
75927         Rewrite memmem to guarantee linear complexity without malloc.
75928         * lib/memmem.c (memmem): Use Two-Way rather than
75929         Knuth-Morris-Pratt, to allow O(1) space usage.
75930         (critical_factorization, two_way_short_needle)
75931         (two_way_long_needle): New functions.
75932         (knuth_morris_pratt): Delete.
75933         * modules/memmem (Depends-on): No longer need malloca or stdbool.
75934         Add stdint.
75935         * tests/test-memmem.c (main): Add tests for periodic needle and
75936         sublinear performance.
75937         * doc/functions/memmem.texi (memmem): Document other deficiencies
75938         in cygwin and older glibc.
75940 2008-01-08  Bruno Haible  <bruno@clisp.org>
75942         * modules/memmem-tests (Makefile.am): Remove TESTS_ENVIRONMENT
75943         augmentation.
75945 2008-01-08  Mike Frysinger  <vapier@gentoo.org>
75947         Add a configure time option: --disable-acl.
75948         * m4/acl.m4 (gl_FUNC_ACL): Wrap all ACL logic in a call to
75949         AC_ARG_ENABLE(acl).
75951 2008-01-06  Simon Josefsson  <simon@josefsson.org>
75953         * tests/test-localename.c: Don't include obsolete "setenv.h".
75955         * modules/localename-tests (Depends-on): Need unsetenv.
75957 2008-01-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
75959         * DEPENDENCIES: Require Texinfo version 4.6 or newer.
75961 2008-01-06  Colin Watson  <cjwatson@debian.org>
75963         * users.txt: Add man-db.
75965 2008-01-07  Bruno Haible  <bruno@clisp.org>
75967         * doc/gnulib-intro.texi (Library vs Reusable Code): Restore the
75968         previous section name.
75970 2008-01-07  Bruno Haible  <bruno@clisp.org>
75972         * lib/progname.c (set_program_name): Don't strip off a leading
75973         "lt-" prefix outside a .libs directory.
75974         Suggested by Paul Eggert.
75976 2008-01-01  Sylvain Beucler  <beuc@gnu.org>
75977             Bruno Haible  <bruno@clisp.org>
75979         Improve memory cleanup in 'relocatable' module.
75980         * lib/relocatable.h (compute_curr_prefix): Change return type to
75981         'char *'.
75982         * lib/relocatable.c (compute_curr_prefix): Change return type to
75983         'char *'. Free curr_installdir after use.
75984         (relocate): Free curr_prefix_better after use.
75985         * lib/progreloc.c (prepare_relocate): Free curr_prefix after use.
75987 2008-01-01  Bruno Haible  <bruno@clisp.org>
75989         * tests/test-wcwidth.c (main): Relax test of U+2060. Avoids a test
75990         failure on older glibc systems.
75991         Reported by Peter Fales <psfales@alcatel-lucent.com>.
75993 2008-01-05  Eric Blake  <ebb9@byu.net>
75995         Avoid quadratic system memmem.
75996         * m4/memmem.m4 (gl_FUNC_MEMMEM): Check for quadratic memmem.
75997         Reported by Ralf Wildenhues.
75999         Fix memmem test for mingw.
76000         * modules/memmem-tests (configure.ac): Check for alarm.
76001         * tests/test-memmem.c (main): Avoid alarm on platforms that lack
76002         it.
76003         * doc/functions/memmem.texi: New file.
76004         * doc/gnulib.texi (Function Substitutes): Add memmem.
76005         Reported by Bruno Haible.
76007 2008-01-04  Bruno Haible  <bruno@clisp.org>
76009         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP):
76010         Require gl_HEADER_STRINGS_H_DEFAULTS, not
76011         gl_HEADER_STRING_H_DEFAULTS.
76013 2008-01-04  Eric Blake  <ebb9@byu.net>
76015         Shorten duration of memmem test.
76016         * tests/test-memmem.c (main): Use alarm to declare failure if test
76017         is taking too long.
76018         Reported by Ralf Wildenhues.
76020 2007-12-21  Simon Josefsson  <simon@josefsson.org>
76022         * modules/relocatable-prog-wrapper (Depends-on): Add intprops and
76023         string, needed by strerror.
76025 2008-01-03  Colin Watson  <cjwatson@debian.org>
76026             Bruno Haible  <bruno@clisp.org>
76028         * doc/gnulib-tool.texi (Localization): New section.
76030 2008-01-02  Bruno Haible  <bruno@clisp.org>
76032         * lib/memmem.c (knuth_morris_pratt, memmem): Change all 'char *'
76033         variables to 'unsigned char *' type.
76034         Reported by Paul Eggert.
76036 2008-01-02  Jim Meyering  <jim@meyering.net>
76038         * lib/version-etc.c (COPYRIGHT_YEAR): Increase for new year.
76040 2007-12-31  Jim Meyering  <jim@meyering.net>
76042         Avoid use of private FTS type name.
76043         * lib/fts.c (fts_sort): Use FTSENT rather than "struct _ftsent".
76045 2007-12-30  Karl Berry  <karl@gnu.org>
76047         * doc/gnulib.texi (Library vs. Reusable Code): remove period, to
76048         work around defect in Texinfo and/or the standalone Info browser.
76050 2007-12-30  Bruno Haible  <bruno@clisp.org>
76052         Unify 5 copies of the KMP code.
76053         * lib/str-kmp.h: New file.
76054         * lib/c-strcasestr.c: Include str-kmp.h.
76055         (knuth_morris_pratt): Remove function.
76056         (c_strcasestr): Update.
76057         * lib/c-strstr.c: Include str-kmp.h.
76058         (knuth_morris_pratt): Remove function.
76059         (c_strcasestr): Update.
76060         * lib/mbscasestr.c: Include str-kmp.h.
76061         (knuth_morris_pratt_unibyte): Remove function.
76062         * lib/mbsstr.c: Include str-kmp.h.
76063         (knuth_morris_pratt_unibyte): Remove function.
76064         * lib/strcasestr.c: Include str-kmp.h.
76065         (knuth_morris_pratt): Remove function.
76066         (strcasestr): Update.
76067         * modules/c-strcasestr (Files): Add lib/str-kmp.h.
76068         * modules/c-strstr (Files): Likewise.
76069         * modules/mbscasestr (Files): Likewise.
76070         * modules/mbsstr (Files): Likewise.
76071         * modules/strcasestr (Files): Likewise.
76072         Suggested by Paul Eggert.
76074 2007-12-30  Bruno Haible  <bruno@clisp.org>
76076         * lib/xmalloca.c (xmmalloca): Don't define if HAVE_ALLOCA is not
76077         defined.
76079 2007-12-30  Bruno Haible  <bruno@clisp.org>
76081         * lib/xmalloca.h: Include xalloc.h.
76082         (xnmalloca): New macro.
76084 2007-12-30  Bruno Haible  <bruno@clisp.org>
76086         * lib/malloca.h (nmalloca): New macro.
76087         * lib/c-strcasestr.c (knuth_morris_pratt): Use it.
76088         * lib/c-strstr.c (knuth_morris_pratt): Likewise.
76089         * lib/mbscasestr.c (knuth_morris_pratt_unibyte,
76090         knuth_morris_pratt_multibyte): Likewise.
76091         * lib/mbsstr.c (knuth_morris_pratt_unibyte,
76092         knuth_morris_pratt_multibyte): Likewise.
76093         * lib/memmem.c (knuth_morris_pratt): Likewise.
76094         * lib/strcasestr.c (knuth_morris_pratt): Likewise.
76096 2007-12-25  Bruno Haible  <bruno@clisp.org>
76098         Fixup after 2007-10-17 commit. Ensure that 'glob' stays under LGPLv2+.
76099         * lib/glob.c: Don't include openat.h.
76100         (link_exists2_p): Add back the code that deals with the
76101         !GLOB_ALTDIRFUNC case.
76102         (link_exists_p) [!_LIBC && !HAVE_FSTATAT]: Just call link_exists2_p and
76103         let it do the filename concatenation.
76104         * m4/glob.m4 (gl_PREREQ_GLOB): Add check for fstatat.
76105         * modules/glob (Depends-on): Remove openat.
76107 2007-12-31  Bruno Haible  <bruno@clisp.org>
76109         * modules/dirfd (License): Change to LGPLv2+.
76110         Approved by Jim Meyering.
76112 2007-12-29  Paul Eggert  <eggert@cs.ucla.edu>
76114         * lib/memmem.c (knuth_morris_pratt): Check for size_t overflow
76115         when multiplying M by sizeof (size_t).
76117 2007-12-10  Martin Lambers  <marlam@marlam.de>
76119         Override getpagesize on mingw.
76120         * lib/getpagesize.c: New file.
76121         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Enable replacement on mingw.
76122         * modules/getpagesize (Files): Add lib/getpagesize.c.
76123         * lib/unistd.in.h (getpagesize): Declare if we are using a replacement.
76124         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
76125         REPLACE_GETPAGESIZE.
76126         * modules/unistd (Makefile.am): Substitute REPLACE_GETPAGESIZE.
76128 2007-12-25  Bruno Haible  <bruno@clisp.org>
76130         * modules/localcharset (Notice): New field.
76131         (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT.
76132         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
76134 2007-12-25  Paul Eggert  <eggert@cs.ucla.edu>
76135             Bruno Haible  <bruno@clisp.org>
76137         Avoid using the syntax symbol() in formatted documentation.
76138         * MODULES.html.sh (func_module): When replacing symbol() with a
76139         hyperlink, remove the parentheses. Show an error if some remain.
76140         Recognize and render the '...' syntax.
76141         * doc/alloca-opt.texi: Remove parentheses from symbol reference.
76142         Rework. Add paragraph about GCC's inlining.
76143         * doc/alloca.texi: Likewise.
76144         * doc/error.texi: Remove parentheses from symbol reference.
76145         * doc/gnulib-intro.texi: Likewise.
76146         * doc/gnulib.texi (alloca, alloca-opt): New nodes.
76147         * modules/fnmatch (Description): Reword to say "the ... function".
76148         * modules/full-read (Description): Likewise.
76149         * modules/full-write (Description): Likewise.
76150         * modules/safe-read (Description): Likewise.
76151         * modules/safe-write (Description): Likewise.
76152         * modules/strchrnul (Description): Likewise.
76153         * modules/trim (Description): Likewise.
76154         * modules/error (Description): Remove parentheses from symbol
76155         references.
76156         * modules/verror (Description): Likewise.
76157         Reported by Karl Berry.
76159 2007-12-25  Bruno Haible  <bruno@clisp.org>
76161         Fixup after 2007-10-16 commit.
76162         * lib/glob.c (glob_in_dir): Don't use ISO C99 syntax.
76164 2007-12-24  Bruno Haible  <bruno@clisp.org>
76166         Make --enable-relocatable work with DESTDIR.
76167         * build-aux/install-reloc: Accept another argument 'destdir'. Use it
76168         to compute installdir from destprog.
76169         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV,
76170         also set the RELOC_DESTDIR variable.
76171         Reported by Левашев Иван <octagram@bluebottle.com>.
76173 2007-12-24  Bruno Haible  <bruno@clisp.org>
76175         Fix link error due to xalloc_die().
76176         * lib/progreloc.c: When NO_XMALLOC is defined, use areadlink instead
76177         of xreadlink.
76178         * lib/relocwrapper.c: Update comments.
76179         * build-aux/install-reloc: Remove xreadlink.c from file list.
76180         * modules/relocatable-prog-wrapper (Files): Remove xreadlink.h and
76181         xreadlink.c.
76182         Reported by Левашев Иван <octagram@bluebottle.com>.
76184 2007-12-24  Bruno Haible  <bruno@clisp.org>
76186         Split setenv module into setenv and unsetenv. Get rid of setenv.h.
76187         * lib/setenv.h: Remove file.
76188         * lib/stdlib.in.h (setenv, unsetenv): New declarations, moved here from
76189         lib/setenv.h.
76190         * modules/setenv (Files): Remove lib/setenv.h, lib/unsetenv.c.
76191         (Depends-on): Add stdlib.
76192         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR. Don't invoke
76193         gl_FUNC_UNSETENV.
76194         (Include): Replace setenv.h with <stdlib.h>.
76195         * modules/unsetenv: New file.
76196         * lib/setenv.c: Include <stdlib.h> first, after alloca.h.
76197         * lib/unsetenv.c: Include <stdlib.h> first.
76198         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_SETENV_SEPARATE): Require
76199         gl_STDLIB_H_DEFAULTS. Conditionally set HAVE_SETENV to 0.
76200         (gl_FUNC_UNSETENV): Require gl_STDLIB_H_DEFAULTS. Conditionally set
76201         HAVE_UNSETENV to 0. Set VOID_UNSETENV as an AC_SUBSTed variable.
76202         * modules/stdlib (Makefile.am): Substitute also GNULIB_SETENV,
76203         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
76204         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_SETENV,
76205         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
76206         * doc/functions/unsetenv.texi: Update.
76207         * modules/xsetenv (Depends-on): Add unsetenv.
76208         * modules/getdate (Depends-on): Likewise.
76209         * lib/xsetenv.h: Include <stdlib.h> instead of setenv.h.
76210         * lib/xsetenv.c: Don't include setenv.h.
76211         * lib/getdate.y: Likewise.
76212         * lib/relocwrapper.c: Likewise.
76213         * modules/relocatable-prog-wrapper (Files): Remove lib/setenv.h.
76214         (Depends-on): Add stdlib.
76215         * NEWS: Mention the changes.
76216         Reported by Левашев Иван <octagram@bluebottle.com>.
76218 2007-12-23  Bruno Haible  <bruno@clisp.org>
76220         * lib/memmem.c (memmem): Use lowercase variable names. Tab
76221         indentation.
76223 2007-12-23  Bruno Haible  <bruno@clisp.org>
76225         * lib/c-strcasestr.c: Add more comments.
76226         * lib/c-strstr.c: Likewise.
76227         * lib/mbscasestr.c: Likewise.
76228         * lib/mbsstr.c: Likewise.
76229         * lib/strcasestr.c: Likewise.
76230         * lib/memmem.c: Likewise.
76232 2007-12-23  Bruno Haible  <bruno@clisp.org>
76234         * tests/test-memmem.c: Include <string.h> first.
76236 2007-12-22  Bruno Haible  <bruno@clisp.org>
76238         * gnulib-tool (func_create_testdir): Change $auxdir while generating
76239         the contents of $testsbase.
76240         Reported by Ralf Wildenhues.
76242 2007-12-22  Bruno Haible  <bruno@clisp.org>
76244         * gnulib-tool (func_emit_tests_Makefile_am): Replace local_ldadd with
76245         two variables local_ldadd_before, local_ldadd_last.
76247 2007-12-20  Eric Blake  <ebb9@byu.net>
76249         Work around circular library issue when cross-compiling.
76250         * lib/progname.c (set_program_name): Use strncmp, not memcmp, so
76251         that progname.o does not need to pull in rpl_memcmp.
76253 2007-12-19  Eric Blake  <ebb9@byu.net>
76255         Fix memmem to avoid O(n^2) worst-case complexity.
76256         * lib/memmem.c (knuth_morris_pratt): New function.
76257         (memmem): Use it if first few naive iterations fail.
76258         * m4/memmem.m4 (gl_FUNC_MEMMEM): Detect cygwin bug.
76259         * modules/memcmp (License): Set to LGPLv2+, not LGPL.
76260         * modules/memchr (License): Likewise.
76261         * modules/memmem (Depends-on): Add memcmp, memchr, stdbool, and
76262         malloca.
76263         * tests/test-memmem.c: Rewrite, borrowing ideas from
76264         test-mbsstr1.c; the old version wouldn't even compile!
76265         * modules/memmem-tests: New file.
76266         * lib/string.in.h (rpl_memmem): Add declaration.
76267         * modules/string (Makefile.am): Substitute REPLACE_MEMMEM.
76268         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Default for
76269         REPLACE_MEMMEM.
76271 2007-12-18  Paul Eggert  <eggert@cs.ucla.edu>
76273         Fix problem with _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H on VMS.
76274         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_INTTYPES_H): Define
76275         before any system include files, and undef after them all.  This
76276         should fix a problem on VMS reported by John E. Malmberg in
76277         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00118.html>.
76279 2007-12-17  Eric Blake  <ebb9@byu.net>
76281         Revert addition of verify, for BSD/OS.
76282         * lib/fseeko.c [!HAVE_FSEEKO]: Allow off_t > long, even though it
76283         can't handle large files, for the sake of obsolete platforms.
76284         * modules/fseeko (Depends-on): Remove verify.
76285         * doc/functions/fseeko.texi (fseeko): Document BSD/OS limitation.
76286         * doc/functions/ftello.texi (ftello): Likewise.
76287         * doc/functions/fgetpos.texi (fgetpos): Likewise.
76288         Reported by Larry Jones.
76290 2007-12-17  Petr Salinger  <Petr.Salinger@seznam.cz>
76292         getcwd.c: Use a more readable witness: HAVE_OPENAT_SUPPORT
76293         * lib/getcwd.c: Define and use HAVE_OPENAT_SUPPORT, in place of AT_FDCWD.
76295 2007-12-17  Jim Meyering  <meyering@redhat.com>
76297         Port to GNU/kFreeBSD - FreeBSD kernel + GNU libc,
76298         which has no openat syscall, yet <fcntl.h> does define AT_FDCWD.
76299         * lib/getcwd.c: Undef AT_FDCWD if there is no openat function.
76300         * modules/getcwd (Depends-on): Add openat.
76301         Reported by Petr Salinger.
76303 2007-12-17  Bruno Haible  <bruno@clisp.org>
76305         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Use GL_NOCRASH to
76306         avoid a segmentation fault of the configure test on x86_64 systems.
76308 2007-12-15  Jim Meyering  <meyering@redhat.com>
76310         * build-aux/gnupload (GPG): Don't hard-code absolute name of gpg binary.
76312 2007-12-13  Eric Blake  <ebb9@byu.net>
76314         Another fseek test.
76315         * tests/test-fseek.c (main): Also test ungetc handling.
76316         * tests/test-fseeko.c (main): Likewise.
76317         * modules/fseeko (Depends-on): Add verify.
76318         * lib/fseeko.c [!HAVE_FSEEKO]: Verify that off_t is not too
76319         large.
76320         Reported by Larry Jones.
76322         Fix fseeko on mingw.
76323         * lib/fseeko.c (rpl_fseeko) [_IOERR]: Reset EOF flag on successful
76324         seek.
76326         Beef up fseek tests.
76327         * tests/test-fseek.c (main): Also test eof handling.
76328         * tests/test-fseeko.c (main): Likewise.
76329         Reported by Larry Jones.
76331 2007-12-13  Larry Jones  <lawrence.jones@siemens.com>  (tiny change)
76333         Fix fseeko on BSD-based platforms.
76334         * lib/fseeko.c (rpl_fseeko) [__sferror]: Reset EOF flag on
76335         successful seek.
76337 2007-12-12  Eric Blake  <ebb9@byu.net>
76339         Allow circular dependency of separate libtests.a
76340         * gnulib-tool (func_emit_tests_Makefile_am): Add AM_LIBTOOLFLAGS
76341         when use_libtests.
76343 2007-12-11  Eric Blake  <ebb9@byu.net>
76345         Fix bug with -0.0L in previous patch.
76346         * lib/isnan.c (rpl_isnanl): Make robust to -0.0L and pad bits.
76347         * tests/test-isnan.c (main): Also test on zeroes.
76348         * tests/test-isnanf.c (main): Likewise.
76349         * tests/test-isnanl.h (main): Likewise.
76351         Detect pseudo-denormals on x86 even when cross-compiling.
76352         * lib/isnan.c (rpl_isnanl) [!KNOWN_EXPBIT0_LOCATION
76353         && USE_LONG_DOUBLE && x86]: Add one more check to filter out
76354         invalid bit patterns that happen to satisfy ==.
76356         Avoid link failures with separate libtests.a.
76357         * gnulib-tool (func_emit_tests_Makefile_am): Also list local_ldadd
76358         last, to satisfy circular dependencies.
76360 2007-12-11  Eric Blake  <ebb9@byu.net>
76361         and Bruno Haible  <bruno@clisp.org>
76363         Fix OpenBSD 4.0 <float.h> handling of long double.
76364         * m4/float_h.m4 (gl_FLOAT_H): Also claim OpenBSD is broken.
76365         * lib/float.in.h [__OpenBSD__]: Add fixes for OpenBSD.
76366         * doc/headers/float.texi (float.h): Document OpenBSD bug.
76368 2007-12-11  Jim Meyering  <meyering@redhat.com>
76370         * users.txt: Add libvirt.
76372         Support versions of autoconf prior to 2.59c.
76373         * gnulib-tool (func_emit_initmacro_done): Define m4_foreach_w
76374         if it is not already defined.
76376 2007-12-09  Bruno Haible  <bruno@clisp.org>
76378         Let 'gnulib-tool --import' collect sources needed for the tests in
76379         tests/ rather than in lib/.
76380         * gnulib-tool (func_emit_tests_Makefile_am): Accept use_libtests
76381         argument. If true, add rules to generate libtests.a, and put libtests.a
76382         into $(LDADD). Consider source files in subdirectories and set
76383         uses_subdirs.
76384         (func_emit_initmacro_start, func_emit_initmacro_end,
76385         func_emit_initmacro_done): Pass all arguments explicitly.
76386         (func_import): Determine two module lists main_modules,
76387         testsrelated_modules. Determine use_libtests. Determine two variables
76388         sed_transform_main_lib_file, sed_transform_testsrelated_lib_file
76389         instead of just sed_transform_lib_file. Determine two variables
76390         main_files and testsrelated_files. Compute 'files' as the union of
76391         both. Adjust sed_rewrite_old_files, sed_rewrite_new_files,
76392         func_add_or_update. In the generated gnulib-comp.m4, collect the
76393         object files for tests/ in different variables than those for lib/.
76394         Substitute LIBTESTS_LIBDEPS.
76395         (func_create_testdir): Combine the uses_subdirs results from
76396         func_emit_lib_Makefile_am and from func_emit_tests_Makefile_am.
76398 2007-12-09  Bruno Haible  <bruno@clisp.org>
76400         * gnulib-tool (func_emit_tests_Makefile_am): Expand references to
76401         the build-aux directory.
76403 2007-12-09  Bruno Haible  <bruno@clisp.org>
76405         * gnulib-tool (func_emit_tests_Makefile_am): Remove redundant code
76406         introduced on 2006-09-09.
76408 2007-12-07  Jim Meyering  <meyering@redhat.com>
76410         Let these macros work also with autoconf-2.59.
76411         * m4/getline.m4 (gl_FUNC_GETLINE): Require only autoconf-2.59.  2.60
76412         is not needed, since gnulib now permits use of AC_CHECK_DECLS_ONCE.
76413         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
76415 2007-12-06  Jim Meyering  <meyering@redhat.com>
76417         Avoid a configure-time syntax error in gl_FUNC_ACL.
76418         * m4/acl.m4 (gl_FUNC_ACL): Be careful to check for the acl_trivial
76419         function in each branch, before testing the cache variable.
76421 2007-12-04  Eric Blake  <ebb9@byu.net>
76423         Make scripts executable.
76424         * build-aux/config.guess: Add execute permissions.
76425         * build-aux/config.sub: Likewise.
76426         * build-aux/gendocs.sh: Likewise.
76428         Fix frexp on mingw.
76429         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Detect mingw bug when
76430         cross-compiling.
76431         * doc/functions/frexp.texi (frexp): Document the bug.
76433         Make cygwin fseeko check more reliable.
76434         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Use cygwin
76435         version numbers, rather than unrelated feature check.
76436         * doc/functions/fseeko.texi (fseeko): Tweak failure report.
76437         * doc/functions/ftello.texi (ftello): Likewise.
76438         Reported by Bruno Haible.
76440         * m4/strerror.m4: Bump version number.
76442 2007-12-03  Bruno Haible  <bruno@clisp.org>
76444         * doc/functions/mprotect.texi: Mention the mingw problem.
76446 2007-12-03  Eric Blake  <ebb9@byu.net>
76448         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Ensure
76449         REPLACE_STRERROR is initialized before this macro.
76451 2007-12-03  Paul Eggert  <eggert@cs.ucla.edu>
76453         Add support for Solaris 10 ACLs.  Also, ACLs are Gnulib, not Autoconf.
76454         * modules/acl (configure.ac): Rename AC_FUNC_ACL to gl_FUNC_ACL.
76455         * m4/acl.m4 (gl_FUNC_ACL): Renamed from AC_FUNC_ACL.  On Solaris,
76456         put -lsec in even for programs other than 'ls'.  This fixes a problem
76457         for gettext reported by Bruno Haible in
76458         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00007.html>.
76459         * lib/acl.c (copy_acl, qset_acl) [USE_ACL && defined ACL_NO_TRIVIAL]:
76460         Add support for Solaris 10.  This isn't efficient, but should get the
76461         job done for now.
76463 2007-12-03  James Youngman  <jay@gnu.org>
76465         * doc/regexprops-generic.texi: change "an close-group" to "a
76466         close-group" and "illegal" to "not allowed".
76468 2007-11-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76470         * lib/unictype/pr_byname.c: Include unictype/pr_byname.h instead of
76471         pr_byname.h. Needed for the rare case when the maintainer has done
76472         "make maintainer-clean" in the source directory and then attempts a
76473         build outside the source directory.
76474         * lib/unictype/scripts.c: Include unictype/scripts_byname.h instead of
76475         scripts_byname.h.
76477 2007-12-02  Martin Lambers  <marlam@marlam.de>
76478             Bruno Haible  <bruno@clisp.org>
76480         * lib/getpagesize.h: Remove file.
76481         * lib/unistd.in.h: Include declaration of getpagesize here.
76482         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Renamed from gl_GETPAGESIZE.
76483         Invoke gl_UNISTD_H_DEFAULTS. Set HAVE_GETPAGESIZE, HAVE_OS_H,
76484         HAVE_SYS_PARAM_H.
76485         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPAGESIZE,
76486         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
76487         * modules/getpagesize (Files): Remove lib/getpagesize.h.
76488         (Depends-on): Add unistd.
76489         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
76490         (Include): Use <unistd.h> instead of getpagesize.h.
76491         * modules/unistd (Makefile.am): Substitute also GNULIB_GETPAGESIZE,
76492         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
76493         * m4/pagealign_alloc.m4 (gl_PREREQ_PAGEALIGN_ALLOC): Remove
76494         gl_GETPAGESIZE invocation, already handled by module dependency.
76495         * lib/pagealign_alloc.c: Don't include getpagesize.h.
76497 2007-12-02  Bruno Haible  <bruno@clisp.org>
76499         * modules/strings-tests: New file.
76500         * tests/test-strings.c: New file.
76502         Move declarations of str{,n}casecmp from <string.h> to <strings.h>.
76503         * lib/strings.in.h: New file.
76504         * lib/string.in.h (strcasecmp, strncasecmp): Remove declarations.
76505         * m4/strings_h.m4: New file.
76506         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Remove initialization
76507         of HAVE_STRCASECMP, HAVE_DECL_STRNCASECMP.
76508         * modules/strings: New file.
76509         * modules/string (Makefile.am): Update.
76510         * modules/strcase (Include): Mention <strings.h>, not <string.h>.
76511         Reported by Karl Berry.
76513 2007-12-01  Eric Blake  <ebb9@byu.net>
76515         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Rewrite to
76516         accommodate fix in cygwin 1.5.25.
76518 2007-12-01  Jim Meyering  <meyering@redhat.com>
76520         Fix a bug that inhibited much of the utf8-optimization in regcomp.c.
76521         * lib/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
76522         that would inhibit utf8-optimization of a regexp containing line-
76523         or buffer-anchors, e.g., `^', `$'.
76525 2007-11-30  Bruno Haible  <bruno@clisp.org>
76527         * lib/lock.h (gl_recursive_lock_init) [PTHREAD &&
76528         PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Call
76529         glthread_recursive_lock_init.
76530         * lib/lock.c (glthread_recursive_lock_init)
76531         [PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: New function.
76532         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
76534 2007-11-28  Paul Eggert  <eggert@cs.ucla.edu>
76536         New function qset_acl, like set_acl but with syscall semantics.
76537         * lib/acl.h (qset_acl): New decl.
76538         * lib/acl.c (qset_acl): New function.
76539         (set_acl): Use new function.  Use more-consistent diagnostics.
76541 2007-11-28  Jim Meyering  <meyering@redhat.com>
76543         * modules/physmem (License): Change from GPL to LGPLv2+.
76545 2007-11-26  Bruno Haible  <bruno@clisp.org>
76547         * lib/vasnprintf.c (decode_long_double): Don't abort if the
76548         'long double' type has excess precision.
76549         Reported by Jim Meyering in
76550         <http://lists.gnu.org/archive/html/bug-gnulib/2007-11/msg00120.html>.
76552 2007-11-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76554         * doc/fdl.texi, doc/gpl-3.0.texi, doc/lgpl-3.0.texi:
76555         Sync from <http://gnu.org/licenses>.
76556         * modules/agpl-3.0, doc/agpl-3.0.texi: New module,
76557         with license text from same location.
76558         * doc/maintain.texi, doc/standards.texi:  Sync from
76559         <http://savannah.gnu.org/projects/gnustandards>.
76561 2007-11-22  Ondřej Vašík  <ovasik@redhat.com>
76562         and Jim Meyering  <meyering@redhat.com>
76564         Adjust getdate' grammar to accept a slightly more regular language.
76565         E.g., accept "YYYYMMDD +N days" as well as "YYYYMMDD N days".
76566         Before, the former was rejected.
76567         * lib/getdate.y (digits_to_date_time): New function, factored
76568         out of ...
76569         (number): ...here.  Just call digits_to_date_time.
76570         (hybrid): New non-terminal to handle an <unsigned number,
76571         signed relative offset> sequence consistently.
76573 2007-11-18  Jim Meyering  <meyering@redhat.com>
76575         Pull my changes from coreutils:
76576         bootstrap: fix typo to enable use of $gnulib_tool_option_extras.
76577         * build-aux/bootstrap (gnulib_tool_options): Add a space before the
76578         use of $gnulib_tool_option_extras, so that it's separated from the
76579         preceding argument.
76581         Fix bootstrap failure to handle files like lib/uniwidth/cjk.h.
76582         * build-aux/bootstrap (cp_mark_as_generated): Create any required
76583         parent destination directories before copying a file into place.
76585 2007-11-18  Sergey Poznyakoff  <gray@gnu.org.ua>
76587         bootstrap: work also with 4-argument variant of AC_INIT
76588         * build-aux/bootstrap (gnulib_extra_files): Adjust sed command.
76590 2007-11-16  Paul Eggert  <eggert@cs.ucla.edu>
76592         Port test-getaddrinfo to Solaris.
76593         Problem reported by Bruno Haible in
76594         <http://lists.gnu.org/archive/html/bug-gnulib/2007-03/msg00171.html>.
76595         * tests/test-getaddrinfo.c (simple): Add a comment asking for an
76596         explanation of setting 'hints'.
76597         Don't reject an implementation merely because it returns EAI_SERVICE.
76598         (EAI_SERVICE): Define to 0 if not defined.
76600 2007-11-15  Paul Eggert  <eggert@cs.ucla.edu>
76602         The license of gnu-make and posix-shell is now "GPLed build tool".
76603         * modules/gnu-make (License): Likewise.
76604         * modules/posix-shell (License): Likewise.
76606         New module posix-shell, for determining a POSIX shell
76607         or perhaps something that is close enough to a POSIX shell.
76608         * m4/posix-shell.m4: New file.
76609         * modules/posix-shell: New file.
76611         * MODULES.html.sh: Mention new module.
76613         New module gnu-make, for determining whether we're using GNU Make.
76614         * m4/gnu-make.m4: New file.
76615         * modules/gnu-make: New file.
76616         * MODULES.html.sh: Mention new module.
76618 2007-11-14  Jim Meyering  <meyering@redhat.com>
76620         Define a sometimes-link-required function using ARGMATCH_DIE_DECL.
76621         * tests/test-argmatch.c (ARGMATCH_DIE_DECL): When defined,
76622         use this macro to create a function _definition_.
76623         Remove useless "#undef ARGMATCH_DIE".
76625 2007-11-14  Bruno Haible  <bruno@clisp.org>
76627         * lib/config.charset: Update for OpenBSD 4.1.
76628         Reported and helped by Ben Pfaff <blp@cs.stanford.edu>.
76630 2007-11-12  Paul Eggert  <eggert@cs.ucla.edu>
76632         Document 64-bit #if problems in stdint.texi.
76633         * doc/headers/stdint.texi (stdint.h): Mention problems with
76634         64-bit-#if, and how to work around them.
76636         Don't insist on 'long long int' support in the preprocessor.  It
76637         breaks too many things.  For example, PRIdMAX still uses a 'long
76638         long int' format with the latest Sun compiler, even though
76639         HAVE_LONG_LONG_INT isn't defined due to that compiler's
76640         preprocessor problem.  This causes the latest coreutils to dump
76641         core on Solaris 10 sparc with the Sun C compiler.
76642         Instead, fix the 2007-10-16 problem in a different way, by evaluating
76643         the troublesome expressions at configure-time, not at #if-time.
76644         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Don't test the
76645         preprocessor.
76646         * m4/inttypes.m4 (gl_INTTYPES_H): Move the #if checks into
76647         compile-time C checks, done at 'configure'-time.
76648         (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): New macro.
76649         * modules/inttypes (Makefile): Substitute the new symbols that
76650         gl_INTTYPES_H now generates.
76651         * lib/inttypes.in.h: Don't use constants wider than 'long' in #if.
76653 2007-11-12  Bruno Haible  <bruno@clisp.org>
76655         Tests for Unicode character classification functions.
76657         * modules/unictype/bidicategory-byname-tests: New file.
76658         * modules/unictype/bidicategory-name-tests: New file.
76659         * modules/unictype/bidicategory-of-tests: New file.
76660         * modules/unictype/bidicategory-test-tests: New file.
76661         * modules/unictype/block-list-tests: New file.
76662         * modules/unictype/block-of-tests: New file.
76663         * modules/unictype/block-test-tests: New file.
76664         * modules/unictype/category-C-tests: New file.
76665         * modules/unictype/category-Cc-tests: New file.
76666         * modules/unictype/category-Cf-tests: New file.
76667         * modules/unictype/category-Cn-tests: New file.
76668         * modules/unictype/category-Co-tests: New file.
76669         * modules/unictype/category-Cs-tests: New file.
76670         * modules/unictype/category-L-tests: New file.
76671         * modules/unictype/category-Ll-tests: New file.
76672         * modules/unictype/category-Lm-tests: New file.
76673         * modules/unictype/category-Lo-tests: New file.
76674         * modules/unictype/category-Lt-tests: New file.
76675         * modules/unictype/category-Lu-tests: New file.
76676         * modules/unictype/category-M-tests: New file.
76677         * modules/unictype/category-Mc-tests: New file.
76678         * modules/unictype/category-Me-tests: New file.
76679         * modules/unictype/category-Mn-tests: New file.
76680         * modules/unictype/category-N-tests: New file.
76681         * modules/unictype/category-Nd-tests: New file.
76682         * modules/unictype/category-Nl-tests: New file.
76683         * modules/unictype/category-No-tests: New file.
76684         * modules/unictype/category-P-tests: New file.
76685         * modules/unictype/category-Pc-tests: New file.
76686         * modules/unictype/category-Pd-tests: New file.
76687         * modules/unictype/category-Pe-tests: New file.
76688         * modules/unictype/category-Pf-tests: New file.
76689         * modules/unictype/category-Pi-tests: New file.
76690         * modules/unictype/category-Po-tests: New file.
76691         * modules/unictype/category-Ps-tests: New file.
76692         * modules/unictype/category-S-tests: New file.
76693         * modules/unictype/category-Sc-tests: New file.
76694         * modules/unictype/category-Sk-tests: New file.
76695         * modules/unictype/category-Sm-tests: New file.
76696         * modules/unictype/category-So-tests: New file.
76697         * modules/unictype/category-Z-tests: New file.
76698         * modules/unictype/category-Zl-tests: New file.
76699         * modules/unictype/category-Zp-tests: New file.
76700         * modules/unictype/category-Zs-tests: New file.
76701         * modules/unictype/category-and-not-tests: New file.
76702         * modules/unictype/category-and-tests: New file.
76703         * modules/unictype/category-byname-tests: New file.
76704         * modules/unictype/category-name-tests: New file.
76705         * modules/unictype/category-none-tests: New file.
76706         * modules/unictype/category-of-tests: New file.
76707         * modules/unictype/category-or-tests: New file.
76708         * modules/unictype/category-test-withtable-tests: New file.
76709         * modules/unictype/combining-class-tests: New file.
76710         * modules/unictype/ctype-alnum-tests: New file.
76711         * modules/unictype/ctype-alpha-tests: New file.
76712         * modules/unictype/ctype-blank-tests: New file.
76713         * modules/unictype/ctype-cntrl-tests: New file.
76714         * modules/unictype/ctype-digit-tests: New file.
76715         * modules/unictype/ctype-graph-tests: New file.
76716         * modules/unictype/ctype-lower-tests: New file.
76717         * modules/unictype/ctype-print-tests: New file.
76718         * modules/unictype/ctype-punct-tests: New file.
76719         * modules/unictype/ctype-space-tests: New file.
76720         * modules/unictype/ctype-upper-tests: New file.
76721         * modules/unictype/ctype-xdigit-tests: New file.
76722         * modules/unictype/decimal-digit-tests: New file.
76723         * modules/unictype/digit-tests: New file.
76724         * modules/unictype/mirror-tests: New file.
76725         * modules/unictype/numeric-tests: New file.
76726         * modules/unictype/property-alphabetic-tests: New file.
76727         * modules/unictype/property-ascii-hex-digit-tests: New file.
76728         * modules/unictype/property-bidi-arabic-digit-tests: New file.
76729         * modules/unictype/property-bidi-arabic-right-to-left-tests: New file.
76730         * modules/unictype/property-bidi-block-separator-tests: New file.
76731         * modules/unictype/property-bidi-boundary-neutral-tests: New file.
76732         * modules/unictype/property-bidi-common-separator-tests: New file.
76733         * modules/unictype/property-bidi-control-tests: New file.
76734         * modules/unictype/property-bidi-embedding-or-override-tests: New file.
76735         * modules/unictype/property-bidi-eur-num-separator-tests: New file.
76736         * modules/unictype/property-bidi-eur-num-terminator-tests: New file.
76737         * modules/unictype/property-bidi-european-digit-tests: New file.
76738         * modules/unictype/property-bidi-hebrew-right-to-left-tests: New file.
76739         * modules/unictype/property-bidi-left-to-right-tests: New file.
76740         * modules/unictype/property-bidi-non-spacing-mark-tests: New file.
76741         * modules/unictype/property-bidi-other-neutral-tests: New file.
76742         * modules/unictype/property-bidi-pdf-tests: New file.
76743         * modules/unictype/property-bidi-segment-separator-tests: New file.
76744         * modules/unictype/property-bidi-whitespace-tests: New file.
76745         * modules/unictype/property-byname-tests: New file.
76746         * modules/unictype/property-combining-tests: New file.
76747         * modules/unictype/property-composite-tests: New file.
76748         * modules/unictype/property-currency-symbol-tests: New file.
76749         * modules/unictype/property-dash-tests: New file.
76750         * modules/unictype/property-decimal-digit-tests: New file.
76751         * modules/unictype/property-default-ignorable-code-point-tests: New file.
76752         * modules/unictype/property-deprecated-tests: New file.
76753         * modules/unictype/property-diacritic-tests: New file.
76754         * modules/unictype/property-extender-tests: New file.
76755         * modules/unictype/property-format-control-tests: New file.
76756         * modules/unictype/property-grapheme-base-tests: New file.
76757         * modules/unictype/property-grapheme-extend-tests: New file.
76758         * modules/unictype/property-grapheme-link-tests: New file.
76759         * modules/unictype/property-hex-digit-tests: New file.
76760         * modules/unictype/property-hyphen-tests: New file.
76761         * modules/unictype/property-id-continue-tests: New file.
76762         * modules/unictype/property-id-start-tests: New file.
76763         * modules/unictype/property-ideographic-tests: New file.
76764         * modules/unictype/property-ids-binary-operator-tests: New file.
76765         * modules/unictype/property-ids-trinary-operator-tests: New file.
76766         * modules/unictype/property-ignorable-control-tests: New file.
76767         * modules/unictype/property-iso-control-tests: New file.
76768         * modules/unictype/property-join-control-tests: New file.
76769         * modules/unictype/property-left-of-pair-tests: New file.
76770         * modules/unictype/property-line-separator-tests: New file.
76771         * modules/unictype/property-logical-order-exception-tests: New file.
76772         * modules/unictype/property-lowercase-tests: New file.
76773         * modules/unictype/property-math-tests: New file.
76774         * modules/unictype/property-non-break-tests: New file.
76775         * modules/unictype/property-not-a-character-tests: New file.
76776         * modules/unictype/property-numeric-tests: New file.
76777         * modules/unictype/property-other-alphabetic-tests: New file.
76778         * modules/unictype/property-other-default-ignorable-code-point-tests: New file.
76779         * modules/unictype/property-other-grapheme-extend-tests: New file.
76780         * modules/unictype/property-other-id-continue-tests: New file.
76781         * modules/unictype/property-other-id-start-tests: New file.
76782         * modules/unictype/property-other-lowercase-tests: New file.
76783         * modules/unictype/property-other-math-tests: New file.
76784         * modules/unictype/property-other-uppercase-tests: New file.
76785         * modules/unictype/property-paired-punctuation-tests: New file.
76786         * modules/unictype/property-paragraph-separator-tests: New file.
76787         * modules/unictype/property-pattern-syntax-tests: New file.
76788         * modules/unictype/property-pattern-white-space-tests: New file.
76789         * modules/unictype/property-private-use-tests: New file.
76790         * modules/unictype/property-punctuation-tests: New file.
76791         * modules/unictype/property-quotation-mark-tests: New file.
76792         * modules/unictype/property-radical-tests: New file.
76793         * modules/unictype/property-sentence-terminal-tests: New file.
76794         * modules/unictype/property-soft-dotted-tests: New file.
76795         * modules/unictype/property-space-tests: New file.
76796         * modules/unictype/property-terminal-punctuation-tests: New file.
76797         * modules/unictype/property-test-tests: New file.
76798         * modules/unictype/property-titlecase-tests: New file.
76799         * modules/unictype/property-unassigned-code-value-tests: New file.
76800         * modules/unictype/property-unified-ideograph-tests: New file.
76801         * modules/unictype/property-uppercase-tests: New file.
76802         * modules/unictype/property-variation-selector-tests: New file.
76803         * modules/unictype/property-white-space-tests: New file.
76804         * modules/unictype/property-xid-continue-tests: New file.
76805         * modules/unictype/property-xid-start-tests: New file.
76806         * modules/unictype/property-zero-width-tests: New file.
76807         * modules/unictype/scripts-tests: New file.
76808         * modules/unictype/syntax-c-ident-tests: New file.
76809         * modules/unictype/syntax-c-whitespace-tests: New file.
76810         * modules/unictype/syntax-java-ident-tests: New file.
76811         * modules/unictype/syntax-java-whitespace-tests: New file.
76812         * tests/unictype/test-bidi_byname.c: New file.
76813         * tests/unictype/test-bidi_name.c: New file.
76814         * tests/unictype/test-bidi_of.c: New file.
76815         * tests/unictype/test-bidi_test.c: New file.
76816         * tests/unictype/test-block_list.c: New file.
76817         * tests/unictype/test-block_of.c: New file.
76818         * tests/unictype/test-block_test.c: New file.
76819         * tests/unictype/test-categ_and.c: New file.
76820         * tests/unictype/test-categ_and_not.c: New file.
76821         * tests/unictype/test-categ_byname.c: New file.
76822         * tests/unictype/test-categ_name.c: New file.
76823         * tests/unictype/test-categ_none.c: New file.
76824         * tests/unictype/test-categ_of.c: New file.
76825         * tests/unictype/test-categ_or.c: New file.
76826         * tests/unictype/test-categ_test_withtable.c: New file.
76827         * tests/unictype/test-combining.c: New file.
76828         * tests/unictype/test-decdigit.c: New file.
76829         * tests/unictype/test-digit.c: New file.
76830         * tests/unictype/test-mirror.c: New file.
76831         * tests/unictype/test-numeric.c: New file.
76832         * tests/unictype/test-pr_byname.c: New file.
76833         * tests/unictype/test-pr_test.c: New file.
76834         * tests/unictype/test-predicate-part1.h: New file.
76835         * tests/unictype/test-predicate-part2.h: New file.
76836         * tests/unictype/test-scripts.c: New file.
76837         * tests/unictype/test-sy_c_ident.c: New file.
76838         * tests/unictype/test-sy_java_ident.c: New file.
76840         * tests/unictype/test-categ_C.c: New file, generated by gen-ctype.c
76841         for Unicode 5.0.0.
76842         * tests/unictype/test-categ_Cc.c: Likewise.
76843         * tests/unictype/test-categ_Cf.c: Likewise.
76844         * tests/unictype/test-categ_Cn.c: Likewise.
76845         * tests/unictype/test-categ_Co.c: Likewise.
76846         * tests/unictype/test-categ_Cs.c: Likewise.
76847         * tests/unictype/test-categ_L.c: Likewise.
76848         * tests/unictype/test-categ_Ll.c: Likewise.
76849         * tests/unictype/test-categ_Lm.c: Likewise.
76850         * tests/unictype/test-categ_Lo.c: Likewise.
76851         * tests/unictype/test-categ_Lt.c: Likewise.
76852         * tests/unictype/test-categ_Lu.c: Likewise.
76853         * tests/unictype/test-categ_M.c: Likewise.
76854         * tests/unictype/test-categ_Mc.c: Likewise.
76855         * tests/unictype/test-categ_Me.c: Likewise.
76856         * tests/unictype/test-categ_Mn.c: Likewise.
76857         * tests/unictype/test-categ_N.c: Likewise.
76858         * tests/unictype/test-categ_Nd.c: Likewise.
76859         * tests/unictype/test-categ_Nl.c: Likewise.
76860         * tests/unictype/test-categ_No.c: Likewise.
76861         * tests/unictype/test-categ_P.c: Likewise.
76862         * tests/unictype/test-categ_Pc.c: Likewise.
76863         * tests/unictype/test-categ_Pd.c: Likewise.
76864         * tests/unictype/test-categ_Pe.c: Likewise.
76865         * tests/unictype/test-categ_Pf.c: Likewise.
76866         * tests/unictype/test-categ_Pi.c: Likewise.
76867         * tests/unictype/test-categ_Po.c: Likewise.
76868         * tests/unictype/test-categ_Ps.c: Likewise.
76869         * tests/unictype/test-categ_S.c: Likewise.
76870         * tests/unictype/test-categ_Sc.c: Likewise.
76871         * tests/unictype/test-categ_Sk.c: Likewise.
76872         * tests/unictype/test-categ_Sm.c: Likewise.
76873         * tests/unictype/test-categ_So.c: Likewise.
76874         * tests/unictype/test-categ_Z.c: Likewise.
76875         * tests/unictype/test-categ_Zl.c: Likewise.
76876         * tests/unictype/test-categ_Zp.c: Likewise.
76877         * tests/unictype/test-categ_Zs.c: Likewise.
76878         * tests/unictype/test-ctype_alnum.c: Likewise.
76879         * tests/unictype/test-ctype_alpha.c: Likewise.
76880         * tests/unictype/test-ctype_blank.c: Likewise.
76881         * tests/unictype/test-ctype_cntrl.c: Likewise.
76882         * tests/unictype/test-ctype_digit.c: Likewise.
76883         * tests/unictype/test-ctype_graph.c: Likewise.
76884         * tests/unictype/test-ctype_lower.c: Likewise.
76885         * tests/unictype/test-ctype_print.c: Likewise.
76886         * tests/unictype/test-ctype_punct.c: Likewise.
76887         * tests/unictype/test-ctype_space.c: Likewise.
76888         * tests/unictype/test-ctype_upper.c: Likewise.
76889         * tests/unictype/test-ctype_xdigit.c: Likewise.
76890         * tests/unictype/test-decdigit.h: Likewise.
76891         * tests/unictype/test-digit.h: Likewise.
76892         * tests/unictype/test-numeric.h: Likewise.
76893         * tests/unictype/test-pr_alphabetic.c: Likewise.
76894         * tests/unictype/test-pr_ascii_hex_digit.c: Likewise.
76895         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
76896         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
76897         * tests/unictype/test-pr_bidi_block_separator.c: Likewise.
76898         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
76899         * tests/unictype/test-pr_bidi_common_separator.c: Likewise.
76900         * tests/unictype/test-pr_bidi_control.c: Likewise.
76901         * tests/unictype/test-pr_bidi_embedding_or_override.c: Likewise.
76902         * tests/unictype/test-pr_bidi_eur_num_separator.c: Likewise.
76903         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
76904         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
76905         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
76906         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
76907         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
76908         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
76909         * tests/unictype/test-pr_bidi_pdf.c: Likewise.
76910         * tests/unictype/test-pr_bidi_segment_separator.c: Likewise.
76911         * tests/unictype/test-pr_bidi_whitespace.c: Likewise.
76912         * tests/unictype/test-pr_combining.c: Likewise.
76913         * tests/unictype/test-pr_composite.c: Likewise.
76914         * tests/unictype/test-pr_currency_symbol.c: Likewise.
76915         * tests/unictype/test-pr_dash.c: Likewise.
76916         * tests/unictype/test-pr_decimal_digit.c: Likewise.
76917         * tests/unictype/test-pr_default_ignorable_code_point.c: Likewise.
76918         * tests/unictype/test-pr_deprecated.c: Likewise.
76919         * tests/unictype/test-pr_diacritic.c: Likewise.
76920         * tests/unictype/test-pr_extender.c: Likewise.
76921         * tests/unictype/test-pr_format_control.c: Likewise.
76922         * tests/unictype/test-pr_grapheme_base.c: Likewise.
76923         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
76924         * tests/unictype/test-pr_grapheme_link.c: Likewise.
76925         * tests/unictype/test-pr_hex_digit.c: Likewise.
76926         * tests/unictype/test-pr_hyphen.c: Likewise.
76927         * tests/unictype/test-pr_id_continue.c: Likewise.
76928         * tests/unictype/test-pr_id_start.c: Likewise.
76929         * tests/unictype/test-pr_ideographic.c: Likewise.
76930         * tests/unictype/test-pr_ids_binary_operator.c: Likewise.
76931         * tests/unictype/test-pr_ids_trinary_operator.c: Likewise.
76932         * tests/unictype/test-pr_ignorable_control.c: Likewise.
76933         * tests/unictype/test-pr_iso_control.c: Likewise.
76934         * tests/unictype/test-pr_join_control.c: Likewise.
76935         * tests/unictype/test-pr_left_of_pair.c: Likewise.
76936         * tests/unictype/test-pr_line_separator.c: Likewise.
76937         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
76938         * tests/unictype/test-pr_lowercase.c: Likewise.
76939         * tests/unictype/test-pr_math.c: Likewise.
76940         * tests/unictype/test-pr_non_break.c: Likewise.
76941         * tests/unictype/test-pr_not_a_character.c: Likewise.
76942         * tests/unictype/test-pr_numeric.c: Likewise.
76943         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
76944         * tests/unictype/test-pr_other_default_ignorable_code_point.c: Likewise.
76945         * tests/unictype/test-pr_other_grapheme_extend.c: Likewise.
76946         * tests/unictype/test-pr_other_id_continue.c: Likewise.
76947         * tests/unictype/test-pr_other_id_start.c: Likewise.
76948         * tests/unictype/test-pr_other_lowercase.c: Likewise.
76949         * tests/unictype/test-pr_other_math.c: Likewise.
76950         * tests/unictype/test-pr_other_uppercase.c: Likewise.
76951         * tests/unictype/test-pr_paired_punctuation.c: Likewise.
76952         * tests/unictype/test-pr_paragraph_separator.c: Likewise.
76953         * tests/unictype/test-pr_pattern_syntax.c: Likewise.
76954         * tests/unictype/test-pr_pattern_white_space.c: Likewise.
76955         * tests/unictype/test-pr_private_use.c: Likewise.
76956         * tests/unictype/test-pr_punctuation.c: Likewise.
76957         * tests/unictype/test-pr_quotation_mark.c: Likewise.
76958         * tests/unictype/test-pr_radical.c: Likewise.
76959         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
76960         * tests/unictype/test-pr_soft_dotted.c: Likewise.
76961         * tests/unictype/test-pr_space.c: Likewise.
76962         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
76963         * tests/unictype/test-pr_titlecase.c: Likewise.
76964         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
76965         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
76966         * tests/unictype/test-pr_uppercase.c: Likewise.
76967         * tests/unictype/test-pr_variation_selector.c: Likewise.
76968         * tests/unictype/test-pr_white_space.c: Likewise.
76969         * tests/unictype/test-pr_xid_continue.c: Likewise.
76970         * tests/unictype/test-pr_xid_start.c: Likewise.
76971         * tests/unictype/test-pr_zero_width.c: Likewise.
76972         * tests/unictype/test-sy_c_whitespace.c: Likewise.
76973         * tests/unictype/test-sy_java_whitespace.c: Likewise.
76975 2007-11-12  Bruno Haible  <bruno@clisp.org>
76977         Unicode character classification functions.
76978         * lib/unictype.h: New file.
76979         * modules/unictype/base: New file.
76980         * modules/unictype/category-L: New file.
76981         * modules/unictype/category-Lu: New file.
76982         * modules/unictype/category-Ll: New file.
76983         * modules/unictype/category-Lt: New file.
76984         * modules/unictype/category-Lm: New file.
76985         * modules/unictype/category-Lo: New file.
76986         * modules/unictype/category-M: New file.
76987         * modules/unictype/category-Mn: New file.
76988         * modules/unictype/category-Mc: New file.
76989         * modules/unictype/category-Me: New file.
76990         * modules/unictype/category-N: New file.
76991         * modules/unictype/category-Nd: New file.
76992         * modules/unictype/category-Nl: New file.
76993         * modules/unictype/category-No: New file.
76994         * modules/unictype/category-P: New file.
76995         * modules/unictype/category-Pc: New file.
76996         * modules/unictype/category-Pd: New file.
76997         * modules/unictype/category-Ps: New file.
76998         * modules/unictype/category-Pe: New file.
76999         * modules/unictype/category-Pi: New file.
77000         * modules/unictype/category-Pf: New file.
77001         * modules/unictype/category-Po: New file.
77002         * modules/unictype/category-S: New file.
77003         * modules/unictype/category-Sm: New file.
77004         * modules/unictype/category-Sc: New file.
77005         * modules/unictype/category-Sk: New file.
77006         * modules/unictype/category-So: New file.
77007         * modules/unictype/category-Z: New file.
77008         * modules/unictype/category-Zs: New file.
77009         * modules/unictype/category-Zl: New file.
77010         * modules/unictype/category-Zp: New file.
77011         * modules/unictype/category-C: New file.
77012         * modules/unictype/category-Cc: New file.
77013         * modules/unictype/category-Cf: New file.
77014         * modules/unictype/category-Cs: New file.
77015         * modules/unictype/category-Co: New file.
77016         * modules/unictype/category-Cn: New file.
77017         * modules/unictype/category-or: New file.
77018         * modules/unictype/category-of: New file.
77019         * modules/unictype/category-test: New file.
77020         * modules/unictype/category-test-withtable: New file.
77021         * modules/unictype/category-byname: New file.
77022         * modules/unictype/category-none: New file.
77023         * modules/unictype/category-and: New file.
77024         * modules/unictype/category-and-not: New file.
77025         * modules/unictype/category-name: New file.
77026         * modules/unictype/combining-class: New file.
77027         * modules/unictype/category-all: New file.
77028         * modules/unictype/bidicategory-all: New file.
77029         * modules/unictype/bidicategory-byname: New file.
77030         * modules/unictype/bidicategory-name: New file.
77031         * modules/unictype/bidicategory-of: New file.
77032         * modules/unictype/bidicategory-test: New file.
77033         * modules/unictype/decimal-digit: New file.
77034         * modules/unictype/digit: New file.
77035         * modules/unictype/numeric: New file.
77036         * modules/unictype/mirror: New file.
77037         * modules/unictype/property-white-space: New file.
77038         * modules/unictype/property-alphabetic: New file.
77039         * modules/unictype/property-other-alphabetic: New file.
77040         * modules/unictype/property-not-a-character: New file.
77041         * modules/unictype/property-default-ignorable-code-point: New file.
77042         * modules/unictype/property-other-default-ignorable-code-point: New
77043         file.
77044         * modules/unictype/property-deprecated: New file.
77045         * modules/unictype/property-logical-order-exception: New file.
77046         * modules/unictype/property-variation-selector: New file.
77047         * modules/unictype/property-private-use: New file.
77048         * modules/unictype/property-unassigned-code-value: New file.
77049         * modules/unictype/property-uppercase: New file.
77050         * modules/unictype/property-other-uppercase: New file.
77051         * modules/unictype/property-lowercase: New file.
77052         * modules/unictype/property-other-lowercase: New file.
77053         * modules/unictype/property-titlecase: New file.
77054         * modules/unictype/property-soft-dotted: New file.
77055         * modules/unictype/property-id-start: New file.
77056         * modules/unictype/property-other-id-start: New file.
77057         * modules/unictype/property-id-continue: New file.
77058         * modules/unictype/property-other-id-continue: New file.
77059         * modules/unictype/property-xid-start: New file.
77060         * modules/unictype/property-xid-continue: New file.
77061         * modules/unictype/property-pattern-white-space: New file.
77062         * modules/unictype/property-pattern-syntax: New file.
77063         * modules/unictype/property-join-control: New file.
77064         * modules/unictype/property-grapheme-base: New file.
77065         * modules/unictype/property-grapheme-extend: New file.
77066         * modules/unictype/property-other-grapheme-extend: New file.
77067         * modules/unictype/property-grapheme-link: New file.
77068         * modules/unictype/property-bidi-control: New file.
77069         * modules/unictype/property-bidi-left-to-right: New file.
77070         * modules/unictype/property-bidi-hebrew-right-to-left: New file.
77071         * modules/unictype/property-bidi-arabic-right-to-left: New file.
77072         * modules/unictype/property-bidi-european-digit: New file.
77073         * modules/unictype/property-bidi-eur-num-separator: New file.
77074         * modules/unictype/property-bidi-eur-num-terminator: New file.
77075         * modules/unictype/property-bidi-arabic-digit: New file.
77076         * modules/unictype/property-bidi-common-separator: New file.
77077         * modules/unictype/property-bidi-block-separator: New file.
77078         * modules/unictype/property-bidi-segment-separator: New file.
77079         * modules/unictype/property-bidi-whitespace: New file.
77080         * modules/unictype/property-bidi-non-spacing-mark: New file.
77081         * modules/unictype/property-bidi-boundary-neutral: New file.
77082         * modules/unictype/property-bidi-pdf: New file.
77083         * modules/unictype/property-bidi-embedding-or-override: New file.
77084         * modules/unictype/property-bidi-other-neutral: New file.
77085         * modules/unictype/property-hex-digit: New file.
77086         * modules/unictype/property-ascii-hex-digit: New file.
77087         * modules/unictype/property-ideographic: New file.
77088         * modules/unictype/property-unified-ideograph: New file.
77089         * modules/unictype/property-radical: New file.
77090         * modules/unictype/property-ids-binary-operator: New file.
77091         * modules/unictype/property-ids-trinary-operator: New file.
77092         * modules/unictype/property-zero-width: New file.
77093         * modules/unictype/property-space: New file.
77094         * modules/unictype/property-non-break: New file.
77095         * modules/unictype/property-iso-control: New file.
77096         * modules/unictype/property-format-control: New file.
77097         * modules/unictype/property-dash: New file.
77098         * modules/unictype/property-hyphen: New file.
77099         * modules/unictype/property-punctuation: New file.
77100         * modules/unictype/property-line-separator: New file.
77101         * modules/unictype/property-paragraph-separator: New file.
77102         * modules/unictype/property-quotation-mark: New file.
77103         * modules/unictype/property-sentence-terminal: New file.
77104         * modules/unictype/property-terminal-punctuation: New file.
77105         * modules/unictype/property-currency-symbol: New file.
77106         * modules/unictype/property-math: New file.
77107         * modules/unictype/property-other-math: New file.
77108         * modules/unictype/property-paired-punctuation: New file.
77109         * modules/unictype/property-left-of-pair: New file.
77110         * modules/unictype/property-combining: New file.
77111         * modules/unictype/property-composite: New file.
77112         * modules/unictype/property-decimal-digit: New file.
77113         * modules/unictype/property-numeric: New file.
77114         * modules/unictype/property-diacritic: New file.
77115         * modules/unictype/property-extender: New file.
77116         * modules/unictype/property-ignorable-control: New file.
77117         * modules/unictype/property-test: New file.
77118         * modules/unictype/property-byname: New file.
77119         * modules/unictype/property-all: New file.
77120         * modules/unictype/scripts: New file.
77121         * modules/unictype/scripts-all: New file.
77122         * modules/unictype/block-of: New file.
77123         * modules/unictype/block-test: New file.
77124         * modules/unictype/block-list: New file.
77125         * modules/unictype/block-all: New file.
77126         * modules/unictype/syntax-c-whitespace: New file.
77127         * modules/unictype/syntax-java-whitespace: New file.
77128         * modules/unictype/syntax-c-ident: New file.
77129         * modules/unictype/syntax-java-ident: New file.
77130         * modules/unictype/ctype-alnum: New file.
77131         * modules/unictype/ctype-alpha: New file.
77132         * modules/unictype/ctype-cntrl: New file.
77133         * modules/unictype/ctype-digit: New file.
77134         * modules/unictype/ctype-graph: New file.
77135         * modules/unictype/ctype-lower: New file.
77136         * modules/unictype/ctype-print: New file.
77137         * modules/unictype/ctype-punct: New file.
77138         * modules/unictype/ctype-space: New file.
77139         * modules/unictype/ctype-upper: New file.
77140         * modules/unictype/ctype-xdigit: New file.
77141         * modules/unictype/ctype-blank: New file.
77142         * lib/unictype/bidi_byname.c: New file.
77143         * lib/unictype/bidi_name.c: New file.
77144         * lib/unictype/bidi_of.c: New file.
77145         * lib/unictype/bidi_test.c: New file.
77146         * lib/unictype/bitmap.h: New file.
77147         * lib/unictype/block_test.c: New file.
77148         * lib/unictype/blocks.c: New file.
77149         * lib/unictype/categ_C.c: New file.
77150         * lib/unictype/categ_Cc.c: New file.
77151         * lib/unictype/categ_Cf.c: New file.
77152         * lib/unictype/categ_Cn.c: New file.
77153         * lib/unictype/categ_Co.c: New file.
77154         * lib/unictype/categ_Cs.c: New file.
77155         * lib/unictype/categ_L.c: New file.
77156         * lib/unictype/categ_Ll.c: New file.
77157         * lib/unictype/categ_Lm.c: New file.
77158         * lib/unictype/categ_Lo.c: New file.
77159         * lib/unictype/categ_Lt.c: New file.
77160         * lib/unictype/categ_Lu.c: New file.
77161         * lib/unictype/categ_M.c: New file.
77162         * lib/unictype/categ_Mc.c: New file.
77163         * lib/unictype/categ_Me.c: New file.
77164         * lib/unictype/categ_Mn.c: New file.
77165         * lib/unictype/categ_N.c: New file.
77166         * lib/unictype/categ_Nd.c: New file.
77167         * lib/unictype/categ_Nl.c: New file.
77168         * lib/unictype/categ_No.c: New file.
77169         * lib/unictype/categ_P.c: New file.
77170         * lib/unictype/categ_Pc.c: New file.
77171         * lib/unictype/categ_Pd.c: New file.
77172         * lib/unictype/categ_Pe.c: New file.
77173         * lib/unictype/categ_Pf.c: New file.
77174         * lib/unictype/categ_Pi.c: New file.
77175         * lib/unictype/categ_Po.c: New file.
77176         * lib/unictype/categ_Ps.c: New file.
77177         * lib/unictype/categ_S.c: New file.
77178         * lib/unictype/categ_Sc.c: New file.
77179         * lib/unictype/categ_Sk.c: New file.
77180         * lib/unictype/categ_Sm.c: New file.
77181         * lib/unictype/categ_So.c: New file.
77182         * lib/unictype/categ_Z.c: New file.
77183         * lib/unictype/categ_Zl.c: New file.
77184         * lib/unictype/categ_Zp.c: New file.
77185         * lib/unictype/categ_Zs.c: New file.
77186         * lib/unictype/categ_and.c: New file.
77187         * lib/unictype/categ_and_not.c: New file.
77188         * lib/unictype/categ_byname.c: New file.
77189         * lib/unictype/categ_name.c: New file.
77190         * lib/unictype/categ_none.c: New file.
77191         * lib/unictype/categ_of.c: New file.
77192         * lib/unictype/categ_or.c: New file.
77193         * lib/unictype/categ_test.c: New file.
77194         * lib/unictype/combining.c: New file.
77195         * lib/unictype/ctype_alnum.c: New file.
77196         * lib/unictype/ctype_alpha.c: New file.
77197         * lib/unictype/ctype_blank.c: New file.
77198         * lib/unictype/ctype_cntrl.c: New file.
77199         * lib/unictype/ctype_digit.c: New file.
77200         * lib/unictype/ctype_graph.c: New file.
77201         * lib/unictype/ctype_lower.c: New file.
77202         * lib/unictype/ctype_print.c: New file.
77203         * lib/unictype/ctype_punct.c: New file.
77204         * lib/unictype/ctype_space.c: New file.
77205         * lib/unictype/ctype_upper.c: New file.
77206         * lib/unictype/ctype_xdigit.c: New file.
77207         * lib/unictype/decdigit.c: New file.
77208         * lib/unictype/digit.c: New file.
77209         * lib/unictype/identsyntaxmap.h: New file.
77210         * lib/unictype/mirror.c: New file.
77211         * lib/unictype/numeric.c: New file.
77212         * lib/unictype/pr_alphabetic.c: New file.
77213         * lib/unictype/pr_ascii_hex_digit.c: New file.
77214         * lib/unictype/pr_bidi_arabic_digit.c: New file.
77215         * lib/unictype/pr_bidi_arabic_right_to_left.c: New file.
77216         * lib/unictype/pr_bidi_block_separator.c: New file.
77217         * lib/unictype/pr_bidi_boundary_neutral.c: New file.
77218         * lib/unictype/pr_bidi_common_separator.c: New file.
77219         * lib/unictype/pr_bidi_control.c: New file.
77220         * lib/unictype/pr_bidi_embedding_or_override.c: New file.
77221         * lib/unictype/pr_bidi_eur_num_separator.c: New file.
77222         * lib/unictype/pr_bidi_eur_num_terminator.c: New file.
77223         * lib/unictype/pr_bidi_european_digit.c: New file.
77224         * lib/unictype/pr_bidi_hebrew_right_to_left.c: New file.
77225         * lib/unictype/pr_bidi_left_to_right.c: New file.
77226         * lib/unictype/pr_bidi_non_spacing_mark.c: New file.
77227         * lib/unictype/pr_bidi_other_neutral.c: New file.
77228         * lib/unictype/pr_bidi_pdf.c: New file.
77229         * lib/unictype/pr_bidi_segment_separator.c: New file.
77230         * lib/unictype/pr_bidi_whitespace.c: New file.
77231         * lib/unictype/pr_byname.c: New file.
77232         * lib/unictype/pr_byname.gperf: New file.
77233         * lib/unictype/pr_combining.c: New file.
77234         * lib/unictype/pr_composite.c: New file.
77235         * lib/unictype/pr_currency_symbol.c: New file.
77236         * lib/unictype/pr_dash.c: New file.
77237         * lib/unictype/pr_decimal_digit.c: New file.
77238         * lib/unictype/pr_default_ignorable_code_point.c: New file.
77239         * lib/unictype/pr_deprecated.c: New file.
77240         * lib/unictype/pr_diacritic.c: New file.
77241         * lib/unictype/pr_extender.c: New file.
77242         * lib/unictype/pr_format_control.c: New file.
77243         * lib/unictype/pr_grapheme_base.c: New file.
77244         * lib/unictype/pr_grapheme_extend.c: New file.
77245         * lib/unictype/pr_grapheme_link.c: New file.
77246         * lib/unictype/pr_hex_digit.c: New file.
77247         * lib/unictype/pr_hyphen.c: New file.
77248         * lib/unictype/pr_id_continue.c: New file.
77249         * lib/unictype/pr_id_start.c: New file.
77250         * lib/unictype/pr_ideographic.c: New file.
77251         * lib/unictype/pr_ids_binary_operator.c: New file.
77252         * lib/unictype/pr_ids_trinary_operator.c: New file.
77253         * lib/unictype/pr_ignorable_control.c: New file.
77254         * lib/unictype/pr_iso_control.c: New file.
77255         * lib/unictype/pr_join_control.c: New file.
77256         * lib/unictype/pr_left_of_pair.c: New file.
77257         * lib/unictype/pr_line_separator.c: New file.
77258         * lib/unictype/pr_logical_order_exception.c: New file.
77259         * lib/unictype/pr_lowercase.c: New file.
77260         * lib/unictype/pr_math.c: New file.
77261         * lib/unictype/pr_non_break.c: New file.
77262         * lib/unictype/pr_not_a_character.c: New file.
77263         * lib/unictype/pr_numeric.c: New file.
77264         * lib/unictype/pr_other_alphabetic.c: New file.
77265         * lib/unictype/pr_other_default_ignorable_code_point.c: New file.
77266         * lib/unictype/pr_other_grapheme_extend.c: New file.
77267         * lib/unictype/pr_other_id_continue.c: New file.
77268         * lib/unictype/pr_other_id_start.c: New file.
77269         * lib/unictype/pr_other_lowercase.c: New file.
77270         * lib/unictype/pr_other_math.c: New file.
77271         * lib/unictype/pr_other_uppercase.c: New file.
77272         * lib/unictype/pr_paired_punctuation.c: New file.
77273         * lib/unictype/pr_paragraph_separator.c: New file.
77274         * lib/unictype/pr_pattern_syntax.c: New file.
77275         * lib/unictype/pr_pattern_white_space.c: New file.
77276         * lib/unictype/pr_private_use.c: New file.
77277         * lib/unictype/pr_punctuation.c: New file.
77278         * lib/unictype/pr_quotation_mark.c: New file.
77279         * lib/unictype/pr_radical.c: New file.
77280         * lib/unictype/pr_sentence_terminal.c: New file.
77281         * lib/unictype/pr_soft_dotted.c: New file.
77282         * lib/unictype/pr_space.c: New file.
77283         * lib/unictype/pr_terminal_punctuation.c: New file.
77284         * lib/unictype/pr_test.c: New file.
77285         * lib/unictype/pr_titlecase.c: New file.
77286         * lib/unictype/pr_unassigned_code_value.c: New file.
77287         * lib/unictype/pr_unified_ideograph.c: New file.
77288         * lib/unictype/pr_uppercase.c: New file.
77289         * lib/unictype/pr_variation_selector.c: New file.
77290         * lib/unictype/pr_white_space.c: New file.
77291         * lib/unictype/pr_xid_continue.c: New file.
77292         * lib/unictype/pr_xid_start.c: New file.
77293         * lib/unictype/pr_zero_width.c: New file.
77294         * lib/unictype/scripts.c: New file.
77295         * lib/unictype/sy_c_ident.c: New file.
77296         * lib/unictype/sy_c_whitespace.c: New file.
77297         * lib/unictype/sy_java_ident.c: New file.
77298         * lib/unictype/sy_java_whitespace.c: New file.
77300         * lib/unictype/bidi_of.h: New file, generated by gen-ctype.c for
77301         Unicode 5.0.0.
77302         * lib/unictype/blocks.h: Likewise.
77303         * lib/unictype/categ_C.h: Likewise.
77304         * lib/unictype/categ_Cc.h: Likewise.
77305         * lib/unictype/categ_Cf.h: Likewise.
77306         * lib/unictype/categ_Cn.h: Likewise.
77307         * lib/unictype/categ_Co.h: Likewise.
77308         * lib/unictype/categ_Cs.h: Likewise.
77309         * lib/unictype/categ_L.h: Likewise.
77310         * lib/unictype/categ_Ll.h: Likewise.
77311         * lib/unictype/categ_Lm.h: Likewise.
77312         * lib/unictype/categ_Lo.h: Likewise.
77313         * lib/unictype/categ_Lt.h: Likewise.
77314         * lib/unictype/categ_Lu.h: Likewise.
77315         * lib/unictype/categ_M.h: Likewise.
77316         * lib/unictype/categ_Mc.h: Likewise.
77317         * lib/unictype/categ_Me.h: Likewise.
77318         * lib/unictype/categ_Mn.h: Likewise.
77319         * lib/unictype/categ_N.h: Likewise.
77320         * lib/unictype/categ_Nd.h: Likewise.
77321         * lib/unictype/categ_Nl.h: Likewise.
77322         * lib/unictype/categ_No.h: Likewise.
77323         * lib/unictype/categ_P.h: Likewise.
77324         * lib/unictype/categ_Pc.h: Likewise.
77325         * lib/unictype/categ_Pd.h: Likewise.
77326         * lib/unictype/categ_Pe.h: Likewise.
77327         * lib/unictype/categ_Pf.h: Likewise.
77328         * lib/unictype/categ_Pi.h: Likewise.
77329         * lib/unictype/categ_Po.h: Likewise.
77330         * lib/unictype/categ_Ps.h: Likewise.
77331         * lib/unictype/categ_S.h: Likewise.
77332         * lib/unictype/categ_Sc.h: Likewise.
77333         * lib/unictype/categ_Sk.h: Likewise.
77334         * lib/unictype/categ_Sm.h: Likewise.
77335         * lib/unictype/categ_So.h: Likewise.
77336         * lib/unictype/categ_Z.h: Likewise.
77337         * lib/unictype/categ_Zl.h: Likewise.
77338         * lib/unictype/categ_Zp.h: Likewise.
77339         * lib/unictype/categ_Zs.h: Likewise.
77340         * lib/unictype/categ_of.h: Likewise.
77341         * lib/unictype/combining.h: Likewise.
77342         * lib/unictype/ctype_alnum.h: Likewise.
77343         * lib/unictype/ctype_alpha.h: Likewise.
77344         * lib/unictype/ctype_blank.h: Likewise.
77345         * lib/unictype/ctype_cntrl.h: Likewise.
77346         * lib/unictype/ctype_digit.h: Likewise.
77347         * lib/unictype/ctype_graph.h: Likewise.
77348         * lib/unictype/ctype_lower.h: Likewise.
77349         * lib/unictype/ctype_print.h: Likewise.
77350         * lib/unictype/ctype_punct.h: Likewise.
77351         * lib/unictype/ctype_space.h: Likewise.
77352         * lib/unictype/ctype_upper.h: Likewise.
77353         * lib/unictype/ctype_xdigit.h: Likewise.
77354         * lib/unictype/decdigit.h: Likewise.
77355         * lib/unictype/digit.h: Likewise.
77356         * lib/unictype/mirror.h: Likewise.
77357         * lib/unictype/numeric.h: Likewise.
77358         * lib/unictype/pr_alphabetic.h: Likewise.
77359         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
77360         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
77361         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
77362         * lib/unictype/pr_bidi_block_separator.h: Likewise.
77363         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
77364         * lib/unictype/pr_bidi_common_separator.h: Likewise.
77365         * lib/unictype/pr_bidi_control.h: Likewise.
77366         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
77367         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
77368         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
77369         * lib/unictype/pr_bidi_european_digit.h: Likewise.
77370         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
77371         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
77372         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
77373         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
77374         * lib/unictype/pr_bidi_pdf.h: Likewise.
77375         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
77376         * lib/unictype/pr_bidi_whitespace.h: Likewise.
77377         * lib/unictype/pr_combining.h: Likewise.
77378         * lib/unictype/pr_composite.h: Likewise.
77379         * lib/unictype/pr_currency_symbol.h: Likewise.
77380         * lib/unictype/pr_dash.h: Likewise.
77381         * lib/unictype/pr_decimal_digit.h: Likewise.
77382         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
77383         * lib/unictype/pr_deprecated.h: Likewise.
77384         * lib/unictype/pr_diacritic.h: Likewise.
77385         * lib/unictype/pr_extender.h: Likewise.
77386         * lib/unictype/pr_format_control.h: Likewise.
77387         * lib/unictype/pr_grapheme_base.h: Likewise.
77388         * lib/unictype/pr_grapheme_extend.h: Likewise.
77389         * lib/unictype/pr_grapheme_link.h: Likewise.
77390         * lib/unictype/pr_hex_digit.h: Likewise.
77391         * lib/unictype/pr_hyphen.h: Likewise.
77392         * lib/unictype/pr_id_continue.h: Likewise.
77393         * lib/unictype/pr_id_start.h: Likewise.
77394         * lib/unictype/pr_ideographic.h: Likewise.
77395         * lib/unictype/pr_ids_binary_operator.h: Likewise.
77396         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
77397         * lib/unictype/pr_ignorable_control.h: Likewise.
77398         * lib/unictype/pr_iso_control.h: Likewise.
77399         * lib/unictype/pr_join_control.h: Likewise.
77400         * lib/unictype/pr_left_of_pair.h: Likewise.
77401         * lib/unictype/pr_line_separator.h: Likewise.
77402         * lib/unictype/pr_logical_order_exception.h: Likewise.
77403         * lib/unictype/pr_lowercase.h: Likewise.
77404         * lib/unictype/pr_math.h: Likewise.
77405         * lib/unictype/pr_non_break.h: Likewise.
77406         * lib/unictype/pr_not_a_character.h: Likewise.
77407         * lib/unictype/pr_numeric.h: Likewise.
77408         * lib/unictype/pr_other_alphabetic.h: Likewise.
77409         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
77410         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
77411         * lib/unictype/pr_other_id_continue.h: Likewise.
77412         * lib/unictype/pr_other_id_start.h: Likewise.
77413         * lib/unictype/pr_other_lowercase.h: Likewise.
77414         * lib/unictype/pr_other_math.h: Likewise.
77415         * lib/unictype/pr_other_uppercase.h: Likewise.
77416         * lib/unictype/pr_paired_punctuation.h: Likewise.
77417         * lib/unictype/pr_paragraph_separator.h: Likewise.
77418         * lib/unictype/pr_pattern_syntax.h: Likewise.
77419         * lib/unictype/pr_pattern_white_space.h: Likewise.
77420         * lib/unictype/pr_private_use.h: Likewise.
77421         * lib/unictype/pr_punctuation.h: Likewise.
77422         * lib/unictype/pr_quotation_mark.h: Likewise.
77423         * lib/unictype/pr_radical.h: Likewise.
77424         * lib/unictype/pr_sentence_terminal.h: Likewise.
77425         * lib/unictype/pr_soft_dotted.h: Likewise.
77426         * lib/unictype/pr_space.h: Likewise.
77427         * lib/unictype/pr_terminal_punctuation.h: Likewise.
77428         * lib/unictype/pr_titlecase.h: Likewise.
77429         * lib/unictype/pr_unassigned_code_value.h: Likewise.
77430         * lib/unictype/pr_unified_ideograph.h: Likewise.
77431         * lib/unictype/pr_uppercase.h: Likewise.
77432         * lib/unictype/pr_variation_selector.h: Likewise.
77433         * lib/unictype/pr_white_space.h: Likewise.
77434         * lib/unictype/pr_xid_continue.h: Likewise.
77435         * lib/unictype/pr_xid_start.h: Likewise.
77436         * lib/unictype/pr_zero_width.h: Likewise.
77437         * lib/unictype/scripts.h: Likewise.
77438         * lib/unictype/scripts_byname.gperf: Likewise.
77439         * lib/unictype/sy_c_ident.h: Likewise.
77440         * lib/unictype/sy_c_whitespace.h: Likewise.
77441         * lib/unictype/sy_java_ident.h: Likewise.
77442         * lib/unictype/sy_java_whitespace.h: Likewise.
77444         * lib/unictype/Makefile: New file.
77445         * lib/unictype/gen-ctype.c: New file, based on gen-unicode-ctype.c in
77446         glibc.
77447         * lib/unictype/3level.h: New file, copied from glibc.
77448         * lib/unictype/3levelbit.h: New file.
77450 2007-11-11  Bruno Haible  <bruno@clisp.org>
77452         * modules/gperf: New file.
77453         * modules/iconv_open (Depends-on): Add it.
77454         (Makefile.am): Remove the GPERF definition.
77456 2007-11-11  Bruno Haible  <bruno@clisp.org>
77458         * m4/round.m4 (gl_FUNC_ROUND): Test against NetBSD 3.0 bug.
77459         * doc/functions/round.texi: Mention the NetBSD 3.0 bug.
77461 2007-11-11  Bruno Haible  <bruno@clisp.org>
77463         * tests/test-argmatch.c (ARGMATCH_DIE): Undefine.
77464         (usage): Remove function.
77466 2007-11-11  Bruno Haible  <bruno@clisp.org>
77468         * m4/roundf.m4 (gl_FUNC_ROUNDF): Use gl_FUNC_FLOORF_LIBS and
77469         gl_FUNC_CEILF_LIBS.
77470         * m4/round.m4 (gl_FUNC_ROUND): Use gl_FUNC_FLOOR_LIBS and
77471         gl_FUNC_CEIL_LIBS.
77472         * m4/roundl.m4 (gl_FUNC_ROUNDL): Use gl_FUNC_FLOORL_LIBS and
77473         gl_FUNC_CEILL_LIBS.
77474         * modules/roundf (Files): Add m4/floorf.m4, m4/ceilf.m4.
77475         * modules/round (Files): Add m4/floor.m4, m4/ceil.m4.
77476         * modules/roundl (Files): Add m4/floorl.m4, m4/ceill.m4.
77478 2007-11-11  Bruno Haible  <bruno@clisp.org>
77480         * m4/roundf.m4 (gl_FUNC_ROUNDF): Handle the case that floorf and
77481         roundf were declared but do not exist on functions.
77482         * m4/roundl.m4 (gl_FUNC_ROUNDL): Handle the case that floorl and
77483         roundl were declared but do not exist on functions.
77484         * lib/round.c (HAVE_FLOOR_AND_CEIL): Use HAVE_FLOORF_AND_CEILF and
77485         HAVE_FLOORL_AND_CEILL, respectively.
77486         Needed for Sun C on Solaris 10.
77488 2007-11-11  Bruno Haible  <bruno@clisp.org>
77490         * m4/roundf.m4 (gl_FUNC_ROUNDF): Set REPLACE_ROUNDF instead of
77491         HAVE_DECL_ROUNDF. Remove redundant AC_SUBST.
77492         * m4/round.m4 (gl_FUNC_ROUND): Set REPLACE_ROUND instead of
77493         HAVE_DECL_ROUND. Remove redundant AC_SUBST.
77494         * m4/roundl.m4 (gl_FUNC_ROUNDL): Set REPLACE_ROUNDL instead of
77495         HAVE_DECL_ROUNDL. Remove redundant AC_SUBST.
77496         * lib/math.in.h (roundf): Use REPLACE_ROUNDF instead of
77497         HAVE_DECL_ROUNDF.
77498         (round): Use REPLACE_ROUND instead of HAVE_DECL_ROUND.
77499         (roundl): Use REPLACE_ROUNDL instead of HAVE_DECL_ROUNDL.
77500         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ROUND* instead
77501         of HAVE_DECL_ROUND*.
77502         * modules/math (Makefile.am): Update.
77504 2007-11-10  Bruno Haible  <bruno@clisp.org>
77506         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Use same check for
77507         ptrdiff_t as m4/intl.m4.
77509 2007-11-10  Jim Meyering  <meyering@redhat.com>
77511         Avoid link failure for the argmatch test.
77512         * tests/test-argmatch.c (usage): Define function to avoid a link
77513         failure: argmatch_die requires a usage function.
77515 2007-11-09  Bruno Haible  <bruno@clisp.org>
77517         * doc/functions/snprintf.texi: Mention BeOS deficiency.
77518         * doc/functions/vsnprintf.texi: Likewise.
77519         * lib/vasnprintf.c (VASNPRINTF): Ensure that we never call snprintf
77520         with a size argument < 2.
77522 2007-11-09  Bruno Haible  <bruno@clisp.org>
77524         * lib/vasnprintf.c (VASNPRINTF): Increase reallocation of snprintf
77525         buffer. Fixes an inefficiency introduced on 2007-11-03.
77527 2007-11-09  Bruno Haible  <bruno@clisp.org>
77529         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8) [BeOS]: Make this test return
77530         none instead of tr_TR. Fixes a failure of test-c-strcasecmp.c.
77532 2007-11-08  Jim Meyering  <meyering@redhat.com>
77534         Change cache variable name prefix "jm_" to "gl_" everywhere.
77535         * m4/d-type.m4, m4/jm-winsz1.m4, m4/jm-winsz2.m4, m4/link-follow.m4:
77536         * m4/putenv.m4, m4/strtoimax.m4, m4/strtoumax.m4, m4/unlink-busy.m4:
77537         * m4/uptime.m4: s/gl_/jm_/
77539 2007-11-07  Bruno Haible  <bruno@clisp.org>
77541         Update to GNU gettext 0.17.
77542         * m4/intl.m4: Update to GNU gettext 0.17.
77543         * m4/po.m4: Likewise.
77544         * modules/gettext (Files): Remove m4/ulonglong.m4.
77545         (configure.ac): Require gettext infrastructure from version 0.17.
77547 2007-11-06  Bruno Haible  <bruno@clisp.org>
77549         * lib/fbufmode.c (fbufmode) [QNX]: Use numerical values for flags; the
77550         symbolic values are not defined in a public header.
77551         * lib/freadable.c (freadable) [QNX]: Likewise.
77552         * lib/freadahead.c (freadahead) [QNX]: Likewise.
77553         * lib/freading.c (freading) [QNX]: Likewise.
77554         * lib/fseterr.c (fseterr) [QNX]: Likewise.
77555         * lib/fwritable.c (fwritable) [QNX]: Likewise.
77556         * lib/fwriting.c (fwriting) [QNX]: Likewise.
77557         * lib/fpurge.c (fpurge) [QNX]: Likewise. Add a return statement.
77558         Reported by Alain Magloire.
77560         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for QNX.
77562 2007-11-05  Bruno Haible  <bruno@clisp.org>
77564         * lib/vasnprintf.c (VASNPRINTF): Expand the NEED_PRINTF_DIRECTIVE_A
77565         code when NEED_PRINTF_LONG_DOUBLE or NEED_PRINTF_DOUBLE is set.
77566         Needed on Cygwin, where !NEED_PRINTF_DIRECTIVE_A && NEED_PRINTF_DOUBLE.
77567         Reported by Eric Blake.
77569 2007-10-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77570             Bruno Haible  <bruno@clisp.org>
77572         * modules/malloc (configure.ac): Define GNULIB_MALLOC_GNU always.
77573         * modules/realloc (configure.ac): Define GNULIB_REALLOC_GNU always.
77574         * lib/realloc.c (SYSTEM_MALLOC_GLIBC_COMPATIBLE): New macro.
77575         (malloc): Undefine also before including <stdlib.h>.
77576         (rpl_realloc): Turn malloc(0) into malloc(1) if necessary.
77577         Needed on OSF/1 4.0.
77579 2007-11-05  Jim Meyering  <meyering@redhat.com>
77581         git-version-gen: sync from coreutils.
77582         * build-aux/git-version-gen: Add comments.
77583         Change the first '-' to '.' in the snapshot version string,
77584         e.g., 6.9-377-08144 -> 6.9.377-08144
77585         Remove first parameter.
77586         Don't declare a version "-dirty" merely because a time
77587         stamp has changed.
77589 2007-11-04  Bruno Haible  <bruno@clisp.org>
77591         * lib/lock.h: Protect all macro definitions containing an 'if'
77592         statement through a "do { ... } while (0)".
77593         * lib/tls.h: Likewise.
77595 2007-11-04  Bruno Haible  <bruno@clisp.org>
77597         * lib/vasnprintf.c (DCHAR_IS_TCHAR, DCHAR_CPY): Undefine at the end.
77599 2007-11-04  Bruno Haible  <bruno@clisp.org>
77601         * m4/printf.m4 (gl_PRINTF_ENOMEM): Use GL_NOCRASH.
77602         * modules/fprintf-posix (Depends-on): Add nocrash.
77603         * modules/snprintf-posix (Depends-on): Likewise.
77604         * modules/sprintf-posix (Depends-on): Likewise.
77605         * modules/vasnprintf-posix (Depends-on): Likewise.
77606         * modules/vasprintf-posix (Depends-on): Likewise.
77607         * modules/vfprintf-posix (Depends-on): Likewise.
77608         * modules/vsnprintf-posix (Depends-on): Likewise.
77609         * modules/vsprintf-posix (Depends-on): Likewise.
77610         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
77611         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
77612         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
77613         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
77614         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
77615         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
77616         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
77618 2007-11-04  Bruno Haible  <bruno@clisp.org>
77620         * modules/nocrash: New file.
77621         * m4/nocrash.m4: New file, taken from GNU clisp. Code taken from
77622         GNU libsigsegv, with permission of GNU libsigsegv's copyright holders.
77624 2007-11-04  Bruno Haible  <bruno@clisp.org>
77626         * tests/test-vasnprintf-posix.c (test_function): Add some tests of
77627         precision handling.
77628         * tests/test-vasprintf-posix.c (test_function): Likewise.
77629         * tests/test-snprintf-posix.h (test_function): Likewise.
77630         * tests/test-sprintf-posix.h (test_function): Likewise.
77632         Fix *printf behaviour for large precisions on mingw and BeOS.
77633         * m4/printf.m4 (gl_PRINTF_PRECISION): New macro.
77634         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_UNBOUNDED_PRECISION.
77635         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_PRECISION): New macro.
77636         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
77637         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
77638         gl_PRINTF_PRECISION and test its result. Invoke
77639         gl_PREREQ_VASNPRINTF_PRECISION.
77640         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
77641         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
77642         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
77643         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
77644         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
77645         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
77646         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): 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-04  Bruno Haible  <bruno@clisp.org>
77658         * lib/vasnprintf.c (scale10_round_decimal_decoded): Fix shift loop.
77660 2007-11-04  Bruno Haible  <bruno@clisp.org>
77662         * modules/relocatable-prog (Files): Add m4/lib-ld.m4.
77663         Reported by Sylvain Beucler <beuc@gnu.org>.
77665 2007-11-03  Bruno Haible  <bruno@clisp.org>
77667         * tests/test-fprintf-posix2.sh: New file.
77668         * tests/test-fprintf-posix2.c: New file.
77669         * modules/fprintf-posix-tests (Files): Add them.
77670         (TESTS): Add test-fprintf-posix2.sh.
77671         (configure.ac): Check for getrlimit and setrlimit.
77672         (check_PROGRAMS): Add test-fprintf-posix2.
77674         * tests/test-printf-posix2.sh: New file.
77675         * tests/test-printf-posix2.c: New file.
77676         * modules/printf-posix-tests (Files): Add them.
77677         (TESTS): Add test-printf-posix2.sh.
77678         (configure.ac): Check for getrlimit and setrlimit.
77679         (check_PROGRAMS): Add test-printf-posix2.
77681         Fix *printf behaviour in out-of-memory situations on MacOS X and *BSD.
77682         * m4/printf.m4 (gl_PRINTF_ENOMEM): New macro.
77683         * lib/vasnprintf.c: Implement NEED_PRINTF_DOUBLE.
77684         (decode_double): New function, copied from decode_long_double.
77685         (scale10_round_decimal_decoded): New function, extracted from
77686         scale10_round_decimal_long_double.
77687         (scale10_round_decimal_long_double): Use it.
77688         (scale10_round_decimal_double): New function.
77689         (floorlog10): New function.
77690         (VASNPRINTF): Handle NEED_PRINTF_DOUBLE case.
77691         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_ENOMEM): New macro.
77692         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
77693         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
77694         gl_PRINTF_ENOMEM and test its result. Invoke
77695         gl_PREREQ_VASNPRINTF_ENOMEM.
77696         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
77697         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
77698         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
77699         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
77700         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
77701         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
77702         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
77703         * modules/fprintf-posix (Depends-on): Add frexp-nolibm.
77704         * modules/snprintf-posix (Depends-on): Likewise.
77705         * modules/sprintf-posix (Depends-on): Likewise.
77706         * modules/vasnprintf-posix (Depends-on): Likewise.
77707         * modules/vasprintf-posix (Depends-on): Likewise.
77708         * modules/vfprintf-posix (Depends-on): Likewise.
77709         * modules/vsnprintf-posix (Depends-on): Likewise.
77710         * modules/vsprintf-posix (Depends-on): Likewise.
77711         * doc/functions/fprintf.texi: Update.
77712         * doc/functions/printf.texi: Update.
77713         * doc/functions/snprintf.texi: Update.
77714         * doc/functions/sprintf.texi: Update.
77715         * doc/functions/vfprintf.texi: Update.
77716         * doc/functions/vprintf.texi: Update.
77717         * doc/functions/vsnprintf.texi: Update.
77718         * doc/functions/vsprintf.texi: Update.
77720 2007-11-03  Bruno Haible  <bruno@clisp.org>
77722         * modules/frexp-nolibm-tests: New file.
77724         * modules/frexp-nolibm: New file.
77725         * m4/frexp.m4 (gl_FUNC_FREXP_NO_LIBM): New macro.
77727 2007-11-03  Bruno Haible  <bruno@clisp.org>
77729         * lib/vasnprintf.c (VASNPRINTF): Don't assume that snprintf's return
77730         value is C99 compliant.
77731         Needed for OSF/1 5.1.
77733 2007-11-03  Bruno Haible  <bruno@clisp.org>
77735         Fix out-of-memory handling of vasnprintf.
77736         * lib/printf-parse.c: Include <errno.h>.
77737         (PRINTF_PARSE): When failing, set errno to EINVAL or ENOMEM.
77738         * lib/vasnprintf.c (VASNPRINTF): When PRINTF_PARSE fails, assume errno
77739         is already set.
77741 2007-11-02  Eric Blake  <ebb9@byu.net>
77743         Fix tests on cygwin.
77744         * modules/xprintf-posix-tests (Makefile.am): Link against -lintl.
77746 2007-11-01  Bruno Haible  <bruno@clisp.org>
77748         * lib/stdlib.in.h (putenv): Remove the "not POSIX compliant everywhere"
77749         warning.
77750         * doc/functions/putenv.texi: Clarify that the 'putenv' module is not
77751         needed for POSIX compatibility.
77753 2007-11-01  Paul Eggert  <eggert@cs.ucla.edu>
77755         * m4/putenv.m4 (gl_FUNC_PUTENV): Also mention that we're checking
77756         for compatibility with GNU.
77758 2007-11-01  Bruno Haible  <bruno@clisp.org>
77760         * lib/putenv.c: Include <stdlib.h>. Remove rpl_putenv declaration.
77761         (putenv): Renamed from rpl_putenv. Change argument type from
77762         'const char *' to 'char *'.
77763         * m4/putenv.m4 (gl_FUNC_PUTENV): Require gl_STDLIB_H_DEFAULTS. Instead
77764         of defining putenv in config.h, just set REPLACE_PUTENV.
77765         * modules/putenv (Depends-on): Add stdlib.
77766         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
77767         (Include): Use <stdlib.h>.
77768         * lib/stdlib.in.h (putenv): New declaration.
77769         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PUTENV and
77770         REPLACE_PUTENV.
77771         * modules/stdlib (Makefile.am): Substitute GNULIB_PUTENV and
77772         REPLACE_PUTENV.
77773         Needed for MacOS X 10.5.0.
77774         Reported by Peter O'Gorman <peter@pogma.com>.
77776 2007-11-01  Jim Meyering  <meyering@redhat.com>
77778         Treat an empty date string exactly like "0".
77779         * lib/getdate.y (get_date): Once any isspace or TZ= prefix is consumed,
77780         if the remaining date string (to be parsed) is empty, use "0".
77781         Reported by Mischa Molhoek and discussed in this thread:
77782         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/11726>.
77784 2007-10-31  Bruno Haible  <bruno@clisp.org>
77786         * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Use
77787         AC_TYPE_LONG_LONG_INT instead of gl_AC_TYPE_LONG_LONG.
77788         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Use
77789         AC_TYPE_UNSIGNED_LONG_LONG_INT instead of gl_AC_TYPE_UNSIGNED_LONG_LONG.
77790         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Remove macro.
77791         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Remove macro.
77793 2007-10-31  Bruno Haible  <bruno@clisp.org>
77795         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): New macro, extracted
77796         from AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT.
77797         (AC_TYPE_LONG_LONG_INT): Use it.
77798         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Moved here from m4/ulonglong.m4. Use
77799         it as well.
77800         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Remove macro; moved
77801         to m4/longlong.m4.
77802         * modules/stdint (Files): Remove m4/ulonglong.m4.
77803         * modules/strtoull (Files): Use m4/longlong.m4 instead of
77804         m4/ulonglong.m4.
77805         * modules/strtoumax (Files): Likewise.
77807 2007-10-30  Bruno Haible  <bruno@clisp.org>
77809         * modules/xvasprintf-posix: New file.
77810         Suggested by Eric Blake.
77812 2007-10-30  Bruno Haible  <bruno@clisp.org>
77814         * modules/xprintf-posix-tests: New file.
77815         * tests/test-xprintf-posix.sh: New file.
77816         * tests/test-xprintf-posix.c: New file.
77817         * tests/test-xfprintf-posix.c: New file.
77819         * modules/xprintf-posix: New file.
77821 2007-10-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77823         * modules/fbufmode-tests (MOSTLYCLEANFILES): Remove temp files.
77824         * modules/freadable-tests (MOSTLYCLEANFILES): Likewise.
77825         * modules/fwritable-tests (MOSTLYCLEANFILES): Likewise.
77827 2007-10-29  Bruno Haible  <bruno@clisp.org>
77829         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Rename the cache variable to
77830         contain the special marker '_cv_'.
77831         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
77832         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
77833         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
77834         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
77835         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
77836         Reported by Ralf Wildenhues.
77838 2007-10-29  Bruno Haible  <bruno@clisp.org>
77840         * gnulib-tool (func_import): When --lgpl is not specified, set
77841         sed_transform_lib_file to convert LGPL and GPLv2+ copyright headers to
77842         GPLv3.
77843         Reported by Simon Josefsson.
77845 2007-10-28  Bruno Haible  <bruno@clisp.org>
77847         * lib/math.in.h: Test REPLACE_ISFINITE instead of HAVE_DECL_ISFINITE.
77848         * m4/isfinite.m4 (gl_ISFINITE): Initialize REPLACE_ISFINITE instead of
77849         HAVE_DECL_ISFINITE.
77850         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
77851         * modules/math (Makefile.am): Substitute REPLACE_ISFINITE instead of
77852         HAVE_DECL_ISFINITE.
77854 2007-10-28  Bruno Haible  <bruno@clisp.org>
77856         * lib/stdint.in.h (_STDINT_MAX): Subtract 1 from an unused signed
77857         integer shift in the signed case. Fixes warnings with OSF/1 5.1 cc.
77859 2007-10-28  Bruno Haible  <bruno@clisp.org>
77861         Fix link errors with Sun C 5.0 on Solaris 10.
77862         * m4/floorf.m4 (gl_FUNC_FLOORF): Consider also the case that the
77863         function is declared but not present in the compiler's libm.
77864         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
77865         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
77866         * m4/ceill.m4 (gl_FUNC_CEILL: Likewise.
77867         * lib/math.in.h: Test REPLACE_CEILF instead of HAVE_DECL_CEILF.
77868         Test REPLACE_CEILL instead of HAVE_DECL_CEILL.
77869         Test REPLACE_FLOORF instead of HAVE_DECL_FLOORF.
77870         Test REPLACE_FLOORL instead of HAVE_DECL_FLOORL.
77871         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
77872         * modules/math (Makefile.am): Substitute REPLACE_CEILF instead of
77873         HAVE_DECL_CEILF, REPLACE_CEILL instead of HAVE_DECL_CEILL,
77874         REPLACE_FLOORF instead of HAVE_DECL_FLOORF, REPLACE_FLOORL instead of
77875         HAVE_DECL_FLOORL.
77877 2007-10-28  Bruno Haible  <bruno@clisp.org>
77879         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): New macro, extracted from
77880         gl_FUNC_FLOORL. Cache the result.
77881         (gl_FUNC_FLOORL): Use it.
77882         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): New macro, extracted from
77883         gl_FUNC_CEILL. Cache the result.
77884         (gl_FUNC_CEILL): Use it.
77886         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): New macro, extracted from
77887         gl_FUNC_FLOOR. Cache the result.
77888         (gl_FUNC_FLOOR): Use it.
77889         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): New macro, extracted from
77890         gl_FUNC_CEIL. Cache the result.
77891         (gl_FUNC_CEIL): Use it.
77893         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): New macro, extracted from
77894         gl_FUNC_FLOORF. Cache the result.
77895         (gl_FUNC_FLOORF): Use it.
77896         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): New macro, extracted from
77897         gl_FUNC_CEILF. Cache the result.
77898         (gl_FUNC_CEILF): Use it.
77900 2007-10-28  Bruno Haible  <bruno@clisp.org>
77902         * gnulib-tool: Allow specifying the LGPL version number through
77903         --lgpl=2 or --lgpl=3.
77904         (func_usage): Document --lgpl with argument.
77905         Handle --lgpl=... arguments.
77906         (func_import): Recognize also gl_LGPL calls with an argument. When
77907         --lgpl=2 is used and the module's license is just LGPL, report an
77908         error. Set sed_transform_lib_file according to the lgpl variable. In
77909         the generated files, use --lgpl or gl_LGPL invocations with argument,
77910         if necessary.
77911         * doc/gnulib-intro.texi (Copyright): Explain how to get modules under
77912         an LGPv2+ license.
77913         * doc/gnulib-tool.texi (Modified imports): Update explanation of
77914         gl_LGPL macro.
77916 2007-10-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77917             Bruno Haible  <bruno@clisp.org>
77919         * lib/unistr.h (u8_uctomb_aux): Declare also if !HAVE_INLINE.
77920         (u16_uctomb_aux): Likewise.
77921         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Define also if
77922         !HAVE_INLINE.
77923         * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise
77925 2007-10-28  Bruno Haible  <bruno@clisp.org>
77927         * modules/error: Add a notice recommending to change XGETTEXT_OPTIONS.
77928         Invoke AM_GETTEXT_OPTION if it exists.
77929         * modules/vasprintf: Likewise.
77930         * modules/verror: Likewise.
77931         * modules/xprintf: Likewise.
77932         * modules/xvasprintf: Likewise.
77934 2007-10-27  Ben Pfaff  <blp@gnu.org>
77936         * lib/math.in.h: Define isfinite macro and prototypes for
77937         gl_isfinitef, gl_isfinited, gl_isfinitel if we are providing
77938         implementations.
77939         * m4/math_h.m4: New substitutions for isfinite module.
77940         * lib/isfinite.c: New file.
77941         * m4/isfinite.m4: New file.
77942         * modules/math: Replace isfinite-related @VARS@ in math.in.h.
77943         * modules/isfinite: New file.
77944         * modules/isfinite-tests: New file.
77945         * tests/tests-isfinite.c: New file.
77946         * doc/functions/isfinite.texi: Mention isfinite module.
77947         * MODULES.html.sh: Mention new module.
77949 2007-10-27  Ben Pfaff  <blp@gnu.org>
77951         Ralf Wildenhues reported that Tru64 4.0D declares the round
77952         functions but does not have definitions.
77953         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): If the target function
77954         cannot be found in any library, set the output variable to
77955         "missing" instead of "".
77956         * m4/round.m4: Also use our substitute if we cannot find round in
77957         any library, even if it is declared.
77958         * m4/roundf.m4: Likewise for roundf.
77959         * m4/roundl.m4: Likewise for roundl.
77960         * lib/math.in.h: Undefine roundf, round, roundl before defining
77961         their replacements, to allow for hypothetical systems where these
77962         may be defined as macros but not available in libraries.
77964 2007-10-27  Bruno Haible  <bruno@clisp.org>
77966         * doc/gnulib.texi: Invoke @firstparagraphindent.
77967         * doc/gnulib-tool.texi (Simple update): Mention possible incompatible
77968         changes in gnulib.
77969         (Source changes): New section.
77971 2007-10-26  Bruno Haible  <bruno@clisp.org>
77973         * m4/gnulib-common.m4 (AC_C_RESTRICT): New overriding definition,
77974         borrowed from autoconf.
77976 2007-10-26  Bruno Haible  <bruno@clisp.org>
77978         * lib/strerror.c (rpl_strerror): Return "Unknown error ..." also if
77979         strerror returned the empty string. Needed on HP-UX 11.00.
77981 2007-10-24  Micah Cowan  <micah@cowan.name>
77983         Remove vestiges of cvs-gnulib-checkout process.  Now we use git.
77984         * build-aux/bootstrap: Remove support for now-unnecessary option,
77985         --cvs-user, and envvars CVS_USER, CVS_RSH.
77987 2007-10-24  Jim Meyering  <meyering@redhat.com>
77989         Avoid diagnostics from sha1sum when there is no cached checksum.
77990         * build-aux/bootstrap (update_po_files): Skip the sha1sum check
77991         if the po.s1 file hasn't been created yet.
77993         * build-aux/bootstrap: Sync from coreutils:
77994         2007-10-24  Jim Meyering  <meyering@redhat.com>
77995         Get gnulib from the git repository, not from an obsolete cvs one.
77996         * build-aux/bootstrap: Suggestion from Micah Cowan.
77997         2007-10-04  Jim Meyering  <jim@meyering.net>
77998         * build-aux/bootstrap (slurp): Adapt to _.h -> .in.h name change.
77999         (update_po_files): Work also when there are no .po files in po/.
78001 2007-10-24  Paul Eggert  <eggert@cs.ucla.edu>
78003         * README: Append ".git" to git and cg examples.
78004         Problem reported by Benoit Sigoure.
78006 2007-10-23  Micah Cowan  <micah@cowan.name>
78008         * users.txt: Add wget.
78010 2007-10-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
78012         Fix linking of some unistdio tests on FreeBSD.
78013         * modules/unistdio/u16-vsnprintf-tests
78014         (test_u16_vsprintf1_LDADD): Add @LIBINTL@.
78015         * modules/unistdio/u16-vsprintf-tests
78016         (test_u16_vsnprintf1_LDADD): Likewise.
78017         * modules/unistdio/u32-vsnprintf-tests
78018         (test_u32_vsnprintf1_LDADD): Likewise.
78019         * modules/unistdio/u32-vsprintf-tests
78020         (test_u32_vsprintf1_LDADD): Likewise.
78021         * modules/unistdio/u8-vsnprintf-tests
78022         (test_u8_vsnprintf1_LDADD): Likewise.
78023         * modules/unistdio/u8-vsprintf-tests
78024         (test_u8_vsprintf1_LDADD): Likewise.
78025         * modules/unistdio/ulc-vsnprintf-tests
78026         (test_ulc_vsnprintf1_LDADD): Likewise.
78027         * modules/unistdio/ulc-vsprintf-tests
78028         (test_ulc_vsprintf1_LDADD): Likewise.
78030         Fix linking of some uniconv tests on FreeBSD.
78031         * modules/uniconv/u16-conv-from-enc-tests
78032         (test_u16_conv_from_enc_LDADD): Link $(LDADD) before @LIBICONV@.
78033         * modules/uniconv/u16-conv-to-enc-tests
78034         (test_u16_conv_to_enc_LDADD): Likewise.
78035         * modules/uniconv/u16-strconv-from-enc-tests
78036         (test_u16_strconv_from_enc_LDADD): Likewise.
78037         * modules/uniconv/u16-strconv-to-enc-tests
78038         (test_u16_strconv_to_enc_LDADD): Likewise.
78039         * modules/uniconv/u32-conv-from-enc-tests
78040         (test_u32_conv_from_enc_LDADD): Likewise.
78041         * modules/uniconv/u32-conv-to-enc-tests
78042         (test_u32_conv_to_enc_LDADD): Likewise.
78043         * modules/uniconv/u32-strconv-from-enc-tests
78044         (test_u32_strconv_from_enc_LDADD): Likewise.
78045         * modules/uniconv/u32-strconv-to-enc-tests
78046         (test_u32_strconv_to_enc_LDADD): Likewise.
78047         * modules/uniconv/u8-conv-from-enc-tests
78048         (test_u8_conv_from_enc_LDADD): Likewise.
78049         * modules/uniconv/u8-conv-to-enc-tests
78050         (test_u8_conv_to_enc_LDADD): Likewise.
78051         * modules/uniconv/u8-strconv-from-enc-tests
78052         (test_u8_strconv_from_enc_LDADD): Likewise.
78053         * modules/uniconv/u8-strconv-to-enc-tests
78054         (test_u8_strconv_to_enc_LDADD): Likewise.
78056 2007-10-22  Bruno Haible  <bruno@clisp.org>
78058         * lib/stdint.in.h: Add check that intmax_t and uintmax_t have the same
78059         size.
78061 2007-10-22  Eric Blake  <ebb9@byu.net>
78063         Tweak x*printf documentation.
78064         * lib/xprintf.c (xprintf, xvprintf, xfprintf, xvfprintf): Adjust
78065         variable name and comments.
78066         Suggested by Bruno Haible.
78068 2007-10-22  Bruno Haible  <bruno@clisp.org>
78070         * lib/acl.c (copy_acl): Fix file name in comment.
78072 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
78074         Fix Tru64 problem with stdbool.h.
78075         * lib/stdbool.in.h (false, true):
78076         [! (defined __cplusplus || defined __BEOS__) && !defined __GNUC__]:
78077         Don't declare as an enum in this situation; it runs afoul of Tru64.
78078         Problem reported by Steven M. Schweda in
78079         <http://lists.gnu.org/archive/html/bug-autoconf/2007-10/msg00019.html>.
78081 2007-10-22  Eric Blake  <ebb9@byu.net>
78083         Also wrap vf?printf.
78084         * lib/xprintf.h (xvprintf, xvfprintf): New declarations.
78085         * lib/xprintf.c (xprintf, xfprintf): Work for C89.
78086         (xvprintf, xvfprintf): New functions.
78088 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
78090         * modules/fstrcmp-tests (test_fstrcmp_LDADD): New, add
78091         @LIBINTL@ for FreeBSD 6.2, $(LIBTHREAD) for AIX 4.3.3.
78093         * lib/uniconv/u16-conv-to-enc.c (U_MBLEN): Define.
78094         * lib/uniconv/u32-conv-to-enc.c (U_MBLEN): Likewise.
78096 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
78098         * lib/acl.c (copy_acl): Adjust to IRIX 6.5.  Problem reported
78099         by Bruno Haible.
78101 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
78103         * lib/getloadavg.c
78104         [defined (__osf__) && (defined (__alpha) || defined (__alpha__)]:
78105         Undef `sys' after including sys/table.h, for Tru64 4.0D.
78107         * tests/test-i-ring.c: Work for C89.
78109 2007-10-22  Bruno Haible  <bruno@clisp.org>
78111         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Use -1ull, not
78112         -1u, in preprocessor expression, so that we don't test for the bug
78113         in HP-UX 11.00 cpp.  Testing for this bug caused problems; see
78114         <http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00329.html>.
78116 2007-10-22  Eric Blake  <ebb9@byu.net>
78118         * tests/test-yesno.sh: Silence stderr during test.
78120 2007-10-22  Simon Josefsson  <simon@josefsson.org>
78122         * modules/crypto/gc-camellia: New file.
78124         * m4/gc-camellia.m4: New file.
78126         * lib/gc-libgcrypt.c (gc_cipher_open): Support Camellia.
78128         * lib/gc.h (enum Gc_cipher): Add GC_CAMELLIA128, GC_CAMELLIA256.
78130 2007-10-22  Simon Josefsson  <simon@josefsson.org>
78132         * build-aux/maint.mk (gzip_rsyncable): Don't fail if gzip sends
78133         --help to stdout.  Reported by sms@antinode.org (Steven
78134         M. Schweda).
78136 2007-10-22  Simon Josefsson  <simon@josefsson.org>
78138         * users.txt: Fix link to libksba.
78140 2007-10-21  Ben Pfaff  <blp@gnu.org>
78142         * modules/roundf-tests: Add dependency on floorf, ceilf to allow
78143         round.c roundf implementation that depends on floorf and ceilf to
78144         be tested unconditionally.
78146 2007-10-21  Ben Pfaff  <blp@gnu.org>
78148         * m4/check-libm-func.m4: Removed.
78149         * m4/check-math-lib.m4: New file.
78150         * m4/round.m4: Rewrite to use gl_CHECK_MATH_LIB.
78151         * m4/roundf.m4: Ditto, and fix lack of HAVE_DECL_ROUNDF
78152         definition and lack of AC_LIBOBJ([roundf]).
78153         * m4/roundl.m4: Ditto, and similarly for roundl.
78154         * modules/round: Reference new m4 file.
78155         * modules/roundf: Ditto.
78156         * modules/roundl: Ditto.
78157         * tests/test-round2.c (main): Use ROUND instead of round.
78158         Bug report from Bruno Haible.
78160 2007-10-21  Bruno Haible  <bruno@clisp.org>
78162         * lib/printf-parse.c: Don't assume <stdint.h> exists in IN_LIBASPRINTF
78163         context.
78165 2007-10-21  Bruno Haible  <bruno@clisp.org>
78167         * tests/test-wcwidth.c (main): Allow negative result for some control
78168         characters.
78170         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check also the width of U+200B.
78171         Needed on OSF/1 5.1.
78173 2007-10-21  Bruno Haible  <bruno@clisp.org>
78175         * tests/test-floorf1.c: Include isnanf.h.
78176         (main): Use isnanf() instead of isnan().
78177         * tests/test-ceilf1.c: Include isnanf.h.
78178         (main): Use isnanf() instead of isnan().
78179         * tests/test-truncf1.c: Include isnanf.h.
78180         (main): Use isnanf() instead of isnan().
78181         * tests/test-roundf1.c: Include isnanf.h.
78182         (main): Use isnanf() instead of isnan().
78184 2007-10-21  Eric Blake  <ebb9@byu.net>
78186         * users.txt: Update URL for m4.
78188 2007-10-21  Bruno Haible  <bruno@clisp.org>
78190         * users.txt: Add clisp. Update URLs to Simon Josefsson's projects.
78192 2007-10-21  Bruno Haible  <bruno@clisp.org>
78194         * gnulib-tool (func_create_megatestdir): Determine the cvsdate from
78195         Git's management files if the CVS files are not present.
78197 2007-10-20  Bruno Haible  <bruno@clisp.org>
78199         * lib/count-one-bits.h (COUNT_ONE_BITS): Use the builtin also for
78200         gcc-3.4.x.
78202 2007-10-20  Ben Pfaff  <blp@gnu.org>
78204         * lib/math.in.h: Declare round, roundf, roundl if we are providing
78205         implementations.
78206         * m4/math_h.m4: New substitutions for round, roundf, roundl modules.
78207         * lib/round.c: New file.
78208         * lib/roundf.c: New file.
78209         * lib/roundl.c: New file.
78210         * m4/round.m4: New file.
78211         * m4/roundf.m4: New file.
78212         * m4/roundl.m4: New file.
78213         * m4/check-libm-func-m4: New file.
78214         * modules/math: Replace round, roundf, roundl related @VARS@ in
78215         math.in.h.
78216         * modules/round: New file.
78217         * modules/round-tests: New file.
78218         * modules/roundf: New file.
78219         * modules/roundf-tests: New file.
78220         * modules/roundl: New file.
78221         * modules/roundl-tests: New file.
78222         * tests/test-round1.c: New file.
78223         * tests/test-round2.c: New file.
78224         * tests/test-roundf1.c: New file.
78225         * tests/test-roundf2.c: New file.
78226         * tests/test-roundl.c: New file.
78227         * doc/functions/round.texi: Mention round module.
78228         * doc/functions/roundf.texi: Mention roundf module.
78229         * doc/functions/roundl.texi: Mention roundl module.
78230         * MODULES.html.sh: Mention new modules.
78231         Thanks to Bruno Haible for suggestions.
78233 2007-10-20  Jim Meyering  <meyering@redhat.com>
78235         * lib/xprintf.c: Include <config.h> unconditionally.
78237         Change xprintf's license to GPL.
78238         * modules/xprintf (License): s/LGPL/GPL/, since this module
78239         depends on modules (exit and exitfail) which are GPL.
78240         Suggestion from Bruno Haible.
78242         xprintf fixes.
78243         * lib/xprintf.c (xprintf, xfprintf): Use va_end.
78244         Use a clearer diagnostic.
78245         Patch from Bruno Haible.
78247 2007-10-20  Bruno Haible  <bruno@clisp.org>
78249         * lib/vasnprintf.c (VASNPRINTF): Don't report overflow if the available
78250         length is INT_MAX and sizeof (DCHAR_T) > sizeof (TCHAR_T).
78251         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
78253 2007-10-20  Bruno Haible  <bruno@clisp.org>
78255         * tests/test-floorf2.c (correct_result_p): Don't rely on excess
78256         precision in the comparison result > x - 1 or similar.
78257         * tests/test-ceilf2.c (correct_result_p): Likewise.
78258         * tests/test-truncf2.c (correct_result_p): Likewise.
78259         * tests/test-trunc2.c (correct_result_p): Likewise.
78260         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
78262 2007-10-20  Bruno Haible  <bruno@clisp.org>
78264         * modules/ceil: New file.
78265         * m4/ceil.m4: New file.
78266         * doc/functions/ceil.texi: Mention the 'ceil' module.
78268 2007-10-20  Bruno Haible  <bruno@clisp.org>
78270         * modules/floor: New file.
78271         * m4/floor.m4: New file.
78272         * doc/functions/floor.texi: Mention the 'floor' module.
78274 2007-10-20  Bruno Haible  <bruno@clisp.org>
78276         * modules/ceilf-tests (Depends-on): Add fprintf-posix. Needed for use
78277         of %a.
78278         * modules/floorf-tests (Depends-on): Likewise.
78279         * modules/truncf-tests (Depends-on): Likewise.
78280         * modules/trunc-tests (Depends-on): Likewise.
78281         Reported by Ben Pfaff.
78283 2007-10-19  Jim Meyering  <meyering@redhat.com>
78285         * lib/xprintf.c (xprintf, xfprintf): Test err < 0, not just "err".
78286         Don't bother testing specific errno values.  Just test ferror.
78288         New module: xprintf
78289         * modules/xprintf, lib/xprintf.c, lib/xprintf.h: New files.
78291 2007-10-19  Bruno Haible  <bruno@clisp.org>
78293         * modules/csharpexec (Makefile.am): Use @FOO@ syntax instead of $(FOO)
78294         syntax.
78295         * modules/javaexec (Makefile.am): Likewise.
78296         * modules/relocatable-prog (Makefile.am): Likewise.
78297         Suggested by Jim Meyering.
78299 2007-10-18  Bruno Haible  <bruno@clisp.org>
78301         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on glibc >= 2.3 systems.
78302         Reported by Jim Meyering.
78304 2007-10-18  Eric Blake  <ebb9@byu.net>
78306         * modules/filenamecat-tests (Makefile.am): Link against -lintl.
78308 2007-10-18  Bruno Haible  <bruno@clisp.org>
78310         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Put
78311         the format string into writable memory. Needed in Fortify conditions.
78313 2007-10-18  Colin Watson  <cjwatson@debian.org>  (tiny change)
78314             Bruno Haible  <bruno@clisp.org>
78316         * lib/trim.c: Include config.h unconditionally. Include trim.h always.
78317         Include ctype.h always. Include stdlib.h, not mbuiter.h, for MB_CUR_MAX.
78318         * modules/trim (Depends-on): Add mbchar.
78319         (configure.ac): Add gl_FUNC_MBRTOWC.
78320         (Makefile.am): Augment lib_SOURCES.
78322 2007-10-17  Paul Eggert  <eggert@cs.ucla.edu>
78324         Modify glob.c to use fstatat and dirfd, to simplify it.
78325         Suggested by Eric Blake.
78326         * lib/glob.c (__fxstatat64) [!_LIBC]: New macro.
78327         Don't include <stdbool.h>; not used.
78328         (link_exists2_p, glob_in_dir) [!_LIBC]: No longer a special case.
78329         (link_exists_p): Simplify implementation, since we can now assume
78330         dirfd and fstatat.
78331         * modules/glob (Depends-on): Add dirfd, openat.  Remove stdbool.
78333 2007-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
78335         * gnulib-tool (func_get_dependencies): Fix sed script to
78336         match only tests.
78338 2007-10-17  Bruno Haible  <bruno@clisp.org>
78340         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): On Cygwin, don't
78341         allow locale names without encoding suffix.
78342         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
78343         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
78345 2007-10-16  Bruno Haible  <bruno@clisp.org>
78347         * lib/getcwd.c (__getcwd): Define with explicit rpl_ prefix.
78348         * lib/getgroups.c (getgroups): Likewise.
78349         * lib/gettimeofday.c (localtime, gmtime, tzset): Likewise.
78351 2007-10-16  Bruno Haible  <bruno@clisp.org>
78353         * modules/absolute-header (License): Change from LGPL to LGPLv2+.
78354         * modules/malloc-posix (License): Likewise.
78355         * modules/realloc-posix (License): Likewise.
78356         * modules/calloc-posix (License): Likewise.
78357         * modules/intprops (License): Change from GPL to LGPL, with
78358         Paul Eggert's approval.
78360 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
78362         Merge glibc changes into lib/glob.c.
78364         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c, dated
78365         2007-10-15 04:59:03 UTC.  Here are the changes:
78367         2007-10-14  Ulrich Drepper  <drepper@redhat.com>
78369         * lib/glob.c: Reimplement link_exists_p to use fstatat64.
78371         * lib/glob.c: Add some branch prediction throughout.
78373         2007-10-07  Ulrich Drepper  <drepper@redhat.com>
78375         [BZ #5103]
78376         * lib/glob.c (glob): Recognize patterns starting \/.
78378         2007-02-14  Jakub Jelinek  <jakub@redhat.com>
78380         [BZ #3996]
78381         * lib/glob.c (attribute_hidden): Define if not defined.
78382         (glob): Unescape dirname, filename or username when needed and not
78383         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
78384         is NULL.  Handle unescaped [ in pattern without closing ].
78385         Don't pass GLOB_CHECK down to recursive glob for directories.
78386         (__glob_pattern_type): New function.
78387         (__glob_pattern_p): Implement using __glob_pattern_type.
78388         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
78389         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
78390         Remove unreachable code.
78392         2006-09-30  Ulrich Drepper  <drepper@redhat.com>
78394         * lib/glob.c (glob_in_dir): Add some comments and asserts to
78395         explain why there are no leaks.
78397         2006-09-25  Jakub Jelinek  <jakub@redhat.com>
78399         [BZ #3253]
78400         * lib/glob.c (glob_in_dir): Don't alloca one struct globlink at a
78401         time, rather allocate increasingly bigger arrays of pointers, if
78402         possible with alloca, if too large with malloc.
78404 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
78406         Check for 64-bit int errors in HP-UX 10.20 preprocessor.
78407         Problem reported by H.Merijn Brand in
78408         <http://lists.gnu.org/archive/html/bug-tar/2007-10/msg00018.html>.
78409         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Check preprocessor too.
78410         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
78412 2007-10-15  Bruno Haible  <bruno@clisp.org>
78414         * lib/fchdir.c (close, open, closedir, opendir, dup, dup2): Define
78415         with explicit rpl_ prefix.
78416         * lib/fopen.c (fopen): Likewise.
78417         * lib/freopen.c (freopen): Likewise.
78418         * lib/iconv.c (iconv): Likewise.
78419         * lib/iconv_close.c (iconv_close): Likewise.
78421 2007-10-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
78423         * m4/iconv_open (gl_FUNC_ICONV_OPEN_UTF): Fix cache variable name.
78425 2007-10-15  Bruno Haible  <bruno@clisp.org>
78427         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Use
78428         <stddef.h> instead of <stdlib.h> since we only need NULL.
78429         Reported by Ben Pfaff <blp@cs.stanford.edu>.
78431 2007-10-15  Bruno Haible  <bruno@clisp.org>
78433         * doc/gnulib-tool.texi (Initial import): Swap order of -I directives.
78434         Replace paragraph talking about LIBOBJS.
78435         Reported by Colin Watson <cjwatson@debian.org>.
78437 2007-10-15  Bruno Haible  <bruno@clisp.org>
78439         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Include
78440         <stdlib.h> before using NULL.
78442 2007-10-15  Simon Josefsson  <simon@josefsson.org>
78444         * m4/getaddrinfo.m4: Use NULL rather than 0 for pointers.
78445         Reported by Albert Chin <china@thewrittenword.com>.
78447 2007-10-14  Bruno Haible  <bruno@clisp.org>
78449         * modules/iconv_open-utf-tests: New file.
78450         * tests/test-iconv-utf.c: New file.
78452         Enhance iconv_open to support UTF-16BE, UTF-16LE, UTF-32BE, UTF-32LE.
78453         * modules/iconv_open-utf: New file.
78454         * lib/iconv.in.h (_ICONV_UTF8_UTF*, _ICONV_UTF*_UTF8): New macros.
78455         (iconv, iconv_close): New declarations.
78456         * lib/iconv_open.c: Include c-strcase.h. Don't require ICONV_FLAVOR to
78457         be defined.
78458         (iconv_open): Add special handling of conversion between UTF-8 and
78459         UTF-{16,32}{BE,LE}.
78460         * lib/iconv.c: New file, incorporating code from GNU libiconv 1.11.
78461         * lib/iconv_close.c: New file.
78462         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): New macro, extracted from
78463         gl_FUNC_ICONV_OPEN.
78464         (gl_FUNC_ICONV_OPEN): Use it.
78465         (gl_FUNC_ICONV_OPEN_UTF): New macro.
78466         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize also REPLACE_ICONV
78467         and REPLACE_ICONV_UTF.
78468         * modules/iconv_open (Depends-on): Add c-strcase.
78469         (Makefile.am): Substitute also REPLACE_ICONV, REPLACE_ICONV_UTF,
78470         ICONV_CONST.
78471         * doc/functions/iconv_open.texi: Mention the iconv_open-utf module.
78473 2007-10-13  Albert Chin  <china@thewrittenword.com>
78474             Bruno Haible  <bruno@clisp.org>
78476         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Perform the test for getaddrinfo
78477         through a link check that includes <netdb.h>. Needed for OSF/1 5.1.
78479 2007-10-13  Bruno Haible  <bruno@clisp.org>
78481         * lib/argp-fmtstream.h (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is
78482         defined, use the ISO C99 inline semantics.
78483         * lib/argp.h (ARGP_EI): Likewise.
78485 2007-10-13  Bruno Haible  <bruno@clisp.org>
78487         Handle 'inline' change in gcc 4.3.0.
78488         * lib/argp-fmtstream.h (argp_fmtstream_putc, argp_fmtstream_puts,
78489         argp_fmtstream_write, argp_fmtstream_set_lmargin,
78490         argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin,
78491         argp_fmtstream_point): Disable 'extern' declaration if the function
78492         definition is going to be provided inline.
78493         (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is defined, use the GNU C inline
78494         semantics, not the ISO C99 inline semantics.
78495         * lib/argp.h (argp_usage, _option_is_short, _option_is_end): Disable
78496         'extern' declaration if the function definition is going to be provided
78497         inline.
78498         (ARGP_EI): Don't assume GNU C. If __GNUC_STDC_INLINE__ is defined, use
78499         the GNU C inline semantics, not the ISO C99 inline semantics. With
78500         GCC 4.2, avoid a warning.
78502 2007-10-13  Bruno Haible  <bruno@clisp.org>
78504         * lib/freading.h (freading): Enable the use of __freading for
78505         glibc >= 2.7.
78506         * lib/freading.c (freading): Likewise.
78508 2007-10-12  Paul Eggert  <eggert@cs.ucla.edu>
78510         * lib/argp-fmtstream.h (ARGP_FS_EI): Work around GCC 4.2.1 diagnostic
78511         "warning: C99 inline functions are not supported; using GNU89".
78513 2007-10-12  Bruno Haible  <bruno@clisp.org>
78515         * lib/ceil.c (FUNC): Avoid rounding errors for values near a power
78516         of 2.
78517         * tests/test-ceilf2.c: New file.
78518         * modules/ceilf-tests: (Files, Depends-on, Makefile.am): Add new test.
78520         * tests/test-ceilf1.c: Renamed from tests/test-ceilf.c.
78521         * modules/ceilf-tests: Update.
78523 2007-10-12  Bruno Haible  <bruno@clisp.org>
78525         * lib/floor.c (FUNC): Avoid rounding errors for values near a power
78526         of 2.
78527         * tests/test-floorf2.c: New file.
78528         * modules/floorf-tests: (Files, Depends-on, Makefile.am): Add new test.
78530         * tests/test-floorf1.c: Renamed from tests/test-floorf.c.
78531         * modules/floorf-tests: Update.
78533 2007-10-12  Bruno Haible  <bruno@clisp.org>
78535         * tests/test-trunc2.c: New file.
78536         * modules/trunc-tests: (Files, Depends-on, Makefile.am): Add new test.
78538         * tests/test-trunc1.c: Renamed from tests/test-trunc.c.
78539         * modules/trunc-tests: Update.
78541 2007-10-12  Bruno Haible  <bruno@clisp.org>
78543         * lib/trunc.c (FUNC): Avoid rounding errors for values near a power
78544         of 2.
78545         * tests/test-truncf2.c: New file.
78546         * modules/truncf-tests: (Files, Depends-on, Makefile.am): Add new test.
78548         * tests/test-truncf1.c: Renamed from tests/test-truncf.c.
78549         * modules/truncf-tests: Update.
78551 2007-10-11  Eric Blake  <ebb9@byu.net>
78553         Don't claim strerror is broken on Interix.
78554         * doc/functions/strerror.texi (strerror): Known broken systems are
78555         now Solaris 8, and not Interix.
78556         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): No longer filter out
78557         Interix on cross-compile.
78558         Reported by Martin Koeppe in
78559         http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00005.html.
78561 2007-10-11  Bruno Haible  <bruno@clisp.org>
78563         * modules/i-ring-tests: New file.
78564         * tests/test-i-ring.c: Renamed from lib/i-ring-test.c. Use ASSERT
78565         instead of assert.
78567 2007-10-11  Bruno Haible  <bruno@clisp.org>
78569         * modules/filenamecat-tests: New file.
78570         * tests/test-filenamecat.c: New file, extracted from lib/filenamecat.c.
78571         * lib/filenamecat.c: Remove test code.
78573 2007-10-11  Paul Eggert  <eggert@cs.ucla.edu>
78575         Simplify and modernize strerror substitute, partly to fix Solaris 8 bug.
78577         * lib/strerror.c: Include <string.h> always, to test interface,
78578         and to remove the need for the dummy.
78579         Include intprops.h to compute width instead of doing it ourselves
78580         and missing a CHAR_BIT declaration, which broke tar 1.19 on Solaris 8.
78581         (strerror): Define it to return NULL if there's no system strerror.
78582         (rpl_strerror): Use INT_STRLEN_BOUND to compute bound.
78583         Omit !HAVE_STRERROR code.  We don't need to worry about supporting
78584         ancient pre-strerror Unix systems well any more.  Saying "unknown
78585         system error" is enough.
78586         * lib/string.in.h (strerror): Simplify the ifdef to reflect the
78587         simpler strerror.c implementation.
78588         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE, gl_PREREQ_STDERROR):
78589         Simplify the tests to reflect the simpler strerror implementation.
78590         * modules/strerror (Depends-on): Add intprops.
78592 2007-10-09  Eric Blake  <ebb9@byu.net>
78594         Silence test-fpending.
78595         * modules/fpending-tests (Files): Add wrapper script.
78596         * tests/test-fpending.sh: New file.
78598 2007-10-09  Bruno Haible  <bruno@clisp.org>
78600         * MODULES.html.sh (func_module): Don't create a hyperlink for
78601         function names like 'printf_frexp'.
78602         (Misc): Add crc, memxor.
78603         (Characteristics of floating types): New section.
78604         (Mathematics): Add ceilf, ceill, floorf, floorl, frexpl-nolibm,
78605         isnanf-nolibm, signbit, trunc, truncf, truncl.
78606         (Enhancements for ISO C 99 functions): New subsection Input/output.
78607         (Support for systems lacking POSIX:2001): Add arpa_inet, calloc-posix,
78608         fcntl, fopen, freopen, fseek, fseeko, ftell, ftello, iconv_open,
78609         locale, malloc-posix, netinet_in, open, realloc-posix, signal, sleep.
78610         (Compatibility checks for POSIX:2001 functions): Add clock-time.
78611         (Enhancements for POSIX:2001 functions): Add chdir-long.
78612         (File system functions): Add areadlink, chdir-safer, read-file.
78613         Remove cycle-check.
78614         (File system as inode set): New section.
78615         (Date and time): Add gethrxtime.
78616         (Multithreading): Add openmp.
78617         (Internationalization functions): Add localename.
78618         (Unicode string functions): Add unistr/u*-mbsnlen.
78619         (Support for maintaining and releasing projects): Add git-version-gen.
78620         (Lone files): Remove directories.
78622 2007-10-08  Ben Pfaff  <blp@gnu.org>
78624         * lib/xmalloca.h: Fix typo in comment.
78626 2007-10-08  Paul Eggert  <eggert@cs.ucla.edu>
78628         * lib/xnanosleep.c (xnanosleep): Don't assume GCC 4.3.0 behavior
78629         when avoiding problems with integer overflow.  Use a portable test
78630         instead.
78632 2007-10-08  Simon Josefsson  <simon@josefsson.org>
78634         * modules/dummy (License): Change to LGPLv2+.
78635         * modules/float (License): Likewise
78636         * modules/realloc (License): Likewise
78637         * modules/stdlib (License): Likewise
78639 2007-10-07  Bruno Haible  <bruno@clisp.org>
78641         * trunc.c (TWO_MANT_DIG): Change type to DOUBLE.
78642         * floor.c (TWO_MANT_DIG): Likewise.
78643         * ceil.c (TWO_MANT_DIG): Likewise.
78644         Reported by Ben Pfaff.
78646 2007-10-07  Bruno Haible  <bruno@clisp.org>
78648         Avoid gcc warnings "declaration of 'exp' shadows a global declaration".
78649         * lib/math.in.h (frexp, frexpl): Change parameter name to 'expptr'.
78650         * lib/frexp.c (FUNC): Likewise.
78651         * lib/printf-frexp.h (printf_frexp): Likewise.
78652         * lib/printf-frexpl.h (printf_frexpl): Likewise.
78653         * lib/printf-frexp.c (FUNC): Likewise.
78654         Suggested by Jim Meyering.
78656 2007-10-07  Jim Meyering  <meyering@redhat.com>
78658         Make xnanosleep's integer overflow test more robust.
78659         * lib/xnanosleep.c (xnanosleep): Declare a temporary to be "volatile",
78660         so that gcc-4.3.0 doesn't optimize away this test for overflow.
78662 2007-10-07  Bruno Haible  <bruno@clisp.org>
78664         * NEWS: Mention the license change.
78666         * doc/gnulib-intro.texi (Copyright): Update the meaning of the license
78667         abbreviations in the modules files.
78669         Change copyright notice from GPLv2+ to GPLv3+.
78670         * README: Change copyright notice.
78671         * MODULES.html.sh: Likewise.
78672         * build-aux/bootstrap.conf: Likewise.
78673         * build-aux/config.libpath: Likewise.
78674         * build-aux/csharpcomp.sh.in: Likewise.
78675         * build-aux/csharpexec.sh.in: Likewise.
78676         * build-aux/install-reloc: Likewise.
78677         * build-aux/javacomp.sh.in: Likewise.
78678         * build-aux/javaexec.sh.in: Likewise.
78679         * build-aux/ldd.sh.in: Likewise.
78680         * build-aux/reloc-ldflags: Likewise.
78681         * build-aux/relocatable.sh.in: Likewise.
78682         * build-aux/x-to-1.in: Likewise.
78683         * check-module: Likewise.
78684         * config/srclistvars.sh: Likewise.
78685         * gnulib-tool: Likewise.
78686         * lib/acl-internal.h: Likewise.
78687         * lib/acl.c: Likewise.
78688         * lib/acl.h: Likewise.
78689         * lib/acl_entries.c: Likewise.
78690         * lib/areadlink-with-size.c: Likewise.
78691         * lib/areadlink.c: Likewise.
78692         * lib/areadlink.h: Likewise.
78693         * lib/argmatch.c: Likewise.
78694         * lib/argmatch.h: Likewise.
78695         * lib/argp-ba.c: Likewise.
78696         * lib/argp-eexst.c: Likewise.
78697         * lib/argp-fmtstream.c: Likewise.
78698         * lib/argp-fmtstream.h: Likewise.
78699         * lib/argp-fs-xinl.c: Likewise.
78700         * lib/argp-help.c: Likewise.
78701         * lib/argp-namefrob.h: Likewise.
78702         * lib/argp-parse.c: Likewise.
78703         * lib/argp-pin.c: Likewise.
78704         * lib/argp-pv.c: Likewise.
78705         * lib/argp-pvh.c: Likewise.
78706         * lib/argp-xinl.c: Likewise.
78707         * lib/argp.h: Likewise.
78708         * lib/at-func.c: Likewise.
78709         * lib/atanl.c: Likewise.
78710         * lib/backupfile.c: Likewise.
78711         * lib/backupfile.h: Likewise.
78712         * lib/basename.c: Likewise.
78713         * lib/binary-io.h: Likewise.
78714         * lib/byteswap.in.h: Likewise.
78715         * lib/c-stack.c: Likewise.
78716         * lib/c-stack.h: Likewise.
78717         * lib/c-strcasestr.c: Likewise.
78718         * lib/c-strcasestr.h: Likewise.
78719         * lib/c-strstr.c: Likewise.
78720         * lib/c-strstr.h: Likewise.
78721         * lib/c-strtod.c: Likewise.
78722         * lib/calloc.c: Likewise.
78723         * lib/canon-host.c: Likewise.
78724         * lib/canon-host.h: Likewise.
78725         * lib/canonicalize-lgpl.c: Likewise.
78726         * lib/canonicalize.c: Likewise.
78727         * lib/canonicalize.h: Likewise.
78728         * lib/ceil.c: Likewise.
78729         * lib/ceilf.c: Likewise.
78730         * lib/ceill.c: Likewise.
78731         * lib/chdir-long.c: Likewise.
78732         * lib/chdir-long.h: Likewise.
78733         * lib/chdir-safer.c: Likewise.
78734         * lib/chdir-safer.h: Likewise.
78735         * lib/chown.c: Likewise.
78736         * lib/classpath.c: Likewise.
78737         * lib/classpath.h: Likewise.
78738         * lib/clean-temp.c: Likewise.
78739         * lib/clean-temp.h: Likewise.
78740         * lib/cloexec.c: Likewise.
78741         * lib/close-stream.c: Likewise.
78742         * lib/closein.c: Likewise.
78743         * lib/closein.h: Likewise.
78744         * lib/closeout.c: Likewise.
78745         * lib/closeout.h: Likewise.
78746         * lib/concat-filename.c: Likewise.
78747         * lib/copy-file.c: Likewise.
78748         * lib/copy-file.h: Likewise.
78749         * lib/count-one-bits.h: Likewise.
78750         * lib/crc.c: Likewise.
78751         * lib/crc.h: Likewise.
78752         * lib/creat-safer.c: Likewise.
78753         * lib/csharpcomp.c: Likewise.
78754         * lib/csharpcomp.h: Likewise.
78755         * lib/csharpexec.c: Likewise.
78756         * lib/csharpexec.h: Likewise.
78757         * lib/cycle-check.c: Likewise.
78758         * lib/cycle-check.h: Likewise.
78759         * lib/diacrit.c: Likewise.
78760         * lib/diacrit.h: Likewise.
78761         * lib/diffseq.h: Likewise.
78762         * lib/dirchownmod.c: Likewise.
78763         * lib/dirent.in.h: Likewise.
78764         * lib/dirfd.c: Likewise.
78765         * lib/dirfd.h: Likewise.
78766         * lib/dirname.c: Likewise.
78767         * lib/dirname.h: Likewise.
78768         * lib/dummy.c: Likewise.
78769         * lib/dup-safer.c: Likewise.
78770         * lib/dup2.c: Likewise.
78771         * lib/eealloc.h: Likewise.
78772         * lib/error.c: Likewise.
78773         * lib/error.h: Likewise.
78774         * lib/euidaccess.c: Likewise.
78775         * lib/exclude.c: Likewise.
78776         * lib/exclude.h: Likewise.
78777         * lib/execute.c: Likewise.
78778         * lib/execute.h: Likewise.
78779         * lib/exitfail.c: Likewise.
78780         * lib/exitfail.h: Likewise.
78781         * lib/expl.c: Likewise.
78782         * lib/fatal-signal.c: Likewise.
78783         * lib/fatal-signal.h: Likewise.
78784         * lib/fbufmode.c: Likewise.
78785         * lib/fbufmode.h: Likewise.
78786         * lib/fchdir.c: Likewise.
78787         * lib/fchmodat.c: Likewise.
78788         * lib/fchownat.c: Likewise.
78789         * lib/fcntl--.h: Likewise.
78790         * lib/fcntl-safer.h: Likewise.
78791         * lib/fcntl.in.h: Likewise.
78792         * lib/fd-safer.c: Likewise.
78793         * lib/fflush.c: Likewise.
78794         * lib/file-has-acl.c: Likewise.
78795         * lib/file-set.c: Likewise.
78796         * lib/file-type.c: Likewise.
78797         * lib/file-type.h: Likewise.
78798         * lib/fileblocks.c: Likewise.
78799         * lib/filemode.c: Likewise.
78800         * lib/filemode.h: Likewise.
78801         * lib/filename.h: Likewise.
78802         * lib/filenamecat.c: Likewise.
78803         * lib/filenamecat.h: Likewise.
78804         * lib/findprog.c: Likewise.
78805         * lib/findprog.h: Likewise.
78806         * lib/float.in.h: Likewise.
78807         * lib/floor.c: Likewise.
78808         * lib/floorf.c: Likewise.
78809         * lib/floorl.c: Likewise.
78810         * lib/fopen-safer.c: Likewise.
78811         * lib/fopen.c: Likewise.
78812         * lib/fpending.c: Likewise.
78813         * lib/fpending.h: Likewise.
78814         * lib/fprintf.c: Likewise.
78815         * lib/fprintftime.h: Likewise.
78816         * lib/fpucw.h: Likewise.
78817         * lib/fpurge.c: Likewise.
78818         * lib/fpurge.h: Likewise.
78819         * lib/freadable.c: Likewise.
78820         * lib/freadable.h: Likewise.
78821         * lib/freadahead.c: Likewise.
78822         * lib/freadahead.h: Likewise.
78823         * lib/freading.c: Likewise.
78824         * lib/freading.h: Likewise.
78825         * lib/free.c: Likewise.
78826         * lib/freopen.c: Likewise.
78827         * lib/frexp.c: Likewise.
78828         * lib/frexpl.c: Likewise.
78829         * lib/fseek.c: Likewise.
78830         * lib/fseterr.c: Likewise.
78831         * lib/fseterr.h: Likewise.
78832         * lib/fstatat.c: Likewise.
78833         * lib/fstrcmp.c: Likewise.
78834         * lib/fstrcmp.h: Likewise.
78835         * lib/fsusage.c: Likewise.
78836         * lib/fsusage.h: Likewise.
78837         * lib/ftell.c: Likewise.
78838         * lib/ftello.c: Likewise.
78839         * lib/fts-cycle.c: Likewise.
78840         * lib/fts.c: Likewise.
78841         * lib/fts_.h: Likewise.
78842         * lib/full-read.c: Likewise.
78843         * lib/full-read.h: Likewise.
78844         * lib/full-write.c: Likewise.
78845         * lib/full-write.h: Likewise.
78846         * lib/fwritable.c: Likewise.
78847         * lib/fwritable.h: Likewise.
78848         * lib/fwriteerror.c: Likewise.
78849         * lib/fwriteerror.h: Likewise.
78850         * lib/fwriting.c: Likewise.
78851         * lib/fwriting.h: Likewise.
78852         * lib/gcd.c: Likewise.
78853         * lib/gcd.h: Likewise.
78854         * lib/getcwd.c: Likewise.
78855         * lib/getdate.h: Likewise.
78856         * lib/getdate.y: Likewise.
78857         * lib/getdomainname.c: Likewise.
78858         * lib/getdomainname.h: Likewise.
78859         * lib/getgroups.c: Likewise.
78860         * lib/gethostname.c: Likewise.
78861         * lib/gethrxtime.c: Likewise.
78862         * lib/gethrxtime.h: Likewise.
78863         * lib/getloadavg.c: Likewise.
78864         * lib/getndelim2.c: Likewise.
78865         * lib/getndelim2.h: Likewise.
78866         * lib/getnline.c: Likewise.
78867         * lib/getnline.h: Likewise.
78868         * lib/getopt.c: Likewise.
78869         * lib/getopt.in.h: Likewise.
78870         * lib/getopt1.c: Likewise.
78871         * lib/getopt_int.h: Likewise.
78872         * lib/getpagesize.h: Likewise.
78873         * lib/getsubopt.c: Likewise.
78874         * lib/gettime.c: Likewise.
78875         * lib/getugroups.c: Likewise.
78876         * lib/getugroups.h: Likewise.
78877         * lib/getusershell.c: Likewise.
78878         * lib/gl_anyavltree_list1.h: Likewise.
78879         * lib/gl_anyavltree_list2.h: Likewise.
78880         * lib/gl_anyhash_list1.h: Likewise.
78881         * lib/gl_anyhash_list2.h: Likewise.
78882         * lib/gl_anylinked_list1.h: Likewise.
78883         * lib/gl_anylinked_list2.h: Likewise.
78884         * lib/gl_anyrbtree_list1.h: Likewise.
78885         * lib/gl_anyrbtree_list2.h: Likewise.
78886         * lib/gl_anytree_list1.h: Likewise.
78887         * lib/gl_anytree_list2.h: Likewise.
78888         * lib/gl_anytree_oset.h: Likewise.
78889         * lib/gl_anytreehash_list1.h: Likewise.
78890         * lib/gl_anytreehash_list2.h: Likewise.
78891         * lib/gl_array_list.c: Likewise.
78892         * lib/gl_array_list.h: Likewise.
78893         * lib/gl_array_oset.c: Likewise.
78894         * lib/gl_array_oset.h: Likewise.
78895         * lib/gl_avltree_list.c: Likewise.
78896         * lib/gl_avltree_list.h: Likewise.
78897         * lib/gl_avltree_oset.c: Likewise.
78898         * lib/gl_avltree_oset.h: Likewise.
78899         * lib/gl_avltreehash_list.c: Likewise.
78900         * lib/gl_avltreehash_list.h: Likewise.
78901         * lib/gl_carray_list.c: Likewise.
78902         * lib/gl_carray_list.h: Likewise.
78903         * lib/gl_linked_list.c: Likewise.
78904         * lib/gl_linked_list.h: Likewise.
78905         * lib/gl_linkedhash_list.c: Likewise.
78906         * lib/gl_linkedhash_list.h: Likewise.
78907         * lib/gl_list.c: Likewise.
78908         * lib/gl_list.h: Likewise.
78909         * lib/gl_oset.c: Likewise.
78910         * lib/gl_oset.h: Likewise.
78911         * lib/gl_rbtree_list.c: Likewise.
78912         * lib/gl_rbtree_list.h: Likewise.
78913         * lib/gl_rbtree_oset.c: Likewise.
78914         * lib/gl_rbtree_oset.h: Likewise.
78915         * lib/gl_rbtreehash_list.c: Likewise.
78916         * lib/gl_rbtreehash_list.h: Likewise.
78917         * lib/gl_sublist.c: Likewise.
78918         * lib/gl_sublist.h: Likewise.
78919         * lib/group-member.c: Likewise.
78920         * lib/group-member.h: Likewise.
78921         * lib/hard-locale.c: Likewise.
78922         * lib/hard-locale.h: Likewise.
78923         * lib/hash-pjw.c: Likewise.
78924         * lib/hash-pjw.h: Likewise.
78925         * lib/hash-triple.c: Likewise.
78926         * lib/hash.c: Likewise.
78927         * lib/hash.h: Likewise.
78928         * lib/human.c: Likewise.
78929         * lib/human.h: Likewise.
78930         * lib/i-ring.c: Likewise.
78931         * lib/i-ring.h: Likewise.
78932         * lib/idcache.c: Likewise.
78933         * lib/imaxabs.c: Likewise.
78934         * lib/imaxdiv.c: Likewise.
78935         * lib/inet_pton.c: Likewise.
78936         * lib/inet_pton.h: Likewise.
78937         * lib/intprops.h: Likewise.
78938         * lib/inttostr.c: Likewise.
78939         * lib/inttostr.h: Likewise.
78940         * lib/inttypes.in.h: Likewise.
78941         * lib/isapipe.c: Likewise.
78942         * lib/isdir.c: Likewise.
78943         * lib/isnan.c: Likewise.
78944         * lib/isnan.h: Likewise.
78945         * lib/isnanf.c: Likewise.
78946         * lib/isnanf.h: Likewise.
78947         * lib/isnanl-nolibm.h: Likewise.
78948         * lib/isnanl.c: Likewise.
78949         * lib/isnanl.h: Likewise.
78950         * lib/javacomp.c: Likewise.
78951         * lib/javacomp.h: Likewise.
78952         * lib/javaexec.c: Likewise.
78953         * lib/javaexec.h: Likewise.
78954         * lib/javaversion.c: Likewise.
78955         * lib/javaversion.h: Likewise.
78956         * lib/javaversion.java: Likewise.
78957         * lib/lbrkprop.h: Likewise.
78958         * lib/lchmod.h: Likewise.
78959         * lib/lchown.c: Likewise.
78960         * lib/ldexpl.c: Likewise.
78961         * lib/linebreak.c: Likewise.
78962         * lib/linebreak.h: Likewise.
78963         * lib/linebuffer.c: Likewise.
78964         * lib/linebuffer.h: Likewise.
78965         * lib/locale.in.h: Likewise.
78966         * lib/logl.c: Likewise.
78967         * lib/long-options.c: Likewise.
78968         * lib/long-options.h: Likewise.
78969         * lib/lstat.c: Likewise.
78970         * lib/lstat.h: Likewise.
78971         * lib/math.in.h: Likewise.
78972         * lib/mbchar.c: Likewise.
78973         * lib/mbchar.h: Likewise.
78974         * lib/mbfile.h: Likewise.
78975         * lib/mbiter.h: Likewise.
78976         * lib/mbscasecmp.c: Likewise.
78977         * lib/mbscasestr.c: Likewise.
78978         * lib/mbschr.c: Likewise.
78979         * lib/mbscspn.c: Likewise.
78980         * lib/mbslen.c: Likewise.
78981         * lib/mbsncasecmp.c: Likewise.
78982         * lib/mbsnlen.c: Likewise.
78983         * lib/mbspbrk.c: Likewise.
78984         * lib/mbspcasecmp.c: Likewise.
78985         * lib/mbsrchr.c: Likewise.
78986         * lib/mbssep.c: Likewise.
78987         * lib/mbsspn.c: Likewise.
78988         * lib/mbsstr.c: Likewise.
78989         * lib/mbstok_r.c: Likewise.
78990         * lib/mbswidth.c: Likewise.
78991         * lib/mbswidth.h: Likewise.
78992         * lib/mbuiter.h: Likewise.
78993         * lib/memcasecmp.c: Likewise.
78994         * lib/memcasecmp.h: Likewise.
78995         * lib/memchr.c: Likewise.
78996         * lib/memcmp.c: Likewise.
78997         * lib/memcoll.c: Likewise.
78998         * lib/memcoll.h: Likewise.
78999         * lib/memcpy.c: Likewise.
79000         * lib/memrchr.c: Likewise.
79001         * lib/mkancesdirs.c: Likewise.
79002         * lib/mkdir-p.c: Likewise.
79003         * lib/mkdir-p.h: Likewise.
79004         * lib/mkdir.c: Likewise.
79005         * lib/mkdirat.c: Likewise.
79006         * lib/mkdtemp.c: Likewise.
79007         * lib/mkstemp-safer.c: Likewise.
79008         * lib/mkstemp.c: Likewise.
79009         * lib/modechange.c: Likewise.
79010         * lib/modechange.h: Likewise.
79011         * lib/mountlist.c: Likewise.
79012         * lib/mountlist.h: Likewise.
79013         * lib/mpsort.c: Likewise.
79014         * lib/nanosleep.c: Likewise.
79015         * lib/obstack.c: Likewise.
79016         * lib/obstack.h: Likewise.
79017         * lib/open-safer.c: Likewise.
79018         * lib/open.c: Likewise.
79019         * lib/openat-die.c: Likewise.
79020         * lib/openat-priv.h: Likewise.
79021         * lib/openat-proc.c: Likewise.
79022         * lib/openat.c: Likewise.
79023         * lib/openat.h: Likewise.
79024         * lib/pagealign_alloc.c: Likewise.
79025         * lib/pagealign_alloc.h: Likewise.
79026         * lib/physmem.c: Likewise.
79027         * lib/physmem.h: Likewise.
79028         * lib/pipe-safer.c: Likewise.
79029         * lib/pipe.c: Likewise.
79030         * lib/pipe.h: Likewise.
79031         * lib/posixtm.c: Likewise.
79032         * lib/posixtm.h: Likewise.
79033         * lib/posixver.c: Likewise.
79034         * lib/printf-frexp.c: Likewise.
79035         * lib/printf-frexp.h: Likewise.
79036         * lib/printf-frexpl.c: Likewise.
79037         * lib/printf-frexpl.h: Likewise.
79038         * lib/printf.c: Likewise.
79039         * lib/progname.c: Likewise.
79040         * lib/progname.h: Likewise.
79041         * lib/progreloc.c: Likewise.
79042         * lib/putenv.c: Likewise.
79043         * lib/quote.c: Likewise.
79044         * lib/quote.h: Likewise.
79045         * lib/quotearg.c: Likewise.
79046         * lib/quotearg.h: Likewise.
79047         * lib/raise.c: Likewise.
79048         * lib/readline.c: Likewise.
79049         * lib/readline.h: Likewise.
79050         * lib/readlink.c: Likewise.
79051         * lib/readtokens.c: Likewise.
79052         * lib/readtokens.h: Likewise.
79053         * lib/readtokens0.c: Likewise.
79054         * lib/readtokens0.h: Likewise.
79055         * lib/readutmp.c: Likewise.
79056         * lib/readutmp.h: Likewise.
79057         * lib/realloc.c: Likewise.
79058         * lib/relocwrapper.c: Likewise.
79059         * lib/rename-dest-slash.c: Likewise.
79060         * lib/rename.c: Likewise.
79061         * lib/rmdir.c: Likewise.
79062         * lib/rpmatch.c: Likewise.
79063         * lib/safe-read.c: Likewise.
79064         * lib/safe-read.h: Likewise.
79065         * lib/safe-write.c: Likewise.
79066         * lib/safe-write.h: Likewise.
79067         * lib/same-inode.h: Likewise.
79068         * lib/same.c: Likewise.
79069         * lib/same.h: Likewise.
79070         * lib/save-cwd.c: Likewise.
79071         * lib/save-cwd.h: Likewise.
79072         * lib/savedir.c: Likewise.
79073         * lib/savedir.h: Likewise.
79074         * lib/savewd.c: Likewise.
79075         * lib/savewd.h: Likewise.
79076         * lib/search.in.h: Likewise.
79077         * lib/setenv.c: Likewise.
79078         * lib/setenv.h: Likewise.
79079         * lib/settime.c: Likewise.
79080         * lib/sh-quote.c: Likewise.
79081         * lib/sh-quote.h: Likewise.
79082         * lib/sig2str.c: Likewise.
79083         * lib/sig2str.h: Likewise.
79084         * lib/signal.in.h: Likewise.
79085         * lib/signbitd.c: Likewise.
79086         * lib/signbitf.c: Likewise.
79087         * lib/signbitl.c: Likewise.
79088         * lib/sigprocmask.c: Likewise.
79089         * lib/sincosl.c: Likewise.
79090         * lib/sleep.c: Likewise.
79091         * lib/sprintf.c: Likewise.
79092         * lib/sqrtl.c: Likewise.
79093         * lib/stat-time.h: Likewise.
79094         * lib/stdio--.h: Likewise.
79095         * lib/stdio-safer.h: Likewise.
79096         * lib/stdlib--.h: Likewise.
79097         * lib/stdlib-safer.h: Likewise.
79098         * lib/stdlib.in.h: Likewise.
79099         * lib/stpcpy.c: Likewise.
79100         * lib/stpncpy.c: Likewise.
79101         * lib/strchrnul.c: Likewise.
79102         * lib/strcspn.c: Likewise.
79103         * lib/strerror.c: Likewise.
79104         * lib/strftime.c: Likewise.
79105         * lib/strftime.h: Likewise.
79106         * lib/striconveh.c: Likewise.
79107         * lib/striconveh.h: Likewise.
79108         * lib/striconveha.c: Likewise.
79109         * lib/striconveha.h: Likewise.
79110         * lib/stripslash.c: Likewise.
79111         * lib/strnlen1.c: Likewise.
79112         * lib/strnlen1.h: Likewise.
79113         * lib/strtod.c: Likewise.
79114         * lib/strtoimax.c: Likewise.
79115         * lib/strtok_r.c: Likewise.
79116         * lib/strtol.c: Likewise.
79117         * lib/strtoll.c: Likewise.
79118         * lib/strtoul.c: Likewise.
79119         * lib/strtoull.c: Likewise.
79120         * lib/sysexits.in.h: Likewise.
79121         * lib/tempname.c: Likewise.
79122         * lib/tempname.h: Likewise.
79123         * lib/timespec.h: Likewise.
79124         * lib/tls.c: Likewise.
79125         * lib/tls.h: Likewise.
79126         * lib/tmpdir.c: Likewise.
79127         * lib/tmpdir.h: Likewise.
79128         * lib/tmpfile-safer.c: Likewise.
79129         * lib/tmpfile.c: Likewise.
79130         * lib/trigl.c: Likewise.
79131         * lib/trigl.h: Likewise.
79132         * lib/trim.c: Likewise.
79133         * lib/trim.h: Likewise.
79134         * lib/trunc.c: Likewise.
79135         * lib/truncf.c: Likewise.
79136         * lib/truncl.c: Likewise.
79137         * lib/tsearch.c: Likewise.
79138         * lib/unicodeio.c: Likewise.
79139         * lib/unicodeio.h: Likewise.
79140         * lib/unistd--.h: Likewise.
79141         * lib/unistd-safer.h: Likewise.
79142         * lib/unistdio/ulc-fprintf.c: Likewise.
79143         * lib/unistdio/ulc-vfprintf.c: Likewise.
79144         * lib/unlinkdir.c: Likewise.
79145         * lib/unlinkdir.h: Likewise.
79146         * lib/unlocked-io.h: Likewise.
79147         * lib/unsetenv.c: Likewise.
79148         * lib/userspec.c: Likewise.
79149         * lib/utime.c: Likewise.
79150         * lib/utimecmp.c: Likewise.
79151         * lib/utimecmp.h: Likewise.
79152         * lib/utimens.c: Likewise.
79153         * lib/verify.h: Likewise.
79154         * lib/verror.c: Likewise.
79155         * lib/verror.h: Likewise.
79156         * lib/version-etc-fsf.c: Likewise.
79157         * lib/version-etc.c: Likewise.
79158         * lib/version-etc.h: Likewise.
79159         * lib/vfprintf.c: Likewise.
79160         * lib/vprintf.c: Likewise.
79161         * lib/vsprintf.c: Likewise.
79162         * lib/w32spawn.h: Likewise.
79163         * lib/wait-process.c: Likewise.
79164         * lib/wait-process.h: Likewise.
79165         * lib/wcwidth.c: Likewise.
79166         * lib/write-any-file.c: Likewise.
79167         * lib/xalloc-die.c: Likewise.
79168         * lib/xalloc.h: Likewise.
79169         * lib/xasprintf.c: Likewise.
79170         * lib/xgetcwd.c: Likewise.
79171         * lib/xgetcwd.h: Likewise.
79172         * lib/xgetdomainname.c: Likewise.
79173         * lib/xgetdomainname.h: Likewise.
79174         * lib/xgethostname.c: Likewise.
79175         * lib/xmalloc.c: Likewise.
79176         * lib/xmalloca.c: Likewise.
79177         * lib/xmalloca.h: Likewise.
79178         * lib/xmemcoll.c: Likewise.
79179         * lib/xnanosleep.c: Likewise.
79180         * lib/xreadlink.c: Likewise.
79181         * lib/xreadlink.h: Likewise.
79182         * lib/xsetenv.c: Likewise.
79183         * lib/xsetenv.h: Likewise.
79184         * lib/xstriconv.c: Likewise.
79185         * lib/xstriconv.h: Likewise.
79186         * lib/xstrndup.c: Likewise.
79187         * lib/xstrndup.h: Likewise.
79188         * lib/xstrtod.c: Likewise.
79189         * lib/xstrtod.h: Likewise.
79190         * lib/xstrtol-error.c: Likewise.
79191         * lib/xstrtol.c: Likewise.
79192         * lib/xstrtol.h: Likewise.
79193         * lib/xtime.h: Likewise.
79194         * lib/xvasprintf.c: Likewise.
79195         * lib/xvasprintf.h: Likewise.
79196         * lib/yesno.c: Likewise.
79197         * lib/yesno.h: Likewise.
79198         * posix-modules: Likewise.
79199         * tests/test-alloca-opt.c: Likewise.
79200         * tests/test-arcfour.c: Likewise.
79201         * tests/test-arctwo.c: Likewise.
79202         * tests/test-argmatch.c: Likewise.
79203         * tests/test-argp-2.sh: Likewise.
79204         * tests/test-argp.c: Likewise.
79205         * tests/test-arpa_inet.c: Likewise.
79206         * tests/test-array_list.c: Likewise.
79207         * tests/test-array_oset.c: Likewise.
79208         * tests/test-atexit.c: Likewise.
79209         * tests/test-avltree_list.c: Likewise.
79210         * tests/test-avltree_oset.c: Likewise.
79211         * tests/test-avltreehash_list.c: Likewise.
79212         * tests/test-base64.c: Likewise.
79213         * tests/test-binary-io.c: Likewise.
79214         * tests/test-byteswap.c: Likewise.
79215         * tests/test-c-ctype.c: Likewise.
79216         * tests/test-c-strcasecmp.c: Likewise.
79217         * tests/test-c-strcasestr.c: Likewise.
79218         * tests/test-c-strncasecmp.c: Likewise.
79219         * tests/test-c-strstr.c: Likewise.
79220         * tests/test-canonicalize-lgpl.c: Likewise.
79221         * tests/test-canonicalize.c: Likewise.
79222         * tests/test-carray_list.c: Likewise.
79223         * tests/test-ceilf.c: Likewise.
79224         * tests/test-ceill.c: Likewise.
79225         * tests/test-count-one-bits.c: Likewise.
79226         * tests/test-crc.c: Likewise.
79227         * tests/test-dirname.c: Likewise.
79228         * tests/test-fbufmode.c: Likewise.
79229         * tests/test-fcntl.c: Likewise.
79230         * tests/test-fflush.c: Likewise.
79231         * tests/test-floorf.c: Likewise.
79232         * tests/test-floorl.c: Likewise.
79233         * tests/test-fopen.c: Likewise.
79234         * tests/test-fprintf-posix.c: Likewise.
79235         * tests/test-fprintf-posix.h: Likewise.
79236         * tests/test-fpurge.c: Likewise.
79237         * tests/test-freadable.c: Likewise.
79238         * tests/test-freadahead.c: Likewise.
79239         * tests/test-freading.c: Likewise.
79240         * tests/test-freopen.c: Likewise.
79241         * tests/test-frexp.c: Likewise.
79242         * tests/test-frexpl.c: Likewise.
79243         * tests/test-fseek.c: Likewise.
79244         * tests/test-fseeko.c: Likewise.
79245         * tests/test-fseterr.c: Likewise.
79246         * tests/test-fstrcmp.c: Likewise.
79247         * tests/test-ftell.c: Likewise.
79248         * tests/test-ftello.c: Likewise.
79249         * tests/test-fwritable.c: Likewise.
79250         * tests/test-fwriting.c: Likewise.
79251         * tests/test-getaddrinfo.c: Likewise.
79252         * tests/test-getpass.c: Likewise.
79253         * tests/test-gettimeofday.c: Likewise.
79254         * tests/test-hmac-md5.c: Likewise.
79255         * tests/test-hmac-sha1.c: Likewise.
79256         * tests/test-iconv.c: Likewise.
79257         * tests/test-iconvme.c: Likewise.
79258         * tests/test-inttypes.c: Likewise.
79259         * tests/test-isnan.c: Likewise.
79260         * tests/test-isnanf.c: Likewise.
79261         * tests/test-isnanl-nolibm.c: Likewise.
79262         * tests/test-isnanl.c: Likewise.
79263         * tests/test-isnanl.h: Likewise.
79264         * tests/test-ldexpl.c: Likewise.
79265         * tests/test-linked_list.c: Likewise.
79266         * tests/test-linkedhash_list.c: Likewise.
79267         * tests/test-locale.c: Likewise.
79268         * tests/test-localename.c: Likewise.
79269         * tests/test-lock.c: Likewise.
79270         * tests/test-lseek.c: Likewise.
79271         * tests/test-malloca.c: Likewise.
79272         * tests/test-math.c: Likewise.
79273         * tests/test-mbscasecmp.c: Likewise.
79274         * tests/test-mbscasestr1.c: Likewise.
79275         * tests/test-mbscasestr2.c: Likewise.
79276         * tests/test-mbscasestr3.c: Likewise.
79277         * tests/test-mbscasestr4.c: Likewise.
79278         * tests/test-mbschr.c: Likewise.
79279         * tests/test-mbscspn.c: Likewise.
79280         * tests/test-mbsncasecmp.c: Likewise.
79281         * tests/test-mbspbrk.c: Likewise.
79282         * tests/test-mbspcasecmp.c: Likewise.
79283         * tests/test-mbsrchr.c: Likewise.
79284         * tests/test-mbsspn.c: Likewise.
79285         * tests/test-mbsstr1.c: Likewise.
79286         * tests/test-mbsstr2.c: Likewise.
79287         * tests/test-mbsstr3.c: Likewise.
79288         * tests/test-md5.c: Likewise.
79289         * tests/test-memmem.c: Likewise.
79290         * tests/test-netinet_in.c: Likewise.
79291         * tests/test-open.c: Likewise.
79292         * tests/test-printf-frexp.c: Likewise.
79293         * tests/test-printf-frexpl.c: Likewise.
79294         * tests/test-printf-posix.c: Likewise.
79295         * tests/test-printf-posix.h: Likewise.
79296         * tests/test-rbtree_list.c: Likewise.
79297         * tests/test-rbtree_oset.c: Likewise.
79298         * tests/test-rbtreehash_list.c: Likewise.
79299         * tests/test-read-file.c: Likewise.
79300         * tests/test-rijndael.c: Likewise.
79301         * tests/test-search.c: Likewise.
79302         * tests/test-signbit.c: Likewise.
79303         * tests/test-sleep.c: Likewise.
79304         * tests/test-snprintf-posix.c: Likewise.
79305         * tests/test-snprintf-posix.h: Likewise.
79306         * tests/test-snprintf.c: Likewise.
79307         * tests/test-sprintf-posix.c: Likewise.
79308         * tests/test-sprintf-posix.h: Likewise.
79309         * tests/test-stat-time.c: Likewise.
79310         * tests/test-stdbool.c: Likewise.
79311         * tests/test-stdint.c: Likewise.
79312         * tests/test-stdio.c: Likewise.
79313         * tests/test-stdlib.c: Likewise.
79314         * tests/test-stpncpy.c: Likewise.
79315         * tests/test-strcasestr.c: Likewise.
79316         * tests/test-striconv.c: Likewise.
79317         * tests/test-striconveh.c: Likewise.
79318         * tests/test-striconveha.c: Likewise.
79319         * tests/test-string.c: Likewise.
79320         * tests/test-sys_select.c: Likewise.
79321         * tests/test-sys_socket.c: Likewise.
79322         * tests/test-sys_stat.c: Likewise.
79323         * tests/test-sys_time.c: Likewise.
79324         * tests/test-sysexits.c: Likewise.
79325         * tests/test-time.c: Likewise.
79326         * tests/test-tls.c: Likewise.
79327         * tests/test-trunc.c: Likewise.
79328         * tests/test-truncf.c: Likewise.
79329         * tests/test-truncl.c: Likewise.
79330         * tests/test-unistd.c: Likewise.
79331         * tests/test-vasnprintf-posix.c: Likewise.
79332         * tests/test-vasnprintf-posix2.c: Likewise.
79333         * tests/test-vasnprintf.c: Likewise.
79334         * tests/test-vasprintf-posix.c: Likewise.
79335         * tests/test-vasprintf.c: Likewise.
79336         * tests/test-verify.c: Likewise.
79337         * tests/test-vfprintf-posix.c: Likewise.
79338         * tests/test-vprintf-posix.c: Likewise.
79339         * tests/test-vsnprintf-posix.c: Likewise.
79340         * tests/test-vsnprintf.c: Likewise.
79341         * tests/test-vsprintf-posix.c: Likewise.
79342         * tests/test-wchar.c: Likewise.
79343         * tests/test-wctype.c: Likewise.
79344         * tests/test-wcwidth.c: Likewise.
79345         * tests/test-xstrtol.c: Likewise.
79346         * tests/test-xvasprintf.c: Likewise.
79347         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
79348         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
79349         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
79350         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
79351         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
79352         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
79353         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
79354         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
79355         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
79356         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
79357         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
79358         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
79359         * tests/uniname/test-uninames.c: Likewise.
79360         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
79361         * tests/unistdio/test-u16-asnprintf1.h: Likewise.
79362         * tests/unistdio/test-u16-printf1.h: Likewise.
79363         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
79364         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
79365         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
79366         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
79367         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
79368         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
79369         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
79370         * tests/unistdio/test-u32-asnprintf1.h: Likewise.
79371         * tests/unistdio/test-u32-printf1.h: Likewise.
79372         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
79373         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
79374         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
79375         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
79376         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
79377         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
79378         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
79379         * tests/unistdio/test-u8-asnprintf1.h: Likewise.
79380         * tests/unistdio/test-u8-printf1.h: Likewise.
79381         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
79382         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
79383         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
79384         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
79385         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
79386         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
79387         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
79388         * tests/unistdio/test-ulc-asnprintf1.h: Likewise.
79389         * tests/unistdio/test-ulc-printf1.h: Likewise.
79390         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
79391         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
79392         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
79393         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
79394         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
79395         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
79396         * tests/uniwidth/test-u16-strwidth.c: Likewise.
79397         * tests/uniwidth/test-u16-width.c: Likewise.
79398         * tests/uniwidth/test-u32-strwidth.c: Likewise.
79399         * tests/uniwidth/test-u32-width.c: Likewise.
79400         * tests/uniwidth/test-u8-strwidth.c: Likewise.
79401         * tests/uniwidth/test-u8-width.c: Likewise.
79402         * tests/uniwidth/test-uc_width.c: Likewise.
79403         * config/srclist-update: Likewise.
79404         (fixlicense): Update to GPLv3+.
79406         Change copyright notice from LGPLv2.1+ to LGPLv3+.
79407         * tests/test-tsearch.c: Change copyright notice.
79409         Change copyright notice from LGPLv2.0+ to LGPLv3+.
79410         * lib/c-strcaseeq.h: Change copyright notice.
79411         * lib/streq.h: Likewise.
79412         * lib/uniconv.h: Likewise.
79413         * lib/uniconv/u-conv-from-enc.h: Likewise.
79414         * lib/uniconv/u-conv-to-enc.h: Likewise.
79415         * lib/uniconv/u-strconv-from-enc.h: Likewise.
79416         * lib/uniconv/u-strconv-to-enc.h: Likewise.
79417         * lib/uniconv/u16-conv-from-enc.c: Likewise.
79418         * lib/uniconv/u16-conv-to-enc.c: Likewise.
79419         * lib/uniconv/u16-strconv-from-enc.c: Likewise.
79420         * lib/uniconv/u16-strconv-from-locale.c: Likewise.
79421         * lib/uniconv/u16-strconv-to-enc.c: Likewise.
79422         * lib/uniconv/u16-strconv-to-locale.c: Likewise.
79423         * lib/uniconv/u32-conv-from-enc.c: Likewise.
79424         * lib/uniconv/u32-conv-to-enc.c: Likewise.
79425         * lib/uniconv/u32-strconv-from-enc.c: Likewise.
79426         * lib/uniconv/u32-strconv-from-locale.c: Likewise.
79427         * lib/uniconv/u32-strconv-to-enc.c: Likewise.
79428         * lib/uniconv/u32-strconv-to-locale.c: Likewise.
79429         * lib/uniconv/u8-conv-from-enc.c: Likewise.
79430         * lib/uniconv/u8-conv-to-enc.c: Likewise.
79431         * lib/uniconv/u8-strconv-from-enc.c: Likewise.
79432         * lib/uniconv/u8-strconv-from-locale.c: Likewise.
79433         * lib/uniconv/u8-strconv-to-enc.c: Likewise.
79434         * lib/uniconv/u8-strconv-to-locale.c: Likewise.
79435         * lib/uniname.h: Likewise.
79436         * lib/uniname/uniname.c: Likewise.
79437         * lib/unistdio.h: Likewise.
79438         * lib/unistdio/u-asnprintf.h: Likewise.
79439         * lib/unistdio/u-asprintf.h: Likewise.
79440         * lib/unistdio/u-printf-args.c: Likewise.
79441         * lib/unistdio/u-printf-args.h: Likewise.
79442         * lib/unistdio/u-printf-parse.h: Likewise.
79443         * lib/unistdio/u-snprintf.h: Likewise.
79444         * lib/unistdio/u-sprintf.h: Likewise.
79445         * lib/unistdio/u-vasprintf.h: Likewise.
79446         * lib/unistdio/u-vsnprintf.h: Likewise.
79447         * lib/unistdio/u-vsprintf.h: Likewise.
79448         * lib/unistdio/u16-asnprintf.c: Likewise.
79449         * lib/unistdio/u16-asprintf.c: Likewise.
79450         * lib/unistdio/u16-printf-parse.c: Likewise.
79451         * lib/unistdio/u16-snprintf.c: Likewise.
79452         * lib/unistdio/u16-sprintf.c: Likewise.
79453         * lib/unistdio/u16-u16-asnprintf.c: Likewise.
79454         * lib/unistdio/u16-u16-asprintf.c: Likewise.
79455         * lib/unistdio/u16-u16-snprintf.c: Likewise.
79456         * lib/unistdio/u16-u16-sprintf.c: Likewise.
79457         * lib/unistdio/u16-u16-vasnprintf.c: Likewise.
79458         * lib/unistdio/u16-u16-vasprintf.c: Likewise.
79459         * lib/unistdio/u16-u16-vsnprintf.c: Likewise.
79460         * lib/unistdio/u16-u16-vsprintf.c: Likewise.
79461         * lib/unistdio/u16-vasnprintf.c: Likewise.
79462         * lib/unistdio/u16-vasprintf.c: Likewise.
79463         * lib/unistdio/u16-vsnprintf.c: Likewise.
79464         * lib/unistdio/u16-vsprintf.c: Likewise.
79465         * lib/unistdio/u32-asnprintf.c: Likewise.
79466         * lib/unistdio/u32-asprintf.c: Likewise.
79467         * lib/unistdio/u32-printf-parse.c: Likewise.
79468         * lib/unistdio/u32-snprintf.c: Likewise.
79469         * lib/unistdio/u32-sprintf.c: Likewise.
79470         * lib/unistdio/u32-u32-asnprintf.c: Likewise.
79471         * lib/unistdio/u32-u32-asprintf.c: Likewise.
79472         * lib/unistdio/u32-u32-snprintf.c: Likewise.
79473         * lib/unistdio/u32-u32-sprintf.c: Likewise.
79474         * lib/unistdio/u32-u32-vasnprintf.c: Likewise.
79475         * lib/unistdio/u32-u32-vasprintf.c: Likewise.
79476         * lib/unistdio/u32-u32-vsnprintf.c: Likewise.
79477         * lib/unistdio/u32-u32-vsprintf.c: Likewise.
79478         * lib/unistdio/u32-vasnprintf.c: Likewise.
79479         * lib/unistdio/u32-vasprintf.c: Likewise.
79480         * lib/unistdio/u32-vsnprintf.c: Likewise.
79481         * lib/unistdio/u32-vsprintf.c: Likewise.
79482         * lib/unistdio/u8-asnprintf.c: Likewise.
79483         * lib/unistdio/u8-asprintf.c: Likewise.
79484         * lib/unistdio/u8-printf-parse.c: Likewise.
79485         * lib/unistdio/u8-snprintf.c: Likewise.
79486         * lib/unistdio/u8-sprintf.c: Likewise.
79487         * lib/unistdio/u8-u8-asnprintf.c: Likewise.
79488         * lib/unistdio/u8-u8-asprintf.c: Likewise.
79489         * lib/unistdio/u8-u8-snprintf.c: Likewise.
79490         * lib/unistdio/u8-u8-sprintf.c: Likewise.
79491         * lib/unistdio/u8-u8-vasnprintf.c: Likewise.
79492         * lib/unistdio/u8-u8-vasprintf.c: Likewise.
79493         * lib/unistdio/u8-u8-vsnprintf.c: Likewise.
79494         * lib/unistdio/u8-u8-vsprintf.c: Likewise.
79495         * lib/unistdio/u8-vasnprintf.c: Likewise.
79496         * lib/unistdio/u8-vasprintf.c: Likewise.
79497         * lib/unistdio/u8-vsnprintf.c: Likewise.
79498         * lib/unistdio/u8-vsprintf.c: Likewise.
79499         * lib/unistdio/ulc-asnprintf.c: Likewise.
79500         * lib/unistdio/ulc-asprintf.c: Likewise.
79501         * lib/unistdio/ulc-printf-parse.c: Likewise.
79502         * lib/unistdio/ulc-snprintf.c: Likewise.
79503         * lib/unistdio/ulc-sprintf.c: Likewise.
79504         * lib/unistdio/ulc-vasnprintf.c: Likewise.
79505         * lib/unistdio/ulc-vasprintf.c: Likewise.
79506         * lib/unistdio/ulc-vsnprintf.c: Likewise.
79507         * lib/unistdio/ulc-vsprintf.c: Likewise.
79508         * lib/unistr.h: Likewise.
79509         * lib/unistr/u-cpy-alloc.h: Likewise.
79510         * lib/unistr/u-cpy.h: Likewise.
79511         * lib/unistr/u-endswith.h: Likewise.
79512         * lib/unistr/u-move.h: Likewise.
79513         * lib/unistr/u-set.h: Likewise.
79514         * lib/unistr/u-startswith.h: Likewise.
79515         * lib/unistr/u-stpcpy.h: Likewise.
79516         * lib/unistr/u-stpncpy.h: Likewise.
79517         * lib/unistr/u-strcat.h: Likewise.
79518         * lib/unistr/u-strcpy.h: Likewise.
79519         * lib/unistr/u-strcspn.h: Likewise.
79520         * lib/unistr/u-strdup.h: Likewise.
79521         * lib/unistr/u-strlen.h: Likewise.
79522         * lib/unistr/u-strncat.h: Likewise.
79523         * lib/unistr/u-strncpy.h: Likewise.
79524         * lib/unistr/u-strnlen.h: Likewise.
79525         * lib/unistr/u-strpbrk.h: Likewise.
79526         * lib/unistr/u-strspn.h: Likewise.
79527         * lib/unistr/u-strstr.h: Likewise.
79528         * lib/unistr/u-strtok.h: Likewise.
79529         * lib/unistr/u16-check.c: Likewise.
79530         * lib/unistr/u16-chr.c: Likewise.
79531         * lib/unistr/u16-cmp.c: Likewise.
79532         * lib/unistr/u16-cpy-alloc.c: Likewise.
79533         * lib/unistr/u16-cpy.c: Likewise.
79534         * lib/unistr/u16-endswith.c: Likewise.
79535         * lib/unistr/u16-mblen.c: Likewise.
79536         * lib/unistr/u16-mbsnlen.c: Likewise.
79537         * lib/unistr/u16-mbtouc-aux.c: Likewise.
79538         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
79539         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
79540         * lib/unistr/u16-mbtouc.c: Likewise.
79541         * lib/unistr/u16-mbtoucr.c: Likewise.
79542         * lib/unistr/u16-move.c: Likewise.
79543         * lib/unistr/u16-next.c: Likewise.
79544         * lib/unistr/u16-prev.c: Likewise.
79545         * lib/unistr/u16-set.c: Likewise.
79546         * lib/unistr/u16-startswith.c: Likewise.
79547         * lib/unistr/u16-stpcpy.c: Likewise.
79548         * lib/unistr/u16-stpncpy.c: Likewise.
79549         * lib/unistr/u16-strcat.c: Likewise.
79550         * lib/unistr/u16-strchr.c: Likewise.
79551         * lib/unistr/u16-strcmp.c: Likewise.
79552         * lib/unistr/u16-strcpy.c: Likewise.
79553         * lib/unistr/u16-strcspn.c: Likewise.
79554         * lib/unistr/u16-strdup.c: Likewise.
79555         * lib/unistr/u16-strlen.c: Likewise.
79556         * lib/unistr/u16-strmblen.c: Likewise.
79557         * lib/unistr/u16-strmbtouc.c: Likewise.
79558         * lib/unistr/u16-strncat.c: Likewise.
79559         * lib/unistr/u16-strncmp.c: Likewise.
79560         * lib/unistr/u16-strncpy.c: Likewise.
79561         * lib/unistr/u16-strnlen.c: Likewise.
79562         * lib/unistr/u16-strpbrk.c: Likewise.
79563         * lib/unistr/u16-strrchr.c: Likewise.
79564         * lib/unistr/u16-strspn.c: Likewise.
79565         * lib/unistr/u16-strstr.c: Likewise.
79566         * lib/unistr/u16-strtok.c: Likewise.
79567         * lib/unistr/u16-to-u32.c: Likewise.
79568         * lib/unistr/u16-to-u8.c: Likewise.
79569         * lib/unistr/u16-uctomb-aux.c: Likewise.
79570         * lib/unistr/u16-uctomb.c: Likewise.
79571         * lib/unistr/u32-check.c: Likewise.
79572         * lib/unistr/u32-chr.c: Likewise.
79573         * lib/unistr/u32-cmp.c: Likewise.
79574         * lib/unistr/u32-cpy-alloc.c: Likewise.
79575         * lib/unistr/u32-cpy.c: Likewise.
79576         * lib/unistr/u32-endswith.c: Likewise.
79577         * lib/unistr/u32-mblen.c: Likewise.
79578         * lib/unistr/u32-mbsnlen.c: Likewise.
79579         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
79580         * lib/unistr/u32-mbtouc.c: Likewise.
79581         * lib/unistr/u32-mbtoucr.c: Likewise.
79582         * lib/unistr/u32-move.c: Likewise.
79583         * lib/unistr/u32-next.c: Likewise.
79584         * lib/unistr/u32-prev.c: Likewise.
79585         * lib/unistr/u32-set.c: Likewise.
79586         * lib/unistr/u32-startswith.c: Likewise.
79587         * lib/unistr/u32-stpcpy.c: Likewise.
79588         * lib/unistr/u32-stpncpy.c: Likewise.
79589         * lib/unistr/u32-strcat.c: Likewise.
79590         * lib/unistr/u32-strchr.c: Likewise.
79591         * lib/unistr/u32-strcmp.c: Likewise.
79592         * lib/unistr/u32-strcpy.c: Likewise.
79593         * lib/unistr/u32-strcspn.c: Likewise.
79594         * lib/unistr/u32-strdup.c: Likewise.
79595         * lib/unistr/u32-strlen.c: Likewise.
79596         * lib/unistr/u32-strmblen.c: Likewise.
79597         * lib/unistr/u32-strmbtouc.c: Likewise.
79598         * lib/unistr/u32-strncat.c: Likewise.
79599         * lib/unistr/u32-strncmp.c: Likewise.
79600         * lib/unistr/u32-strncpy.c: Likewise.
79601         * lib/unistr/u32-strnlen.c: Likewise.
79602         * lib/unistr/u32-strpbrk.c: Likewise.
79603         * lib/unistr/u32-strrchr.c: Likewise.
79604         * lib/unistr/u32-strspn.c: Likewise.
79605         * lib/unistr/u32-strstr.c: Likewise.
79606         * lib/unistr/u32-strtok.c: Likewise.
79607         * lib/unistr/u32-to-u16.c: Likewise.
79608         * lib/unistr/u32-to-u8.c: Likewise.
79609         * lib/unistr/u32-uctomb.c: Likewise.
79610         * lib/unistr/u8-check.c: Likewise.
79611         * lib/unistr/u8-chr.c: Likewise.
79612         * lib/unistr/u8-cmp.c: Likewise.
79613         * lib/unistr/u8-cpy-alloc.c: Likewise.
79614         * lib/unistr/u8-cpy.c: Likewise.
79615         * lib/unistr/u8-endswith.c: Likewise.
79616         * lib/unistr/u8-mblen.c: Likewise.
79617         * lib/unistr/u8-mbsnlen.c: Likewise.
79618         * lib/unistr/u8-mbtouc-aux.c: Likewise.
79619         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
79620         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
79621         * lib/unistr/u8-mbtouc.c: Likewise.
79622         * lib/unistr/u8-mbtoucr.c: Likewise.
79623         * lib/unistr/u8-move.c: Likewise.
79624         * lib/unistr/u8-next.c: Likewise.
79625         * lib/unistr/u8-prev.c: Likewise.
79626         * lib/unistr/u8-set.c: Likewise.
79627         * lib/unistr/u8-startswith.c: Likewise.
79628         * lib/unistr/u8-stpcpy.c: Likewise.
79629         * lib/unistr/u8-stpncpy.c: Likewise.
79630         * lib/unistr/u8-strcat.c: Likewise.
79631         * lib/unistr/u8-strchr.c: Likewise.
79632         * lib/unistr/u8-strcmp.c: Likewise.
79633         * lib/unistr/u8-strcpy.c: Likewise.
79634         * lib/unistr/u8-strcspn.c: Likewise.
79635         * lib/unistr/u8-strdup.c: Likewise.
79636         * lib/unistr/u8-strlen.c: Likewise.
79637         * lib/unistr/u8-strmblen.c: Likewise.
79638         * lib/unistr/u8-strmbtouc.c: Likewise.
79639         * lib/unistr/u8-strncat.c: Likewise.
79640         * lib/unistr/u8-strncmp.c: Likewise.
79641         * lib/unistr/u8-strncpy.c: Likewise.
79642         * lib/unistr/u8-strnlen.c: Likewise.
79643         * lib/unistr/u8-strpbrk.c: Likewise.
79644         * lib/unistr/u8-strrchr.c: Likewise.
79645         * lib/unistr/u8-strspn.c: Likewise.
79646         * lib/unistr/u8-strstr.c: Likewise.
79647         * lib/unistr/u8-strtok.c: Likewise.
79648         * lib/unistr/u8-to-u16.c: Likewise.
79649         * lib/unistr/u8-to-u32.c: Likewise.
79650         * lib/unistr/u8-uctomb-aux.c: Likewise.
79651         * lib/unistr/u8-uctomb.c: Likewise.
79652         * lib/unitypes.h: Likewise.
79653         * lib/uniwidth.h: Likewise.
79654         * lib/uniwidth/cjk.h: Likewise.
79655         * lib/uniwidth/u16-strwidth.c: Likewise.
79656         * lib/uniwidth/u16-width.c: Likewise.
79657         * lib/uniwidth/u32-strwidth.c: Likewise.
79658         * lib/uniwidth/u32-width.c: Likewise.
79659         * lib/uniwidth/u8-strwidth.c: Likewise.
79660         * lib/uniwidth/u8-width.c: Likewise.
79661         * lib/uniwidth/width.c: Likewise.
79663 2007-10-07  Bruno Haible  <bruno@clisp.org>
79665         * lib/inttypes.in.h: Change copyright notice from LGPL to GPL.
79666         The file is still under LGPL (see modules/inttypes).
79668 2007-10-06  Bruno Haible  <bruno@clisp.org>
79670         * modules/trunc (Dependencies): Add 'extensions'.
79671         * m4/trunc.m4 (gl_FUNC_TRUNC): Require gl_USE_SYSTEM_EXTENSIONS.
79672         Reported by Ben Pfaff <blp@gnu.org>.
79674 2007-10-06  Bruno Haible  <bruno@clisp.org>
79676         * modules/freopen-tests: New file.
79677         * tests/test-freopen.c: New file.
79679         * modules/fopen-tests: New file.
79680         * tests/test-fopen.c: New file.
79682         * modules/fopen: New file.
79683         * lib/fopen.c: New file.
79684         * m4/fopen.m4: New file.
79685         * modules/freopen: New file.
79686         * lib/freopen.c: New file.
79687         * m4/freopen.m4: New file.
79688         * lib/stdio.in.h (fopen, freopen): New declarations.
79689         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize also GNULIB_FOPEN,
79690         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
79691         * modules/stdio (Makefile.am): Substitute also GNULIB_FOPEN,
79692         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
79693         * doc/functions/fopen.texi: Mention the 'fopen' module.
79694         * doc/functions/freopen.texi: Mention the 'freopen' module.
79696 2007-10-06  Bruno Haible  <bruno@clisp.org>
79698         * modules/open-tests: New file.
79699         * tests/test-open.c: New file.
79701         * modules/open: New file.
79702         * lib/open.c: New file.
79703         * m4/open.m4: New file.
79704         * lib/fchdir.c (open): If the gnulib module 'open' is used, do what
79705         lib/open.c does.
79706         * lib/fcntl.in.h (open): Declare also if replaced by the 'open' module.
79707         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR, gl_FCNTL_H_DEFAULTS): New
79708         macros.
79709         (gl_FCNTL_H): Require gl_FCNTL_H_DEFAULTS.
79710         * modules/fcntl (Makefile.am): Also substitute GNULIB_OPEN and
79711         REPLACE_OPEN.
79712         * doc/functions/open.texi: Mention the 'open' module.
79714 2007-10-04  Bruno Haible  <bruno@clisp.org>
79716         * modules/ceill-tests: New file.
79717         * tests/test-ceill.c: New file.
79719         * modules/ceill: New file.
79720         * lib/ceill.c: Replace entire file.
79721         * m4/ceill.m4: New file.
79722         * lib/math.in.h (ceill): Replace declaration.
79723         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILL.
79724         * modules/math (Makefile.am): Substitute also GNULIB_CEILL.
79725         * doc/functions/ceill.texi: Mention the 'ceill' module.
79726         * modules/mathl (Files): Remove lib/ceill.c.
79727         (Depends-on): Add ceill.
79729 2007-10-04  Bruno Haible  <bruno@clisp.org>
79731         * modules/ceilf-tests: New file.
79732         * tests/test-ceilf.c: New file.
79734         * modules/ceilf: New file.
79735         * lib/ceil.c: New file.
79736         * lib/ceilf.c: New file.
79737         * m4/ceilf.m4: New file.
79738         * lib/math.in.h (ceilf): New declaration.
79739         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILF and
79740         HAVE_DECL_CEILF.
79741         * modules/math (Makefile.am): Substitute also GNULIB_CEILF and
79742         HAVE_DECL_CEILF.
79743         * doc/functions/ceilf.texi: Mention the 'ceilf' module.
79745 2007-10-04  Bruno Haible  <bruno@clisp.org>
79747         * modules/floorl-tests: New file.
79748         * tests/test-floorl.c: New file.
79750         * modules/floorl: New file.
79751         * lib/floorl.c: Replace entire file.
79752         * m4/floorl.m4: New file.
79753         * lib/math.in.h (floorl): Replace declaration.
79754         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORL.
79755         * modules/math (Makefile.am): Substitute also GNULIB_FLOORL.
79756         * doc/functions/floorl.texi: Mention the 'floorl' module.
79757         * modules/mathl (Files): Remove lib/floorl.c.
79758         (Depends-on): Add floorl.
79760 2007-10-04  Bruno Haible  <bruno@clisp.org>
79762         * modules/floorf-tests: New file.
79763         * tests/test-floorf.c: New file.
79765         * modules/floorf: New file.
79766         * lib/floor.c: New file.
79767         * lib/floorf.c: New file.
79768         * m4/floorf.m4: New file.
79769         * lib/math.in.h (floorf): New declaration.
79770         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORF and
79771         HAVE_DECL_FLOORF.
79772         * modules/math (Makefile.am): Substitute also GNULIB_FLOORF and
79773         HAVE_DECL_FLOORF.
79774         * doc/functions/floorf.texi: Mention the 'floorf' module.
79776 2007-10-04  Benoit Sigoure  <tsuna@lrde.epita.fr>
79777             Bruno Haible  <bruno@clisp.org>
79779         Advertise for the Git server instead of the CVS server.
79780         * doc/gnulib-intro.texi (Steady Development): Mention the Git
79781         repository instead of the CVS one.
79782         * doc/gnulib-tool.texi (VCS Issues): Renamed from "CVS Issues". Talk
79783         about all VCS systems generically.
79784         * doc/gnulib.texi (Introduction): Capitalize `Git'.
79786 2007-10-04  Bruno Haible  <bruno@clisp.org>
79788         * doc/gnulib.texi (Function Substitutes): Explain what an absent module
79789         means.
79790         Reported by Benoît Sigoure <tsuna@lrde.epita.fr>.
79792 2007-10-04  Bruno Haible  <bruno@clisp.org>
79794         * modules/truncl-tests: New file.
79795         * tests/test-truncl.c: New file.
79797         * modules/truncl: New file.
79798         * lib/truncl.c: New file.
79799         * m4/truncl.m4: New file.
79800         * lib/math.in.h (truncl): New declaration.
79801         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCL and
79802         HAVE_DECL_TRUNCL.
79803         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCL and
79804         HAVE_DECL_TRUNCL.
79805         * doc/functions/truncl.texi: Mention the 'truncl' module.
79807 2007-10-04  Bruno Haible  <bruno@clisp.org>
79809         * modules/truncf-tests: New file.
79810         * tests/test-truncf.c: New file.
79812         * modules/truncf: New file.
79813         * lib/trunc.c: Make paramerizable through USE_* macros.
79814         * lib/truncf.c: New file.
79815         * m4/truncf.m4: New file.
79816         * lib/math.in.h (truncf): New declaration.
79817         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCF and
79818         HAVE_DECL_TRUNCF.
79819         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCF and
79820         HAVE_DECL_TRUNCF.
79821         * doc/functions/truncf.texi: Mention the 'truncf' module.
79823 2007-10-03  Bruno Haible  <bruno@clisp.org>
79825         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
79826         augmentation also for tests modules.
79827         * modules/argp-tests (Makefile.am): Remove EXTRA_DIST augmentation.
79828         * modules/atexit-tests (Makefile.am): Likewise.
79829         * modules/binary-io-tests (Makefile.am): Likewise.
79830         * modules/c-strcase-tests (Makefile.am): Likewise.
79831         * modules/canonicalize-lgpl-tests (Makefile.am): Likewise.
79832         * modules/canonicalize-tests (Makefile.am): Likewise.
79833         * modules/closein-tests (Makefile.am): Likewise.
79834         * modules/fprintf-posix-tests (Makefile.am): Likewise.
79835         * modules/freadahead-tests (Makefile.am): Likewise.
79836         * modules/fseek-tests (Makefile.am): Likewise.
79837         * modules/fseeko-tests (Makefile.am): Likewise.
79838         * modules/ftell-tests (Makefile.am): Likewise.
79839         * modules/ftello-tests (Makefile.am): Likewise.
79840         * modules/isnanl-nolibm-tests (Makefile.am): Likewise.
79841         * modules/isnanl-tests (Makefile.am): Likewise.
79842         * modules/lseek-tests (Makefile.am): Likewise.
79843         * modules/mbscasecmp-tests (Makefile.am): Likewise.
79844         * modules/mbscasestr-tests (Makefile.am): Likewise.
79845         * modules/mbschr-tests (Makefile.am): Likewise.
79846         * modules/mbscspn-tests (Makefile.am): Likewise.
79847         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
79848         * modules/mbspbrk-tests (Makefile.am): Likewise.
79849         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
79850         * modules/mbsrchr-tests (Makefile.am): Likewise.
79851         * modules/mbsspn-tests (Makefile.am): Likewise.
79852         * modules/mbsstr-tests (Makefile.am): Likewise.
79853         * modules/printf-posix-tests (Makefile.am): Likewise.
79854         * modules/snprintf-posix-tests (Makefile.am): Likewise.
79855         * modules/sprintf-posix-tests (Makefile.am): Likewise.
79856         * modules/tsearch-tests (Makefile.am): Likewise.
79857         * modules/uniname/uniname-tests (Makefile.am): Likewise.
79858         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
79859         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
79860         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
79861         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
79862         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
79863         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
79864         * modules/vprintf-posix-tests (Makefile.am): Likewise.
79865         * modules/vsnprintf-posix-tests (Makefile.am): Likewise.
79866         * modules/vsprintf-posix-tests (Makefile.am): Likewise.
79867         * modules/xstrtoimax-tests (Makefile.am): Likewise.
79868         * modules/xstrtol-tests (Makefile.am): Likewise.
79869         * modules/xstrtoumax-tests (Makefile.am): Likewise.
79870         * modules/yesno-tests (Makefile.am): Likewise.
79872 2007-10-03  Bruno Haible  <bruno@clisp.org>
79874         * modules/trunc-tests: New file.
79875         * tests/test-trunc.c: New file.
79877         * modules/trunc: New file.
79878         * lib/trunc.c: New file.
79879         * m4/trunc.m4: New file.
79880         * lib/math.in.h (trunc): New declaration.
79881         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNC and
79882         HAVE_DECL_TRUNC.
79883         * modules/math (Makefile.am): Substitute also GNULIB_TRUNC and
79884         HAVE_DECL_TRUNC.
79885         * doc/functions/trunc.texi: Mention the 'trunc' module.
79887 2007-10-03  Bruno Haible  <bruno@clisp.org>
79889         * tests/test-fpending.c: New file, mostly copied
79890         from coreutils/lib/t-fpending.c.
79891         * modules/fpending-tests: New file.
79893 2007-10-03  Bruno Haible  <bruno@clisp.org>
79895         Port the stdio extensions to QNX (untested).
79896         * lib/fseterr.c (fseterr): Add support for QNX.
79897         * lib/fbufmode.c (fbufmode): Likewise.
79898         * lib/freadable.c (freadable): Likewise.
79899         * lib/fwritable.c (fwritable): Likewise.
79900         * lib/freading.c (freading): Likewise.
79901         * lib/fwriting.c (fwriting): Likewise.
79902         * lib/freadahead.c (freadahed): Likewise.
79903         * lib/fpurge.c (fpurge): Likewise.
79904         * lib/fseeko.c (rpl_fseeko): Likewise.
79906 2007-10-03  Bruno Haible  <bruno@clisp.org>
79907             Jim Meyering  <jim@meyering.net>
79908             Eric Blake  <ebb9@byu.net>
79910         * doc/relocatable.texi: Use @command instead of @program.
79912 2007-10-02  Jim Meyering  <jim@meyering.net>
79914         Perform one more "_.h" -> ".in.h" substitution.
79915         * modules/unistd (Makefile.am) [unistd.h]: Use unistd.h.in
79916         instead of unistd_.h here, too.
79918 2007-10-01  Bruno Haible  <bruno@clisp.org>
79920         * gnulib-tool (func_emit_initmacro_done): Special case for alloca.c.
79921         Needed for the alloca-opt module.
79923 2007-09-30  Bruno Haible  <bruno@clisp.org>
79925         * lib/alloca.in.h: Renamed from lib/alloca_.h.
79926         * modules/alloca-opt (Files, Makefile.am): Use alloca.in.h instead of
79927         alloca_.h.
79928         * lib/argz.in.h: Renamed from lib/argz_.h.
79929         * modules/argz (Files, Makefile.am): Use argz.in.h instead of argz_.h.
79930         * lib/byteswap.in.h: Renamed from lib/byteswap_.h.
79931         * modules/byteswap (Files, Makefile.am): Use byteswap.in.h instead of
79932         byteswap_.h.
79933         * lib/dirent.in.h: Renamed from lib/dirent_.h.
79934         * modules/fchdir (Files, Makefile.am): Use dirent.in.h instead of
79935         dirent_.h.
79936         * lib/fcntl.in.h: Renamed from lib/fcntl_.h.
79937         * modules/fcntl (Files, Makefile.am): Use fcntl.in.h instead of
79938         fcntl_.h.
79939         * lib/float.in.h: Renamed from lib/float_.h.
79940         * modules/float (Files, Makefile.am): Use float.in.h instead of
79941         float_.h.
79942         * lib/fnmatch.in.h: Renamed from lib/fnmatch_.h.
79943         * modules/fnmatch (Files, Makefile.am): Use fnmatch.in.h instead of
79944         fnmatch_.h.
79945         * lib/getopt.in.h: Renamed from lib/getopt_.h.
79946         * modules/getopt (Files, Makefile.am): Use getopt.in.h instead of
79947         getopt_.h.
79948         * lib/glob.in.h: Renamed from lib/glob_.h.
79949         * modules/glob (Files, Makefile.am): Use glob.in.h instead of glob_.h.
79950         * lib/iconv.in.h: Renamed from lib/iconv_.h.
79951         * modules/iconv_open (Files, Makefile.am): Use iconv.in.h instead of
79952         iconv_.h.
79953         * lib/inttypes.in.h: Renamed from lib/inttypes_.h.
79954         * modules/inttypes (Files, Makefile.am): Use inttypes.in.h instead of
79955         inttypes_.h.
79956         * lib/locale.in.h: Renamed from lib/locale_.h.
79957         * modules/locale (Files, Makefile.am): Use locale.in.h instead of
79958         locale_.h.
79959         * lib/math.in.h: Renamed from lib/math_.h.
79960         * modules/math (Files, Makefile.am): Use math.in.h instead of math_.h.
79961         * lib/netinet_in.in.h: Renamed from lib/netinet_in_.h.
79962         * modules/netinet_in (Files, Makefile.am): Use netinet_in.in.h instead
79963         of netinet_in_.h. Add dependency.
79964         * lib/poll.in.h: Renamed from lib/poll_.h.
79965         * modules/poll (Files, Makefile.am): Use poll.in.h instead of poll_.h.
79966         * lib/search.in.h: Renamed from lib/search_.h.
79967         * modules/search (Files, Makefile.am): Use search.in.h instead of
79968         search_.h.
79969         * lib/signal.in.h: Renamed from lib/signal_.h.
79970         * modules/signal (Files, Makefile.am): Use signal.in.h instead of
79971         _signal.h.
79972         * lib/stdbool.in.h: Renamed from lib/stdbool_.h.
79973         * modules/stdbool (Files, Makefile.am): Use stdbool.in.h instead of
79974         stdbool_.h.
79975         * lib/stdint.in.h: Renamed from lib/stdint_.h.
79976         * modules/stdint (Files, Makefile.am): Use stdint.in.h instead of
79977         stdint_.h.
79978         * lib/stdio.in.h: Renamed from lib/stdio_.h.
79979         * modules/stdio (Files, Makefile.am): Use stdio.in.h instead of
79980         stdio_.h.
79981         * lib/stdlib.in.h: Renamed from lib/stdlib_.h.
79982         * modules/stdlib (Files, Makefile.am): Use stdlib.in.h instead of
79983         stdlib_.h.
79984         * lib/string.in.h: Renamed from lib/string_.h.
79985         * modules/string (Files, Makefile.am): Use string.in.h instead of
79986         string_.h.
79987         * doc/gnulib-tool.texi (Initial import): Update.
79988         * lib/sys_select.in.h: Renamed from lib/sys_select_.h.
79989         * modules/sys_select (Files, Makefile.am): Use sys_select.in.h instead
79990         of sys_select_.h. Add dependency.
79991         * lib/sys_socket.in.h: Renamed from lib/sys_socket_.h.
79992         * modules/sys_socket (Files, Makefile.am): Use sys_socket.in.h instead
79993         of sys_socket_.h.
79994         * lib/sys_stat.in.h: Renamed from lib/sys_stat_.h.
79995         * modules/sys_stat (Files, Makefile.am): Use sys_stat.in.h instead of
79996         sys_stat_.h.
79997         * lib/sys_time.in.h: Renamed from lib/sys_time_.h.
79998         * modules/sys_time (Files, Makefile.am): Use sys_time.in.h instead of
79999         sys_time_.h.
80000         * lib/sysexits.in.h: Renamed from lib/sysexits_.h.
80001         * modules/sysexits (Files, Makefile.am): Use sysexits.in.h instead of
80002         sysexits_.h.
80003         * lib/time.in.h: Renamed from lib/time_.h.
80004         * modules/time (Files, Makefile.am): Use time.in.h instead of time_.h.
80005         * lib/unistd.in.h: Renamed from lib/unistd_.h.
80006         * modules/unistd (Files, Makefile.am): Use unistd.in.h instead of
80007         unistd_.h.
80008         * lib/wchar.in.h: Renamed from lib/wchar_.h.
80009         * modules/wchar (Files, Makefile.am): Use wchar.in.h instead of
80010         wchar_.h.
80011         * lib/wctype.in.h: Renamed from lib/wctype_.h.
80012         * modules/wctype (Files, Makefile.am): Use wctype.in.h instead of
80013         wctype_.h.
80014         * build-aux/bootstrap (slurp): Update.
80015         * lib/.cppi-disable: Update.
80017 2007-09-30  Bruno Haible  <bruno@clisp.org>
80019         * tests/test-getaddrinfo.c (AF_UNSPEC): Provide a fallback definition.
80020         Needed on BeOS.
80022 2007-09-30  Bruno Haible  <bruno@clisp.org>
80024         * modules/dirname-tests (check_PROGRAMS): Renamed from noinst_PROGRAMS.
80026 2007-09-29  Bruno Haible  <bruno@clisp.org>
80028         * lib/stdio_.h (getdelim, getline): Add identifiers. Doc tweak.
80030 2007-09-29  Bruno Haible  <bruno@clisp.org>
80032         * lib/xreadlink.c (xreadlink): Simplify to a wrapper around areadlink.
80033         * modules/xreadlink (Depends-on): Add areadlink, remove readlink etc.
80034         * build-aux/install-reloc: Compile also areadlink.c.
80035         * modules/relocatable-prog-wrapper (Files): Add lib/areadlink.[hc].
80037 2007-09-29  Bruno Haible  <bruno@clisp.org>
80039         * gnulib-tool (func_emit_initmacro_done): Indentation.
80041 2007-09-29  Bruno Haible  <bruno@clisp.org>
80043         * README: Add CVS checkout update instructions.
80044         Info from Bob Proulx <bob@proulx.com>.
80046 2007-09-28  Eric Blake  <ebb9@byu.net>
80048         Provide move-if-change.
80049         * build-aux/move-if-change: New file, based on best practice
80050         rather than any canonical upstream location.
80052 2007-09-28  Jim Meyering  <jim@meyering.net>
80054         Fix canonicalize loop-detection corner case.
80055         Do not attempt to stat the symlink values stored via seen_triple.
80056         Without this, coreutils' tests/misc/readlink-fp-loop test would fail
80057         on linux-2.6.18, (but not 2.6.22).
80058         * lib/canonicalize.c (seen_triple): Use triple_compare_ino_str, not
80059         triple_compare.  The former compares dev,ino,filename, while the latter
80060         would actually stat dirname(filename) when dev and ino were equal.
80061         * lib/hash-triple.c: Install <string.h>.
80062         (STREQ): Define.
80063         (triple_compare_ino_str): New function.
80064         * lib/hash-triple.h (triple_compare_ino_str): Declare it.
80066 2007-09-28  Eric Blake  <ebb9@byu.net>
80068         Enforce that AC_REPLACE_FUNCS files exist.
80069         * gnulib-tool (func_emit_initmacro_done): Make AC_LIBSOURCES
80070         override check for typos.
80072         Fix test-closein on Solaris 10.
80073         * tests/test-closein.c (main): Don't assume stdin can be inherited
80074         closed on all systems.
80075         * tests/test-closein.sh: Likewise.
80076         Reported by Piotr Tarnowski.
80078 2007-09-28  Jim Meyering  <jim@meyering.net>
80080         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Fix typo in comment.
80082 2007-09-27  Jim Meyering  <jim@meyering.net>
80084         canonicalize: Avoid a false-positive cycle failure.
80085         * modules/canonicalize (Depends-on): Add file-set and hash-triple.
80086         Sort.  Remove cycle-check.
80087         * lib/canonicalize.c: Include file-set.h and hash-triple.h,
80088         not cycle-check.h.
80089         (seen_triple): New function.
80090         (canonicalize_filename_mode): Use it instead of cycle-check.
80091         * tests/test-canonicalize.c: Add a test for this bug.
80092         * tests/test-canonicalize.sh: Set up and run the test.
80094         New module, file-set, from coreutils.
80095         * modules/file-set: Define it.
80096         * lib/file-set.c, lib/file-set.h: Implement.
80098         New module, hash-triple, from coreutils.
80099         * modules/hash-triple: Define it.
80100         * lib/hash-triple.c, lib/hash-triple.h: Implement.
80102 2007-09-25  Eric Blake  <ebb9@byu.net>
80104         Fix strerror on Interix.
80105         * lib/string_.h (strerror): Declare replacement.
80106         * doc/functions/strerror.texi (strerror): Document the Interix
80107         shortcoming.
80108         * modules/string (Makefile.am): Support new hooks.
80109         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add new hooks.
80110         * m4/strerror.m4 (gl_FUNC_STRERROR): Defer to
80111         gl_FUNC_STRERROR_SEPARATE.
80112         (gl_FUNC_STRERROR_SEPARATE): Check for Interix bug.
80113         * lib/strerror.c (rpl_strerror): Provide replacement.
80114         * modules/strerror (Depends-on): Add string.
80115         (configure.ac): Detect use of module.
80116         * tests/test-strerror.c: New file.
80117         * modules/strerror-tests: New test module.
80118         * modules/argp (Depends-on): Add strerror.
80119         * modules/error (Depends-on): Likewise.
80120         Reported by Martin Koeppe.
80122 2007-09-24  Bruno Haible  <bruno@clisp.org>
80124         * README: Update git instructions.
80126 2007-09-24  Eric Blake  <ebb9@byu.net>
80128         Revert fpending breakage from 2007-09-08.
80129         * m4/fpending.m4 (gl_FUNC_FPENDING): Don't require existence of
80130         __fpending.c.
80132 2007-09-24  Jim Meyering  <jim@meyering.net>
80134         filenamecat.c: Add a test.
80135         * lib/filenamecat.c (main) [TEST_FILE_NAME_CONCAT]: Add a test
80136         showing how the function works when DIR is the empty string.
80138 2007-09-21  Simon Josefsson  <simon@josefsson.org>
80140         * tests/test-canonicalize.sh: Turn on executable bit.
80142 2007-09-19  Eric Blake  <ebb9@byu.net>
80144         * README: Update CVS instructions.
80146 2007-09-18  Bruno Haible  <bruno@clisp.org>
80148         * modules/areadlink: New file.
80149         * lib/areadlink.h (areadlink): New declaration.
80150         * lib/areadlink.c: New file, based on lib/xreadlink.c.
80152 2007-09-17  Jim Meyering  <jim@meyering.net>
80154         * lib/savewd.c (ESTALE) [!defined]: Define.
80155         Reported to be required on Interix by Martin Koeppe.
80157 2007-09-17  Bruno Haible  <bruno@clisp.org>
80159         * gnulib-tool (func_version): Use $version.
80161 2007-09-16  Bruno Haible  <bruno@clisp.org>
80163         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE, gl_PRINTF_INFINITE,
80164         gl_PRINTF_INFINITE_LONG_DOUBLE): Increase buf's size from 100 to 10000.
80165         Needed on glibc-2.6.1 with -fstack-protector -D_FORTIFY_SOURCE=2.
80166         Reported by Greg Schafer <gschafer@zip.com.au>.
80168 2007-09-15  Bruno Haible  <bruno@clisp.org>
80170         * gnulib-tool (sed): Try a little harder to make bash understand the
80171         alias.
80172         Reported by Bruce Korb <bruce.korb@gmail.com>.
80174 2007-09-13  Eric Blake  <ebb9@byu.net>
80176         * ChangeLog: Remove conflict markers.
80178 2007-09-13  Simon Josefsson  <simon@josefsson.org>
80180         * lib/gc-gnulib.c (gc_hash_open): Catch NULL calloc return value.
80181         Reported by Bruno Haible <bruno@clisp.org>.
80183 2007-09-12  Bruno Haible  <bruno@clisp.org>
80185         * m4/lock.m4: Don't provide an AC_USE_SYSTEM_EXTENSIONS definition.
80186         (gl_LOCK_EARLY_BODY): Use AC_GNU_SOURCE when AC_USE_SYSTEM_EXTENSIONS
80187         is not defined.
80189 2007-09-12  Eric Blake  <ebb9@byu.net>
80191         Track CVS Autoconf on AC_USE_SYSTEM_EXTENSIONS.
80192         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Update to CVS
80193         Autoconf definition.
80194         * modules/euidaccess (Depends-on): Add extensions, for
80195         AC_USE_SYSTEM_EXTENSIONS with autoconf <= 2.59.
80196         * modules/fnmatch (Depends-on): Likewise.
80197         * modules/getaddrinfo (Depends-on): Likewise.
80198         * modules/getdelim (Depends-on): Likewise.
80199         * modules/getline (Depends-on): Likewise.
80200         * modules/getsubopt (Depends-on): Likewise.
80201         * modules/gettext (Depends-on): Likewise.
80202         * modules/group-member (Depends-on): Likewise.
80203         * modules/mbchar (Depends-on): Likewise.
80204         * modules/memmem (Depends-on): Likewise.
80205         * modules/mempcpy (Depends-on): Likewise.
80206         * modules/memrchr (Depends-on): Likewise.
80207         * modules/pagealign_alloc (Depends-on): Likewise.
80208         * modules/readutmp (Depends-on): Likewise.
80209         * modules/stpcpy (Depends-on): Likewise.
80210         * modules/stpncpy (Depends-on): Likewise.
80211         * modules/strchrnul (Depends-on): Likewise.
80212         * modules/strndup (Depends-on): Likewise.
80213         * modules/strsep (Depends-on): Likewise.
80214         * modules/strverscmp (Depends-on): Likewise.
80215         * modules/vasprintf (Depends-on): Likewise.
80216         * modules/wcwidth (Depends-on): Likewise.
80217         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): AC_GNU_SOURCE will be
80218         obsolete in Autoconf 2.62; use AC_USE_SYSTEM_EXTENSIONS instead.
80219         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_GNU): Likewise.
80220         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDR_INFO): Likewise.
80221         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
80222         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
80223         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Likewise.
80224         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
80225         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Likewise.
80226         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
80227         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
80228         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
80229         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
80230         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
80231         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Likewise.
80232         * m4/readutmp.m4 (gl_READUTMP): Likewise.
80233         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
80234         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
80235         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
80236         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
80237         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
80238         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
80239         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
80240         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Likewise.
80241         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): Likewise.
80242         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
80243         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Likewise, but provide fallback,
80244         so that lock.m4 can be used in gettext without extensions module.
80246 2007-09-11  Bruno Haible  <bruno@clisp.org>
80248         * m4/isc-posix.m4: Remove file.
80249         Suggested by Eric Blake.
80251 2007-09-11  Eric Blake  <ebb9@byu.net>
80253         * ChangeLog: Restore lines accidentally truncated 2007-04-06.
80255 2007-09-10  Bruno Haible  <bruno@clisp.org>
80257         * posix-modules: Fix typo in error message.
80258         Reported by Matt <mkraai@beckman.com>.
80260 2007-09-09  Bruno Haible  <bruno@clisp.org>
80262         * doc/functions/getdelim.texi: Update list of platforms lacking the
80263         function.
80264         * doc/functions/getline.texi: Likewise.
80266 2007-09-09  Jim Meyering  <jim@meyering.net>
80268         * lib/hash.c (hash_initialize): Detect calloc failure.
80269         Reported by Bruno Haible.
80271 2007-09-09  Bruno Haible  <bruno@clisp.org>
80273         * lib/canonicalize-lgpl.c (__realpath): Set errno to ENOMEM when
80274         malloc or realloc fails.
80276 2007-09-09  Bruno Haible  <bruno@clisp.org>
80278         * modules/getcwd (Depends-on): Add malloc-posix.
80279         * modules/glob (Depends-on): Likewise.
80280         * modules/putenv (Depends-on): Likewise.
80281         * modules/strdup (Depends-on): Likewise.
80282         * modules/getdelim (Depends-on): Add realloc-posix.
80283         * modules/read-file (Depends-on): Likewise.
80285 2007-09-09  Bruno Haible  <bruno@clisp.org>
80287         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): New macro.
80288         (gl_FUNC_MALLOC_POSIX): Require it.
80289         * m4/realloc.m4 (gl_FUNC_REALLOC_POSIX): Likewise.
80290         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): Likewise.
80291         * modules/realloc (Files): Add m4/malloc.m4.
80292         * modules/calloc (Files): Likewise.
80294 2007-09-09  Bruno Haible  <bruno@clisp.org>
80296         * modules/malloc-posix: New file.
80297         * modules/malloc (Depends-on): Add malloc-posix.
80298         * lib/malloc.c: Include errno.h.
80299         (rpl_malloc): Merge the requirements of a glibc-compatible malloc
80300         and a POSIX-compatible malloc into a single function. Set ENOMEM
80301         when returning NULL.
80302         * m4/malloc.m4: New file.
80303         * doc/functions/malloc.texi: Mention the malloc-posix module.
80304         * lib/stdlib_.h (malloc): New declaration.
80305         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
80306         GNULIB_MALLOC_POSIX and HAVE_MALLOC_POSIX.
80307         * modules/stdlib (stdlib.h): Substitute also GNULIB_MALLOC_POSIX
80308         and HAVE_MALLOC_POSIX.
80310 2007-09-09  Bruno Haible  <bruno@clisp.org>
80312         * modules/realloc-posix: New file.
80313         * modules/realloc (Depends-on): Add realloc-posix.
80314         * lib/realloc.c: Include errno.h.
80315         (rpl_realloc): Merge the requirements of a glibc-compatible realloc
80316         and a POSIX-compatible realloc into a single function. Set ENOMEM
80317         when returning NULL.
80318         * m4/realloc.m4: New file.
80319         * doc/functions/realloc.texi: Mention the realloc-posix module.
80320         * lib/stdlib_.h (realloc): New declaration.
80321         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
80322         GNULIB_REALLOC_POSIX and HAVE_REALLOC_POSIX.
80323         * modules/stdlib (stdlib.h): Substitute also GNULIB_REALLOC_POSIX
80324         and HAVE_REALLOC_POSIX.
80326 2007-09-09  Bruno Haible  <bruno@clisp.org>
80328         * modules/calloc-posix: New file.
80329         * modules/calloc (Depends-on): Add calloc-posix.
80330         * lib/calloc.c: Include errno.h.
80331         (rpl_calloc): Merge the requirements of a glibc-compatible calloc
80332         and a POSIX-compatible calloc into a single function. Set ENOMEM
80333         when returning NULL.
80334         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): New macro.
80335         * doc/functions/calloc.texi: Mention the calloc-posix module.
80336         * lib/stdlib_.h (calloc): New declaration.
80337         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
80338         GNULIB_CALLOC_POSIX and HAVE_CALLOC_POSIX.
80339         * modules/stdlib (stdlib.h): Substitute also GNULIB_CALLOC_POSIX
80340         and HAVE_CALLOC_POSIX.
80342 2007-09-09  Bruno Haible  <bruno@clisp.org>
80344         Allow for modules to show an arbitrary notice.
80345         * modules/TEMPLATE-EXTENDED: Add 'Notice' field.
80346         * gnulib-tool: New option --extract-notice.
80347         (func_usage): Document it.
80348         (sed_extract_prog): Update.
80349         (func_get_notice): New function.
80350         (func_modules_notice): New function.
80351         (func_import, func_create_testdir): Invoke it.
80352         Suggested by Jim Meyering.
80354 2007-09-09  Bruno Haible  <bruno@clisp.org>
80356         * gnulib-tool: New options --verbose, --quiet.
80357         (func_usage): Document them.
80358         (verbose): New variable.
80359         (func_execute_command): New function.
80360         (func_import): Don't show the module list and the file list if
80361         $verbose < 0.
80362         (func_create_testdir): Likewise. Use func_execute_command.
80363         (func_create_megatestdir): Use func_execute_command.
80365 2007-09-08  Bruno Haible  <bruno@clisp.org>
80367         * gnulib-tool (func_import): Prefer rsync over wget when available,
80368         for fetching the PO files.
80370 2007-09-08  Bruno Haible  <bruno@clisp.org>
80372         * posix-modules: New file. Portions copied from gnulib-tool.
80373         * doc/gnulib.texi (POSIX Substitutes Library): New chapter.
80375 2007-09-08  Jim Meyering  <jim@meyering.net>
80377         Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
80378         * lib/fpending.h: Rename from __fpending.h.
80379         * lib/fpending.c: Rename from __fpending.c.
80380         Include "fpending.h", not "__fpending.h".
80381         * lib/__fpending.h, lib/__fpending.c: Remove files.
80382         * modules/fpending (Files): Reflect new file names.
80383         * lib/close-stream.c: Include "fpending.h", not "__fpending.h".
80385 2007-09-08  Bruno Haible  <bruno@clisp.org>
80387         * m4/inttypes-h.m4: Remove stub file.
80389 2007-09-07  Simon Josefsson  <simon@josefsson.org>
80391         * doc/headers/stdint.texi: Discuss #include_next issue.
80393 2007-09-06  Paul Eggert  <eggert@cs.ucla.edu>
80395         * build-aux/bootstrap: Remove obsolete comment about wget --help.
80397 2007-09-06  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
80399         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Fix misspelling
80400         in variable name.
80402 2007-09-03  Jim Meyering  <jim@meyering.net>
80404         New module: git-version-gen.
80405         * modules/git-version-gen: New file.
80407         Import changes from coreutils for bootstrap script.
80409         * build-aux/bootstrap (WGET_COMMAND): Remove code to set this variable.
80411         bootstrap: uses rsync to download the .po files
80412         * build-aux/bootstrap (po_download_command_format): New global.
80413         (download_po_files): Use rsync.
80414         (update_po_files): Don't remove .po files after download,
80415         so future rsync runs can take advantage of the copies.
80417         * build-aux/bootstrap (gnulib_tool): Make sha1sum check quietly.
80419         Solve the unnecessary-.po-file-regeneration problem once and for all.
80420         * build-aux/bootstrap (download_po_files): New function, renamed from
80421         get_translations.  Now, downloads, but doesn't update LINGUAS.
80422         (update_po_files): New function.
80424         bootstrap: Ignore more.
80425         * build-aux/bootstrap (symlink_to_dir): Add a directory name like
80426         uniwidth to e.g., lib/.gitignore.
80427         (slurp): Handle the sys_stat_.h -> sys mapping, too.
80429         * build-aux/bootstrap: New setting: vc_ignore.
80430         (insert_sorted_if_absent): Create $file if absent.
80431         Adapt to new, possibly empty, list: $vc_ignore.
80433         bootstrap: generate more ignorable names
80434         * build-aux/bootstrap (slurp): When generating ignorable names,
80435         also map .sin to .sed, .gperf to .c, and .y to .c.
80437 2007-09-03  Jim Meyering  <jim@meyering.net>
80439         * build-aux/git-version-gen: New file, from coreutils.  For details, see
80440         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=bfe49f506
80442 2007-09-02  Bruno Haible  <bruno@clisp.org>
80444         Fix mis-recognition of 'mcs' on QNX 6.
80445         * m4/csharpcomp.m4 (gt_CSHARPCOMP): Test whether the "mcs --version"
80446         output contains the string "Mono".
80447         * lib/csharpcomp.c (compile_csharp_using_mono): Likewise.
80448         Reported by <kraai@ftbfs.org> at <https://savannah.gnu.org/bugs/?18337>.
80450 2007-09-01  Bruno Haible  <bruno@clisp.org>
80452         Fix collision between uniwidth/* and linebreak modules.
80453         * lib/linebreak.h (locale_charset, uc_width, u8_width, u16_width,
80454         u32_width): Remove declarations.
80455         * lib/linebreak.c: Include uniwidth.h, uniwidth/cjk.h, streq.h.
80456         (u32_mbtouc_unsafe, streq9, streq8, streq7, streq6, streq5, streq4,
80457         streq3, streq2, streq1, streq0): Remove functions.
80458         (STREQ): Remove macro.
80459         (is_cjk_encoding): Remove function.
80460         (nonspacing_table_data, nonspacing_table_ind): Remove constants.
80461         (uc_width, u8_width, u16_width, u32_width): Remove functions.
80462         * modules/linebreak (Depends-on): Add streq, uniwidth/width.
80463         * NEWS: Document the change.
80465 2007-09-01  Bruno Haible  <bruno@clisp.org>
80467         * lib/streq.h: Add double-inclusion guard.
80469 2007-09-01  Karl Berry  <karl@gnu.org>
80471         * MODULES.html.sh: Rename mreadlink_with_size to areadlink_with_size.
80473 2007-08-28  Jim Meyering  <jim@meyering.net>
80475         Rename mreadlink_with_size to areadlink_with_size.
80476         * NEWS: Document the change.
80477         * lib/mreadlink-with-size.c (mreadlink_with_size): Rename this to...
80478         * lib/areadlink-with-size.c (areadlink_with_size): ...this.
80479         * lib/mreadlink.h: Rename this to...
80480         * lib/areadlink.h: ...this.
80481         * modules/mreadlink-with-size: Rename this to...
80482         * modules/areadlink-with-size: ...this.
80483         * lib/canonicalize.c: Reflect the renaming.
80484         * modules/canonicalize: Likewise.
80486 2007-08-26  Bruno Haible  <bruno@clisp.org>
80488         * gnulib-tool (func_import): When deciding which files to remove,
80489         consider also dangling symbolic links.
80490         Reported by Eric Blake.
80492 2007-08-26  Bruno Haible  <bruno@clisp.org>
80494         * gnulib-tool (func_ln_if_changed): Use "test -h", not "test -L".
80496 2007-08-23  Simon Josefsson  <simon@josefsson.org>
80498         * lib/readline.c: Don't include getline.h, the prototype is now
80499         found in stdio.h.
80501 2007-08-23  Jim Meyering  <jim@meyering.net>
80503         Getdelim touchup.
80504         * lib/getdelim.c (getdelim): Don't bother to save/restore errno
80505         around the funlockfile call, since funlockfile never sets errno.
80506         Don't set errno upon failed realloc.
80508 2007-08-22  Eric Blake  <ebb9@byu.net>
80510         Getline touchups.
80511         * lib/getdelim.c (getdelim): Revert regression that required *n to
80512         be 0 when *lineptr is NULL.  Preserve errno across funlockfile.
80513         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Check for declaration of
80514         getdelim, rather than whether implementation is missing.
80515         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise for getline.
80516         * lib/stdio_.h (getline): Also declare if replacement is
80517         required.
80518         * doc/functions/getdelim.texi: New file.
80519         * doc/functions/getline.texi: Likewise.
80520         * doc/gnulib.texi (Function Substitutes): Add new files.
80521         Reported by Bruno Haible.
80523 2007-08-22  Ludovic Courtès  <ludo@gnu.org>
80525         * users.txt: Add Guile.
80527 2007-08-22  Eric Blake  <ebb9@byu.net>
80529         * tests/test-getdelim.c (main): Use remove, not unlink.
80530         * tests/test-getline.c (main): Likewise.
80532         Move getline and getdelim into stdio.h, per POSIX 200x.
80533         * modules/getline (Files): Remove getline.h.
80534         (Depends-on): Add stdio.
80535         (configure.ac): Add module indicator.
80536         * modules/getdelim (Files): Remove getdelim.h.
80537         (Depends-on): Add stdio.
80538         (configure.ac): Add module indicator.
80539         * modules/stdio (Makefile.am): Work with new indicators.
80540         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
80541         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Work with stdio needs.
80542         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
80543         * lib/getdelim.h: Delete.
80544         * lib/getline.h: Delete.
80545         * lib/stdio_.h (getdelim, getline): Declare.
80546         * modules/getdelim-tests: New module.
80547         * modules/getline-tests: Likewise.
80548         * tests/test-getdelim.c: New file.
80549         * tests/test-getline.c: Likewise.
80550         * NEWS: Document the change.
80551         * lib/getline.c: Update choice of header.
80552         * lib/csharpcomp.c: Likewise.
80553         * lib/getpass.c: Likewise.
80554         * lib/javacomp.c: Likewise.
80555         * lib/javaversion.c: Likewise.
80556         * lib/yesno.c: Likewise.
80557         * lib/getdelim.c: Likewise.
80558         (getdelim): Set errno on failure, and avoid memory leak.
80560 2007-08-19  Bruno Haible  <bruno@clisp.org>
80562         * modules/closein (Depends-on): Add freadahead.
80563         * lib/closein.c: Include freadahead.h.
80564         (close_stdin): Skip the fseeko and fflush calls if freadahead(stdin)
80565         is zero.
80567 2007-08-19  Bruno Haible  <bruno@clisp.org>
80569         * modules/freadahead-tests: New file.
80570         * tests/test-freadahead.sh: New file.
80571         * tests/test-freadahead.c: New file.
80573         * modules/freadahead: New file.
80574         * lib/freadahead.h: New file.
80575         * lib/freadahead.c: New file.
80576         * MODULES.html.sh (File stream based Input/Output): Add freadahead,
80577         fbufmode, fpurge, freadable, fwritable.
80579 2007-08-19  Eric Blake  <ebb9@byu.net>
80581         Test yesno in combination with closein.
80582         * lib/yesno.c (yesno): Document use of stdin.
80583         * modules/yesno-tests (Files): New module.
80584         * tests/test-yesno.c (main): New file.
80585         * tests/test-yesno.sh: Likewise.
80587 2007-08-19  Bruno Haible  <bruno@clisp.org>
80589         * lib/fbufmode.c (fbufmode): Add tentative support for Solaris/AMD64.
80590         * lib/fseeko.c (rpl_fseeko): Likewise.
80591         * lib/fseterr.c (fseterr): Likewise.
80593 2007-08-19  Bruno Haible  <bruno@clisp.org>
80595         * tests/test-lseek.c (main): Disable a test for BeOS.
80596         * doc/functions/lseek.texi: Document the BeOS bug.
80598 2007-08-19  Bruno Haible  <bruno@clisp.org>
80599             Eric Blake  <ebb9@byu.net>
80601         * lib/lseek.c: Include <sys/stat.h>.
80602         (rpl_lseek): Add workaround code also for Unix platforms.
80603         Needed for BeOS.
80604         * m4/lseek.m4 (gl_FUNC_LSEEK): When cross-compiling, fail on BeOS.
80605         * doc/functions/lseek.texi: Document BeOS definiency.
80607 2007-08-18  Bruno Haible  <bruno@clisp.org>
80609         * modules/fstrcmp-tests: New file.
80610         * tests/test-fstrcmp.c: New file.
80612 2007-08-18  Bruno Haible  <bruno@clisp.org>
80614         * modules/fstrcmp: New file, from GNU gettext with modifications.
80615         * lib/fstrcmp.h: New file, from GNU gettext.
80616         * lib/fstrcmp.c: New file, from GNU gettext.
80617         * MODULES.html.sh (String handling): Add fstrcmp.
80619 2007-08-18  Bruno Haible  <bruno@clisp.org>
80621         * lib/diffseq.h (struct context): Change type of 'heuristic' field to
80622         'bool'.
80623         (diag, compareseq): Remove const from the ctxt argument.
80624         (USE_HEURISTIC): Undefine at the end.
80626 2007-08-18  Jim Meyering  <jim@meyering.net>
80628         New file: lib/idcache.h
80629         * NEWS: Mention the addition.
80630         * modules/idcache (Files): Add lib/idcache.h
80631         * lib/idcache.c: Include "idcache.h".
80632         Don't include <sys/types.h>.
80633         Add a FIXME comment.
80634         Move file-scoped "static" declarations to the top.
80635         * lib/idcache.h: New file.  Include <sys/types.h> here, instead.
80637 2007-08-17  Bruno Haible  <bruno@clisp.org>
80638         and Paul Eggert  <eggert@cs.ucla.edu>
80640         * MODULES.html.sh: Add diffseq.
80641         * modules/diffseq: New file.
80642         * lib/diffseq.h: New file, from GNU gettext with a few minor changes,
80643         extracted from GNU gettext's fstrcmp.c and GNU diff's analyze.c.
80645 2007-08-15  Paul Eggert  <eggert@cs.ucla.edu>
80647         Import changes from coreutils for bootstrap script.
80649         2007-07-21  Paul Eggert  <eggert@cs.ucla.edu>
80651         * build-aux/bootstrap (slurp): Work even in environments where
80652         "ls" defaults to "ls -A".  Put in a FIXME, though, since the
80653         current code does not slurp files whose names start with ".", and
80654         this looks like it might be a troublesome area.
80656         2007-07-11  Jim Meyering  <jim@meyering.net>
80658         If there's a GPL vN copyright comment, require that N == 3.
80660         2007-07-08  Jim Meyering  <jim@meyering.net>
80662         Run the coreutils-specific code only if tests/Makefile.am.in exists.
80663         * build-aux/bootstrap (mam_template): Move definition out of loop.
80665         Create symlinks for gl/{lib,m4}/*, just as for gnulib/{lib,m4}/*.
80667         * build-aux/bootstrap (symlink_to_dir): Rename function from
80668         symlink_to_gnulib.  Add a directory parameter.  Update all
80669         callers.
80670         (cp_mark_as_generated): Also check for -- and link to -- files in
80671         gl/.
80673         2007-07-08  Jim Meyering  <jim@meyering.net>
80675         Adapt to deeper hierarchy in gnulib.
80676         * build-aux/bootstrap (symlink_to_dir): If the destination
80677         directory doesn't exist, create it. This is required at least for
80678         "lib/uniwidth/cjk.h".
80680         2007-05-15  Jim Meyering  <jim@meyering.net>
80682         * build-aux/bootstrap: Now that generated Makefile.am files
80683         are no longer under version control, they must be created at
80684         bootstrap time.
80686 2007-08-14  Ben Pfaff  <blp@gnu.org>
80688         * lib/count-one-bits.h: Add comments.  From Bruno Haible.
80690 2007-08-14  Paul Eggert  <eggert@cs.ucla.edu>
80692         * lib/count-one-bits.h: Don't include <limits.h>; no longer needed
80693         given the changes below.
80694         (COUNT_ONE_BITS): Use 'verify' rather than 'verify_true'.  Work
80695         even on hosts that have padding bits beyond the supported 64.
80697 2007-08-10  Paul Eggert  <eggert@cs.ucla.edu>
80699         * NEWS: In xstrtol, remove STRTOL_FATAL_ERROR and add xstrtol_fatal.
80700         * lib/xstrtol.h: Don't include exitfail.h; that's now internal to
80701         xstrtol.c.  Include getopt.h, since xstrtol_fatal's signature
80702         depends on it.
80703         (xstrtol_error): Remove.
80704         (xstrtol_fatal): New decl, replacing the functionality of xstrtol_error
80705         but with a different signature.
80706         (ATTRIBUTE_NORETURN, __attribute__): New macros.
80707         * lib/xstrtol-error.c: Include exitfail.h.
80708         (xstrtol_fatal): New function, with a different signature from the
80709         old xstrtol_error, so that the caller need not worry about passing
80710         in an exit status, or about storage management of the option argument.
80711         (xstrtol_error): Now a static function.  Redo signature to
80712         implement xstrtol_fatal.  Output the correct number of hyphens in
80713         front of the option so that the caller need not worry about
80714         storage management.
80715         (N_): New macro.
80716         (_): Remove; not used now.
80717         * modules/xstrtol: Depend on getopt.
80718         * tests/test-xstrtol.c (main): Use new xstrtol_error function instead
80719         of old STRTOL_FATAL_ERROR macro.
80720         * tests/test-xstrtol.sh (t-xstrtol.xo): Adjust to match new behavior
80721         of test program.
80722         * tests/test-xstrtoimax.sh (t-xstrtoimax.xo): Likewise.
80723         * tests/test-xstrtoumax.sh (t-xstrtoumax.xo): Likewise.
80725 2007-08-08  Eric Blake  <ebb9@byu.net>
80727         * lib/xstrtol-error.c: Add missing include.
80729         Move xstrtol messages into gnulib domain, when --pobase is used.
80730         * lib/xstrtol.h (_STRTOL_ERROR): Move messages out of macro...
80731         * lib/xstrtol-error.c (xstrtol_error): ...into new file.
80732         * modules/xstrtol (Files): Distribute new file.
80733         * m4/xstrtol.m4 (gl_XSTRTOL): Build new file.
80734         * lib/xstrtol.c (TESTING_XSTRTO): Move tests...
80735         * tests/test-xstrtol.c: ...into new file.
80736         * tests/test-xstrtoul.c: Also test xstrtoul.
80737         * tests/test-xstrtoimax.c: Also test xstrtoimax.
80738         * tests/test-xstrtoumax.c: Also test xstrtoumax.
80739         * tests/test-xstrtol.sh: Drive the tests.
80740         * tests/test-xstrtoimax.sh: Likewise.
80741         * tests/test-xstrtoumax.sh: Likewise.
80742         * modules/xstrtol-tests: New module.
80743         * modules/xstrtoimax-tests: Likewise.
80744         * modules/xstrtoumax-tests: Likewise.
80746 2007-08-08  Jim Meyering  <jim@meyering.net>
80748         New function: mfile_name_concat.
80749         * lib/filenamecat.c (mfile_name_concat): New function, just like
80750         file_name_concat, but return NULL upon failure rather than exiting
80751         with a diagnostic.
80752         * lib/filenamecat.h: Declare it.
80754 2007-08-07  Bruno Haible  <bruno@clisp.org>
80756         * m4/inttypes.m4 (gl_INTTYPES_H): Use GL_TRIGGER_STDC_LIMIT_MACROS
80757         instead of __STDC_LIMIT_MACROS_TRIGGER. This avoids a redefinition
80758         warning from gcc.
80759         Reported by Eric Blake.
80761 2007-08-07  Simon Josefsson  <simon@josefsson.org>
80763         * modules/crypto/arctwo (License): Use the synonymous term "LGPLv2+".
80764         * modules/crypto/arcfour (License): Likewise.
80765         * modules/crypto/des-tests (License): Likewise.
80766         * modules/crypto/gc-arctwo-tests (License): Likewise.
80767         * modules/crypto/gc-des-tests (License): Likewise.
80768         * modules/crypto/gc-hmac-md5-tests (License): Likewise.
80769         * modules/crypto/gc-hmac-sha1-tests (License): Likewise.
80770         * modules/crypto/gc-md2-tests (License): Likewise.
80771         * modules/crypto/gc-md4-tests (License): Likewise.
80772         * modules/crypto/gc-md5-tests (License): Likewise.
80773         * modules/crypto/gc-pbkdf2-sha1-tests (License): Likewise.
80774         * modules/crypto/gc-rijndael-tests (License): Likewise.
80775         * modules/crypto/gc-sha1-tests (License): Likewise.
80776         * modules/crypto/gc-tests (License): Likewise.
80777         * modules/crypto/hmac-md5 (License): Likewise.
80778         * modules/crypto/hmac-sha1 (License): Likewise.
80779         * modules/crypto/md2-tests (License): Likewise.
80780         * modules/crypto/md4-tests (License): Likewise.
80781         * modules/crypto/md5 (License): Likewise.
80782         * modules/crypto/rijndael (License): Likewise.
80783         * modules/crypto/sha1 (License): Likewise.
80784         * modules/memxor (License): Likewise.
80786 2007-08-06  Paul Eggert  <eggert@cs.ucla.edu>
80787         and Bruno Haible  <bruno@clisp.org>
80789         * NEWS: Describe interface changes to human, xstrtol.
80790         * lib/human.h: Include <xstrtol.h>.
80791         (human_options): Return enum strtol_error, not int.  Remove
80792         bool arg; take int * instead.
80793         * lib/human.c: Don't include "gettext.h".
80794         (_): Remove; no longer used.
80795         Don't include <xstrtol.h>, since human.h does it.
80796         (human_options): Adjust to abovementioned interface changes.
80797         Do not report error to stderr; that's now the caller's
80798         responsibility.
80799         * lib/xstrtol.c (main) [defined TESTING_XSTRTO]: Adjust to
80800         interface change.
80801         * lib/xstrtol.h (_STRTOL_ERROR): Take Option, Arg rather than
80802         Str, Argument_type_string.  All uses changed.  Put " argument"
80803         in diagnostics to make them clearer.  Change wording of suffix
80804         message for clarity.
80805         (STRTOL_FATAL_ERROR): Take Option, Arg rather than Str,
80806         Argument_type_string.
80807         (STRTOL_FATAL_WARN): Remove; no longer used.
80808         * modules/human (Depends-on): Remove gettext-h.
80810 2007-08-06  Simon Josefsson  <simon@josefsson.org>
80812         * build-aux/maint.mk, build-aux/GNUmakefile: Relicense to GPLv3+.
80814 2007-07-31  Bruno Haible  <bruno@clisp.org>
80816         * m4/stdint.m4 (gl_STDINT_H): Test whether WCHAR_MIN and WCHAR_MAX
80817         are defined by <stdint.h> (as opposed to <wchar.h>, as on Dragonfly).
80818         Reported by Joerg Sonnenberger <joerg@britannica.bec.de>.
80820 2007-07-31  Bruno Haible  <bruno@clisp.org>
80822         * lib/fflush.c (rpl_fflush): On BSD systems, use the __SNPT flag.
80823         Suggested by Joerg Sonnenberger <joerg@britannica.bec.de>.
80825 2007-07-30  Bruno Haible  <bruno@clisp.org>
80827         * modules/base64 (License): Use the synonymous term "LGPLv2+".
80828         * modules/c-ctype (License): Likewise.
80829         * modules/c-strcase (License): Likewise.
80830         * modules/check-version (License): Likewise.
80831         * modules/iconv (License): Likewise.
80832         * modules/iconv_open (License): Likewise.
80833         * modules/read-file (License): Likewise.
80834         * modules/striconv (License): Likewise.
80835         * modules/strverscmp (License): Likewise.
80836         * modules/vasprintf (License): Likewise.
80837         * modules/crypto/des (License): Likewise.
80838         * modules/crypto/gc (License): Likewise.
80839         * modules/crypto/gc-arcfour (License): Likewise.
80840         * modules/crypto/gc-arctwo (License): Likewise.
80841         * modules/crypto/gc-des (License): Likewise.
80842         * modules/crypto/gc-hmac-md5 (License): Likewise.
80843         * modules/crypto/gc-hmac-sha1 (License): Likewise.
80844         * modules/crypto/gc-md2 (License): Likewise.
80845         * modules/crypto/gc-md4 (License): Likewise.
80846         * modules/crypto/gc-md5 (License): Likewise.
80847         * modules/crypto/gc-pbkdf2-sha1 (License): Likewise.
80848         * modules/crypto/gc-random (License): Likewise.
80849         * modules/crypto/gc-rijndael (License): Likewise.
80850         * modules/crypto/gc-sha1 (License): Likewise.
80851         * modules/crypto/md2 (License): Likewise.
80852         * modules/crypto/md4 (License): Likewise.
80854 2007-07-30  Jim Meyering  <jim@meyering.net>
80856         * lib/fts.c (fts_read): Upon failure to chdir into a subdirectory,
80857         set fts_info to FTS_DNR, not to FTS_ERR, so that the caller knows
80858         it has valid stat data.  This bug would cause du not to count the
80859         sizes of inaccessible directories.
80860         Patch by Bryan Mason <bmason@redhat.com>, via Jose Maria Plans
80861         in <http://bugzilla.redhat.com/250077>.
80863 2007-07-25  Peter O'Gorman  <peter@pogma.com>
80864             Bruno Haible  <bruno@clisp.org>
80866         * m4/include_next.m4 (gl_INCLUDE_NEXT): Test whether #include_next
80867         really works. Needed because AIX 4.3 "xlc -E" doesn't understand
80868         #include_next, gives a diagnostic about it, but reports no error in
80869         the exit code.
80870         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
80872 2007-07-24  Ben Pfaff  <blp@gnu.org>
80874         Improve name: "count-one-bits" is better than "popcount".
80875         * MODULES.html.sh: Update name.
80876         * lib/popcount.h: Renamed lib/count-one-bits.h.
80877         (popcount): Renamed count_one_bits.
80878         (popcountl): Renamed count_one_bits_l.
80879         (popcountll): Renamed count_one_bits_ll.
80880         * m4/popcount.m4: Renamed m4/count-one-bits.m4.
80881         * modules/popcount: Renamed module/count-one-bits.
80882         * modules/popcount-tests: Renamed module/count-one-bits-tests.
80883         * tests/test-popcount.c: Renamed tests/test-count-one-bits.c.
80885 2007-07-23  Ben Pfaff  <blp@gnu.org>
80887         * lib/popcount.h (popcount32): Reduce size of constants, to allow
80888         better code generation, and add U to large constants to avoid
80889         warnings, in non-GCC case.
80890         Suggested by Bruno Haible.
80892 2007-07-23  Ben Pfaff  <blp@gnu.org>
80894         * lib/popcount.h: Use verify_true instead of if...abort.
80895         * modules/popcount: Depend on verify module.
80896         Suggested by Jim Meyering.
80898 2007-07-23  Bruno Haible  <bruno@clisp.org>
80900         * gnulib-tool (func_import): Create a .cvsignore file also when the
80901         directory is not yet in CVS but the toplevel directory is. When
80902         creating a .cvsignore file, add ".deps" and ".dirstamp" to it.
80903         Reported by Karl Berry.
80905 2007-07-22  Ben Pfaff  <blp@gnu.org>
80907         * lib/popcount.h: Use faster, branchless algorithm for non-GCC
80908         case.
80909         Suggested by Eric Blake.
80911 2007-07-22  Ben Pfaff  <blp@gnu.org>
80913         New module: popcount.
80914         * MODULES.html.sh: Add popcount.
80915         * modules/popcount: New file.
80916         * modules/popcount-tests: New file.
80917         * tests/test-popcount.c: New file.
80918         * lib/popcount.h: New file.
80919         * m4/popcount.m4: New file.
80921 2007-07-22  Paul Eggert  <eggert@cs.ucla.edu>
80923         * build-aux/announce-gen: Update to GPLv3.
80925         * build-aux/config.guess: Update from config.
80927 2007-07-21  Bruno Haible  <bruno@clisp.org>
80929         * lib/error.c (_) [ENABLE_NLS]: Define to gettext.
80930         * lib/verror.c (_) [ENABLE_NLS]: Likewise.
80932 2007-07-20  Jim Meyering  <jim@meyering.net>
80934         * check-module: Diagnose a self-dependency.
80936 2007-07-19  Bruno Haible  <bruno@clisp.org>
80938         * gnulib-tool (func_import): Don't abort if pobase or po_domain is
80939         empty.
80940         Reported by Eric Blake.
80942 2007-07-18  Bruno Haible  <bruno@clisp.org>
80944         * gnulib-tool: New options --po-base, --po-domain.
80945         (func_usage): Document them.
80946         (pobase, po_domain): New variables.
80947         (func_emit_lib_Makefile_am): Augment AM_CPPFLAGS, defining
80948         DEFAULT_TEXT_DOMAIN.
80949         (func_emit_po_Makevars, func_emit_po_POTFILES_in): New functions.
80950         (func_import): Consider pobase and po_domain. Create a po/ directory.
80951         (func_create_testdir): Set pobase and po_domain to empty.
80952         * build-aux/po/Makefile.in.in: New file, from GNU gettext 0.16.1.
80953         * build-aux/po/remove-potcdate.sin: New file, from GNU gettext 0.16.1.
80955 2007-07-18  Bruno Haible  <bruno@clisp.org>
80957         * gnulib-tool (func_get_automake_snippet): Synthesize also an
80958         EXTRA_DIST augmentation for files in build-aux/.
80960 2007-07-16  Bruno Haible  <bruno@clisp.org>
80962         * modules/lseek (License): Use the synonymous term "LGPLv2+".
80963         * modules/getdelim (License): Likewise.
80965 2007-07-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
80967         * modules/arpa_inet (License): Use the synonymous term LGPLv2+.
80968         * modules/d-type (License): Likewise.
80969         * modules/extensions (License): Likewise.
80970         * modules/fnmatch (License): Likewise.
80971         * modules/fseeko (License): Likewise.
80972         * modules/getaddrinfo (License): Likewise.
80973         * modules/getline (License): Likewise.
80974         * modules/getlogin_r (License): Likewise.
80975         * modules/getpass (License): Likewise.
80976         * modules/gettimeofday (License): Likewise.
80977         * modules/glob (License): Likewise.
80978         * modules/inet_ntop (License): Likewise.
80979         * modules/malloc (License): Likewise.
80980         * modules/malloca (License): Likewise.
80981         * modules/memmem (License): Likewise.
80982         * modules/mempcpy (License): Likewise.
80983         * modules/memset (License): Likewise.
80984         * modules/minmax (License): Likewise.
80985         * modules/mktime (License): Likewise.
80986         * modules/netinet_in (License): Likewise.
80987         * modules/pathmax (License): Likewise.
80988         * modules/poll (License): Likewise.
80989         * modules/regex (License): Likewise.
80990         * modules/snprintf (License): Likewise.
80991         * modules/stdbool (License): Likewise.
80992         * modules/stdint (License): Likewise.
80993         * modules/stdio (License): Likewise.
80994         * modules/strcase (License): Likewise.
80995         * modules/strcasestr (License): Likewise.
80996         * modules/strdup (License): Likewise.
80997         * modules/string (License): Likewise.
80998         * modules/strndup (License): Likewise.
80999         * modules/strnlen (License): Likewise.
81000         * modules/strpbrk (License): Likewise.
81001         * modules/strptime (License): Likewise.
81002         * modules/strsep (License): Likewise.
81003         * modules/sys_select (License): Likewise.
81004         * modules/sys_socket (License): Likewise.
81005         * modules/sys_stat (License): Likewise.
81006         * modules/sys_time (License): Likewise.
81007         * modules/time (License): Likewise.
81008         * modules/time_r (License): Likewise.
81009         * modules/timegm (License): Likewise.
81010         * modules/unistd (License): Likewise.
81011         * modules/vsnprintf (License): Likewise.
81012         * modules/wctype (License): Likewise.
81014 2007-07-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
81016         * modules/argz (License): LGPLv2+.
81018 2007-07-15  Karl Berry  <karl@gnu.org>
81020         * doc/gnulib.texi: revise node structure per new fdl.texi.
81022 2007-07-14  Bruno Haible  <bruno@clisp.org>
81024         * lib/uniname/gen-uninames.lisp (main): Emit a "do not edit" line to
81025         the output file.
81026         * lib/uniname/uninames.h: Regenerated.
81028 2007-07-14  Karl Berry  <karl@gnu.org>
81030         * doc/*gpl*.texi, doc/fdl.texi: new versions, consistently
81031         omitting sectioning and index commands.
81033 2007-07-13  Bruno Haible  <bruno@clisp.org>
81035         New gnulib-tool option --more-symlinks.
81036         * gnulib-tool (func_usage): Document --more-symlinks.
81037         (do_copyrights): New variable.
81038         Recognize option --more-symlinks.
81039         (func_import): Don't add a copyright notice transform to
81040         sed_transform_lib_file if do_copyrights is empty.
81042 2007-07-13  Bruno Haible  <bruno@clisp.org>
81044         * lib/vasnprintf.c (decimal_point_char): Define also if
81045         (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE)
81046         && !NEED_PRINTF_DIRECTIVE_A.
81047         Reported by Clemens Koller <clemens.koller@anagramm.de> via
81048         Gary V. Vaughan <gary@gnu.org>.
81050 2007-07-13  Paul Eggert  <eggert@cs.ucla.edu>
81052         * lib/inttypes_.h: Undo previous change, since it was fixed
81053         in a different way in the 2007-07-02 fix to m4/inttypes.m4.
81055 2007-07-13  Bruno Haible  <bruno@clisp.org>
81057         * lib/stdint_.h: Fix typo: _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H was
81058         misspelled as _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H.
81060 2007-07-13  Jim Meyering  <jim@meyering.net>
81062         df: Don't fail for Tru64's "file-on-file mount".
81063         * m4/fsusage.m4 (gl_FSUSAGE): Reject Tru64's buggy statvfs,
81064         so we fall through and use statfs instead.  Details here:
81065         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/10878>
81066         Reported by Albert Chin.
81068 2007-07-13  Bruno Haible  <bruno@clisp.org>
81070         * modules/alloca-opt (License): Use the synonymous term "LGPLv2+".
81071         * modules/configmake (License): Likewise.
81072         * modules/gettext (License): Likewise.
81073         * modules/gettext-h (License): Likewise.
81074         * modules/include_next (License): Likewise.
81075         * modules/link-warning (License): Likewise.
81076         * modules/localcharset (License): Likewise.
81077         * modules/localename (License): Likewise.
81078         * modules/lock (License): Likewise.
81079         * modules/relocatable-lib-lgpl (License): Likewise.
81080         * modules/size_max (License): Likewise.
81081         * modules/vasnprintf (License): Likewise.
81082         * modules/wchar (License): Likewise.
81083         * modules/xsize (License): Likewise.
81085 2007-07-13  Bruno Haible  <bruno@clisp.org>
81087         * gnulib-tool (func_import): Treat LGPLv2 as synonymous to LGPL.
81088         (func_create_testdir): Handle copying terms "GPLv2+" and "LGPLv2+".
81090 2007-07-12  Bruno Haible  <bruno@clisp.org>
81092         * doc/gnulib-intro.texi (Copyright): Clarify the license abbreviations
81093         in the modules files.
81095 2007-07-11  Karl Berry  <karl@gnu.org>
81097         * MODULES.html.sh (func_module): use
81098          sed -e '\|^'"${includefile}"'$|d'
81099          instead of /.../d, to avoid errors on $includefile's containing /.
81101 2007-07-10  Sergey Poznyakoff  <gray@gnu.org.ua>
81103         * gnulib-tool (func_import): Avoid duplication of --avoid
81104         statements
81105         (func_dest_tmpfilename,func_create_testdir): Translate `-' in file
81106         names to `_' in variable names.
81108 2007-07-10  Eric Blake  <ebb9@byu.net>
81110         * lib/version-etc.c (version_etc_va): Default to GPLv3+.
81111         * NEWS: Document this change.
81113 2007-07-08  Bruno Haible  <bruno@clisp.org>
81115         Update to Unicode 5.0.
81116         * lib/uniwidth/width.c (nonspacing_table_data): Add U+00AD,
81117         U+0350..U+035F, U+05A2, U+05BA, U+05C5, U+05C7, U+0600..U+0603,
81118         U+0610..U+0615, U+0656..U+065E, U+07EB..U+07F3, U+0A01, U+0AE2..U+0AE3,
81119         U+0CBC. Remove U+0CBF, U+0CC6. Add U+0CE2..U+0CE3, U+135F,
81120         U+17B4..U+17B5, U+17DD. Remove U+180E. Add U+1920..U+1922,
81121         U+1927..U+192B, U+1932, U+1939..U+193B, U+1A17..U+1A18, U+1B00..U+1B03,
81122         U+1B34, U+1B36..U+1B3A, U+1B3C, U+1B42, U+1B6B..U+1B73, U+1DC0..U+1DCA,
81123         U+1DFE..U+1DFF, U+20EB..U+20EF, U+A802, U+A806, U+A80B, U+A825..U+A826,
81124         U+10A01..U+10A03, U+10A05..U+10A06, U+10A0C..U+10A0F, U+10A38..U+10A3A,
81125         U+10A3F, U+1D242..U+1D244.
81126         (nonspacing_table_ind): Update.
81127         (uc_width): Assign width 0 to U+E0100..U+E01EF. Assign width 1 to
81128         U+4DC0..U+4DFF. Assign width 2 to U+2329..U+232A, U+FE10..U+FE1F.
81130 2007-07-08  Bruno Haible  <bruno@clisp.org>
81132         Update to Unicode 5.0.
81133         * lib/uniname/gen-uninames.lisp (main): Add the range 0x12xxx to the
81134         code transform. Extend the name index field of unicode_name_to_code and
81135         unicode_code_to_name from 16 to 24 bits.
81136         * lib/uniname/uniname.c (unicode_character_name,
81137         unicode_name_character): Add the range 0x12xxx to the code transform.
81138         * lib/uniname/uninames.h: Regenerated.
81139         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.0.
81141 2007-07-07  Bruno Haible  <bruno@clisp.org>
81143         * modules/wcwidth-tests: New file.
81144         * tests/test-wcwidth.c: New file.
81146         Work around MacOS X wcwidth() bug.
81147         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test against MacOS X 10.3 bug.
81148         * lib/wcwidth.c: Include localcharset.h, streq.h, uniwidth.h.
81149         (rpl_wcwidth): Special-case the UTF-8 locales. Fall back to the
81150         original wcwidth in non-UTF-8 locales.
81151         * modules/wcwidth (Depends-on): Add localcharset, streq,
81152         uniwidth/width.
81153         * doc/functions/wcwidth.texi: Update.
81155 2007-07-07  Bruno Haible  <bruno@clisp.org>
81157         * lib/wchar_.h: Include the GL_LINK_WARNING macro.
81158         (wcwidth): New declaration.
81159         * m4/wchar.m4 (gl_WCHAR_MODULE_INDICATOR, gl_WCHAR_H_DEFAULTS): New
81160         macros.
81161         (gl_WCHAR_H): Require gl_WCHAR_H_DEFAULTS. Don't set WCHAR_H to empty
81162         here. Prepare for creating <wchar.h> unconditionally.
81163         * modules/wchar (Depends-on): Add link-warning.
81164         (Makefile.am): Substitute also GNULIB_WCWIDTH, HAVE_DECL_WCWIDTH,
81165         REPLACE_WCWIDTH, and GL_LINK_WARNING.
81166         * lib/wcwidth.h: Remove file.
81167         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gl_WCHAR_H_DEFAULTS. Set
81168         HAVE_DECL_WCWIDTH, REPLACE_WCWIDTH, WCHAR_H.
81169         * modules/wcwidth (Files): Remove lib/wcwidth.h.
81170         (configure.ac): Invoke gl_WCHAR_MODULE_INDICATOR.
81171         (Include): Replace wcwidth.h with <wchar.h>.
81172         * lib/wcwidth.c: Include <wchar.h> instead of wcwidth.h.
81173         * lib/mbchar.h: Don't include wcwidth.h.
81174         * lib/mbswidth.c: Likewise.
81175         * NEWS: Mention the change.
81177 2007-07-07  Bruno Haible  <bruno@clisp.org>
81179         * lib/wcwidth.c: New file, extracted from lib/wcwidth.h.
81180         * lib/wcwidth.h: Don't include wctype.h. Replace inline function
81181         definition with an external declaration.
81182         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Use wcwidth.c when wcwidth is not
81183         defined as a function. Remove AC_C_INLINE requirement.
81184         * modules/wcwidth (Files): Add lib/wcwidth.c.
81185         (Makefile.am): Remove redundant statement.
81187 2007-07-07  Bruno Haible  <bruno@clisp.org>
81189         * MODULES.html.sh (Unicode string functions): Add the new modules.
81191         * tests/uniwidth/test-u32-strwidth.c: New file.
81192         * modules/uniwidth/u32-strwidth-tests: New file.
81194         * lib/uniwidth/u32-strwidth.c: New file.
81195         * modules/uniwidth/u32-strwidth: New file.
81197         * tests/uniwidth/test-u16-strwidth.c: New file.
81198         * modules/uniwidth/u16-strwidth-tests: New file.
81200         * lib/uniwidth/u16-strwidth.c: New file.
81201         * modules/uniwidth/u16-strwidth: New file.
81203         * tests/uniwidth/test-u8-strwidth.c: New file.
81204         * modules/uniwidth/u8-strwidth-tests: New file.
81206         * lib/uniwidth/u8-strwidth.c: New file.
81207         * modules/uniwidth/u8-strwidth: New file.
81209         * tests/uniwidth/test-u32-width.c: New file.
81210         * modules/uniwidth/u32-width-tests: New file.
81212         * lib/uniwidth/u32-width.c: New file.
81213         * modules/uniwidth/u32-width: New file.
81215         * tests/uniwidth/test-u16-width.c: New file.
81216         * modules/uniwidth/u16-width-tests: New file.
81218         * lib/uniwidth/u16-width.c: New file.
81219         * modules/uniwidth/u16-width: New file.
81221         * tests/uniwidth/test-u8-width.c: New file.
81222         * modules/uniwidth/u8-width-tests: New file.
81224         * lib/uniwidth/u8-width.c: New file.
81225         * modules/uniwidth/u8-width: New file.
81227         * tests/uniwidth/test-uc_width.c: New file.
81228         * modules/uniwidth/width-tests: New file.
81230         * lib/uniwidth/width.c: New file, from GNU libiconv.
81231         * lib/uniwidth/cjk.h: New file, from GNU libiconv.
81232         * modules/uniwidth/width: New file.
81234         * lib/uniwidth.h: New file, from GNU libiconv.
81235         * modules/uniwidth/base: New file.
81237 2007-07-07  Bruno Haible  <bruno@clisp.org>
81239         * lib/uniname.h: New file, from GNU gettext.
81240         * lib/uniname/gen-uninames.lisp: New file, from GNU gettext.
81241         * lib/uniname/uninames.h: New file, from GNU gettext.
81242         * lib/uniname/uniname.c: New file, from GNU gettext.
81243         * tests/uniname/test-uninames.sh: New file.
81244         * tests/uniname/test-uninames.c: New file, from GNU gettext.
81245         * tests/uniname/UnicodeDataNames.txt: New file, from GNU gettext.
81246         * modules/uniname/base: New file.
81247         * modules/uniname/uniname: New file.
81248         * modules/uniname/uniname-tests: New file.
81249         * MODULES.html.sh (Unicode string functions): Add the new modules.
81251 2007-07-06  Bruno Haible  <bruno@clisp.org>
81253         * doc/Makefile (TEXI2HTML): Specify a --reference-limit.
81255 2007-07-06  Bruno Haible  <bruno@clisp.org>
81257         * lib/sys_time_.h: Use a recursion-safe inclusion guard rather than
81258         a split double-inclusion guard. Needed for cygwin, where <sys/time.h>
81259         includes <cygwin/sys_time.h> which includes <sys/select.h> which
81260         include <sys/time.h>.
81261         Reported by Eric Blake.
81263 2007-07-06  Eric Blake  <ebb9@byu.net>
81265         Fix testing canonicalize on cygwin.
81266         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
81267         Revert patch from 2007-06-19.
81268         * tests/test-canonicalize-lgpl.c (main): Instead, skip test when
81269         canonicalize module is also in use.
81270         * tests/test-canonicalize.c: New file.
81271         * tests/test-canonicalize.sh: Likewise.
81272         * modules/canonicalize-tests: Likewise.
81274 2007-07-06  Jim Meyering  <jim@meyering.net>
81276         * lib/getugroups.c (getugroups): Detect getgrent failure.
81277         Adjust comment to reflect reality: this function may return -1.
81279 2007-07-05  Sergey Poznyakoff  <gray@gnu.org.ua>
81281         * build-aux/bootstrap (TP_URL,get_translations): Update to use
81282         the new TP address.
81283         (usage): Fix typo
81284         (gnulib_mk): New variable.
81286 2007-07-05  Jim Meyering  <jim@meyering.net>
81288         Don't let endgrent clobber errno, no matter how improbable.
81289         * lib/getugroups.c (getugroups): Save and restore errno around
81290         endgrent call.
81292         Close the group DB even when failing with 2^31 or more members.
81293         * lib/getugroups.c (getugroups): Don't return without calling endgrent.
81295 2007-07-04  Jim Meyering  <jim@meyering.net>
81297         * lib/getugroups.h: New file.
81298         * lib/getugroups.c: Include "getugroups.h".
81299         Remove uses of "register" keyword.
81300         Move local variable, "cp", down into scope where used.
81301         Give "username" parameter the "const" attribute.
81302         * modules/getugroups (Files): Add lib/getugroups.h
81304 2007-07-04  Karl Berry  <karl@gnu.org>
81306         * MODULES.html.sh (func_all_modules): Complete rename of
81307         gpl/lgpl to gpl-2.0 and lgpl-2.1, and add gpl-3.0.
81309 2007-07-02  Bruno Haible  <bruno@clisp.org>
81311         * m4/inttypes.m4 (gl_INTTYPES_H): Define __STDC_LIMIT_MACROS in C++
81312         mode, when inttypes.h comes from gnulib.
81313         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
81315 2007-07-02  Simon Josefsson  <simon@josefsson.org>
81317         * NEWS: Mention lgpl module name change.
81319         * modules/lgpl-2.1: Renamed from lgpl.
81321         * NEWS: Mention gpl module name change.
81323         * modules/gpl-3.0: New file, based on gpl-2.0.
81325         * modules/gpl-2.0: Renamed from gpl.
81327         * modules/gpl: Fix filename, doc/gpl.texi is now found at
81328         doc/gpl-2.0.texi.
81330 2007-07-02  Paul Eggert  <eggert@cs.ucla.edu>
81332         * lib/inttypes_.h [defined __cplusplus&&!defined __STDC_LIMIT_MACROS]:
81333         #define __STDC_LIMIT_MACROS temporarily while including
81334         <stdint.h>, so that __STDC_LIMIT_MACROS is defined.
81335         Problem reported by Joel E. Denny in
81336         <http://lists.gnu.org/archive/html/bug-gnulib/2007-07/msg00008.html>.
81338 2007-07-01  Bruno Haible  <bruno@clisp.org>
81340         * lib/unistdio.h: New file.
81341         * lib/unistdio/u-asnprintf.h: New file.
81342         * lib/unistdio/u-asprintf.h: New file.
81343         * lib/unistdio/u-printf-args.c: New file.
81344         * lib/unistdio/u-printf-args.h: New file.
81345         * lib/unistdio/u-printf-parse.h: New file.
81346         * lib/unistdio/u-snprintf.h: New file.
81347         * lib/unistdio/u-sprintf.h: New file.
81348         * lib/unistdio/u-vasprintf.h: New file.
81349         * lib/unistdio/u-vsnprintf.h: New file.
81350         * lib/unistdio/u-vsprintf.h: New file.
81351         * lib/unistdio/ulc-asnprintf.c: New file.
81352         * lib/unistdio/ulc-asprintf.c: New file.
81353         * lib/unistdio/ulc-fprintf.c: New file, based on lib/fprintf.c.
81354         * lib/unistdio/ulc-printf-parse.c: New file.
81355         * lib/unistdio/ulc-snprintf.c: New file.
81356         * lib/unistdio/ulc-sprintf.c: New file.
81357         * lib/unistdio/ulc-vasnprintf.c: New file.
81358         * lib/unistdio/ulc-vasprintf.c: New file.
81359         * lib/unistdio/ulc-vfprintf.c: New file, based on lib/vfprintf.c.
81360         * lib/unistdio/ulc-vsnprintf.c: New file.
81361         * lib/unistdio/ulc-vsprintf.c: New file.
81362         * lib/unistdio/u8-asnprintf.c: New file.
81363         * lib/unistdio/u8-asprintf.c: New file.
81364         * lib/unistdio/u8-printf-parse.c: New file.
81365         * lib/unistdio/u8-snprintf.c: New file.
81366         * lib/unistdio/u8-sprintf.c: New file.
81367         * lib/unistdio/u8-vasnprintf.c: New file.
81368         * lib/unistdio/u8-vasprintf.c: New file.
81369         * lib/unistdio/u8-vsnprintf.c: New file.
81370         * lib/unistdio/u8-vsprintf.c: New file.
81371         * lib/unistdio/u8-u8-asnprintf.c: New file.
81372         * lib/unistdio/u8-u8-asprintf.c: New file.
81373         * lib/unistdio/u8-u8-snprintf.c: New file.
81374         * lib/unistdio/u8-u8-sprintf.c: New file.
81375         * lib/unistdio/u8-u8-vasnprintf.c: New file.
81376         * lib/unistdio/u8-u8-vasprintf.c: New file.
81377         * lib/unistdio/u8-u8-vsnprintf.c: New file.
81378         * lib/unistdio/u8-u8-vsprintf.c: New file.
81379         * lib/unistdio/u16-asnprintf.c: New file.
81380         * lib/unistdio/u16-asprintf.c: New file.
81381         * lib/unistdio/u16-printf-parse.c: New file.
81382         * lib/unistdio/u16-snprintf.c: New file.
81383         * lib/unistdio/u16-sprintf.c: New file.
81384         * lib/unistdio/u16-vasnprintf.c: New file.
81385         * lib/unistdio/u16-vasprintf.c: New file.
81386         * lib/unistdio/u16-vsnprintf.c: New file.
81387         * lib/unistdio/u16-vsprintf.c: New file.
81388         * lib/unistdio/u16-u16-asnprintf.c: New file.
81389         * lib/unistdio/u16-u16-asprintf.c: New file.
81390         * lib/unistdio/u16-u16-snprintf.c: New file.
81391         * lib/unistdio/u16-u16-sprintf.c: New file.
81392         * lib/unistdio/u16-u16-vasnprintf.c: New file.
81393         * lib/unistdio/u16-u16-vasprintf.c: New file.
81394         * lib/unistdio/u16-u16-vsnprintf.c: New file.
81395         * lib/unistdio/u16-u16-vsprintf.c: New file.
81396         * lib/unistdio/u32-asnprintf.c: New file.
81397         * lib/unistdio/u32-asprintf.c: New file.
81398         * lib/unistdio/u32-printf-parse.c: New file.
81399         * lib/unistdio/u32-snprintf.c: New file.
81400         * lib/unistdio/u32-sprintf.c: New file.
81401         * lib/unistdio/u32-vasnprintf.c: New file.
81402         * lib/unistdio/u32-vasprintf.c: New file.
81403         * lib/unistdio/u32-vsnprintf.c: New file.
81404         * lib/unistdio/u32-vsprintf.c: New file.
81405         * lib/unistdio/u32-u32-asnprintf.c: New file.
81406         * lib/unistdio/u32-u32-asprintf.c: New file.
81407         * lib/unistdio/u32-u32-snprintf.c: New file.
81408         * lib/unistdio/u32-u32-sprintf.c: New file.
81409         * lib/unistdio/u32-u32-vasnprintf.c: New file.
81410         * lib/unistdio/u32-u32-vasprintf.c: New file.
81411         * lib/unistdio/u32-u32-vsnprintf.c: New file.
81412         * lib/unistdio/u32-u32-vsprintf.c: New file.
81413         * tests/unistdio/test-ulc-asnprintf1.c: New file.
81414         * tests/unistdio/test-ulc-asnprintf1.h: New file.
81415         * tests/unistdio/test-ulc-printf1.h: New file.
81416         * tests/unistdio/test-ulc-vasnprintf1.c: New file.
81417         * tests/unistdio/test-ulc-vasnprintf2.c: New file.
81418         * tests/unistdio/test-ulc-vasnprintf2.sh: New file.
81419         * tests/unistdio/test-ulc-vasnprintf3.c: New file.
81420         * tests/unistdio/test-ulc-vasnprintf3.sh: New file.
81421         * tests/unistdio/test-ulc-vasprintf1.c: New file.
81422         * tests/unistdio/test-ulc-vsnprintf1.c: New file.
81423         * tests/unistdio/test-ulc-vsprintf1.c: New file.
81424         * tests/unistdio/test-u8-asnprintf1.c: New file.
81425         * tests/unistdio/test-u8-asnprintf1.h: New file.
81426         * tests/unistdio/test-u8-printf1.h: New file.
81427         * tests/unistdio/test-u8-vasnprintf1.c: New file.
81428         * tests/unistdio/test-u8-vasnprintf2.c: New file.
81429         * tests/unistdio/test-u8-vasnprintf2.sh: New file.
81430         * tests/unistdio/test-u8-vasnprintf3.c: New file.
81431         * tests/unistdio/test-u8-vasnprintf3.sh: New file.
81432         * tests/unistdio/test-u8-vasprintf1.c: New file.
81433         * tests/unistdio/test-u8-vsnprintf1.c: New file.
81434         * tests/unistdio/test-u8-vsprintf1.c: New file.
81435         * tests/unistdio/test-u16-asnprintf1.c: New file.
81436         * tests/unistdio/test-u16-asnprintf1.h: New file.
81437         * tests/unistdio/test-u16-printf1.h: New file.
81438         * tests/unistdio/test-u16-vasnprintf1.c: New file.
81439         * tests/unistdio/test-u16-vasnprintf2.c: New file.
81440         * tests/unistdio/test-u16-vasnprintf2.sh: New file.
81441         * tests/unistdio/test-u16-vasnprintf3.c: New file.
81442         * tests/unistdio/test-u16-vasnprintf3.sh: New file.
81443         * tests/unistdio/test-u16-vasprintf1.c: New file.
81444         * tests/unistdio/test-u16-vsnprintf1.c: New file.
81445         * tests/unistdio/test-u16-vsprintf1.c: New file.
81446         * tests/unistdio/test-u32-asnprintf1.c: New file.
81447         * tests/unistdio/test-u32-asnprintf1.h: New file.
81448         * tests/unistdio/test-u32-printf1.h: New file.
81449         * tests/unistdio/test-u32-vasnprintf1.c: New file.
81450         * tests/unistdio/test-u32-vasnprintf2.c: New file.
81451         * tests/unistdio/test-u32-vasnprintf2.sh: New file.
81452         * tests/unistdio/test-u32-vasnprintf3.c: New file.
81453         * tests/unistdio/test-u32-vasnprintf3.sh: New file.
81454         * tests/unistdio/test-u32-vasprintf1.c: New file.
81455         * tests/unistdio/test-u32-vsnprintf1.c: New file.
81456         * tests/unistdio/test-u32-vsprintf1.c: New file.
81457         * modules/unistdio/base: New file.
81458         * modules/unistdio/u-printf-args: New file.
81459         * modules/unistdio/ulc-asnprintf: New file.
81460         * modules/unistdio/ulc-asprintf: New file.
81461         * modules/unistdio/ulc-fprintf: New file.
81462         * modules/unistdio/ulc-printf-parse: New file.
81463         * modules/unistdio/ulc-snprintf: New file.
81464         * modules/unistdio/ulc-sprintf: New file.
81465         * modules/unistdio/ulc-vasnprintf: New file.
81466         * modules/unistdio/ulc-vasprintf: New file.
81467         * modules/unistdio/ulc-vfprintf: New file.
81468         * modules/unistdio/ulc-vsnprintf: New file.
81469         * modules/unistdio/ulc-vsprintf: New file.
81470         * modules/unistdio/u8-asnprintf: New file.
81471         * modules/unistdio/u8-asprintf: New file.
81472         * modules/unistdio/u8-printf-parse: New file.
81473         * modules/unistdio/u8-snprintf: New file.
81474         * modules/unistdio/u8-sprintf: New file.
81475         * modules/unistdio/u8-vasnprintf: New file.
81476         * modules/unistdio/u8-vasprintf: New file.
81477         * modules/unistdio/u8-vsnprintf: New file.
81478         * modules/unistdio/u8-vsprintf: New file.
81479         * modules/unistdio/u8-u8-asnprintf: New file.
81480         * modules/unistdio/u8-u8-asprintf: New file.
81481         * modules/unistdio/u8-u8-snprintf: New file.
81482         * modules/unistdio/u8-u8-sprintf: New file.
81483         * modules/unistdio/u8-u8-vasnprintf: New file.
81484         * modules/unistdio/u8-u8-vasprintf: New file.
81485         * modules/unistdio/u8-u8-vsnprintf: New file.
81486         * modules/unistdio/u8-u8-vsprintf: New file.
81487         * modules/unistdio/u16-asnprintf: New file.
81488         * modules/unistdio/u16-asprintf: New file.
81489         * modules/unistdio/u16-printf-parse: New file.
81490         * modules/unistdio/u16-snprintf: New file.
81491         * modules/unistdio/u16-sprintf: New file.
81492         * modules/unistdio/u16-vasnprintf: New file.
81493         * modules/unistdio/u16-vasprintf: New file.
81494         * modules/unistdio/u16-vsnprintf: New file.
81495         * modules/unistdio/u16-vsprintf: New file.
81496         * modules/unistdio/u16-u16-asnprintf: New file.
81497         * modules/unistdio/u16-u16-asprintf: New file.
81498         * modules/unistdio/u16-u16-snprintf: New file.
81499         * modules/unistdio/u16-u16-sprintf: New file.
81500         * modules/unistdio/u16-u16-vasnprintf: New file.
81501         * modules/unistdio/u16-u16-vasprintf: New file.
81502         * modules/unistdio/u16-u16-vsnprintf: New file.
81503         * modules/unistdio/u16-u16-vsprintf: New file.
81504         * modules/unistdio/u32-asnprintf: New file.
81505         * modules/unistdio/u32-asprintf: New file.
81506         * modules/unistdio/u32-printf-parse: New file.
81507         * modules/unistdio/u32-snprintf: New file.
81508         * modules/unistdio/u32-sprintf: New file.
81509         * modules/unistdio/u32-vasnprintf: New file.
81510         * modules/unistdio/u32-vasprintf: New file.
81511         * modules/unistdio/u32-vsnprintf: New file.
81512         * modules/unistdio/u32-vsprintf: New file.
81513         * modules/unistdio/u32-u32-asnprintf: New file.
81514         * modules/unistdio/u32-u32-asprintf: New file.
81515         * modules/unistdio/u32-u32-snprintf: New file.
81516         * modules/unistdio/u32-u32-sprintf: New file.
81517         * modules/unistdio/u32-u32-vasnprintf: New file.
81518         * modules/unistdio/u32-u32-vasprintf: New file.
81519         * modules/unistdio/u32-u32-vsnprintf: New file.
81520         * modules/unistdio/u32-u32-vsprintf: New file.
81521         * modules/unistdio/ulc-asnprintf-tests: New file.
81522         * modules/unistdio/ulc-vasnprintf-tests: New file.
81523         * modules/unistdio/ulc-vasprintf-tests: New file.
81524         * modules/unistdio/ulc-vsnprintf-tests: New file.
81525         * modules/unistdio/ulc-vsprintf-tests: New file.
81526         * modules/unistdio/u8-asnprintf-tests: New file.
81527         * modules/unistdio/u8-vasnprintf-tests: New file.
81528         * modules/unistdio/u8-vasprintf-tests: New file.
81529         * modules/unistdio/u8-vsnprintf-tests: New file.
81530         * modules/unistdio/u8-vsprintf-tests: New file.
81531         * modules/unistdio/u16-asnprintf-tests: New file.
81532         * modules/unistdio/u16-vasnprintf-tests: New file.
81533         * modules/unistdio/u16-vasprintf-tests: New file.
81534         * modules/unistdio/u16-vsnprintf-tests: New file.
81535         * modules/unistdio/u16-vsprintf-tests: New file.
81536         * modules/unistdio/u32-asnprintf-tests: New file.
81537         * modules/unistdio/u32-vasnprintf-tests: New file.
81538         * modules/unistdio/u32-vasprintf-tests: New file.
81539         * modules/unistdio/u32-vsnprintf-tests: New file.
81540         * modules/unistdio/u32-vsprintf-tests: New file.
81541         * MODULES.html.sh (Unicode string functions): Add the new modules.
81543 2007-07-01  Bruno Haible  <bruno@clisp.org>
81545         * lib/sprintf.c (sprintf): Limit the available length estimation,
81546         to avoid address wraparound.
81547         * lib/vsprintf.c (vsprintf): Likewise.
81548         * modules/sprintf-posix (Dependencies): Add stdint.
81549         * modules/vsprintf-posix (Dependencies): Likewise.
81551 2007-07-01  Bruno Haible  <bruno@clisp.org>
81553         * gnulib-tool (self_abspathname): Determine PATH_SEPARATOR and handle
81554         Windows PATH as well. Conservative double-quoting. Comments.
81556 2007-07-01  Bruno Haible  <bruno@clisp.org>
81557             Eric Blake  <ebb9@byu.net>
81558             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
81560         * gnulib-tool (self_abspathname): Fix algorithm to cope with
81561         empty components in $PATH, denoting '.'.
81563 2007-07-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
81565         * gnulib-tool: Fix indentation.
81566         (func_create_megatestdir): Likewise.
81567         Report by Bruno Haible.
81569 2007-06-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
81571         Sync from Automake.
81572         * build-aux/gnupload: Fix shell portability issues with for loops.
81573         Report by Karl Berry.
81575 2007-06-29  Simon Josefsson  <simon@josefsson.org>
81577         * build-aux/maint.mk (POURL): Use translationproject.org.
81579 2007-06-27  Simon Josefsson  <simon@josefsson.org>
81580             Bruno Haible  <bruno@clisp.org>
81582         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Require gl_HEADER_SYS_SOCKET
81583         before using HAVE_WS2TCPIP_H. Check for gai_strerror through an
81584         explicit link test, rather than AC_REPLACE_FUNCS - for mingw.
81585         (gl_PREREQ_GETADDRINFO): Require gl_HEADER_SYS_SOCKET before using
81586         HAVE_SYS_SOCKET_H and HAVE_WS2TCPIP_H.
81588 2007-06-27  Bruno Haible  <bruno@clisp.org>
81590         * build-aux/config.rpath: Upgrade to libtool-1.5.24.
81591         * build-aux/config.libpath: Upgrade to libtool-1.5.24.
81593 2007-06-26  Karl Berry  <karl@gnu.org>
81595         * MODULES.html.sh: remove xreadlink-with-size.
81597 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
81599         * lib/time_.h: Port to Solaris 8 with Sun Studio 11, using a
81600         method that I hope also handles the double-include problem noted
81601         by Bruno Haible in
81602         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00186.html>.
81604 2007-06-23  Bruno Haible  <bruno@clisp.org>
81606         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
81607         Don't let the 'mostlyclean' target fail if the last subdirectory could
81608         not be removed.
81609         Reported by Karl Berry.
81611 2007-06-23  Bruno Haible  <bruno@clisp.org>
81613         * gnulib-tool (echo): Add a speedier workaround for ksh.
81614         * tests/test-echo.sh: Likewise.
81616 2007-06-23  Bruno Haible  <bruno@clisp.org>
81618         * gnulib-tool (echo): Add workarounds also for bash versions < 2.04.
81619         * tests/test-echo.sh: Likewise.
81621 2007-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
81623         * gnulib-tool (IFS): Initialize early, so we don't set it to
81624         empty later.
81625         (self_abspathname): Rewrite algorithm to set it, reindent.
81626         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
81627         (func_create_megatestdir): Merge some sed scripts.
81629 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
81631         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Check some typos
81632         exposed by Sun Studio 11 cc on Solaris 8.
81634 2007-06-22  Bruno Haible  <bruno@clisp.org>
81636         * gnulib-tool (echo): Ensure the echo primitive does not interpret
81637         backslashes.
81638         * tests/test-echo.sh: New file.
81640 2007-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
81642         * gnulib-tool (func_add_or_update, func_create_testdir): Do not
81643         simplify `sed_replace_build_aux' scripts, they are portable but
81644         echoing them with `echo' is not.
81645         Report and analysis by Fernando Ferreira <fernando.prog@netcabo.pt>.
81647 2007-06-21  Karl Berry  <karl@gnu.org>
81649         * config/srclist.txt: guess we can't handle the licenses via
81650         srclist at the moment.
81652 2007-06-21  Paul Eggert  <eggert@cs.ucla.edu>
81654         * MODULES.html.sh: Add include_next.
81655         * modules/include_next: New file.
81657 2007-06-20  Paul Eggert  <eggert@cs.ucla.edu>
81659         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
81660         INCLUDE_NEXT.
81661         (gl_CHECK_NEXT_HEADERS): New macro.
81662         * m4/fcntl_h.m4 (gl_FCNTL_H): use gl_CHECK_NEXT_HEADERS instead of
81663         the obsolescent gl_ABSOLUTE_HEADER.
81664         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
81665         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
81666         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
81667         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
81668         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
81669         * m4/math_h.m4 (gl_MATH_H): Likewise.
81670         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
81671         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
81672         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
81673         * m4/stdint.m4 (gl_STDINT_H): Likewise.
81674         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
81675         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
81676         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
81677         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
81678         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
81679         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
81680         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
81681         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
81682         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
81683         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
81684         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
81685         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
81686         * m4/inttypes.m4 (gl_INTTYPES_H): Define
81687         _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H to avoid the problem of unclean
81688         builds, since ABSOLUTE_INTTYPES_H is no longer being defined.
81689         * m4/stdint.m4 (gl_STDINT_H): Likewise, for
81690         _GL_JUST_INCLUDE_SYSTEM_STDINT_H.
81691         * lib/fcntl_.h: Use @INCLUDE_NEXT@ @NEXT_foo_H@
81692         rather than @HAVE_INCLUDE_NEXT@ and @ABSOLUTE_foo_H@.
81693         * lib/float_.h: Likewise.
81694         * lib/inttypes_.h: Likewise.
81695         * lib/math_.h: Likewise.
81696         * lib/search_.h: Likewise.
81697         * lib/signal_.h: Likewise.
81698         * lib/stdint_.h: Likewise.
81699         * lib/stdio_.h: Likewise.
81700         * lib/stdlib_.h: Likewise.
81701         * lib/string_.h: Likewise.
81702         * lib/sys_stat_.h: Likewise.
81703         * lib/sys_time_.h: Likewise.
81704         * lib/time_.h: Likewise.
81705         * lib/unistd_.h: Likewise.
81706         * lib/wchar_.h: Likewise.
81707         * lib/wctype_.h: Likewise.
81708         * lib/dirent_.h: Likewise.
81709         * lib/iconv_.h: Likewise.
81710         * lib/locale_.h: Likewise.
81711         * lib/netinet_in_.h: Likewise.
81712         * lib/sys_select_.h: Likewise.
81713         * lib/sys_socket_.h: Likewise.
81714         * lib/sysexits_.h: Likewise.
81715         * modules/fcntl (Depends-on): Depend on include_next, not
81716         absolute_header.
81717         (Makefile): Substitute INCLUDE_NEXT and NEXT_foo_H, not
81718         HAVE_INCLUDE_NEXT and ABSOLUTE_foo_H.
81719         * modules/fchdir: Likewise.
81720         * modules/float: Likewise.
81721         * modules/iconv_open: Likewise.
81722         * modules/inttypes: Likewise.
81723         * modules/locale: Likewise.
81724         * modules/math: Likewise.
81725         * modules/netinet_in: Likewise.
81726         * modules/search: Likewise.
81727         * modules/signal: Likewise.
81728         * modules/stdint: Likewise.
81729         * modules/stdio: Likewise.
81730         * modules/stdlib: Likewise.
81731         * modules/string: Likewise.
81732         * modules/sys_select: Likewise.
81733         * modules/sys_socket: Likewise.
81734         * modules/sys_stat: Likewise.
81735         * modules/sys_time: Likewise.
81736         * modules/sysexits: Likewise.
81737         * modules/time: Likewise.
81738         * modules/unistd: Likewise.
81739         * modules/wchar: Likewise.
81740         * modules/wctype: Likewise.
81741         * modules/sys_stat: Change maintainer to "all".
81742         * modules/unistd: Likewise.
81744 2007-06-20  Karl Berry  <karl@gnu.org>
81746         * config/srclist.txt: track www changes in license files.
81748 2007-06-20  Sergey Poznyakoff  <gray@gnu.org.ua>
81750         * build-aux/bootstrap: Remove stray dot.
81751         Make sure build_aux settings are honored when linking
81752         gnulib_extra_files.
81754 2007-06-19  Eric Blake  <ebb9@byu.net>
81756         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
81757         Allow compilation on cygwin.
81759 2007-06-19  Jim Meyering  <jim@meyering.net>
81761         xreadlink-with-size: Remove module.  No longer used.
81762         Ex-callers now use xreadlink or mreadlink-with-size.
81763         * modules/xreadlink-with-size: Remove module.
81764         * lib/xreadlink-with-size.c: Remove file.
81765         * lib/xreadlink.h (xreadlink_with_size): Remove prototype.
81766         (xreadlink): Remove inaccurate comment.  The one in xreadlink.c,
81767         just before the function definition *is* accurate.
81769         Eliminate one way canonicalize_filename_mode could exit.
81770         * lib/canonicalize.c (canonicalize_filename_mode):
81771         Use mreadlink_with_size, not xreadlink_with_size.
81773 2007-06-18  Paul Eggert  <eggert@cs.ucla.edu>
81775         Detect porting problems to FreeBSD/arm, which has time_t wider than
81776         long int.  Original problem reported for GNU diff by Xin Li in
81777         <http://lists.gnu.org/archive/html/bug-gnu-utils/2007-06/msg00091.html>.
81778         * modules/getdate (Depends-on): Add intprops, verify.
81779         * lib/getdate.y: Include intprops.h, verify.h.  Verify that time_t
81780         is an integer type no wider than long int.
81782 2007-06-18  Jim Meyering  <jim@meyering.net>
81784         New module: mreadlink-with-size.
81785         * MODULES.html.sh: Add mreadlink-with-size.
81786         * modules/mreadlink-with-size: New module
81787         * modules/canonicalize (Depends-on): Depend on mreadlink-with-size,
81788         not xreadlink-with-size.
81789         * lib/mreadlink-with-size.c, lib/mreadlink.h: New files.
81791 2007-06-16  Bruno Haible  <bruno@clisp.org>
81793         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Catch the MacOS X 10.4 bug.
81794         * doc/functions/frexpl.texi: Document the MacOS X 10.4 bug.
81795         Reported by Gary V. Vaughan <gary@gnu.org>.
81797 2007-06-15  Paul Eggert  <eggert@cs.ucla.edu>
81799         Revamp lchown so that it lives in unistd.h where it belongs.
81800         * lib/lchown.h: Remove.
81801         * lib/dirchownmod.c: Don't include lib/lchown.h.
81802         * lib/fchownat.c: Likewise.
81803         * lib/openat.c: Likewise.
81804         * lib/lchown.c (REPLACE_CHOWN): Define to 0 if the system chown
81805         does not follow symlinks.
81806         (EOPNOTSUPP): Define if not defined.
81807         * lib/unistd_.h (chown): Do not replace if REPLADE_CHOWN
81808         is defined to 0.
81809         (lchown): New decl.
81810         * m4/lchown.m4 (gl_FUNC_LCHOWN): Require gl_UNISTD_H_DEFAULTS.
81811         Do not check for lchown decl.
81812         Set REPLACE_LCHOWN.
81813         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set GNULIB_LCHOWN,
81814         REPLACE_LCHOWN.
81815         * modules/chown: Make it clear it follows symlinks.
81816         * modules/lchown: Make it clear it doesn't follow symlinks.
81817         (Files): Remove lib/lchown.h
81818         (Depends-on): Add unistd.
81819         (configure.ac): Add gl_UNISTD_MODULE_INDICATOR([lchown]).
81820         (Include): Include <unistd.h>, not "lchown.h".
81821         * modules/unistd (unistd.h): Substitude GNULIB_LCHOWN and
81822         REPLACE_LCHOWN.
81824 2007-06-15  Jim Meyering  <jim@meyering.net>
81826         Change license (GPL to LGPL) of fsusage and dependents.
81827         * modules/fsusage (License): Change to LGPL.
81828         * modules/full-read (License): Likewise.
81829         * modules/full-write (License): Likewise.
81830         * modules/safe-read (License): Likewise.
81831         * modules/safe-write (License): Likewise.
81833 2007-06-14  Ben Pfaff  <blp@gnu.org>
81835         Missing part of allocsa -> malloca transition.
81836         * modules/relocatable-prog-wrapper: gl_ALLOCSA should be
81837         gl_MALLOCA.
81839 2007-06-12  Bruno Haible  <bruno@clisp.org>
81841         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Guess no when cross-compiling
81842         to ia64, x86_64, i386.
81843         Reported by Eric Blake.
81845 2007-06-12  Bruno Haible  <bruno@clisp.org>
81847         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Guess no also when
81848         cross-compiling to x86_64.
81850 2007-06-12  Paul Eggert  <eggert@cs.ucla.edu>
81852         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Fix POSIX sed portability
81853         glitch reported by Ralf Wildenhues in
81854         <http://lists.gnu.org/archive/html/bug-gnulib/2007-06/msg00114.html>.
81856         * m4/regex.m4 (gl_REGEX): Catch a bug with [[:alnum:]_-] reported by
81857         Vin Shelton.
81859 2007-06-11  Bruno Haible  <bruno@clisp.org>
81861         * lib/printf-args.c (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Fix NULL
81862         replacement string.
81863         Reported by Eric Blake.
81865 2007-06-10  Bruno Haible  <bruno@clisp.org>
81867         Prepare vasnprintf code for use with Unicode strings.
81868         * lib/printf-args.h (PRINTF_FETCHARGS): New macro.
81869         (arg_type) [ENABLE_UNISTDIO]: Define TYPE_U8_STRING, TYPE_U16_STRING,
81870         TYPE_U32_STRING.
81871         (argument) [ENABLE_UNISTDIO]: Add a_u8_string, a_u16_string,
81872         a_u32_string variants.
81873         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
81874         * lib/printf-args.c: Don't include config.h and the specification
81875         header if PRINTF_FETCHARGS is already defined.
81876         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
81877         (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Add code for TYPE_U8_STRING,
81878         TYPE_U16_STRING, TYPE_U32_STRING.
81879         * lib/printf-parse.h [ENABLE_UNISTDIO] (u8_directive, u8_directives,
81880         u16_directive, u16_directives, u32_directive, u32_directives): New
81881         types.
81882         (ulc_printf_parse, u8_printf_parse, u16_printf_parse, u32_printf_parse):
81883         New declarations.
81884         * lib/printf-parse.c: Don't include config.h and the specification
81885         header if PRINTF_PARSE is already defined. Eliminate the set of
81886         parameters for WIDE_CHAR_VERSION; the user of this file must provide
81887         them now. Include c-ctype.h.
81888         (PRINTF_PARSE) [ENABLE_UNISTDIO]: Add code implementing the 'U'
81889         directive and CHAR_T_ONLY_ASCII.
81890         * lib/vasnprintf.c: Don't include config.h and the specification header
81891         if VASNPRINTF is already defined.
81892         (DCHAR_IS_TCHAR, DCHAR_CPY): New macros.
81893         (VASNPRINTF): Use PRINTF_FETCHARGS instead of printf_fetchargs. Use
81894         DCHAR_CPY. Handle the case that DCHAR_T and FCHAR_T are not the same
81895         type. Handle the case that TCHAR_T and FCHAR_T are not of the same
81896         size. Handle the case that DCHAR_T and TCHAR_T are not the same type,
81897         add a conversion from TCHAR_T[] to DCHAR_T[], and rework the padding
81898         code accordingly.
81899         (VASNPRINTF) [ENABLE_UNISTDIO]: Implement the 'U' directive. Enable
81900         pad_ourselves also in this case, with the 'c' and 's' directives, and
81901         with a different notion of "width".
81902         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): New macros.
81904 2007-06-10  Bruno Haible  <bruno@clisp.org>
81906         * modules/unistr/u32-mbsnlen: New file.
81907         * lib/unistr/u32-mbsnlen.c: New file.
81909         * modules/unistr/u16-mbsnlen: New file.
81910         * lib/unistr/u16-mbsnlen.c: New file.
81912         * modules/unistr/u8-mbsnlen: New file.
81913         * lib/unistr/u8-mbsnlen.c: New file.
81915         * lib/unistr.h (u8_mbsnlen, u16_mbsnlen, u32_mbsnlen): New
81916         declarations.
81918 2007-06-10  Bruno Haible  <bruno@clisp.org>
81920         * lib/string_.h (mbsnlen): New declaration.
81921         * lib/mbsnlen.c: New file.
81922         * m4/mbsnlen.m4: New file.
81923         * modules/mbsnlen: New file.
81924         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set GNULIB_MBSNLEN.
81925         * modules/string (string.h): Substitute GNULIB_MBSNLEN.
81926         * MODULES.html.sh (Internationalization functions): Add mbsnlen.
81928 2007-06-10  Bruno Haible  <bruno@clisp.org>
81930         * lib/mbslen.c: Include <stdlib.h>, needed for MB_CUR_MAX.
81932 2007-06-10  Bruno Haible  <bruno@clisp.org>
81934         * lib/mbiter.h: Include <stddef.h>, needed for ptrdiff_t.
81935         * lib/mbuiter.h: Likewise.
81937 2007-06-10  Bruno Haible  <bruno@clisp.org>
81939         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Check for _snprintf
81940         declaration.
81942 2007-06-10  Karl Berry  <karl@gnu.org>
81944         * config/srclist.txt: remove gettext entries, Bruno prefers
81945         to update individually.
81947 2007-06-10  Bruno Haible  <bruno@clisp.org>
81949         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Remove variable
81950         'maxlen'. Ensure only length + width bytes are allocated, not
81951         length + 1 + width.
81953 2007-06-09  Bruno Haible  <bruno@clisp.org>
81955         * lib/vasnprintf.c (FCHAR_T, DCHAR_T, TCHAR_T): New macros.
81956         (CHAR_T): Remove macro.
81957         (VASNPRINTF): Update.
81959 2007-06-09  Bruno Haible  <bruno@clisp.org>
81961         * MODULES.html.sh (Unicode string functions): Add the new modules.
81963         * modules/uniconv/u32-conv-to-enc: New file.
81964         * lib/uniconv/u32-conv-to-enc.c: New file.
81965         * modules/uniconv/u32-conv-to-enc-tests: New file.
81966         * tests/uniconv/test-u32-conv-to-enc.c: New file.
81968         * modules/uniconv/u16-conv-to-enc: New file.
81969         * lib/uniconv/u16-conv-to-enc.c: New file.
81970         * lib/uniconv/u-conv-to-enc.h: New file.
81971         * modules/uniconv/u16-conv-to-enc-tests: New file.
81972         * tests/uniconv/test-u16-conv-to-enc.c: New file.
81974         * modules/uniconv/u8-conv-to-enc: New file.
81975         * lib/uniconv/u8-conv-to-enc.c: New file.
81976         * modules/uniconv/u8-conv-to-enc-tests: New file.
81977         * tests/uniconv/test-u8-conv-to-enc.c: New file.
81979         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
81980         u32_conv_to_encoding): New declarations.
81982 2007-06-09  Bruno Haible  <bruno@clisp.org>
81984         * tests/uniconv/test-u32-strconv-to-enc.c (main): Remove unused code.
81986 2007-06-09  Bruno Haible  <bruno@clisp.org>
81988         Rename 'allocsa' -> 'malloca', 'freesa' -> 'freea'.
81989         * modules/malloca: Renamed from modules/allocsa, updated.
81990         * lib/malloca.h: Renamed from lib/allocsa.h, updated.
81991         * lib/malloca.c: Renamed from lib/allocsa.c, updated.
81992         * lib/malloca.valgrind: Renamed from lib/allocsa.valgrind, updated.
81993         * m4/malloca.m4: Renamed from m4/allocsa.m4, updated.
81994         * modules/malloca-tests: Renamed from modules/allocsa-tests, updated.
81995         * tests/test-malloca.c: Renamed from tests/test-allocsa.c, updated.
81996         * modules/xmalloca: Renamed from modules/xallocsa, updated.
81997         * lib/xmalloca.h: Renamed from lib/xallocsa.h, updated.
81998         * lib/xmalloca.c: Renamed from lib/xallocsa.c, updated.
81999         * modules/c-strcasestr (Depends-on): Update.
82000         * lib/c-strcasestr.c: Update.
82001         * modules/c-strstr (Depends-on): Update.
82002         * lib/c-strstr.c: Update.
82003         * modules/canonicalize-lgpl (Depends-on): Update.
82004         * lib/canonicalize-lgpl.c: Update.
82005         * modules/clean-temp (Depends-on): Update.
82006         * lib/clean-temp.c: Update.
82007         * modules/csharpcomp (Depends-on): Update.
82008         * lib/csharpcomp.c: Update.
82009         * modules/csharpexec (Depends-on): Update.
82010         * lib/csharpexec.c: Update.
82011         * modules/javacomp (Depends-on): Update.
82012         * lib/javacomp.c: Update.
82013         * modules/javaexec (Depends-on): Update.
82014         * lib/javaexec.c: Update.
82015         * modules/mbscasestr (Depends-on): Update.
82016         * lib/mbscasestr.c: Update.
82017         * modules/mbsstr (Depends-on): Update.
82018         * lib/mbsstr.c: Update.
82019         * modules/setenv (Depends-on): Update.
82020         * lib/setenv.c: Update.
82021         * modules/strcasestr (Depends-on): Update.
82022         * lib/strcasestr.c: Update.
82023         * modules/striconveha (Depends-on): Update.
82024         * lib/striconveha.c: Update.
82025         * modules/relocatable-prog-wrapper (Files): Update.
82026         * lib/relocwrapper.c: Update.
82027         * build-aux/install-reloc: Update.
82028         * MODULES.html.sh (Memory management functions <stdlib.h>): Update.
82030 2007-06-08  Bruno Haible  <bruno@clisp.org>
82032         Port to uClibc.
82033         * lib/fbufmode.c (fbufmode): Add special code for uClibc.
82034         * lib/fpurge.c (fpurge): Likewise.
82035         * lib/freading.c (freading): Likewise.
82036         * lib/fseeko.c (rpl_fseeko): Likewise.
82037         * lib/fseterr.c (fseterr): Likewise.
82038         * lib/fwriting.c (fwriting): Likewise.
82039         * tests/test-fflush.c (main): Avoid a failure on uClibc.
82041 2007-06-08  Bruno Haible  <bruno@clisp.org>
82043         * m4/intlmacosx.m4: New file, extracted from gettext.m4.
82044         * m4/gettext.m4 (gt_INTL_MACOSX): Remove macro, moved to intlmacosx.m4.
82045         * modules/gettext (Files): Add m4/intlmacosx.m4.
82047 2007-06-07  Bruno Haible  <bruno@clisp.org>
82049         * modules/localename-tests: New file.
82050         * tests/test-localename.c: New file.
82052         New module 'localename'.
82053         * lib/localename.h: New file.
82054         * lib/localename.c: New file, from GNU gettext.
82055         * m4/localename.m4: New file.
82056         * modules/localename: New file.
82058 2007-06-07  Bruno Haible  <bruno@clisp.org>
82060         Work around the lack of <wchar.h> on some builds of uClibc.
82061         * doc/headers/wchar.texi: Update.
82062         * lib/wchar_.h: Include <wchar.h> only if it exists.
82063         * m4/wchar.m4 (gl_WCHAR_H): Check for <wchar.h>. Set HAVE_WCHAR_H.
82064         * m4/stdint.m4 (gl_STDINT_H): Check for <wchar.h>.
82065         (gl_STDINT_TYPE_PROPERTIES): Don't try to include <wchar.h> if it
82066         doesn't exist.
82067         * modules/wchar (wchar.h): Substitute HAVE_WCHAR_H.
82068         * modules/mbfile (Depends-on): Add wchar.
82069         * modules/mbiter (Depends-on): Likewise.
82070         * modules/mbuiter (Depends-on): Likewise.
82071         Reported by Simon Josefsson.
82073 2007-06-06  Paul Eggert  <eggert@cs.ucla.edu>
82075         Work around problem reported by Steven M. Schweda in
82076         <http://lists.gnu.org/archive/html/bug-tar/2007-06/msg00002.html>:
82077         Tru64 5.1B with the Compaq compiler environment installed declares
82078         an 'isblank' function but does not define it in the C library.
82079         * lib/fnmatch.c (isblank): Check for HAVE_ISBLANK, too.
82080         * lib/regex_internal.h (isblank): Likewise.
82081         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for isblank existence.
82082         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
82084 2007-06-05  Bruno Haible  <bruno@clisp.org>
82086         Fix *printf so that it recognizes non-IEEE numbers on i386, x86_64,
82087         ia64.
82088         * modules/printf-safe: New file.
82089         * modules/fprintf-posix (Depends-on): Add printf-safe.
82090         * modules/printf-posix (Depends-on): Likewise.
82091         * modules/snprintf-posix (Depends-on): Likewise.
82092         * modules/sprintf-posix (Depends-on): Likewise.
82093         * modules/vasnprintf-posix (Depends-on): Likewise.
82094         * modules/vasprintf-posix (Depends-on): Likewise.
82095         * modules/vfprintf-posix (Depends-on): Likewise.
82096         * modules/vprintf-posix (Depends-on): Likewise.
82097         * modules/vsnprintf-posix (Depends-on): Likewise.
82098         * modules/vsprintf-posix (Depends-on): Likewise.
82099         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
82100         AC_C_BIGENDIAN. Define CHECK_PRINTF_SAFE if printf-safe is used. Test
82101         non-IEEE numbers on i386, x86_64, ia64. When cross-compiling, guess
82102         "no" on i386, x86_64, ia64.
82103         * tests/test-snprintf-posix.h (LDBL80_WORDS): New macro.
82104         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
82105         on i386, x86_64, ia64.
82106         * tests/test-sprintf-posix.h (LDBL80_WORDS): New macro.
82107         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
82108         on i386, x86_64, ia64.
82109         * tests/test-vasnprintf-posix.c: Include float.h.
82110         (LDBL80_WORDS): New macro.
82111         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
82112         on i386, x86_64, ia64.
82113         * tests/test-vasprintf-posix.c: Include float.h.
82114         (LDBL80_WORDS): New macro.
82115         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
82116         on i386, x86_64, ia64.
82117         * tests/test-snprintf-posix.c: Include float.h.
82118         * tests/test-sprintf-posix.c: Likewise.
82119         * tests/test-vsnprintf-posix.c: Likewise.
82120         * tests/test-vsprintf-posix.c: Likewise.
82122 2007-06-05  Bruno Haible  <bruno@clisp.org>
82124         Fix isnanl so that it recognizes non-IEEE numbers on i386, x86_64, ia64.
82125         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Require AC_C_BIGENDIAN. Test
82126         non-IEEE numbers on i386, x86_64, ia64.
82127         (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require AC_C_BIGENDIAN.
82128         * lib/isnan.c (FUNC): Add special code for i386, x86_64, ia64.
82129         * tests/test-isnanl.h: Include float.h.
82130         (main): Check also non-IEEE numbers on i386, x86_64, ia64.
82132 2007-06-05  Bruno Haible  <bruno@clisp.org>
82134         * lib/vasnprintf.c (VASNPRINTF): Do the extra handling of NaN and Inf
82135         also the %a / %A. Handle the %a / %A code before this extra handling.
82137 2007-06-05  Bruno Haible  <bruno@clisp.org>
82139         * lib/vasnprintf.c [NEED_PRINTF_LONG_DOUBLE ||
82140         NEED_PRINTF_INFINITE_LONG_DOUBLE]: Include fpucw.h.
82142 2007-06-05  Bruno Haible  <bruno@clisp.org>
82144         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): Fix
82145         typo in variable name.
82147 2007-06-05  Eric Blake  <ebb9@byu.net>
82149         * m4/lseek.m4 (gl_FUNC_LSEEK): Work when cross-compiling.
82150         Reported by Simon Josefsson.
82152 2007-06-04  Bruno Haible  <bruno@clisp.org>
82154         Avoid test failures on some PowerPC platforms.
82155         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP):
82156         Define differently for PowerPC.
82157         * tests/test-frexpl.c (MIN_NORMAL_EXP): Likewise.
82158         Reported by Gary V. Vaughan <gary@gnu.org>.
82160 2007-06-02  Bruno Haible  <bruno@clisp.org>
82162         Fix test-stdint failure on FreeBSD/ia64.
82163         * m4/stdint.m4 (gl_STDINT_H): Check the values of PTRDIFF_MIN,
82164         PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN,
82165         WCHAR_MAX, WINT_MIN, WINT_MAX entirely, not only for plausibility.
82166         * doc/headers/stdint.texi: Update.
82168 2007-06-01  Bruno Haible  <bruno@clisp.org>
82170         * tests/test-binary-io.c (main): Pass a third argument to open().
82171         Reported by Gary V. Vaughan <gary@gnu.org>.
82173 2007-06-01  Bruno Haible  <bruno@clisp.org>
82175         * doc/functions/frexpl.texi: Update for mingw.
82177 2007-06-01  Bruno Haible  <bruno@clisp.org>
82179         * tests/test-lseek.c (main): Disable test of errno for invalid third
82180         argument.
82181         * doc/functions/lseek.texi: Update.
82182         Reported by Gary V. Vaughan <gary@gnu.org>.
82184 2007-05-28  Bruno Haible  <bruno@clisp.org>
82186         * m4/intl.m4 (AM_INTL_SUBDIR): Substitute variables WOE32, WINDRES.
82188 2007-05-31  Eric Blake  <ebb9@byu.net>
82190         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Guess no on mingw when
82191         cross compiling.
82193 2007-05-30  Eric Blake  <ebb9@byu.net>
82194         and Bruno Haible  <bruno@clisp.org>
82196         Work around mingw test failures exposed by m4-1.4.9b.
82197         * m4/stdint.m4 (gl_STDINT_H): Detect mingw bug.
82198         * tests/test-unistd.c: Disable uid_t and git_t tests for the
82199         moment.
82201 2007-05-30  Bruno Haible  <bruno@clisp.org>
82203         * tests/test-lseek.c: Explicitly close file descriptors 0 and 1 before
82204         assuming that they are closed. Needed on HP-UX 11.
82206 2007-05-29  Bruno Haible  <bruno@clisp.org>
82208         Fix a problem with #include_next.
82209         * lib/dirent_.h: Split the double-inclusion guard.
82210         * lib/fcntl_.h: Likewise.
82211         * lib/float_.h: Likewise.
82212         * lib/iconv_.h: Likewise.
82213         * lib/inttypes_.h: Likewise.
82214         * lib/locale_.h: Likewise.
82215         * lib/math_.h: Likewise.
82216         * lib/netinet_in_.h: Likewise.
82217         * lib/search_.h: Likewise.
82218         * lib/signal_.h: Likewise.
82219         * lib/stdint_.h: Likewise.
82220         * lib/stdio_.h: Likewise.
82221         * lib/stdlib_.h: Likewise.
82222         * lib/string_.h: Likewise.
82223         * lib/sys_select_.h: Likewise.
82224         * lib/sys_socket_.h: Likewise.
82225         * lib/sys_stat_.h: Likewise.
82226         * lib/sys_time_.h: Likewise.
82227         * lib/sysexits_.h: Likewise.
82228         * lib/time_.h: Likewise.
82229         * lib/unistd_.h: Likewise.
82230         * lib/wchar_.h: Likewise.
82231         * lib/wctype_.h: Likewise.
82233 2007-05-29  Bruno Haible  <bruno@clisp.org>
82235         * tests/test-unistd.c: Disable the tests for useconds_t and intptr_t
82236         for the moment.
82238 2007-05-29  Bruno Haible  <bruno@clisp.org>
82240         * m4/isnan.m4 (gl_DOUBLE_EXPONENT_LOCATION): Silence the AC_C_BIGENDIAN
82241         invocation.
82242         Reported by Eric Blake.
82244 2007-05-29  Bruno Haible  <bruno@clisp.org>
82246         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Fix typo in cross-
82247         compiling case.
82249 2007-05-29  Eric Blake  <ebb9@byu.net>
82250             Bruno Haible  <bruno@clisp.org>
82252         * m4/isnanf.m4 (gl_FUNC_ISNANF_NO_LIBM): Avoid syntax error on
82253         cross compiles.
82255 2007-05-28  Eric Blake  <ebb9@byu.net>
82257         * modules/closein-tests (test_closein_LDADD): Support test on
82258         cygwin with libtool.
82260 2007-05-28  Bruno Haible  <bruno@clisp.org>
82262         * tests/uniconv/test-u16-conv-from-enc.c: Remove #ifdef HAVE_CONFIG_H.
82263         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
82264         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
82265         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
82266         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
82267         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
82268         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
82269         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
82270         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
82272 2007-05-28  Eric Blake  <ebb9@byu.net>
82274         Unconditionally include <config.h> in unit tests.
82275         * tests/test-alloca-opt.c: Remove #ifdef HAVE_CONFIG_H.
82276         * tests/test-allocsa.c, tests/test-arcfour.c,
82277         tests/test-arctwo.c, tests/test-argmatch.c, tests/test-argp.c,
82278         tests/test-array_list.c, tests/test-array_oset.c,
82279         tests/test-atexit.c, test-avltree_list.c, test-avltree_oset.c,
82280         test-avltreehash_list.c, test-base64.c, test-binary-io.c,
82281         test-c-ctype.c, test-c-strcasecmp.c, test-c-strcasestr.c,
82282         test-c-strncasecmp.c, test-c-strstr.c, test-canonicalize-lgpl.c,
82283         test-carray_list.c, test-crc.c, test-des.c, test-dirname.c,
82284         test-fflush.c, test-fprintf-posix.c, test-gc-arcfour.c,
82285         test-gc-arctwo.c, test-gc-des.c, test-gc-hmac-md5.c,
82286         test-gc-hmac-sha1.c, test-gc-md2.c, test-gc-md4.c, test-gc-md5.c,
82287         test-gc-pbkdf2-sha1.c, test-gc-rijndael.c, test-gc-sha1.c,
82288         test-gc.c, test-getpass.c, test-hmac-md5.c, test-hmac-sha1.c,
82289         test-iconv.c, test-linked_list.c, test-linkedhash_list.c,
82290         test-lock.c, test-mbscasecmp.c, test-mbscasestr1.c,
82291         test-mbscasestr2.c, test-mbscasestr3.c, test-mbscasestr4.c,
82292         test-mbschr.c, test-mbscspn.c, test-mbsncasecmp.c, test-mbspbrk.c,
82293         test-mbspcasecmp.c, test-mbsrchr.c, test-mbsspn.c, test-mbsstr1.c,
82294         test-mbsstr2.c, test-mbsstr3.c, test-md2.c, test-md4.c,
82295         test-md5.c, test-memmem.c, test-printf-posix.c,
82296         test-rbtree_list.c, test-rbtree_oset.c, test-rbtreehash_list.c,
82297         test-read-file.c, test-rijndael.c, test-snprintf-posix.c,
82298         test-snprintf.c, test-sprintf-posix.c, test-stdint.c,
82299         test-strcasestr.c, test-striconv.c, test-striconveh.c,
82300         test-striconveha.c, test-tls.c, test-vasnprintf-posix.c,
82301         test-vasnprintf-posix2.c, test-vasnprintf.c,
82302         test-vasprintf-posix.c, test-vasprintf.c, test-verify.c,
82303         test-vfprintf-posix.c, test-vprintf-posix.c,
82304         test-vsnprintf-posix.c, test-vsnprintf.c, test-vsprintf-posix.c,
82305         test-xvasprintf.c: Likewise.
82307 2007-05-28  Bruno Haible  <bruno@clisp.org>
82309         * gnulib-tool (func_import): Remember the --with-tests command-line
82310         option through the macro gl_WITH_TESTS in the gnulib-cache.m4.
82311         Reported by Eric Blake.
82313 2007-05-28  Bruno Haible  <bruno@clisp.org>
82315         * modules/ftell-tests: New file.
82316         * tests/test-ftell.c: New file, based on tests/test-ftello.c.
82317         * tests/test-ftell.sh: New file, based on tests/test-ftello.sh.
82319         * lib/ftell.c: New file.
82320         * modules/ftell: New file.
82321         * m4/ftell.m4: New file.
82322         * doc/functions/ftell.texi: Update.
82323         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELL,
82324         REPLACE_FTELL.
82325         * lib/stdio_.h (rpl_ftell): New declaration.
82326         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELL,
82327         REPLACE_FTELL.
82329 2007-05-28  Eric Blake  <ebb9@byu.net>
82331         * lib/allocsa.h (safe_alloca): Avoid compiler warning.
82333 2007-05-28  Bruno Haible  <bruno@clisp.org>
82335         * modules/fseek-tests: New file.
82336         * tests/test-fseek.c: New file, based on tests/test-fseeko.c.
82337         * tests/test-fseek.sh: New file, based on tests/test-fseeko.sh.
82339         * lib/fseek.c: New file.
82340         * modules/fseek: New file.
82341         * m4/fseek.m4: New file.
82342         * doc/functions/fseek.texi: Update.
82343         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEK,
82344         REPLACE_FSEEK.
82345         * lib/stdio_.h (rpl_fseek): New declaration.
82346         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEK,
82347         REPLACE_FSEEK.
82349 2007-05-28  Bruno Haible  <bruno@clisp.org>
82351         * lib/stdio_.h (fflush): More comments.
82353 2007-05-28  Bruno Haible  <bruno@clisp.org>
82355         * m4/lseek.m4 (gl_FUNC_LSEEK): When not cross-compiling, perform a real
82356         runtime test.
82358 2007-05-28  Eric Blake  <ebb9@byu.net>
82360         Improve lseek module.
82361         * lib/lseek.c (rpl_lseek): Detect EBADF on mingw.
82362         * lib/unistd_.h (lseek): Scale back link warning message.
82363         * tests/test-lseek.c: Beef up test.
82364         * tests/test-lseek.sh: Exercise more facets of lseek.
82365         Reported by Bruno Haible.
82367 2007-05-28  Bruno Haible  <bruno@clisp.org>
82369         * tests/test-unistd.c: Test all the types that <unistd.h> is expected
82370         to define.
82372 2007-05-27  Bruno Haible  <bruno@clisp.org>
82374         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-31 patch.
82376 2007-05-27  Bruno Haible  <bruno@clisp.org>
82378         * modules/openmp: New file.
82379         * m4/openmp.m4: New file, taken from autoconf's CVS with changes by
82380         Noah Misch.
82382 2007-05-26  Bruno Haible  <bruno@clisp.org>
82384         * modules/chdir-long (Depends-on): Add fchdir.
82385         * modules/chdir-safer (Depends-on): Likewise.
82386         * modules/fts (Depends-on): Likewise.
82387         * modules/fts-lgpl (Depends-on): Likewise.
82388         * modules/openat (Depends-on): Likewise.
82389         * modules/savewd (Depends-on): Likewise.
82391 2007-05-24  Eric Blake  <ebb9@byu.net>
82393         Fix lseek on mingw.
82394         * modules/lseek: New module.
82395         * m4/lseek.m4: New file.
82396         * lib/lseek.c: New file.
82397         * modules/lseek-tests: New file.
82398         * tests/test-lseek.c: New file.
82399         * tests/test-lseek.sh: New file.
82400         * MODULES.html.sh: Document lseek module.
82401         * modules/fflush (Depends-on): Add lseek, fseeko.
82402         * modules/fseeko (Depends-on): Likewise.
82403         * modules/ftello (Depends-on): Likewise.
82404         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Replace fseek[o] if lseek is
82405         broken.
82406         * m4/ftello.m4 (gl_FUNC_FTELLO): Replace ftell[o] if lseek is
82407         broken.
82408         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Trigger fseeko module.
82409         * lib/fseeko.c (rpl_fseeko): Quit early on non-seekable files.
82410         * lib/ftello.c (rpl_ftello): Likewise.
82411         * tests/test-fseeko.c (main): Test this.
82412         * tests/test-fseeko.sh: Likewise.
82413         * tests/test-ftello.c (main): Likewise.
82414         * tests/test-ftello.sh: Likewise.
82415         * lib/stdio_.h (fseek, ftell): Simplify, since missing fseeko now
82416         implies replacing fseek.
82417         * modules/stdio (Makefile.am): No longer need HAVE_FSEEKO,
82418         HAVE_FTELLO.
82419         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add lseek info.
82420         * modules/unistd (Makefile.am): Likewise.
82421         * lib/unistd_.h (lseek): Declare a replacement.
82422         * doc/functions/lseek.texi (lseek): Document this fix.
82423         * doc/functions/fseek.texi (fseek): Likewise.
82424         * doc/functions/ftell.texi (ftell): Likewise.
82426 2007-05-24  Bruno Haible  <bruno@clisp.org>
82428         * tests/test-vasnprintf-posix.c (test_function): Allow up to 50 bytes
82429         in the printed representation of a NaN.
82430         * tests/test-vasprintf-posix.c (test_function): Likewise.
82431         * tests/test-snprintf-posix.h (test_function): Likewise.
82432         * tests/test-sprintf-posix.h (test_function): Likewise.
82433         Reported by Eric Blake.
82435 2007-05-23  Eric Blake  <ebb9@byu.net>
82437         Fix fseeko/ftello on cygwin 1.5.24.
82438         * doc/functions/fseeko.texi (fseeko): Document the fix.
82439         * doc/functions/ftello.texi (ftello): Document the fix.
82440         * doc/functions/stdin.texi (stdin): Document the cygwin bug.
82441         * doc/functions/stdout.text (stdout): New file.
82442         * doc/functions/stderr.text (stderr): New file.
82443         * doc/gnulib.texi (Function Substitutes): Use new files.
82444         * tests/test-fseeko.c (main): Check for broken fseeko on cygwin
82445         prior to 1.7.0.
82446         * tests/test-ftello.c (main): Likewise for ftello.
82447         * tests/test-fseeko.sh: New file.
82448         * tests/test-ftello.sh: New file.
82449         * modules/fseeko-tests (Makefile.am): Ensure test-fseeko is run
82450         with seekable stdin.
82451         * modules/ftello-tests (Makefile.am): Likewise for test-ftello.
82452         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Detect the cygwin bug.
82453         (gl_REPLACE_FSEEKO): New macro.
82454         * m4/ftello.m4 (gl_FUNC_FTELLO, gl_REPLACE_FTELLO): Likewise.
82455         * modules/fseeko (Files): Distribute fseeko.c.
82456         * modules/ftello (Files): Distribute ftello.c.
82457         * lib/fseeko.c (rpl_fseeko) [__CYGWIN__]: Convert stdin to 64-bit
82458         mode.
82459         * lib/ftello.c (rpl_ftello): New file.
82460         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Allow replacement of
82461         fseeko, ftello.
82462         (gl_STDIN_LARGE_OFFSET): New macro.
82463         * modules/stdio (Makefile.am): Perform the replacement.
82464         * lib/stdio_.h (rpl_fseeko, rpl_ftello): Define when needed.
82466 2007-05-23  Bruno Haible  <bruno@clisp.org>
82468         * lib/stdio_.h (fseeko, ftello): Provide a link warning only if
82469         GNULIB_POSIXCHECK is defined.
82471 2007-05-21  Bruno Haible  <bruno@clisp.org>
82473         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE):
82474         Check also the output for NaN arguments. When cross-compiling, guess
82475         no on IRIX.
82476         * lib/vasnprintf.c: Update comments.
82477         * tests/test-vasnprintf-posix.c (strisnan): New function.
82478         (test_function): Use it.
82479         * tests/test-vasprintf-posix.c (strisnan): New function.
82480         (test_function): Use it.
82481         * tests/test-snprintf-posix.h (strisnan): New function.
82482         (test_function): Use it.
82483         * tests/test-sprintf-posix.h (strisnan): New function.
82484         (test_function): Use it.
82485         Reported by Eric Blake.
82487 2007-05-20  Bruno Haible  <bruno@clisp.org>
82489         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Add test for large finite
82490         numbers that fails on BeOS.
82491         * doc/functions/frexpl.texi: Update.
82493 2007-05-20  Jim Meyering  <jim@meyering.net>
82495         * NEWS: Mention the incompatible change (s/futimens/gl_futimens/)
82496         forced upon us by glibc-2.6.
82498 2007-05-20  Bruno Haible  <bruno@clisp.org>
82500         Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
82501         * m4/printf.m4 (gl_PRINTF_INFINITE): Update cross-compiling guesses.
82502         (gl_PRINTF_INFINITE_LONG_DOUBLE): New macro.
82503         * lib/vasnprintf.c: Use NEED_PRINTF_INFINITE_DOUBLE instead of
82504         NEED_PRINTF_INFINITE.
82505         (is_infinitel): New function.
82506         (VASNPRINTF): Handle NEED_PRINTF_INFINITE_LONG_DOUBLE case.
82507         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE): Renamed from
82508         gl_PREREQ_VASNPRINTF_INFINITE.
82509         (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): New macro.
82510         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
82511         gl_PRINTF_INFINITE_LONG_DOUBLE and test its result. Invoke
82512         gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE and
82513         gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE instead of
82514         gl_PREREQ_VASNPRINTF_INFINITE.
82515         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
82516         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
82517         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
82518         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
82519         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
82520         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
82521         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
82522         * doc/functions/fprintf.texi: Update.
82523         * doc/functions/printf.texi: Update.
82524         * doc/functions/snprintf.texi: Update.
82525         * doc/functions/sprintf.texi: Update.
82526         * doc/functions/vfprintf.texi: Update.
82527         * doc/functions/vprintf.texi: Update.
82528         * doc/functions/vsnprintf.texi: Update.
82529         * doc/functions/vsprintf.texi: Update.
82531 2007-05-20  Bruno Haible  <bruno@clisp.org>
82533         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): Set REPLACE_FREXPL if frexpl
82534         was not found in libc.
82535         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
82537 2007-05-20  Bruno Haible  <bruno@clisp.org>
82539         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
82540         printed as "-nan" instead of "nan".
82541         * tests/test-vasprintf-posix.c (test_function): Likewise.
82542         * tests/test-snprintf-posix.h (test_function): Likewise.
82543         * tests/test-sprintf-posix.h (test_function): Likewise.
82544         Needed for HP-UX 11.
82546 2007-05-20  Jim Meyering  <jim@meyering.net>
82548         Fix buggy test for the fchownat-deref bug.
82549         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Create the dangling
82550         symlink required for the run-test.  Without it, this test would
82551         always declare that fchownat doesn't work, and client code would
82552         unnecessarily use the replacement function with fixed libc.
82553         (gl_FUNC_FCHOWNAT): Eliminate a variable that wasn't initialized.
82554         Reported by Greg Schafer.
82556 2007-05-19  Bruno Haible  <bruno@clisp.org>
82558         * m4/isnanf.m4 (gl_ISNANF_WORKS): New macro.
82559         (gl_FUNC_ISNANF_NO_LIBM): Invoke it.
82560         * lib/isnan.c (FUNC): Use run-time expressions for SGI compiler.
82561         Needed for IRIX 6.5 and Solaris 2.5.1.
82563 2007-05-19  Bruno Haible  <bruno@clisp.org>
82565         * tests/test-vasnprintf-posix.c (have_minus_zero): New function.
82566         (test_function): Skip tests involving -0.0 on platforms where
82567         -0.0 = 0.0.
82568         * tests/test-vasprintf-posix.c (have_minus_zero): New function.
82569         (test_function): Skip tests involving -0.0 on platforms where
82570         -0.0 = 0.0.
82571         * tests/test-snprintf-posix.h (have_minus_zero): New function.
82572         (test_function): Skip tests involving -0.0 on platforms where
82573         -0.0 = 0.0.
82574         * tests/test-sprintf-posix.h (have_minus_zero): New function.
82575         (test_function): Skip tests involving -0.0 on platforms where
82576         -0.0 = 0.0.
82577         * tests/test-fprintf-posix.h (test_function): Remove all -0.0 related
82578         tests.
82579         * tests/test-printf-posix.h (test_function): Likewise.
82580         * tests/test-printf-posix.output: Remove all -0.0 related results.
82581         Needed for IRIX 6.5.
82583 2007-05-19  Bruno Haible  <bruno@clisp.org>
82585         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
82586         printed as "nan0x7fffffff" instead of "nan".
82587         * tests/test-vasprintf-posix.c (test_function): Likewise.
82588         * tests/test-snprintf-posix.h (test_function): Likewise.
82589         * tests/test-sprintf-posix.h (test_function): Likewise.
82590         * tests/test-fprintf-posix.h (NaN): Remove macro.
82591         (test_function): Remove all NaN related tests.
82592         * tests/test-printf-posix.h (NaN): Remove macro.
82593         (test_function): Remove all NaN related tests.
82594         * tests/test-printf-posix.output: Remove all NaN related results.
82595         Needed for IRIX 6.5.
82597 2007-05-19  Bruno Haible  <bruno@clisp.org>
82599         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Fix C89 syntax error in test code.
82600         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
82602 2007-05-19  Bruno Haible  <bruno@clisp.org>
82604         * lib/float_.h: New file.
82605         * m4/float_h.m4: New file.
82606         * modules/float: New file.
82607         * modules/isnanl (Dependencies): Add float.
82608         * modules/isnanl-nolibm (Dependencies): Likewise.
82609         * modules/mathl (Dependencies): Likewise.
82610         * modules/printf-frexpl (Dependencies): Likewise.
82611         * modules/signbit (Dependencies): Likewise.
82612         * modules/vasnprintf (Dependencies): Likewise.
82613         * doc/headers/float.texi: Update.
82615 2007-05-19  Jim Meyering  <jim@meyering.net>
82617         * lib/utimens.c (gl_futimens): Rename from futimens,
82618         now that glibc-2.6 declares futimens.
82619         * lib/utimens.h: Likewise.
82621 2007-05-19  Bruno Haible  <bruno@clisp.org>
82623         Avoid test failures on mingw.
82624         * tests/test-fprintf-posix.sh: Convert CR/LF to LF in output.
82625         * tests/test-printf-posix.sh: Likewise.
82626         * tests/test-vfprintf-posix.sh: Likewise.
82627         * tests/test-vprintf-posix.sh: Likewise.
82629 2007-05-19  Bruno Haible  <bruno@clisp.org>
82631         Fix *printf result for NaN, Inf, -0.0 on mingw.
82632         * m4/printf.m4 (gl_PRINTF_INFINITE): New macro.
82633         * lib/vasnprintf.c: Include math.h and isnan.h.
82634         (is_infinite_or_zero): New function.
82635         (VASNPRINTF): Fix also the handling of infinite or zero 'double'
82636         values in the %f, %F, %e, %E, %g, %G directives.
82637         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE): New macro.
82638         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
82639         gl_PRINTF_INFINITE and test its result. Invoke
82640         gl_PREREQ_VASNPRINTF_INFINITE.
82641         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
82642         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
82643         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
82644         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
82645         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
82646         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
82647         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
82648         * doc/functions/fprintf.texi: Update.
82649         * doc/functions/printf.texi: Update.
82650         * doc/functions/snprintf.texi: Update.
82651         * doc/functions/sprintf.texi: Update.
82652         * doc/functions/vfprintf.texi: Update.
82653         * doc/functions/vprintf.texi: Update.
82654         * doc/functions/vsnprintf.texi: Update.
82655         * doc/functions/vsprintf.texi: Update.
82657 2007-05-19  Bruno Haible  <bruno@clisp.org>
82659         * lib/vasnprintf.c (convert_to_decimal): Add an extra_zeroes argument.
82660         (scale10_round_decimal_long_double): Inline scale10_round_long_double.
82661         Instead of multiplying with 10^k, set extra_zeroes to k.
82662         (scale10_round_long_double): Remove function.
82664 2007-05-18  Bruno Haible  <bruno@clisp.org>
82666         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Fix logic bug
82667         introduced on 2007-05-06.
82669 2007-05-18  Bruno Haible  <bruno@clisp.org>
82671         * tests/test-vasnprintf-posix.c (test_function): Also test the %e and
82672         %g directives.
82673         * tests/test-vasprintf-posix.c (test_function): Likewise.
82674         * tests/test-snprintf-posix.h (test_function): Likewise.
82675         * tests/test-sprintf-posix.h (test_function): Likewise.
82677 2007-05-18  Bruno Haible  <bruno@clisp.org>
82679         * tests/test-vasnprintf-posix.c (SIZEOF): New macro.
82680         (strmatch): New function.
82681         (test_function): Test the %f directive on numbers of various exponents.
82682         * tests/test-vasprintf-posix.c (SIZEOF): New macro.
82683         (strmatch): New function.
82684         (test_function): Test the %f directive on numbers of various exponents.
82685         * tests/test-snprintf-posix.h (strmatch): New function.
82686         (test_function): Test the %f directive on numbers of various exponents.
82687         * tests/test-sprintf-posix.h (strmatch): New function.
82688         (test_function): Test the %f directive on numbers of various exponents.
82689         * tests/test-snprintf-posix.c (SIZEOF): New macro.
82690         * tests/test-sprintf-posix.c (SIZEOF): New macro.
82691         * tests/test-vsnprintf-posix.c (SIZEOF): New macro.
82692         * tests/test-vsprintf-posix.c (SIZEOF): New macro.
82694 2007-05-18  Bruno Haible  <bruno@clisp.org>
82696         Add support for 'long double' number output.
82697         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE): New macro.
82698         * lib/vasnprintf.c: Include math.h and float+.h.
82699         (mp_limb_t): New type.
82700         (GMP_LIMB_BITS): New macro.
82701         (mp_twolimb_t): New type.
82702         (GMP_TWOLIMB_BITS): New macro.
82703         (mpn_t): New type.
82704         (multiply, divide, convert_to_decimal, decode_long_double,
82705         scale10_round_long_double, scale10_round_decimal_long_double,
82706         floorlog10l): New functions.
82707         (VASNPRINTF) [NEED_PRINTF_LONG_DOUBLE]: Implement 'long double' support
82708         for the %f, %F, %e, %E, %g, %G directives.
82709         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_LONG_DOUBLE): New macro.
82710         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
82711         gl_PRINTF_LONG_DOUBLE and test its result. Invoke
82712         gl_PREREQ_VASNPRINTF_LONG_DOUBLE.
82713         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
82714         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
82715         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
82716         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
82717         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
82718         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
82719         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
82720         * modules/fprintf-posix (Depends-on): Add frexpl-nolibm.
82721         * modules/snprintf-posix (Depends-on): Likewise.
82722         * modules/sprintf-posix (Depends-on): Likewise.
82723         * modules/vasnprintf-posix (Depends-on): Likewise.
82724         * modules/vasprintf-posix (Depends-on): Likewise.
82725         * modules/vfprintf-posix (Depends-on): Likewise.
82726         * modules/vsnprintf-posix (Depends-on): Likewise.
82727         * modules/vsprintf-posix (Depends-on): Likewise.
82728         * modules/vasnprintf (Files): Add lib/float+.h.
82729         * doc/functions/fprintf.texi: Update.
82730         * doc/functions/printf.texi: Update.
82731         * doc/functions/snprintf.texi: Update.
82732         * doc/functions/sprintf.texi: Update.
82733         * doc/functions/vfprintf.texi: Update.
82734         * doc/functions/vprintf.texi: Update.
82735         * doc/functions/vsnprintf.texi: Update.
82736         * doc/functions/vsprintf.texi: Update.
82738 2007-05-18  Bruno Haible  <bruno@clisp.org>
82740         * lib/vasnprintf.c (USE_SNPRINTF): Define to 0 on BeOS.
82742 2007-05-18  Bruno Haible  <bruno@clisp.org>
82744         * lib/vasnprintf.c (VASNPRINTF) [WIN32]: Use %I64d instead of %lld
82745         for printing 64-bit integers. Needed for mingw.
82747 2007-05-18  Bruno Haible  <bruno@clisp.org>
82749         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
82750         gl_FUNC_FREXPL_WORKS.
82751         * modules/printf-frexpl (Files): Add m4/frexpl.m4.
82753 2007-05-18  Bruno Haible  <bruno@clisp.org>
82755         * modules/frexpl-nolibm-tests: New file.
82757         * modules/frexpl-nolibm: New file.
82758         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): New macro.
82760 2007-05-17  Paul Eggert  <eggert@cs.ucla.edu>
82762         * lib/dirent_.h: Prefer #include_next <foo.h> to #include
82763         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
82764         GCC 4.2, which otherwise issues a lot of warnings.
82765         * lib/iconv_.h, lib/locale_.h, lib/netinet_in_.h, lib/sys_select_.h:
82766         * lib/sys_socket_.h, lib/sys_stat_.h, lib/sysexits_.h, lib/unistd_.h:
82767         Likewise.
82768         * modules/fchdir (dirent.h): Substitute @HAVE_INCLUDE_NEXT@.
82769         * modules/iconv_open (iconv.h): Likewise.
82770         * modules/locale (locale.h): Likewise.
82771         * modules/netinet_in (netinet/in.h): Likewise.
82772         * modules/sys_select (sys_select.h): Likewise.
82773         * modules/sys_socket (sys/socket.h): Likewise.
82774         * modules/sys_stat (sys/stat.h): Likewise.
82775         * modules/sysexits (sysexits.h): Likewise.
82776         * modules/unistd (unistd.h): Likewise.
82778 2007-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
82780         * modules/closein-tests (Makefile.am): Distribute
82781         `test-closein.sh'.
82783 2007-05-17  Bruno Haible  <bruno@clisp.org>
82785         * tests/test-printf-posix.output: Renamed from
82786         tests/test-fprintf-posix.out.
82787         * modules/fprintf-posix-tests: Update.
82788         * modules/printf-posix-tests: Update.
82789         * modules/vfprintf-posix-tests: Update.
82790         * modules/vprintf-posix-tests: Update.
82791         * tests/test-fprintf-posix.sh: Update.
82792         * tests/test-printf-posix.sh: Update.
82793         * tests/test-vfprintf-posix.sh: Update.
82794         * tests/test-vprintf-posix.sh: Update.
82795         Reported by Ralf Wildenhues.
82797 2007-05-16  Paul Eggert  <eggert@cs.ucla.edu>
82799         * lib/fcntl_.h: Prefer #include_next <foo.h> to #include
82800         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
82801         GCC 4.2, which otherwise issues a lot of warnings.
82802         * lib/inttypes_.h, lib/math_.h, lib/search_.h, lib/signal_.h:
82803         * lib/stdint_.h, lib/stdio_.h, lib/stdlib_.h, lib/string_.h:
82804         * lib/sys_time_.h, lib/time_.h, lib/wchar_.h, lib/wctype_.h: Likewise.
82805         * lib/stdlib_.h: Don't bother with #pragma GCC system_header, as
82806         it should no longer be needed.
82807         * lib/string_.h: Likewise.
82808         * modules/absolute-header (HAVE_INCLUDE_NEXT): New 'make' define.
82809         * modules/fcntl (fcntl.h): Substitute @HAVE_INCLUDE_NEXT@.
82810         * modules/inttypes (inttypes.h): Likewise.
82811         * modules/math (math.h): Likewise.
82812         * modules/search (search.h): Likewise.
82813         * modules/signal (signal.h): Likewise.
82814         * modules/stdint (stdint.h): Likewise.
82815         * modules/stdio (stdio.h): Likewise.
82816         * modules/stdlib (stdlib.h): Likewise.
82817         * modules/string (string.h): Likewise.
82818         * modules/sys_time (sys/time.h): Likewise.
82819         * modules/time (time.h): Likewise.
82820         * modules/wchar (wchar.h): Likewise.
82821         * modules/wctype (wtype.h): Likewise.
82823 2007-05-16  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
82825         * doc/gnulib-tool.texi (CVS Issues): Fix typo.
82827 2007-05-13  Bruno Haible  <bruno@clisp.org>
82829         * stpcpy.m4 (gl_FUNC_STPCPY): Require AC_C_RESTRICT.
82830         * stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
82831         * strsep.m4 (gl_FUNC_STRSEP): Likewise.
82832         * strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
82833         (gl_PREREQ_STRTOK_R): Don't require it here.
82835 2007-05-13  Bruno Haible  <bruno@clisp.org>
82837         * lib/stdlib_.h (mkdtemp, mkstemp): Comment out argument name. Needed
82838         when used in C++ mode.
82840 2007-05-12  Bruno Haible  <bruno@clisp.org>
82842         * lib/linebuffer.h: Tweak doc.
82843         * lib/linebuffer.c: Likewise.
82845 2007-05-12  James Youngman  <jay@gnu.org>
82847         * lib/linebuffer.c (readlinebuffer_delim): New function,
82848         like readlinebuffer, but use a caller-specified delimiter.
82849         (readlinebuffer): Just call readlinebuffer_delim with '\n'
82850         as the delimiter.
82851         * lib/linebuffer.h (readlinebuffer_delim): Declare it.
82853 2007-05-12  Sergey Poznyakoff  <gray@gnu.org.ua>
82855         * m4/openat.m4 (gl_FUNC_OPENAT): Do not require openat-die.
82856         * modules/openat (Files): Remove openat-die.c.
82857         (Depends-on): Add openat-die.
82858         * modules/openat-die: New module.
82860 2007-05-06  Bruno Haible  <bruno@clisp.org>
82862         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING, gl_VSNPRINTF_ZEROSIZE_C99):
82863         Update with info about Cygwin.
82864         * doc/functions/fprintf.texi: Update.
82865         * doc/functions/printf.texi: Update.
82866         * doc/functions/snprintf.texi: Update.
82867         * doc/functions/sprintf.texi: Update.
82868         * doc/functions/vfprintf.texi: Update.
82869         * doc/functions/vprintf.texi: Update.
82870         * doc/functions/vsnprintf.texi: Update.
82871         * doc/functions/vsprintf.texi: Update.
82872         Reported by Eric Blake.
82874 2007-05-06  Bruno Haible  <bruno@clisp.org>
82876         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Perform the
82877         padding ourselves for the floating-point directives.
82878         * m4/printf.m4 (gl_PRINTF_FLAG_ZERO): New macro.
82879         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_ZERO): New macro.
82880         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
82881         gl_PRINTF_FLAG_ZERO and test its result. Invoke
82882         gl_PREREQ_VASNPRINTF_FLAG_ZERO.
82883         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
82884         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
82885         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
82886         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
82887         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
82888         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
82889         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
82890         * tests/test-snprintf-posix.h (test_function): Also check the width
82891         and some flags in the %f directive.
82892         * tests/test-sprintf-posix.h (test_function): Likewise.
82893         * tests/test-vasnprintf-posix.c (test_function): Likewise.
82894         * tests/test-vasprintf-posix.c (test_function): Likewise.
82895         * doc/functions/fprintf.texi: Update.
82896         * doc/functions/printf.texi: Update.
82897         * doc/functions/snprintf.texi: Update.
82898         * doc/functions/sprintf.texi: Update.
82899         * doc/functions/vfprintf.texi: Update.
82900         * doc/functions/vprintf.texi: Update.
82901         * doc/functions/vsnprintf.texi: Update.
82902         * doc/functions/vsprintf.texi: Update.
82904 2007-05-06  Bruno Haible  <bruno@clisp.org>
82906         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_GROUPING]: Don't
82907         pass the ' flag character to sprintf or snprintf.
82908         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING): New macro.
82909         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_GROUPING): New macro.
82910         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
82911         gl_PRINTF_FLAG_GROUPING and test its result. Invoke
82912         gl_PREREQ_VASNPRINTF_FLAG_GROUPING.
82913         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
82914         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
82915         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
82916         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
82917         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
82918         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
82919         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
82920         * tests/test-snprintf-posix.h (test_function): Also check the grouping
82921         flag.
82922         * tests/test-sprintf-posix.h (test_function): Likewise.
82923         * tests/test-vasnprintf-posix.c (test_function): Likewise.
82924         * tests/test-vasprintf-posix.c (test_function): Likewise.
82925         * doc/functions/fprintf.texi: Update.
82926         * doc/functions/printf.texi: Update.
82927         * doc/functions/snprintf.texi: Update.
82928         * doc/functions/sprintf.texi: Update.
82929         * doc/functions/vfprintf.texi: Update.
82930         * doc/functions/vprintf.texi: Update.
82931         * doc/functions/vsnprintf.texi: Update.
82932         * doc/functions/vsprintf.texi: Update.
82934 2007-05-01  Bruno Haible  <bruno@clisp.org>
82936         * tests/test-argp-2.sh (func_compare): Drop .exe suffix.
82938 2007-05-03  Paul Eggert  <eggert@cs.ucla.edu>
82940         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use better
82941         comment for D_INO_IN_DIRENT.  Problem reported by James Youngman.
82943 2007-05-02  Paul Eggert  <eggert@cs.ucla.edu>
82945         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Test whether
82946         readdir returns garbage in d_ino.  Problem reported by Kaz Sasayama in
82947         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00021.html>.
82949 2007-05-02  Sergey Poznyakoff  <gray@gnu.org.ua>
82951         * lib/argp-help.c (struct hol_entry): New member `ord'.
82952         (HOL_ENTRY_PTRCMP): Use ord for comparison
82953         (hol_sort): Initialize ord.
82955 2007-05-01  Bruno Haible  <bruno@clisp.org>
82957         * doc/functions/_Exit_C99.texi: Renamed from doc/functions/_Exit.texi.
82958         Reported by Eric Blake.
82959         * doc/gnulib.texi (Function Substitutes): Update.
82961 2007-05-01  Bruno Haible  <bruno@clisp.org>
82963         * doc/functions.texi: Remove file, now redundant through
82964         doc/functions/*.texi.
82966 2007-05-01  Bruno Haible  <bruno@clisp.org>
82968         * modules/argp (Depends-on): Add sleep.
82970 2007-05-01  Bruno Haible  <bruno@clisp.org>
82972         * modules/sleep-tests: New file.
82973         * tests/test-sleep.c: New file.
82975         * modules/sleep: New file.
82976         * lib/sleep.c: New file.
82977         * m4/sleep.m4: New file.
82978         * lib/unistd_.h (sleep): New declaration.
82979         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_SLEEP,
82980         HAVE_SLEEP.
82981         * modules/unistd (Makefile.am): Substitute GNULIB_SLEEP, HAVE_SLEEP.
82982         * doc/functions/sleep.texi: Document the sleep module.
82984 2007-05-01  Bruno Haible  <bruno@clisp.org>
82986         * lib/sigprocmask.h: Remove file.
82987         * lib/signal_.h: Incorporate the previous contents of sigprocmask.h.
82988         * lib/sigprocmask.c: Include <signal.h> instead of sigprocmask.h.
82989         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Substitute GNULIB_SIGPROCMASK,
82990         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T.
82991         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
82992         gl_SIGNAL_H_DEFAULTS. Set HAVE_POSIX_SIGNALBLOCKING as a shell variable.
82993         (gl_PREREQ_SIGPROCMASK): Require gl_SIGNAL_H_DEFAULTS. Set
82994         HAVE_SIGSET_T as a shell variable.
82995         * modules/signal (Makefile.am): Substitute GNULIB_SIGPROCMASK,
82996         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T into signal.h.
82997         * modules/sigprocmask (Files): Remove lib/sigprocmask.h.
82998         (Depends-on): Add signal. Remove verify.
82999         (configure.ac): Invoke gl_SIGNAL_MODULE_INDICATOR.
83000         (Include): Mention <signal.h> instead of sigprocmask.h.
83001         * NEWS: Mention the change.
83002         * lib/fatal-signal.c: Don't include sigprocmask.h.
83004 2007-05-01  Bruno Haible  <bruno@clisp.org>
83006         * modules/signal: New file.
83007         * lib/signal_.h: New file.
83008         * m4/signal_h.m4: New file.
83010 2007-05-01  Bruno Haible  <bruno@clisp.org>
83012         * lib/wctype_.h: Test HAVE_ISWCNTRL at configure time.
83013         * m4/wctype.m4 (gl_WCTYPE_H): Substitute HAVE_ISWCNTRL.
83014         * modules/wctype (Makefile.am): Substitute HAVE_ISWCNTRL instead of
83015         HAVE_WCTYPE_CTMP_BUG into wctype.h.
83017 2007-05-01  Bruno Haible  <bruno@clisp.org>
83019         * lib/sys_stat_.h: Test HAVE_LSTAT, HAVE_DECL_MKDIR, HAVE_IO_H at
83020         configure time.
83021         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Substitute HAVE_LSTAT,
83022         HAVE_DECL_MKDIR, HAVE_IO_H via AC_SUBST.
83023         * modules/sys_stat (Makefile.am): Substitute their values into
83024         sys/stat.h.
83026 2007-05-01  Bruno Haible  <bruno@clisp.org>
83028         * lib/glob_.h: Test HAVE_SYS_CDEFS_H at configure time.
83029         * m4/glob.m4 (gl_PREREQ_GLOB): Substitute HAVE_SYS_CDEFS_H via AC_SUBST.
83030         * modules/glob (Makefile.am): Put HAVE_SYS_CDEFS_H value into glob.h.
83032 2007-05-01  Bruno Haible  <bruno@clisp.org>
83034         * doc/header/assert.texi: Undo last change: don't mention the gnulib
83035         'assert' module here.
83037 2007-05-01  Bruno Haible  <bruno@clisp.org>
83039         * doc/functions/*.texi: New files.
83040         * doc/functions/google-ranking.txt: New file.
83041         * doc/gnulib.texi (Function Substitutes): New chapter.
83042         (ctime, inet_ntoa): Remove sections.
83043         * doc/ctime.texi: Remove file.
83044         * doc/inet_ntoa.texi: Remove file.
83045         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Update
83046         dependencies.
83047         (%.info): New rule, specifying a --reference-limit.
83049 2007-05-01  Bruno Haible  <bruno@clisp.org>
83051         * MODULES.html.sh (posix_functions): Remove 'exec', 'toc'.
83053 2007-05-01  Bruno Haible  <bruno@clisp.org>
83055         * modules/mkdir (Depends-on): Add sys_stat, because sys_stat provides
83056         the portability of 'mkdir' to mingw systems.
83058 2007-05-01  Bruno Haible  <bruno@clisp.org>
83060         * doc/headers/google-ranking.txt: New file.
83062 2007-04-30  Eric Blake  <ebb9@byu.net>
83064         Prefer fseeko to fseek.
83065         * modules/getpass (Depends-on): Add fseeko.
83066         * lib/getpass.c (getpass): Use fseeko, not fseek.
83068 2007-04-30  Sergey Poznyakoff  <gray@gnu.org.ua>
83070         * lib/argp-help.c (hol_entry_cmp): Option sorting algorithm
83071         assumes the sorting is stable, while most qsort implementations
83072         are not.  Use argument addresses to ensure they never compare as
83073         equal.
83075         * tests/test-argp-2.sh (usage-indent test): Fix output
83076         (func_compare): Restore diff options
83077         * tests/test-argp.c: Restore #include "progname.h"
83079 2007-04-29  Bruno Haible  <bruno@clisp.org>
83081         * m4/printf.m4 (gl_VSNPRINTF_ZEROSIZE_C99): New macro.
83082         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
83083         gl_VSNPRINTF_ZEROSIZE_C99. Test gl_cv_func_vsnprintf_zerosize_c99.
83084         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
83085         * modules/snprintf-posix-tests (Files): Add tests/test-snprintf.c.
83086         (configure.ac): Define CHECK_SNPRINTF_POSIX.
83087         (TESTS, check_PROGRAMS): Add test-snprintf.
83088         * modules/vsnprintf-posix-tests (Files): Add tests/test-vsnprintf.c.
83089         (configure.ac): Define CHECK_VSNPRINTF_POSIX.
83090         (TESTS, check_PROGRAMS): Add test-vsnprintf.
83091         * tests/test-snprintf.c (main) [!CHECK_SNPRINTF_POSIX]: Disable
83092         assertions that fail on HP-UX, OSF/1, or IRIX.
83093         * tests/test-vsnprintf.c (main) [!CHECK_VSNPRINTF_POSIX]: Likewise.
83095 2007-04-29  Bruno Haible  <bruno@clisp.org>
83097         * MODULES.html.sh (posix_functions): Remove 'contents'.
83099 2007-04-29  Karl Berry  <karl@gnu.org>
83101         * config/srclist.txt (gendocs_template_min): new entry.
83103 2007-04-29  Bruno Haible  <bruno@clisp.org>
83105         Work around fpurge bug on BSD systems.
83106         * modules/fpurge (Makefile.am): Compile fpurge.c unconditionally.
83107         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't invoke AC_LIBOBJ.
83108         * lib/fpurge.h (fpurge): Don't handle __fpurge wrapper here. Define
83109         fpurge to rpl_fpurge if the system already has this function.
83110         * lib/fpurge.c (fpurge): Handle also the __fpurge wrapper case and
83111         the case where the system already has this function. Correct invariants
83112         on BSD systems.
83113         * lib/fseeko.c (rpl_fseeko): Update recognition of preceding fflush on
83114         BSD systems.
83116 2007-04-29  Sergey Poznyakoff  <gray@gnu.org.ua>
83118         * lib/argp-help.c (hol_cluster_cmp): Reverse comparison.  Change
83119         proposed by Sven Verdoolaege.
83121         * tests/test-argp.c: Fix option ordering.  Test deeply clustered
83122         options.
83123         * tests/test-argp-2.sh (func_compare): Use diff instead of cmp.
83124         (usage and help tests): Update
83126 2007-04-29  Bruno Haible  <bruno@clisp.org>
83128         * tests/test-fflush.c (main): Use a file of size 17, not 10.
83129         Print more information in case of failure. Disable a test on BeOS.
83131 2007-04-29  Bruno Haible  <bruno@clisp.org>
83133         * tests/**/test-*.[hc] (ASSERT): Use fprintf to show the line number.
83134         This helps debugging on systems on which no gdb is available.
83136 2007-04-29  Bruno Haible  <bruno@clisp.org>
83138         * lib/freading.h: Improve comments.
83139         * lib/fwriting.h: Likewise.
83140         * tests/test-freading.c (main): Don't check freading immediately after
83141         repositioning. Needed for glibc.
83143 2007-04-29  Bruno Haible  <bruno@clisp.org>
83145         * lib/freading.c (freading): Trivial simplification.
83147 2007-04-28  Bruno Haible  <bruno@clisp.org>
83149         * tests/test-fwriting.c (main): Also test the interaction between
83150         fflush and fwriting.
83151         * modules/fwriting-tests (Depends-on): Add fflush.
83153         * tests/test-freading.c (main): Also test the interaction between
83154         fflush and freading.
83155         * modules/freading-tests (Depends-on): Add fflush.
83157 2007-04-28  Bruno Haible  <bruno@clisp.org>
83159         * lib/stdio_.h (fseek, ftell): Provide link warnings suggesting to use
83160         fseeko and ftello.
83161         Suggested by Eric Blake.
83163 2007-04-28  Jim Meyering  <jim@meyering.net>
83165         Avoid false-negative in gl_STDINT_H's C99 conformance test.
83166         * m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms
83167         to C99, include all of gl_STDINT_INCLUDES, not just <stddef.h>.
83169 2007-04-27  Eric Blake  <ebb9@byu.net>
83171         * doc/headers/assert.texi (assert.h): Document assert module use.
83173 2007-04-27  Bruno Haible  <bruno@clisp.org>
83175         * doc/headers/*.texi: New files.
83176         * doc/gnulib.texi (Header File Substitutes): New chapter.
83177         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Specify
83178         dependencies.
83179         (standards.info ,standards.html, standards.dvi): Update dependencies.
83180         (mostlyclean, clean): New targets.
83182 2007-04-27  Bruno Haible  <bruno@clisp.org>
83184         * lib/sysexits_.h: Renamed from lib/sysexit_.h.
83185         * modules/sysexits (Files, Makefile.am): Update.
83187         * lib/sys_socket_.h: Renamed from lib/socket_.h.
83188         * modules/sys_socket (Files, Makefile.am): Update.
83190         * lib/sys_stat_.h: Renamed from lib/stat_.h.
83191         * modules/sys_stat (Files, Makefile.am): Update.
83193 2007-04-27  Eric Blake  <ebb9@byu.net>
83195         * lib/freading.h: Improve comments.
83196         * lib/fwriting.h: Likewise.
83197         * lib/fflush.c: Likewise.
83199         Fix closein for mingw.
83200         * modules/closein-tests: Add tests for closein.
83201         * tests/test-closein.c: New file.
83202         * tests/test-closein.sh: Likewise.
83203         * lib/unistd_.h [!SEEK_CUR]: Mingw also needs stdlib.h for _exit.
83204         * lib/closein.c (close_stdin): Don't fflush non-seekable streams.
83206 2007-04-27  Bruno Haible  <bruno@clisp.org>
83208         * lib/inttypes_.h [_DECC]: Don't use #include_next if the compiler
83209         version is < 6.
83210         * lib/math_.h [__DECC]: Likewise.
83211         * lib/stdio_.h [__DECC]: Likewise.
83212         * lib/stdlib_.h [__DECC]: Likewise.
83213         * lib/string_.h [__DECC]: Likewise.
83214         * lib/time_.h [__DECC]: Likewise.
83215         * lib/wchar_.h [__DECC]: Likewise.
83216         * lib/wctype_.h [__DECC]: Likewise.
83218 2007-04-27  Bruno Haible  <bruno@clisp.org>
83220         * tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw.
83222 2007-04-27  Bruno Haible  <bruno@clisp.org>
83224         * lib/fflush.c: Add comments.
83225         * modules/fpurge-tests (Depends-on): Add fflush.
83226         * modules/freadable-tests (Depends-on): Likewise.
83227         * modules/fwritable-tests (Depends-on): Likewise.
83229 2007-04-27  Charles Wilson  <libtool@cwilson.fastmail.fm>
83231         * m4/argz.m4 (gl_FUNC_ARGZ): Use !HAVE_WORKING_ARGZ instead of
83232         SYSTEM_ARGZ_IS_BROKEN.  Also, minor stylistic improvements.
83233         Report by Bruno Haible <bruno@clisp.org>.
83235 2007-04-26  Eric Blake  <ebb9@byu.net>
83237         Fix fflush on mingw.
83238         * modules/fflush (Depends-on): Add freading.
83239         * lib/fflush.c (rpl_fflush): Use freading to avoid losing buffered
83240         but unread data.
83242 2007-04-26  Eric Blake  <ebb9@byu.net>
83243         and Bruno Haible  <bruno@clisp.org>
83245         Implement freading and fwriting.
83246         * lib/freading.c: New file.
83247         * lib/freading.h: Likewise.
83248         * m4/freading.m4: Likewise.
83249         * modules/freading: Likewise.
83250         * modules/freading-tests: Likewise.
83251         * tests/test-freading.c: Likewise.
83252         * lib/fwriting.c: New file.
83253         * lib/fwriting.h: Likewise.
83254         * m4/fwriting.m4: Likewise.
83255         * modules/fwriting: Likewise.
83256         * modules/fwriting-tests: Likewise.
83257         * tests/test-fwriting.c: Likewise.
83258         * MODULES.html.sh (File stream based Input/Output): Mention them.
83260 2007-04-26  Bruno Haible  <bruno@clisp.org>
83262         * lib/stdio_.h (fseeko, ftello): Check that off_t has the same size as
83263         'long' when we assume it.
83264         Suggested by Eric Blake.
83266 2007-04-26  Bruno Haible  <bruno@clisp.org>
83268         Ensure fseeko, ftello are declared on glibc systems.
83269         * modules/fflush (configure.ac-early): Require AC_FUNC_FSEEKO.
83270         * modules/fseeko (configure.ac-early): Likewise.
83271         * modules/ftello (configure.ac-early): Likewise.
83272         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't define HAVE_FSEEKO, rely on
83273         AC_FUNC_FSEEKO for this.
83274         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Inline gl_CHECK_FSEEKO.
83275         (gl_CHECK_FSEEKO): Remove macro.
83277 2007-04-26  Bruno Haible  <bruno@clisp.org>
83279         * tests/test-fflush.c (main): Also check the ftell result after
83280         fflush and fseek/fseeko.
83281         * lib/fflush.c (rpl_fflush): For BSD implementations, update the
83282         file descriptor position cache in the stream.
83283         * lib/fseeko.c (rpl_fseeko): Likewise.
83285 2007-04-26  Bruno Haible  <bruno@clisp.org>
83287         * modules/fflush-tests (Depends-on): Add fseeko.
83289 2007-04-25  Charles Wilson  <libtool@cwilson.fastmail.fm>
83290             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
83292         * lib/argz_.h: ensure error_t definition is obtained in same
83293         mechanism system argz.h would have.
83294         * m4/argz.m4 (gl_FUNC_ARGZ): add new test to check if $host's
83295         argz facilities are known bad.  Err on the side of caution if
83296         cross-compiling.
83298 2007-04-25  Eric Blake  <ebb9@byu.net>
83300         * lib/fpurge.c (includes): Use stdlib.h for free.
83301         * tests/test-fflush.c (main): Also test fflush-fseeko.
83303 2007-04-25  Bruno Haible  <bruno@clisp.org>
83305         Make fflush+fseek POSIX-compliant on FreeBSD and MacOS X.
83306         * lib/fseeko.c: New file.
83307         * lib/stdio_.h: Include <sys/types.h> when off_t is needed.
83308         (fseeko, fseek): Define to replacements if REPLACE_FFLUSH.
83309         * m4/fseeko.m4 (gl_CHECK_FSEEKO): New macro, extracted from
83310         gl_FUNC_FSEEKO.
83311         (gl_FUNC_FSEEKO): Invoke it.
83312         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Arrange to compile fseeko.c. Invoke
83313         gl_CHECK_FSEEKO. Define HAVE_FSEEKO.
83314         * modules/fflush (Files): Add lib/fseeko.c, m4/fseeko.m4.
83316 2007-04-25  Bruno Haible  <bruno@clisp.org>
83318         * modules/fflush (Depends-on): Add ftello.
83320 2007-04-25  Bruno Haible  <bruno@clisp.org>
83322         * modules/ftello-tests: New file.
83323         * tests/test-ftello.c: New file.
83325         * modules/ftello: New file.
83326         * m4/ftello.m4: New file.
83327         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELLO,
83328         HAVE_FTELLO.
83329         * lib/stdio_.h (ftello): New declaration.
83330         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELLO,
83331         HAVE_FTELLO.
83333 2007-04-25  Bruno Haible  <bruno@clisp.org>
83335         * modules/fseeko-tests: New file.
83336         * tests/test-fseeko.c: New file.
83338         * modules/fseeko: New file.
83339         * m4/fseeko.m4: New file.
83340         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEKO,
83341         HAVE_FSEEKO.
83342         * lib/stdio_.h (fseeko): New declaration.
83343         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEKO,
83344         HAVE_FSEEKO.
83346 2007-04-25  Bruno Haible  <bruno@clisp.org>
83348         * lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK.
83350 2007-04-25  Bruno Haible  <bruno@clisp.org>
83352         * lib/unistd_.h: Include <stdio.h> if needed to get the SEEK_* macros.
83353         * tests/test-stdio.c: Check that the various SEEK_* macros are defined.
83354         * tests/test-unistd.c: Likewise.
83355         * tests/test-fcntl.c: Likewise.
83357 2007-04-23  Eric Blake  <ebb9@byu.net>
83359         * lib/fflush.c: Fix missing include.
83360         Reported by Bruno Haible.
83362 2007-04-23  Bruno Haible  <bruno@clisp.org>
83364         * lib/fpurge.c (fpurge) [glibc, BSD]: Free a malloc()ed ungetc buffer.
83365         Reported by Eric Blake.
83367 2007-04-23  Bruno Haible  <bruno@clisp.org>
83369         * lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64.
83371 2007-04-23  Bruno Haible  <bruno@clisp.org>
83373         * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR.
83375 2007-04-23  Bruno Haible  <bruno@clisp.org>
83377         * tests/test-fbufmode.c (main): Be prepared to a failure of setvbuf.
83378         Needed on HP-UX 11.
83380 2007-04-16  Eric Blake  <ebb9@byu.net>
83382         Make fflush rely on fpurge.
83383         * lib/fflush.c (rpl_fflush): Rely on fpurge module, rather than
83384         open coding all variants.
83385         * modules/fflush (Depends-on): Add fpurge and unistd.
83386         * modules/fflush-tests (Depends-on): Unistd is no longer extra.
83387         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Simplify.
83389         Fix --with-tests compilation on cygwin.
83390         * modules/argmatch-tests (Makefile.am): List gnulib library first
83391         in LDADD.
83392         * modules/argp-tests (Makefile.am): Likewise.
83393         * modules/array-list-tests (Makefile.am): Likewise.
83394         * modules/array-oset-tests (Makefile.am): Likewise.
83395         * modules/avltree-list-tests (Makefile.am): Likewise.
83396         * modules/avltree-oset-tests (Makefile.am): Likewise.
83397         * modules/avltreehash-list-tests (Makefile.am): Likewise.
83398         * modules/carray-list-tests (Makefile.am): Likewise.
83399         * modules/dirname-tests (Makefile.am): Likewise.
83400         * modules/frexp-tests (Makefile.am): Likewise.
83401         * modules/isnanl-tests (Makefile.am): Likewise.
83402         * modules/linked-list-tests (Makefile.am): Likewise.
83403         * modules/linkedhash-list-tests (Makefile.am): Likewise.
83404         * modules/lock-tests (Makefile.am): Likewise.
83405         * modules/rbtree-list-tests (Makefile.am): Likewise.
83406         * modules/rbtree-oset-tests (Makefile.am): Likewise.
83407         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
83408         * modules/tls-tests (Makefile.am): Likewise.
83409         * modules/tsearch-tests (Makefile.am): Likewise.
83410         * modules/xvasprintf-tests (Makefile.am): Likewise.
83412         Fix fpurge for cygwin.
83413         * lib/fpurge.c (fpurge): Fix order of operation flub, and return a
83414         value.
83415         * modules/fpurge-tests (Depends-on): Clean up trash.
83417 2007-04-16  Simon Josefsson  <simon@josefsson.org>
83419         * lib/gc-libgcrypt.c (gc_hash_open): Shut up compiler warnings.
83421         * m4/autobuild.m4: Re-indent.
83423 2007-04-13  Bruno Haible  <bruno@clisp.org>
83425         * modules/fpurge-tests: New file.
83426         * tests/test-fpurge.c: New file.
83428         * modules/fpurge: New file.
83429         * lib/fpurge.h: New file.
83430         * lib/fpurge.c: New file.
83431         * m4/fpurge.m4: New file.
83433 2007-04-13  Bruno Haible  <bruno@clisp.org>
83435         * modules/fbufmode-tests: New file.
83436         * tests/test-fbufmode.c: New file.
83438         * modules/fbufmode: New file.
83439         * lib/fbufmode.h: New file.
83440         * lib/fbufmode.c: New file.
83441         * m4/fbufmode.m4: New file.
83443 2007-04-13  Bruno Haible  <bruno@clisp.org>
83445         * modules/fwritable-tests: New file.
83446         * tests/test-fwritable.c: New file.
83448         * modules/fwritable: New file.
83449         * lib/fwritable.h: New file.
83450         * lib/fwritable.c: New file.
83451         * m4/fwritable.m4: New file.
83453 2007-04-13  Bruno Haible  <bruno@clisp.org>
83455         * modules/freadable-tests: New file.
83456         * tests/test-freadable.c: New file.
83458         * modules/freadable: New file.
83459         * lib/freadable.h: New file.
83460         * lib/freadable.c: New file.
83461         * m4/freadable.m4: New file.
83463 2007-04-13  Bruno Haible  <bruno@clisp.org>
83465         * modules/fflush-tests (Makefile.am): Remove EXTRA_DIST. Augment
83466         MOSTLYCLEANFILES.
83468 2007-04-13  Paul Eggert  <eggert@cs.ucla.edu>
83470         * build-aux/bootstrap (gnulib_tool_option_extras): New var, used by
83471         gzip bootstrap.conf to avoid dragging in i18n machinery.
83472         (gnulib_tool_option): Use it.
83474 2007-04-13  Bruno Haible  <bruno@clisp.org>
83476         * tests/test-vasnprintf-posix.c (test_function): Add tests for %f and
83477         %F directives.
83478         * tests/test-vasprintf-posix.c (test_function): Likewise.
83479         * tests/test-snprintf-posix.h (test_function): Likewise.
83480         * tests/test-sprintf-posix.h (test_function): Likewise.
83481         * tests/test-fprintf-posix.h (test_function): Likewise.
83482         * tests/test-printf-posix.h (test_function): Likewise.
83483         * tests/test-fprintf-posix.out: Likewise.
83485 2007-04-13  Bruno Haible  <bruno@clisp.org>
83487         * modules/lock-tests (configure.ac): For LIBSCHED, try also -lposix4.
83488         * modules/tls-tests (configure.ac): Likewise.
83489         Reported by Arto C. Nirkko <anirkko@insel.ch>.
83491 2007-04-13  Bruno Haible  <bruno@clisp.org>
83493         * lib/tls.c (glthread_tls_get): Fix return type.
83494         Patch by Arto C. Nirkko <anirkko@insel.ch>.
83496 2007-04-12  Eric Blake  <ebb9@byu.net>
83498         * modules/gettime (Depends-on): Remove gettime.
83499         Reported by Dmitry V. Levin.
83501 2007-04-12  Bruno Haible  <bruno@clisp.org>
83503         * modules/fflush (Include): Mention <stdio.h>.
83504         * modules/strtoimax (Include): Mention <inttypes.h>.
83505         * modules/strtoumax (Include): Likewise.
83507 2007-04-12  Eric Blake  <ebb9@byu.net>
83509         * .cvsignore: New file.
83510         * .gitignore: Likewise.
83512 2007-04-12  Bruno Haible  <bruno@clisp.org>
83514         * modules/iconv-tests (test_iconv_LDADD): Mention -liconv after LDADD,
83515         not before, since $(LDADD) often contains libgnu.a.
83516         * modules/striconv-tests (test_striconv_LDADD): Likewise.
83517         * modules/striconveh-tests (test_striconveh_LDADD): Likewise.
83518         * modules/striconveha-tests (test_striconveha_LDADD): Likewise.
83519         Needed on Cygwin.
83521 2007-04-12  Eric Blake  <ebb9@byu.net>
83523         Work around glibc's failure to flush stdin on fclose.
83524         * lib/closein.c (close_stdin): Flush stdin before closing.
83526         Work around glibc's failure to reset seekable stdin on exit.
83527         * modules/closein: New module.
83528         * lib/closein.c: New file.
83529         * lib/closein.h: Likewise.
83530         * m4/closein.m4: Likewise.
83531         * MODULES.html.sh (File stream based Input/Output): Document it.
83533 2007-04-12  Simon Josefsson  <simon@josefsson.org>
83535         * gnulib-tool: Rename generated 'autobuild' script to
83536         'do-autobuild' in --create-megatestdir output.
83538         * doc/gnulib.texi (Build robot for gnulib): Fix.
83540 2007-04-12  Simon Josefsson  <simon@josefsson.org>
83542         * modules/sysexits (Depends-on): Add absolute-header.
83544 2007-04-12  Eric Blake  <ebb9@byu.net>
83546         No need to preserve errno on success.
83547         * lib/fflush.c (rpl_fflush): Simplify errno tracking.
83548         Reported by Bruno Haible.
83550 2007-04-12  Simon Josefsson  <simon@josefsson.org>
83552         * MODULES.html.sh (Support for maintaining and releasing
83553         projects): Add autobuild.  Suggested by Eric Blake <ebb9@byu.net>.
83555 2007-04-12  Simon Josefsson  <simon@josefsson.org>
83557         * gnulib-tool (func_modules_add_dummy): Respect --avoid=dummy.
83559 2007-04-12  Simon Josefsson  <simon@josefsson.org>
83561         * modules/autobuild: New module.
83563         * m4/autobuild.m4: New file.
83565 2007-04-11  Bruno Haible  <bruno@clisp.org>
83567         * lib/vasnprintf.c (VASNPRINTF): Implement the %F directive using the
83568         %f directive, if NEED_PRINTF_DIRECTIVE_F is defined.
83569         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): New macro.
83570         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_F): New macro.
83571         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
83572         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
83573         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
83574         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
83575         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
83576         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
83577         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Invoke
83578         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
83579         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
83580         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Invoke
83581         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
83582         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
83583         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Invoke
83584         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
83585         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
83586         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Invoke
83587         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
83588         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
83589         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Invoke
83590         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
83591         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
83592         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Invoke
83593         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
83594         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
83595         Reported by Eric Blake.
83597 2007-04-11  Bruno Haible  <bruno@clisp.org>
83599         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Fix test. It always failed.
83601 2007-04-10  Bruno Haible  <bruno@clisp.org>
83603         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct result
83604         for NaN and Infinity. Needed on FreeBSD 6.1.
83605         * tests/test-vasnprintf-posix.c (test_function): Undo last change
83606         regarding results for "%010a" of Infinity and NaN.
83607         * tests/test-vasprintf-posix.c (test_function): Likewise.
83608         * tests/test-snprintf-posix.h (test_function): Likewise.
83609         * tests/test-sprintf-posix.h (test_function): Likewise.
83610         * tests/test-fprintf-posix.h (test_function): Likewise.
83611         * tests/test-printf-posix.h (test_function): Likewise.
83612         * tests/test-fprintf-posix.out: Likewise.
83614 2007-04-10  Bruno Haible  <bruno@clisp.org>
83616         * modules/locale-tests: New file.
83617         * tests/test-locale.c: New file.
83619         * modules/locale: New file.
83620         * lib/locale_.h: New file.
83621         * m4/locale_h.m4: New file.
83623 2007-04-10  Paul Eggert  <eggert@cs.ucla.edu>
83624             Bruno Haible  <bruno@clisp.org>
83626         * m4/signbit.m4 (gl_SIGNBIT): When the sign bit position could not
83627         be determined, test for availability of the copysignf, copysign,
83628         copysignl functions.
83629         * lib/signbitf.c (gl_signbitf): Use copysignf if available in libc.
83630         * lib/signbitd.c (gl_signbitd): Use copysign if available in libc.
83631         * lib/signbitl.c (gl_signbitl): Use copysignl if available in libc.
83633 2007-04-09  Eric Blake  <ebb9@byu.net>
83635         * lib/stdio_.h [REPLACE_FFLUSH]: Declare rpl_fflush.
83636         * modules/stdio (Makefile.am): Support fflush.
83637         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
83638         * modules/fflush: New file.
83639         * lib/fflush.c: Likewise.
83640         * m4/fflush.m4: Likewise.
83641         * modules/fflush-tests: New test.
83642         * tests/test-fflush.c: Likewise.
83643         * MODULES.html.sh (Input/output <stdio.h>): Document new module.
83645 2007-04-06  Bruno Haible  <bruno@clisp.org>
83647         * lib/vasnprintf.c: Include <math.h>. Don't include float+.h.
83648         (VASNPRINTF): Use signbit for faster determination whether to print a
83649         minus sign.
83650         * modules/vasnprintf (Files): Remove lib/float+.h.
83651         * modules/fprintf-posix (Depends-on): Add signbit.
83652         * modules/snprintf-posix (Depends-on): Likewise.
83653         * modules/sprintf-posix (Depends-on): Likewise.
83654         * modules/vasnprintf-posix (Depends-on): Likewise.
83655         * modules/vasprintf-posix (Depends-on): Likewise.
83656         * modules/vfprintf-posix (Depends-on): Likewise.
83657         * modules/vsnprintf-posix (Depends-on): Likewise.
83658         * modules/vsprintf-posix (Depends-on): Likewise.
83660 2007-04-06  Bruno Haible  <bruno@clisp.org>
83662         * tests/test-frexp.c (main): Test also the sign bit of zero results.
83663         * tests/test-frexpl.c (main): Likewise.
83664         * tests/test-ldexpl.c (main): Likewise.
83665         * modules/frexp-tests (Depends-on): Add signbit.
83666         * modules/frexpl-tests (Depdends-on): Likewise.
83667         * modules/ldexpl-tests (Depdends-on): Likewise.
83669 2007-04-06  Bruno Haible  <bruno@clisp.org>
83671         * modules/signbit-tests: New file.
83672         * tests/test-signbit.c: New file.
83674         * modules/signbit: New file.
83675         * lib/signbitf.c: New file.
83676         * lib/signbitd.c: New file.
83677         * lib/signbitl.c: New file.
83678         * m4/signbit.m4: New file.
83679         * lib/math_.h (gl_signbitf, gl_signbitd, gl_signbitl): New declarations.
83680         (signbit): New macro.
83681         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_SIGNBIT and
83682         REPLACE_SIGNBIT.
83683         * modules/math (Makefile.am): Substitute also GNULIB_SIGNBIT and
83684         REPLACE_FREXPL into math.h.
83686 2007-04-06  Bruno Haible  <bruno@clisp.org>
83688         * modules/isnanf-nolibm-tests: New file.
83689         * tests/test-isnanf.c: New file.
83691         * modules/isnanf-nolibm: New file.
83692         * lib/isnanf.h: New file.
83693         * lib/isnanf.c: New file.
83694         * lib/isnan.c: Consider the USE_FLOAT macro.
83695         * m4/isnanf.m4: New file.
83697 2007-04-06  Bruno Haible  <bruno@clisp.org>
83699         * modules/gettext-h (configure.ac): AC_SUBST LIBINTL and LTLIBINTL.
83700         (Link): New section.
83702         * modules/canonicalize-lgpl-tests (Makefile.am): Undo last change.
83704 2007-04-06  Bruno Haible  <bruno@clisp.org>
83706         Assume the 'long double' type.
83707         * m4/longdouble.m4: Remove file.
83708         * config/srclist.txt: Don't mention longdouble.m4.
83709         * lib/allocsa.h: Assume HAVE_LONG_DOUBLE to be true.
83710         * lib/float+.h: Likewise.
83711         * lib/frexp.c: Likewise.
83712         * lib/printf-args.h: Likewise.
83713         * lib/printf-args.c: Likewise.
83714         * lib/printf-frexp.c: Likewise.
83715         * lib/printf-parse.c: Likewise.
83716         * lib/vasnprintf.c: Likewise.
83717         * m4/allocsa.m4: Remove gt_TYPE_LONGDOUBLE invocation.
83718         * m4/intl.m4: Likewise.
83719         * m4/isnanl.m4: Likewise.
83720         * m4/printf.m4: Likewise.
83721         * m4/printf-frexpl.m4: Likewise.
83722         * m4/vasnprintf.m4: Likewise.
83723         * modules/allocsa (Files): Remove m4/longdouble.m4.
83724         * modules/gettext (Files): Likewise.
83725         * modules/relocatable-prog-wrapper (Files): Likewise.
83726         * modules/vasnprintf (Files): Likewise.
83727         * modules/isnanl (Files): Likewise.
83728         (Include): Simplify.
83729         * modules/isnanl-nolibm (Files): Remove m4/longdouble.m4.
83730         (Include): Simplify.
83731         * modules/printf-frexpl (Files): Remove m4/longdouble.m4.
83732         (Include): Simplify.
83733         * modules/snprintf-posix-tests (Files): Remove m4/longdouble.m4.
83734         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
83735         * modules/sprintf-posix-tests (Files): Remove m4/longdouble.m4.
83736         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
83737         * modules/vasnprintf-posix-tests (Files): Remove m4/longdouble.m4.
83738         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
83739         * modules/vasprintf-posix-tests (Files): Remove m4/longdouble.m4.
83740         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
83741         * modules/vsnprintf-posix-tests (Files): Remove m4/longdouble.m4.
83742         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
83743         * modules/vsprintf-posix-tests (Files): Remove m4/longdouble.m4.
83744         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
83745         * tests/test-isnanl-nolibm.c: Assume HAVE_LONG_DOUBLE to be true.
83746         * tests/test-isnanl.c: Likewise.
83747         * tests/test-snprintf-posix.h: Likewise.
83748         * tests/test-sprintf-posix.h: Likewise.
83749         * tests/test-vasnprintf-posix.c: Likewise.
83750         * tests/test-vasnprintf-posix2.c: Likewise.
83751         * tests/test-vasprintf-posix.c: Likewise.
83753 2007-04-06  Bruno Haible  <bruno@clisp.org>
83755         Fix problem with Compaq (ex-DEC) Desktop C compiler on Tru64.
83756         * lib/math_.h [__DECC]: Include the overridden include file through
83757         #include_next, outside the double-inclusion guard.
83758         * lib/stdio_.h [__DECC]: Likewise.
83759         * lib/stdlib_.h [__DECC]: Likewise.
83760         * lib/string_.h [__DECC]: Likewise.
83761         * lib/time_.h [__DECC]: Likewise.
83762         * lib/wchar_.h [__DECC]: Likewise.
83763         * lib/wctype_.h [__DECC]: Likewise.
83764         * lib/inttypes_.h [__DECC]: Likewise.
83765         Reported by Albert Chin <china@thewrittenword.com> in
83766         <http://lists.gnu.org/archive/html/bug-gnulib/2007-04/msg00088.html>.
83768 2007-04-04  Eric Blake  <ebb9@byu.net>
83770         * m4/stdint.m4 (gl_STDINT_H): Detect WINT_MAX bug in cygwin
83771         1.5.x.
83773 2007-04-04  Bruno Haible  <bruno@clisp.org>
83775         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct
83776         rounding. Don't assume that FreeBSD 6 and NetBSD 4 pass this test.
83778 2007-04-04  Bruno Haible  <bruno@clisp.org>
83780         * tests/test-vasnprintf-posix.c (test_function): Allow two possible
83781         results for "%010a" of Infinity and NaN.
83782         * tests/test-vasprintf-posix.c (test_function): Likewise.
83783         * tests/test-snprintf-posix.h (test_function): Likewise.
83784         * tests/test-sprintf-posix.h (test_function): Likewise.
83785         * tests/test-fprintf-posix.h (test_function): Remove these tests.
83786         * tests/test-printf-posix.h (test_function): Likewise.
83787         * tests/test-fprintf-posix.out: Update.
83788         Needed for FreeBSD 6.1.
83790 2007-04-04  Bruno Haible  <bruno@clisp.org>
83792         * DEPENDENCIES: Remove mentions of tar and gzip, since they are not
83793         directly used by the gnulib modules nor by gnulib-tool.
83795 2007-04-04  Paul Eggert  <eggert@cs.ucla.edu>
83797         * DEPENDENCIES: Give overall description of version dependency
83798         desirability.  Use more-typical names for apps.
83799         Add shell, coreutils, diffutils, grep, tar, gzip.
83801 2007-04-04  Simon Josefsson  <simon@josefsson.org>
83803         * MODULES.html.sh: Rename crypto modules.  Remove iconvme.
83805 2007-04-04  Karl Berry  <karl@gnu.org>
83807         * MODULES.html.sh (func_module): missing '.
83809 2007-04-03  Bruno Haible  <bruno@clisp.org>
83811         * modules/argmatch-tests (Makefile.am): New variable
83812         test_argmatch_LDADD.
83813         * modules/argp-tests (Makefile.am): New variable test_argp_LDADD.
83814         * modules/array-list-tests (Makefile.am): New variable
83815         test_array_list_LDADD.
83816         * modules/array-oset-tests (Makefile.am): New variable
83817         test_array_oset_LDADD.
83818         * modules/avltree-list-tests (Makefile.am): New variable
83819         test_avltree_list_LDADD.
83820         * modules/avltree-oset-tests (Makefile.am): New variable
83821         test_avltree_oset_LDADD.
83822         * modules/avltreehash-list-tests (Makefile.am): New variable
83823         test_avltreehash_list_LDADD.
83824         * modules/canonicalize-lgpl-tests (Makefile.am): New variable
83825         test_canonicalize_lgpl_LDADD.
83826         * modules/carray-list-tests (Makefile.am): New variable
83827         test_carray_list_LDADD.
83828         * modules/dirname-tests (Makefile.am): New variable
83829         test_dirname_LDADD.
83830         * modules/linked-list-tests (Makefile.am): New variable
83831         test_linked_list_LDADD.
83832         * modules/linkedhash-list-tests (Makefile.am): New variable
83833         test_linkedhash_list_LDADD.
83834         * modules/rbtree-list-tests (Makefile.am): New variable
83835         test_rbtree_list_LDADD.
83836         * modules/rbtree-oset-tests (Makefile.am): New variable
83837         test_rbtree_oset_LDADD.
83838         * modules/rbtreehash-list-tests (Makefile.am): New variable
83839         test_rbtreehash_list_LDADD.
83840         * modules/xvasprintf-tests (Makefile.am): New variable
83841         test_xvasprintf_LDADD.
83842         Reported by Eric Blake.
83844 2007-04-03  Eric Blake  <ebb9@byu.net>
83846         * DEPENDENCIES: Weaken m4 requirements.
83848 2007-04-03  Bruno Haible  <bruno@clisp.org>
83850         * modules/frexp-tests (configure.ac): Remove AC_SUBST.
83851         * modules/isnanl-tests (configure.ac): Likewise.
83853 2007-04-03  Ben Pfaff  <blp@gnu.org>
83855         * modules/iconv_open: Add $(srcdir)/ to source directory
83856         references in Makefile fragments that call gperf, to fix VPATH
83857         builds.
83859 2007-04-03  Bruno Haible  <bruno@clisp.org>
83861         * modules/ldexpl (Depends-on): Add isnanl, remove isnanl-nolibm.
83862         * lib/ldexpl.c: Undo last change.
83864 2007-04-03  Bruno Haible  <bruno@clisp.org>
83866         * modules/printf-frexpl (Depends-on): Undo last change.
83867         (Files): Add m4/ldexpl.m4.
83869 2007-04-03  Bruno Haible  <bruno@clisp.org>
83871         * m4/isnanl.m4 (gl_FUNC_ISNANL): Substitute ISNANL_LIBM.
83872         * modules/isnanl (Link): New section.
83874         * m4/frexp.m4 (gl_FUNC_FREXP): Substitute FREXP_LIBM.
83875         * modules/frexp (Link): New section.
83877         * m4/frexpl.m4 (gl_FUNC_FREXPL): Substitute FREXPL_LIBM.
83878         * modules/frexpl (Link): New section.
83880         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Substitute LDEXPL_LIBM.
83881         * modules/ldexpl (Link): New section.
83883 2007-04-03  Bruno Haible  <bruno@clisp.org>
83885         * modules/TEMPLATE-EXTENDED: New file.
83886         * gnulib-tool (func_all_modules, func_verify_module): Exclude it.
83888 2007-04-03  Bruno Haible  <bruno@clisp.org>
83890         * DEPENDENCIES: New file.
83891         Suggested by Simon Josefsson.
83893 2007-04-03  Bruno Haible  <bruno@clisp.org>
83895         * doc/gnulib.texi: Escape @.
83897 2007-04-03  James Youngman  <jay@gnu.org>
83898         and Paul Eggert  <eggert@cs.ucla.edu>
83900         * lib/stat-time.h (get_stat_birthtime): Check for zero-valued
83901         birthtime on all systems that have birthtime, not just those which
83902         use st_birthtimensec rather than st_birthtim.  Putting zero in
83903         st_birthtim.tv_sec is how (for example) FreeBSD/x86 6.1 indicates
83904         that the birth time is not available for files on an NFS mount.
83906 2007-04-03  Simon Josefsson  <simon@josefsson.org>
83908         * modules/memxor: Move back from crypto/, suggested by Bruno.
83909         * modules/crypto/hmac-sha1: Fix memxor dependency.
83911         * modules/crypto/gc: Moved from ../.
83913 2007-04-02  Eric Blake  <ebb9@byu.net>
83915         * lib/ldexpl.c (includes): Avoid libm.
83917         * modules/printf-frexpl (Depends-on): Depend on ldexpl.
83919 2007-04-02  Bruno Haible  <bruno@clisp.org>
83921         * lib/sysexit_.h (EX_OK): Disable the EX_OK definition from <unistd.h>
83922         on IRIX.
83924 2007-04-02  Bruno Haible  <bruno@clisp.org>
83926         * m4/intdiv0.m4 (gt_INTDIV0): Avoid performing the test for real on
83927         x86 or x86_64 platforms running MacOS X.
83928         Reported by Ryan Schmidt <@ryandesign.com>.
83930 2007-04-02  Bruno Haible  <bruno@clisp.org>
83932         * m4/intdiv0.m4 (gt_INTDIV0): When cross-compiling, treat x86_64 like
83933         i386.
83935 2007-04-01  Simon Josefsson  <simon@josefsson.org>
83937         * modules/crypto/arcfour: Moved from ../.
83938         * modules/crypto/arcfour-tests: Moved from ../.
83939         * modules/crypto/arctwo: Moved from ../.
83940         * modules/crypto/arctwo-tests: Moved from ../.
83941         * modules/crypto/des: Moved from ../.
83942         * modules/crypto/des-tests: Moved from ../.
83943         * modules/crypto/gc-arcfour: Moved from ../.
83944         * modules/crypto/gc-arcfour-tests: Moved from ../.
83945         * modules/crypto/gc-arctwo: Moved from ../.
83946         * modules/crypto/gc-arctwo-tests: Moved from ../.
83947         * modules/crypto/gc-des: Moved from ../.
83948         * modules/crypto/gc-des-tests: Moved from ../.
83949         * modules/crypto/gc-hmac-md5: Moved from ../.
83950         * modules/crypto/gc-hmac-md5-tests: Moved from ../.
83951         * modules/crypto/gc-hmac-sha1: Moved from ../.
83952         * modules/crypto/gc-hmac-sha1-tests: Moved from ../.
83953         * modules/crypto/gc-md2: Moved from ../.
83954         * modules/crypto/gc-md2-tests: Moved from ../.
83955         * modules/crypto/gc-md4: Moved from ../.
83956         * modules/crypto/gc-md4-tests: Moved from ../.
83957         * modules/crypto/gc-md5: Moved from ../.
83958         * modules/crypto/gc-md5-tests: Moved from ../.
83959         * modules/crypto/gc-pbkdf2-sha1: Moved from ../.
83960         * modules/crypto/gc-pbkdf2-sha1-tests: Moved from ../.
83961         * modules/crypto/gc-random: Moved from ../.
83962         * modules/crypto/gc-rijndael: Moved from ../.
83963         * modules/crypto/gc-rijndael-tests: Moved from ../.
83964         * modules/crypto/gc-sha1: Moved from ../.
83965         * modules/crypto/gc-sha1-tests: Moved from ../.
83966         * modules/crypto/gc-tests: Moved from ../.
83967         * modules/crypto/hmac-md5: Moved from ../.
83968         * modules/crypto/hmac-md5-tests: Moved from ../.
83969         * modules/crypto/hmac-sha1: Moved from ../.
83970         * modules/crypto/hmac-sha1-tests: Moved from ../.
83971         * modules/crypto/md2: Moved from ../.
83972         * modules/crypto/md2-tests: Moved from ../.
83973         * modules/crypto/md4: Moved from ../.
83974         * modules/crypto/md4-tests: Moved from ../.
83975         * modules/crypto/md5: Moved from ../.
83976         * modules/crypto/md5-tests: Moved from ../.
83977         * modules/crypto/memxor: Moved from ../.
83978         * modules/crypto/rijndael: Moved from ../.
83979         * modules/crypto/rijndael-tests: Moved from ../.
83980         * modules/crypto/sha1: Moved from ../.
83982 2007-03-30  James Youngman  <jay@gnu.org>
83984         * tests/test-stat-time.c (prepare_test): use chmod() rather than
83985         rename() to change the ctime of a file (because ctime is unaffected
83986         by rename on jfs2 on AIX 5.1).
83987         (main): Start by doing cleanup, in case a previous run failed leaving
83988         test files behind.
83990 2007-03-31  Bruno Haible  <bruno@clisp.org>
83992         Support old proprietary implementations of iconv.
83993         * modules/iconv_open: New file.
83994         * lib/iconv_.h: New file.
83995         * m4/iconv_h.m4: New file.
83996         * lib/iconv_open.c: New file.
83997         * lib/iconv_open-aix.gperf: New file.
83998         * lib/iconv_open-hpux.gperf: New file.
83999         * lib/iconv_open-irix.gperf: New file.
84000         * lib/iconv_open-osf.gperf: New file.
84001         * m4/iconv_open.m4: New file.
84002         * modules/linebreak (Depends-on): Add iconv_open.
84003         * modules/striconv (Depends-on): Likewise.
84004         * modules/striconveh (Depends-on): Likewise.
84005         * modules/unicodeio (Depends-on): Likewise.
84006         * lib/striconveh.h (mem_cd_iconveh, str_cd_iconveh): Allow cd to be
84007         (iconv_t)(-1).
84008         * lib/striconveh.c (mem_cd_iconveh_internal): Use an indirect
84009         conversion if cd is (iconv_t)(-1).
84010         (mem_iconveh, str_iconveh): Don't fail just because a direct conversion
84011         is not possible.
84013 2007-03-31  Bruno Haible  <bruno@clisp.org>
84015         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
84016         work on Solaris either. Protect also second use of "autodetect_jp".
84018 2007-03-31  Bruno Haible  <bruno@clisp.org>
84020         * m4/frexpl.m4 (gl_FUNC_FREXPL): Set HAVE_DECL_FREXPL to 0 when
84021         the function is not present.
84023 2007-03-31  Bruno Haible  <bruno@clisp.org>
84025         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Set HAVE_DECL_LDEXPL to 0 when
84026         the function is not present.
84028 2007-03-31  Bruno Haible  <bruno@clisp.org>
84030         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-29 patch. Test also against
84031         a bug in HP-UX iconv_open().
84033 2007-03-31  Bruno Haible  <bruno@clisp.org>
84035         * MODULES.html.sh (func_module): Don't show gnulib-common.m4.
84036         (Mathematics <math.h>): New section, add fpieee.
84037         (Input/output <stdio.h>): Add fseterr.
84038         (Mathematics <math.h>): New section, add printf-frexp.
84039         (Container data structures): Add sublist.
84040         (Core language properties): Add fpucw, inline.
84041         (Functions for greatest-width integer types <inttypes.h>): Add
84042         imaxabs, imaxdiv, inttypes.
84043         (Mathematics <math.h>): Add frexp, frexpl, isnan-nolibm, isnanl,
84044         isnanl-nolibm, ldexp.
84045         (Mathematics <math.h>): New section, add printf-frexpl.
84046         (Support for systems lacking POSIX:2001): Add fprintf-posix,
84047         printf-posix, snprintf-posix, sprintf-posix, string, search, socklen,
84048         sys_select, sys_socket, vasnprintf-posix, vasprintf-posix,
84049         vfprintf-posix, vprintf-posix, vsnprintf-posix, vsprintf-posix.
84050         (Unicode string functions): Add unistr/u*-mbtoucr.
84051         (Java): Add javacomp-script, javaexec-script.
84052         (C#): Add csharpcomp-script, csharpexec-script.
84053         (Support for building libraries and executables): Add havelib,
84054         relocatable-*.
84055         (Support for maintaining and releasing projects): Renamed from
84056         'Support for maintaining and release projects'. Add announce-gen.
84058 2007-03-31  Bruno Haible  <bruno@clisp.org>
84060         * README: Talk primarily about git.
84061         (git and CVS): Renamed from CVS.
84062         * doc/gnulib.texi (Introduction, Build robot for gnulib): Mention that
84063         gnulib is available through git.
84064         * doc/gnulib-tool.texi (CVS Issues): Mention git and svn as well.
84066 2007-03-30  Bruno Haible  <bruno@clisp.org>
84068         * lib/alloca_.h: Change prefix of double-inclusion guard macro to _GL_.
84069         * lib/poll_.h: Likewise.
84070         * lib/stat_.h: Likewise.
84071         * lib/sys_time_.h: Likewise.
84072         * lib/sysexit_.h: Likewise.
84073         * lib/glob_.h: Prefix double-inclusion guard macro with _GL_.
84074         * lib/stdbool_.h: Likewise.
84075         * lib/byteswap_.h: Add double-inclusion guard.
84077 2007-03-30  Sergey Poznyakoff  <gray@mirddin.farlep.net>
84079         * lib/sysexit_.h: Prefix double-inclusion guard macro with _GNULIB.
84081 2007-03-30  Karl Berry  <karl@gnu.org>
84083         * config/srclist-update: double space after USA in the license
84084         substitution, since that's how it's usually (?) written.
84086 2007-03-30  Paul Eggert  <eggert@cs.ucla.edu>
84088         * lib/write-any-file.c (can_write_any_file): Fix else-else bug
84089         reported by Bruno Haible.
84091 2007-03-29  Bruno Haible  <bruno@clisp.org>
84093         * m4/iconv.m4 (AM_ICONV_LINK): Require AC_CANONICAL_HOST. Test against
84094         a bug in AIX iconv().
84096 2007-03-29  Bruno Haible  <bruno@clisp.org>
84098         * modules/ldexpl-tests: New file.
84099         * tests/test-ldexpl.c: New file.
84101 2007-03-29  Bruno Haible  <bruno@clisp.org>
84103         * lib/ldexpl.c: Include fpucw.h.
84104         (ldexpl): Use BEGIN/END_LONG_DOUBLE_ROUNDING. Skip the last unneeded
84105         multiplication.
84106         * modules/ldexpl (Depends-on): Add fpucw.
84108 2007-03-29  Bruno Haible  <bruno@clisp.org>
84110         * modules/ldexpl: New file.
84111         * m4/ldexpl.m4: New file.
84112         * lib/math_.h (ldexpl): Define to a replacement if REPLACE_LDEXPL is
84113         set.
84114         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize also GNULIB_LDEXPL,
84115         REPLACE_LDEXPL.
84116         * modules/math (Makefile.am): Substitute also GNULIB_LDEXPL,
84117         REPLACE_LDEXPL.
84118         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
84119         gl_FUNC_LDEXPL_WORKS.
84120         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Remove test for ldexpl.
84121         * modules/mathl (Files): Remove lib/ldexpl.c.
84122         (Depends-on): Add ldexpl.
84124 2007-03-29  Bruno Haible  <bruno@clisp.org>
84126         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Declare frexpl.
84128 2007-03-29  Bruno Haible  <bruno@clisp.org>
84130         * tests/test-striconveh.c (main): Don't assume that a direct conversion
84131         between ISO-8859-1 and ISO-8859-2 is possible. Needed for OSF/1, IRIX
84132         and possibly also HP-UX.
84133         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
84134         work on AIX, IRIX, HP-UX, OSF/1.
84135         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
84136         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
84137         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
84138         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
84139         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
84140         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
84142 2007-03-29  Bruno Haible  <bruno@clisp.org>
84144         * tests/test-stat-time.c: Include <fcntl.h>, not <sys/fcntl.h>.
84146 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
84148         * lib/acl-internal.h (acl_get_fd, acl_set_fd): undef before defining,
84149         to work around a problem on OSF/1 5.1 reported by Bruno Haible.
84151 2007-03-29  Eric Blake  <ebb9@byu.net>
84153         * lib/acl-internal.h: Remove redundant include.
84154         (ACL_NOT_WELL_SUPPORTED): Also filter on EBUSY, returned by
84155         Cygwin when a file is locked.
84157 2007-03-29  Bruno Haible  <bruno@clisp.org>
84159         * lib/vasprintf.c [IN_LIBASPRINTF]: Include different specification
84160         file.
84161         * lib/asprintf.c [IN_LIBASPRINTF]: Likewise.
84163 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
84165         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Don't bother to
84166         try to remove a parent directory if the child couldn't be removed
84167         (except for the first rmdir, which could fail because the child
84168         doesn't exist).  Problem reported by Jeff Blaine in
84169         <http://lists.gnu.org/archive/html/bug-tar/2007-03/msg00014.html>.
84171 2007-03-28  Bruno Haible  <bruno@clisp.org>
84173         * lib/striconveh.c (utf8conv_carefully): New function.
84174         (mem_cd_iconveh_internal): Invoke it.
84176 2007-03-28  Bruno Haible  <bruno@clisp.org>
84178         * lib/striconveh.c (mem_cd_iconveh_internal): Use u8_mbtoucr instead
84179         of u8_mbtouc in order to distinguish invalid and incomplete UTF-8
84180         input.
84181         * modules/striconveh (Depends-on): Add unistr/u8-mbtoucr. Replace
84182         utf8-ucs4 with unistr/u8-mbtouc. Replace ucs4-utf8 with
84183         unistr/u8-uctomb.
84185 2007-03-28  Bruno Haible  <bruno@clisp.org>
84187         * modules/unistr/u8-mbtoucr: New file.
84188         * lib/unistr/u8-mbtoucr.c: New file.
84189         * modules/unistr/u16-mbtoucr: New file.
84190         * lib/unistr/u16-mbtoucr.c: New file.
84191         * modules/unistr/u16-mbtoucr: New file.
84192         * lib/unistr/u16-mbtoucr.c: New file.
84193         * lib/unistr.h (u8_mbtoucr, u16_mbtoucr, u32_mbtoucr): New declarations.
84195 2007-03-27  Simon Josefsson  <simon@josefsson.org>
84196             Bruno Haible  <bruno@clisp.org>
84198         * m4/vasprintf.m4: Convert AC_SUBST into shell variable for
84199         REPLACE_VASPRINTF.  Set HAVE_VASPRINTF.  Add
84200         AC_REQUIRE([gl_STDIO_H_DEFAULTS]).
84202         * m4/stdio_h.m4: Add stubs for vasprintf too.
84204         * modules/stdio: Support vasprintf in sed command.
84206         * modules/vasprintf: Depend on stdio for prototypes.  Remove
84207         vasprintf.h.  Add stdio module indicator.
84209         * lib/stdio_.h: Declare asprintf and vasprintf, based on
84210         vasprintf.h.
84212         * lib/vasprintf.h: File removed.
84214         * lib/asprintf.c: Use stdio.h instead of vasprintf.h.
84215         * lib/vasprintf.c: Ditto.
84216         * lib/xvasprintf.c: Ditto.
84217         * tests/test-vasprintf-posix.c: Ditto.
84218         * tests/test-vasprintf.c: Ditto.
84220 2007-03-27  Bruno Haible  <bruno@clisp.org>
84222         Make vasnprintf multithread-safe.
84223         * lib/vasnprintf.c (decimal_point_char): New function.
84224         (VASNPRINTF): Use it.
84225         Suggested by Simon Josefsson.
84227 2007-03-27  Eric Blake  <ebb9@byu.net>
84229         Support sub-second birthtime on cygwin.
84230         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Also check for st_birthtim.
84231         * lib/stat-time.h (STAT_TIMESPEC): Adjust comments.
84232         (get_stat_birthtime): Also work with st_birthtim.
84234 2007-03-27  Paul Eggert  <eggert@cs.ucla.edu>
84236         * lib/stat-time.h (USE_BIRTHTIME): Remove.
84237         (get_stat_atime_ns, get_stat_ctime_ns, get_stat_mtime_ns):
84238         (get_stat_birthtime_ns): Do not try to use "spare" fields.
84239         (get_stat_birthtime_ns): Simplify compile-time tests.
84240         (get_stat_birthtime): Change the API to look like
84241         get_stat_mtime etc., except return a negative tv_nsec on error.
84242         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
84243         Don't check for "spare" fields.
84244         (gl_STAT_BIRTHTIME): Don't check for struct stat.st_birthtimespec.tv_sec
84245         or for struct stat.st_birthtime, as these tests aren't used.
84246         * tests/test-stat-time.c (test_birthtime): Adjust to new API.
84248 2007-03-27  Bruno Haible  <bruno@clisp.org>
84250         * lib/stat-time.h: Include <sys/stat.h>.
84252 2007-03-27  James Youngman  <jay@gnu.org>
84254         * lib/stat-time.h (get_stat_birthtime): New function for
84255           retrieving st_birthtime as provided by UFS2 (hence *BSD).
84256         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Probe for st_birthtime
84257           and its variants.
84258         * modules/stat-time (configure.ac): call gl_STAT_BIRTHTIME.
84259         * modules/stat-time-test: New file.
84260         * tests/test-stat-time.c: New test, devised by Bruno Haible.
84262 2007-03-26  Bruno Haible  <bruno@clisp.org>
84264         Better support of signalling NaNs.
84265         * lib/atanl.c: Include isnanl.h.
84266         (atanl): Perform test for NaN at the beginning of the function and
84267         through a call to isnanl.
84268         * lib/cosl.c: Include isnanl.h.
84269         (cosl): Perform test for NaN at the beginning of the function and
84270         through a call to isnanl.
84271         * lib/ldexpl.c: Include isnanl.h.
84272         (ldexpl): Perform test for NaN through a call to isnanl.
84273         * lib/logl.c: Include isnanl.h.
84274         (logl): Perform test for NaN at the beginning of the function and
84275         through a call to isnanl.
84276         * lib/sinl.c: Include isnanl.h.
84277         (sinl): Perform test for NaN at the beginning of the function and
84278         through a call to isnanl.
84279         * lib/sqrtl.c: Include isnanl.h.
84280         (sqrtl): Perform test for NaN at the beginning of the function and
84281         through a call to isnanl.
84282         * lib/tanl.c: Include isnanl.h.
84283         (tanl): Perform test for NaN at the beginning of the function and
84284         through a call to isnanl.
84285         * lib/trigl.c (ieee754_rem_pio2l): Remove test for NaN.
84286         * modules/mathl (Depends-on): Add isnanl.
84288 2007-03-26  Eric Blake  <ebb9@byu.net>
84290         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
84291         regression in logic sense of previous patch.
84293 2007-03-26  Bruno Haible  <bruno@clisp.org>
84295         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Don't use
84296         unportable shell command "if ! ...".
84297         Reported by Ralf Wildenhues.
84299 2007-03-25  Bruno Haible  <bruno@clisp.org>
84301         * lib/sysexit_,h: If HAVE_SYSEXITS_H is defined, include the original
84302         <sysexits.h> file, and only add EX_CONFIG.
84303         * m4/sysexits.m4 (gl_SYSEXITS): If <sysexits.h> exists, check its
84304         absolute file name and whether it is sufficient. Substitute also
84305         HAVE_SYSEXITS_H and ABSOLUTE_SYSEXITS_H.
84306         * modules/sysexits (Makefile.am): Substitute HAVE_SYSEXITS_H and
84307         ABSOLUTE_SYSEXITS_H into sysexits.h.
84309 2007-03-25  Bruno Haible  <bruno@clisp.org>
84311         * lib/getaddrinfo.c (getaddrinfo): Don't access hints->ai_flags when
84312         hints is NULL.
84314 2007-03-25  Bruno Haible  <bruno@clisp.org>
84316         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Add a cast.
84317         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
84319 2007-03-25  Bruno Haible  <bruno@clisp.org>
84321         * lib/vasnprintf.c: Include langinfo.h.
84322         (VASNPRINTF): Prefer nl_langinfo over localeconv, since it's more
84323         multithread-safe.
84324         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): New macro.
84325         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke it.
84326         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
84327         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
84328         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
84329         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
84330         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
84331         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX: Likewise.
84332         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
84333         Reported by Simon Josefsson.
84335 2007-03-25  Bruno Haible  <bruno@clisp.org>
84337         * lib/printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
84338         (PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
84339         * modules/vasnprintf (Depends-on): Add stdint.
84341 2007-03-25  Bruno Haible  <bruno@clisp.org>
84343         * modules/fpieee: New file.
84344         * m4/fpieee.m4: New file.
84345         * modules/isnan-nolibm (Depends-on): Add fpieee.
84346         * modules/isnanl-nolibm (Depends-on): Add fpieee.
84347         * modules/isnanl (Depends-on): Add fpieee.
84349 2007-03-25  Bruno Haible  <bruno@clisp.org>
84351         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Test also finite numbers.
84353 2007-03-25  Bruno Haible  <bruno@clisp.org>
84355         Avoid test failures on IRIX 6.5.
84356         * tests/test-frexpl.c (MIN_NORMAL_EXP): New macro.
84357         (main): Use it.
84358         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP): New
84359         macros.
84360         (main): Use them.
84362 2007-03-25  Bruno Haible  <bruno@clisp.org>
84364         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): New macro.
84365         (gl_FUNC_FREXPL): Invoke it. Set REPLACE_FREXPL to 1 if it frexpl
84366         exists but doesn't work.
84367         * lib/math_.h (frexpl): Define as a replacement macro if REPLACE_FREXPL
84368         is set. Don't provide a prototype if REPLACE_FREXPL is not set.
84369         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPL.
84370         * modules/math (Makefile.am): Substitute also REPLACE_FREXPL into
84371         math.h.
84373 2007-03-25  Bruno Haible  <bruno@clisp.org>
84375         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Add check whether frexp(inf)
84376         returns inf. Needed on IRIX 6.5.
84378 2007-03-25  Bruno Haible  <bruno@clisp.org>
84380         * tests/test-frexpl.c: Include isnanl-nolibm.h.
84381         (main): Use isnanl instead of x != x idiom.
84382         * modules/frexpl-tests (Depends-on): Add isnanl-nolibm.
84384         * tests/test-frexp.c: Include isnan.h.
84385         (main): Use isnan instead of x != x idiom.
84386         * modules/frexp-tests (Depends-on): Add isnan-nolibm.
84388 2007-03-25  Bruno Haible  <bruno@clisp.org>
84390         * tests/test-frexp.c (NaN): New function/macro.
84391         (main): Use it instead of 0.0 / 0.0.
84392         * tests/test-isnan.c (NaN): New function/macro.
84393         (main): Use it instead of 0.0 / 0.0.
84394         * tests/test-vasnprintf-posix.c (NaN): New function/macro.
84395         (test_function): Use it instead of 0.0 / 0.0.
84396         * tests/test-vasprintf-posix.c (NaN): New function/macro.
84397         (test_function): Use it instead of 0.0 / 0.0.
84398         * tests/test-snprintf-posix.h (NaN): New function/macro.
84399         (test_function): Use it instead of 0.0 / 0.0.
84400         * tests/test-sprintf-posix.h (NaN): New function/macro.
84401         (test_function): Use it instead of 0.0 / 0.0.
84402         * tests/test-fprintf-posix.h (NaN): New function/macro.
84403         (test_function): Use it instead of 0.0 / 0.0.
84404         * tests/test-printf-posix.h (NaN): New function/macro.
84405         (test_function): Use it instead of 0.0 / 0.0.
84407         * lib/isnan.c (FUNC): Work around a DEC C compiler bug.
84409 2007-03-25  Bruno Haible  <bruno@clisp.org>
84411         * lib/glob_.h: Include <sys/stat.h>. Avoids warnings on AIX 5.1.
84413 2007-03-25  Bruno Haible  <bruno@clisp.org>
84415         * lib/regexec.c (merge_state_with_log): Make static.
84417 2007-03-25  Bruno Haible  <bruno@clisp.org>
84419         * lib/trigl.c (kernel_rem_pio2): Make static.
84421 2007-03-25  Bruno Haible  <bruno@clisp.org>
84423         * lib/sincosl.c (sincosl_table): Make static.
84425 2007-03-25  Bruno Haible  <bruno@clisp.org>
84427         * lib/argp.h (__restrict): Define to empty, rather than to 'restrict',
84428         if the compiler does not support C99.
84430 2007-03-25  Bruno Haible  <bruno@clisp.org>
84432         * modules/time (Makefile.am): Ensure all rule action lines start with a
84433         tab.
84435 2007-03-24  Bruno Haible  <bruno@clisp.org>
84437         * modules/tsearch-tests: New file.
84438         * tests/test-tsearch.sh: New file.
84439         * tests/test-tsearch.c: New file, mostly copied from glibc.
84441         * modules/search-tests: New file.
84442         * tests/test-search.c: New file.
84444         * modules/search: New file.
84445         * lib/search_.h: New file, incorporating lib/tsearch.h.
84446         * m4/search_h.m4: New file.
84447         * lib/tsearch.h: Remove file.
84448         * lib/tsearch.c: Include search.h instead of tsearch.h.
84449         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Require gl_SEARCH_H_DEFAULTS. Set
84450         HAVE_TSEARCH.
84451         * modules/tsearch (Files): Remove lib/tsearch.h.
84452         (Depends-on): Add search.
84453         (configure.ac): Invoke gl_SEARCH_MODULE_INDICATOR.
84454         (Include): Change tsearch.h into search.h.
84456 2007-03-24  Bruno Haible  <bruno@clisp.org>
84458         * modules/fpucw: New file.
84459         * lib/fpucw.h: New file.
84460         * lib/frexp.c: Include fpucw.h.
84461         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
84462         (FUNC): Use them.
84463         * lib/printf-frexp.c: Include fpucw.h.
84464         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
84465         (FUNC): Use them.
84466         * lib/vasnprintf.c: Include fpucw.h.
84467         (VASNPRINTF): Invoke BEGIN/END_LONG_DOUBLE_ROUNDING around the
84468         'long double' calculations.
84469         * tests/test-frexpl.c: Include fpucw.h.
84470         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
84471         * tests/test-printf-frexpl.c: Include fpucw.h.
84472         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
84473         * modules/frexpl (Depends-on): Add fpucw.
84474         * modules/printf-frexpl (Depends-on): Likewise.
84475         * modules/fprintf-posix (Depends-on): Likewise.
84476         * modules/snprintf-posix (Depends-on): Likewise.
84477         * modules/sprintf-posix (Depends-on): Likewise.
84478         * modules/vasnprintf-posix (Depends-on): Likewise.
84479         * modules/vasprintf-posix (Depends-on): Likewise.
84480         * modules/vfprintf-posix (Depends-on): Likewise.
84481         * modules/vsnprintf-posix (Depends-on): Likewise.
84482         * modules/vsprintf-posix (Depends-on): Likewise.
84483         * modules/frexpl-tests (Depends-on): Likewise.
84484         * modules/printf-frexpl-tests (Depends-on): Likewise.
84486 2007-03-24  Bruno Haible  <bruno@clisp.org>
84488         * lib/float+.h: New file.
84489         * lib/isnan.c: Include float+.h.
84490         (SIZE): New macro.
84491         (FUNC): Compare only SIZE bytes of the value.
84492         * lib/vasnprintf.c: Include float+.h.
84493         (VASNPRINTF): When comparing against +0.0L or +0.0, compare only
84494         SIZEOF_LDBL or SIZEOF_DBL bytes.
84495         * modules/isnan-nolibm (Files): Add lib/float+.h.
84496         * modules/isnanl-nolibm (Files): Add lib/float+.h.
84497         * modules/isnanl (Files): Add lib/float+.h.
84498         * modules/vasnprintf (Files): Add lib/float+.h.
84500 2007-03-24  Bruno Haible  <bruno@clisp.org>
84502         * lib/vasnprintf.c [!HAVE_LONG_DOUBLE]: Include printf-frexp.h. Don't
84503         include isnanl-nolibm.h.
84505 2007-03-24  Bruno Haible  <bruno@clisp.org>
84507         * tests/test-read-file.c (main): Don't produce spurious output for
84508         expected situations. Make the test fail if it encountered unexpected
84509         results.
84511 2007-03-24  Bruno Haible  <bruno@clisp.org>
84513         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove the special-casing of NetBSD,
84514         since its fr_FR.ISO8859-1 locale wouldn't pass the tests.
84516 2007-03-24  Bruno Haible  <bruno@clisp.org>
84518         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Fix last change.
84520 2007-03-24  Bruno Haible  <bruno@clisp.org>
84522         * modules/unistr/base (Depends-on): Remove utf8-ucs4-unsafe,
84523         utf16-ucs4-unsafe, utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
84525         * modules/unistr/u8-mbtouc: Add source files from module utf8-ucs4.
84526         * modules/utf8-ucs4: Turn into a symbolic link to module
84527         unistr/u8-mbtouc.
84529         * modules/unistr/u8-mbtouc-unsafe: Add source files from module
84530         utf8-ucs4-unsafe.
84531         * modules/utf8-ucs4-unsafe: Turn into a symbolic link to module
84532         unistr/u8-mbtouc-unsafe.
84534         * modules/unistr/u16-mbtouc: Add source files from module utf16-ucs4.
84535         * modules/utf16-ucs4: Turn into a symbolic link to module
84536         unistr/u16-mbtouc.
84538         * modules/unistr/u16-mbtouc-unsafe: Add source files from module
84539         utf16-ucs4-unsafe.
84540         * modules/utf16-ucs4-unsafe: Turn into a symbolic link to module
84541         unistr/u16-mbtouc-unsafe.
84543         * modules/unistr/u8-uctomb: Add source files from module utf4-utf8.
84544         * modules/ucs4-utf8: Turn into a symbolic link to module
84545         unistr/u8-ubtomb.
84547         * modules/unistr/u16-uctomb: Add source files from module utf4-utf16.
84548         * modules/ucs4-utf16: Turn into a symbolic link to module
84549         unistr/u16-ubtomb.
84551 2007-03-24  Bruno Haible  <bruno@clisp.org>
84553         * lib/unistr/u8-mbtouc-aux.c: Renamed from lib/unistr/utf8-ucs4.c.
84554         Enable the function only if HAVE_INLINE.
84555         * lib/unistr/u8-mbtouc-unsafe-aux.c: Renamed from
84556         lib/unistr/utf8-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
84557         * lib/unistr/u16-mbtouc-aux.c: Renamed from lib/unistr/utf16-ucs4.c.
84558         Enable the function only if HAVE_INLINE.
84559         * lib/unistr/u16-mbtouc-unsafe-aux.c: Renamed from
84560         lib/unistr/utf16-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
84561         * lib/unistr/u8-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf8.c.
84562         Enable the function only if HAVE_INLINE.
84563         * lib/unistr/u16-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf16.c.
84564         Enable the function only if HAVE_INLINE.
84565         * modules/utf8-ucs4: Update.
84566         * modules/utf8-ucs4-unsafe: Update.
84567         * modules/utf16-ucs4: Update.
84568         * modules/utf16-ucs4-unsafe: Update.
84569         * modules/ucs4-utf8: Update.
84570         * modules/ucs4-utf16: Update.
84572 2007-03-24  Bruno Haible  <bruno@clisp.org>
84574         * lib/utf8-ucs4.h: Remove file.
84575         * lib/utf8-ucs4-unsafe.h: Remove file.
84576         * lib/utf16-ucs4.h: Remove file.
84577         * lib/utf16-ucs4-unsafe.h: Remove file.
84578         * lib/ucs4-utf8.h: Remove file.
84579         * lib/ucs4-utf16.h: Remove file.
84580         * lib/unistr.h: Include their previous contents.
84581         * m4/utf-ucs4.m4: Remove file.
84582         * m4/ucs4-utf.m4: Remove file.
84583         * modules/utf8-ucs4 (Files): Remove lib/utf8-ucs4.h.
84584         (Depends-on): Add unistr/base.
84585         (configure.ac): Remove gl_UTF_UCS4.
84586         (Makefile.am): Update.
84587         (Include): Change to unistr.h.
84588         * modules/utf8-ucs4-unsafe (Files): Remove lib/utf8-ucs4-unsafe.h.
84589         (Depends-on): Add unistr/base.
84590         (configure.ac): Remove gl_UTF_UCS4.
84591         (Makefile.am): Update.
84592         (Include): Change to unistr.h.
84593         * modules/utf16-ucs4 (Files): Remove lib/utf16-ucs4.h.
84594         (Depends-on): Add unistr/base.
84595         (configure.ac): Remove gl_UTF_UCS4.
84596         (Makefile.am): Update.
84597         (Include): Change to unistr.h.
84598         * modules/utf16-ucs4-unsafe (Files): Remove lib/utf16-ucs4-unsafe.h.
84599         (Depends-on): Add unistr/base.
84600         (configure.ac): Remove gl_UTF_UCS4.
84601         (Makefile.am): Update.
84602         (Include): Change to unistr.h.
84603         * modules/ucs4-utf8 (Files): Remove lib/ucs4-utf8.h.
84604         (Depends-on): Add unistr/base.
84605         (configure.ac): Remove gl_UCS4_UTF.
84606         (Makefile.am): Update.
84607         (Include): Change to unistr.h.
84608         * modules/ucs4-utf16 (Files): Remove lib/ucs4-utf16.h.
84609         (Depends-on): Add unistr/base.
84610         (configure.ac): Remove gl_UCS4_UTF.
84611         (Makefile.am): Update.
84612         (Include): Change to unistr.h.
84613         * lib/unistr/utf8-ucs4.c: Include unistr.h instead of utf8-ucs4.h.
84614         * lib/unistr/utf8-ucs4-unsafe.c: Include unistr.h instead of
84615         utf8-ucs4-unsafe.h.
84616         * lib/unistr/utf16-ucs4.c: Include unistr.h instead of utf16-ucs4.h.
84617         * lib/unistr/utf16-ucs4-unsafe.c: Include unistr.h instead of
84618         utf16-ucs4-unsafe.h.
84619         * lib/unistr/ucs4-utf8.c: Include unistr.h instead of ucs4-utf8.h.
84620         * lib/unistr/ucs4-utf16.c: Include unistr.h instead of ucs4-utf16.h.
84621         * lib/unistr/u8-chr.c: Don't include ucs4-utf8.h.
84622         * lib/unistr/u8-strchr.c: Likewise.
84623         * lib/unistr/u8-strrchr.c: Likewise.
84624         * lib/unistr/u16-chr.c: Don't include ucs4-utf16.h.
84625         * lib/unistr/u16-strchr.c: Likewise.
84626         * lib/unistr/u16-strrchr.c: Likewise.
84627         * lib/striconveh.c: Update.
84628         * lib/linebreak.c: Update.
84630 2007-03-24  Bruno Haible  <bruno@clisp.org>
84632         * lib/argp-help.c (fill_in_uparams, canon_doc_option): Cast the
84633         arguments of isspace, isalpha, isalnum, isdigit to 'unsigned char'.
84635 2007-03-22  Bruno Haible  <bruno@clisp.org>
84637         * lib/strptime.c (__strptime_internal): Use ANSI C syntax.
84639 2007-03-23  Paul Eggert  <eggert@cs.ucla.edu>
84641         * MODULES.html.sh (File system functions): New module write-any-file.
84642         * modules/write-any-file, lib/write-any-file.c, lib/write-any-file.h:
84643         * m4/write-any-file.m4: New files.
84645 2007-03-23  Eric Blake  <ebb9@byu.net>
84647         * gnulib-tool: Rearrange space-tab sequences, since some editors
84648         like to eat them.
84650 2007-03-23  Eric Blake  <ebb9@byu.net>
84652         * lib/version-etc.c (version_etc_va): Update license wording to
84653         be more concise.  Recommended by Richard Stallman.
84655 2007-03-22  Bruno Haible  <bruno@clisp.org>
84657         * lib/poll.c (MSG_PEEK): New fallback definition.
84659 2007-03-22  Bruno Haible  <bruno@clisp.org>
84661         * modules/sys_socket-tests (configure.ac): Check for shutdown function.
84662         * tests/test-sys_socket.c (a): Test only if shutdown() exists.
84663         (main): Update.
84664         Fixes a compilation error on BeOS.
84666 2007-03-22  Bruno Haible  <bruno@clisp.org>
84668         * modules/frexpl-tests: New file.
84669         * tests/test-frexpl.c: New file.
84671         * modules/frexpl: New file.
84672         * m4/frexpl.m4: New file.
84673         * modules/math (Makefile.am): Also substitute GNULIB_FREXPL into math.h.
84674         * lib/math_.h (frexpl): Test GNULIB_FREXPL instead of GNULIB_MATHL.
84675         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPL.
84676         * modules/mathl (Files): Remove lib/frexpl.c, lib/frexp.c.
84677         (Depends-on): Add frexpl. Remove isnanl-nolibm.
84678         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Don't test for frexpl.
84680 2007-03-22  Bruno Haible  <bruno@clisp.org>
84682         * lib/frexpl.c: Share code with lib/frexp.c.
84683         * modules/mathl (Files): Add lib/frexp.c.
84684         (Depends-on): Add isnanl-nolibm.
84686 2007-03-22  Bruno Haible  <bruno@clisp.org>
84688         * modules/printf-frexp (Files): Add m4/frexp.m4.
84689         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Define HAVE_FREXP_IN_LIBC
84690         only if the found frexp function actually works.
84692 2007-03-22  Bruno Haible  <bruno@clisp.org>
84694         * lib/frexp.c: Remove older implementation that uses divisions.
84696 2007-03-21  Bruno Haible  <bruno@clisp.org>
84698         * modules/frexp-tests: New file.
84699         * tests/test-frexp.c: New file.
84701         * modules/frexp: New file.
84702         * lib/frexp.c: New file.
84703         * m4/frexp.m4: New file.
84704         * lib/math_.h (frexp): New declaration.
84705         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Also initialize GNULIB_FREXP and
84706         REPLACE_FREXP.
84707         * modules/math (math.h): Also substitute GNULIB_FREXP, REPLACE_FREXP.
84709 2007-03-21  Bruno Haible  <bruno@clisp.org>
84711         * modules/isnanl-tests: New file.
84712         * tests/test-isnanl.c: New file.
84714         * modules/isnanl: New file.
84715         * lib/isnanl.h: New file.
84716         * m4/isnanl.m4 (gl_FUNC_ISNANL): New macro.
84717         (gl_FUNC_ISNANL_NO_LIBM): Invoke gl_HAVE_ISNANL_NO_LIBM,
84718         gl_FUNC_ISNANL_WORKS.
84719         (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM, gl_FUNC_ISNANL_WORKS):
84720         New macros.
84722 2007-03-21  Bruno Haible  <bruno@clisp.org>
84724         * modules/isnanl-nolibm (Files): Add lib/isnanl-nolibm.h, remove
84725         lib/isnanl.h.
84726         (Include): Update.
84727         * lib/isnanl-nolibm.h: Renamed from lib/isnanl.h.
84728         * lib/vasnprintf.c: Update.
84729         * modules/isnanl-nolibm-tests (Files): Add tests/test-isnanl-nolibm.c,
84730         tests/test-isnanl.h, remove tests/test-isnanl.c.
84731         (Makefile.am): Update.
84732         * tests/test-isnanl-nolibm.c: New file.
84733         * tests/test-isnanl.h: New file.
84734         * tests/test-isnanl.c: Remove file.
84736 2007-03-21  Jim Meyering  <jim@meyering.net>
84738         When trying to open ".", treat ESTALE like EACCES.
84739         * lib/savewd.c (savewd_save): Resort to forking not just upon
84740         failure with EACCES, but also when errno is ESTALE.
84742 2007-03-20  Bruno Haible  <bruno@clisp.org>
84744         * lib/string_.h (strndup): Enable declaration also if HAVE_STRNDUP.
84745         Needed on AIX 5.1. Reported by Matthew Woehlke.
84747 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
84749         Suggestions by Bruno Haible:
84750         * lib/acl-internal.h: Include "gettext.h" rather than rolling
84751         our own.
84752         (ACL_NOT_WELL_SUPPORTED): Parenthesize arg when used.
84753         * modules/acl (Depends-on): Add gettext.
84755 2007-03-19  Bruno Haible  <bruno@clisp.org>
84757         * modules/iconvme: Remove file.
84758         * lib/iconvme.h: Remove file.
84759         * lib/iconvme.c: Remove file.
84760         * m4/iconvme.m4: Remove file.
84762 2007-03-19  Bruno Haible  <bruno@clisp.org>
84764         * doc/relocatable-maint.texi: Break long shell script line.
84765         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
84767 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
84769         Add limited support for Solaris 10 ZFS-style ACLs: just enough to
84770         handle file_has_acl.
84771         * lib/acl-internal.h, lib/acl_entries.c, lib/file-has-acl.c: New files.
84772         * lib/acl.c: Move header inclusions and related macro defns into
84773         lib/acl-internal.h.
84774         (S_ISLNK): Remove defn, since that's now done for us.
84775         (file_has_acl): Move to lib/file-has-acl.c.
84776         Call acl_trivial if available.  This is the crucial part of the fix.
84777         (acl_entries): Move to lib/acl_entries.c.  Now extern, since it's
84778         shared within the library.  Rewrite a bit, partly to make it compatible
84779         with the GNU coding style.
84780         * m4/acl.m4 (AC_FUNC_ACL): Add AC_LIBOBJ([file-has-acl]).
84781         Remove unnecessary double-quotes.
84782         Don't test for acl_to_text; the build will catch that.
84783         Replace acl_entries if it doesn't exist and it is needed.
84784         Check for -lsec and acl_trivial (as used on Solaris 10).
84785         * modules/acl (Files): Add lib/acl-internal.h, lib/acl_entries.c,
84786         lib/file-has-acl.c.
84787         (Depends-on): Add sys_stat, for S_ISLNK.
84789 2007-03-19  Ben Pfaff  <blp@gnu.org>
84791         * doc/gnulib.texi: Fix typos.
84792         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
84794 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
84796         * lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
84797         If size is zero here, buf must be zero.
84799 2007-03-19  Simon Josefsson  <simon@josefsson.org>
84801         * des.c: Remove weak_keys_chksum.  Reported by Bruno Haible
84802         <bruno@clisp.org>.
84804 2007-03-18  Bruno Haible  <bruno@clisp.org>
84806         * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch.
84807         Suggested by Eric Blake.
84809 2007-03-18  Ben Pfaff  <blp@gnu.org>
84811         * doc/relocatable.texi: Recommend using as prefix a directory
84812         that does not exist and will never be created.  Based on
84813         discussion with Bruno Haible, Ralf Wildenhues, Matthew Woehlke,
84814         and others.
84816 2007-03-17  Bruno Haible  <bruno@clisp.org>
84818         * lib/fchownat.c: Include lchown.h.
84820 2007-03-17  Bruno Haible  <bruno@clisp.org>
84822         Fix endless loop when the given allocated size was > INT_MAX.
84823         * lib/vasnprintf.c (EOVERFLOW): New fallback definition.
84824         (VASNPRINTF): Fail with EOVERFLOW when the given allocated size is
84825         larger than INT_MAX, or when it grow to a value larger than INT_MAX.
84826         * lib/vsprintf.c (vsprintf): Don't pass a size > INT_MAX to vasnprintf.
84827         * lib/sprintf.c (sprintf): Likewise.
84829 2007-03-17  Bruno Haible  <bruno@clisp.org>
84831         * tests/test-argp-2.sh (func_compare): Output a context diff.
84833 2007-03-17  Bruno Haible  <bruno@clisp.org>
84835         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check also the
84836         locale's decimal-point character.
84838 2007-03-17  Bruno Haible  <bruno@clisp.org>
84840         * lib/vasnprintf.c (VASNPRINTF): Clear out the memory used for arg_mem
84841         before comparing it. Needed because on some platforms (e.g. x86) a
84842         'long double' occupies less bytes than sizeof (long double).
84844 2007-03-17  Bruno Haible  <bruno@clisp.org>
84846         * tests/test-crc.c (main): Make printf statements 64-bit clean.
84847         * tests/test-gc-pbkdf2-sha1.c (main): Likewise.
84848         * tests/test-getaddrinfo.c (simple): Likewise.
84849         * tests/test-read-file.c (main): Likewise.
84851 2007-03-17  Bruno Haible  <bruno@clisp.org>
84853         * tests/test-dirname.c (main): Make printf statements 64-bit clean.
84855 2007-03-17  Bruno Haible  <bruno@clisp.org>
84857         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Remove
84858         unused variable.
84860 2007-03-17  Bruno Haible  <bruno@clisp.org>
84862         * tests/test-c-strcasecmp.c: Include c-strcase.h.
84863         * tests/test-c-strncasecmp.c: Likewise.
84865 2007-03-17  Bruno Haible  <bruno@clisp.org>
84867         * modules/stdlib (Depends-on): Add unistd.
84868         * lib/stdlib_.h: Include <unistd.h> if mkstemp is desired.
84869         Needed for MacOS X 10.3.
84871 2007-03-17  Bruno Haible  <bruno@clisp.org>
84873         * lib/unistr/u-strdup.h: Include <stdlib.h>.
84875 2007-03-17  Bruno Haible  <bruno@clisp.org>
84877         * lib/unistr/u-cpy-alloc.h: Include <stdlib.h>.
84879 2007-03-17  Bruno Haible  <bruno@clisp.org>
84881         * gnulib-tool (func_import): Update .cvsignore and .gitignore files
84882         to reflect files copied from gnulib (with or without modifications).
84883         Suggested by Jim Meyering.
84885 2007-03-17  Eric Blake  <ebb9@byu.net>
84887         * NEWS: Document stdlib change from 2007-02-18.
84889 2007-03-17  Jim Meyering  <jim@meyering.net>
84891         Detect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
84892         * build-aux/bootstrap: Put ""s around use of $build_aux, in case
84893         someone uses a name containing shell meta-characters.
84894         Reported by Alfred M. Szmidt.
84896         * build-aux/bootstrap: Don't use \> in grep regexp.  For HP-UX.
84898 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
84900         * build-aux/bootstrap (with_gettext): New variable.  Run autopoint
84901         and copy gettext configuration files only if configure.ac contains
84902         a use of AM_GNU_GETTEXT_VERSION.
84904 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
84906         * build-aux/bootstrap (gnulib_name): New variable.
84907         (gnulib_tool_options): Use it.
84909 2007-03-13  Simon Josefsson  <simon@josefsson.org>
84911         * tests/test-des.c: Use new namespace.
84913 2007-03-15  Bruno Haible  <bruno@clisp.org>
84915         * lib/dummy.c (gl_dummy_symbol): Renamed from 'dummy'.
84916         Reported by James Youngman <jay@gnu.org>.
84918 2007-03-15  Bruno Haible  <bruno@clisp.org>
84920         * lib/glob.c (glob): Add 'restrict' so that prototype matches the
84921         declared prototype. Needed with cc on OSF/1 5.1.
84923 2007-03-15  Bruno Haible  <bruno@clisp.org>
84925         * lib/gl_list.h (gl_listelement_dispose_fn): New type.
84926         (gl_list_create_empty, gl_list_create): Add dispose_fn argument.
84927         (struct gl_list_implementation): Add dispose_fn argument to the
84928         'create_empty', 'create' methods.
84929         (struct gl_list_impl_base): Add field 'dispose_fn'.
84930         * lib/gl_list.c (gl_list_create_empty, gl_list_create): Add dispose_fn
84931         argument.
84932         * lib/gl_array_list.c (gl_array_create_empty, gl_array_create): Add
84933         dispose_fn argument.
84934         (gl_array_remove_node, gl_array_remove_at, gl_array_list_free): Call
84935         dispose_fn on the dropped values.
84936         * lib/gl_carray_list.c (gl_carray_create_empty, gl_carray_create): Add
84937         dispose_fn argument.
84938         (gl_carray_remove_at, gl_carray_list_free): Call dispose_fn on the
84939         dropped values.
84940         * lib/gl_anyavltree_list2.h (gl_tree_create): Add dispose_fn argument.
84941         (gl_tree_remove_node): Call dispose_fn on the dropped value.
84942         * lib/gl_anyrbtree_list2.h (gl_tree_create): Add dispose_fn argument.
84943         (gl_tree_remove_node): Call dispose_fn on the dropped value.
84944         * lib/gl_anytree_list2.h (gl_tree_create_empty): Add dispose_fn
84945         argument.
84946         (gl_tree_list_free): Call dispose_fn on the dropped values.
84947         * lib/gl_anytreehash_list2.h (gl_tree_list_free): Call dispose_fn on
84948         the dropped values.
84949         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
84950         Add dispose_fn argument.
84951         (gl_linked_remove_node, gl_linked_remove_at, gl_linked_list_free):
84952         Call dispose_fn on the dropped values.
84953         * lib/gl_sublist.c (gl_sublist_create_empty, gl_sublist_create_fill):
84954         Add dispose_fn argument.
84955         (gl_sublist_create): Initialize the 'dispose_fn' field.
84956         * lib/clean-temp.c (create_temp_dir, register_fd): Update.
84957         * tests/test-array_list.c (main): Update.
84958         * tests/test-carray_list.c (main): Update.
84959         * tests/test-avltree_list.c (main): Update.
84960         * tests/test-rbtree_list.c (main): Update.
84961         * tests/test-avltreehash_list.c (main): Update.
84962         * tests/test-rbtreehash_list.c (main): Update.
84963         * tests/test-linked_list.c (main): Update.
84964         * tests/test-linkedhash_list.c (main): Update.
84965         * tests/test-array_oset.c (main): Update.
84967 2007-03-15  Bruno Haible  <bruno@clisp.org>
84969         * lib/gl_oset.h (gl_setelement_dispose_fn): New type.
84970         (gl_oset_create_empty): Add dispose_fn argument.
84971         (struct gl_oset_implementation): Add dispose_fn argument to
84972         'create_empty' method.
84973         (struct gl_oset_impl_base): Add dispose_fn field.
84974         * lib/gl_oset.c (gl_oset_create_empty): Add dispose_fn argument.
84975         * lib/gl_array_oset.c (gl_array_create_empty): Add dispose_fn argument.
84976         (gl_array_remove_at, gl_array_free): Call dispose_fn on the dropped
84977         values.
84978         * lib/gl_anytree_oset.h (gl_tree_create_empty): Add dispose_fn argument.
84979         (gl_tree_oset_free): Call dispose_fn on the dropped values.
84980         * lib/gl_avltree_oset.c (gl_tree_remove_node): Call dispose_fn on the
84981         dropped value.
84982         * lib/gl_rbtree_oset.c (gl_tree_remove_node): Call dispose_fn on the
84983         dropped value.
84984         * tests/test-array_oset.c (main): Update.
84985         * tests/test-avltree_oset.c (main): Update.
84986         * tests/test-rbtree_oset.c (main): Update.
84987         * lib/gl_anytreehash_list1.h (add_to_bucket): Update.
84989 2007-03-13  Bruno Haible  <bruno@clisp.org>
84991         * tests/test-stdbool.c (i): Update after last patch.
84993 2007-03-12  Bruno Haible  <bruno@clisp.org>
84995         * lib/quotearg.c: Include <wctype.h> early, before the definition of
84996         the iswprint macro. Needed on Solaris 2.5.1.
84998 2007-03-12  Bruno Haible  <bruno@clisp.org>
85000         * tests/test-printf-frexp.c (main): Declare x as volatile.
85002 2007-03-12  Simon Josefsson  <simon@josefsson.org>
85004         * doc/gnulib.texi (Build robot for gnulib): New section.
85006 2007-03-12  Jim Meyering  <jim@meyering.net>
85008         * build-aux/bootstrap: New file.
85009         * build-aux/bootstrap.conf: New file, from coreutils.
85011 2007-03-11  Bruno Haible  <bruno@clisp.org>
85013         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Require AC_C_INLINE.
85015 2007-03-12  Simon Josefsson  <simon@josefsson.org>
85017         * lib/des.h, lib/des.c, lib/gc-gnulib.c: Use gl_ namespace, to
85018         avoid collisions with 'des_setkey'.  Reported by Bruno Haible
85019         <bruno@clisp.org>.  Also change 'tripledes_' to '3des_'.
85021 2007-03-11  Bruno Haible  <bruno@clisp.org>
85023         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): If the test program fails to
85024         compile, set LOCALE_TR_UTF8 to 'none' instead of empty.
85026 2007-03-11  Bruno Haible  <bruno@clisp.org>
85028         * lib/stdint_.h (INT64_MIN, INTMAX_MIN): Avoid using the ~INT..._MAX
85029         formula. Needed for SunPRO C 5.0.
85031 2007-03-11  Bruno Haible  <bruno@clisp.org>
85033         * modules/long-options (Depends-on): Add getopt.
85035 2007-03-11  Bruno Haible  <bruno@clisp.org>
85037         * modules/modechange (Depends-on): Add stdbool.
85039 2007-03-11  Bruno Haible  <bruno@clisp.org>
85041         * modules/i-ring (Depends-on): Add stdbool.
85043 2007-03-11  Bruno Haible  <bruno@clisp.org>
85045         * modules/gc-des (Depends-on): Add stdbool.
85047 2007-03-11  Bruno Haible  <bruno@clisp.org>
85049         * m4/mktime.m4 (gl_PREREQ_MKTIME): Require AC_C_INLINE.
85051 2007-03-11  Bruno Haible  <bruno@clisp.org>
85053         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Require AC_C_RESTRICT.
85055 2007-03-11  Bruno Haible  <bruno@clisp.org>
85057         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Fix syntax error.
85059 2007-03-11  Bruno Haible  <bruno@clisp.org>
85061         * lib/vasnprintf.c (sprintf): Undefine.
85063 2007-03-11  Bruno Haible  <bruno@clisp.org>
85065         * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding
85066         initializers in SunPRO C and Compaq C compilers.
85068 2007-03-11  Bruno Haible  <bruno@clisp.org>
85070         * lib/gl_array_oset.c (gl_array_iterator_next): Make pointer
85071         decrementing code ANSI C compliant.
85073 2007-03-11  Bruno Haible  <bruno@clisp.org>
85075         * lib/dummy.c [__sun]: Define a dummy variable, not just a typedef.
85076         Needed for Solaris 2.5.1 ranlib and SunPRO C 5.0.
85078 2007-03-11  Bruno Haible  <bruno@clisp.org>
85080         * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's
85081         <stdbool.h> substitute doesn't pass.
85083 2007-03-11  Bruno Haible  <bruno@clisp.org>
85085         * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
85087 2007-03-11  Bruno Haible  <bruno@clisp.org>
85089         * gnulib-tool (func_create_megatestdir): Create also an autobuild
85090         script, for submission to autobuild.josefsson.org.
85092 2007-03-10  Bruno Haible  <bruno@clisp.org>
85094         * modules/canonicalize-lgpl-tests: New file.
85095         * tests/test-canonicalize-lgpl.sh: New file.
85096         * tests/test-canonicalize-lgpl.c: New file.
85098         * modules/c-strcase-tests: New file.
85099         * tests/test-c-strcase.sh: New file.
85100         * tests/test-c-strcasecmp.c: New file.
85101         * tests/test-c-strncasecmp.c: New file.
85103         * modules/atexit-tests: New file.
85104         * tests/test-atexit.sh: New file.
85105         * tests/test-atexit.c: New file.
85107 2007-03-10  Bruno Haible  <bruno@clisp.org>
85109         * tests/test-binary-io.sh: Use temporary filenames that are not so
85110         likely to clash with those of other tests (in a parallel make).
85111         * tests/test-binary-io.c: Likewise.
85113 2007-03-10  Bruno Haible  <bruno@clisp.org>
85115         * lib/fseterr.c (fseterr): Port to Solaris/SPARC64. Deactivate the
85116         fallback; use #error instead.
85117         Suggested by Simon Josefsson.
85119 2007-03-10  Bruno Haible  <bruno@clisp.org>
85121         * gnulib-tool (func_create_testdir): Treat MOSTLYCLEANFILES like
85122         CLEANFILES. Put spaces in each line of $cleaned_files, not only the
85123         first and the last.
85125 2007-03-10  Bruno Haible  <bruno@clisp.org>
85127         * lib/stdint_.h (uint_least64_t): Fix typo in last patch.
85129 2007-03-10  Bruno Haible  <bruno@clisp.org>
85131         * modules/snprintf-posix-tests (EXTRA_DIST): New variable. Needed for
85132         "make distcheck".
85133         * modules/sprintf-posix-tests (EXTRA_DIST): Likewise.
85134         * modules/vsnprintf-posix-tests (EXTRA_DIST): Likewise.
85135         * modules/vsprintf-posix-tests (EXTRA_DIST): Likewise.
85137 2007-03-10  Bruno Haible  <bruno@clisp.org>
85139         * modules/allocsa-tests (test_allocsa_SOURCES): Remove redundant
85140         variable.
85141         * modules/dirname-tests (test_dirname_SOURCES): Remove redundant
85142         variable.
85144 2007-03-09  Eric Blake  <ebb9@byu.net>
85145         and Matthew Woehlke  <mw_triad@users.sourceforge.net>  (tiny change)
85147         * lib/stdint_.h (int64_t, uint64_t): Don't undefine if 64-bit
85148         types are not being provided by gnulib.
85149         (GL_INT64_T, GL_UINT64_T): New witnesses of whether gnulib 64-bit
85150         types are supported.
85152 2007-03-10  Bruno Haible  <bruno@clisp.org>
85154         * lib/stdio_.h (__attribute__): New macro.
85155         (fprintf, vfprintf, printf, vprintf, snprintf, vsnprintf, sprintf,
85156         vsprintf): Specify __attribute__ __format__ for GCC.
85157         Suggested by Eric Blake.
85159 2007-03-09  Bruno Haible  <bruno@clisp.org>
85161         * modules/printf-posix-tests: New file.
85162         * tests/test-printf-posix.sh: New file.
85163         * tests/test-printf-posix.c: New file.
85165         * modules/printf-posix: New file.
85166         * lib/printf.c: New file.
85167         * m4/printf-posix-rpl.m4: New file.
85168         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_PRINTF_POSIX,
85169         REPLACE_PRINTF.
85170         * lib/stdio_.h (printf): New declaration.
85171         (format, __format__, ____printf____, ____scanf____, ____strftime____,
85172         ____strfmon____): New macros.
85173         * modules/stdio (Makefile.am): Substitute also GNULIB_PRINTF_POSIX,
85174         REPLACE_PRINTF.
85176 2007-03-09  Bruno Haible  <bruno@clisp.org>
85178         * tests/test-vasnprintf-posix2.sh: New file.
85179         * tests/test-vasnprintf-posix2.c: New file.
85180         * modules/vasnprintf-posix-tests (Files): Add them and m4/locale-fr.m4.
85181         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
85182         (Makefile.am): Activate test-vasnprintf-posix2.sh.
85184         * lib/vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use
85185         a locale dependent decimal point, rather than always '.'.
85187 2007-03-09  Eric Blake  <ebb9@byu.net>
85189         * lib/stdlib_.h (EXIT_FAILURE): GNU code expects this to be 1, in
85190         spite of platforms like Tandem/NSK that define it to -1.
85192 2007-03-08  Bruno Haible  <bruno@clisp.org>
85194         * modules/vprintf-posix-tests: New file.
85195         * tests/test-vprintf-posix.sh: New file.
85196         * tests/test-vprintf-posix.c: New file.
85197         * tests/test-printf-posix.h: New file.
85199         * modules/vprintf-posix: New file.
85200         * lib/vprintf.c: New file.
85201         * m4/vprintf-posix.m4: New file.
85202         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VPRINTF_POSIX,
85203         REPLACE_VPRINTF.
85204         * lib/stdio_.h (vprintf): New declaration.
85205         * modules/stdio (Makefile.am): Substitute also GNULIB_VPRINTF_POSIX,
85206         REPLACE_VPRINTF.
85208 2007-03-08  Bruno Haible  <bruno@clisp.org>
85210         * modules/fprintf-posix-tests: New file.
85211         * tests/test-fprintf-posix.sh: New file.
85212         * tests/test-fprintf-posix.c: New file.
85214         * modules/fprintf-posix: New file.
85215         * lib/fprintf.c: New file.
85216         * m4/fprintf-posix.m4: New file.
85217         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FPRINTF_POSIX,
85218         REPLACE_FPRINTF.
85219         * lib/stdio_.h (fprintf): New declaration.
85220         * modules/stdio (Makefile.am): Substitute also GNULIB_FPRINTF_POSIX,
85221         REPLACE_FPRINTF.
85223 2007-03-08  Bruno Haible  <bruno@clisp.org>
85225         * modules/vfprintf-posix-tests: New file.
85226         * tests/test-vfprintf-posix.sh: New file.
85227         * tests/test-vfprintf-posix.c: New file.
85228         * tests/test-fprintf-posix.h: New file.
85229         * tests/test-fprintf-posix.out: New file.
85231         * modules/vfprintf-posix: New file.
85232         * lib/vfprintf.c: New file.
85233         * m4/vfprintf-posix.m4: New file.
85234         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VFPRINTF_POSIX,
85235         REPLACE_VFPRINTF.
85236         * lib/stdio_.h (vfprintf): New declaration.
85237         * modules/stdio (Makefile.am): Substitute also GNULIB_VFPRINTF_POSIX,
85238         REPLACE_VFPRINTF.
85240 2007-03-08  Bruno Haible  <bruno@clisp.org>
85242         * lib/stdio_.h: Treat __need___FILE like __need_FILE.
85244 2007-03-08  Bruno Haible  <bruno@clisp.org>
85246         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Use 'case' statements
85247         instead of 'expr' invocations.
85248         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
85249         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
85250         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
85251         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
85252         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
85253         Suggested by Paul Eggert.
85255 2007-03-08  Bruno Haible  <bruno@clisp.org>
85257         * modules/fseterr-tests: New file.
85258         * tests/test-fseterr.c: New file.
85260         * modules/fseterr: New file.
85261         * lib/fseterr.h: New file.
85262         * lib/fseterr.c: New file.
85264 2007-03-08  Bruno Haible  <bruno@clisp.org>
85266         * lib/fnmatch_.h: Convert tabs in the middle of lines to spaces.
85267         * lib/getopt_.h: Likewise.
85268         * lib/mbswidth.h: Likewise.
85269         * lib/setenv.h: Likewise.
85270         * lib/vasnprintf.h: Likewise.
85271         * lib/vasprintf.h: Likewise.
85272         * lib/verror.h: Likewise.
85273         * lib/xsetenv.h: Likewise.
85274         * lib/xvasprintf.h: Likewise.
85276 2007-03-08  Jim Meyering  <jim@meyering.net>
85278         * users.txt: Add parted.
85280         * ChangeLog: Restore 1500 lines mistakenly removed from the end.
85282 2007-03-07  Bruno Haible  <bruno@clisp.org>
85284         * m4/printf.m4: Make the shell script snippets copy&pastable.
85286 2007-03-02  Bruno Haible  <bruno@clisp.org>
85288         * lib/netinet_in_.h: New file.
85289         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Test whether netinet/in.h
85290         is self-contained. Set ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H.
85291         * modules/netinet_in (Files): Add lib/netinet_in_.h.
85292         (Depends-on): Add absolute-header.
85293         (Makefile.am): Substitute ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H
85294         into netinet/in.h.
85296 2007-03-03  Bruno Haible  <bruno@clisp.org>
85298         * lib/sys_select_.h: New file.
85299         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SELECT): Test whether sys/select.h
85300         is self-contained. Set ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H.
85301         * modules/sys_select (Files): Add lib/sys_select_.h.
85302         (Depends-on): Add absolute-header.
85303         (Makefile.am): Substitute ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H
85304         into sys/select.h.
85306 2007-03-02  Bruno Haible  <bruno@clisp.org>
85308         * lib/socket_.h: If sys/socket.h exists, include that and <sys/types.h>
85309         before it. Turn HAVE_WINSOCK2_H and HAVE_WS2TCPIP_H into configute-time
85310         values.
85311         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Test also whether
85312         <sys/socket.h> is self-contained. Set ABSOLUTE_SYS_SOCKET_H,
85313         HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H.
85314         * modules/sys_socket (Depends-on): Add absolute-header.
85315         (Makefile.am): Substitute ABSOLUTE_SYS_SOCKET_H, HAVE_SYS_SOCKET_H,
85316         HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H into sys/socket.h.
85317         (Include): Remove requirement of inclusion of <sys/types.h>.
85319 2007-03-02  Bruno Haible  <bruno@clisp.org>
85321         * lib/byteswap_.h (bswap_32): Fix formula.
85323 2007-03-06  Bruno Haible  <bruno@clisp.org>
85325         * modules/sprintf-posix-tests: New file.
85326         * tests/test-sprintf-posix.c: New file.
85328         * modules/sprintf-posix: New file.
85329         * lib/sprintf.c: New file.
85330         * m4/sprintf-posix.m4: New file.
85331         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_SPRINTF_POSIX,
85332         REPLACE_SPRINTF.
85333         * lib/stdio_.h (sprintf): New declaration.
85334         * modules/stdio (Makefile.am): Substitute also GNULIB_SPRINTF_POSIX,
85335         REPLACE_SPRINTF.
85337 2007-03-06  Bruno Haible  <bruno@clisp.org>
85339         * modules/vsprintf-posix-tests: New file.
85340         * tests/test-vsprintf-posix.c: New file.
85341         * tests/test-sprintf-posix.h: New file.
85343         * modules/vsprintf-posix: New file.
85344         * lib/vsprintf.c: New file.
85345         * m4/vsprintf-posix.m4: New file.
85346         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VSPRINTF_POSIX,
85347         REPLACE_VSPRINTF.
85348         * lib/stdio_.h (vsprintf): New declaration.
85349         * modules/stdio (Makefile.am): Substitute also GNULIB_VSPRINTF_POSIX,
85350         REPLACE_VSPRINTF.
85352 2007-03-06  Bruno Haible  <bruno@clisp.org>
85354         * modules/vsnprintf (Depend-on): Remove minmax.
85356 2007-03-06  Bruno Haible  <bruno@clisp.org>
85358         * modules/snprintf-posix-tests: New file.
85359         * tests/test-snprintf-posix.c: New file.
85361         * modules/snprintf-posix: New file.
85362         * m4/snprintf-posix.m4: New file.
85363         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): New macro, extracted from
85364         gl_FUNC_SNPRINTF.
85365         (gl_FUNC_SNPRINTF): Invoke it.
85366         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_SNPRINTF.
85367         * lib/stdio_.h (snprintf): Define as a replacement if REPLACE_SNPRINTF
85368         is set.
85369         * modules/stdio (Makefile.am): Substitute also REPLACE_SNPRINTF.
85371 2007-03-06  Bruno Haible  <bruno@clisp.org>
85373         * modules/vsnprintf-posix-tests: New file.
85374         * tests/test-vsnprintf-posix.c: New file.
85375         * tests/test-snprintf-posix.h: New file.
85377         * modules/vsnprintf-posix: New file.
85378         * m4/vsnprintf-posix.m4: New file.
85379         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): New macro, extracted from
85380         gl_FUNC_VSNPRINTF.
85381         (gl_FUNC_VSNPRINTF): Invoke it.
85382         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_VSNPRINTF.
85383         * lib/stdio_.h (vsnprintf): Define as a replacement if
85384         REPLACE_VSNPRINTF is set.
85385         * modules/stdio (Makefile.am): Substitute also REPLACE_VSNPRINTF.
85387 2007-03-06  Bruno Haible  <bruno@clisp.org>
85389         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here.
85390         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here.
85392 2007-03-06  Bruno Haible  <bruno@clisp.org>
85394         * lib/math_.h (acosl): Declare also if HAVE_DECL_ACOSL is set.
85395         (asinl): Declare also if HAVE_DECL_ASINL is set.
85396         (atanl): Declare also if HAVE_DECL_ATANL is set.
85397         (ceill): Declare also if HAVE_DECL_CEILL is set.
85398         (cosl): Declare also if HAVE_DECL_COSL is set.
85399         (expl): Declare also if HAVE_DECL_EXPL is set.
85400         (floorl): Declare also if HAVE_DECL_FLOORL is set.
85401         (frexpl): Declare also if HAVE_DECL_FREXPL is set.
85402         (ldexpl): Declare also if HAVE_DECL_LDEXPL is set.
85403         (logl): Declare also if HAVE_DECL_LOGL is set.
85404         (sinl): Declare also if HAVE_DECL_SINL is set.
85405         (sqrtl): Declare also if HAVE_DECL_SQRTL is set.
85406         (tanl): Declare also if HAVE_DECL_TANL is set.
85407         * modules/math (Makefile.am): Substitute the values of HAVE_DECL_*.
85408         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Set HAVE_DECL_* to 1.
85409         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Fix tests for the
85410         declaration of frexpl, ldexpl.
85411         * modules/printf-frexpl (Depends-on): Add math.
85412         * lib/printf-frexp.c (frexpl, ldexpl): Undo last change.
85414 2007-03-05  Bruno Haible  <bruno@clisp.org>
85416         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Also test whether
85417         frexpl and ldexpl are declared.
85418         * lib/printf-frexp.c (frexpl, ldexpl): Provide fallback declarations.
85420 2007-03-05  Bruno Haible  <bruno@clisp.org>
85422         * gnulib-tool (func_get_automake_snippet): Don't synthesize an
85423         EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
85425 2007-03-05  Bruno Haible  <bruno@clisp.org>
85427         * lib/stdio_.h: Include <stddef.h>.
85429 2007-03-05  Bruno Haible  <bruno@clisp.org>
85431         * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): New macro.
85433 2007-03-05  Bruno Haible  <bruno@clisp.org>
85435         * m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
85436         NetBSD 4, from Ralf Wildenhues.
85438 2007-03-04  Bruno Haible  <bruno@clisp.org>
85440         * lib/vasprintf.h: Update #if logic for the case when the functions
85441         exist but are overridden.
85443 2007-03-04  Bruno Haible  <bruno@clisp.org>
85445         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Exclude two buggy
85446         implementations: glibc-2.4 and MacOS X 10.3.
85447         * tests/test-vasnprintf-posix.c (test_function): Test also the case
85448         that exhibits the bugs in glibc-2.4 and MacOS X 10.3.
85449         * tests/test-vasprintf-posix.c (test_function): Likewise.
85451 2007-03-04  Bruno Haible  <bruno@clisp.org>
85453         * modules/vasprintf-posix-tests: New file.
85454         * tests/test-vasprintf-posix.c: New file.
85456         * modules/vasprintf-posix: New file.
85457         * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
85458         defined.
85459         * m4/vasprintf-posix.m4: New file.
85460         * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
85461         gl_FUNC_VASPRINTF.
85462         (gl_FUNC_VASPRINTF): Invoke it.
85463         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
85464         here.
85465         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
85467 2007-03-04  Bruno Haible  <bruno@clisp.org>
85469         * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
85470         REPLACE_GETTIMEOFDAY.
85471         * modules/sys_time (Makefile.am): Likewise.
85472         * m4/sys_time_h.m4: Likewise.
85473         * m4/gettimeofday.m4: Likewise.
85475 2007-03-04  Bruno Haible  <bruno@clisp.org>
85477         * modules/vasnprintf-posix-tests: New file.
85478         * tests/test-vasnprintf-posix.c: New file.
85480         * modules/vasnprintf-posix: New file.
85481         * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
85482         printf-frexpl.h.
85483         (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
85484         * lib/vasnprintf.h (asnprintf, vasnprintf): Rename if
85485         REPLACE_VASNPRINTF is defined.
85486         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from
85487         gl_FUNC_VASNPRINTF.
85488         (gl_FUNC_VASNPRINTF): Invoke it.
85489         * m4/vasnprintf-posix.m4: New file.
85490         * m4/printf.m4: New file.
85492 2007-03-04  Bruno Haible  <bruno@clisp.org>
85494         Compile progreloc.c only if --enable-relocatable is specified.
85495         * m4/relocatable.m4 (gl_RELOCATABLE): Arrange to compile progreloc.c
85496         if --enable-relocatable was specified.
85497         * modules/relocatable-prog (Makefile.am): Remove progreloc.c from
85498         lib_SOURCES.
85500 2007-03-04  Jim Meyering  <jim@meyering.net>
85502         * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
85503         Use it consistently, rather than enumerating errno constants.
85505 2007-03-04  Bruno Haible  <bruno@clisp.org>
85507         * modules/xvasprintf-tests: New file.
85508         * tests/test-xvasprintf.c: New file.
85510         * modules/vasprintf-tests: New file.
85511         * tests/test-vasprintf.c: New file.
85513         * modules/vasnprintf-tests: New file.
85514         * tests/test-vasnprintf.c: New file.
85516         * modules/vsnprintf-tests: New file.
85517         * tests/test-vsnprintf.c: New file.
85519         * modules/snprintf-tests: New file.
85520         * tests/test-snprintf.c: New file.
85522 2007-03-04  Bruno Haible  <bruno@clisp.org>
85524         Compile relocatable.c only if --enable-relocatable is specified.
85525         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Renamed from
85526         gl_RELOCATABLE_LIBRARY.
85527         (gl_RELOCATABLE_LIBRARY, gl_RELOCATABLE_LIBRARY_SEPARATE): New macros.
85528         * m4/relocatable.m4 (gl_RELOCATABLE): Invoke gl_RELOCATABLE_LIBRARY.
85529         (gl_RELOCATABLE_BODY): Require gl_RELOCATABLE_LIBRARY_BODY instead of
85530         gl_RELOCATABLE_LIBRARY.
85531         * modules/relocatable-lib (configure.ac): Invoke gl_RELOCATABLE_LIBRARY.
85532         (Makefile.am): Remove lib_SOURCES.
85533         * modules/relocatable-lib-lgpl (configure.ac): Invoke
85534         gl_RELOCATABLE_LIBRARY.
85535         (Makefile.am): Remove lib_SOURCES.
85536         * modules/relocatable-prog (Makefile.am): Don't compile relocatable.c
85537         always.
85538         * modules/relocatable-prog-wrapper (configure.ac): Invoke
85539         gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
85541 2007-03-04  Bruno Haible  <bruno@clisp.org>
85543         * modules/argmatch-tests: New file.
85544         * tests/test-argmatch.c: New file.
85546         * tests/test-allocsa.c (main): Halve the number of loop runs.
85548         * modules/alloca-opt-tests: New file.
85549         * tests/test-alloca-opt.c: New file.
85551 2007-03-04  Jim Meyering  <jim@meyering.net>
85553         Work around difference between Linux ACLs and Solaris 10 ZFS.
85554         * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
85555         for EINVAL.
85557 2007-03-03  Bruno Haible  <bruno@clisp.org>
85559         * modules/relocatable-prog (Depends-on): Add back progreloc's
85560         dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
85562 2007-03-03  Bruno Haible  <bruno@clisp.org>
85564         * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
85565         * modules/relocatable-lib: New file.
85567 2007-03-03  Bruno Haible  <bruno@clisp.org>
85569         * modules/relocatable-prog: Renamed from modules/relocatable.
85570         * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
85572 2007-03-03  Bruno Haible  <bruno@clisp.org>
85574         * modules/relocatable-script (Files): Add doc/relocatable.texi,
85575         m4/relocatable-lib.m4.
85576         (Depends-on): Remove 'relocatable'.
85577         (configure.ac): Add gl_RELOCATABLE_NOP.
85579 2007-03-03  Bruno Haible  <bruno@clisp.org>
85581         * modules/relocatable-prog-wrapper: New file.
85582         * modules/relocatable (Depends-on): Add it. Remove all other
85583         dependencies except progname.
85584         (Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
85586         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): New macro.
85587         (gl_FUNC_STRERROR): Nop.
85588         * lib/strerror.c: Compile the file only if !HAVE_STRERROR.
85590         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
85591         * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
85593         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
85594         (gl_FUNC_READLINK): Update.
85596         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
85598 2007-03-03  Bruno Haible  <bruno@clisp.org>
85600         * lib/xreadlink.c: Include <unistd.h> unconditionally.
85601         * modules/xreadlink (Depends-on): Add unistd.
85602         * modules/xreadlink-with-size (Depends-on): Likewise.
85604 2007-03-03  Bruno Haible  <bruno@clisp.org>
85606         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
85607         extracted from gt_FUNC_SETENV.
85608         (gt_FUNC_SETENV): Remove macro.
85609         * modules/setenv (configure.ac): Add gl_FUNC_SETENV, gl_FUNC_UNSETENV,
85610         remove gt_FUNC_SETENV.
85612 2007-03-03  Bruno Haible  <bruno@clisp.org>
85614         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY): Define
85615         ENABLE_RELOCATABLE here.
85616         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Don't define it here.
85618 2007-03-03  Bruno Haible  <bruno@clisp.org>
85620         * modules/rbtreehash-list-tests (Depends-on): Add progname.
85621         * tests/test-rbtreehash_list.c: Include progname.h.
85622         (main): Call set_program_name.
85624         * modules/rbtree-oset-tests (Depends-on): Add progname.
85625         * tests/test-rbtree_oset.c: Include progname.h.
85626         (main): Call set_program_name.
85628         * modules/rbtree-list-tests (Depends-on): Add progname.
85629         * tests/test-rbtree_list.c: Include progname.h.
85630         (main): Call set_program_name.
85632         * modules/linked-list-tests (Depends-on): Add progname.
85633         * tests/test-linked_list.c: Include progname.h.
85634         (main): Call set_program_name.
85636 2007-03-03  Bruno Haible  <bruno@clisp.org>
85638         * lib/glob-libc.h (_Restrict_): New macro, copied from lib/regex.h.
85639         All uses of __restrict changed to _Restrict_.
85640         * lib/glob_.h (__restrict): Remove macro.
85642 2007-03-02  Bruno Haible  <bruno@clisp.org>
85644         * modules/gettext (configure.ac): Require gettext infrastructure
85645         from version 0.16.1.
85647 2007-03-02  Bruno Haible  <bruno@clisp.org>
85649         * modules/linkedhash-list-tests (Depends-on): Add progname.
85650         * tests/test-linkedhash_list.c: Include progname.h.
85651         (main): Call set_program_name.
85653         * modules/carray-list-tests (Depends-on): Add progname.
85654         * tests/test-carray_list.c: Include progname.h.
85655         (main): Call set_program_name.
85657         * modules/avltreehash-list-tests (Depends-on): Add progname.
85658         * tests/test-avltreehash_list.c: Include progname.h.
85659         (main): Call set_program_name.
85661         * modules/avltree-oset-tests (Depends-on): Add progname.
85662         * tests/test-avltree_oset.c: Include progname.h.
85663         (main): Call set_program_name.
85665         * modules/avltree-list-tests (Depends-on): Add progname.
85666         * tests/test-avltree_list.c: Include progname.h.
85667         (main): Call set_program_name.
85669         * modules/array-oset-tests (Depends-on): Add progname.
85670         * tests/test-array_oset.c: Include progname.h.
85671         (main): Call set_program_name.
85673         * modules/array-list-tests (Depends-on): Add progname.
85674         * tests/test-array_list.c: Include progname.h.
85675         (main): Call set_program_name.
85677         * modules/argp-tests (Depends-on): Add progname.
85678         * tests/test-argp.c: Include argp.h first. Include progname.h.
85679         (main): Call set_program_name.
85681 2007-03-02  Paul Eggert  <eggert@cs.ucla.edu>
85683         * doc/gnulib-tool.texi (Initial import): Reword description of
85684         _FILE_OFFSET_BITS and _GNU_SOURCE, since they sometimes have a
85685         limited effect even if defined after the first system include.
85687 2007-03-01  Bruno Haible  <bruno@clisp.org>
85689         * build-aux/config.libpath: Update to libtool-1.5.22.
85690         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
85692 2007-03-01  Bruno Haible  <bruno@clisp.org>
85694         * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
85695         foo_CFLAGS.
85696         Reported by Ralf Wildenhues.
85698 2007-03-01  Bruno Haible  <bruno@clisp.org>
85700         * build-aux/install-reloc: Remove object files left over by some
85701         compilers.
85702         Reported by Ralf Wildenhues.
85704 2007-03-01  Bruno Haible  <bruno@clisp.org>
85706         * build-aux/install-reloc: Break long lines.
85708 2007-03-01  Bruno Haible  <bruno@clisp.org>
85710         * doc/relocatable.texi: Document that it may not work on OpenBSD.
85711         Reported by Ralf Wildenhues.
85713 2007-03-01  Bruno Haible  <bruno@clisp.org>
85715         * doc/gnulib-tool.texi (Initial import): Remove paragraph about
85716         include ordering constraints.
85718 2007-03-01  Paul Eggert  <eggert@cs.ucla.edu>
85720         Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
85721         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00136.html>.
85722         * doc/gnulib-tool.texi (Initial import): Mention _FILE_OFFSET_BITS
85723         as another example.
85724         * lib/time_.h: Fix misspelling.
85725         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
85726         Require gl_HEADER_TIME_H_DEFAULTS.
85727         * m4/strptime.m4 (gl_FUNC_STRPTIME): Likewise.
85728         * m4/time_r.m4 (gl_TIME_R): Likewise.
85729         * m4/timegm.m4 (gl_FUNC_TIMEGM): Likewise.
85731 2007-03-01  Bruno Haible  <bruno@clisp.org>
85733         * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
85734         * m4/utimens.m4 (gl_UTIMENS): Likewise.
85736 2007-03-01  Jim Meyering  <jim@meyering.net>
85738         * modules/xreadlink (Maintainer): Add my name.
85739         * modules/xreadlink-with-size (Depends-on): Alphabetize.
85741 2007-02-26  Ben Pfaff  <blp@cs.stanford.edu>
85742             Bruno Haible  <bruno@clisp.org>
85744         * build-aux/install-reloc: Compile also c-ctype.c.
85745         * build-aux/relocatable.sh.in: New file.
85746         * doc/relocatable.texi: New file.
85747         * doc/relocatable-maint.texi: New file.
85748         * doc/gnulib.texi: Include relocatable-maint.texi.
85749         * lib/progreloc.c: Include unistd.h unconditionally.
85750         * lib/relocwrapper.c: Include unistd.h unconditionally.
85751         Include c-ctype.h.
85752         (add_dotbin): Use c_tolower.
85753         * m4/relocatable-lib.m4: New file, extracted from m4/relocatable.m4.
85754         (gl_RELOCATABLE_LIBRARY): Renamed from AC_RELOCATABLE_LIBRARY.
85755         (gl_RELOCATABLE_NOP): Renamed from AC_RELOCATABLE_NOP.
85756         * m4/relocatable.m4 (AC_RELOCATABLE_LIBRARY, AC_RELOCATABLE_NOP): Move
85757         to m4/relocatable-lib.m4.
85758         (gl_RELOCATABLE): Renamed from AC_RELOCATABLE. Set also
85759         RELOCATABLE_CONFIG_H_DIR, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR.
85760         (gl_RELOCATABLE_BODY): Renamed from AC_RELOCATABLE_BODY. Don't
85761         require obsolete macro AC_EXEEXT. Don't check for unistd.h. Don't set
85762         SET_RELOCATABLE. Instead set RELOCATABLE_LDFLAGS, INSTALL_PROGRAM_ENV.
85763         * modules/relocatable: New file.
85764         * modules/relocatable-lib: New file.
85765         * modules/relocatable-script: New file.
85767 2007-02-28  Bruno Haible  <bruno@clisp.org>
85769         Import --enable-relocatable infrastructure.
85770         * build-aux/config.libpath: New file, from GNU gettext.
85771         * build-aux/install-reloc: New file, from GNU gettext.
85772         * build-aux/reloc-ldflags: New file, from GNU gettext.
85773         * lib/relocatable.h: New file, from GNU gettext.
85774         * lib/relocatable.c: New file, from GNU gettext.
85775         * lib/relocwrapper.c: New file, from GNU gettext.
85776         * m4/relocatable.m4: New file, from GNU gettext.
85778 2007-02-28  Bruno Haible  <bruno@clisp.org>
85780         * MODULES.html.sh (File system functions): Add xreadlink-with-size.
85782         * modules/xreadlink: New file, from GNU gettext with modifications.
85783         * lib/xreadlink.c: New file, from GNU gettext.
85784         * lib/xreadlink.h: Add comments.
85785         (xreadlink): New declaration.
85787         * modules/xreadlink-with-size: Renamed from modules/xreadlink.
85788         (Files): Remove m4/xreadlink.m4. Replace lib/xreadlink.c with
85789         lib/xreadlink-with-size.c.
85790         (configure.ac): Remove gl_XREADLINK invocation.
85791         (Makefile.am): Augment lib_SOURCES.
85792         * m4/xreadlink.m4: Remove file.
85793         * lib/xreadlink-with-size.c: Renamed from lib/xreadlink.c.
85794         (xreadlink_with_size): Renamed from xreadink.
85795         * lib/xreadlink.h (xreadlink_with_size): Renamed from xreadink.
85796         * modules/canonicalize (Depends-on): Replace xreadlink with
85797         xreadlink-with-size.
85798         * lib/canonicalize.c (canonicalize_filename_mode): Update.
85800 2007-02-25  Jim Meyering  <jim@meyering.net>
85802         * build-aux/announce-gen: When complaining about excess arguments,
85803         list them.
85805 2007-02-25  Paul Eggert  <eggert@cs.ucla.edu>
85807         * README: Document signed integer overflow situation more
85808         accurately.
85810 2007-02-25  Bruno Haible  <bruno@clisp.org>
85812         * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
85813         'a' or 'A' conversion.
85815 2007-02-25  Bruno Haible  <bruno@clisp.org>
85817         * modules/filename: Renamed from modules/pathname.
85818         (Files): Replace lib/pathname.h with lib/filename.h. Replace
85819         lib/concatpath.c with lib/concat-filename.c.
85820         (Makefile.am): Update.
85821         (Include): Replace pathname.h with filename.h.
85822         * lib/filename.h: Renamed from lib/pathname.h.
85823         (concatenated_filename): Renamed from concatenated_pathname.
85824         * lib/concat-filename.c: Renamed from lib/concatpath.c.
85825         (concatenated_filename): Renamed from concatenated_pathname.
85826         * lib/findprog.c: Include filename.h instead of pathname.h.
85827         (find_in_path): Update.
85828         * lib/javacomp.c: Include filename.h instead of pathname.h.
85829         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
85830         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
85831         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
85832         is_oldgcj_14_13_usable, is_javac_usable): Update.
85833         * lib/javaexec.c: Include filename.h instead of pathname.h.
85834         (execute_java_class): Update.
85835         * modules/findprog: Update.
85836         * modules/javacomp: Update.
85837         * modules/javaexec: Update.
85838         * MODULES.html.sh (File system functions): Add 'filename', remove
85839         'pathname'.
85841 2007-02-25  Bruno Haible  <bruno@clisp.org>
85843         * modules/printf-frexpl-tests: New file.
85844         * tests/test-printf-frexpl.c: New file.
85846         * modules/printf-frexpl: New file.
85847         * lib/printf-frexpl.h: New file.
85848         * lib/printf-frexpl.c: New file.
85849         * m4/printf-frexpl.m4: New file.
85851 2007-02-25  Bruno Haible  <bruno@clisp.org>
85853         * modules/printf-frexp-tests: New file.
85854         * tests/test-printf-frexp.c: New file.
85856         * modules/printf-frexp: New file.
85857         * lib/printf-frexp.h: New file.
85858         * lib/printf-frexp.c: New file.
85859         * m4/printf-frexp.m4: New file.
85861 2007-02-25  Bruno Haible  <bruno@clisp.org>
85863         Assume automake >= 1.10 for the tests.
85864         * modules/arcfour-tests (TESTS): Remove $(EXEEXT) suffix.
85865         * modules/arctwo-tests: Likewise.
85866         * modules/argp-tests: Likewise.
85867         * modules/avltree-list-tests: Likewise.
85868         * modules/avltree-oset-tests: Likewise.
85869         * modules/avltreehash-list-tests: Likewise.
85870         * modules/carray-list-tests: Likewise.
85871         * modules/crc-tests: Likewise.
85872         * modules/des-tests: Likewise.
85873         * modules/gc-arcfour-tests: Likewise.
85874         * modules/gc-arctwo-tests: Likewise.
85875         * modules/gc-des-tests: Likewise.
85876         * modules/gc-hmac-md5-tests: Likewise.
85877         * modules/gc-hmac-sha1-tests: Likewise.
85878         * modules/gc-md2-tests: Likewise.
85879         * modules/gc-md4-tests: Likewise.
85880         * modules/gc-md5-tests: Likewise.
85881         * modules/gc-pbkdf2-sha1-tests: Likewise.
85882         * modules/gc-rijndael-tests: Likewise.
85883         * modules/gc-sha1-tests: Likewise.
85884         * modules/gc-tests: Likewise.
85885         * modules/getaddrinfo-tests: Likewise.
85886         * modules/hmac-md5-tests: Likewise.
85887         * modules/hmac-sha1-tests: Likewise.
85888         * modules/linked-list-tests: Likewise.
85889         * modules/linkedhash-list-tests: Likewise.
85890         * modules/lock-tests: Likewise.
85891         * modules/md2-tests: Likewise.
85892         * modules/md4-tests: Likewise.
85893         * modules/md5-tests: Likewise.
85894         * modules/rbtree-list-tests: Likewise.
85895         * modules/rbtree-oset-tests: Likewise.
85896         * modules/rbtreehash-list-tests: Likewise.
85897         * modules/read-file-tests: Likewise.
85898         * modules/rijndael-tests: Likewise.
85899         * modules/stdint-tests: Likewise.
85900         * modules/tls-tests: Likewise.
85902 2007-02-24  Bruno Haible  <bruno@clisp.org>
85904         * lib/isnanl.h (isnanl): Define through isnan if isnan is a macro.
85905         * m4/isnan.m4 (gl_FUNC_ISNAN_NO_LIBM): Don't check for isnan as a
85906         function; instead check whether isnan with a double argument links.
85907         * m4/isnanl.m4 (gl_FUNC_ISNANL_NO_LIBM): Don't check for isnanl as a
85908         function; instead check whether isnan with a 'long double' argument
85909         links.
85910         Reported by Eric Blake <ebb9@byu.net>.
85912 2007-02-24  Bruno Haible  <bruno@clisp.org>
85914         * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
85915         defined.
85916         * lib/isnanl.c: Remove all code. Just include isnan.c.
85917         * modules/isnanl-nolibm (Files): Add lib/isnan.c.
85919 2007-02-25  Jim Meyering  <jim@meyering.net>
85921         Avoid conflicting types for 'unsetenv' on FreeBSD.
85922         * lib/putenv.c (_unsetenv): Rename from "unsetenv", to avoid
85923         conflicting with FreeBSD's (5.0 and 6.1) function declaration
85924         in stdlib.h.
85926 2007-02-24  Bruno Haible  <bruno@clisp.org>
85928         * modules/isnanl-nolibm-tests: New file.
85929         * tests/test-isnanl.c: New file.
85931         * modules/isnanl-nolibm: New file.
85932         * lib/isnanl.h: New file.
85933         * lib/isnanl.c: New file.
85934         * m4/isnanl.m4: New file.
85936 2007-02-24  Bruno Haible  <bruno@clisp.org>
85938         * modules/isnan-nolibm-tests: New file.
85939         * tests/test-isnan.c: New file.
85941         * modules/isnan-nolibm: New file.
85942         * lib/isnan.h: New file.
85943         * lib/isnan.c: New file.
85944         * m4/isnan.m4: New file.
85946 2007-02-24  Bruno Haible  <bruno@clisp.org>
85948         * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
85949         assume that an exponent fits in 20 bits.
85951 2007-02-24  Jim Meyering  <jim@meyering.net>
85953         * m4/regex.m4: Update the description of the configure-time option,
85954         --without-included-regex, to state accurately what the defaults are,
85955         and perhaps to give people an idea why using this option is risky.
85957 2007-02-24  Paul Eggert  <eggert@cs.ucla.edu>
85959         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
85960         loops on small arguments.  This attempts to avoid the problem
85961         Bruno Haible reported for AIX 4.3.2 in
85962         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00309.html>.
85964 2007-02-23  Bruno Haible  <bruno@clisp.org>
85966         * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
85967         Needed for help2man.
85969 2007-02-23  Karl Berry  <karl@gnu.org>
85971         * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
85972         exists, foo.h should be cvs-ignored, not committed.
85974 2007-02-23  Eric Blake  <ebb9@byu.net>
85976         * lib/getdate.h (includes):  Include <time.h>, not "timespec.h".
85977         * lib/stat-time.h (includes): Likewise.
85978         * lib/utimecmp.c (includes): Likewise.
85979         * lib/utimens.h (includes): Likewise.
85980         * lib/getdate.y (includes): Also include "timespec.h" for use
85981         internal to the module.
85982         * modules/utimens (Depends-on): Revert yesterday's patch.
85983         * modules/nanosleep (Depends-on): Add missing dependency.
85985 2007-02-22  Bruno Haible  <bruno@clisp.org>
85987         * lib/glob.c: Don't include getlogin_r.h.
85989 2007-02-22  Jim Meyering  <jim@meyering.net>
85991         * modules/utimens (Depends-on): Add timespec, required for
85992         utimens.h's inclusion of timespec.h.
85994 2007-02-21  Paul Eggert  <eggert@cs.ucla.edu>
85996         * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
85997         long unreadable paths in GNU/Linux.  Problem reported by Andreas
85998         Schwab in
85999         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00261.html>.
86000         I'll try to think of a better way to fix the Solaris problem.
86002         * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
86003         like glibc; on Solaris 10, it fails with errno == EINVAL.
86004         POSIX says the behavior is unspecified if the first argument is NULL,
86005         so play it safe and never pass NULL to the system getcwd.
86007 2007-02-21  Jim Meyering  <jim@meyering.net>
86009         * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
86010         of gettimeofday.  It would conflict with the one now always
86011         provided via sys_time_.h.  Reported by Matthew Woehlke, as
86012         an IRIX 6.5 build failure.
86014 2007-02-20  Paul Eggert  <eggert@cs.ucla.edu>
86016         Minor fixups to port to Solaris 10 with Sun C 5.8.
86017         * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
86018         * modules/getcwd (Depends-on): Add dirfd.
86019         * lib/putenv.c (putenv): #undef it.
86020         (rpl_putenv): New decl.
86021         (malloc, free): Include <stdlib.h> rather than prototyping separately.
86023 2007-02-20  Bruno Haible  <bruno@clisp.org>
86025         * modules/stdio-tests: New file.
86026         * tests/test-stdio.c: New file.
86028         * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
86029         (Depends-on): Add stdio.
86030         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
86031         (Include): Use <stdio.h> instead of vsnprintf.h.
86032         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
86033         HAVE_DECL_VSNPRINTF.
86034         * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
86036         * modules/snprintf (Files): Remove lib/snprintf.h.
86037         (Depends-on): Add stdio.
86038         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
86039         (Include): Use <stdio.h> instead of snprintf.h.
86040         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
86041         HAVE_DECL_SNPRINTF.
86042         * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
86043         * lib/getaddrinfo.c: Likewise.
86045         * modules/stdio: New file.
86046         * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
86047         * lib/snprintf.h: Remove file.
86048         * lib/vsnprintf.h: Remove file.
86049         * lib/.cppi-disable: Remove snprintf.h.
86050         * m4/stdio_h.m4: New file.
86051         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
86053 2007-02-20  Jim Meyering  <jim@meyering.net>
86055         * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
86056         used by e.g., mingw.  From Bruno Haible.
86058 2007-02-19  Bruno Haible  <bruno@clisp.org>
86060         * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
86061         warnings.
86062         Reported by Ben Pfaff <blp@cs.stanford.edu>.
86064 2007-02-19  Bruno Haible  <bruno@clisp.org>
86066         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
86067         from mingw users.
86069 2007-02-19  Bruno Haible  <bruno@clisp.org>
86071         * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
86072         warnings.
86073         Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
86075 2007-02-19  Jim Meyering  <jim@meyering.net>
86077         Don't use FD after a successful "fdopendir (fd)".
86078         * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
86079         Reset it by calling dirfd on the just-obtained DIR*.
86081         * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
86082         Prompted by a report from Bruno Haible that mingw lacks ftruncate.
86084 2007-02-18  Bruno Haible  <bruno@clisp.org>
86086         * lib/readlink.c: Include <unistd.h>.
86087         * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
86088         HAVE_READLINK.
86089         * modules/readlink (Depends-on): Add unistd.
86090         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
86091         (Include): Add <unistd.h>.
86093         * lib/getlogin_r.h: Remove file.
86094         * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
86095         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
86096         (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
86097         HAVE_DECL_GETLOGIN_R.
86098         * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
86099         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
86100         (Include): Use <unistd.h> instead of getlogin_r.h.
86102         * lib/getcwd.h: Remove file.
86103         * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
86104         * lib/xgetcwd.c: Likewise.
86105         * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
86106         REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
86107         * modules/getcwd (Files): Remove lib/getcwd.h.
86108         (Depends-on): Add unistd.
86109         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
86110         (Include): Use <unistd.h> instad of getcwd.h.
86112         * lib/ftruncate.c: Include <unistd.h> first.
86113         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
86114         Set HAVE_FTRUNCATE.
86115         * modules/ftruncate (Depends-on): Add unistd.
86116         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
86118         * lib/fchdir.c: Include <unistd.h> first.
86119         * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
86120         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
86121         of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
86122         * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
86123         (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
86125         * lib/dup2.c: Include <unistd.h> first.
86126         * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
86127         HAVE_DUP2.
86128         * modules/dup2 (Depends-on): Add unistd.
86129         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
86131         * lib/chown.c: Include <unistd.h> first. Undefine chown later.
86132         * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
86133         REPLACE_CHOWN. Don't define chown as a macro here.
86134         * modules/chown (Depends-on): Add unistd.
86135         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
86137         * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
86138         Add definition for GL_LINK_WARNING.
86139         (chown, dup2): New declarations.
86140         (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
86141         link warning.
86142         (ftruncate): New declaration.
86143         (getcwd): New declaration, taken from old getcwd.h.
86144         (getlogin_r): New declaration, taken from old getlogin_r.h.
86145         (readlink): New declaration.
86146         * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
86147         set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
86148         (gl_PREREQ_UNISTD): Remove macro.
86149         (gl_UNISTD_MODULE_INDICATOR): New macro.
86150         (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
86151         many new variables. Don't set UNISTD_H.
86152         * modules/unistd (Description): Change.
86153         (Depends-on): Add link-warning.
86154         (configure.ac): Update.
86155         (Makefile.am): Create unistd.h always. Substitute many new variables
86156         into it.
86158 2007-02-18  Bruno Haible  <bruno@clisp.org>
86160         * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
86161         * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
86162         HAVE_GETSUBOPT.
86163         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
86164         GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
86165         * lib/getsubopt.h: Remove file.
86166         * modules/getsubopt (Files): Remove lib/getsubopt.h.
86167         (Depends-on): Add stdlib.
86168         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
86169         (Includes): Use <stdlib.h> instead of getsubopt.h.
86170         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
86171         Set HAVE_GETSUBOPT.
86172         * lib/getsubopt.c: Don't include getsubopt.h.
86174 2007-02-18  Bruno Haible  <bruno@clisp.org>
86176         * modules/fchdir (Depends-on): Add dup2.
86178 2007-02-18  Bruno Haible  <bruno@clisp.org>
86180         * lib/stdlib_.h: Handle glibc's special invocation convention
86181         specially.
86183 2007-02-18  Bruno Haible  <bruno@clisp.org>
86185         * modules/stdlib-tests: New file.
86186         * tests/test-stdlib.c: New file.
86188         * modules/mkstemp (Files): Remove lib/mkstemp.h.
86189         (Depends-on): Add stdlib.
86190         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
86191         (Includes): Use <stdlib.h> instead of mkstemp.h.
86192         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
86193         REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
86194         * lib/mkstemp.c: Don't include mkstemp.h.
86195         * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
86196         * lib/stdlib--.h: Don't include mkstemp.h.
86198         * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
86199         (Depends-on): Add stdlib.
86200         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
86201         (Includes): Use <stdlib.h> instead of mkdtemp.h.
86202         * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
86203         HAVE_MKDTEMP.
86204         * lib/mkdtemp.c: Don't include mkdtemp.h.
86205         * lib/clean-temp.c: Don't include mkdtemp.h.
86207         * modules/exit (Files): Remove lib/exit.h.
86208         (Depends-on): Add stdlib.
86209         (Makefile.am): Remove lib_SOURCES.
86210         (Include): Use <stdlib.h> instead of exit.h.
86211         * lib/argmatch.c: Don't include exit.h.
86212         * lib/execute.c: Likewise.
86213         * lib/pagealign_alloc.c: Likewise.
86214         * lib/pipe.c: Likewise.
86215         * lib/wait-process.c: Likewise.
86216         * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
86217         * lib/exitfail.c: Likewise.
86218         * lib/savewd.c: Likewise.
86219         * lib/xsetenv.c: Likewise.
86221         * modules/stdlib: New file.
86222         * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
86223         and extra comments about mkstemp().
86224         * lib/exit.h: Remove file.
86225         * lib/mkdtemp.h: Remove file.
86226         * lib/mkstemp.h: Remove file.
86227         * m4/stdlib_h.m4: New file.
86228         * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
86230 2007-02-18  Bruno Haible  <bruno@clisp.org>
86232         * modules/math-tests: New file.
86233         * tests/test-math.c: New file.
86235         * modules/math: New file.
86236         * modules/mathl (Files): Remove lib/mathl.h.
86237         (Depends-on): Add math.
86238         (Makefile.am): Don't mention mathl.h.
86239         (Include): Use <math.h> instead of mathl.h.
86240         * lib/math_.h: New file.
86241         * lib/mathl.h: Remove file.
86242         * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
86243         mathl.h.
86244         * lib/asinl.c: Likewise.
86245         * lib/atanl.c: Likewise.
86246         * lib/ceill.c: Likewise.
86247         * lib/cosl.c: Likewise.
86248         * lib/expl.c: Likewise.
86249         * lib/floorl.c: Likewise.
86250         * lib/frexpl.c: Likewise.
86251         * lib/ldexpl.c: Likewise.
86252         * lib/logl.c: Likewise.
86253         * lib/sincosl.c: Likewise.
86254         * lib/sinl.c: Likewise.
86255         * lib/sqrtl.c: Likewise.
86256         * lib/tanl.c: Likewise.
86257         * lib/trigl.c: Likewise.
86258         * m4/math_h.m4: New file.
86259         * MODULES.html.sh (Mathematics): Add math.
86261 2007-02-17  Bruno Haible  <bruno@clisp.org>
86263         * modules/wctype-tests: New file.
86264         * tests/test-wctype.c: New file.
86266         * modules/wchar-tests: New file.
86267         * tests/test-wchar.c: New file.
86269         * modules/unistd-tests: New file.
86270         * tests/test-unistd.c: New file.
86272         * modules/time-tests: New file.
86273         * tests/test-time.c: New file.
86275         * modules/sysexits-tests: New file.
86276         * tests/test-sysexits.c: New file.
86278         * modules/sys_time-tests: New file.
86279         * tests/test-sys_time.c: New file.
86281         * modules/sys_stat-tests: New file.
86282         * tests/test-sys_stat.c: New file.
86284         * modules/sys_socket-tests: New file.
86285         * tests/test-sys_socket.c: New file.
86287         * modules/sys_select-tests: New file.
86288         * tests/test-sys_select.c: New file.
86290         * modules/string-tests: New file.
86291         * tests/test-string.c: New file.
86293         * modules/stdbool-tests: New file.
86294         * tests/test-stdbool.c: New file.
86296         * modules/netinet_in-tests: New file.
86297         * tests/test-netinet_in.c: New file.
86299         * modules/inttypes-tests: New file.
86300         * tests/test-inttypes.c: New file.
86302         * modules/fcntl-tests: New file.
86303         * tests/test-fcntl.c: New file.
86305         * modules/byteswap-tests: New file.
86306         * tests/test-byteswap.c: New file.
86308         * modules/arpa_inet-tests: New file.
86309         * tests/test-arpa_inet.c: New file.
86311 2007-02-17  Bruno Haible  <bruno@clisp.org>
86313         * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
86314         (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
86315         if the corresponding module is not enabled. Emit link warnings if
86316         the function is used nevertheless.
86317         * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
86318         Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
86319         HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
86320         (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
86321         * modules/inttypes (Depends-on): Add link-warning.
86322         (Makefile.am): Copy the contents of build-aux/link-warning.h into
86323         inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
86324         GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
86325         * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
86326         * modules/imaxdiv (configure.ac): Likewise.
86327         * modules/strtoimax (configure.ac): Likewise.
86328         * modules/strtoumax (configure.ac): Likewise.
86330 2007-02-17  Bruno Haible  <bruno@clisp.org>
86332         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
86333         gl_STRING_MODULE_INDICATOR_DEFAULTS.
86334         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
86335         (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
86337 2007-02-17  Bruno Haible  <bruno@clisp.org>
86339         * modules/link-warning: New file.
86340         * build-aux/link-warning.h: New file, extracted from lib/string_.h.
86341         * lib/string_.h (GL_LINK_WARNING): Remove definition.
86342         * modules/string (Depends-on): Add link-warning.
86343         (Makefile.am): Copy the contents of build-aux/link-warning.h into
86344         string.h.
86345         * MODULES.html.sh (Support for building libraries and executables): Add
86346         link-warning.
86348 2007-02-17  Bruno Haible  <bruno@clisp.org>
86350         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
86351         strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
86352         strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
86353         long lines.
86355 2007-02-17  Ben Pfaff  <blp@cs.stanford.edu>
86356             Bruno Haible  <bruno@clisp.org>
86358         * modules/tmpfile: New file.
86359         * lib/tmpfile.c: New file.
86360         * m4/tmpfile.m4: New file.
86361         * MODULES.html.sh (func_all_modules): New section "Input/output".
86363 2007-02-15  Bruno Haible  <bruno@clisp.org>
86365         * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
86366         (supports_delete_on_close): New function.
86367         (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
86369 2007-02-14  Bruno Haible  <bruno@clisp.org>
86371         * modules/mbspcasecmp-tests: New file.
86372         * tests/test-mbspcasecmp.sh: New file.
86373         * tests/test-mbspcasecmp.c: New file.
86375         New module mbspcasecmp.
86376         * modules/mbspcasecmp: New file.
86377         * lib/mbspcasecmp.c: New file.
86378         * lib/string_.h (strncasecmp): Change warning message.
86379         (mbspcasecmp): New declaration.
86380         * m4/mbspcasecmp.m4: New file.
86381         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
86382         GNULIB_MBSPCASECMP.
86383         * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
86384         * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
86386 2007-02-14  Bruno Haible  <bruno@clisp.org>
86388         * modules/mbsncasecmp-tests: New file.
86389         * tests/test-mbsncasecmp.sh: New file.
86390         * tests/test-mbsncasecmp.c: New file.
86392         New module mbsncasecmp.
86393         * modules/mbsncasecmp: New file.
86394         * lib/mbsncasecmp.c: New file.
86395         * lib/string_.h (mbsncasecmp): New declaration.
86396         * m4/mbsncasecmp.m4: New file.
86397         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
86398         GNULIB_MBSNCASECMP.
86399         * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
86400         * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
86402 2007-02-14  Paul Eggert  <eggert@cs.ucla.edu>
86404         * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
86405         Verify that it doesn't overlap with our flags.
86406         (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
86407         do not have the desired effect in multibyte locales; instead, use
86408         mbscasecmp.
86409         * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
86410         Add dependency on xalloc.  Depend on fnmatch, not fnmatch-gnu, since
86411         we don't require GNU fnmatch ourselves (if our users require it, they
86412         should do so explicitly).
86414         Fix regex code so it doesn't rely on strcasecmp.
86415         * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
86416         Otherwise, include gnulib's langinfo.h.
86417         * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
86418         undesirable behavior in non-C locales.  Instead, rely on localecharset.
86419         * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
86420         * modules/regex (FILES): Remove m4/codeset.m4.
86421         (Depends-on): Add localcharset.  Remove strcase.
86423 2007-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
86425         * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
86426         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
86428 2007-02-13  Bruno Haible  <bruno@clisp.org>
86430         * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
86431         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
86433 2007-02-12  Bruno Haible  <bruno@clisp.org>
86435         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
86436         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
86437         GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
86438         time warning rather than a link error.
86440 2007-02-12  Bruno Haible  <bruno@clisp.org>
86442         * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
86443         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
86444         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
86446 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
86448         * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
86449         args, not 2.
86451 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
86453         New module 'time', so that apps can include <time.h> as per
86454         POSIX and GNU instead of separate include files like time_r.h
86455         and timegm.h.  This implementation tries out a simpler approach
86456         for replacing decls in standard include files (as compared to
86457         the string module), somewhat as an experiment.
86459         * config/srclist.txt: Comment out mktime.c for now.
86460         * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
86461         since it doesn't apply any more.  Use generic wording instead.
86462         * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
86463         'time'.
86464         * lib/time_.h, m4/time_h.m4, modules/time: New files.
86465         * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
86466         * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
86467         Don't include <sys/types.h>; no longer needed since we assume C89.
86468         * lib/mktime.c: Don't include "time_r.h"; no longer needed.
86469         * lib/strftime.c: Likewise.
86470         * lib/time_r.c: Likewise.
86471         * lib/nanosleep.c (nanosleep): #undef after include files, not before.
86472         * lib/nanosleep.c: Include <time.h> first, to check interface.
86473         * lib/strptime.c: Likewise.
86474         * lib/time_r.c: Likewise.
86475         * lib/timegm.c: Likewise.
86476         * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
86477         needed.
86478         * lib/timegm.c: Don't include timegm.h; no longer needed.
86479         * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
86480         time.h now handles any problems in that area.
86481         (struct timespec, nanosleep): Remove; time.h now arranges for these.
86482         * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
86483         that time.h defines struct timespec.
86484         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
86485         Set REPLACE_NANOSLEEP.  Don't AC_DEFINE nanosleep; the time module now
86486         handles that.
86487         * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
86488         * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
86489         needed.  Set REPLACE_LOCALTIME.
86490         * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
86491         * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
86492         (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
86493         nanosleep; time_h.m4 now does that.  Don't require
86494         gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
86495         module handles this now.
86496         * modules/getdate (Depends-on): Remove timespec.  Add time.
86497         * modules/nanosleep (Depends-on): Likewise.
86498         * modules/stat-time (Depends-on): Likewise.
86499         * modules/nanosleep (Include): Include time.h, not timespec.h.
86500         * modules/strptime (Files): Remove lib/strptime.h.
86501         (Depends-on): Add extensions, time.
86502         (Include): Include time.h, not strptime.h.
86503         * modules/time_r (Files): Remove lib/time_r.h.
86504         (Depends-on): Add time.
86505         (Include): Include time.h, not time_r.h.
86506         * modules/timegm: Likewise.
86507         * modules/timespec (Description): Now does timespec-related decls
86508         of our own, instead of struct timespec itself.
86509         (Depends-on): Add time; remove extensions.
86510         (Maintainer): Add self.
86511         * modules/utimecmp (Depends-on): Add time; remove timespec.
86512         * modules/utimens (Depends-on): Likewise.
86513         * modules/xnanosleep (Depends-on): Likewise.
86515 2007-02-11  Bruno Haible  <bruno@clisp.org>
86517         * lib/c-strstr.c: Include allocsa.h.
86518         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
86519         * lib/c-strcasestr.c: Include allocsa.h.
86520         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
86521         * lib/strcasestr.c: Include allocsa.h.
86522         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
86523         * lib/mbsstr.c: Include allocsa.h.
86524         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
86525         allocsa/freesa instead of malloc/free.
86526         * lib/mbscasestr.c: Include allocsa.h.
86527         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
86528         allocsa/freesa instead of malloc/free.
86529         * modules/c-strstr (Depends-on): Add allocsa.
86530         * modules/c-strcasestr (Depends-on): Likewise.
86531         * modules/strcasestr (Depends-on): Likewise.
86532         * modules/mbsstr (Depends-on): Likewise.
86533         * modules/mbscasestr (Depends-on): Likewise.
86535 2007-02-11  Bruno Haible  <bruno@clisp.org>
86537         * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
86539         * modules/mbsspn-tests: New file.
86540         * tests/test-mbsspn.sh: New file.
86541         * tests/test-mbsspn.c: New file.
86543 2007-02-11  Bruno Haible  <bruno@clisp.org>
86545         * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
86547         * modules/mbspbrk-tests: New file.
86548         * tests/test-mbspbrk.sh: New file.
86549         * tests/test-mbspbrk.c: New file.
86551 2007-02-11  Bruno Haible  <bruno@clisp.org>
86553         * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
86554         unneeded cast.
86556         * modules/mbscspn-tests: New file.
86557         * tests/test-mbscspn.sh: New file.
86558         * tests/test-mbscspn.c: New file.
86560 2007-02-11  Bruno Haible  <bruno@clisp.org>
86562         * modules/mbscasecmp-tests: New file.
86563         * tests/test-mbscasecmp.sh: New file.
86564         * tests/test-mbscasecmp.c: New file.
86566 2007-02-11  Bruno Haible  <bruno@clisp.org>
86568         Ensure O(n) worst-case complexity of mbscasestr.
86569         * lib/mbscasestr.c: Include stdbool.h.
86570         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
86571         functions.
86572         (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
86573         the bookkeeping indicates that it's worth it.
86574         * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
86576         * modules/mbscasestr-tests: New file.
86577         * tests/test-mbscasestr1.c: New file.
86578         * tests/test-mbscasestr2.sh: New file.
86579         * tests/test-mbscasestr2.c: New file.
86580         * tests/test-mbscasestr3.sh: New file.
86581         * tests/test-mbscasestr3.c: New file.
86582         * tests/test-mbscasestr4.sh: New file.
86583         * tests/test-mbscasestr4.c: New file.
86584         * m4/locale-tr.m4: New file.
86586 2007-02-11  Bruno Haible  <bruno@clisp.org>
86588         Ensure O(n) worst-case complexity of mbsstr.
86589         * lib/mbsstr.c: Include stdbool.h.
86590         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
86591         functions.
86592         (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
86593         bookkeeping indicates that it's worth it.
86594         * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
86596         * modules/mbsstr-tests: New file.
86597         * tests/test-mbsstr1.c: New file.
86598         * tests/test-mbsstr2.sh: New file.
86599         * tests/test-mbsstr2.c: New file.
86600         * tests/test-mbsstr3.sh: New file.
86601         * tests/test-mbsstr3.c: New file.
86602         * m4/locale-fr.m4: New file.
86604 2007-02-11  Bruno Haible  <bruno@clisp.org>
86606         * lib/mbsrchr.c (mbsrchr): Fix bug.
86608         * modules/mbsrchr-tests: New file.
86609         * tests/test-mbsrchr.sh: New file.
86610         * tests/test-mbsrchr.c: New file.
86612 2007-02-11  Bruno Haible  <bruno@clisp.org>
86614         * lib/mbschr.c (mbschr): Fix bug.
86616         * modules/mbschr-tests: New file.
86617         * tests/test-mbschr.sh: New file.
86618         * tests/test-mbschr.c: New file.
86619         * m4/locale-zh.m4: New file.
86621 2007-02-11  Bruno Haible  <bruno@clisp.org>
86623         Support for copying multibyte string iterators.
86624         * lib/mbiter.h: Include <string.h>.
86625         (mbiter_multi_copy): New function.
86626         (mbi_copy): New macro.
86627         * lib/mbuiter.h: Include <string.h>.
86628         (mbuiter_multi_copy): New function.
86629         (mbui_copy): New macro.
86631 2007-02-11  Bruno Haible  <bruno@clisp.org>
86633         New module mbslen.
86634         * modules/mbslen: New file.
86635         * lib/mbslen.c: New file.
86636         * lib/string_.h (mbslen): New declaration.
86637         * m4/mbslen.m4: New file.
86638         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
86639         GNULIB_MBSLEN.
86640         * modules/string (string.h): Also substitute GNULIB_MBSLEN.
86641         * MODULES.html.sh (Internationalization functions): Add mbslen.
86643 2007-02-11  Bruno Haible  <bruno@clisp.org>
86645         Ensure O(n) worst-case complexity of strcasestr substitute.
86646         * lib/strcasestr.c: Include stdbool.h.
86647         (knuth_morris_pratt): New function.
86648         (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
86649         bookkeeping indicates that it's worth it.
86650         * modules/strcasestr (Depends-on): Add stdbool, strnlen.
86652         * modules/strcasestr-tests: New file.
86653         * tests/test-strcasestr.c: New file.
86655 2007-02-11  Bruno Haible  <bruno@clisp.org>
86657         Ensure O(n) worst-case complexity of c_strcasestr.
86658         * lib/c-strcasestr.c: Include stdbool.h, string.h.
86659         (knuth_morris_pratt): New function.
86660         (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
86661         the bookkeeping indicates that it's worth it.
86662         * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
86664         * modules/c-strcasestr-tests: New file.
86665         * tests/test-c-strcasestr.c: New file.
86667 2007-02-11  Bruno Haible  <bruno@clisp.org>
86669         Ensure O(n) worst-case complexity of c_strstr.
86670         * lib/c-strstr.c: Include stdbool.h, string.h.
86671         (knuth_morris_pratt): New function.
86672         (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
86673         bookkeeping indicates that it's worth it.
86674         * modules/c-strstr (Depends-on): Add stdbool, strnlen.
86676         * lib/c-strstr.c: Complete rewrite for maintainability.
86678         * modules/c-strstr-tests: New file.
86679         * tests/test-c-strstr.c: New file.
86681 2007-02-11  Bruno Haible  <bruno@clisp.org>
86683         * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
86684         5.2.1 and earlier, whereby \055 was treated just like the range
86685         delimiter '-'.
86686         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
86688 2007-02-08  Bruno Haible  <bruno@clisp.org>
86690         * modules/regex (Depends-on): Add stdbool.
86691         Reported by Dalibor Topic <robilad@kaffe.org>.
86693 2007-02-05  Paul Eggert  <eggert@cs.ucla.edu>
86695         * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
86696         Prefer returning from main to exiting from it.
86697         Remove unnecessary parens after sizeof.
86699 2007-02-05  Bruno Haible  <bruno@clisp.org>
86701         New module mbssep.
86702         * modules/mbssep: New file.
86703         * lib/mbssep.c: New file.
86704         * lib/string_.h (strsep): Add a conditional link warning.
86705         (mbssep): New declaration.
86706         * m4/mbssep.m4: New file.
86707         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
86708         GNULIB_MBSSEP.
86709         * modules/string (string.h): Also substitute GNULIB_MBSSEP.
86710         * MODULES.html.sh (Internationalization functions): Add mbssep.
86712 2007-02-05  Bruno Haible  <bruno@clisp.org>
86714         * lib/strsep.c (strsep): Fix actions in case of no delimiters.
86715         Optimize search in case of 1 delimiter.
86717 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
86719         * lib/acl.h: Include sys/types.h before sys/acl.h.
86721 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
86723         Merge upstream fix for glibc bugzilla #3957:
86725         2007-02-05  Jakub Jelinek  <jakub@redhat.com>
86727         * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
86728         bit for RE_HAT_LISTS_NOT_NEWLINE.
86729         (build_charclass_op): Remove bogus comment.
86731 2007-02-05  Simon Josefsson  <simon@josefsson.org>
86733         * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
86735 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
86737         * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
86738         * lib/memmem.c [!defined _LIBC]: Include config.h.
86740 2007-02-04  Bruno Haible  <bruno@clisp.org>
86742         * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
86743         warning message.
86745 2007-02-04  Bruno Haible  <bruno@clisp.org>
86747         New module mbstok_r.
86748         * modules/mbstok_r: New file.
86749         * lib/mbstok_r.c: New file.
86750         * lib/string_.h (strtok_r): Change argument names to match the
86751         comments. Add a conditional link warning.
86752         (mbstok_r): New declaration.
86753         * m4/mbstok_r.m4: New file.
86754         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
86755         GNULIB_MBSTOK_R.
86756         * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
86757         * MODULES.html.sh (Internationalization functions): Add mbstok_r.
86759 2007-02-04  Bruno Haible  <bruno@clisp.org>
86761         New module mbsspn.
86762         * modules/mbsspn: New file.
86763         * lib/mbsspn.c: New file.
86764         * lib/string_.h (strspn): Add a conditional link warning.
86765         (mbsspn): New declaration.
86766         * m4/mbsspn.m4: New file.
86767         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
86768         GNULIB_MBSSPN.
86769         * modules/string (string.h): Also substitute GNULIB_MBSSPN.
86770         * MODULES.html.sh (Internationalization functions): Add mbsspn.
86772 2007-02-04  Bruno Haible  <bruno@clisp.org>
86774         New module mbspbrk.
86775         * modules/mbspbrk: New file.
86776         * lib/mbspbrk.c: New file.
86777         * lib/string_.h (strpbrk): Add a conditional link warning.
86778         (mbspbrk): New declaration.
86779         * m4/mbspbrk.m4: New file.
86780         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
86781         GNULIB_MBSPBRK.
86782         * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
86783         * MODULES.html.sh (Internationalization functions): Add mbspbrk.
86785 2007-02-04  Bruno Haible  <bruno@clisp.org>
86787         New module mbscspn.
86788         * modules/mbscspn: New file.
86789         * lib/mbscspn.c: New file.
86790         * lib/string_.h (strcspn): Add a conditional link warning.
86791         (mbscspn): New declaration.
86792         * m4/mbscspn.m4: New file.
86793         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
86794         GNULIB_MBSCSPN.
86795         * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
86796         * MODULES.html.sh (Internationalization functions): Add mbscspn.
86798 2007-02-04  Bruno Haible  <bruno@clisp.org>
86800         New module mbscasestr, reduced goal of strcasestr.
86801         * modules/mbscasestr: New file.
86802         * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
86803         (mbscasestr): Renamed from strcasestr.
86804         * lib/strcasestr.c: Don't include mbuiter.h.
86805         (strcasestr): Remove support for multibyte locales.
86806         * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
86807         Change the conditional link warning.
86808         (mbscasestr): New declaration.
86809         * m4/mbscasestr.m4: New file.
86810         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
86811         the system does not have strcasestr. Set HAVE_STRCASESTR instead of
86812         REPLACE_STRCASESTR.
86813         (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
86814         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
86815         HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
86816         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
86817         * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
86818         Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
86819         * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
86820         (Depends-on): Remove mbuiter.
86821         * MODULES.html.sh (Internationalization functions): Add mbscasestr.
86823 2007-02-04  Bruno Haible  <bruno@clisp.org>
86825         Simplify handling of strncasecmp.
86826         * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
86827         the conditional link warning.
86828         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
86829         HAVE_STRCASECMP, not REPLACE_STRCASECMP.
86830         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
86831         * modules/strcase (configure.ac): Don't invoke
86832         gl_STRING_MODULE_INDICATOR.
86833         * modules/string (string.h): Don't substitute GNULIB_STRCASE.
86835 2007-02-04  Bruno Haible  <bruno@clisp.org>
86837         New module mbscasecmp, reduced goal of strcasecmp.
86838         * modules/mbscasecmp: New file.
86839         * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
86840         (mbscasecmp): Renamed from strcasecmp.
86841         * lib/strcasecmp.c: Don't include mbuiter.h.
86842         (strcasecmp): Remove support for multibyte locales.
86843         * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
86844         Change the conditional link warning.
86845         (mbscasecmp): New declaration.
86846         * m4/mbscasecmp.m4: New file.
86847         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
86848         the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
86849         REPLACE_STRCASECMP.
86850         (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
86851         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
86852         GNULIB_MBSCASECMP.
86853         * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
86854         Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
86855         * modules/strcase (Files): Remove m4/mbrtowc.m4.
86856         (Depends-on): Remove mbuiter.
86857         * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
86859 2007-02-04  Bruno Haible  <bruno@clisp.org>
86861         New module mbsstr. Remove module strstr.
86862         * modules/mbsstr: New file.
86863         * modules/strstr: Remove file.
86864         * lib/mbsstr.c: Renamed from lib/strstr.c.
86865         (mbsstr): Renamed from strstr.
86866         * lib/string_.h (strstr): Remove declaration. Change the conditional
86867         link warning.
86868         (mbsstr): New declaration.
86869         * m4/mbsstr.m4: New file.
86870         * m4/strstr.m4: Remove file.
86871         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
86872         REPLACE_STRSTR.
86873         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
86874         Don't initialize GNULIB_STRSTR.
86875         * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
86876         substitute GNULIB_STRSTR and REPLACE_STRSTR.
86877         * MODULES.html.sh (Internationalization functions): Add mbsstr.
86878         (Support for systems lacking ANSI C 89): Remove strstr.
86880 2007-02-04  Bruno Haible  <bruno@clisp.org>
86882         New module mbsrchr.
86883         * modules/mbsrchr: New file.
86884         * lib/mbsrchr.c: New file.
86885         * lib/string_.h (strrchr): Add a conditional link warning.
86886         (mbsrchr): New declaration.
86887         * m4/mbsrchr.m4: New file.
86888         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
86889         GNULIB_MBSRCHR.
86890         * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
86891         * MODULES.html.sh (Internationalization functions): Add mbsrchr.
86893 2007-02-04  Bruno Haible  <bruno@clisp.org>
86895         New module mbschr.
86896         * modules/mbschr: New file.
86897         * lib/mbschr.c: New file.
86898         * lib/string_.h (strchr): Add a conditional link warning.
86899         (mbschr): New declaration.
86900         * m4/mbschr.m4: New file.
86901         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
86902         GNULIB_MBSCHR.
86903         * modules/string (string.h): Also substitute GNULIB_MBSCHR.
86904         * MODULES.html.sh (Internationalization functions): Add mbschr.
86906 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
86908         * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
86910         * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
86912 2007-02-04  Bruno Haible  <bruno@clisp.org>
86914         New module description section 'configure.ac-early'.
86915         * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
86916         (func_get_autoconf_early_snippet): New function.
86917         (func_import, func_create_testdir): Use it. Remove special cases for
86918         modules 'extensions' and 'lock'.
86919         * modules/extensions (configure.ac-early): Require
86920         gl_USE_SYSTEM_EXTENSIONS.
86921         * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
86923 2007-02-04  Bruno Haible  <bruno@clisp.org>
86925         Make use of gcj-4.3's -fsource and -ftarget option.
86926         * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
86927         and if so try the options -fsource and -ftarget.
86928         * lib/javacomp.c (compile_using_gcj): Add fsource_option,
86929         source_version, ftarget_option, target_version arguments.
86930         (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
86931         (is_envjavac_oldgcj_14_14_usable): Renamed from
86932         is_envjavac_gcj_14_14_usable.
86933         (is_envjavac_oldgcj_14_13_usable): Renamed from
86934         is_envjavac_gcj_14_13_usable.
86935         (is_gcj_present): Update.
86936         (is_gcj_43, is_gcj43_usable): New functions.
86937         (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
86938         (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
86939         (compile_java_class): Test whether gcj is in version >= 4.3, and if so
86940         try the options -fsource and -ftarget.
86942 2007-02-03  Paul Eggert  <eggert@cs.ucla.edu>
86944         * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
86945         checking code.  Set N = ceil (1.5 * N) rather than to a slightly
86946         larger value.
86948 2007-02-03  Jim Meyering  <jim@meyering.net>
86950         Give tools a better chance to allocate space for very large buffers.
86951         * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
86953         Make pwd and readlink work also when run with an unreadable parent dir
86954         on systems with openat support.
86955         * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
86956         provided getcwd function, even when we have openat support.
86957         Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
86959 2007-02-02  Bruno Haible  <bruno@clisp.org>
86961         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
86962         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
86963         error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
86964         portability problems if one of these functions is only used on specific
86965         platforms.
86966         Reported by Paul Eggert.
86968 2007-02-02  Paul Eggert  <eggert@cs.ucla.edu>
86970         Avoid mempcpy in the regex code, as the string.h mempcpy stuff
86971         is causing more trouble than it's curing.
86972         * lib/regex_internal.h (__mempcpy): Remove.
86973         * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
86974         (and make the code a tad smaller to boot).
86975         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
86977 2007-02-02  Jim Meyering  <jim@meyering.net>
86979         * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
86980         section, not in the Makefile.am: one.
86982 2007-02-02  Eric Blake  <ebb9@byu.net>
86984         * lib/strchrnul.c: Always include config.h first.
86986         * modules/mountlist (Depends-on): Revert 2007-01-31 change,
86987         gnulib strstr is not necessary here.
86989 2007-02-02  Simon Josefsson  <simon@josefsson.org>
86991         * m4/socklen.m4: Fix typo.
86993 2007-02-02  Eric Blake  <ebb9@byu.net>
86995         * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
86996         * modules/netinet_in (Makefile.am): Likewise.
86998 2007-02-01  Bruno Haible  <bruno@clisp.org>
87000         * lib/string_.h (GL_LINK_WARNING): New macro.
87001         (strcasecmp, strstr, strcasestr): If provided by the system,
87002         conditionally define as a macro that leads to a warning instead of to
87003         an error.
87004         (strncasecmp): Conditionally define as a macro that leads to a warning.
87006 2007-02-01  Karl Berry  <karl@gnu.org>
87008         * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
87010 2007-02-01  Bruno Haible  <bruno@clisp.org>
87012         * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
87013         renamings.
87015 2007-02-01  Eric Blake  <ebb9@byu.net>
87017         * modules/regex (Depends-on): Revert dependence on mempcpy.
87018         * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
87019         module's definition of mempcpy.
87020         Reported by Paul Eggert.
87022 2007-02-01  Paul Eggert  <eggert@cs.ucla.edu>
87024         * lib/string_.h: If the gnulib module XYZ is not present, undefine
87025         the symbol XYZ before redefining it.  This fixes a problem with
87026         programs that don't use XYZ, when compiled on systems that define
87027         XYZ to something else.
87029 2007-01-31  Paul Eggert  <eggert@cs.ucla.edu>
87031         * lib/mkdir-p.c (make_dir_parents): Close a race condition that
87032         occurs when "mkdir -m foo" creates a setgid directory that is (1)
87033         writeable to group or other and (2) is intended to have a special
87034         mode bit that is set or cleared.  In such a case, the directory
87035         should be neither group- nor other-writeable until the special
87036         mode bits are right.
87038 2007-01-31  Eric Blake  <ebb9@byu.net>
87040         * modules/mountlist (Depends-on): Add strstr.
87042         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
87043         bug.
87044         * modules/string (Makefile.am): Remove redundant replacement.
87045         * modules/regex (Depends-on): Add mempcpy.
87047 2007-01-31  Bruno Haible  <bruno@clisp.org>
87049         New module description field 'Link'.
87050         * gnulib-tool (func_usage): Document --extract-link-directive.
87051         (sed_extract_prog): Recognize 'Link' directive.
87052         (func_get_link_directive): New function.
87053         (func_import): Show summary of link directives.
87054         Handle --extract-link-directive option.
87055         * modules/acl (Link): New section.
87056         * modules/clock-time (Link): New section.
87057         * modules/euidaccess (Link): New section.
87058         * modules/gettext (Link): New section.
87059         * modules/iconv (Link): New section.
87060         * modules/lock (Link): New section.
87061         * modules/nanosleep (Link): New section.
87062         * modules/readline (Link): New section.
87064 2007-01-27  Bruno Haible  <bruno@clisp.org>
87066         Enforce the use of gnulib modules for unportable <string.h> functions.
87067         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
87068         (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
87069         (gl_HEADER_STRING_H_BODY): Require it.
87070         * lib/string_.h: If the gnulib module XYZ is not present, redefine
87071         the symbol XYZ to one that gives a link error.
87072         * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
87073         * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
87074         * modules/mempcpy (configure.ac): Likewise.
87075         * modules/memrchr (configure.ac): Likewise.
87076         * modules/stpcpy (configure.ac): Likewise.
87077         * modules/stpncpy (configure.ac): Likewise.
87078         * modules/strcase (configure.ac): Likewise.
87079         * modules/strcasestr (configure.ac): Likewise.
87080         * modules/strchrnul (configure.ac): Likewise.
87081         * modules/strdup (configure.ac): Likewise.
87082         * modules/strndup (configure.ac): Likewise.
87083         * modules/strnlen (configure.ac): Likewise.
87084         * modules/strpbrk (configure.ac): Likewise.
87085         * modules/strsep (configure.ac): Likewise.
87086         * modules/strstr (configure.ac): Likewise.
87087         * modules/strtok_r (configure.ac): Likewise.
87089 2007-01-31  Jean-Louis Martineau  <martineau@zmanda.com>  (tiny change)
87091         * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
87093 2007-01-30  Jim Meyering  <jim@meyering.net>
87095         * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
87097 2007-01-29  Bruno Haible  <bruno@clisp.org>
87099         * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
87100         * lib/execute.c: Likewise.
87101         * lib/pipe.c: Likewise.
87102         * lib/printf-args.h: Likewise.
87103         * lib/printf-args.c: Likewise.
87104         * lib/printf-parse.c: Likewise.
87105         * lib/vasnprintf.c: Likewise.
87107 2007-01-29  Eric Blake  <ebb9@byu.net>
87109         * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
87110         declaration.
87112 2007-01-29  Paul Eggert  <eggert@cs.ucla.edu>
87114         * lib/strptime.h (strptime): Use 'restrict' for args where
87115         POSIX requires this.
87116         * lib/strptime.c (strptime): Likewise.
87117         Change license notice from LGPL to GPL, since gnulib-tool will
87118         change this as needed.
87119         Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
87120         defined.
87121         Include "strptime.h" first, to check interface.
87122         Do not #undef _LIBC and _NL_CURRENT.
87123         Do not include <stdlib.h>; no longer needed.
87124         Include "time_r.h" and declare ptime_locale_status
87125         only if _LIBC is not defined.
87126         (__P): Remove unused macro.
87127         (match_string): Bring back glibc version, but use it only if _LIBC
87128         is defined.
87129         (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
87130         Remove unnecessary assertion and abort() call.
87131         Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
87132         * m4/strptime.m4: Fix serial number comment.
87133         (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
87134         * modules/strptime (Files): Add m4/tm_gmtoff.m4.
87135         (Depends-on): Add time_r.
87137 2007-01-29  Bruno Haible  <bruno@clisp.org>
87139         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
87140         strptime.
87141         * modules/strptime (Depends-on): Add stdbool.
87142         * lib/strptime.h: Include <time.h> always. Add comments.
87144 2007-01-29  Yoann Vandoorselaere  <yoann@prelude-ids.org>
87146         * modules/strptime: New file.
87147         * lib/strptime.h: New file.
87148         * lib/strptime.c: New file.
87149         * m4/strptime.m4: New file.
87151 2007-01-28  Paul Eggert  <eggert@cs.ucla.edu>
87153         * MODULES.html.sh: New module mpsort.
87154         * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
87156         * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
87157         a circularity problem with HP-UX ia64 reported by Bob Proulx in
87158         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00394.html>.
87159         All uses changed.
87160         (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
87161         All uses changed.
87162         * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
87163         to _Restrict_.
87164         * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
87165         the parameter matches the prototype.
87167 2007-01-28  Jim Meyering  <jim@meyering.net>
87169         * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
87170         sys/time.h here, reverting that part of the previous patch:
87171         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
87173 2007-01-28  Bruno Haible  <bruno@clisp.org>
87175         * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
87176         value of $(SYS_TIME_H).
87177         [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
87178         remove it conditionally, too. [added by Jim Meyering]
87179         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
87180         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
87181         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
87182         GETTIMEOFDAY_REPLACEMENT to 1.
87184 2007-01-28  Bruno Haible  <bruno@clisp.org>
87186         * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
87187         (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
87188         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
87189         Set UNISTD_H instead of UNISTD_H2.
87190         * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
87192 2007-01-28  Bruno Haible  <bruno@clisp.org>
87194         * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
87195         * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
87197 2007-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
87199         * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
87200         (func_create_testdir): Ensure C locale for `grep' and `tr'
87201         character ranges.
87202         (func_create_megatestdir): Avoid one `grep'.  Fix bug in
87203         ACLOCAL_AMFLAGS parsing state machine.
87205 2007-01-27  Bruno Haible  <bruno@clisp.org>
87207         * modules/unistr/base: Update.
87209 2007-01-27  Bruno Haible  <bruno@clisp.org>
87211         Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
87212         u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
87213         * modules/unistr/u32-mbtouc-unsafe: Renamed from
87214         modules/unistr/u32-mbtouc.
87215         * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
87216         * lib/unistr.h: Update.
87217         * lib/linebreak.c: Update.
87218         * modules/unistr/u32-mbtouc: Renamed from
87219         modules/unistr/u32-mbtouc-safe.
87220         * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
87221         * lib/unistr.h: Update.
87222         * lib/unistr/u32-to-u8.c: Update.
87223         * lib/unistr/u32-to-u16.c: Update.
87225 2007-01-27  Bruno Haible  <bruno@clisp.org>
87227         Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
87228         u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
87229         * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
87230         * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
87231         * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
87232         * modules/unistr/u16-mbtouc-unsafe: Renamed from
87233         modules/unistr/u16-mbtouc.
87234         * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
87235         * lib/unistr.h: Update.
87236         * lib/linebreak.c: Update.
87237         * modules/linebreak: Update.
87238         * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
87239         * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
87240         * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
87241         * modules/unistr/u16-mbtouc: Renamed from
87242         modules/unistr/u16-mbtouc-safe.
87243         * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
87244         * lib/unistr.h: Update.
87245         * lib/unistr/u16-to-u8.c: Update.
87246         * modules/unistr/u16-to-u8: Update.
87247         * lib/unistr/u16-to-u32.c: Update.
87248         * modules/unistr/u16-to-u32: Update.
87250 2007-01-27  Bruno Haible  <bruno@clisp.org>
87252         Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
87253         u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
87254         * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
87255         * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
87256         * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
87257         * modules/unistr/u8-mbtouc-unsafe: Renamed from
87258         modules/unistr/u8-mbtouc.
87259         * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
87260         * lib/unistr.h: Update.
87261         * lib/striconveh.c: Update.
87262         * modules/striconveh: Update.
87263         * lib/linebreak.c: Update.
87264         * modules/linebreak: Update.
87265         * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
87266         * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
87267         * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
87268         * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
87269         * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
87270         * lib/unistr.h: Update.
87271         * lib/striconveh.c: Update.
87272         * modules/striconveh: Update.
87273         * lib/unistr/u8-to-u16.c: Update.
87274         * modules/unistr/u8-to-u16: Update.
87275         * lib/unistr/u8-to-u32.c: Update.
87276         * modules/unistr/u8-to-u32: Update.
87278 2007-01-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
87280         Sync from Libtool.
87281         * lib/argz.c: Do not include strings.h nor memory.h, include
87282         string.h unconditionally.  Patch by Simon Josefsson.
87284 2007-01-27  Bruno Haible  <bruno@clisp.org>
87286         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
87287         from gl_HEADER_STRING_H_BODY.
87288         (gl_HEADER_STRING_H_BODY): Require it.
87289         * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
87290         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
87291         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
87292         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
87293         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
87294         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
87295         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
87296         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
87297         * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
87298         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
87299         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
87300         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
87301         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
87302         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
87303         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
87305 2007-01-27  Bruno Haible  <bruno@clisp.org>
87307         * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
87308         check_PROGRAMS into noinst_PROGRAMS.
87309         (func_emit_tests_Makefile_am): Likewise. Also don't initialize
87310         check_PROGRAMS in this case.
87311         (func_import): Set for_test to false.
87312         (func_create_testdir): Set for_test to true.
87314 2007-01-27  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
87315             Bruno Haible  <bruno@clisp.org>
87317         * modules/strcasestr (Files): Remove lib/strcasestr.h.
87318         (Depends-on): Add string.
87319         (Includes): Use <string.h> instead of strcasestr.h.
87320         * modules/string (Makefile.am): Also substitute the value of
87321         REPLACE_STRCASESTR.
87322         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
87323         assume strcasestr is declared in <string.h> not <strings.h>. Also
87324         set REPLACE_STRCASESTR.
87325         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
87326         REPLACE_STRCASESTR.
87327         * lib/strcasestr.h: Remove file.
87328         * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
87329         * lib/string_.h (strcasestr): New declaration.
87331 2007-01-27  Bruno Haible  <bruno@clisp.org>
87333         * lib/string_.h: Use 'extern'.
87335 2007-01-27  Jim Meyering  <jim@meyering.net>
87337         * lib/regex_internal.c (re_string_reconstruct): Remove declaration
87338         of set-but-not-used local, "q".
87340         * lib/mempcpy.c: Include <config.h> before <string.h>.
87341         This fixes a compilation error on HP-UX, due to the system's
87342         "restrict"-using mempcpy prototype.
87344 2007-01-26  Bruno Haible  <bruno@clisp.org>
87346         Small optimization.
87347         * lib/javacomp.c: Include c-strstr.h.
87348          (is_envjavac_gcj): Use c_strstr instead of strstr.
87349         * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
87351 2007-01-26  Bruno Haible  <bruno@clisp.org>
87353         * MODULES.html.sh (Unicode string functions): Add the new modules.
87355         * modules/uniconv/u32-strconv-to-locale: New file.
87356         * lib/uniconv/u32-strconv-to-locale.c: New file.
87358         * modules/uniconv/u16-strconv-to-locale: New file.
87359         * lib/uniconv/u16-strconv-to-locale.c: New file.
87361         * modules/uniconv/u8-strconv-to-locale: New file.
87362         * lib/uniconv/u8-strconv-to-locale.c: New file.
87364         * modules/uniconv/u32-strconv-from-locale: New file.
87365         * lib/uniconv/u32-strconv-from-locale.c: New file.
87367         * modules/uniconv/u16-strconv-from-locale: New file.
87368         * lib/uniconv/u16-strconv-from-locale.c: New file.
87370         * modules/uniconv/u8-strconv-from-locale: New file.
87371         * lib/uniconv/u8-strconv-from-locale.c: New file.
87373         * modules/uniconv/u32-strconv-to-enc: New file.
87374         * lib/uniconv/u32-strconv-to-enc.c: New file.
87375         * modules/uniconv/u32-strconv-to-enc-tests: New file.
87376         * tests/uniconv/test-u32-strconv-to-enc.c: New file.
87378         * modules/uniconv/u16-strconv-to-enc: New file.
87379         * lib/uniconv/u16-strconv-to-enc.c: New file.
87380         * lib/uniconv/u-strconv-to-enc.h: New file.
87381         * modules/uniconv/u16-strconv-to-enc-tests: New file.
87382         * tests/uniconv/test-u16-strconv-to-enc.c: New file.
87384         * modules/uniconv/u8-strconv-to-enc: New file.
87385         * lib/uniconv/u8-strconv-to-enc.c: New file.
87386         * modules/uniconv/u8-strconv-to-enc-tests: New file.
87387         * tests/uniconv/test-u8-strconv-to-enc.c: New file.
87389         * modules/uniconv/u32-strconv-from-enc: New file.
87390         * lib/uniconv/u32-strconv-from-enc.c: New file.
87391         * modules/uniconv/u32-strconv-from-enc-tests: New file.
87392         * tests/uniconv/test-u32-strconv-from-enc.c: New file.
87394         * modules/uniconv/u16-strconv-from-enc: New file.
87395         * lib/uniconv/u16-strconv-from-enc.c: New file.
87396         * modules/uniconv/u16-strconv-from-enc-tests: New file.
87397         * tests/uniconv/test-u16-strconv-from-enc.c: New file.
87399         * modules/uniconv/u8-strconv-from-enc: New file.
87400         * lib/uniconv/u8-strconv-from-enc.c: New file.
87401         * lib/uniconv/u-strconv-from-enc.h: New file.
87402         * modules/uniconv/u8-strconv-from-enc-tests: New file.
87403         * tests/uniconv/test-u8-strconv-from-enc.c: New file.
87405         * modules/uniconv/u32-conv-from-enc: New file.
87406         * lib/uniconv/u32-conv-from-enc.c: New file.
87407         * modules/uniconv/u32-conv-from-enc-tests: New file.
87408         * tests/uniconv/test-u32-conv-from-enc.c: New file.
87410         * modules/uniconv/u16-conv-from-enc: New file.
87411         * lib/uniconv/u16-conv-from-enc.c: New file.
87412         * lib/uniconv/u-conv-from-enc.h: New file.
87413         * modules/uniconv/u16-conv-from-enc-tests: New file.
87414         * tests/uniconv/test-u16-conv-from-enc.c: New file.
87416         * modules/uniconv/u8-conv-from-enc: New file.
87417         * lib/uniconv/u8-conv-from-enc.c: New file.
87418         * modules/uniconv/u8-conv-from-enc-tests: New file.
87419         * tests/uniconv/test-u8-conv-from-enc.c: New file.
87421         * modules/uniconv/base: New file.
87422         * lib/uniconv.h: New file.
87424 2007-01-26  Paul Eggert  <eggert@cs.ucla.edu>
87426         * doc/gnulib-tool.texi (Initial import): Update to match current
87427         behavior with strdup module.
87428         * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
87429         * lib/memmem.h: Remove; all uses removed.  This is now done
87430         by <string.h>.
87431         * lib/mempcpy.h: Likewise.
87432         * lib/memrchr.h: Likewise.
87433         * lib/stpcpy.h: Likewise.
87434         * lib/stpncpy.h: Likewise.
87435         * lib/strcase.h: Likewise.
87436         * lib/strchrnul.h: Likewise.
87437         * lib/strdup.h: Likewise.
87438         * lib/strndup.h: Likewise.
87439         * lib/strnlen.h: Likewise.
87440         * lib/strpbrk.h: Likewise.
87441         * lib/strsep.h: Likewise.
87442         * lib/strstr.h: Likewise.
87443         * lib/strtok_r.h: Likewise.
87444         * lib/string_.h: New file.
87445         * lib/argp-namefrob.h: Don't include no-longer-existent include files.
87446         Rely on <string.h> instead.
87447         * lib/canon-host.c: Likewise.
87448         * lib/chdir-long.c: Likewise.
87449         * lib/concatpath.c: Likewise.
87450         * lib/exclude.c: Likewise.
87451         * lib/fchdir.c: Likewise.
87452         * lib/getaddrinfo.c: Likewise.
87453         * lib/getcwd.c: Likewise.
87454         * lib/getsubopt.c: Likewise.
87455         * lib/glob.c: Likewise.
87456         * lib/hard-locale.c: Likewise.
87457         * lib/iconvme.c: Likewise.
87458         * lib/javacomp.c: Likewise.
87459         * lib/mempcpy.c: Likewise.
87460         * lib/memrchr.c: Likewise.
87461         * lib/regex_internal.h: Likewise.
87462         * lib/stpncpy.c: Likewise.
87463         * lib/strcasecmp.c: Likewise.
87464         * lib/strchrnul.c: Likewise.
87465         * lib/strdup.c: Likewise.
87466         * lib/striconv.c: Likewise.
87467         * lib/striconveh.c: Likewise.
87468         * lib/striconveha.c: Likewise.
87469         * lib/strncasecmp.c: Likewise.
87470         * lib/strndup.c: Likewise.
87471         * lib/strnlen.c: Likewise.
87472         * lib/strsep.c: Likewise.
87473         * lib/strstr.c: Likewise.
87474         * lib/strtok_r.c: Likewise.
87475         * lib/userspec.c: Likewise.
87476         * lib/w32spawn.h: Likewise.
87477         * lib/xstrndup.c: Likewise.
87478         * lib/mountlist.c (strstr): Remove decl.
87479         * m4/string_h.m4: New file.
87480         * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
87481         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
87482         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
87483         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
87484         * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
87485         * m4/strcase.m4 (gl_FUNC_STRCASECMP):
87486         Set REPLACE_STRCASECMP if necessary.
87487         (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
87488         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
87489         * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
87490         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
87491         HAVE_DECL_STRDUP if necessary.
87492         (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
87493         since gl_FUNC_STRNDUP does that now.
87494         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
87495         Check for decl here...
87496         (gl_PREREQ_STRNLEN): ... not here.
87497         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
87498         * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
87499         * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
87500         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
87501         necessary.
87502         * modules/string: New file.
87503         * modules/memmem (Files): Remove special-purpose include file.
87504         (Depends-on): Add string.
87505         (Include): Include <string.h>, not the removed file.
87506         * modules/mempcpy: Likewise.
87507         * modules/memrchr: Likewise.
87508         * modules/stpcpy: Likewise.
87509         * modules/stpncpy: Likewise.
87510         * modules/strcase: Likewise.
87511         * modules/strchrnul: Likewise.
87512         * modules/strdup: Likewise.
87513         * modules/strndup: Likewise.
87514         * modules/strnlen: Likewise.
87515         * modules/strpbrk: Likewise.
87516         * modules/strsep: Likewise.
87517         * modules/strstr: Likewise.
87518         * modules/strtok_r: Likewise.
87519         * tests/test-dirname.c: Don't include "strdup.h", since
87520         <string.h> now suffices.
87521         * tests/test-memmem.c: Don't include "memmem.h", since
87522         <string.h> now suffices.
87524 2007-01-25  Bruno Haible  <bruno@clisp.org>
87526         * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
87527         *resultp is 0.
87529         * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
87530         * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
87531         * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
87532         * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
87534         * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
87535         * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
87536         * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
87537         * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
87538         * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
87539         * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
87541 2007-01-24  Bruno Haible  <bruno@clisp.org>
87543         Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
87544         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00279.html>.
87545         * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
87546         * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
87547         gl_FUNC_FTS_CORE.
87548         (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
87549         * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
87550         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
87551         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
87552         * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
87553         * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
87554         gl_FUNC_FCHOWNAT.
87555         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
87556         gl_FUNC_STRFTIME.
87557         * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
87558         Reported by Ralf Wildenhues.
87560 2007-01-24  Bruno Haible  <bruno@clisp.org>
87562         Drop AC_REQUIRE calls that are redundant with the module dependencies.
87563         * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
87564         gl_GETADDRINFO.
87565         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
87566         gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
87567         * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
87569 2007-01-24  Paul Eggert  <eggert@cs.ucla.edu>
87571         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
87572         Don't use 'exit'; just return from 'main'.
87573         (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
87575         * lib/fnmatch_.h: Readjust white space and comments to match
87576         glibc, to avoid spurious diffs.
87578 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
87580         * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
87581         2004-12-01 change by Jakub Jelinek, since this code won't compile
87582         if !LIBC.  Problem reported by Bob Proulx.
87584 2007-01-23  Bruno Haible  <bruno@clisp.org>
87586         * lib/striconveh.c: Include c-strcaseeq.h.
87587         (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
87588         * modules/striconveh (Depends-on): Add c-strcaseeq.
87590 2007-01-23  Bruno Haible  <bruno@clisp.org>
87592         * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
87594         * modules/c-strcaseeq: New file.
87595         * lib/c-strcaseeq.h: New file.
87597         * modules/streq: New file.
87598         * lib/streq.h: New file.
87600 2007-01-23  Bruno Haible  <bruno@clisp.org>
87602         * modules/striconveha-tests: New file.
87603         * tests/test-striconveha.c: New file.
87605         * lib/striconveha.h: Include <stdbool.h>.
87606         (mem_iconveha, str_iconveha): Add 'transliterate' argument.
87607         * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
87608         (mem_iconveha_notranslit): Renamed from mem_iconveha.
87609         (mem_iconveha): New function.
87610         (str_iconveha_notranslit): Renamed from str_iconveha.
87611         (str_iconveha): New function.
87612         * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
87613         c-strcase.
87615 2007-01-23  Bruno Haible  <bruno@clisp.org>
87617         * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
87618         encodings without forgiving before trying any encoding with handler.
87619         (str_iconveha): Try all encodings without forgiving before trying any
87620         encoding with handler.
87622 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
87624         Import the following changes from libc.
87626         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
87628         * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
87630         2004-12-01  Jakub Jelinek  <jakub@redhat.com>
87632         * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
87633         normal_bracket label.
87635         2004-09-01  Jakub Jelinek  <jakub@redhat.com>
87637         [BZ #361]
87638         * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
87639         to normal_bracket after fetching the next character.
87641 2007-01-22  Bruno Haible  <bruno@clisp.org>
87643         * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
87644         argument.
87645         * lib/striconveh.c (iconv_carefully_1): New function.
87646         (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
87647         argument.
87648         (str_cd_iconveh): Update.
87649         * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
87650         * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
87651         * tests/test-striconveh.c (MAGIC): New macro.
87652         (new_offsets): New function.
87653         (main): Test call with and without offsets.
87655 2007-01-22  Bruno Haible  <bruno@clisp.org>
87657         * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
87658         * modules/sys_select (Makefile.am): Likewise.
87659         * modules/sys_socket (Makefile.am): Likewise.
87660         * modules/sys_time (Makefile.am): Likewise.
87662 2007-01-22  Paul Eggert  <eggert@cs.ucla.edu>
87664         * modules/gettimeofday (License): Change from GPL to LGPL, since
87665         gettimeofday is a library function.
87667 2007-01-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
87669         * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
87671 2007-01-21  Bruno Haible  <bruno@clisp.org>
87673         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
87675 2007-01-21  Bruno Haible  <bruno@clisp.org>
87677         * modules/striconveha: New file.
87678         * lib/striconveha.h: New file.
87679         * lib/striconveha.c: New file.
87680         * MODULES.html.sh (Internationalization functions): Add striconveha.
87681         * lib/striconv.c (str_iconv): Optimize the case of an empty input
87682         string.
87683         * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
87685 2007-01-21  Bruno Haible  <bruno@clisp.org>
87687         * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
87688         * lib/striconveh.c (str_iconveh): Likewise.
87690 2007-01-21  Bruno Haible  <bruno@clisp.org>
87692         * lib/striconveh.h (mem_iconveh): New declaration.
87693         * lib/striconveh.c (mem_iconveh): New function.
87694         * tests/test-striconveh.c (main): Add tests for mem_iconveh.
87696 2007-01-21  Bruno Haible  <bruno@clisp.org>
87698         * lib/xstriconv.h (xmem_cd_iconv): Change specification.
87700         * lib/striconveh.h (mem_cd_iconveh): Change specification.
87701         * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
87702         original result buffer.
87703         (str_cd_iconveh): Update.
87704         * tests/test-striconveh.c (main): Update.
87706         * lib/striconv.h (mem_cd_iconv): Change specification.
87707         * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
87708         result buffer.
87709         (str_cd_iconv): Update.
87710         * tests/test-striconv.c (main): Update.
87712 2007-01-21  Bruno Haible  <bruno@clisp.org>
87714         * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
87716 2007-01-20  Jim Meyering  <jim@meyering.net>
87718         * lib/userspec.c (parse_with_separator): If a user or group string
87719         starts with "+", skip the corresponding name-to-ID look-up, since
87720         such a look-up must fail: user and group names may not include "+".
87722 2007-01-19  Paul Eggert  <eggert@cs.ucla.edu>
87724         * lib/poll.c: Include sys/time.h and time.h unconditionally,
87725         since we now assume the sys_time module.
87726         * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
87727         check for sys/time.h; no longer needed.
87728         * modules/poll (Depends-on): Depend on sys_time.
87730 2007-01-18  Bruno Haible  <bruno@clisp.org>
87732         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
87733         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
87735         * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
87736         gettimeofday.
87738         * tests/test-gettimeofday.c: Include <time.h>.
87739         (dummy): Remove variable.
87741         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
87742         gl_HEADER_SYS_TIME_H.
87743         (gl_HEADER_SYS_TIME_H): New macro.
87745         * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
87746         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
87747         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
87748         gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
87749         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
87750         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
87751         GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
87752         and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
87753         * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
87754         instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
87755         GETTIMEOFDAY_CLOBBERS_LOCALTIME.
87757         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
87758         last change; it caused a compilation error when cross-compiling to
87759         Cygwin.
87761 2007-01-18  Jim Meyering  <jim@meyering.net>
87763         Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
87764         * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
87765         than the race-prone "test -d sys || mkdir sys".
87766         (configure.ac): Use AC_PROG_MKDIR_P.
87767         * modules/sys_select: Likewise.
87768         * modules/sys_socket: Likewise.
87769         * modules/sys_time: Likewise.
87771 2007-01-18  Eric Blake  <ebb9@byu.net>
87773         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
87774         replace gettimeofday.
87775         * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
87776         name, to avoid infinite recursion.
87778 2007-01-17  Paul Eggert  <eggert@cs.ucla.edu>
87780         * MODULES.html.sh (Support for systems lacking POSIX:2001): New
87781         module sys_time.
87782         * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
87783         assume timespec.h defines struct timeval.
87784         * lib/settime.c: Likewise.
87785         * lib/utimens.c: Likewise.
87786         * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
87787         since we now assume the gettimeofday module.
87788         * lib/tempname.c (__gen_tempname): Likewise.
87789         * lib/gettimeofday.h: Remove.
87790         * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
87791         Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
87792         Include <time.h>, for 'time()'.
87793         (localtime_buffer_addr): Also use this workaround if
87794         TZSET_CLOBBERS_LOCALTIME.  Set to a dummy static variable by default,
87795         to simplify the uses.  All uses changed.
87796         (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
87797         that #undef is inside {}, and 'const' follows type name consistently.
87798         (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
87799         (gettimeofday): Do not use the maximum possible value for
87800         tv->tv_usec, since that might break usages other than ls.c.
87801         Instead, we'll leave ls.c alone.  This undoes today's patch
87802         by Bruno.  Add a compile-time warning for 1s-clock resolution;
87803         we've never observed the problem but might as well keep the
87804         canary.
87805         * lib/nanosleep.c: Include timespec.h first, for interface check.
87806         * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
87807         now assume the sys_time module.
87808         * lib/tempname.c: Likewise.
87809         * lib/timespec.h: Likewise.
87810         * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
87811         needed.
87812         * lib/strftime.c: Likewise.
87813         * lib/timespec.h: Likewise.
87814         * lib/posixtm.c: Include posixtm.h first, for interface check.
87815         Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
87816         * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
87817         * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
87818         * lib/sys_time_.h: New file.
87819         * lib/timespec.h (struct timespec): Use long int, not long.
87820         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
87821         (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
87822         Remove obsolescent call to AC_HEADER_TIME.
87823         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
87824         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
87825         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
87826         * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
87827         Likewise.
87828         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
87829         * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
87830         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
87831         into the sys_time module.  Check for gettimeofday just once.
87832         Prefix our variables with gl_, not with ac_ or jm_.  Tighten test
87833         for gettimeofday signature to just check the signature.  Merely
87834         compile it, since linking doesn't test signature.  Improve test for
87835         whether gettimeofday.o is actually needed.
87836         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
87837         AC_FUNC_GETTIMEOFDAY_CLOBBER.  All uses changed.  Use
87838         AC_RUN_IFELSE rather than AC_TRY_RUN.  If clobbering, set
87839         and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
87840         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
87841         GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
87842         job.  Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
87843         * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
87844         than worrying about sys/time.h.
87845         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
87846         Don't bother worrying about TIME_WITH_SYS_TIME.
87847         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
87848         * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
87849         * m4/sys_time_h.m4: New file.
87850         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
87851         Don't include sys/time.h.  Return from main rather than exiting.
87852         Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
87853         all uses changed.
87854         * modules/gethrxtime (Depends-on): Add sys_time.
87855         * modules/gettime (Depends-on): Likewise.
87856         * modules/gettimeofday (Depends-on): Likewise.
87857         * modules/nanosleep (Depends-on): Likewise.
87858         * modules/settime (Depends-on): Likewise.
87859         * modules/tempname (Depends-on): Likewise.
87860         * modules/utimens (Depends-on): Likewise.
87861         * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
87862         (Include): Change back to <sys/time.h>.
87863         (Maintainer): Add self.
87864         * modules/sys_time: New file.
87865         * modules/tempname (Depends-on): Add gettimeofday.
87866         * tests/test-gettimeofday.c: Include <sys/time.h>
87867         rather than gettimeofday.h.
87869 2007-01-17  Bruno Haible  <bruno@clisp.org>
87871         * gnulib-tool (func_get_license): Revert last patch. Instead, let
87872         the license default to GPL.
87873         (func_create_testdir): Don't complain if a module is LGPL and its
87874         tests module depends on GPLed modules.
87876 2007-01-17  Bruno Haible  <bruno@clisp.org>
87878         * lib/gettimeofday.c (gettimeofday): Add code for the case
87879         HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
87880         maximum possible value for tv->tv_usec, rather than the minimum one.
87882 2005-10-08  Martin Lambers  <marlam@marlam.de>
87883 2005-10-08  Paul Eggert  <eggert@cs.ucla.edu>
87884 2007-01-16  Bruno Haible  <bruno@clisp.org>
87886         * modules/gettimeofday (Files): Add lib/gettimeofday.h.
87887         (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
87888         gl_FUNC_GETTIMEOFDAY.
87889         (Include): Add gettimeofday.h.
87890         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
87891         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
87892         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
87893         GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
87894         (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
87895         * lib/gettimeofday.h: New file.
87896         * lib/gettimeofday.c: Include <sys/timeb.h>.
87897         (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
87898         only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
87899         (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
87900         fall back on time().
87902         * tests/test-gettimeofday.c: New file.
87903         * modules/gettimeofday-tests: New file.
87905 2007-01-16  Eric Blake  <ebb9@byu.net>
87907         * modules/fnmatch (Depends-on): Depend on wchar.
87908         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
87909         * m4/fnmatch.m4: Likewise.
87910         * modules/mbchar (Makefile.am): Assume <wchar.h>.
87911         * m4/mbchar.m4: Likewise.
87912         * modules/mbswidth (Depends-on): Depend on wchar.
87913         * lib/mbswidth.c: Assume <wchar.h>.
87914         * m4/mbswidth.m4: Likewise.
87915         * modules/quotearg (Depends-on): Depend on wchar.
87916         * lib/quotearg.c: Assume <wchar.h>.
87917         * m4/quotearg.m4: Likewise.
87918         * modules/regex (Depends-on): Depend on wchar.
87919         * lib/regex_internal.h: Assume <wchar.h>.
87920         * m4/regex.m4: Likewise.
87921         * modules/stdint (Depends-on): Depend on wchar.
87922         * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
87923         * m4/stdint.m4: Likewise.
87924         * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
87925         * modules/strftime (Depends-on): Depend on wchar.
87926         * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
87927         * modules/strtol (Depends-on): Depend on wchar.
87928         * lib/strtol.c: Assume <wchar.h>.
87929         * modules/wcwidth (Depends-on): Depend on wchar.
87930         * lib/wcwidth.h: Assume <wchar.h>.
87931         * m4/wcwidth.m4: Likewise.
87933 2007-01-16  Bruno Haible  <bruno@clisp.org>
87935         * modules/csharpexec-script: New, created from...
87936         * modules/csharpexec: ... this.
87938 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
87940         * modules/javaexec-script: New, created from...
87941         * modules/javaexec: ... this.
87943 2007-01-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
87945         * modules/poll (Dependencies): Add sys_select.
87947 2007-01-15  Jim Meyering  <jim@meyering.net>
87949         * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
87950         redefinition bug when using both <utmp.h> and <utmpx.h> headers.
87951         * lib/readutmp.h: Likewise.  Reported by Daniel Richard G. in
87952         <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
87954 2007-01-15  Bruno Haible  <bruno@clisp.org>
87956         * modules/striconveh: New file.
87957         * lib/striconveh.h: New file.
87958         * lib/striconveh.c: New file.
87959         * MODULES.html.sh (Internationalization functions): Add striconveh.
87961         * modules/striconveh-tests: New file.
87962         * tests/test-striconveh.c: New file.
87964 2007-01-15  Bruno Haible  <bruno@clisp.org>
87966         * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
87967         not from GNU libiconv or GNU libc.
87969 2007-01-15  Bruno Haible  <bruno@clisp.org>
87971         * doc/gnulib-intro.texi (Copyright): Explain the different license
87972         terms for module descriptions, autoconf macros, tests, documentation.
87974 2007-01-14  Bruno Haible  <bruno@clisp.org>
87976         * modules/striconv-tests: New file.
87977         * tests/test-striconv.c: New file.
87979 2007-01-14  Bruno Haible  <bruno@clisp.org>
87981         * modules/iconv-tests: New file.
87982         * tests/test-iconv.c: New file.
87984 2007-01-14  Bruno Haible  <bruno@clisp.org>
87986         * gnulib-tool (func_get_license): For test modules, use the license of
87987         the main module.
87989 2007-01-14  Bruno Haible  <bruno@clisp.org>
87991         * modules/iconv (Include): Clarify that <iconv.h> can only be included
87992         if iconv is found to exist.
87994 2007-01-14  Bruno Haible  <bruno@clisp.org>
87996         * modules/c-ctype-tests: New file.
87997         * tests/test-c-ctype.c: New file.
87999 2007-01-14  Bruno Haible  <bruno@clisp.org>
88001         * modules/binary-io-tests: New file.
88002         * tests/test-binary-io.sh: New file.
88003         * tests/test-binary-io.c: New file.
88005 2007-01-14  Bruno Haible  <bruno@clisp.org>
88007         * modules/array-oset-tests: New file.
88008         * tests/test-array_oset.c: New file.
88010 2007-01-14  Bruno Haible  <bruno@clisp.org>
88012         * modules/array-list-tests: New file.
88013         * tests/test-array_list.c: New file.
88015 2007-01-14  Bruno Haible  <bruno@clisp.org>
88017         * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
88018         and make.
88019         Reported by Simon Josefsson in
88020         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00139.html>
88022 2007-01-14  Bruno Haible  <bruno@clisp.org>
88024         * modules/allocsa-tests: New file.
88025         * tests/test-allocsa.c: New file.
88027 2007-01-14  Bruno Haible  <bruno@clisp.org>
88029         * modules/fchdir (Depends-on): Add absolute-header.
88030         * modules/unistd (Depends-on): Likewise.
88032 2006-12-30  Bruno Haible  <bruno@clisp.org>
88034         * modules/fchdir: New file.
88035         * modules/unistd (Files): Add lib/unistd_.h.
88036         (Makefile.am): Generate unistd.h from unistd_.h.
88037         * lib/fchdir.c: New file.
88038         * lib/dirent_.h: New file.
88039         * lib/unistd_.h: New file.
88040         * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
88041         * m4/fchdir.m4: New file.
88042         * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
88043         (gl_HEADER_UNISTD): Invoke it.
88044         * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
88045         function.
88046         * lib/backupfile.c (opendir, closedir): Undefine.
88047         * lib/chown.c (open, close): Undefine.
88048         * lib/clean-temp.c (open, close): Undefine.
88049         * lib/copy-file.c (open, close): Undefine.
88050         * lib/execute.c (open, close): Undefine.
88051         * lib/fsusage.c (open, close): Undefine.
88052         * lib/gc-gnulib.c (open, close): Undefine.
88053         * lib/getcwd.c (opendir, closedir): Undefine.
88054         * lib/glob.c (opendir, closedir): Undefine.
88055         * lib/javacomp.c (open, close): Undefine.
88056         * lib/mountlist.c (open, close, opendir, closedir): Undefine.
88057         * lib/openat-proc.c (open, close): Undefine.
88058         * lib/pagealign_alloc.c (open, close): Undefine.
88059         * lib/pipe.c (open, close): Undefine.
88060         * lib/progreloc.c (open, close): Undefine.
88061         * lib/savedir.c (opendir, closedir): Undefine.
88062         * lib/utime.c (open, close): Undefine.
88063         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
88065 2007-01-10  Bruno Haible  <bruno@clisp.org>
88067         * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
88069 2007-01-12  Eric Blake  <ebb9@byu.net>
88071         Provide a robust <wchar.h>.  Further simplifications are now
88072         possible in other modules, but not included here.
88073         * modules/wchar: New module.
88074         * m4/wchar.m4: New file.
88075         * lib/wchar_.h: Likewise.
88076         * modules/mbchar (Depends-on): Depend on wchar, as the first use
88077         of the new module.
88078         * MODULES.html.sh (Extended multibyte and wide character utilities):
88079         New section.
88081 2007-01-12  Paul Eggert  <eggert@cs.ucla.edu>
88083         * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
88084         to a reasonable default for memory allocation.
88085         (xreadlink): Don't allocate a huge buffer, to work around a buggy
88086         file system that reports garbage st_size values for symlinks.
88087         Problem reported by Liyang Hu.
88089 2007-01-11  Simon Josefsson  <simon@josefsson.org>
88091         * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
88092         Emacs .#* auto-save files).
88094 2007-01-11  Bruno Haible  <bruno@clisp.org>
88096         * gnulib-tool (func_all_modules): Exclude all files inside the CVS
88097         directory.
88099 2007-01-10  Paul Eggert  <eggert@cs.ucla.edu>
88101         Use @...@ consistently in lib/wctype_.h.
88102         * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
88103         on it being set to 1 or 0.
88104         * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
88105         go back to AC_SUBSTing it.
88106         * modules/wctype (Makefile.am): Undo previous change.
88108 2007-01-10  Eric Blake  <ebb9@byu.net>
88110         * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
88111         * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
88112         * modules/wctype (Makefile.am): Likewise.
88113         Reported by Chris McGuire.
88115 2007-01-10  Jim Meyering  <jim@meyering.net>
88117         fts.c: a small readability/maintainability improvement
88118         * lib/fts.c (fts_read): Make this code slightly more readable and
88119         maintainable by hoisting the "sp->fts_cur = p" assignments to
88120         immediately follow the statements that set P.  Derived from
88121         the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
88123 2007-01-10  Eric Blake  <ebb9@byu.net>
88125         * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
88126         <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
88127         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
88128         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
88129         Reported by Chris McGuire.
88131 2007-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
88133         * gnulib-tool (func_all_modules): Use POSIX conforming escaping
88134         in sed script.
88136 2007-01-09  Bruno Haible  <bruno@clisp.org>
88138         * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
88139         (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
88140         variables.
88141         (func_module): Use them.
88143 2007-01-09  Bruno Haible  <bruno@clisp.org>
88145         * modules/unistr/base: New file.
88146         * lib/unistr.h: New file.
88148         * modules/unistr/u8-to-u16: New file.
88149         * lib/unistr/u8-to-u16.c: New file.
88151         * modules/unistr/u8-to-u32: New file.
88152         * lib/unistr/u8-to-u32.c: New file.
88154         * modules/unistr/u16-to-u8: New file.
88155         * lib/unistr/u16-to-u8.c: New file.
88157         * modules/unistr/u16-to-u32: New file.
88158         * lib/unistr/u16-to-u32.c: New file.
88160         * modules/unistr/u32-to-u8: New file.
88161         * lib/unistr/u32-to-u8.c: New file.
88163         * modules/unistr/u32-to-u16: New file.
88164         * lib/unistr/u32-to-u16.c: New file.
88166         * modules/unistr/u8-check: New file.
88167         * modules/unistr/u16-check: New file.
88168         * modules/unistr/u32-check: New file.
88169         * lib/unistr/u8-check.c: New file.
88170         * lib/unistr/u16-check.c: New file.
88171         * lib/unistr/u32-check.c: New file.
88173         * modules/unistr/u8-chr: New file.
88174         * modules/unistr/u16-chr: New file.
88175         * modules/unistr/u32-chr: New file.
88176         * lib/unistr/u8-chr.c: New file.
88177         * lib/unistr/u16-chr.c: New file.
88178         * lib/unistr/u32-chr.c: New file.
88180         * modules/unistr/u8-cmp: New file.
88181         * modules/unistr/u16-cmp: New file.
88182         * modules/unistr/u32-cmp: New file.
88183         * lib/unistr/u8-cmp.c: New file.
88184         * lib/unistr/u16-cmp.c: New file.
88185         * lib/unistr/u32-cmp.c: New file.
88187         * modules/unistr/u8-cpy: New file.
88188         * modules/unistr/u16-cpy: New file.
88189         * modules/unistr/u32-cpy: New file.
88190         * lib/unistr/u8-cpy.c: New file.
88191         * lib/unistr/u16-cpy.c: New file.
88192         * lib/unistr/u32-cpy.c: New file.
88193         * lib/unistr/u-cpy.h: New file.
88195         * modules/unistr/u8-cpy-alloc: New file.
88196         * modules/unistr/u16-cpy-alloc: New file.
88197         * modules/unistr/u32-cpy-alloc: New file.
88198         * lib/unistr/u8-cpy-alloc.c: New file.
88199         * lib/unistr/u16-cpy-alloc.c: New file.
88200         * lib/unistr/u32-cpy-alloc.c: New file.
88201         * lib/unistr/u-cpy-alloc.h: New file.
88203         * modules/unistr/u8-endswith: New file.
88204         * modules/unistr/u16-endswith: New file.
88205         * modules/unistr/u32-endswith: New file.
88206         * lib/unistr/u8-endswith.c: New file.
88207         * lib/unistr/u16-endswith.c: New file.
88208         * lib/unistr/u32-endswith.c: New file.
88209         * lib/unistr/u-endswith.h: New file.
88211         * modules/unistr/u8-mblen: New file.
88212         * modules/unistr/u16-mblen: New file.
88213         * modules/unistr/u32-mblen: New file.
88214         * lib/unistr/u8-mblen.c: New file.
88215         * lib/unistr/u16-mblen.c: New file.
88216         * lib/unistr/u32-mblen.c: New file.
88218         * modules/unistr/u8-mbtouc: New file.
88219         * modules/unistr/u16-mbtouc: New file.
88220         * modules/unistr/u32-mbtouc: New file.
88221         * lib/unistr/u8-mbtouc.c: New file.
88222         * lib/unistr/u16-mbtouc.c: New file.
88223         * lib/unistr/u32-mbtouc.c: New file.
88225         * modules/unistr/u8-mbtouc-safe: New file.
88226         * modules/unistr/u16-mbtouc-safe: New file.
88227         * modules/unistr/u32-mbtouc-safe: New file.
88228         * lib/unistr/u8-mbtouc-safe.c: New file.
88229         * lib/unistr/u16-mbtouc-safe.c: New file.
88230         * lib/unistr/u32-mbtouc-safe.c: New file.
88232         * modules/unistr/u8-move: New file.
88233         * modules/unistr/u16-move: New file.
88234         * modules/unistr/u32-move: New file.
88235         * lib/unistr/u8-move.c: New file.
88236         * lib/unistr/u16-move.c: New file.
88237         * lib/unistr/u32-move.c: New file.
88238         * lib/unistr/u-move.h: New file.
88240         * modules/unistr/u8-next: New file.
88241         * modules/unistr/u16-next: New file.
88242         * modules/unistr/u32-next: New file.
88243         * lib/unistr/u8-next.c: New file.
88244         * lib/unistr/u16-next.c: New file.
88245         * lib/unistr/u32-next.c: New file.
88247         * modules/unistr/u8-prev: New file.
88248         * modules/unistr/u16-prev: New file.
88249         * modules/unistr/u32-prev: New file.
88250         * lib/unistr/u8-prev.c: New file.
88251         * lib/unistr/u16-prev.c: New file.
88252         * lib/unistr/u32-prev.c: New file.
88254         * modules/unistr/u8-set: New file.
88255         * modules/unistr/u16-set: New file.
88256         * modules/unistr/u32-set: New file.
88257         * lib/unistr/u8-set.c: New file.
88258         * lib/unistr/u16-set.c: New file.
88259         * lib/unistr/u32-set.c: New file.
88260         * lib/unistr/u-set.h: New file.
88262         * modules/unistr/u8-startswith: New file.
88263         * modules/unistr/u16-startswith: New file.
88264         * modules/unistr/u32-startswith: New file.
88265         * lib/unistr/u8-startswith.c: New file.
88266         * lib/unistr/u16-startswith.c: New file.
88267         * lib/unistr/u32-startswith.c: New file.
88268         * lib/unistr/u-startswith.h: New file.
88270         * modules/unistr/u8-stpcpy: New file.
88271         * modules/unistr/u16-stpcpy: New file.
88272         * modules/unistr/u32-stpcpy: New file.
88273         * lib/unistr/u8-stpcpy.c: New file.
88274         * lib/unistr/u16-stpcpy.c: New file.
88275         * lib/unistr/u32-stpcpy.c: New file.
88276         * lib/unistr/u-stpcpy.h: New file.
88278         * modules/unistr/u8-stpncpy: New file.
88279         * modules/unistr/u16-stpncpy: New file.
88280         * modules/unistr/u32-stpncpy: New file.
88281         * lib/unistr/u8-stpncpy.c: New file.
88282         * lib/unistr/u16-stpncpy.c: New file.
88283         * lib/unistr/u32-stpncpy.c: New file.
88284         * lib/unistr/u-stpncpy.h: New file.
88286         * modules/unistr/u8-strcat: New file.
88287         * modules/unistr/u16-strcat: New file.
88288         * modules/unistr/u32-strcat: New file.
88289         * lib/unistr/u8-strcat.c: New file.
88290         * lib/unistr/u16-strcat.c: New file.
88291         * lib/unistr/u32-strcat.c: New file.
88292         * lib/unistr/u-strcat.h: New file.
88294         * modules/unistr/u8-strchr: New file.
88295         * modules/unistr/u16-strchr: New file.
88296         * modules/unistr/u32-strchr: New file.
88297         * lib/unistr/u8-strchr.c: New file.
88298         * lib/unistr/u16-strchr.c: New file.
88299         * lib/unistr/u32-strchr.c: New file.
88301         * modules/unistr/u8-strcmp: New file.
88302         * modules/unistr/u16-strcmp: New file.
88303         * modules/unistr/u32-strcmp: New file.
88304         * lib/unistr/u8-strcmp.c: New file.
88305         * lib/unistr/u16-strcmp.c: New file.
88306         * lib/unistr/u32-strcmp.c: New file.
88308         * modules/unistr/u8-strcpy: New file.
88309         * modules/unistr/u16-strcpy: New file.
88310         * modules/unistr/u32-strcpy: New file.
88311         * lib/unistr/u8-strcpy.c: New file.
88312         * lib/unistr/u16-strcpy.c: New file.
88313         * lib/unistr/u32-strcpy.c: New file.
88314         * lib/unistr/u-strcpy.h: New file.
88316         * modules/unistr/u8-strcspn: New file.
88317         * modules/unistr/u16-strcspn: New file.
88318         * modules/unistr/u32-strcspn: New file.
88319         * lib/unistr/u8-strcspn.c: New file.
88320         * lib/unistr/u16-strcspn.c: New file.
88321         * lib/unistr/u32-strcspn.c: New file.
88322         * lib/unistr/u-strcspn.h: New file.
88324         * modules/unistr/u8-strdup: New file.
88325         * modules/unistr/u16-strdup: New file.
88326         * modules/unistr/u32-strdup: New file.
88327         * lib/unistr/u8-strdup.c: New file.
88328         * lib/unistr/u16-strdup.c: New file.
88329         * lib/unistr/u32-strdup.c: New file.
88330         * lib/unistr/u-strdup.h: New file.
88332         * modules/unistr/u8-strlen: New file.
88333         * modules/unistr/u16-strlen: New file.
88334         * modules/unistr/u32-strlen: New file.
88335         * lib/unistr/u8-strlen.c: New file.
88336         * lib/unistr/u16-strlen.c: New file.
88337         * lib/unistr/u32-strlen.c: New file.
88338         * lib/unistr/u-strlen.h: New file.
88340         * modules/unistr/u8-strmblen: New file.
88341         * modules/unistr/u16-strmblen: New file.
88342         * modules/unistr/u32-strmblen: New file.
88343         * lib/unistr/u8-strmblen.c: New file.
88344         * lib/unistr/u16-strmblen.c: New file.
88345         * lib/unistr/u32-strmblen.c: New file.
88347         * modules/unistr/u8-strmbtouc: New file.
88348         * modules/unistr/u16-strmbtouc: New file.
88349         * modules/unistr/u32-strmbtouc: New file.
88350         * lib/unistr/u8-strmbtouc.c: New file.
88351         * lib/unistr/u16-strmbtouc.c: New file.
88352         * lib/unistr/u32-strmbtouc.c: New file.
88354         * modules/unistr/u8-strncat: New file.
88355         * modules/unistr/u16-strncat: New file.
88356         * modules/unistr/u32-strncat: New file.
88357         * lib/unistr/u8-strncat.c: New file.
88358         * lib/unistr/u16-strncat.c: New file.
88359         * lib/unistr/u32-strncat.c: New file.
88360         * lib/unistr/u-strncat.h: New file.
88362         * modules/unistr/u8-strncmp: New file.
88363         * modules/unistr/u16-strncmp: New file.
88364         * modules/unistr/u32-strncmp: New file.
88365         * lib/unistr/u8-strncmp.c: New file.
88366         * lib/unistr/u16-strncmp.c: New file.
88367         * lib/unistr/u32-strncmp.c: New file.
88369         * modules/unistr/u8-strncpy: New file.
88370         * modules/unistr/u16-strncpy: New file.
88371         * modules/unistr/u32-strncpy: New file.
88372         * lib/unistr/u8-strncpy.c: New file.
88373         * lib/unistr/u16-strncpy.c: New file.
88374         * lib/unistr/u32-strncpy.c: New file.
88375         * lib/unistr/u-strncpy.h: New file.
88377         * modules/unistr/u8-strnlen: New file.
88378         * modules/unistr/u16-strnlen: New file.
88379         * modules/unistr/u32-strnlen: New file.
88380         * lib/unistr/u8-strnlen.c: New file.
88381         * lib/unistr/u16-strnlen.c: New file.
88382         * lib/unistr/u32-strnlen.c: New file.
88383         * lib/unistr/u-strnlen.h: New file.
88385         * modules/unistr/u8-strpbrk: New file.
88386         * modules/unistr/u16-strpbrk: New file.
88387         * modules/unistr/u32-strpbrk: New file.
88388         * lib/unistr/u8-strpbrk.c: New file.
88389         * lib/unistr/u16-strpbrk.c: New file.
88390         * lib/unistr/u32-strpbrk.c: New file.
88391         * lib/unistr/u-strpbrk.h: New file.
88393         * modules/unistr/u8-strrchr: New file.
88394         * modules/unistr/u16-strrchr: New file.
88395         * modules/unistr/u32-strrchr: New file.
88396         * lib/unistr/u8-strrchr.c: New file.
88397         * lib/unistr/u16-strrchr.c: New file.
88398         * lib/unistr/u32-strrchr.c: New file.
88400         * modules/unistr/u8-strspn: New file.
88401         * modules/unistr/u16-strspn: New file.
88402         * modules/unistr/u32-strspn: New file.
88403         * lib/unistr/u8-strspn.c: New file.
88404         * lib/unistr/u16-strspn.c: New file.
88405         * lib/unistr/u32-strspn.c: New file.
88406         * lib/unistr/u-strspn.h: New file.
88408         * modules/unistr/u8-strstr: New file.
88409         * modules/unistr/u16-strstr: New file.
88410         * modules/unistr/u32-strstr: New file.
88411         * lib/unistr/u8-strstr.c: New file.
88412         * lib/unistr/u16-strstr.c: New file.
88413         * lib/unistr/u32-strstr.c: New file.
88414         * lib/unistr/u-strstr.h: New file.
88416         * modules/unistr/u8-strtok: New file.
88417         * modules/unistr/u16-strtok: New file.
88418         * modules/unistr/u32-strtok: New file.
88419         * lib/unistr/u8-strtok.c: New file.
88420         * lib/unistr/u16-strtok.c: New file.
88421         * lib/unistr/u32-strtok.c: New file.
88422         * lib/unistr/u-strtok.h: New file.
88424         * modules/unistr/u8-uctomb: New file.
88425         * modules/unistr/u16-uctomb: New file.
88426         * modules/unistr/u32-uctomb: New file.
88427         * lib/unistr/u8-uctomb.c: New file.
88428         * lib/unistr/u16-uctomb.c: New file.
88429         * lib/unistr/u32-uctomb.c: New file.
88431         * MODULES.html.sh (Unicode string functions): Add the new modules.
88433 2007-01-08  Bruno Haible  <bruno@clisp.org>
88435         * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
88436         modules directory. Filter out CVS, ChangeLog, COPYING, README also from
88437         subdirectories.
88439 2007-01-08  Karl Berry  <karl@gnu.org>
88441         * doc/error.texi: mention that main() fns must set program_name
88442         when progname is used.
88444 2007-01-08  Paul Eggert  <eggert@cs.ucla.edu>
88446         * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
88447         WCTYPE_H is empty, for the benefit of builds from non-distclean
88448         directories.  Problem reported by Eric Blake in
88449         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00157.html>.
88451 2007-01-08  Bruno Haible  <bruno@clisp.org>
88453         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
88454         PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
88455         * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
88456         PROVIDE_CANONICALIZE_FILENAME_MODE.
88457         * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
88459 2007-01-08  Bruno Haible  <bruno@clisp.org>
88461         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
88462         * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
88463         Use !GNULIB_FTS instead of _LGPL_PACKAGE.
88464         * lib/fts.c: Likewise.
88465         * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
88467 2006-12-25  Bruno Haible  <bruno@clisp.org>
88469         * modules/utf8-ucs4-safe: New file.
88470         * lib/utf8-ucs4-safe.h: New file.
88471         * lib/unistr/utf8-ucs4-safe.c: New file.
88473         * modules/utf16-ucs4-safe: New file.
88474         * lib/utf16-ucs4-safe.h: New file.
88475         * lib/unistr/utf16-ucs4-safe.c: New file.
88477         * MODULES.html.sh (Unicode string functions): Add the new modules.
88479 2007-01-08  Bruno Haible  <bruno@clisp.org>
88481         * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
88482         (Depends-on): Add unitypes.
88483         * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
88484         (u8_mbtouc_aux): Move out to separate file.
88485         (u8_mbtouc): Use ucs4_t, uint8_t types.
88486         * lib/unistr/utf8-ucs4.c: New file.
88488         * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
88489         (Depends-on): Add unitypes.
88490         * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
88491         (u16_mbtouc_aux): Move out to separate file.
88492         (u16_mbtouc): Use ucs4_t, uint16_t types.
88493         * lib/unistr/utf16-ucs4.c: New file.
88495         * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
88496         (Depends-on): Add unitypes.
88497         * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
88498         (u8_uctomb_aux): Move out to separate file.
88499         (u8_uctomb): Use ucs4_t, uint8_t types.
88500         * lib/unistr/ucs4-utf8.c: New file.
88502         * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
88503         (Depends-on): Add unitypes.
88504         * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
88505         (u16_uctomb_aux): Move out to separate file.
88506         (u16_uctomb): Use ucs4_t, uint16_t types.
88507         * lib/unistr/ucs4-utf16.c: New file.
88509 2006-12-25  Bruno Haible  <bruno@clisp.org>
88511         * modules/unitypes: New file.
88512         * lib/unitypes.h: New file.
88513         * MODULES.html.sh (func_all_modules): New section "Unicode string
88514         functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
88515         this section. Add unitypes.
88517 2007-01-08  Bruno Haible  <bruno@clisp.org>
88519         Avoid variable names that conflict with those from libtool.
88520         * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
88521         AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
88522         shlibext to acl_shlibext, libname_spec to acl_libname_spec,
88523         library_names_spec to acl_library_names_spec, hardcode_* to
88524         acl_hardcode_*.
88525         Reported by Ralf Wildenhues.
88527 2007-01-08  Bruno Haible  <bruno@clisp.org>
88529         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
88530         definition.
88531         * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
88532         definition.
88533         * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
88534         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
88535         definition.
88536         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
88537         definition.
88538         * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
88539         * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
88540         * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
88541         * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
88542         definition.
88543         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
88544         definition.
88545         * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
88546         * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
88547         GC_USE_<algorithm>.
88548         * lib/gc-libgcrypt.c: Likewise.
88549         * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
88550         * modules/gc-arctwo (configure.ac): Likewise.
88551         * modules/gc-des (configure.ac): Likewise.
88552         * modules/gc-hmac-md5 (configure.ac): Likewise.
88553         * modules/gc-hmac-sha1 (configure.ac): Likewise.
88554         * modules/gc-md2 (configure.ac): Likewise.
88555         * modules/gc-md4 (configure.ac): Likewise.
88556         * modules/gc-md5 (configure.ac): Likewise.
88557         * modules/gc-random (configure.ac): Likewise.
88558         * modules/gc-rijndael (configure.ac): Likewise.
88559         * modules/gc-sha1 (configure.ac): Likewise.
88561 2007-01-08  Bruno Haible  <bruno@clisp.org>
88563         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
88564         macro definition.
88565         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
88566         definition.
88567         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
88568         definition.
88569         * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
88570         * modules/fcntl-safer (configure.ac): Likewise.
88571         * modules/fopen-safer (configure.ac): Likewise.
88572         * modules/fwriteerror (configure.ac): Likewise. Remove explicit
88573         GNULIB_FWRITEERROR macro definition.
88575 2007-01-08  Bruno Haible  <bruno@clisp.org>
88577         * m4/gnulib-common.m4: New file.
88578         * gnulib-tool (func_get_autoconf_snippet): Undo last change.
88579         (func_get_filelist): Add m4/gnulib-common.m4.
88581 2007-01-08  Bruno Haible  <bruno@clisp.org>
88583         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
88584         command.
88586 2007-01-08  Jim Meyering  <jim@meyering.net>
88588         Use a more robust test for a "can't happen" condition.
88589         * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
88590         narrowed the st_size value.  Presuming the "can't happen" condition
88591         is true, that narrowing could conceivably convert an invalid st_size
88592         value into a valid one.  Instead, use a change based on Matthew
88593         Woehlke's original patch.
88595         Slight readability improvement: use an assert-like macro
88596         in place of literal "abort ()" uses.
88597         * lib/fts.c (fts_assert): Define.
88598         (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
88599         Use this macro instead of a bare 'abort'.
88601 2007-01-05  Paul Eggert  <eggert@cs.ucla.edu>
88603         Don't worry about using IRIX 5.3's wctype.h broken definitions;
88604         simply work around them.
88605         * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
88606         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
88607         (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before
88608         declaring.
88609         Don't bother to define as macros, since the standard doesn't require it.
88610         * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
88611         longer worry about IRIX 5.3.
88612         (HAVE_WCTYPE_CTMP_BUG): Remove.
88614 2007-01-04  Paul Eggert  <eggert@cs.ucla.edu>
88616         * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
88617         not wint_t.  Also, include <ctype.h>, to fix another IRIX bug.
88618         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
88619         Problems reported by Georg Schwarz for IRIX 5.3.
88621         * gnulib-tool (autoconf_minversion): Take the maximum version number
88622         found, not the minimum.  Problem reported by James Youngman.
88624 2007-01-03  Karl Berry  <karl@gnu.org>
88626         * doc/error.texi: new file, explaining interaction with progname.
88627         * doc/gnulib.texi: include it.  Update copyright.
88629 2007-01-03  Simon Josefsson  <simon@josefsson.org>
88631         * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
88632         AC_CANONICAL_HOST, to improve autobuild outputs.
88634 2007-01-03  Paolo Bonzini  <bonzini@gnu.org>
88635             Yoann Vandoorselaere <yoann.v@prelude-ids.com>
88637         * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
88638         sockets, server sockets, and other file descriptors.  Count errors
88639         to compute the return value.  Reorder the code a bit to be easier
88640         to follow.  Don't set event bits that were not requested (except
88641         POLLERR and POLLHUP).
88643 2007-01-01  Bruno Haible  <bruno@clisp.org>
88645         * modules/lchmod (Include): Require lchmod.h, not lchown.h.
88647 2007-01-03  Jim Meyering  <jim@meyering.net>
88649         * modules/fts-lgpl (Depends-on): Add i-ring.  Reported by Bruno Haible.
88651 2007-01-02  Bruno Haible  <bruno@clisp.org>
88653         * modules/settime (Include): Require timespec.h.
88654         * modules/nanosleep (Include): Likewise.
88656 2007-01-01  Bruno Haible  <bruno@clisp.org>
88658         * gnulib-tool (func_emit_copyright_notice): Bump year.
88659         (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
88661 2007-01-01  Bruno Haible  <bruno@clisp.org>
88663         Improve support for OpenBSD.
88664         * build-aux/config.rpath (libname_spec): Export.
88665         (library_names_spec): New variable. Export.
88666         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
88667         library_names_spec from the config.rpath output. Locate shared library
88668         through the name pattern in library_names_spec.
88670 2007-01-01  Eric Blake  <ebb9@byu.net>
88672         * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
88674 2006-12-30  Paul Eggert  <eggert@cs.ucla.edu>
88676         * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
88677         Rewrite so as not to assume GNU sort or "tail -1".  Also, don't
88678         assume the C locale, and avoid an "eval" that could cause trouble.
88679         Problem with SORT reported by Bob Proulx.
88681         * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
88682         Define.  Trivial patch from Henning Nielsen Lund, originally
88683         sent to bug-grep@gnu.org today.
88685 2006-12-29  Paul Eggert  <eggert@cs.ucla.edu>
88687         * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
88688         struct stat.  Problem reported by Henning Nielsen Lund.
88689         * lib/acl.c: Include acl.h first, to check interface.  Don't
88690         bother to include sys/types.h and sys/stat.h again.
88692 2006-12-28  Paul Eggert  <eggert@cs.ucla.edu>
88694         Import the following change from libc; problem reported by
88695         Sven Verdoolaege.
88697         2005-10-13  Ulrich Drepper  <drepper@redhat.com>
88699         [BZ #1373]
88700         * lib/argp.h: Remove __NTH for __argp_usage inline function.
88702 2006-12-28  Jim Meyering  <jim@meyering.net>
88704         * build-aux/announce-gen: Do not assume that the package
88705         builds any of tar.gz, tar.bz2, and .xdelta files.
88706         Suggestion from Simon Josefsson.
88708 2006-12-28  Simon Josefsson  <simon@josefsson.org>
88710         * modules/announce-gen: New file.
88712 2006-12-27  Paul Eggert  <eggert@cs.ucla.edu>
88714         * lib/mbchar.h: Just include <wctype.h>; the wctype module
88715         handles its gotchas now.
88716         * lib/mbswidth.c: Likewise.
88717         * lib/wcwidth.h: Likewise.
88718         * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
88719         and iswcntrl; the wctype module does this stuff now.
88720         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
88721         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
88722         * modules/mbchar (Depends-on): Add wctype.
88723         * modules/mbswidth (Depends-on): Likewise.
88724         * modules/wcwidth (Depends-on): Likewise.
88726 2006-12-27  Eric Blake  <ebb9@byu.net>
88728         * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
88729         module uses more than what <wctype.h> is required to provide.
88731 2006-12-26  Eric Blake  <ebb9@byu.net>
88733         * gnulib-tool (sed_extract_prog): Avoid space-tab.
88735 2006-12-26  Eric Blake  <ebb9@byu.net>
88737         * modules/absolute-header: New module.
88738         * modules/fcntl (Depends-on): Depend on it.
88739         * modules/inttypes (Depends-on): Likewise.
88740         * modules/stdint (Depends-on): Likewise.
88741         * modules/sys_stat (Depends-on): Likewise.
88742         * modules/wctype (Depends-on): Likewise.
88743         * MODULES.html.sh (Support for building libraries and
88744         executables): Document it.
88746 2006-12-25  Paul Eggert  <eggert@cs.ucla.edu>
88748         * gnulib-tool (SED): Remove, undoing previous change.
88749         The problem was that it broke coreutils on Solaris, because
88750         "sed --posix" leaked into a makefile.
88751         (sed): New alias, if 'alias' and GNU sed.
88753 2006-12-24  Jim Meyering  <jim@meyering.net>
88755         Work around an fchownat bug in glibc-2.4:
88756         http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
88757         This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
88758         in spite of the -P option.
88759         * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
88760         New macros.
88761         (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
88762         * modules/openat (Files): Add lib/fchownat.c.
88763         * lib/openat.c (fchownat): Don't define here.  Move to...
88764         * lib/fchownat.c: ...this new file.
88766 2006-12-23  Paul Eggert  <eggert@cs.ucla.edu>
88768         Fix bug reported by Bruno Haible in
88769         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00228.html>
88770         where quotearg.c didn't compile on Mac OS X 10.2 because it
88771         lacks <wchar.h> and wint_t.
88772         * lib/wctype_.h (__wctype_wint_t): New type.
88773         Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
88774         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
88775         (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
88776         Arg is now of type __wctype_wint_t, not wint_t.
88777         * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
88778         substitute HAVE_WINT_T.
88779         * modules/wctype (Files): Add m4/wint_t.m4.
88780         (wctype.h): Substitute HAVE_WINT_T.
88782 2006-12-23  Bruno Haible  <bruno@clisp.org>
88784         * lib/safe-read.h [C++]: Wrap declarations in extern "C".
88786 2006-12-23  Bruno Haible  <bruno@clisp.org>
88788         * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
88789         S_ISLNK.
88790         Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
88791         mingw.
88793 2006-12-22  Bruno Haible  <bruno@clisp.org>
88795         * lib/copy-file.c: Include acl.h.
88796         (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
88797         Close the file descriptors only after being done with copy_acl.
88798         * modules/copy-file (Depends-on): Add acl.
88800 2006-12-22  Bruno Haible  <bruno@clisp.org>
88802         * gnulib-tool (SED): New variable.
88803         Use $SED instead of sed everywhere.
88805 2006-12-22  Bruno Haible  <bruno@clisp.org>
88807         * modules/no-c++: New file.
88808         * m4/no-c++.m4: New file.
88809         * MODULES.html.sh (Support for building libraries and executables):
88810         Add no-c++.
88812 2006-12-22  Paul Eggert  <eggert@cs.ucla.edu>
88814         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
88815         Include <limits.h>, and use its INT_MAX to rewrite the
88816         j loop so that it does not overflow 'int'.  Problem reported by
88817         Ralf Wildenhues in
88818         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00084.html>.
88819         Play it safe by shifting left by 1 rather than multiplying by 2,
88820         as GCC is less likely to optimize this away when the value
88821         is signed (when it assumes overflow leads to undefined behavior).
88822         Also, don't assume time_t uses two's complement.
88824 2006-12-21  Paul Eggert  <eggert@cs.ucla.edu>
88826         * MODULES.html.sh: New module wctype.
88827         * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
88828         * lib/fnmatch.c: Don't bother to include <wchar.h> before
88829         <wctype.h>, since the new wctype module should fix this.
88830         * lib/quotearg.c: Include <wctype.h> unconditionally, since
88831         the wctype module should arrange for it.
88832         * lib/regex_internal.h: Likewise.
88833         * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
88834         since the wctype module should handle this now.
88835         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
88836         * modules/fnmatch (Depends-on): Add wctype.
88837         * modules/quotearg (Depends-on): Likewise.
88838         * modules/regex (Depends-on): Likewise.
88840 2006-12-19  Bruno Haible  <bruno@clisp.org>
88842         * lib/strdup.h [C++]: Wrap definitions in extern "C".
88843         Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
88845 2006-12-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
88847         * modules/savewd (Depends-on): Fix dependency on fcntl.
88849 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
88851         * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
88852         conforms to C99, rather than relying on the user's environment
88853         setting of STDINT_H.
88855 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
88856         and Eric Blake  <ebb9@byu.net>
88858         * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
88859         This is more consistent with the other defines here.
88860         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
88861         Port to z/OS.  Problem reported by Paul Gilmartin.
88862         Change local vars to use gl_ prefix rather than ac_.
88863         Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
88864         with other defines.
88865         * modules/double-slash-root: New module.
88866         * modules/dirname (Files): Remove m4/double-slash-root.m4.
88867         (Depends-on): Add double-slash-root.
88868         * MODULES.html.sh (File system functions): Mention new module.
88870 2006-12-14  Paul Eggert  <eggert@cs.ucla.edu>
88872         * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
88873         (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
88874         This is for the benefit of gzip, which doesn't do i18n.
88876 2006-12-12  Jim Meyering  <jim@meyering.net>
88878         * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
88879         Reported by Andreas Schwab <schwab@suse.de>.
88881 2006-12-12  Bruno Haible  <bruno@clisp.org>
88883         Merge these changes.
88884         2006-09-05  Bruno Haible  <bruno@clisp.org>
88885         * lib/iconvme.c (iconv_string): No need to save and restore errno when
88886         iconv_alloc succeeded.
88887         (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
88888         sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
88889         test for " && dest " at the end - dest is always != NULL there. Call
88890         iconv with 4xNULL arguments initially, to reset the state. Call iconv
88891         with 2xNULL arguments, also to flush the state storage. Handle the
88892         IRIX iconv behaviour. Realloc the final result, to throw away unused
88893         memory.
88895 2006-12-11  Paul Eggert  <eggert@cs.ucla.edu>
88897         * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
88898         and fchmodat unconditionally, since glibc 2.4 has them.
88899         Problem reported by Arkadiusz Miskiewicz.
88901 2006-12-10  Bruno Haible  <bruno@clisp.org>
88903         * gnulib-tool (func_import): Show the include files only for those
88904         modules that are copied and specified.
88905         Reported by Karl Berry.
88907 2006-12-08  Jim Meyering  <jim@meyering.net>
88909         * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
88910         Instead, use Emacs' time-stamp write hook.  Note that the time is UTC.
88912         * build-aux/announce-gen: Add two new options, both optional:
88913         --bootstrap-tools=TOOL_LIST
88914               a comma-separated list of tools, e.g.,
88915               autoconf,automake,bison,gnulib
88916         --gnulib-snapshot-date=DATE
88917               if gnulib is in the bootstrap tool list,
88918               then report this as the snapshot date.
88919               If not specified, use the current date/time.
88920               If you specify a date here, be sure it's UTC.
88922 2006-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
88924         * tests/test-argp-2.sh: Fix test to match actual output.
88925         (func_compare): Fix sed script to be portable.
88927 2006-12-05  Paul Eggert  <eggert@cs.ucla.edu>
88929         * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
88930         workaround for this case.  It is not autoconfigured now; offhand
88931         it's hard to see how to autoconfigure it.
88933 2006-12-03  Paul Eggert  <eggert@cs.ucla.edu>
88935         * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
88936         a directory that is about to be chowned.  Such a directory's
88937         initial file permissions should permit the owner only and this
88938         should not be changed until after the chown, since the group and
88939         other bits would be incorrect if they granted permission before
88940         the chown.
88942         Fix porting problem for iswctype reported by Georg Schwarz in:
88943         http://lists.gnu.org/archive/html/bug-coreutils/2006-12/msg00017.html
88944         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
88945         * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
88946         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
88947         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
88949 2006-12-03  Jim Meyering  <jim@meyering.net>
88951         * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
88952         p->fts_statp may not yet be defined.
88953         (fts_read): Instead, set it in the caller, once p->fts_statp is
88954         sure to be defined, and corresponds to a top-level directory.
88955         This bug made du -x fail.  Here's the coreutils test case:
88956         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
88957         Reported by Mike Frysinger.
88959 2006-12-01  Jim Meyering  <jim@meyering.net>
88961         * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
88962         build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
88963         Reported by Simon Josefsson.
88965 2006-11-30  Jim Meyering  <jim@meyering.net>
88967         * m4/warning.m4: Use the all-permissive copyright notice
88968         recommended by RMS (rather than LGPL).
88969         * m4/vararrays.m4: Likewise.
88970         * m4/flexmember.m4: Likewise.
88972 2006-11-29  Bruno Haible  <bruno@clisp.org>
88974         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
88975         noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
88976         using +=.
88977         Reported by Simon Josefsson <simon@josefsson.org>.
88979 2006-11-28  James Youngman  <jay@gnu.org>
88981         * README: Advise users that they might find the bug-gnulib@gnu.org
88982         and autotools-announce@gnu.org mailing lists useful.
88984 2006-11-28  Bruno Haible  <bruno@clisp.org>
88986         * m4/ptrdiff_max.m4: Remove file.
88988 2006-11-21  Bruno Haible  <bruno@clisp.org>
88990         * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
88991         _AC_COMPUTE_INT.
88992         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
88993         * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
88994         _AC_COMPUTE_INT.
88995         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
88996         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
88997         _AC_COMPUTE_INT.
88998         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
89000 2006-11-28  Jim Meyering  <jim@meyering.net>
89002         * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
89003         warning from "gcc -Wshadow" about shadowing the builtin.
89005 2006-11-27  Bruno Haible  <bruno@clisp.org>
89007         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
89008         _AC_COMPUTE_INT.
89009         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
89011 2006-11-27  Bruno Haible  <bruno@clisp.org>
89012             Paul Eggert  <eggert@cs.ucla.edu>
89014         * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
89016 2006-11-26  Bruno Haible  <bruno@clisp.org>
89018         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
89019         noinst_LTLIBRARIES.
89021 2006-11-27  Paul Eggert  <eggert@cs.ucla.edu>
89022             Bruno Haible  <bruno@clisp.org>
89024         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
89025         if compiling with "gcc -ansi".
89027 2006-11-26  Paul Eggert  <eggert@cs.ucla.edu>
89029         Fix some incompatibilities with gcc -ansi -pedantic.
89030         * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
89031         if compiling pedantically with GCC, unless it's C99 or later.
89032         Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
89033         it mishandles gcc -ansi -pedantic as well.
89034         * lib/regex_internal.h (re_token_t): Don't use enum bitfields
89035         if gcc -pedantic.
89036         * lib/regexec.c (check_node_accept_bytes): Don't use auto
89037         initializers for struct if -pedantic, unless it's C99 or later.
89039 2006-11-25  Nix  <nix@esperi.org.uk>  (tiny change)
89041         * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
89042         Don't close an fd more than once. Identical atimes indicate
89043         success, not failure.
89045 2006-11-22  Robinson Mittmann  <bob@hoplon.com>  (tiny change)
89047         * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
89049 2006-11-23  Jim Meyering  <jim@meyering.net>
89051         * build-aux/announce-gen: New file.  From coreutils.
89053 2006-11-22  Jim Meyering  <jim@meyering.net>
89055         Work around a compile-time error from the HP-UX 11.00 /bin/cc.
89056         * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
89057         (fts_read): Use a temporary to narrow the overused st_size member
89058         before using it in a switch statement.  Reported by Matthew Woehlke.
89060         * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
89061         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
89063 2006-11-20  Bruno Haible  <bruno@clisp.org>
89065         * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
89066         changequote instead of pairs of brackets.
89067         Reported by Andreas Schwab <schwab@suse.de>.
89069 2006-11-21  Jim Meyering  <jim@meyering.net>
89071         * lib/fts.c (fts_safe_changedir): Move a declaration "up",
89072         so as to remain compatible with older compilers.
89073         Patch from Michael Deutschmann.
89075 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
89077         * MODULES.html.sh (File system functions): Add openat.
89079         * lib/openat.h (rpl_fstatat): New macro, if
89080         [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
89081         (fstatat): Define to rpl_fstatat under the same conditions,
89082         unless COMPILING_FSTATAT.
89083         * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
89084         seems to have the bug.
89085         * lib/fstatat.c: New file.
89086         * modules/openat (Files): Add it.
89088 2006-11-20  Bruno Haible  <bruno@clisp.org>
89090         * Makefile: New file.
89092 2006-11-20  Jim Meyering  <jim@meyering.net>
89094         The beginnings of syntax-related checks for gnulib.
89095         * lib/Makefile: New file.
89096         * lib/t-idcache: New script.  Ensure that the two halves of
89097         idcache.c stay in sync.
89099         * lib/idcache.c: Adjust comments in user- and group- portions to
89100         be more accurate, and to be consistent with one another.
89102 2006-11-20  Jim Meyering  <jim@meyering.net>
89104         * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
89105         continue using the flexible array member (thus, this module performs
89106         half as many malloc calls), with the addition that...
89107         (getgroup, getuser): Consistently record a non-match via an empty
89108         "name" string, and map an empty string match to a NULL return value.
89109         * modules/idcache (Depends-on): Re-add flexmember.
89111         * lib/idcache.c (getuser): Remove all uses of the register keyword.
89112         (getuidbyname, getgroup, getgidbyname): Likewise.
89114         Use cleaner syntax: NULL rather than 0.
89115         * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
89117 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
89119         * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
89120         It mishandled the case where the group was missing.
89121         Problem reported by Greg Schafer.
89122         * modules/idcache: Likewise.
89124 2006-11-18  Jim Meyering  <jim@meyering.net>
89126         * check-module (%exempt_header): Add exception for some
89127         conditionally-included headers.
89129         * modules/i-ring (Depends-on): Add verify.
89130         (License): Change to LGPL.
89132 2006-11-16  Paul Eggert  <eggert@cs.ucla.edu>
89134         * modules/getaddrinfo (Depends-on): Remove inttostr; add snprintf.
89135         * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
89136         and inttostr.h.  Use snprintf rather than uinttostr, so that
89137         LGPLed code doesn't depend on GPLed.
89139 2006-11-17  Paul Eggert  <eggert@cs.ucla.edu>
89141         * modules/inline (License): Change from GPL to LGPL.
89143 2006-11-17  Jim Meyering  <jim@meyering.net>
89145         * modules/d-type (License): Switch to LGPL.
89147 2006-11-15  Bruno Haible  <bruno@clisp.org>
89149         * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
89151 2006-11-15  Eric Blake  <ebb9@byu.net>
89153         * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
89154         the module dependency.
89156 2006-11-15  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
89157             Bruno Haible  <bruno@clisp.org>
89159         * gnulib-tool (func_create_testdir): Add license consistency check.
89161 2006-11-15  Eric Blake  <ebb9@byu.net>
89163         * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
89164         random "(cached)" in configure output.
89166 2006-11-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
89168         * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
89169         test for conforming inttypes.h is both announced and cached.
89171         * MODULES.html.sh (seen_modules, seen_files): New variables.
89172         (func_module): Rewrite to use a few less gnulib-tool and sed
89173         invocations.  Avoid a couple of quadratic algorithms for ...
89174         (missed_modules, missed_files): ... these, with ...
89175         (func_append, func_tmpdir): ... these new functions, from
89176         gnulib-tool.  Analogously, install traps for cleanup.
89178         * tests/test-gc.c (main): Remove unused variables.
89179         * tests/test-read-file.c: Include stdlib.h, for 'free'.
89181 2006-11-14  Paul Eggert  <eggert@cs.ucla.edu>
89183         * modules/inttostr (License): Change to LGPL.
89185 2006-11-14  Eric Blake  <ebb9@byu.net>
89187         * modules/tempname (License): Change to LGPL.
89189 2006-11-14  Eric Blake  <ebb9@byu.net>
89191         * doc/functions.texi (Function Portability): *printf functions on
89192         Cygwin now understand all POSIX size specifiers.
89194 2006-11-14  Bruno Haible  <bruno@clisp.org>
89196         * modules/c-ctype (License): Change to LGPL.
89198 2006-11-12  Bruno Haible  <bruno@clisp.org>
89200         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
89201         AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
89202         for GNOME libraries, for which the include files are installed in
89203         subdirectories of $prefix/include.
89205 2006-11-12  Bruno Haible  <bruno@clisp.org>
89207         * m4/lib-link.m4: Require at least autoconf-2.54.
89208         (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
89209         name to underscores for the --with option.
89211 2006-11-13  Bruno Haible  <bruno@clisp.org>
89213         * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
89214         the tests directory.
89215         Reported by Ralf Wildenhues.
89217 2006-11-13  Bruno Haible  <bruno@clisp.org>
89219         * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
89220         (func_emit_initmacro_end): Undo the override here.
89221         (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
89222         Works around the famous automake error in coreutils.
89224 2006-11-13  Eric Blake  <ebb9@byu.net>
89226         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
89227         element, not its node.
89229 2006-11-12  Bruno Haible  <bruno@clisp.org>
89231         * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
89232         '$(top_srcdir)/build-aux/', taking into account the real auxdir.
89234 2006-11-12  Bruno Haible  <bruno@clisp.org>
89236         * gnulib-tool: New option --local-symlink.
89237         (func_usage): Document it.
89238         (lsymbolic): New variable.
89239         (func_import, func_create_testdir): If --symlink was not specified,
89240         test whether --local-symlink was specified and the file comes from
89241         the local_gnulib_dir.
89243 2006-11-12  Bruno Haible  <bruno@clisp.org>
89245         * gnulib-tool (func_ln): New function.
89246         (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
89248 2006-11-12  Bruno Haible  <bruno@clisp.org>
89250         Finish support for source files in subdirectories.
89251         * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
89252         are in subdirectories, set uses_subdirs and add 'subdir-objects' to
89253         AUTOMAKE_OPTIONS.
89254         (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
89256 2006-11-12  Bruno Haible  <bruno@clisp.org>
89258         * gnulib-tool (func_get_automake_snippet): Synthesize also an
89259         EXTRA_lib_SOURCES augmentation.
89260         (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
89262 2006-11-12  Jim Meyering  <jim@meyering.net>
89264         Make fts (in FTS_CWDFD mode) more efficient by caching a few open
89265         file descriptors.  This also averts a failure on systems with
89266         native openat support when a traversed directory lacks "x" access.
89267         * lib/fts_.h: Include "i-ring.h"
89268         (struct FTS) [fts_fd_ring]: New member.
89269         * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
89270         (FCHDIR): Add parentheses.
89271         (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
89272         (cwd_advance_fd): Add a 3rd parameter.  Adjust all callers.
89273         When descending, rather than simply closing the previous
89274         fts_cwd_fd value, push that file descriptor onto the ring.
89275         (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
89276         (fts_open): Initialize the new fd_ring member.
89277         (fts_close): Clear the ring.
89278         (fts_safe_changedir): When possible, use our new fd_ring to skip
89279         the diropen and fstat and dev/ino comparison that would normally
89280         accompany a virtual `chdir ("..")'.
89282         * modules/fts (Depends-on): Add i-ring.
89283         * modules/i-ring: New module.
89284         * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
89285         * m4/i-ring.m4: New file.
89287 2006-11-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
89289         * gnulib-tool (func_create_testdir): Fix replacement of
89290         `build-aux' in configure.ac.  Run autotools in gltests
89291         subdirectory.
89292         (func_create_testdir, func_create_megatestdir, test): There is
89293         no need for '--force' in most autotool invocations in a new
89294         tree.  Actually fail the whole test if any of the tools, or the
89295         configure or make stages fail.
89297         Sync from Automake.
89298         * build-aux/gnupload: Revert last change.  Add pointer to upload
89299         instructions of the GNU Maintenance Instructions.
89300         Suggestion by Karl Berry.
89302 2006-11-10  Jim Meyering  <jim@meyering.net>
89304         * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
89306 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
89308         * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
89309         (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
89310         (bind_textdomain_codeset) [! ENABLE_NLS]:
89311         Evaluate all the arguments.  That way, callers get compatible behavior
89312         if the arguments have side effects.  Also, it avoids some GCC
89313         diagnostics in some cases; Joel E. Denny reported problems when Bison
89314         was configured with --enable-gcc-warnigs.
89316 2006-11-10  Jim Meyering  <jim@meyering.net>
89318         * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
89319         relevant options in CFLAGS (like -O, -fno-inline) are taken into
89320         account.
89322 2006-11-10  Jim Meyering  <jim@meyering.net>
89324         * modules/inline: New file/module.
89325         * modules/xalloc (Files): Remove m4/inline.m4.
89326         (Depends-on): Add inline, instead.
89327         * modules/oset: Likewise.
89328         * modules/list: Likewise.
89330 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
89332         * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
89333         Problem reported by Matthew Woehlke.
89335 2006-11-09  Bruno Haible  <bruno@clisp.org>
89337         * lib/tempname.c (gen_tempname): Remove variant that invokes
89338         __gen_tempname.
89339         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
89340         __gen_tempname.
89342 2006-11-08  Bruno Haible  <bruno@clisp.org>
89344         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
89345         to 'yes' instead of 'cross-compiling'.
89347 2006-11-08  Paul Eggert  <eggert@cs.ucla.edu>
89349         * lib/quotearg.h (quotearg_free): New decl.
89350         * lib/quotearg.c (quotearg_free): New function.
89351         (slot0, nslots, slotvec0, slotvec):
89352         Now file-scope so that quotearg_free can get at them.
89354 2006-11-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
89356         Sync from Automake.
89357         * build-aux/gnupload: Add missing 'gnu' to example URL.
89358         Report by Karl Berry.
89360 2006-11-08  Bruno Haible  <bruno@clisp.org>
89362         * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
89363         Suggested by Paul Eggert.
89365 2006-11-08  Jim Meyering  <jim@meyering.net>
89367         * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
89368         It's already included if !_LIBC.
89369         (fts_safe_changedir): Add a comment.
89371 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
89373         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
89374         Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
89375         Matthew Woehlke.
89377         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
89378         definitions up, to avoid colliding with change below.
89379         (static_inline) [HAVE_INLINE]: New macro.
89380         (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
89381         Provide extern decls when !HAVE_INLINE.  Do not define unless
89382         static_inline is defined, either by us or by xmalloc.c.  Use
89383         static_inline rather than static inline.
89384         (XCALLOC): Optimize sizeof(T) = 1 case.
89385         * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
89387 2006-11-07  Bruno Haible  <bruno@clisp.org>
89389         * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
89390         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
89391         AC_C_INLINE.
89392         * modules/xalloc (Files): Add m4/inline.m4.
89394 2006-11-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
89396         * README: Fix typo.
89397         * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
89398         (Miscellanous Notes): ...from this.
89400 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
89402         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
89403         Mention that offsetof should be used instead of sizeof.
89404         From Bruno Haible.
89406 2006-11-07  Bruno Haible  <bruno@clisp.org>
89408         * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
89410 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
89412         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
89413         * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
89414         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
89415         (gl_tree_add_before, gl_tree_add_after):
89416         Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
89417         * lib/gl_anyhash_list2.h (hash_resize): Likewise.
89418         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
89419         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
89420         (gl_linked_add_after, gl_linked_add_at): Likewise.
89421         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
89422         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
89423         (gl_tree_add_before, gl_tree_add_after): Likewise.
89424         * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
89425         * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
89426         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
89428 2006-11-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
89430         * lib/gl_oset.h: Use C comment style, not C++ comment style.
89432 2006-11-06  Bruno Haible  <bruno@clisp.org>
89434         * m4/inline.m4: New file.
89435         * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
89436         * modules/list (Files): Add m4/inline.m4.
89437         * modules/oset (Files): Likewise.
89439 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
89441         * lib/idcache.c: Include <stddef.h>, for offsetof.
89442         (struct userid.name): Change from char * to a flexible array member.
89443         All uses changed.
89444         * modules/idcache (Depends-on): Add flexmember.
89446         * MODULES.html.sh (Core language properties): New module flexmember.
89447         * modules/flexmember, m4/flexmember.m4: New files.
89449         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
89450         inline functions that are identical with the old xnmalloc_inline,
89451         xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c.  This is so
89452         that we can avoid some unnecessary integer multiplications and
89453         divisions in the common case where the element size is known at
89454         compile time.
89455         (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
89456         needed.
89457         (xnboundedmalloc): Remove.
89458         (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
89459         arguments, for consistency with rest of this header.
89460         (xcharalloc): Rewrite using XNMALLOC.
89461         * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
89462         (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove.  The *_inline
89463         versions have been moved to lib/xalloc.h and renamed to be the
89464         non-*_inline versions.
89465         (xmalloc, xrealloc): Implement without reference to the xnmalloc
89466         and xnrealloc functions, since those functions are now inline and
89467         now call us.
89468         (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
89469         renaming described above.
89470         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
89471         xmalloc.c no longer uses inline directly.  gl_PREREQ_XALLOC now
89472         captures the dependency in AC_C_INLINE.
89474         New module canonicalize-lgpl, proposed by Charles Wilson in
89475         <http://lists.gnu.org/archive/html/bug-gnulib/2006-11/msg00020.html>
89476         with a few small changes afterwards.
89477         * MODULES.html.sh (File system functions): New module
89478         canonicalize-lgpl.
89479         * lib/canonicalize.h: Add comments for canonicalize_filename_mode
89480         and canonicalize_file_name.
89481         * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
89482         * modules/canonicalize-lgpl: New files.
89484 2006-11-05  Bruno Haible  <bruno@clisp.org>
89486         * gnulib-tool (func_import, func_create_testdir): Create directories
89487         also for files in subdirectories of lib/.
89489 2006-11-05  Bruno Haible  <bruno@clisp.org>
89491         * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
89492         ANSI C compliant.
89494 2006-11-03  Bruno Haible  <bruno@clisp.org>
89496         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
89497         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
89498         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
89499         (xnboundedmalloc): New inline function.
89500         * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
89501         * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
89502         xmalloc.
89503         * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
89504         xmalloc.
89505         * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
89506         * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
89507         * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
89508         xmalloc.
89509         (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
89510         * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
89511         xmalloc.
89512         * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
89513         gl_tree_add_after): Use XMALLOC instead of xmalloc.
89514         * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
89515         xmalloc.
89516         (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
89517         * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
89518         gl_tree_add_after): Use XMALLOC instead of xmalloc.
89519         * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
89520         * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
89521         * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
89522         * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
89524 2006-11-03  Bruno Haible  <bruno@clisp.org>
89526         * lib/c-ctype.h [C++]: Define functions without name mangling.
89527         * lib/fwriteerror.h [C++]: Likewise.
89528         * lib/gcd.h [C++]: Likewise.
89529         * lib/linebreak.h [C++]: Likewise.
89531 2006-11-03  Paul Eggert  <eggert@cs.ucla.edu>
89533         * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
89534         (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
89535         Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
89536         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
89537         Check for functions and headers just once.
89538         Check for declaration of canonicalize_file_name.
89539         Define PROVIDE_CANONICALIZE_FILENAME_MODE.
89541 2006-11-02  Charles Wilson  <cygwin@cwilson.fastmail.fm>
89543         * gnulib-tool (func_import): Fix typo in actioncmd.
89545 2006-11-02  Bruno Haible  <bruno@clisp.org>
89547         * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
89548         newline sequence in the Makefile.am snippet as a space, like "make"
89549         does.
89550         Reported by Roger Persson <perrog@gmail.com>.
89552 2006-11-01  Bruno Haible  <bruno@clisp.org>
89554         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
89555         already declared in <string.h>.
89556         * lib/strcase.h (strncasecmp): Don't declare it if yes.
89558 2006-11-01  Bruno Haible  <bruno@clisp.org>
89560         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
89561         * lib/strcase.h: Include <string.h>.
89562         (strcasecmp): Define to rpl_strcasecmp here.
89564 2006-11-01  Bruno Haible  <bruno@clisp.org>
89566         * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
89568 2006-11-01  Eric Blake  <ebb9@byu.net>
89570         * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
89572         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
89574 2006-10-29  Bruno Haible  <bruno@clisp.org>
89576         Make it compile in C++ mode.
89577         * lib/full-write.c (full_rw): Add a cast.
89579 2006-11-01  Bruno Haible  <bruno@clisp.org>
89581         * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
89582         be POSIX compliant.
89583         Reported by Roger Persson <perrog@gmail.com>.
89585 2006-11-01  Eric Blake  <ebb9@byu.net>
89587         * lib/getopt_.h: Fix comments.
89589 2006-10-31  Eric Blake  <ebb9@byu.net>
89591         * modules/tmpdir (Depends-on): Add sys_stat.
89592         * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
89593         * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
89594         * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
89595         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
89596         tempname.
89598 2006-10-31  Paul Eggert  <eggert@cs.ucla.edu>
89600         Avoid some C++ diagnostics reported by Bruno Haible.
89601         * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
89602         xmalloc.
89603         (quotearg_alloc): Use xcharalloc rather than xmalloc.
89604         (struct slotvec): Move to top level.
89605         (quotearg_n_options): Rewrite to avoid xmalloc.
89606         * lib/xalloc.h (xcharalloc): New function.
89607         * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
89608         [defined __cplusplus]: Add function template that provides result
89609         type propagation.  This part of the change is from Bruno Haible.
89611 2006-10-29  Bruno Haible  <bruno@clisp.org>
89613         Make it compile in C++ mode.
89614         * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
89615         * lib/strnlen1.c (strnlen1): Cast memchr result.
89616         * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
89617         * lib/clean-temp.c (string_equals, string_hash): Add casts.
89618         (create_temp_dir): Rename local variable 'template'.
89619         (compile_csharp_using_sscli): Add cast.
89620         * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
89621         * lib/findprog.c (find_in_path): Likewise.
89622         * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
89623         * lib/wait-process.c (register_slave_subprocess): Likewise.
89625 2006-10-22  Bruno Haible  <bruno@clisp.org>
89627         * modules/tsearch: New file.
89628         * lib/tsearch.h: New file.
89629         * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
89630         * m4/tsearch.m4: New file.
89631         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
89633 2006-10-29  Eric Blake  <ebb9@byu.net>
89635         * lib/arcfour.c: Assume config.h.
89636         * lib/arctwo.c: Likewise.
89637         * lib/base64.c: Likewise.
89638         * lib/check-version.c: Likewise.
89639         * lib/crc.c: Likewise.
89640         * lib/des.c: Likewise.
89641         * lib/gc-gnulib.c: Likewise.
89642         * lib/gc-libgcrypt.c: Likewise.
89643         * lib/gc-pbkdf2-sha1.c: Likewise.
89644         * lib/getaddrinfo.c: Likewise.
89645         * lib/getdelim.c: Likewise.
89646         * lib/getline.c: Likewise.
89647         * lib/hmac-md5.c: Likewise.
89648         * lib/hmac-sha1.c: Likewise.
89649         * lib/iconvme.c: Likewise.
89650         * lib/md2.c: Likewise.
89651         * lib/md4.c: Likewise.
89652         * lib/memxor.c: Likewise.
89653         * lib/read-file.c: Likewise.
89654         * lib/readline.c: Likewise.
89655         * lib/rijndael-alg-fst.c: Likewise.
89656         * lib/rijndael-api-fst.c: Likewise.
89657         * lib/xgetdomainname.c: Likewise.
89659 2006-10-28  Eric Blake  <ebb9@byu.net>
89661         * lib/xstrndup.c: Assume config.h.
89663 2006-10-27  Paul Eggert  <eggert@cs.ucla.edu>
89665         Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
89666         stat-macros.h is now for our own macros, whereas stat_h is for
89667         macros in the <sys/stat.h> name space.
89668         * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
89669         (STAT_MACROS_H): Remove.
89670         (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
89671         (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
89672         (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
89673         (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
89674         (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
89675         (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
89676         Move these macros to ...
89677         * lib/stat_.h: here.  Don't include stat-macros.h.
89678         * lib/canonicalize.c: Don't include stat-macros.h.
89679         * lib/chown.c: Likewise.
89680         * lib/euidaccess.c: Likewise.
89681         * lib/file-type.c: Likewise.
89682         * lib/filemode.c: Likewise.
89683         * lib/glob.c: Likewise.
89684         * lib/isapipe.c: Likewise.
89685         * lib/lchown.c: Likewise.
89686         * lib/lstat.c: Likewise.
89687         * lib/mkdir-p.c: Likewise.
89688         * lib/rmdir.c: Likewise.
89689         * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
89690         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
89691         unless mkdir isn't declared, to speed up 'configure'.
89692         Always create sys/stat.h, since it's unlikely any real sys/stat.h
89693         would define all the S_* symbols.
89694         * modules/canonicalize (Depends-on):
89695         Depend on sys_stat, not stat-macros.
89696         * modules/chown: Likewise.
89697         * modules/euidaccess: Likewise.
89698         * modules/filemode: Likewise.
89699         * modules/file-type: Likewise.
89700         * modules/glob: Likewise.
89701         * modules/isapipe: Likewise.
89702         * modules/lchown: Likewise.
89703         * modules/lstat: Likewise.
89704         * modules/mkancesdirs: Likewise.
89705         * modules/rmdir: Likewise.
89706         * modules/mkdir-p (Depends-on): Also depend on sys_stat.
89707         * modules/modechange: Likewise.
89708         * modules/stat-macros (Files): Remove m4/stat-macros.m4.
89709         (configure.ac): Remove gl_STAT_MACROS.
89710         * modules/sys_stat (Depends-on): Remove stat-macros.
89712 2006-10-27  Bruno Haible  <bruno@clisp.org>
89714         * m4/signed.m4: Remove file.
89715         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
89716         invocation.
89717         * modules/vasnprintf (Files): Remove m4/signed.m4.
89719 2006-10-27  Bruno Haible  <bruno@clisp.org>
89721         Update to GNU gettext 0.16.
89722         * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
89723         m4/inttypes-h.m4, m4/signed.m4.
89724         * m4/gettext.m4: Update to GNU gettext 0.16.
89725         * m4/intl.m4: New file, from GNU gettext.
89726         * m4/intldir.m4: New file, from GNU gettext.
89727         * config/srclist.txt: Update
89729 2006-10-27  Eric Blake  <ebb9@byu.net>
89731         * MODULES.html.sh: Document tempname.
89732         * modules/mkstemp (Depends-on): Add tempname, and drop transitive
89733         dependencies.
89734         (Files): Move lib/tempname.c...
89735         * modules/tempname: ...to this new module.
89736         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
89737         (gl_PREREQ_TEMPNAME): Move...
89738         * m4/tempname.m4: ...to this new file.
89739         * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
89740         * modules/sys_stat (Depends-on): Add stat-macros.
89741         * lib/stat_.h (includes): Pick up stat macros.
89742         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
89743         if stat macros are broken.
89744         * lib/tempname.c (includes): No need to include "stat-macros.h".
89745         (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
89746         (direxists, __path_search) [!_LIBC]: Don't compile these in
89747         gnulib; the tmpdir module covers that.
89748         * lib/tempname.h: New file.
89750 2006-10-26  Paul Eggert  <eggert@cs.ucla.edu>
89752         * COPYING: Explain how gnulib-tool converts licence headers.
89753         Almost all wording by Eric Blake.
89755 2006-10-25  Paul Eggert  <eggert@cs.ucla.edu>
89757         * lib/mbchar.h (is_basic_table): Make read-only.
89758         * lib/mbchar.c (is_basic_table): Likewise.
89759         Reported by John Darrington.
89761 2006-10-25  Bruno Haible  <bruno@clisp.org>
89763         * lib/progname.h (set_program_name): Undefine before defining.
89765 2006-10-25  Bruno Haible  <bruno@clisp.org>
89767         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
89768         false for non-gcc C++ compilers.
89769         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
89771 2006-10-24  Bruno Haible  <bruno@clisp.org>
89773         * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
89774         iconv implementations like Irix iconv.
89776 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
89778         * modules/vararrays: New file.
89779         * m4/vararrays.m4: New file, taken from diffutils.
89780         * MODULES.html.sh: New module vararrays.
89782 2006-10-24  Karl Berry  <karl@gnu.org>
89784         * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
89785         Don't call GNU Unix.
89787 2006-10-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
89789         * users.txt: Add Libtool.
89791         Sync from Libtool:
89793         2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
89795         * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
89796         to gnulib's policy of including config.h unconditionally.
89798 2006-10-24  Bruno Haible  <bruno@clisp.org>
89800         * modules/wcwidth (Files): Add m4/wint_t.m4.
89801         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
89802         * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
89804 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
89806         * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
89807         to pacify GCC with some -W flags enabled.  Problem reported by
89808         Bruno Haible.
89810 2006-10-24  Jim Meyering  <jim@meyering.net>
89812         * MODULES.html.sh: Remove uinttostr.  It's not a module.
89813         Reported by Karl Berry.
89815 2006-10-23  Bruno Haible  <bruno@clisp.org>
89817         * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
89819 2006-10-24  Bruno Haible  <bruno@clisp.org>
89821         * lib/gl_list.h: Use C comment style, not C++ comment style.
89823 2006-10-23  Eric Blake  <ebb9@byu.net>
89825         * lib/getaddrinfo.c (includes): Add missing include.
89827 2006-10-23  Bruno Haible  <bruno@clisp.org>
89828             Paul Eggert  <eggert@cs.ucla.edu>
89830         Ability to rename obstack_free.
89831         * lib/obstack.h (__obstack_free): New macro. Declare instead of
89832         obstack_free.
89833         (obstack_free): Invoke the __obstack_free macro.
89834         * lib/obstack.c (obstack_free): Use __obstack_free macro.
89836 2006-10-23  Bruno Haible  <bruno@clisp.org>
89837             Paul Eggert  <eggert@cs.ucla.edu>
89839         * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
89840         __argc, __argv from the declaration. (They are defined as macros on
89841         mingw.)
89843 2006-10-22  Bruno Haible  <bruno@clisp.org>
89845         * doc/gnulib-intro.texi: New file.
89846         * doc/gnulib.texi: Include it.
89848 2006-10-21  Bruno Haible  <bruno@clisp.org>
89850         * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
89851         "Introduction", "Miscellanous Notes", "Particular Modules".
89853 2006-10-21  Bruno Haible  <bruno@clisp.org>
89855         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
89856         Change mostlyclean-local rule to avoid sh syntax error from bash
89857         versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
89859 2006-10-23  Jim Meyering  <jim@meyering.net>
89861         * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
89862         in place of snprintf.
89864         * modules/inttostr (Files): Add lib/uinttostr.c.
89865         * lib/uinttostr.c (inttostr): New file/function.
89866         * lib/inttostr.h (uinttostr): Declare.
89867         * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
89868         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
89869         Add uinttostr.
89870         * modules/getaddrinfo (Depends-on): Remove snprintf.  Add inttostr.
89872 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
89874         * lib/canonicalize.c (ELOOP): Define if not already defined.
89875         Problem reported by Bruno Haible in
89876         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00282.html>.
89878 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
89880         * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
89881         Problem reported by Perry Smith and Ville Laurikari.
89883         * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
89884         uses.
89886 2006-10-19  Bruno Haible  <bruno@clisp.org>
89888         * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
89889         for mingw.
89891 2006-10-19  Bruno Haible  <bruno@clisp.org>
89893         * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
89894         Needed for mingw.
89896 2006-10-19  Bruno Haible  <bruno@clisp.org>
89898         * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
89900 2006-10-19  Bruno Haible  <bruno@clisp.org>
89902         * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
89903         it.
89905 2006-10-19  Bruno Haible  <bruno@clisp.org>
89907         * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
89908         invocation.
89910 2006-10-19  Bruno Haible  <bruno@clisp.org>
89912         * gnulib-tool (func_create_testdir): Don't include ftruncate and
89913         mountlist by default.
89915 2006-10-16  Bruno Haible  <bruno@clisp.org>
89917         * lib/c-strstr.c: Include c-strstr.h.
89919 2006-10-18  Charles Wilson  <cygwin@cwilson.fastmail.fm>
89921         * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
89922         in a slash.
89924 2006-10-18  Bruno Haible  <bruno@clisp.org>
89926         * lib/lock.h [C++]: Wrap definitions in extern "C".
89928 2006-10-18  Bruno Haible  <bruno@clisp.org>
89930         * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
89931         gl_LIBOBJS list.
89933 2006-10-18  Bruno Haible  <bruno@clisp.org>
89935         * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
89937 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>
89939         * lib/xstrtol.h: Include gettext.h.
89940         (_STRTOL_ERROR): Wrap English-language formats inside gettext.
89941         Problem reported by Eric Blake.
89942         * modules/xstrtol (Depends-on): Add gettext-h.
89944 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>  (tiny change)
89946         * lib/strftime.c (advance): New macro.
89947         (add): Use it to avoid adding 0 to a FILE *.  FILE can be an
89948         incomplete type, so you can't add 0 to it.  Problem and patch
89949         reported by Eelco Dolstra for dietlibc.
89951 2006-10-18  Jim Meyering  <jim@meyering.net>
89953         * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
89954         type for a local, and rename it: s/up/user_proc/.
89956 2006-10-18  Sergey Poznyakoff  <gray@gnu.org.ua>
89958         * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
89959         READ_UTMP_USER_PROCESS.
89960         * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
89962 2006-10-17  Paul Eggert  <eggert@cs.ucla.edu>
89964         * lib/localcharset.c: Do not check HAVE_SETLOCALE.
89965         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
89967 2006-10-17  Eric Blake  <ebb9@byu.net>
89969         * lib/sigprocmask.c (sigprocmask): Fix typo.
89971         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
89973         * modules/clean-temp (Makefile.am): Don't add to make output...
89974         (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
89975         config.h.
89977 2006-10-17  Bruno Haible  <bruno@clisp.org>
89979         * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
89980         differently if DEFAULT_TEXT_DOMAIN is set.
89982 2006-10-16  Bruno Haible  <bruno@clisp.org>
89984         * lib/clean-temp.c: Include fwriteerror.h.
89986 2006-10-16  Bruno Haible  <bruno@clisp.org>
89988         * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
89990 2006-10-16  Bruno Haible  <bruno@clisp.org>
89992         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
89993         * lib/sigprocmask.h: Include <sys/types.h>.
89994         (sigset_t): Use the system's definition if present.
89996 2006-10-17  Eric Blake  <ebb9@byu.net>
89998         * lib/xvasprintf.c (includes): Assume config.h.
89999         * lib/xasprintf.c (includes): Likewise.
90001 2006-10-16  Paul Eggert  <eggert@cs.ucla.edu>
90003         * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
90004         at least as wide as intmax_t.
90006 2006-10-16  Alexandre Duret-Lutz  <adl@gnu.org>
90008         (Imported from Automake.)
90009         * build-aux/gnupload: Update to version 1.1 of directive file.
90011 2006-10-16  Eric Blake  <ebb9@byu.net>
90013         * modules/configmake (Makefile.am): Add pkglibexecdir support, to
90014         match Automake 1.10a.
90016 2006-10-14  Bruno Haible  <bruno@clisp.org>
90018         * modules/sigprocmask: New file.
90019         * lib/sigprocmask.h: New file.
90020         * lib/sigprocmask.c: New file.
90021         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
90022         gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
90023         request sigprocmask.o.
90024         (gl_PREREQ_SIGPROCMASK): New macro.
90025         * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
90026         (Depends-on): Add sigprocmask.
90027         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
90028         gt_SIGNALBLOCKING. Test for 'raise' only once.
90029         * lib/fatal-signal.c: Include sigprocmask.h.
90030         (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
90031         unblock_fatal_signals): Define always.
90032         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
90033         sigprocmask.
90035 2006-10-14  Paul Eggert  <eggert@cs.ucla.edu>
90037         Sync from Automake.
90038         * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
90039         which incorrectly sets the mode of an existing destination
90040         directory.  In some cases the unpatched install-sh could do the
90041         equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
90042         system.  We hope this is rare in practice, but it's clearly worth
90043         fixing.  Problem reported by Alex Unleashed in
90044         <http://lists.gnu.org/archive/html/bug-autoconf/2006-10/msg00012.html>.
90045         Also, don't bother to check for -m bugs unless we're using -m;
90046         suggested by Stepan Kasal.
90048 2006-10-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
90050         Sync from Automake.
90051         * build-aux/depcomp (gcc3): Put dependency extraction flags before the
90052         `-c' flag, so they appear at the same position as in %FASTDEP%
90053         mode in depend2.am.  Fixes build failure for FreeBSD's c89,
90054         which ignores unknown options only after the first non-option.
90055         Bug report against M4 by Nelson H. F. Beebe.
90057 2006-10-13  Jim Meyering  <jim@meyering.net>
90059         Fix a bug in yesterday's change.
90060         * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
90061         p->fts_statp->st_dev would be used uninitialized.
90062         Ensures that we always call fts_stat on the very first entry.
90063         Miklos Szeredi reported that find -xdev stopped working.
90065 2006-10-12  Bruno Haible  <bruno@clisp.org>
90067         * gnulib-tool (func_get_automake_snippet): Append an automatically
90068         computed EXTRA_DIST augmentation.
90069         * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
90070         * modules/alloca-opt (Makefile.am): Likewise.
90071         * modules/allocsa (Makefile.am): Likewise.
90072         * modules/arcfour (Makefile.am): Likewise.
90073         * modules/arctwo (Makefile.am): Likewise.
90074         * modules/argmatch (Makefile.am): Likewise.
90075         * modules/argz (Makefile.am): Likewise.
90076         * modules/atexit (Makefile.am): Likewise.
90077         * modules/backupfile (Makefile.am): Likewise.
90078         * modules/byteswap (Makefile.am): Likewise.
90079         * modules/c-strtod (Makefile.am): Likewise.
90080         * modules/c-strtold (Makefile.am): Likewise.
90081         * modules/calloc (Makefile.am): Likewise.
90082         * modules/canon-host (Makefile.am): Likewise.
90083         * modules/canonicalize (Makefile.am): Likewise.
90084         * modules/chdir-long (Makefile.am): Likewise.
90085         * modules/chdir-safer (Makefile.am): Likewise.
90086         * modules/check-version (Makefile.am): Likewise.
90087         * modules/chown (Makefile.am): Likewise.
90088         * modules/cloexec (Makefile.am): Likewise.
90089         * modules/close-stream (Makefile.am): Likewise.
90090         * modules/closeout (Makefile.am): Likewise.
90091         * modules/crc (Makefile.am): Likewise.
90092         * modules/csharpexec (Makefile.am): Likewise.
90093         * modules/cycle-check (Makefile.am): Likewise.
90094         * modules/des (Makefile.am): Likewise.
90095         * modules/dev-ino (Makefile.am): Likewise.
90096         * modules/dirfd (Makefile.am): Likewise.
90097         * modules/dirname (Makefile.am): Likewise.
90098         * modules/dup2 (Makefile.am): Likewise.
90099         * modules/eealloc (Makefile.am): Likewise.
90100         * modules/error (Makefile.am): Likewise.
90101         * modules/euidaccess (Makefile.am): Likewise.
90102         * modules/exclude (Makefile.am): Likewise.
90103         * modules/exitfail (Makefile.am): Likewise.
90104         * modules/fcntl-safer (Makefile.am): Likewise.
90105         * modules/fcntl (Makefile.am): Likewise.
90106         * modules/file-type (Makefile.am): Likewise.
90107         * modules/fileblocks (Makefile.am): Likewise.
90108         * modules/filemode (Makefile.am): Likewise.
90109         * modules/filenamecat (Makefile.am): Likewise.
90110         * modules/fnmatch (Makefile.am): Likewise.
90111         * modules/fopen-safer (Makefile.am): Likewise.
90112         * modules/fpending (Makefile.am): Likewise.
90113         * modules/fprintftime (Makefile.am): Likewise.
90114         * modules/free (Makefile.am): Likewise.
90115         * modules/fsusage (Makefile.am): Likewise.
90116         * modules/ftruncate (Makefile.am): Likewise.
90117         * modules/fts (Makefile.am): Likewise.
90118         * modules/gc-arcfour (Makefile.am): Likewise.
90119         * modules/gc-des (Makefile.am): Likewise.
90120         * modules/gc-hmac-md5 (Makefile.am): Likewise.
90121         * modules/gc-hmac-sha1 (Makefile.am): Likewise.
90122         * modules/gc-md4 (Makefile.am): Likewise.
90123         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
90124         * modules/gc-sha1 (Makefile.am): Likewise.
90125         * modules/gc (Makefile.am): Likewise.
90126         * modules/getaddrinfo (Makefile.am): Likewise.
90127         * modules/getcwd (Makefile.am): Likewise.
90128         * modules/getdelim (Makefile.am): Likewise.
90129         * modules/getdomainname (Makefile.am): Likewise.
90130         * modules/getgroups (Makefile.am): Likewise.
90131         * modules/gethostname (Makefile.am): Likewise.
90132         * modules/gethrxtime (Makefile.am): Likewise.
90133         * modules/getline (Makefile.am): Likewise.
90134         * modules/getloadavg (Makefile.am): Likewise.
90135         * modules/getlogin_r (Makefile.am): Likewise.
90136         * modules/getndelim2 (Makefile.am): Likewise.
90137         * modules/getopt (Makefile.am): Likewise.
90138         * modules/getpagesize (Makefile.am): Likewise.
90139         * modules/getpass-gnu (Makefile.am): Likewise.
90140         * modules/getpass (Makefile.am): Likewise.
90141         * modules/getsubopt (Makefile.am): Likewise.
90142         * modules/gettime (Makefile.am): Likewise.
90143         * modules/gettimeofday (Makefile.am): Likewise.
90144         * modules/getugroups (Makefile.am): Likewise.
90145         * modules/getusershell (Makefile.am): Likewise.
90146         * modules/glob (Makefile.am): Likewise.
90147         * modules/group-member (Makefile.am): Likewise.
90148         * modules/hard-locale (Makefile.am): Likewise.
90149         * modules/hash (Makefile.am): Likewise.
90150         * modules/hmac-md5 (Makefile.am): Likewise.
90151         * modules/hmac-sha1 (Makefile.am): Likewise.
90152         * modules/human (Makefile.am): Likewise.
90153         * modules/idcache (Makefile.am): Likewise.
90154         * modules/imaxabs (Makefile.am): Likewise.
90155         * modules/imaxdiv (Makefile.am): Likewise.
90156         * modules/inet_ntop (Makefile.am): Likewise.
90157         * modules/inet_pton (Makefile.am): Likewise.
90158         * modules/intprops (Makefile.am): Likewise.
90159         * modules/inttostr (Makefile.am): Likewise.
90160         * modules/inttypes (Makefile.am): Likewise.
90161         * modules/isapipe (Makefile.am): Likewise.
90162         * modules/javaversion (Makefile.am): Likewise.
90163         * modules/lchmod (Makefile.am): Likewise.
90164         * modules/lchown (Makefile.am): Likewise.
90165         * modules/localcharset (Makefile.am): Likewise.
90166         * modules/long-options (Makefile.am): Likewise.
90167         * modules/lstat (Makefile.am): Likewise.
90168         * modules/malloc (Makefile.am): Likewise.
90169         * modules/mathl (Makefile.am): Likewise.
90170         * modules/mbchar (Makefile.am): Likewise.
90171         * modules/md2 (Makefile.am): Likewise.
90172         * modules/md4 (Makefile.am): Likewise.
90173         * modules/md5 (Makefile.am): Likewise.
90174         * modules/memcasecmp (Makefile.am): Likewise.
90175         * modules/memchr (Makefile.am): Likewise.
90176         * modules/memcmp (Makefile.am): Likewise.
90177         * modules/memcoll (Makefile.am): Likewise.
90178         * modules/memcpy (Makefile.am): Likewise.
90179         * modules/memmem (Makefile.am): Likewise.
90180         * modules/memmove (Makefile.am): Likewise.
90181         * modules/mempcpy (Makefile.am): Likewise.
90182         * modules/memrchr (Makefile.am): Likewise.
90183         * modules/memset (Makefile.am): Likewise.
90184         * modules/memxor (Makefile.am): Likewise.
90185         * modules/mkancesdirs (Makefile.am): Likewise.
90186         * modules/mkdir-p (Makefile.am): Likewise.
90187         * modules/mkdir (Makefile.am): Likewise.
90188         * modules/mkdtemp (Makefile.am): Likewise.
90189         * modules/mkstemp (Makefile.am): Likewise.
90190         * modules/mktime (Makefile.am): Likewise.
90191         * modules/modechange (Makefile.am): Likewise.
90192         * modules/mountlist (Makefile.am): Likewise.
90193         * modules/nanosleep (Makefile.am): Likewise.
90194         * modules/obstack (Makefile.am): Likewise.
90195         * modules/openat (Makefile.am): Likewise.
90196         * modules/pagealign_alloc (Makefile.am): Likewise.
90197         * modules/pathmax (Makefile.am): Likewise.
90198         * modules/physmem (Makefile.am): Likewise.
90199         * modules/poll (Makefile.am): Likewise.
90200         * modules/posixtm (Makefile.am): Likewise.
90201         * modules/posixver (Makefile.am): Likewise.
90202         * modules/putenv (Makefile.am): Likewise.
90203         * modules/quote (Makefile.am): Likewise.
90204         * modules/quotearg (Makefile.am): Likewise.
90205         * modules/raise (Makefile.am): Likewise.
90206         * modules/read-file (Makefile.am): Likewise.
90207         * modules/readline (Makefile.am): Likewise.
90208         * modules/readlink (Makefile.am): Likewise.
90209         * modules/readtokens (Makefile.am): Likewise.
90210         * modules/readutmp (Makefile.am): Likewise.
90211         * modules/realloc (Makefile.am): Likewise.
90212         * modules/regex (Makefile.am): Likewise.
90213         * modules/rename-dest-slash (Makefile.am): Likewise.
90214         * modules/rename (Makefile.am): Likewise.
90215         * modules/rijndael (Makefile.am): Likewise.
90216         * modules/rmdir (Makefile.am): Likewise.
90217         * modules/rpmatch (Makefile.am): Likewise.
90218         * modules/safe-read (Makefile.am): Likewise.
90219         * modules/safe-write (Makefile.am): Likewise.
90220         * modules/same-inode (Makefile.am): Likewise.
90221         * modules/same (Makefile.am): Likewise.
90222         * modules/save-cwd (Makefile.am): Likewise.
90223         * modules/savedir (Makefile.am): Likewise.
90224         * modules/setenv (Makefile.am): Likewise.
90225         * modules/settime (Makefile.am): Likewise.
90226         * modules/sha1 (Makefile.am): Likewise.
90227         * modules/sig2str (Makefile.am): Likewise.
90228         * modules/snprintf (Makefile.am): Likewise.
90229         * modules/stat-macros (Makefile.am): Likewise.
90230         * modules/stat-time (Makefile.am): Likewise.
90231         * modules/stdbool (Makefile.am): Likewise.
90232         * modules/stdint (Makefile.am): Likewise.
90233         * modules/stdlib-safer (Makefile.am): Likewise.
90234         * modules/stpcpy (Makefile.am): Likewise.
90235         * modules/stpncpy (Makefile.am): Likewise.
90236         * modules/strcase (Makefile.am): Likewise.
90237         * modules/strcasestr (Makefile.am): Likewise.
90238         * modules/strchrnul (Makefile.am): Likewise.
90239         * modules/strcspn (Makefile.am): Likewise.
90240         * modules/strdup (Makefile.am): Likewise.
90241         * modules/strerror (Makefile.am): Likewise.
90242         * modules/strftime (Makefile.am): Likewise.
90243         * modules/strndup (Makefile.am): Likewise.
90244         * modules/strnlen (Makefile.am): Likewise.
90245         * modules/strpbrk (Makefile.am): Likewise.
90246         * modules/strsep (Makefile.am): Likewise.
90247         * modules/strstr (Makefile.am): Likewise.
90248         * modules/strtod (Makefile.am): Likewise.
90249         * modules/strtoimax (Makefile.am): Likewise.
90250         * modules/strtok_r (Makefile.am): Likewise.
90251         * modules/strtol (Makefile.am): Likewise.
90252         * modules/strtoll (Makefile.am): Likewise.
90253         * modules/strtoul (Makefile.am): Likewise.
90254         * modules/strtoull (Makefile.am): Likewise.
90255         * modules/strtoumax (Makefile.am): Likewise.
90256         * modules/strverscmp (Makefile.am): Likewise.
90257         * modules/sys_socket (Makefile.am): Likewise.
90258         * modules/sys_stat (Makefile.am): Likewise.
90259         * modules/sysexits (Makefile.am): Likewise.
90260         * modules/time_r (Makefile.am): Likewise.
90261         * modules/timegm (Makefile.am): Likewise.
90262         * modules/timespec (Makefile.am): Likewise.
90263         * modules/tmpfile-safer (Makefile.am): Likewise.
90264         * modules/trim (Makefile.am): Likewise.
90265         * modules/unistd-safer (Makefile.am): Likewise.
90266         * modules/unlinkdir (Makefile.am): Likewise.
90267         * modules/unlocked-io (Makefile.am): Likewise.
90268         * modules/userspec (Makefile.am): Likewise.
90269         * modules/utime (Makefile.am): Likewise.
90270         * modules/utimecmp (Makefile.am): Likewise.
90271         * modules/utimens (Makefile.am): Likewise.
90272         * modules/vasnprintf (Makefile.am): Likewise.
90273         * modules/vasprintf (Makefile.am): Likewise.
90274         * modules/vsnprintf (Makefile.am): Likewise.
90275         * modules/xalloc (Makefile.am): Likewise.
90276         * modules/xgetcwd (Makefile.am): Likewise.
90277         * modules/xnanosleep (Makefile.am): Likewise.
90278         * modules/xreadlink (Makefile.am): Likewise.
90279         * modules/xstrtod (Makefile.am): Likewise.
90280         * modules/xstrtol (Makefile.am): Likewise.
90281         * modules/xstrtold (Makefile.am): Likewise.
90282         * modules/yesno (Makefile.am): Likewise.
90283         * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
90285 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
90287         * modules/error (Makefile.am): Distribute files through
90288         EXTRA_DIST, not lib_SOURCES.
90290 2006-10-12  Eric Blake  <ebb9@byu.net>
90292         * modules/error (Makefile.am): Distribute files in /lib.
90293         * modules/obstack (Makefile.am): Likewise.
90295 2006-10-12  Bruno Haible  <bruno@clisp.org>
90297         * modules/acl (Makefile.am): Distribute all files in lib/ through
90298         EXTRA_DIST.
90299         * modules/arcfour (Makefile.am): Likewise.
90300         * modules/arctwo (Makefile.am): Likewise.
90301         * modules/argmatch (Makefile.am): Likewise.
90302         * modules/argz (Makefile.am): Likewise.
90303         * modules/atexit (Makefile.am): Likewise.
90304         * modules/backupfile (Makefile.am): Likewise.
90305         * modules/c-strtod (Makefile.am): Likewise.
90306         * modules/c-strtold (Makefile.am): Likewise.
90307         * modules/calloc (Makefile.am): Likewise.
90308         * modules/canon-host (Makefile.am): Likewise.
90309         * modules/canonicalize (Makefile.am): Likewise.
90310         * modules/chdir-long (Makefile.am): Likewise.
90311         * modules/chdir-safer (Makefile.am): Likewise.
90312         * modules/check-version (Makefile.am): Likewise.
90313         * modules/chown (Makefile.am): Likewise.
90314         * modules/cloexec (Makefile.am): Likewise.
90315         * modules/close-stream (Makefile.am): Likewise.
90316         * modules/closeout (Makefile.am): Likewise.
90317         * modules/crc (Makefile.am): Likewise.
90318         * modules/cycle-check (Makefile.am): Likewise.
90319         * modules/des (Makefile.am): Likewise.
90320         * modules/dirfd (Makefile.am): Likewise.
90321         * modules/dirname (Makefile.am): Likewise.
90322         * modules/dup2 (Makefile.am): Likewise.
90323         * modules/euidaccess (Makefile.am): Likewise.
90324         * modules/exclude (Makefile.am): Likewise.
90325         * modules/exitfail (Makefile.am): Likewise.
90326         * modules/fcntl-safer (Makefile.am): Likewise.
90327         * modules/file-type (Makefile.am): Likewise.
90328         * modules/fileblocks (Makefile.am): Likewise.
90329         * modules/filemode (Makefile.am): Likewise.
90330         * modules/filenamecat (Makefile.am): Likewise.
90331         * modules/fnmatch (Makefile.am): Likewise.
90332         * modules/fopen-safer (Makefile.am): Likewise.
90333         * modules/fpending (Makefile.am): Likewise.
90334         * modules/fprintftime (Makefile.am): Likewise.
90335         * modules/free (Makefile.am): Likewise.
90336         * modules/fsusage (Makefile.am): Likewise.
90337         * modules/ftruncate (Makefile.am): Likewise.
90338         * modules/fts (Makefile.am): Likewise.
90339         * modules/gc (Makefile.am): Likewise.
90340         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
90341         * modules/getaddrinfo (Makefile.am): Likewise.
90342         * modules/getcwd (Makefile.am): Likewise.
90343         * modules/getdelim (Makefile.am): Likewise.
90344         * modules/getdomainname (Makefile.am): Likewise.
90345         * modules/getgroups (Makefile.am): Likewise.
90346         * modules/gethostname (Makefile.am): Likewise.
90347         * modules/gethrxtime (Makefile.am): Likewise.
90348         * modules/getline (Makefile.am): Likewise.
90349         * modules/getloadavg (Makefile.am): Likewise.
90350         * modules/getlogin_r (Makefile.am): Likewise.
90351         * modules/getopt (Makefile.am): Likewise.
90352         * modules/getpass (Makefile.am): Likewise.
90353         * modules/getpass-gnu (Makefile.am): Likewise.
90354         * modules/getsubopt (Makefile.am): Likewise.
90355         * modules/gettime (Makefile.am): Likewise.
90356         * modules/gettimeofday (Makefile.am): Likewise.
90357         * modules/getugroups (Makefile.am): Likewise.
90358         * modules/getusershell (Makefile.am): Likewise.
90359         * modules/glob (Makefile.am): Likewise.
90360         * modules/group-member (Makefile.am): Likewise.
90361         * modules/hard-locale (Makefile.am): Likewise.
90362         * modules/hash (Makefile.am): Likewise.
90363         * modules/hmac-md5 (Makefile.am): Likewise.
90364         * modules/hmac-sha1 (Makefile.am): Likewise.
90365         * modules/human (Makefile.am): Likewise.
90366         * modules/idcache (Makefile.am): Likewise.
90367         * modules/imaxabs (Makefile.am): Likewise.
90368         * modules/imaxdiv (Makefile.am): Likewise.
90369         * modules/inet_ntop (Makefile.am): Likewise.
90370         * modules/inet_pton (Makefile.am): Likewise.
90371         * modules/inttostr (Makefile.am): Likewise.
90372         * modules/isapipe (Makefile.am): Likewise.
90373         * modules/lchown (Makefile.am): Likewise.
90374         * modules/long-options (Makefile.am): Likewise.
90375         * modules/lstat (Makefile.am): Likewise.
90376         * modules/malloc (Makefile.am): Likewise.
90377         * modules/mathl (Makefile.am): Likewise.
90378         * modules/mbchar (Makefile.am): Likewise.
90379         * modules/md2 (Makefile.am): Likewise.
90380         * modules/md4 (Makefile.am): Likewise.
90381         * modules/md5 (Makefile.am): Likewise.
90382         * modules/memcasecmp (Makefile.am): Likewise.
90383         * modules/memchr (Makefile.am): Likewise.
90384         * modules/memcmp (Makefile.am): Likewise.
90385         * modules/memcoll (Makefile.am): Likewise.
90386         * modules/memcpy (Makefile.am): Likewise.
90387         * modules/memmem (Makefile.am): Likewise.
90388         * modules/memmove (Makefile.am): Likewise.
90389         * modules/mempcpy (Makefile.am): Likewise.
90390         * modules/memrchr (Makefile.am): Likewise.
90391         * modules/memset (Makefile.am): Likewise.
90392         * modules/memxor (Makefile.am): Likewise.
90393         * modules/mkancesdirs (Makefile.am): Likewise.
90394         * modules/mkdir (Makefile.am): Likewise.
90395         * modules/mkdir-p (Makefile.am): Likewise.
90396         * modules/mkdtemp (Makefile.am): Likewise.
90397         * modules/mkstemp (Makefile.am): Likewise.
90398         * modules/mktime (Makefile.am): Likewise.
90399         * modules/modechange (Makefile.am): Likewise.
90400         * modules/mountlist (Makefile.am): Likewise.
90401         * modules/nanosleep (Makefile.am): Likewise.
90402         * modules/openat (Makefile.am): Likewise.
90403         * modules/pagealign_alloc (Makefile.am): Likewise.
90404         * modules/physmem (Makefile.am): Likewise.
90405         * modules/poll (Makefile.am): Likewise.
90406         * modules/posixtm (Makefile.am): Likewise.
90407         * modules/posixver (Makefile.am): Likewise.
90408         * modules/putenv (Makefile.am): Likewise.
90409         * modules/quote (Makefile.am): Likewise.
90410         * modules/quotearg (Makefile.am): Likewise.
90411         * modules/raise (Makefile.am): Likewise.
90412         * modules/read-file (Makefile.am): Likewise.
90413         * modules/readline (Makefile.am): Likewise.
90414         * modules/readlink (Makefile.am): Likewise.
90415         * modules/readtokens (Makefile.am): Likewise.
90416         * modules/readutmp (Makefile.am): Likewise.
90417         * modules/realloc (Makefile.am): Likewise.
90418         * modules/regex (Makefile.am): Likewise.
90419         * modules/rename (Makefile.am): Likewise.
90420         * modules/rename-dest-slash (Makefile.am): Likewise.
90421         * modules/rijndael (Makefile.am): Likewise.
90422         * modules/rmdir (Makefile.am): Likewise.
90423         * modules/rpmatch (Makefile.am): Likewise.
90424         * modules/safe-read (Makefile.am): Likewise.
90425         * modules/safe-write (Makefile.am): Likewise.
90426         * modules/same (Makefile.am): Likewise.
90427         * modules/save-cwd (Makefile.am): Likewise.
90428         * modules/savedir (Makefile.am): Likewise.
90429         * modules/setenv (Makefile.am): Likewise.
90430         * modules/settime (Makefile.am): Likewise.
90431         * modules/sha1 (Makefile.am): Likewise.
90432         * modules/sig2str (Makefile.am): Likewise.
90433         * modules/snprintf (Makefile.am): Likewise.
90434         * modules/stdlib-safer (Makefile.am): Likewise.
90435         * modules/stpcpy (Makefile.am): Likewise.
90436         * modules/stpncpy (Makefile.am): Likewise.
90437         * modules/strcase (Makefile.am): Likewise.
90438         * modules/strcasestr (Makefile.am): Likewise.
90439         * modules/strchrnul (Makefile.am): Likewise.
90440         * modules/strcspn (Makefile.am): Likewise.
90441         * modules/strdup (Makefile.am): Likewise.
90442         * modules/strerror (Makefile.am): Likewise.
90443         * modules/strftime (Makefile.am): Likewise.
90444         * modules/strndup (Makefile.am): Likewise.
90445         * modules/strnlen (Makefile.am): Likewise.
90446         * modules/strpbrk (Makefile.am): Likewise.
90447         * modules/strsep (Makefile.am): Likewise.
90448         * modules/strstr (Makefile.am): Likewise.
90449         * modules/strtod (Makefile.am): Likewise.
90450         * modules/strtoimax (Makefile.am): Likewise.
90451         * modules/strtok_r (Makefile.am): Likewise.
90452         * modules/strtol (Makefile.am): Likewise.
90453         * modules/strtoll (Makefile.am): Likewise.
90454         * modules/strtoul (Makefile.am): Likewise.
90455         * modules/strtoull (Makefile.am): Likewise.
90456         * modules/strtoumax (Makefile.am): Likewise.
90457         * modules/strverscmp (Makefile.am): Likewise.
90458         * modules/time_r (Makefile.am): Likewise.
90459         * modules/timegm (Makefile.am): Likewise.
90460         * modules/tmpfile-safer (Makefile.am): Likewise.
90461         * modules/unistd-safer (Makefile.am): Likewise.
90462         * modules/unlinkdir (Makefile.am): Likewise.
90463         * modules/userspec (Makefile.am): Likewise.
90464         * modules/utime (Makefile.am): Likewise.
90465         * modules/utimecmp (Makefile.am): Likewise.
90466         * modules/utimens (Makefile.am): Likewise.
90467         * modules/vasnprintf (Makefile.am): Likewise.
90468         * modules/vasprintf (Makefile.am): Likewise.
90469         * modules/vsnprintf (Makefile.am): Likewise.
90470         * modules/xalloc (Makefile.am): Likewise.
90471         * modules/xgetcwd (Makefile.am): Likewise.
90472         * modules/xnanosleep (Makefile.am): Likewise.
90473         * modules/xreadlink (Makefile.am): Likewise.
90474         * modules/xstrtod (Makefile.am): Likewise.
90475         * modules/xstrtol (Makefile.am): Likewise.
90476         * modules/xstrtold (Makefile.am): Likewise.
90477         * modules/yesno (Makefile.am): Likewise.
90479 2006-10-12  Jim Meyering  <jim@meyering.net>
90481         * m4/getloadavg.m4: Revert the change below.
90483         * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
90484         lib/getloadavg.c using "ls -L", not "test -f".  The latter would
90485         fail with a symlink, which is what coreutils' ./bootstrap now
90486         creates by default.
90488 2006-10-12  Bruno Haible  <bruno@clisp.org>
90490         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
90491         mingw.
90492         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
90493         MSVC and mingw explicitly.
90495 2006-10-11  Simon Josefsson  <jas@extundo.com>
90496             Bruno Haible  <bruno@clisp.org>
90498         Add support for multiple gnulib-tool invocations in the scope of a
90499         single configure.ac file.
90500         * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
90501         use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
90502         with the same contents as the _LIBADD variable.
90503         (func_emit_initmacro_start, func_emit_initmacro_end,
90504         func_emit_initmacro_done): New functions.
90505         (func_import, func_create_testdir): Invoke them. Allow the identifiers
90506         gl_LIBOBJS and gl_LTLIBOBJS.
90508 2006-10-11  Bruno Haible  <bruno@clisp.org>
90510         * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
90511         (func_create_testdir): Don't create po/Makefile.am, don't invoke
90512         autoreconf. Instead, invoke autopoint explicitly but move back the
90513         *.m4 files from gnulib.
90515 2006-10-11  Bruno Haible  <bruno@clisp.org>
90517         * gnulib-tool (func_usage): Make module names after --create-testdir
90518         optional.
90519         (func_create_testdir): If no module was specified, use nearly all
90520         modules.
90522 2006-10-12  Jim Meyering  <jim@meyering.net>
90524         Big performance improvement for fts-based tools that use FTS_NOSTAT.
90525         Avoid spurious inode-mismatch problems on non-POSIX file systems.
90526         Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
90527         * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
90528         (FTS_OPTIONMASK): Extend the mask to reflect this addition.
90529         * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
90530         (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
90531         (fts_set_stat_required): New function.
90532         (fts_open): Defer the calls to fts_stat, if possible or requested.
90533         Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
90534         into fts_stat itself.
90535         (fts_read): Perform any required (deferred) fts_stat call.
90536         (fts_build): Likewise, for the directory we're about to open and read.
90537         In the readdir loop, carefully decide whether each entry will require
90538         an eventual call to fts_stat, using dirent.d_type info if available.
90539         (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
90540         a command line argument into this function.  Update all callers.
90541         Map a return value of FTS_DOT to FTS_D for a command line argument.
90542         * modules/fts (Depends-on): Add d-type.  Alphabetize.
90543         Thanks to Miklos Szeredi for his tenacity and for the initial
90544         bug report about "find" failing on a FUSE-based file system.
90546         * lib/fts.c (fts_open): Use consistent indentation.
90548 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
90550         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
90551         gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
90552         reported by Jim Meyering.  All uses of cache variables renamed
90553         to match Autoconf's.
90554         (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
90555         the other one.
90557         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
90558         Fix misspelling in diagnostic.
90560 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
90562         * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
90563         defined.  Problem reported by Matthew Woehlke.
90565         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
90566         Add support for Tandem NonStop R series.
90567         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
90568         Use new macro.
90570         * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
90571         (has_trailing_slash): Omit size arg; all callers changed.
90572         Omit 'inline', since it doesn't help performance and we'd
90573         need to configure it.
90574         Don't count //, ///, etc. as having a trailing slash.
90575         As a side effect, this removes a C99ism reported by Matthew Woehlke.
90576         (rpl_rename_dest_slash): On failure, use rename's errno rather
90577         than (in some cases) an incorrect or junk errno.
90578         Simplify code by removing need to compute length; this does
90579         cause it to make two passes instead of one over the file name,
90580         but it's worth it.
90582         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
90583         change, since Autoconf's version may no longer be appropriate now
90584         that we are using CVS Autoconf's version.  Add support for Tandem.
90586 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
90587             Bruno Haible  <bruno@clisp.org>
90589         * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
90590         HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
90591         * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
90592         gl_AC_TYPE_LONG_LONG.
90594         * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
90595         instead of HAVE_LONG_LONG.
90596         * lib/printf-args.c (printf_fetchargs): Likewise.
90597         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
90598         * lib/vasnprintf.c (VASNPRINTF): Likewise.
90599         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
90600         gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
90601         gl_AC_TYPE_LONG_LONG.
90603 2006-10-11  Bruno Haible  <bruno@clisp.org>
90605         * m4/longlong.m4: Add comments.
90606         * m4/ulonglong.m4: Likewise.
90608 2006-10-10  Bruno Haible  <bruno@clisp.org>
90610         Make it possible to #define stpcpy, strdup to aliases.
90611         * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
90612         * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
90614 2006-10-10  Bruno Haible  <bruno@clisp.org>
90616         Make it possible to #define gcd to an alias.
90617         * lib/gcd.c: Include config.h.
90619 2006-10-10  Bruno Haible  <bruno@clisp.org>
90621         Make it possible to #define c_isascii to an alias.
90622         * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
90623         defined. Undefine the macros before defining them, to avoid gcc
90624         warnings.
90625         * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
90626         define NO_C_CTYPE_MACROS early.
90628 2006-10-10  Bruno Haible  <bruno@clisp.org>
90630         Make it possible to #define set_program_name to an alias.
90631         * lib/progname.c: Don't undefine set_program_name; instead, undefine
90632         ENABLE_RELOCATABLE early.
90634 2006-10-10  Paul Eggert  <eggert@cs.ucla.edu>
90636         Port to Tandem NSK OSS, which has 64-bit signed int but at most
90637         32-bit unsigned int.  Problem reported by Matthew Woehlke in:
90638         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00062.html
90639         More generally, don't assume that 64-bit signed int is available
90640         if unsigned int is, and vice versa.
90641         * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
90642         unsigned symbols, not on their signed counterparts.
90643         * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
90644         (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
90645         (UINT64_C, UINTMAX_C):
90646         Likewise.
90647         * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
90648         unsigned counterparts.
90649         (Have_long_long, Unsigned): New macros.
90650         (Int): Renamed from INT.
90651         (strtoimax): Use the new macros.
90652         * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
90653         and substitute HAVE_UNSIGNED_LONG_LONG_INT.
90654         * modules/inttypes (inttypes.h): Substitute
90655         HAVE_UNSIGNED_LONG_LONG_INT.
90656         * modules/stdint (stdint.h): Likewise.
90657         (Files): Add m4/ulonglong.m4.
90659 2006-10-10  Bruno Haible  <bruno@clisp.org>
90661         Fix a gcc -Wshadow warning.
90662         * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
90663         to 'bucket'.
90664         * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
90665         gl_linked_indexof_from_to): Likewise.
90666         * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
90667         Likewise.
90668         * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
90669         Likewise.
90670         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
90671         Reported by Eric Blake.
90673 2006-10-09  Paul Eggert  <eggert@cs.ucla.edu>
90675         * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
90676         for NetBSD.  Problem reported by Bruno Haible.
90678 2006-10-09  Jim Meyering  <jim@meyering.net>
90680         * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
90681         Patch from Bruno Haible.
90683 2006-10-09  Jim Meyering  <jim@meyering.net>
90685         * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
90686         to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
90687         Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
90689 2006-10-08  Paul Eggert  <eggert@cs.ucla.edu>
90691         Don't include <config.h> twice; this doesn't work in some cases,
90692         e.g., when config.h has "#define intmax_t long long int" and
90693         we include <config.h>, <inttypes.h>, <config.h> in that order.
90694         Problem reported by Matthew Woehlke in:
90695         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00073.html
90696         * lib/fprintftime.c: Don't include config.h or fprintftime.h.
90697         * lib/fts-cycle.c: Don't include config.h.
90698         * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
90699         * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
90700         Don't include config.h or xstrtol.h.  Define STRTOL_T_MINIMUM
90701         and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
90702         inttypes.h.
90703         * lib/xstrtoumax.c: Likewise.
90704         * lib/xstrtol.c: Include config.h and xstrtol.h after defining
90705         __strtol and the like, so that this module is more like its siblings.
90706         (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
90707         Remove; no longer needed now that we assume gnulib inttypes.h.
90709 2006-10-08  Bruno Haible  <bruno@clisp.org>
90711         * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
90712         option.
90714 2006-10-07  Jim Meyering  <jim@meyering.net>
90716         * modules/inttypes (inttypes.h): Revert what seems to have been
90717         an inadvertent part of today's change: use "|", not "/" in the
90718         substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
90720 2006-10-07  Bruno Haible  <bruno@clisp.org>
90722         * modules/sublist: New file.
90724 2006-10-07  Bruno Haible  <bruno@clisp.org>
90726         * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
90727         * modules/argz (argz.h): Likewise.
90728         * modules/arpa_inet (arpa/inet.h): Likewise.
90729         * modules/byteswap (byteswap.h): Likewise.
90730         * modules/configmake (configmake.h): Likewise.
90731         * modules/fcntl (fcntl.h): Likewise.
90732         * modules/fnmatch (fnmatch.h): Likewise.
90733         * modules/getopt (getopt.h): Likewise.
90734         * modules/glob (glob.h): Likewise.
90735         * modules/inttypes (inttypes.h): Likewise.
90736         * modules/netinet_in (netinet/in.h): Likewise.
90737         * modules/poll (poll.h): Likewise.
90738         * modules/stdbool (stdbool.h): Likewise.
90739         * modules/stdint (stdint.h): Likewise.
90740         * modules/sys_select (sys/select.h): Likewise.
90741         * modules/sys_socket (sys/socket.h): Likewise.
90742         * modules/sys_stat (sys/stat.h): Likewise.
90743         * modules/sysexits (sysexits.h): Likewise.
90744         * modules/unistd (unistd.h): Likewise.
90745         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
90746         Add a "DO NOT EDIT" comment to the generated file.
90747         (func_import): Likewise for gnulib-comp.m4.
90749 2006-10-07  Bruno Haible  <bruno@clisp.org>
90751         * lib/gl_sublist.h: New file.
90752         * lib/gl_sublist.c: New file.
90754 2006-10-06  Paul Eggert  <eggert@cs.ucla.edu>
90756         * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
90757         name (relative to the original working directory) and the file
90758         name component (relative to the temporary working directory).  All
90759         callers changed.
90760         * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
90761         * lib/mkdir-p.c (make_dir_parents): Likewise.
90762         * lib/mkdir-p.h (make_dir_parents): Likewise.
90764 2006-10-06  Eric Blake  <ebb9@byu.net>
90766         Define several macros for use by the clean-temp module.
90767         * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
90768         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
90769         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
90771         * lib/clean-temp.h (close_stream_temp): New declaration.
90772         * lib/clean-temp.c (includes): Pull in headers according to what
90773         other modules are in use.
90774         (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
90776 2006-10-06  Bruno Haible  <bruno@clisp.org>
90778         * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
90779         instead of fopen, fwriteerror.
90781 2006-10-06  Bruno Haible  <bruno@clisp.org>
90783         * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
90784         cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
90785         int.
90786         * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
90787         cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
90788         Return an error indicator.
90789         Suggested by Eric Blake.
90791 2006-10-06  Bruno Haible  <bruno@clisp.org>
90793         * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
90794         Reported by Eric Blake.
90796 2006-10-06  Bruno Haible  <bruno@clisp.org>
90798         * modules/closeout (Description): Mention stderr too.
90800 2006-10-06  Bruno Haible  <bruno@clisp.org>
90801         and Paul Eggert  <eggert@cs.ucla.edu>
90803         * lib/closeout.c (close_stdout): Also close stderr.
90804         * lib/closeout.h: Update comment.
90806 2006-10-05  Paul Eggert  <eggert@cs.ucla.edu>
90808         Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
90809         <http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00063.html>.
90810         * lib/dirchownmod.c: Include lchown.h.
90811         * lib/lchown.c: Don't include files that lchown.h now includes.
90812         Don't declare chown, since lchown.h now does that.
90813         * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
90814         (lchown): Define to rpl_chown if lchown is declared but
90815         does not exist.  Declare using a prototype if lchown is not
90816         declared.  Add a copyright notice.
90817         * lib/mkstemp.h: Include <unistd.h>.
90818         * lib/openat.c: Include lchown.h.
90820         * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
90821         we now test for that separately.
90822         * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
90823         rather than O_NOFOLLOW, when testing whether it's possible to
90824         avoid a race condition reliably.
90825         * lib/savewd.c (savewd_chdir): Likewise.
90827         Remove macros that are no longer needed now that stdint.h is
90828         reliable.
90829         * lib/fsusage.c (UINTMAX_MAX): Remove.
90830         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
90831         * lib/utimecmp.c (SIZE_MAX): Remove.
90833         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
90835         * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
90836         of O_NOFOLLOW_IS_INEFFECTIVE.  Define HAVE_WORKING_O_NOATIME if
90837         O_NOATIME works.
90839 2006-10-05  Bruno Haible  <bruno@clisp.org>
90841         * lib/gl_list.h (gl_sortedlist_search_from_to,
90842         gl_sortedlist_indexof_from_to): New declarations.
90843         (gl_list_implementation): New fields sortedlist_search_from_to,
90844         sortedlist_indexof_from_to.
90845         (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
90846         inline functions.
90847         * lib/gl_list.c (gl_sortedlist_search_from_to,
90848         gl_sortedlist_indexof_from_to): New functions.
90849         * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
90850         function.
90851         (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
90852         (gl_array_sortedlist_search_from_to): New function.
90853         (gl_array_list_implementation): Update.
90854         * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
90855         function.
90856         (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
90857         (gl_carray_sortedlist_search_from_to): New function.
90858         (gl_carray_list_implementation): Update.
90859         * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
90860         gl_linked_sortedlist_indexof_from_to): New functions.
90861         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
90862         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
90863         * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
90864         gl_tree_sortedlist_indexof_from_to): New functions.
90865         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
90866         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
90867         Update.
90868         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
90869         * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
90870         Update.
90872 2006-10-05  Bruno Haible  <bruno@clisp.org>
90874         * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
90875         gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
90876         (struct gl_list_implementation): Add fields search_from_to,
90877         indexof_from_to. Remove fields search, indexof.
90878         (gl_list_search): Use the search_from_to method.
90879         (gl_list_search_from, gl_list_search_from_to): New functions.
90880         (gl_list_indexof): Use the indexof_from_to method.
90881         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
90882         * lib/gl_list.c (gl_list_search): Use the search_from_to method.
90883         (gl_list_search_from, gl_list_search_from_to): New functions.
90884         (gl_list_indexof): Use the indexof_from_to method.
90885         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
90886         * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
90887         gl_array_indexof. Add start_index, end_index arguments.
90888         (gl_array_search_from_to): Renamed from gl_array_search. Add
90889         start_index, end_index arguments.
90890         (gl_array_remove, gl_array_list_implementation): Update.
90891         * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
90892         gl_carray_indexof. Add start_index, end_index arguments.
90893         (gl_carray_search_from_to): Renamed from gl_carray_search. Add
90894         start_index, end_index arguments.
90895         (gl_carray_remove, gl_carray_list_implementation): Update.
90896         * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
90897         gl_linked_search. Add start_index, end_index arguments.
90898         (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
90899         start_index, end_index arguments.
90900         (gl_linked_remove): Update.
90901         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
90902         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
90903         * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
90904         field to 'size_t'.
90905         * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
90906         gl_tree_search. Add start_index, end_index arguments.
90907         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
90908         start_index, end_index arguments.
90909         (gl_tree_remove): Update.
90910         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
90911         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
90912         * lib/gl_anytreehash_list1.h (compare_position_threshold): New
90913         function.
90914         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
90915         gl_tree_search. Add start_index, end_index arguments.
90916         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
90917         start_index, end_index arguments.
90918         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
90919         Update.
90920         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
90922 2006-10-05  Bruno Haible  <bruno@clisp.org>
90924         * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
90926         * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
90927         fwriteerror_temp): New declarations.
90928         * lib/clean-temp.c (uintptr_t): Provide fallback definition.
90929         (descriptors): New variable.
90930         (cleanup): First, close the descriptors.
90931         (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
90932         fclose_temp, fwriteerror_temp): New functions.
90934 2006-10-04  Jim Meyering  <jim@meyering.net>
90936         * lib/fts.c (fts_open): Tiny comment change.
90938 2006-10-04  Bruno Haible  <bruno@clisp.org>
90940         Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
90941         * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
90942         gl_LOCK_BODY.
90943         (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
90944         (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
90945         gl_LOCK_EARLY_BODY.
90946         (gl_LOCK): Require gl_LOCK_BODY.
90948 2006-10-04  Bruno Haible  <bruno@clisp.org>
90950         * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
90951         (gl_oset_search_atleast): New declaration.
90952         (struct gl_oset_implementation): Add field 'search_atleast'.
90953         (gl_oset_search_atleast): New inline function.
90954         * lib/gl_oset.c (gl_oset_search_atleast): New function.
90955         * lib/gl_array_oset.c (gl_array_search_atleast): New function.
90956         (gl_array_oset_implementation): Update.
90957         * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
90958         * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
90959         * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
90961 2006-10-04  Bruno Haible  <bruno@clisp.org>
90963         * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
90965 2006-10-03  Bruno Haible  <bruno@clisp.org>
90967         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
90968         from gl_avltreehash_list_implementation.
90970 2006-10-03  Bruno Haible  <bruno@clisp.org>
90972         * lib/gl_oset.c (gl_oset_add): Fix return type.
90974 2006-10-02  Paolo Bonzini  <bonzini@gnu.org>  (tiny change)
90976         * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
90978 2006-10-02  Eric Blake  <ebb9@byu.net>
90980         * modules/strnlen (Depends-on): Add extensions.
90982 2006-10-02  Eric Blake  <ebb9@byu.net>
90984         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
90985         definition in 2.60+.
90987 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
90989         * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
90990         checks.
90992 2006-10-02  Bruno Haible  <bruno@clisp.org>
90994         * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
90995         to the AUTOMAKE_OPTIONS.
90996         Reported by Jim Meyering.
90998 2006-09-29  Paul Eggert  <eggert@cs.ucla.edu>
91000         Work around bug in Solaris 10 /proc file system:
91001         /proc/self/fd/NNN/.. isn't the parent directory of
91002         the directory whose file descriptor is NNN.  This needs to
91003         be worked around at run time, not compile time, since a
91004         program might be built on Solaris 8, where things work, and
91005         run on Solaris 10.
91006         * lib/openat-priv.h (BUILD_PROC_NAME): Remove.  All callers changed
91007         to use the following interface instead:
91008         (OPENAT_BUFFER_SIZE): New macro.
91009         (openat_proc_name): New function.
91010         * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
91011         * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
91012         Likewise.
91013         * lib/openat-proc.c: New file.
91014         * modules/openat (Files): Add lib/openat-proc.c.
91015         (Depends-on): Add same-inode, stdbool.
91016         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
91018 2006-09-29  Bruno Haible  <bruno@clisp.org>
91020         * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
91021         * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
91022         argument. Set stdout_closed before testing for ferror, not after.
91023         (fwriteerror, fwriteerror_no_ebadf): New functions.
91025 2006-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
91027         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
91029 2006-09-28  Paolo Bonzini  <bonzini@gnu.org>
91031         * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
91032         * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
91034 2006-09-28  Jim Meyering  <jim@meyering.net>
91036         * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
91037         Include <unistd.h>.
91039 2006-09-28  Bruno Haible  <bruno@clisp.org>
91041         * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
91042         * modules/linkedhash-list (Depends-on): Likewise.
91043         * modules/rbtreehash-list (Depends-on): Likewise.
91045 2006-09-28  Bruno Haible  <bruno@clisp.org>
91047         * lib/strndup.h: Simplify the redefinition of strndup.
91048         (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
91049         * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
91051 2006-09-28  Bruno Haible  <bruno@clisp.org>
91053         * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
91054         * lib/gl_linkedhash_list.c: Likewise.
91055         * lib/gl_rbtreehash_list.c: Likewise.
91057 2006-09-27  Paul Eggert  <eggert@cs.ucla.edu>
91059         * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
91060         getaddrinfo.
91062         * lib/__fpending.h: Don't include <stdio_ext.h> unless
91063         HAVE_DECL___FPENDING.  This avoids a bug with lsbcc, where
91064         it causes <stdio_ext.h> to cause a compile-time error.
91065         Problem reported by Nelson H. F. Beebe.
91066         * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
91067         of HAVE_DECL___PENDING.
91069         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
91070         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
91071         declaration.
91073 2006-09-27  Jim Meyering  <jim@meyering.net>
91075         This file could end up with a definition for a function
91076         named __strndup, rather than rpl_strndup on a system with
91077         incomplete weak_alias support.
91078         * lib/strndup.c (strndup): Rename from __strndup.
91079         Remove #defines that used to map __strndup to strndup.
91080         Don't use K&R prototypes.
91081         Remove LIBC-related code, since this file is not sync'd with glibc.
91082         * lib/strndup.h: Revamp, accordingly.
91083         * m4/strndup.m4: Modernize.
91085 2006-09-26  Paul Eggert  <eggert@cs.ucla.edu>
91087         * modules/savewd (Depends-on): Add 'raise'.
91088         * lib/savewd.c: Include <signal.h>, for 'raise'.
91090 2006-09-26  Jim Meyering  <jim@meyering.net>
91092         * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
91093         when we detect Darwin 8.7.0's acl_get_file bug.
91094         Rearrange to perform the new (below) run-test while $LIBS
91095         contains any acl-related library.  Set USE_ACL at the end.
91096         (gl_ACL_GET_FILE): New function.
91098 2006-09-26  Eric Blake  <ebb9@byu.net>
91100         * lib/verror.c: Include <config.h> unconditionally.
91102 2006-09-25  Paul Eggert  <eggert@cs.ucla.edu>
91104         * modules/clock-time (Maintainer): Add self.
91105         * modules/getlogin_r (Depends-on): Add extensions.
91107 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
91109         * modules/clock-time: New module.
91110         * modules/nanosleep (Depends-on): Add clock-time.
91111         * modules/gethrxtime (Depends-on): Likewise.
91112         * modules/gettime (Depends-on): Likewise.
91113         * modules/settime (Depends-on): Likewise.
91115         * modules/fts-lgpl: Depend on openat.
91116         * modules/mkancesdirs: Depend on savewd.
91117         * modules/mkdir-p: Likewise.
91119 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
91121         * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
91123         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
91124         `gl_have_arbitrary_file_name_length_limit' to
91125         `gl_cv_have_arbitrary_file_name_length_limit', so that caching
91126         actually works between configure runs.
91128 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
91129             Bruno Haible  <bruno@clisp.org>
91131         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
91133 2006-09-25  Jim Meyering  <jim@meyering.net>
91135         * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
91136         This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
91138 2006-09-25  Eric Blake  <ebb9@byu.net>
91140         * gnulib-tool (func_import, func_create_testdir): Fix typos in
91141         exec's in 2006-09-18 patch when shuffling fds.
91143 2006-09-25  Bruno Haible  <bruno@clisp.org>
91145         * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
91146         Reported by Jim Meyering.
91148 2006-09-24  Jim Meyering  <jim@meyering.net>
91150         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
91151         compare a pointer against a literal "0".  That caused failures with
91152         at least HP-UX's hpcc.
91154 2006-09-22  Simon Josefsson  <jas@extundo.com>
91156         * modules/gc-sha1:
91157         * modules/gc-md4:
91158         * modules/gc-hmac-sha1:
91159         * modules/gc-hmac-md5:
91160         * modules/gc-des:
91161         * modules/gc-arcfour: Distribute more files.
91163 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
91165         * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
91166         (gl_linked_iterator_from_to): Initialize struct completely.
91167         * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
91168         (gl_tree_iterator_from_to): Likewise
91169         * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
91170         * lib/gl_array_list.c [lint] (gl_array_iterator)
91171         (gl_array_iterator_from_to): Likewise.
91172         * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
91173         * lib/gl_carray_list.c [lint] (gl_carray_iterator)
91174         (gl_carray_iterator_from_to): Likewise.
91176         * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
91177         * lib/md4.c (md4_process_block): Remove unused variable.
91178         * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
91179         parentheses for clarity.
91181 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
91183         * modules/bison-i18n (Depends-on): Add gettext.
91185 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
91187         * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
91188         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
91189         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
91190         also add missing comma that caused broken test.
91191         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
91192         stdlib.h, for `abort'.
91193         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
91194         variables.
91195         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
91196         include unistd.h if present, for `rmdir'.
91197         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
91198         variables.
91199         * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
91200         in the process include standard headers for prototypes.
91201         * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
91202         gets declared on GNU/Linux.
91203         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
91204         unistd.h, for `rmdir'.
91205         * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
91207         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
91208         always true.
91209         * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
91211         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
91213 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
91215         * gnulib-tool (func_version): Create output all at once.  This
91216         may help avoid triggering unnecessary SIGPIPEs, and at any
91217         rate it doesn't hurt.
91219 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
91220             Bruno Haible  <bruno@clisp.org>
91222         * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
91223         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
91224         * m4/signed.m4 (bh_C_SIGNED): Likewise.
91226         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
91227         (gl_FUNC_VASPRINTF): Invoke it.
91229 2006-09-22  Bruno Haible  <bruno@clisp.org>
91231         * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
91232         getloadavg.c as first argument.
91234 2006-09-22  Bruno Haible  <bruno@clisp.org>
91236         * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
91237         at the beginning of the gl_INIT macro.
91238         * modules/getloadavg (configure.ac): Pass $gl_source_base to
91239         gl_GETLOADAVG.
91241 2006-09-22  Bruno Haible  <bruno@clisp.org>
91243         * gnulib-tool (func_create_megatestdir): Don't include the config-h
91244         module.
91245         Suggested by Ralf Wildenhues.
91247 2006-09-20  Paul Eggert  <eggert@cs.ucla.edu>
91249         Import this patch from libc:
91251         2006-09-06  Jakub Jelinek  <jakub@redhat.com>
91253         * lib/regex_internal.c (re_string_reconstruct): Handle
91254         offset < pstr->valid_raw_len && pstr->offsets_needed case.
91255         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
91256         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
91257         re_string_context_at.
91259         * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
91260         now requires it.
91261         (gl_PREREQ_REGEX): Don't check for locale.h any more, since
91262         gl_REGEX now does it for us.
91263         (gl_REGEX): Add test taken from
91264         http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
91266         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
91267         Check that large offsets work.  Modernize Autoconf usages.
91268         Prefer "yes" to mean a good thing rather than a bad.
91269         Don't put "#define mkstemp" in config.h, as this might interfere
91270         with standard system headers that "#define mkstemp mkstemp64".
91272         * modules/mkstemp (Depends-on): Add extensions, so that
91273         mkstemp is visible on some platforms.
91274         (Makefile.am): Add mkstemp.h to EXTRA_DIST.
91275         (Include): Change to "mkstemp.h" from <stdlib.h>.
91276         (Files): Add mkstemp.h.
91278         * lib/mkstemp.h: New file, since some standard headers
91279         #define mkstemp.
91280         * lib/mkstemp.c: Revamp to put the !_LIBC code together.
91281         Include "mkstemp.h".
91282         Make the _LIBC code resemble glibc original more,
91283         e.g., use K&R style.
91284         * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
91285         (mkstemp): Remove, since mkstemp.h does this for us.
91286         * lib/stdlib--.h: Include mkstemp.h.
91288         Import this patch from libc:
91290         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
91292         * lib/tempname.c (__gen_tempname): Change attempts_min
91293         into a macro.  Use preprocessor to decide how to initialize
91294         attempts [Coverity CID 67].
91296 2006-09-20  Bruno Haible  <bruno@clisp.org>
91298         * lib/mkdtemp.c: Import from libc.
91299         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
91300                 * sysdeps/posix/tempname.c (__gen_tempname): Change
91301                 attempts_min into a macro.  Use preprocessor to decide how to
91302                 initialize attempts [Coverity CID 67].
91303         2001-11-27  Paul Eggert  <eggert@twinsun.com>
91304                 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
91305                 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
91307 2006-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
91309         * gnulib-tool (func_exit): New function, to allow to pass the
91310         exit status portably through the trap.  Use everywhere.
91311         (--help, --version): Signal a write error.
91312         (trap): catch SIGPIPE, for write errors.
91313         Exit at the end of the trap, with the correct exit status.
91315 2006-09-19  Karl Berry  <karl@gnu.org>
91317         * doc/gnulib.texi: note about the license texinfo files.
91319 2006-09-19  Eric Blake  <ebb9@byu.net>
91321         * gnulib-tool: Avoid space-tab.
91323 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
91325         * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
91326         that prevented coreutils 6.1 from building.  Problem reported
91327         by Petter Reinholdtsen.
91329 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
91331         * gnulib-tool (avoidlist): Fix typo that broke options like
91332         --avoid=lock that are used by coreutils bootstrap.
91334 2006-09-18  Mark D. Baushke  <mdb@gnu.org>
91336         * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
91337         more systematically.
91339 2006-09-18  Jim Meyering  <jim@meyering.net>
91341         * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
91343 2006-09-18  Bruno Haible  <bruno@clisp.org>
91345         * modules/inttypes (Files): Remove m4/inttypes-h.m4.
91347 2006-09-18  Bruno Haible  <bruno@clisp.org>
91349         * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
91350         * m4/inttypes-pri.m4: Require autoconf >= 2.52.
91351         (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
91352         ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
91353         * m4/gettext.m4: Require autoconf >= 2.52.
91354         (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
91355         * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
91356         of gl_cv_header_inttypes_h.
91358 2006-09-18  Bruno Haible  <bruno@clisp.org>
91360         * lib/javaversion.c: Include configmake.h.
91362 2006-09-18  Bruno Haible  <bruno@clisp.org>
91364         * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
91365         avoid that the while loops be executed in a subshell.
91367 2006-09-18  Bruno Haible  <bruno@clisp.org>
91369         * MODULES.html.sh (func_module): Break long lines.
91370         Suggested by Bruce Korb <bkorb@gnu.org>.
91372 2006-09-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
91374         Speed up by a factor of 1.12.
91375         * gnulib-tool (nl): New variable.
91376         (func_import): Rewrite include directive extraction to only read each
91377         directive once.
91379 2006-09-17  Bruno Haible  <bruno@clisp.org>
91381         * modules/javaversion (Makefile.am): Remove DEFS setting.
91382         (Depends-on): Add configmake, for PKGDATADIR definition.
91384 2006-09-17  Bruno Haible  <bruno@clisp.org>
91386         * gnulib-tool (func_create_testdir): Rewrite all files at once.
91388 2006-09-17  Bruno Haible  <bruno@clisp.org>
91390         * gnulib-tool (func_append): New function, stolen from libtool.m4.
91391         (func_modules_transitive_closure, func_modules_add_dummy,
91392         func_modules_to_filelist, func_import, func_create_testdir,
91393         func_create_megatestdir, ...): Use it wherever possible.
91394         Suggested by Ralf Wildenhues.
91396 2006-09-16  Karl Berry  <karl@gnu.org>
91398         * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
91399         to avoid sectioning errors.
91400         * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
91401         [ifinfo]: blank line after @center-ed titles.
91402         * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
91403         Spell FSF address consistently with others.
91404         (These changes approved by rms.)
91406 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
91408         Speed up by a factor of 1.61.
91409         * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
91410         already checked module names again.
91412 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
91414         Speed up by a factor of 1.13.
91415         * gnulib-tool (func_import): Rewrite all old_files at once; likewise
91416         for new_files, and the input to func_add_or_update.
91418 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
91420         * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
91421         func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
91423 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
91425         * modules/mkancesdirs (Depends-on): Add fcntl.
91426         * modules/savewd: New file.
91427         * MODULES.html.sh (File system functions): Add savewd.
91429         * modules/configmake (Makefile.am): Add support for the
91430         Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
91432 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
91434         * m4/savewd.m4: New file.
91436 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
91438         * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
91439         (dirchownmod): New arg FD.  All callers changed.
91440         Use FD rather than opening the directory ourself, as opening is
91441         now the caller's responsibility.
91442         * lib/dirchownmod.h: Likewise.
91443         * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
91444         hosts that require <sys/types.h> before <sys/stat.h>.  Include
91445         fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
91446         (test_dir): Remove.
91447         (mkancesdirs): Return length of prefix of FILE that has already
91448         been made, or -2 if there is a child doing the work.  Redo
91449         algorithm so that it is O(N) rather than O(N**2).  Optimize away
91450         ".", and treat ".." specially since it might stray back into
91451         already-created areas.  Use a subprocess if necessary.  New arg
91452         WD; all users changed.  MAKE_DIR function should now return 1
91453         if it creates a directory that is not readable.  Return -2 if
91454         a child process is spun off.
91455         * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
91456         Adjust signature to match code.
91457         * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
91458         (make_dir_parents): Use a subprocess if necessary.  New arg WD;
91459         all users changed.
91460         * lib/savewd.c, lib/savewd.h: New files.
91462 2006-09-15  Jim Meyering  <jim@meyering.net>
91464         * modules/rename-dest-slash: New module.
91465         * MODULES.html.sh (posix_compat): Add it here.
91467         * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
91469 2006-09-15  Jim Meyering  <jim@meyering.net>
91471         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
91472         file.
91474         * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
91476 2006-09-15  Jim Meyering  <jim@meyering.net>
91478         * lib/rename-dest-slash.c (has_trailing_slash): Use
91479         FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
91480         (rpl_rename_dest_slash): Perform the cheaper trailing slash
91481         test before testing whether SRC is a directory.
91482         Suggestions from Bruno Haible.
91484         Avoid a warning about an unused variable.
91485         * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
91486         into the #ifdef block where it's used.
91488         * lib/rename-dest-slash.c: New file.
91490 2006-09-14  Bruno Haible  <bruno@clisp.org>
91492         * lib/allocsa.c: Include <config.h> unconditionally.
91493         * lib/asnprintf.c: Likewise.
91494         * lib/asprintf.c: Likewise.
91495         * lib/c-strcasecmp.c: Likewise.
91496         * lib/c-strcasestr.c: Likewise.
91497         * lib/c-strncasecmp.c: Likewise.
91498         * lib/c-strstr.c: Likewise.
91499         * lib/classpath.c: Likewise.
91500         * lib/clean-temp.c: Likewise.
91501         * lib/concatpath.c: Likewise.
91502         * lib/copy-file.c: Likewise.
91503         * lib/csharpcomp.c: Likewise.
91504         * lib/csharpexec.c: Likewise.
91505         * lib/execute.c: Likewise.
91506         * lib/fatal-signal.c: Likewise.
91507         * lib/findprog.c: Likewise.
91508         * lib/fwriteerror.c: Likewise.
91509         * lib/gl_array_list.c: Likewise.
91510         * lib/gl_array_oset.c: Likewise.
91511         * lib/gl_avltree_list.c: Likewise.
91512         * lib/gl_avltree_oset.c: Likewise.
91513         * lib/gl_avltreehash_list.c: Likewise.
91514         * lib/gl_carray_list.c: Likewise.
91515         * lib/gl_linked_list.c: Likewise.
91516         * lib/gl_linkedhash_list.c: Likewise.
91517         * lib/gl_list.c: Likewise.
91518         * lib/gl_oset.c: Likewise.
91519         * lib/gl_rbtree_list.c: Likewise.
91520         * lib/gl_rbtree_oset.c: Likewise.
91521         * lib/gl_rbtreehash_list.c: Likewise.
91522         * lib/imaxabs.c: Likewise.
91523         * lib/imaxdiv.c: Likewise.
91524         * lib/javacomp.c: Likewise.
91525         * lib/javaexec.c: Likewise.
91526         * lib/javaversion.c: Likewise.
91527         * lib/linebreak.c: Likewise.
91528         * lib/localcharset.c: Likewise.
91529         * lib/lock.c: Likewise.
91530         * lib/mbchar.c: Likewise.
91531         * lib/mbswidth.c: Likewise.
91532         * lib/mkdtemp.c: Likewise.
91533         * lib/pipe.c: Likewise.
91534         * lib/printf-args.c: Likewise.
91535         * lib/printf-parse.c: Likewise.
91536         * lib/progname.c: Likewise.
91537         * lib/progreloc.c: Likewise.
91538         * lib/readlink.c: Likewise.
91539         * lib/sh-quote.c: Likewise.
91540         * lib/stpcpy.c: Likewise.
91541         * lib/stpncpy.c: Likewise.
91542         * lib/strcasecmp.c: Likewise.
91543         * lib/strcasestr.c: Likewise.
91544         * lib/strcspn.c: Likewise.
91545         * lib/striconv.c: Likewise.
91546         * lib/strncasecmp.c: Likewise.
91547         * lib/strnlen1.c: Likewise.
91548         * lib/strstr.c: Likewise.
91549         * lib/strtok_r.c: Likewise.
91550         * lib/tls.c: Likewise.
91551         * lib/tmpdir.c: Likewise.
91552         * lib/unicodeio.c: Likewise.
91553         * lib/unsetenv.c: Likewise.
91554         * lib/vasnprintf.c: Likewise.
91555         * lib/vasprintf.c: Likewise.
91556         * lib/wait-process.c: Likewise.
91557         * lib/xallocsa.c: Likewise.
91558         * lib/xsetenv.c: Likewise.
91559         * lib/xstriconv.c: Likewise.
91561 2006-09-13  Simon Josefsson  <jas@extundo.com>
91563         * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
91564         that internally, suggested by Ralf Wildenhues
91565         <Ralf.Wildenhues@gmx.de>.
91567 2006-09-13  Simon Josefsson  <jas@extundo.com>
91569         * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
91570         @LIBOBJS@.
91571         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
91573 2006-09-13  Paul Eggert  <eggert@cs.ucla.edu>
91575         * lib/_fpending.c: Include <config.h> unconditionally, since we no
91576         longer worry about uses that don't define HAVE_CONFIG_H.
91577         * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
91578         * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
91579         * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
91580         * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
91581         * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
91582         * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
91583         * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
91584         * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
91585         * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
91586         * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
91587         * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
91588         * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
91589         * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
91590         * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
91591         * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
91592         * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
91593         * lib/getusershell.c, lib/glob.c, lib/group-member.c:
91594         * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
91595         * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
91596         * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
91597         * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
91598         * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
91599         * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
91600         * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
91601         * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
91602         * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
91603         * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
91604         * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
91605         * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
91606         * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
91607         * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
91608         * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
91609         * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
91610         * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
91611         * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
91612         * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
91613         * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
91614         * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
91615         * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
91616         * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
91617         * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
91618         Likewise.
91620 2006-09-13  Eric Blake  <ebb9@byu.net>
91622         * lib/getopt.c: Fix typo in last commit.
91624 2006-09-12  Sergey Poznyakoff  <gray@gnu.org.ua>
91626         * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
91627         dgettext.
91629 2006-09-12  Jim Meyering  <jim@meyering.net>
91631         * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
91632         compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
91633         Reported by Nelson H. F. Beebe.
91635 2006-09-10  Sergey Poznyakoff  <gray@gnu.org.ua>
91637         * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
91638         program_invocation_name and program_invocation_short_name are
91639         initialized.
91640         * lib/argp-namefrob.h: Move declarations of program_invocation_name
91641         and program_invocation_short_name to argp.h, so they are visible
91642         to user programs.
91643         * lib/argp.h: Likewise
91645 2006-09-10  Bruno Haible  <bruno@clisp.org>
91647         * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
91648         m4/inttypes_h.m4, m4/uintmax_t.m4.
91650 2006-09-10  Bruno Haible  <bruno@clisp.org>
91652         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
91653         gl_AC_TYPE_UINTMAX_T.
91655 2006-09-10  Bruno Haible  <bruno@clisp.org>
91657         * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
91659 2006-09-09  Sergey Poznyakoff  <gray@gnu.org.ua>
91661         * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
91662         convention.  Text proposed by Bruno Haible.
91663         (struct argp_option): Document the use of N_() wrappers.
91665         * lib/argp-help.c (argp_doc): Split the untranslated doc string on
91666         '\v', and translate the two parts separately, instead of feeding
91667         the whole string to gettext.  This allows to exclude
91668         '\v' from the strings visible to the translator by writing doc
91669         strings as N_("..") "\v" N_("..").
91671 2006-09-09  Paul Eggert  <eggert@cs.ucla.edu>
91673         * config/srclist.txt: Undo latest change; the bug was fixed.
91675 2006-09-09  Bruno Haible  <bruno@clisp.org>
91677         * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
91678         assignments if building a library without libtool.
91679         (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
91680         in func_emit_lib_Makefile_am.
91681         (func_import): When building a static library libfoo.a, arrange to
91682         define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
91683         (func_create_testdir): Likewise.
91684         * modules/gc (configure.ac, Makefile.am): If building statically,
91685         augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
91686         * modules/iconvme (configure.ac, Makefile.am): Likewise.
91687         * modules/striconv (configure.ac, Makefile.am): Likewise.
91688         Based on a suggestion by Ralf Wildenhues.
91690 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
91692         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
91693         Check for unistd.h too, since Autoconf doesn't assume POSIX.
91694         Also:
91696         2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
91697         Add year_2050_test to catch glibc bug 2821
91698         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
91700         2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
91701         Prefer #ifdef to #if.
91703         2006-04-02  Paul Eggert  <eggert@cs.ucla.edu>
91704         Return from 'main' instead of calling 'exit'.
91706 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
91708         * lib/mktime.c (guess_time_tm): Fix bug where mktime
91709         returned the maximum time_t value rather than (time_t) -1.
91710         Problem originally reported by William Bardwell
91711         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
91713         * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
91714         Moved to here ...
91715         * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
91716         ... from here.
91718 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
91720         * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
91721         2821 is fixed.
91723 2006-09-08  Jim Meyering  <jim@meyering.net>
91725         Don't make generated files read-only.  That would bother too many
91726         people.  However, do retain the ability to work when targets are
91727         read-only: remove the destination and temporary files before writing
91728         them (when generated via sed or echo), or by using the -f option for
91729         both cp and mv commands.  Suggestion to use -f from Paul Eggert.
91730         * modules/alloca-opt, modules/argz, modules/arpa_inet:
91731         * modules/byteswap, modules/configmake, modules/fcntl:
91732         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
91733         * modules/localcharset, modules/netinet_in, modules/poll:
91734         * modules/stdbool, modules/stdint, modules/sys_select:
91735         * modules/sys_socket, modules/sys_stat, modules/sysexits:
91737 2006-09-08  Jim Meyering  <jim@meyering.net>
91739         Avoid new build failure on FreeBSD 6.0.
91740         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
91741         <sys/param.h> when testing whether getmntinfo uses statvfs.  Patch by
91742         Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
91744 2006-09-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
91746         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
91748 2006-09-07  Jim Meyering  <jim@meyering.net>
91750         Fix global typo in last change: use chmod u-w, not chmod u-x.
91751         Spotted by Paul Eggert and Bruce Korb.
91752         * modules/alloca-opt, modules/argz, modules/arpa_inet:
91753         * modules/byteswap, modules/configmake, modules/fcntl:
91754         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
91755         * modules/localcharset, modules/netinet_in, modules/poll:
91756         * modules/stdbool, modules/stdint, modules/sys_select:
91757         * modules/sys_socket, modules/sys_stat, modules/sysexits:
91759 2006-09-06  Jim Meyering  <jim@meyering.net>
91761         Make generated files be read-only.
91762         * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
91763         Ensure that each generated file is now read-only.
91764         * modules/argz: Likewise.
91765         * modules/arpa_inet: Likewise.
91766         * modules/byteswap: Likewise.
91767         * modules/configmake: Likewise.
91768         * modules/fcntl: Likewise.
91769         * modules/fnmatch: Likewise.
91770         * modules/getopt: Likewise.
91771         * modules/glob: Likewise.
91772         * modules/inttypes: Likewise.
91773         * modules/netinet_in: Likewise.
91774         * modules/poll: Likewise.
91775         * modules/stdbool: Likewise.
91776         * modules/stdint: Likewise.
91777         * modules/sys_select: Likewise.
91778         * modules/sys_socket: Likewise.
91779         * modules/sys_stat: Likewise.
91780         * modules/sysexits: Likewise.
91781         * modules/localcharset: Same as above, but continue using temporary
91782         file named "t-$@" (why different?) rather than the "$@-t" used
91783         everywhere else.
91785         * modules/sysexits (Makefile.am): Replace literal occurrences
91786         of "sysexit.h" more readable, and more consistent, "$@".
91788 2006-09-06  Bruno Haible  <bruno@clisp.org>
91790         * modules/striconv: New file.
91791         * modules/xstriconv: New file.
91792         * MODULES.html.sh (Internationalization functions): Add striconv,
91793         xstriconv.
91795 2006-09-06  Bruno Haible  <bruno@clisp.org>
91797         * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
91798         * modules/iconvme (Makefile.am): Likewise. Also handle the case of
91799         not using libtool correctly.
91801 2006-09-06  Bruno Haible  <bruno@clisp.org>
91803         * lib/striconv.h: New file.
91804         * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
91805         iconvstring.c.
91806         * lib/xstriconv.h: New file.
91807         * lib/xstriconv.c: New file.
91809 2006-09-06  Bruno Haible  <bruno@clisp.org>
91811         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
91812         lib_..._LDFLAGS.
91814 2006-09-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
91816         * lib/argz_.h: Sync from Libtool.
91818         2006-09-04  George Bosilca <bosilca@cs.utk.edu>
91819                 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
91821         * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
91823 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
91825         * modules/trim: New file.
91827 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
91829         * lib/trim.h: New file.
91830         * lib/trim.c: New file.
91832 2006-09-05  Bruno Haible  <bruno@clisp.org>
91834         * MODULES.html.sh (String handling): Add trim.
91836 2006-09-04  Karl Berry  <karl@gnu.org>
91838         * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
91839         until next release.
91841 2006-09-03  Bruno Haible  <bruno@clisp.org>
91843         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
91844         correctly.
91846 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
91848         * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
91849         not gl_GETLOADAVG.  Omit unneeded semicolons.
91850         Problems reported by Ralf Wildenhues in
91851         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
91852         (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define.  Put
91853         at the end, which is the usual gnulib style.
91855         * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
91856         of doing all the work ourselves.
91857         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
91858         sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
91860 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
91862         * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
91863         Problem reported by Ralf Wildenhues in
91864         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
91866         * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
91867         HAVE_STRUCT_STATFS_F_FSTYPENAME.
91869 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
91871         * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
91872         yesterday's patch by changing test -n to test -z.
91874 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
91876         * modules/getloadavg (Files): Add m4/getloadavg.m4.
91877         (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
91878         the former is now obsolescent.
91880         * modules/chdir-long (Depends-on): Add fcntl.
91882 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
91884         * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
91885         obsolescent, and programs should use gnulib instead.
91886         * m4/getloadavg.m4: New file, with contents taken from Autoconf
91887         but with prefixes changed.
91889 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
91891         * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
91892         or stdbool.h, because they might not exist while configuring.
91894         * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
91895         Don't include unistd.h or limits.h; not needed, since chdir-long.h
91896         does that for us.
91897         (O_DIRECTORY): Remove.
91899 2006-08-31  Eric Blake  <ebb9@byu.net>
91901         * gnulib-tool: Don't let emacs change spaces to TAB.
91903 2006-08-31  Bruno Haible  <bruno@clisp.org>
91905         * gnulib-tool: When calling func_import more than once, do it in a
91906         subshell.
91907         Reported by Eric Blake <ebb9@byu.net>.
91909 2006-08-31  Bruno Haible  <bruno@clisp.org>
91911         * gnulib-tool (nl): Remove variable.
91912         (sed_transform_lib_file): Use more robust test for config-h module.
91913         (func_import): Fix typo in 2006-08-25 patch.
91915 2006-08-31  Bruno Haible  <bruno@clisp.org>
91917         * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
91918         specified, augment Makefile.am variables instead of assigning them.
91920 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
91922         Work around a bug in both the Linux and SunOS 64-bit kernels:
91923         nanosleep mishandles sleeps for longer than 2**31 seconds.
91924         Problem reported by Frank v Waveren in
91925         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
91926         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
91927         Check for nanosleep bug.
91928         (LIB_NANOSLEEP): Append clock_gettime library if needed.
91930 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
91932         Work around a bug in both the Linux and SunOS 64-bit kernels:
91933         nanosleep mishandles sleeps for longer than 2**31 seconds.
91934         Problem reported by Frank v Waveren in
91935         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
91936         * lib/nanosleep.c (BILLION): New constant.
91937         (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
91938         (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
91939         implementation.
91941 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
91943         * modules/nanosleep (Depends-on): Add gettime.
91945 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
91946         and Simon Josefsson  <jas@extundo.com>
91947         and Oskar Liljeblad  <oskar@osk.mine.nu>
91949         * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
91950         * gnulib-tool (func_import): New license type 'unmodifiable license
91951         text'.
91952         * modules/fdl: Use it.  Longer description.
91953         * module/gpl, module/lgpl: New files.
91955 2006-08-30  Jim Meyering  <jim@meyering.net>
91957         * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
91958         shadowing the parameter.
91960 2006-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
91962         Sync from Libtool:
91964         2006-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
91966         * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
91967         sharing with gnulib.  Report by Eric Blake.
91969 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
91971         * modules/isapipe: New file.
91972         * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
91974 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
91976         * modules/configmake (Makefile.am): Add a comment, and omit
91977         the CONFIGMAKE_ prefix from generated macro names.  Suggested
91978         by Bruno Haible.
91980 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
91982         * m4/isapipe.m4: New file.
91984 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
91986         * lib/isapipe.c, lib/isapipe.h: New files.
91988 2006-08-29  Jim Meyering  <jim@meyering.net>
91990         * modules/configmake (Makefile.am): Make configmake.h depend on
91991         Makefile.  Otherwise, a stale configmake.h could hang around.
91993 2006-08-29  Eric Blake  <ebb9@byu.net>
91995         * lib/error.c (error_at_line, print_errno_message): Match libc, after
91996         resolution of upstream bug 3044.
91998 2006-08-29  Bruno Haible  <bruno@clisp.org>
92000         * modules/localcharset (Depends-on): Add configmake.
92001         (Makefile.am): Remove setting of LIBDIR through DEFS.
92003 2006-08-29  Bruno Haible  <bruno@clisp.org>
92005         * lib/localcharset.c: Include configmake.h in order to get LIBDIR
92006         defined.
92008 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
92010         * modules/fcntl: New file.
92011         * modules/chdir-safer (Depends-on): Add fcntl.
92012         * modules/fts: Likewise.
92013         * modules/mkdir-p: Likewise.
92015         * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
92016         This undoes the most recent change, since we're now addressing the
92017         problem in a different way.
92019         * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
92020         into output, since the output might be called Makefile.am even
92021         if $makefile_name is something different.
92022         (func_import): Use $makefile_am rather than
92023         ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
92024         empty.
92026         * modules/inttypes (Files): Add m4/inttypes-h.m4.
92028 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
92030         * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
92031         * m4/stdint.m4 (gl_STDINT_H): ... from here.  This undoes the most
92032         recent change to stdint.m4, since we're now addressing the problem in a
92033         different way.
92035 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
92037         * m4/fcntl_h.m4: New file.
92039 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
92041         * lib/fcntl_.h: New file.
92042         * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
92043         the fcntl module.
92044         * lib/dirchownmod.c: Likewise.
92045         * lib/fts.c: Likewise.
92047         * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
92048         Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
92049         * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
92050         just before including <inttypes.h>, to avoid circular inclusion.
92052 2006-08-28  Jim Meyering  <jim@meyering.net>
92054         * doc/visibility.texi: Actually read and correct the grammar of the
92055         sentence affected by yesterday's change.
92057 2006-08-28  Eric Blake  <ebb9@byu.net>
92059         * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
92060         needs wrapper.
92062 2006-08-28  Eric Blake  <ebb9@byu.net>
92064         * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
92066 2006-08-28  Eric Blake  <ebb9@byu.net>
92068         * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
92070 2006-08-28  Bruno Haible  <bruno@clisp.org>
92072         * modules/c-strstr: New file, from GNU gettext.
92073         * MODULES.html.sh (String handling): Add c-strstr.
92075 2006-08-28  Bruno Haible  <bruno@clisp.org>
92077         * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
92078         macros.
92079         Reported by Eric Blake.
92081 2006-08-28  Bruno Haible  <bruno@clisp.org>
92083         * lib/vasnprintf.c (EOVERFLOW): Remove definition.
92084         (VASNPRINTF): Return a string of length > INT_MAX without failing.
92085         * lib/vasprintf.c: Include errno.h, limits.h.
92086         (EOVERFLOW): New fallback definition.
92087         (vasprintf): Test here whether the string length is > INT_MAX.
92088         * lib/vsnprintf.c: Include errno.h, limits.h.
92089         (EOVERFLOW): New fallback definition.
92090         (vsnprintf): Fix bug when generated string was too long for the buffer.
92091         Test here whether the string length is > INT_MAX.
92093 2006-08-28  Bruno Haible  <bruno@clisp.org>
92095         * lib/inttypes_.h (SCNX*): Remove definitions.
92096         Reported by Eric Blake.
92098 2006-08-28  Bruno Haible  <bruno@clisp.org>
92100         * lib/c-strstr.h: New file, from GNU gettext.
92101         * lib/c-strstr.c: New file, from GNU gettext.
92103 2006-08-28  Bruno Haible  <bruno@clisp.org>
92105         * gnulib-tool: Reorder some statements.
92107 2006-08-28  Bruno Haible  <bruno@clisp.org>
92109         * gnulib-tool: New option --makefile-name.
92110         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
92111         $makefile_name.
92112         (func_import): Write $makefile_name to the cache file, and read it from
92113         there unless explicitly specified. Use $makefile_name as file name
92114         instead of Makefile.am. Adjust the recommendations accordingly.
92116 2006-08-28  Bruno Haible  <bruno@clisp.org>
92118         * gnulib-tool (func_verify_module): Check against misapplying patch.
92120 2006-08-28  Bruno Haible  <bruno@clisp.org>
92122         * gnulib-tool (func_relativize, func_relconcat): New functions.
92123         Give an error if --local-dir is given with --update.
92124         Remove trailing slashes from $local_gnulib_dir.
92125         (func_import): Store the relativized $local_gnulib_dir in
92126         gnulib-cache.m4, and read it from there if not specified explicitly.
92128 2006-08-28  Bruno Haible  <bruno@clisp.org>
92130         * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
92131         is the current directory. Respect also $local_gnulib_dir.
92133 2006-08-28  Bruno Haible  <bruno@clisp.org>
92134             Simon Josefsson  <jas@extundo.com>
92136         BeOS portability.
92137         * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
92139 2006-08-27  Jim Meyering  <jim@meyering.net>
92141         * doc/visibility.texi: Remove duplicate word: "pointer".
92143 2006-08-26  Bruno Haible  <bruno@clisp.org>
92145         * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
92146         Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
92147         (Makefile.am): Create inttypes.h from inttypes_.h.
92148         * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
92150         * modules/imaxabs: New file.
92152         * modules/imaxdiv: New file.
92154 2006-08-26  Bruno Haible  <bruno@clisp.org>
92156         * m4/inttypes.m4: New file.
92157         * m4/_inttypes_h.m4: Remove file.
92158         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
92159         PRI_MACROS_BROKEN.
92160         * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
92162         * m4/imaxabs.m4: New file.
92164         * m4/imaxdiv.m4: New file.
92166 2006-08-26  Bruno Haible  <bruno@clisp.org>
92168         * lib/inttypes_.h: New file.
92169         * lib/inttypes.h: Remove file.
92170         * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
92172         * lib/imaxabs.c: New file.
92174         * lib/imaxdiv.c: New file.
92176 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
92178         New config-h module, so that "make" output needn't be cluttered
92179         by -DHAVE_CONFIG_H.
92180         * MODULES.html.sh (Support for building libraries and executables):
92181         Add config-h.
92182         * modules/config-h: New file.
92183         * gnulib-tool (nl, sed_transform_lib_file): New vars.
92184         (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
92185         the config-h module is used.
92187         New configmake module, so that "make" output needn't be cluttered
92188         by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
92189         * MODULES.html.sh (Support for building libraries and executables):
92190         Add configmake.
92191         * modules/configmake: New file.
92193 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
92195         * m4/config-h.m4: New file.
92197 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
92199         * config/srclist.txt: Add elisp-comp.
92201 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
92203         * MODULES.html.sh (Support for building libraries and executables):
92204         Add elisp-comp.
92205         * build-aux/elisp-comp: New file.
92206         * modules/elisp-comp: New file.
92208 2006-08-24  Bruno Haible  <bruno@clisp.org>
92210         * gnulib-tool (func_create_testdir): Use non-default values of
92211         sourcebase and m4base.
92213 2006-08-24  Bruno Haible  <bruno@clisp.org>
92215         * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
92216         HTML structure.
92218 2006-08-23  Paul Eggert  <eggert@cs.ucla.edu>
92220         * modules/openat (Depends-on): Add lchown.
92222 2006-08-23  Bruno Haible  <bruno@clisp.org>
92224         * gnulib-tool (func_import, func_create_testdir): Emit an invocation
92225         of gl_LOCK_EARLY instead of gl_LOCK.
92227 2006-08-23  Bruno Haible  <bruno@clisp.org>
92229         * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
92230         on OSF/1 to no.
92231         Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
92233 2006-08-23  Bruno Haible  <bruno@clisp.org>
92235         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
92236         as unusable.
92238         * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
92239         (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
92240         (gl_LOCK): New macro.
92242 2006-08-22  Simon Josefsson  <jas@extundo.com>
92244         * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
92245         to md5 module.
92247 2006-08-22  Simon Josefsson  <jas@extundo.com>
92249         * MODULES.html.sh: Add "Support for maintaining and release
92250         projects".
92252         * build-aux/gnupload: New file, from coreutils.
92254 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
92256         Avoid the need for AC_LIBSOURCES in m4 macros.
92257         * modules/arcfour (EXTRA_DIST): Add arcfour.h.
92258         * modules/arctwo (EXTRA_DIST): Add arctwo.h.
92259         * modules/check-version (EXTRA_DIST): Add check-version.h.
92260         * modules/crc (EXTRA_DIST): Add crc.h.
92261         * modules/des (EXTRA_DIST): Add des.h.
92262         * modules/gc (EXTRA_DIST): Add gc.h.
92263         * modules/getdelim (EXTRA_DIST): Add getdelim.h.
92264         * modules/getline (EXTRA_DIST): Add getline.h.
92265         * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
92266         * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
92267         * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
92268         * modules/md2 (EXTRA_DIST): Add md2.h.
92269         * modules/md4 (EXTRA_DIST): Add md4.h.
92270         * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
92271         * modules/read-file (EXTRA_DIST): Add read-file.h.
92272         * modules/readline (EXTRA_DIST): Add readline.h.
92273         * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
92274         rijndael-api-fst.h.
92276 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
92278         * m4/rijndael.m4 (gl_ARCFOUR):
92279         * m4/arctwo.m4 (gl_ARCTWO):
92280         * m4/check-version.m4 (gl_CHECK_VERSION):
92281         * m4/crc.m4 (gl_CRC):
92282         * m4/des.m4 (gl_DES):
92283         * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
92284         * m4/gc.m4 (gl_GC):
92285         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
92286         * m4/getline.m4 (gl_FUNC_GETLINE):
92287         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
92288         * m4/hmac-md5.m4 (gl_HMAC_MD5):
92289         * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
92290         * m4/md2.m4 (gl_MD2):
92291         * m4/md4.m4 (gl_MD4):
92292         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
92293         * m4/read-file.m4 (gl_FUNC_READ_FILE):
92294         * m4/readline.m4 (gl_FUNC_READLINE):
92295         * m4/rijndael.m4 (gl_RIJNDAEL):
92296         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
92297         to get the necessary .h files and whatnot.
92299 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
92301         * config/srclist.txt: Remove gnupload, since coreutils now syncs from
92302         gnulib rather than the other way around.
92303         * config/srclistvars.sh (COREUTILS): Remove.
92305 2006-08-22  Jim Meyering  <jim@meyering.net>
92307         * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
92309         * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
92311 2006-08-22  Eric Blake  <ebb9@byu.net>
92313         * modules/regexprops-generic: New file.
92314         * MODULES.html.sh (Support for building documentation): List it.
92316 2006-08-22  Eric Blake  <ebb9@byu.net>
92318         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
92319         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
92320         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
92321         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
92323 2006-08-22  Bruno Haible  <bruno@clisp.org>
92325         * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
92326         and lib_LTLIBRARIES like the other lib_* variables.
92328 2006-08-22  Bruno Haible  <bruno@clisp.org>
92330         * build-aux/x-to-1.in: New file, from GNU gettext.
92332 2006-08-22  Bruno Haible  <bruno@clisp.org>
92334         * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
92335         <utmpx.h> exists.
92337 2006-08-22  Bruno Haible  <bruno@clisp.org>
92339         * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
92340         <utmpx.h> exists.
92342 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
92344         BeOS portability.
92345         * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
92346         exist.
92347         Problem reported by Bruno Haible.
92349 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
92351         Avoid the need for AC_LIBSOURCES in m4 macros.
92352         * modules/acl (EXTRA_DIST): Add acl.h.
92353         * modules/argmatch (Files): Add m4/argmatch.m4.
92354         (configure.ac): Add gl_ARGMATCH.
92355         (EXTRA_DIST): Renamed from lib_SOURCES, for
92356         consistency with the other modules.  Remove argmatch.c.
92357         * modules/backupfile (EXTRA_DIST): Add backupfile.h.
92358         * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
92359         * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
92360         * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
92361         * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
92362         * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
92363         * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
92364         * modules/cloexec (EXTRA_DIST): Add cloexec.h.
92365         * modules/close-stream (EXTRA_DIST): Add close-stream.h.
92366         * modules/closeout (EXTRA_DIST): Add closeout.h.
92367         * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
92368         * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
92369         * modules/dirfd (EXTRA_DIST): Add dirfd.h.
92370         * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES.  Add
92371         dirname.h; remove basename.c and stripslash.c.
92372         * modules/exclude (EXTRA_DIST): Add exclude.h.
92373         * modules/exitfail (EXTRA_DIST): Add exitfail.h.
92374         * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
92375         * modules/file-type (EXTRA_DIST): Add file-type.h.
92376         * modules/filemode (EXTRA_DIST): Add filemode.h.
92377         * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
92378         * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
92379         * modules/fpending (EXTRA_DIST): Add __fpending.h.
92380         * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
92381         * modules/fsusage (EXTRA_DIST): Add fsusage.h.
92382         * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
92383         * modules/getcwd (EXTRA_DIST): Add getcwd.h.
92384         * modules/getdate (EXTRA_DIST): Add getdate.c.
92385         * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
92386         * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
92387         * modules/getpass (EXTRA_DIST): Add getpass.h.
92388         * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
92389         * modules/group-member (EXTRA_DIST): Add group-member.h.
92390         * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
92391         * modules/hash (EXTRA_DIST): Add hash.h.
92392         * modules/human (EXTRA_DIST): Add human.h.
92393         * modules/inttypes (EXTRA_DIST): Add inttypes.h.
92394         * modules/lchmod (EXTRA_DIST): Add lchmod.h.
92395         * modules/lchown (EXTRA_DIST): Add lchown.h.
92396         * modules/long-options (EXTRA_DIST): Add long-options.h.
92397         * modules/lstat (EXTRA_DIST): Add lstat.h.
92398         * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
92399         * modules/memcoll (EXTRA_DIST): Add memcoll.h.
92400         * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
92401         * modules/memrchr (EXTRA_DIST): Add memrchr.h.
92402         * modules/memxor (EXTRA_DIST): Add memxor.h.
92403         * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
92404         * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
92405         * modules/mountlist (EXTRA_DIST): Add mountlist.h.
92406         * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
92407         * modules/pathmax (EXTRA_DIST): Add pathmax.h.
92408         * modules/physmem (EXTRA_DIST): Add physmem.h.
92409         * modules/posixtm (EXTRA_DIST): Add posixtm.h.
92410         * modules/posixver (EXTRA_DIST): Add posixver.h.
92411         * modules/quote (EXTRA_DIST): Add quote.h.
92412         * modules/quotearg (EXTRA_DIST): Add quotearg.h.
92413         * modules/readtokens (EXTRA_DIST): Add readtokens.h.
92414         * modules/readutmp (EXTRA_DIST): Add readutmp.h.
92415         * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
92416         regex_internal.h regexec.c.
92417         * modules/safe-read (EXTRA_DIST): Add safe-read.h.
92418         * modules/safe-write (EXTRA_DIST): Add safe-write.h.
92419         * modules/same (EXTRA_DIST): Add same.h.
92420         * modules/same-inode (EXTRA_DIST): Add same-inode.h.
92421         * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
92422         * modules/savedir (EXTRA_DIST): Add savedir.h.
92423         * modules/sha1 (EXTRA_DIST): Add sha1.h.
92424         * modules/sig2str (EXTRA_DIST): Add sig2str.h.
92425         * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
92426         * modules/stat-time (EXTRA_DIST): Add stat-time.h.
92427         * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
92428         * modules/strdup (EXTRA_DIST): Add strdup.h.
92429         * modules/strftime (EXTRA_DIST): Add strftime.h.
92430         * modules/strndup (EXTRA_DIST): Add strndup.h.
92431         * modules/strnlen (EXTRA_DIST): Add strnlen.h.
92432         * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
92433         * modules/time_r (EXTRA_DIST): Add time_r.h.
92434         * modules/timespec (EXTRA_DIST): Add timespec.h.
92435         * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
92436         * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
92437         * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
92438         * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
92439         * modules/userspec (EXTRA_DIST): Add userspec.h.
92440         * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
92441         * modules/utimens (EXTRA_DIST): Add utimens.h.
92442         * modules/xalloc (EXTRA_DIST): Add xalloc.h.
92443         * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
92444         * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
92445         * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
92446         * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
92447         * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
92448         * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
92449         * modules/yesno (EXTRA_DIST): Add yesno.h.
92451 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
92453         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
92455         * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
92456         * m4/dev-ino.m4, same-inode.m4: Remove.
92458         * m4/_inttypes_h.m4 (gl_INTTYPES_H):
92459         * m4/acl.m4 (AC_FUNC_ACL):
92460         * m4/backupfile.m4 (gl_BACKUPFILE):
92461         * m4/c-strtod.m4 (gl_C99_STRTOLD):
92462         * m4/canon-host.m4 (gl_CANON_HOST):
92463         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
92464         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
92465         * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
92466         * m4/cloexec.m4 (gl_CLOEXEC):
92467         * m4/close-stream.m4 (gl_CLOSE_STREAM):
92468         * m4/closeout.m4 (gl_CLOSEOUT):
92469         * m4/dirfd.m4 (gl_FUNC_DIRFD):
92470         * m4/dirname.m4 (gl_DIRNAME):
92471         * m4/exclude.m4 (gl_EXCLUDE):
92472         * m4/exitfail.m4 (gl_EXITFAIL):
92473         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
92474         * m4/file-type.m4 (gl_FILE_TYPE):
92475         * m4/filemode.m4 (gl_FILEMODE):
92476         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
92477         * m4/fpending.m4 (gl_FUNC_FPENDING):
92478         * m4/fprintftime.m4 (gl_FPRINTFTIME):
92479         * m4/fts.m4 (gl_FUNC_FTS):
92480         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
92481         * m4/getdate.m4 (gl_GETDATE):
92482         * m4/gethrxtime.m4 (gl_GETHRXTIME):
92483         * m4/getpagesize.m4 (gl_GETPAGESIZE):
92484         * m4/getpass.m4 (gl_FUNC_GETPASS):
92485         * m4/gettime.m4 (gl_GETTIME):
92486         * m4/getugroups.m4 (gl_GETUGROUPS):
92487         * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
92488         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
92489         * m4/hard-locale.m4 (gl_HARD_LOCALE):
92490         * m4/hash.m4 (gl_HASH):
92491         * m4/idcache.m4 (gl_IDCACHE):
92492         * m4/lchmod.m4 (gl_FUNC_LCHMOD):
92493         * m4/lchown.m4 (gl_FUNC_LCHOWN):
92494         * m4/long-options.m4 (gl_LONG_OPTIONS):
92495         * m4/lstat.m4 (gl_FUNC_LSTAT):
92496         * m4/md5.m4 (gl_MD5):
92497         * m4/memcasecmp.m4 (gl_MEMCASECMP):
92498         * m4/memcoll.m4 (gl_MEMCOLL):
92499         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
92500         * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
92501         * m4/memxor.m4 (gl_MEMXOR):
92502         * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
92503         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
92504         * m4/modechange.m4 (gl_MODECHANGE):
92505         * m4/mountlist.m4 (gl_MOUNTLIST):
92506         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
92507         * m4/openat.m4 (gl_FUNC_OPENAT):
92508         * m4/pathmax.m4 (gl_PATHMAX):
92509         * m4/physmem.m4 (gl_PHYSMEM):
92510         * m4/posixtm.m4 (gl_POSIXTM):
92511         * m4/posixver.m4 (gl_POSIXVER):
92512         * m4/quote.m4 (gl_QUOTE):
92513         * m4/quotearg.m4 (gl_QUOTEARG):
92514         * m4/readtokens.m4 (gl_READTOKENS):
92515         * m4/readutmp.m4 (gl_READUTMP):
92516         * m4/regex.m4 (gl_REGEX):
92517         * m4/safe-read.m4 (gl_SAFE_READ):
92518         * m4/safe-write.m4 (gl_SAFE_WRITE):
92519         * m4/same.m4 (gl_SAME):
92520         * m4/save-cwd.m4 (gl_SAVE_CWD):
92521         * m4/savedir.m4 (gl_SAVEDIR):
92522         * m4/settime.m4 (gl_SETTIME):
92523         * m4/sha1.m4 (gl_SHA1):
92524         * m4/sig2str.m4 (gl_FUNC_SIG2STR):
92525         * m4/stat-macros.m4 (gl_STAT_MACROS):
92526         * m4/stat-time.m4 (gl_STAT_TIME):
92527         * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
92528         * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
92529         * m4/strdup.m4 (gl_FUNC_STRDUP):
92530         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
92531         * m4/strndup.m4 (gl_FUNC_STRNDUP):
92532         * m4/strnlen.m4 (gl_FUNC_STRNLEN):
92533         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
92534         * m4/time_r.m4 (gl_TIME_R):
92535         * m4/timespec.m4 (gl_TIMESPEC):
92536         * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
92537         * m4/unlinkdir.m4 (gl_UNLINKDIR):
92538         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
92539         * m4/userspec.m4 (gl_USERSPEC):
92540         * m4/utimecmp.m4 (gl_UTIMECMP):
92541         * m4/utimens.m4 (gl_UTIMENS):
92542         * m4/xalloc.m4 (gl_XALLOC):
92543         * m4/xgetcwd.m4 (gl_XGETCWD):
92544         * m4/xnanosleep.m4 (gl_XNANOSLEEP):
92545         * m4/xreadlink.m4 (gl_XREADLINK):
92546         * m4/xstrtod.m4 (gl_XSTRTOD):
92547         * m4/yesno.m4 (gl_YESNO):
92548         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
92549         to get the necessary .h files and whatnot.
92551 2006-08-21  Mark D. Baushke  <mdb@gnu.org>
92552             Bruno Haible  <bruno@clisp.org>
92554         * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
92555         /bin/sh understanding of '!' conditional negation.
92557 2006-08-21  Jim Meyering  <jim@meyering.net>
92559         * modules/openat (Depends-on): Really alphabetize.
92561         * modules/acl (Depends-on): Add error and quote.
92563         * check-module (find_included_lib_files): Add at-func.c to the
92564         ok-to-include-more-than-once white list.
92566         * modules/openat (Depends-on): Add lstat.  Alphabetize.
92568 2006-08-21  Bruno Haible  <bruno@clisp.org>
92570         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
92571         Emit a pkgdata_DATA variable only if some snippets add contents to it.
92572         Reported by Martin Lambers <marlam@marlam.de>.
92574 2006-08-21  Bruno Haible  <bruno@clisp.org>
92576         * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
92577         specify an installation location, don't emit a noinst_LIBRARIES or
92578         noinst_LTLIBRARIES assignment.
92580 2006-08-21  Bruno Haible  <bruno@clisp.org>
92582         BeOS portability.
92583         * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
92584         BeOS has mbrtowc() but no <wctype.h>.
92586 2006-08-21  Bruno Haible  <bruno@clisp.org>
92588         BeOS portability.
92589         * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
92590         exist.
92592 2006-08-21  Bruno Haible  <bruno@clisp.org>
92594         BeOS portability.
92595         * lib/mbchar.h: Include <wctype.h> only if it exists.
92597 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
92599         Remove files that are no longer needed by their respective modules.
92600         * m4/obstack.m4: Remove.
92601         * m4/strerror_r.m4: Remove.
92602         * m4/uint32_t.m4: Remove.
92603         * m4/uintptr_t.m4: Remove.
92604         * m4/ullong_max.m4: Remove.
92605         * m4/xstrtoimax.m4: Remove.
92606         * m4/xstrtoumax.m4: Remove.
92608         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
92609         gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
92610         dependencies now capture this.
92612         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
92613         Do not use AC_LIBSOURCES, since gnulib modules now do this.
92614         * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
92615         * m4/human.m4 (gl_HUMAN): Likewise.
92616         * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
92617         * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
92619         * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
92621         * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
92622         gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
92623         stdint.
92624         * m4/human.m4 (gl_HUMAN): Likewise.
92625         * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
92626         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
92627         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
92628         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
92629         * m4/xstrtol (gl_XSTRTOL): Likewise.
92631         * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
92632         AC_TYPE_LONG_LONG_INT.
92633         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
92634         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
92635         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
92636         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
92638         * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
92639         on stdbool.
92641         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
92642         (gl_PREREQ_XSTRTOUL): Remove.
92644         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
92646         * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
92647         mode.
92649 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
92651         Add and change modules to make it easier for coreutils to use
92652         gnulib-tool.
92653         * modules/backupfile (Files): Remove m4/d-ino.m4.
92654         (Depends-on): Add d-ino.
92655         * modules/cycle-check (Depends-on): Add stdint.
92656         (lib_SOURCES): Add cycle-check.h.
92657         * modules/d-ino: New module.
92658         * modules/d-type: New module.
92659         * modules/error (Files): Remove m4/strerror_r.m4.
92660         * modules/filemode (Files): Add m4/st_dm_mode.m4.
92661         * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
92662         m4/inttypes_h.m4, m4/uintmax_t.m4.
92663         (Depends-on): Add stdint.
92664         (lib_SOURCES): Add fsusage.h.
92665         * modules/getcwd (Files): Remove d-ino.m4.
92666         (Depends-on): Add d-ino.
92667         * modules/getndelim2 (Depends-on): Add stdint.
92668         * modules/glob (Files): Remove m4/d-type.m4.
92669         (Depends-on): Add d-type.
92670         * modules/host-os: New module.
92671         * modules/human (Files):  Remove m4/ulonglong.m4, m4/stdint_h.m4,
92672         m4/inttypes_h.m4, m4/uintmax_t.m4.
92673         * Depends-on: Add stdint.
92674         (lib_SOURCES): Add human.h.
92675         * modules/inttostr (Files): Remove m4/intmax_t.m4,
92676         m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
92677         m4/uintmax_t.m4, m4/ulonglong.m4.
92678         (Depends-on): Add stdint.
92679         (EXTRA_DIST): Add inttostr.h.
92680         * modules/lchmod: New module.
92681         * modules/link-follow: New module.
92682         * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
92683         (Depends-on): Add lchmod.
92684         * modules/mkstemp (Files): Remove m4/ulonglong.m4,
92685         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
92686         (Depends-on): Add stdint.
92687         * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
92688         m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
92689         (Depends-on): Add stdint.
92690         (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
92691         * modules/perl: New module.
92692         * modules/regex (Depends-on): Add stdint.
92693         * modules/rmdir-errno: New module.
92694         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
92695         m4/intmax_t.m4.
92696         (Depends-on): Add stdint.
92697         * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
92698         m4/uintmax_t.m4.
92699         (Depends-on): Add stdint.
92700         * modules/unlink-busy: New module.
92701         * modules/utimecmp (Depends-on): Add stdint.
92702         * modules/uptime: New module.
92703         * modules/winsz-ioctl: New module.
92704         * modules/winsz-termios: New module.
92705         * modules/xnanosleep (Depends-on): Add nanosleep.
92706         * modules/ullong_max: Remove.
92707         * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
92708         (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
92709         * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
92710         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
92711         (Depends-on): Add inttypes.
92712         (lib_SOURCES): Add xstrtol.h.
92713         * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
92714         (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
92715         * MODULES.html.sh: Move 'assert' into the assert section.
92716         Move 'dummy' into the linking section.
92717         Remove ullong_max.
92718         Add section for compatibility checks for POSIX:2001 functions,
92719         and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
92720         winsz-ioctl, and winsz-termios into it.
92721         Add lchmod.
92722         Add top-level Misc section and put host-os, perl, and uptime
92723         into it.
92725 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
92727         * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
92728         now assume the stdint module.  Do not include inttypes.h.
92729         * lib/fsusage.h: Likewise.
92730         * lib/getndelim2.c: Likewise.
92731         * lib/human.h: Likewise.
92732         * lib/inttostr.h: Likewise.
92733         * lib/obstack.c: Likewise.
92734         * lib/regex_internal.h: Likewise.
92735         * lib/tempname.c: Likewise.
92736         * lib/utimecmp.c: Likewise.
92737         * lib/xstrtol.h: Likewise.
92739         * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
92741         * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
92742         e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
92743         * lib/xtime.h: Likewise.
92745 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
92747         * modules/openat (Files): Add lib/fchmodat.c.
92748         Fixes problem reported by Jay Youngman.
92750 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
92752         * lib/fchmodat.c: New file, from coreutils.  This was inadvertently
92753         omitted in the 2006-08-17 update.  Problem reported by Jay Youngman.
92755 2006-08-18  Paul Eggert  <eggert@cs.ucla.edu>
92756             Bruno Haible  <bruno@clisp.org>
92758         * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
92759         and is a script that invokes bison. Tighten the code. Add comments.
92761 2006-08-18  Jim Meyering  <jim@meyering.net>
92763         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
92764         CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
92765         gettime.c.  Gabor Z. Papp reported that gethrxtime-using programs
92766         failed to link due to unresolved clock_gettime on a linux-2.4.x system.
92768 2006-08-18  Bruno Haible  <bruno@clisp.org>
92770         * modules/bison-i18n: New file.
92771         * MODULES.html.sh (Internationalization functions): Add it.
92773 2006-08-18  Bruno Haible  <bruno@clisp.org>
92775         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
92776         sys/statvfs.h. When getmntinfo was found, check its declaration and
92777         set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
92779 2006-08-18  Bruno Haible  <bruno@clisp.org>
92781         * m4/bison-i18n.m4: New file, from bison.
92783 2006-08-18  Bruno Haible  <bruno@clisp.org>
92785         * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
92786         (ME_DUMMY): Treat "kernfs" as a dummy.
92787         (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
92789 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
92791         Update from coreutils.
92793         2006-08-15  Jim Meyering  <jim@meyering.net>
92795         * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
92797         2006-01-17  Jim Meyering  <jim@meyering.net>
92799         * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
92801         2006-01-11  Jim Meyering  <jim@meyering.net>
92803         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
92804         Check for the lchmod function.
92806 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
92808         Update from coreutils.
92810         * lib/__fpending.h: Add copyright notice.
92811         * lib/fprintftime.h: Likewise.
92812         * lib/savedir.c: Use (C) in copyright notice.
92813         * lib/savedir.h: Likewise.
92815         2006-08-15  Jim Meyering  <jim@meyering.net>
92817         * lib/at-func.c: New file, with the logic of all emulated at-functions.
92818         * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
92819         in support of the EXPECTED_ERRNO macro.
92820         * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
92821         definitions.  Instead, define the appropriate symbols and include
92822         "at-func.c".
92823         * lib/mkdirat.c (mkdirat): Likewise.
92824         * lib/fchmodat.c (fchmodat): Likewise.
92825         (ENOSYS): Remove definition.
92826         * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
92827         it.  Don't include "unistd--.h" -- it wasn't ever used.
92829         2006-01-17  Jim Meyering  <jim@meyering.net>
92831         Rewrite fts.c not to change the current working directory,
92832         by using openat, fstatat, fdopendir, etc..
92834         * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
92835         (HAVE_OPENAT_SUPPORT): Define.
92836         [_LIBC] (fchdir): Don't undef or define; no longer used.
92837         (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
92838         Now, this `function' always succeeds, and consumes its file descriptor
92839         parameter -- so callers must not close such FDs.  Update callers.
92840         (diropen_fd, opendirat, cwd_advance_fd): New functions.
92841         (diropen): Add parameter, SP.  Adjust all callers.
92842         Implement using diropen_fd, rather than open.
92843         (fts_open): Initialize new member, fts_cwd_fd.
92844         Remove fts_rft-setting code.
92845         (fts_close): Close fts_cwd_fd, if necessary.
92846         (__opendir2): Define in terms of opendir or opendirat,
92847         depending on whether the FST_NOCHDIR flag is set.
92848         (fts_build): Since fts_safe_changedir consumes its FD, and since
92849         this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
92850         and close the dup'd file descriptor upon failure.
92851         (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
92852         (fts_safe_changedir): Tweak semantics to reflect that this function
92853         now calls cwd_advance_fd and hence consumes its FD argument.
92854         * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
92855         [struct FTS] (fts_rft): Remove now-unused member.
92856         [struct FTS] (fts_cycle.state): Improve comment.
92858         * lib/openat.c (openat_needs_fchdir): New function.
92859         * lib/openat.h (openat_needs_fchdir): Declare it.
92861 2006-08-16  Paul Eggert  <eggert@cs.ucla.edu>
92863         * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
92864         Problem and fix reported by Pádraig Brady in
92865         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00099.html>.
92867 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
92869         * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
92871 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
92873         * lib/memcoll.c (memcoll): Optimize for the common case where the
92874         arguments are bytewise equal.
92876 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
92878         * doc/regexprops-generic.texi: Add a copyright notice.
92880 2006-08-15  Bruno Haible  <bruno@clisp.org>
92882         * modules/tmpdir (License): Change to LGPL.
92884 2006-08-15  Bruno Haible  <bruno@clisp.org>
92886         * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
92887         module.
92889 2006-08-14  Simon Josefsson  <jas@extundo.com>
92891         * config/srclist.txt: Add gnupload.
92893 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
92895         Change copyright notice from LGPL 2 to GPL 2, since that's the
92896         standard form used in the gnulib repository.
92897         * tests/test-lock.c: Likewise.
92898         * tests/test-stdint.c: Likewise.
92899         * tests/test-tls.c: Likewise.
92901         * users.txt: Add bison, diffutils, libprelude, prelude-lml,
92902         prelude-manager.  User shorter URLs for GNU projects, without '?'.
92903         Add copyright notice.
92905         * check-module: Add copyright notice.  Output a copyright
92906         notice if "--version" is specified.
92907         * modules/COPYING: New file.
92908         * tests/test-getaddrinfo.c: Add copyright notice.
92909         * tests/test-verify.c: Likewise.
92911 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
92913         Change copyright notice from LGPL 2 to GPL 2, since that's the
92914         standard form used in the gnulib repository.
92915         * lib/lock.c: LGPL -> GPL.
92916         * lib/lock.h: Likewise.
92917         * lib/strnlen1.c: Likewise.
92918         * lib/strnlen1.h: Likewise.
92919         * lib/tls.c: Likewise.
92920         * lib/tls.h: Likewise.
92921         * lib/tmpdir.c: Likewise.
92923         * lib/TODO: Remove; this belongs only in coreutils.
92925 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
92927         Add copyright notices to long-enough files that lack them, since
92928         otherwise the files aren't clearly free.  Use the same notice that
92929         getdate.texi already uses.
92930         * doc/alloca-opt.texi: Add copyright notice.
92931         * doc/alloca.texi: Likewise.
92932         * doc/ctime.texi: Likewise.
92933         * doc/functions.texi: Likewise.
92934         * doc/gcd.texi: Likewise.
92935         * doc/gnulib-tool.texi: Likewise.
92936         * doc/inet_ntoa.texi: Likewise.
92937         * doc/visibility.texi: Likewise.
92939         * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
92940         * doc/quote.texi: Add copyright notice.
92942         * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
92943         4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B.  SunOS 4.1.3
92944         was Solaris 1.1A.  Remove space before B in Solaris 1.1.1B.
92945         Mention SunOS 5.11.  Mention that everything before SunOS 5.7
92946         is now obsolete, and give a pointer to the Sun list.
92947         Add copyright notice.
92949 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
92951         * config/srclistvars.sh: Add copyright notice.
92953 2006-08-14  Eric Blake  <ebb9@byu.net>
92955         Import the following change from libc:
92957         2006-08-12  Ulrich Drepper  <drepper@redhat.com>
92959         Upstream bug 2997.
92960         * lib/misc/error.c: Add space between program name and message if file
92961         name is missing.
92963 2006-08-12  Karl Berry  <karl@gnu.org>
92965         * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
92966         remove, these originate in gnulib now.
92968 2006-08-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
92970         * doc/Makefile (standards.info standards.html standards.dvi):
92971         Also depend on make-stds.texi.
92973 2006-08-11  Paul Eggert  <eggert@cs.ucla.edu>
92975         * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
92976         HAVE_PIPE.  Fix a file descriptor leak when fd_safer fails.
92978         * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
92979         in wchar_t.  Problem reported by Eric Blake.
92981         * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
92982         LEN is smaller than SIZE.  Suggested by Bruno Haible.
92983         Also, help the compiler to keep LEN in a register.
92985 2006-08-11  Eric Blake  <ebb9@byu.net>
92987         * users.txt: Sort.  Add tar.
92989 2006-08-11  Bruno Haible  <bruno@clisp.org>
92991         * users.txt: New file.
92993 2006-08-11  Bruno Haible  <bruno@clisp.org>
92995         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
92996         before <wchar.h>. Needed for OSF/1 and BSD/OS.
92998 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
93000         * modules/snprintf (Depends-on): Remove minmax.
93001         (Maintainer): Add self and Bruno.
93003 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
93005         * lib/.cppi-disable: Add snprintf.h, socket_.h.
93006         * lib/snprintf.c: Include <errno.h> and <limits.h>.
93007         (EOVERFLOW): Define if the system does not.
93008         Do not include "minmax.h"; it wasn't used.
93009         (snprintf): Don't assume size_t promotes to an unsigned type.
93010         Fix bug when generated string was too long for the buffer: the
93011         buffer's contents are supposed to be the initial prefix of the
93012         output.  Don't assume vasnprintf returns EOVERFLOW if the size
93013         exceeds INT_MAX; do the check ourselves.
93015         Import the following changes from libc:
93017         2006-06-02  Jakub Jelinek  <jakub@redhat.com>
93019         * lib/posix/regex_internal.c (re_string_skip_chars): If no character
93020         has been converted at all, set *last_wc to WEOF.  If mbrtowc failed,
93021         set wc to the byte which couldn't be converted.
93022         (re_string_reconstruct): Don't clear valid_raw_len before calling
93023         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
93024         tip_context using re_string_context_at.
93026         2006-05-02  Ulrich Drepper  <drepper@redhat.com>
93028         * lib/posix/regex.h: g++ still cannot handled [restrict].
93030         2006-04-21  Ulrich Drepper  <drepper@redhat.com>
93032         * lib/posix/regex.h: Remove special handling for VMS.
93034 2006-08-10  Jim Meyering  <jim@meyering.net>
93036         * modules/same-inode: New module.
93037         * modules/dev-ino: New module.
93038         * modules/cycle-check: Depend on these modules, rather than simply
93039         including their .h files.
93040         (Makefile.am): Don't list cycle-check.[ch] here, now that they're
93041         required via m4/cycle-check.m4.
93042         * modules/same: Depend on new same-inode module, rather than
93043         including same-inode.h.
93044         * modules/chdir-safer: New file.
93046         * modules/chown (Depends-on): Add stat-macros.
93048 2006-08-10  Jim Meyering  <jim@meyering.net>
93050         * m4/cycle-check.m4: New file.
93051         Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
93052         * m4/dev-ino.m4, m4/same-inode.m4: New files.
93054 2006-08-10  Eric Blake  <ebb9@byu.net>
93056         * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
93057         in from original proposal.
93059 2006-08-10  Eric Blake  <ebb9@byu.net>
93060         and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
93062         * gnulib-tool (func_import): Detect unexpanded macros in gnulib
93063         namespace.
93065 2006-08-10  Bruno Haible  <bruno@clisp.org>
93067         * gnulib-tool (func_create_testdir): Detect unexpanded macros here
93068         as well.
93070 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
93072         Sync from coreutils.
93074         2006-07-19  Mike Frysinger  <vapier@gentoo.org>
93076         * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
93077         Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
93079 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
93081         * modules/restrict: Remove; no longer needed now that we assume
93082         Autoconf 2.59 or later.
93083         * MODULES.html.sh: Remove 'restrict'.
93084         * modules/argp (Depends-on): Remove 'restrict'.
93085         * modules/base64 (Depends-on): Likewise.
93086         * modules/gc (Depends-on): Likewise.
93087         * modules/getaddrinfo (Depends-on): Likewise.
93088         * modules/glob (Depends-on): Likewise.
93089         * modules/inet_ntop (Depends-on): Likewise.
93090         * modules/inet_pton (Depends-on): Likewise.
93091         * modules/memxor (Depends-on): Likewise.
93092         * modules/regex (Depends-on): Likewise.
93093         * modules/strtok_r (Depends-on): Likewise.
93094         * modules/time_r (Depends-on): Likewise.
93096 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
93098         * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
93099         * m4/gc.m4 (gl_PREREQ_GC): Likewise.
93100         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
93101         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
93102         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
93103         * m4/memxor.m4 (gl_MEMXOR): Likewise.
93104         * m4/restrict.m4: Remove; no longer needed.  All remaining uses of
93105         gl_C_RESTRICT replaced by AC_C_RESTRICT.
93107         Merge from coreutils.
93108         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
93109         gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
93110         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
93111         * m4/time_r.m4 (gl_TIME_R): Likewise.
93113 2006-08-09  Karl Berry  <karl@gnu.org>
93115         * config/srclist.txt: no more gettext-tools, per Bruno.
93117 2006-08-08  Eric Blake  <ebb9@byu.net>
93119         * modules/verror: New module.
93120         * MODULES.html.sh: Document it.
93122 2006-08-08  Eric Blake  <ebb9@byu.net>
93124         * lib/verror.h, lib/verror.c: New files.
93126 2006-08-08  Eric Blake  <ebb9@byu.net>
93128         * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
93129         verror_at_line output complies with GNU Coding Standards even when
93130         file is NULL.
93132 2006-08-07  Bruno Haible  <bruno@clisp.org>
93134         * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
93135         versions of AIX.
93136         Reported by Ralf Wildenhues.
93138 2006-08-07  Bruno Haible  <bruno@clisp.org>
93140         * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
93141         in an AC_DEFUN. Needed so that the autoconf snippets can use
93142         AC_REQUIRE.
93144 2006-08-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
93146         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
93147         Initialize pkgdata_DATA.
93148         * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
93149         overriding it.
93151 2006-08-06  Eric Blake  <ebb9@byu.net>
93153         * lib/error.h: Fold in some upstream changes from glibc.
93154         * lib/error.c: Likewise.
93156 2006-08-04  Bruno Haible  <bruno@clisp.org>
93158         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
93159         Make the mostlyclean-local rule depend on mostlyclean-generic.
93160         Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
93162 2006-07-31  Bruno Haible  <bruno@clisp.org>
93164         * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
93165         <stdlib.h>, <string.h>.
93167 2006-07-30  Bruno Haible  <bruno@clisp.org>
93169         * modules/readlink (License): Change to LGPL.
93171 2006-07-30  Bruno Haible  <bruno@clisp.org>
93173         * modules/javaversion (Makefile.am): Distribute javaversion.java and
93174         javaversion.class. Also install javaversion.class in $(pkgdatadir) and
93175         set PKGDATADIR to point to it.
93177 2006-07-30  Bruno Haible  <bruno@clisp.org>
93179         * modules/csharpexec (configure.ac): Comment out macro invocation.
93180         * modules/javaexec (configure.ac): Likewise.
93181         * modules/javacomp-script (configure.ac): Likewise.
93183         * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
93185 2006-07-30  Bruno Haible  <bruno@clisp.org>
93187         * modules/clean-temp (Depends-on): Add linkedhash-list, remove
93188         linked-list.
93190 2006-07-30  Bruno Haible  <bruno@clisp.org>
93192         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
93194 2006-07-30  Bruno Haible  <bruno@clisp.org>
93196         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
93197         Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
93198         get removed.
93200 2006-07-29  Bruno Haible  <bruno@clisp.org>
93202         Make it possible for gnulib-tool to work with locally modified or
93203         augmented gnulib repositories.
93204         * gnulib-tool (func_usage): Document --local-dir option.
93205         (local_gnulib_dir): New variable.
93206         Handle --local-dir option.
93207         (func_lookup_file): New function.
93208         (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
93209         (func_get_description, func_get_filelist, func_get_description,
93210         func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
93211         func_get_automake_snippet, func_get_include_directive,
93212         func_get_license, func_get_maintainer): Use func_lookup_file.
93213         (func_import, func_create_testdir): Use func_lookup_file.
93215 2006-07-29  Bruno Haible  <bruno@clisp.org>
93217         * modules/setenv (Depends-on): Add unistd.
93219 2006-07-29  Bruno Haible  <bruno@clisp.org>
93221         * lib/setenv.c: Undo unintended modification done on 2006-02-27.
93223 2006-07-29  Bruno Haible  <bruno@clisp.org>
93225         * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
93227 2006-07-29  Bruno Haible  <bruno@clisp.org>
93229         * gnulib-tool (import, update): If there is no Makefile.am, look at
93230         aclocal.m4, instead of bailing out.
93232 2006-07-29  Bruno Haible  <bruno@clisp.org>
93234         * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
93235         Categorize the options by when they are useful.
93237 2006-07-29  Bruno Haible  <bruno@clisp.org>
93239         * gnulib-tool (func_usage): Document option --no-libtool.
93240         Handle option --no-libtool.
93241         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
93242         for changed semantics of $libtool variable.
93243         (func_import): Likewise. If libtool is not used, show this through
93244         an option --no-libtool.
93245         (func_create_testdir): Update.
93247 2006-07-29  Bruno Haible  <bruno@clisp.org>
93249         * gnulib-tool (func_import): Extend error message about missing
93250         --doc-base.
93252 2006-07-29  Bruno Haible  <bruno@clisp.org>
93254         * gnulib-tool (func_import): Don't create the $docbase directory if
93255         there is no file to store there.
93257 2006-07-29  Bruno Haible  <bruno@clisp.org>
93259         * gnulib-tool (autoconf_minversion): If a --dir option is given and
93260         relevant, look for configure.ac there, not in the current directory.
93261         Also use a simple search for AC_PREREQ, not "autoconf --trace".
93263 2006-07-29  Bruno Haible  <bruno@clisp.org>
93265         * gnulib-tool (SORT): New variable.
93266         (func_usage): Undocument --assume-autoconf option.
93267         Remove --assume-autoconf option handling.
93268         (autoconf_minversion): Determine from the contents of configure.ac.
93269         (func_import): Remove autoconf_minversion handling.
93270         Suggested by Eric Blake.
93272 2006-07-29  Bruno Haible  <bruno@clisp.org>
93274         * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
93276 2006-07-29  Bruno Haible  <bruno@clisp.org>
93278         * config/srclist.txt (*setenv.[ch]): Remove rules.
93280 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
93282         * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
93284 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
93286         * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
93287         arpa/inet.h.
93289 2006-07-28  Simon Josefsson  <jas@extundo.com>
93291         * modules/inet_ntop (Depends-on): Depend on arpa_inet.
93292         * modules/inet_pton (Depends-on): Likewise.
93294 2006-07-28  Simon Josefsson  <jas@extundo.com>
93296         * m4/netinet_in_h.m4: New file.
93298 2006-07-28  Simon Josefsson  <jas@extundo.com>
93300         * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
93301         #include's.
93303 2006-07-28  Simon Josefsson  <jas@extundo.com>
93305         * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
93306         #include's.
93308 2006-07-28  Paul Eggert  <eggert@cs.ucla.edu>
93310         * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
93311         setgid on directories only if they set these bits.
93312         * lib/modechange.h: Remove obsolete comment about masks.
93314 2006-07-28  Eric Blake  <ebb9@byu.net>
93316         * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
93317         macro expansion.
93319 2006-07-28  Bruno Haible  <bruno@clisp.org>
93321         * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
93323 2006-07-28  Bruno Haible  <bruno@clisp.org>
93325         * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
93327 2006-07-28  Bruno Haible  <bruno@clisp.org>
93329         * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
93330         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
93331         Define fallbacks.
93332         Avoids link error on FreeBSD 4.x.
93333         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
93335         * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
93336         encoding.
93337         * lib/mbswidth.c (iswcntrl): Likewise.
93339 2006-07-27  Bruno Haible  <bruno@clisp.org>
93341         * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
93342         test.
93344 2006-07-27  Bruno Haible  <bruno@clisp.org>
93346         * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
93347         __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
93348         defined.
93350 2006-07-26  Eric Blake  <ebb9@byu.net>
93352         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
93354 2006-07-26  Eric Blake  <ebb9@byu.net>
93356         * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
93357         like mingw that lack mkstemp.
93358         * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
93359         avoid compilation warning on mingw.
93361 2006-07-26  Bruno Haible  <bruno@clisp.org>
93363         * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
93364         INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
93365         INT_FAST*_MIN, INTPTR_MIN.
93367 2006-07-25  Bruno Haible  <bruno@clisp.org>
93369         * modules/version-etc (Depends-on): Add stdarg.
93371 2006-07-25  Bruno Haible  <bruno@clisp.org>
93373         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
93374         complex commands.
93376 2006-07-25  Bruno Haible  <bruno@clisp.org>
93378         * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
93379         defined in <stdarg.h> or config.h.
93381 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
93383         * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
93384         (gl_STDIO_SAFER): Remove.
93386 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
93388         * MODULES.html.sh (File stream based Input/Output):
93389         Add fopen-safer, tmpfile-safer; remove stdio-safer.
93390         * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
93391         * modules/fopen-safer, modules/tmpfile-safer: New files.
93392         * modules/stdio-safer: Remove.
93394 2006-07-24  Bruno Haible  <bruno@clisp.org>
93396         * modules/tmpdir: New file.
93397         * MODULES.html.sh (File system functions): Add it.
93399 2006-07-24  Bruno Haible  <bruno@clisp.org>
93401         * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
93402         getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
93404 2006-07-24  Bruno Haible  <bruno@clisp.org>
93406         * modules/clean-temp: New file.
93408 2006-07-24  Bruno Haible  <bruno@clisp.org>
93410         * m4/tmpdir.m4: New file, from GNU gettext.
93412 2006-07-24  Bruno Haible  <bruno@clisp.org>
93414         * lib/tmpdir.h: New file, from GNU gettext.
93415         * lib/tmpdir.c: New file, from GNU gettext.
93417 2006-07-24  Bruno Haible  <bruno@clisp.org>
93419         * lib/clean-temp.h: New file, from GNU gettext.
93420         * lib/clean-temp.c: New file, from GNU gettext.
93422 2006-07-23  Eric Blake  <ebb9@byu.net>
93424         * modules/stdio-safer (Files): Add tmpfile-safer.c.
93425         (Depends-on): Add binary-io.
93427 2006-07-23  Eric Blake  <ebb9@byu.net>
93429         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
93431 2006-07-23  Eric Blake  <ebb9@byu.net>
93433         * lib/tmpfile-safer.c: New file.
93434         * lib/stdio-safer.h (fopen_safer): Add prototype.
93435         * lib/stdio--.h (tmpfile): Make safer.
93437 2006-07-23  Bruno Haible  <bruno@clisp.org>
93439         * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
93440         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
93441         gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
93442         gl_linked_remove_at): Use it.
93444 2006-07-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
93445         and Simon Josefsson <jas@extundo.com>
93447         * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
93449         * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
93451 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
93453         * modules/close-stream: New file.
93454         * modules/closeout (Description): Make it clear that it exits
93455         with a diagnostic on error.
93456         (Depends-on): Add close-stream.  Remove fpending, stdbool.
93457         * MODULES.html.sh (File stream based Input/Output): Add close-stream.
93459 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
93461         * m4/close-stream.m4: New file.
93463 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
93465         * lib/close-stream.c, lib/close-stream.h: New files.
93467 2006-07-22  Bruno Haible  <bruno@clisp.org>
93469         Merge from GNU gettext 0.15.
93471         2006-05-01  Bruno Haible  <bruno@clisp.org>
93473                 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
93475         2006-07-22  Bruno Haible  <bruno@clisp.org>
93477                 * modules/javaversion: New file.
93478                 * MODULES.html.sh (Java): Add javaversion.
93480         2006-03-12  Bruno Haible  <bruno@clisp.org>
93482                 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
93484         2005-12-04  Bruno Haible  <bruno@clisp.org>
93486                 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
93487                 (untested).
93489         2006-06-21  Bruno Haible  <bruno@clisp.org>
93491                 Avoid warnings from recent versions of mcs.
93492                 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
93493                 -o, -L, -r any more. Use options documented since mcs-1.0
93494                 instead. Similarly for -g.
93496         2005-12-04  Bruno Haible  <bruno@clisp.org>
93498                 * build-aux/csharpcomp.sh.in: Suffix for resources is
93499                 .resources, not .resource.
93501         2005-07-09  Bruno Haible  <bruno@clisp.org>
93503                 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
93504                 add a .dll suffix.
93505                 Reported by Mark Junker <mjscod@gmx.de>.
93507         2006-07-22  Bruno Haible  <bruno@clisp.org>
93509                 * modules/gettext: Upgrade to gettext-0.15.
93510                 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
93511                 m4/visibility.m4.
93512                 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
93514 2006-07-22  Bruno Haible  <bruno@clisp.org>
93516         Merge from GNU gettext 0.15.
93518         2006-03-25  Bruno Haible  <bruno@clisp.org>
93520                 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
93522         2006-07-21  Bruno Haible  <bruno@clisp.org>
93524                 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
93525                 "1.1".
93527         2006-05-09  Bruno Haible  <bruno@clisp.org>
93529                 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
93530                 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
93531                 for the conftestver execution.
93533         2006-05-01  Bruno Haible  <bruno@clisp.org>
93535                 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
93536                 optional target-version argument. Verify that the compiler
93537                 groks source of the specified source-version, or add -source
93538                 option as necessary. Verify that the compiler produces
93539                 bytecode in the specified target-version, or add -target and
93540                 -source options as necessary. Make the result of the test
93541                 available as variable CONF_JAVAC. Also log error output in
93542                 config.log.
93544         2006-03-11  Bruno Haible  <bruno@clisp.org>
93546                 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
93548         2006-05-09  Bruno Haible  <bruno@clisp.org>
93550                 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
93551                 CLASSPATH_SEPARATOR to a semicolon.
93553         2006-03-12  Bruno Haible  <bruno@clisp.org>
93555                 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
93556                 available as variable CONF_JAVA, for subsequent autoconf
93557                 tests. Also log error output in config.log.
93559         2006-07-19  Bruno Haible  <bruno@clisp.org>
93561                 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
93562                 that getline works on glibc2 systems. Needed to avoid trouble
93563                 in relocatable.c.
93564                 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
93566         2005-12-04  Bruno Haible  <bruno@clisp.org>
93568                 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
93569                 launcher (untested).
93571         2005-12-04  Bruno Haible  <bruno@clisp.org>
93573                 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
93575         2006-07-22  Bruno Haible  <bruno@clisp.org>
93577                 * gettext.m4: Update from GNU gettext-0.15.
93578                 * nls.m4: Likewise.
93579                 * po.m4: Likewise.
93580                 * inttypes-pri.m4: Likewise.
93581                 * inttypes-h.m4: Renamed from inttypes.m4.
93582                 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
93584 2006-07-22  Bruno Haible  <bruno@clisp.org>
93586         Merge from GNU gettext 0.15.
93588         2005-07-05  Bruno Haible  <bruno@clisp.org>
93590                 * printf-args.c (printf_fetchargs): Work around broken
93591                 definition of wint_t on mingw.
93593         2005-02-12  Bruno Haible  <bruno@clisp.org>
93595                 * xallocsa.h: Add extern "C" for C++.
93597         2006-05-17  Bruno Haible  <bruno@clisp.org>
93599                 Cygwin portability.
93600                 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
93602         2006-04-30  Bruno Haible  <bruno@clisp.org>
93604                 * progreloc.c: Include <mach-o/dyld.h> if available.
93605                 (find_executable): Use _NSGetExecutablePath when possible.
93607         2006-05-06  Charles Wilson  <cygwin@cwilson.fastmail.fm>
93609                 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
93610                 function.
93612         2005-12-29  Bruno Haible  <bruno@clisp.org>
93614                 * progreloc.c (set_program_name_and_installdir): Fix
93615                 compilation error.
93617         2005-12-04  Bruno Haible  <bruno@clisp.org>
93619                 Cygwin portability.
93620                 * progreloc.c: Include <windows.h> also on Cygwin.
93621                 (find_executable): Add support for Cygwin.
93622                 (set_program_name_and_installdir): Handle also platforms with
93623                 nonempty EXEEXT.
93625         2006-07-11  Bruno Haible  <bruno@clisp.org>
93627                 * javacomp.c: Fix a comment.
93628                 Reported by Jim Meyering.
93630         2006-04-30  Bruno Haible  <bruno@clisp.org>
93632                 * javacomp.h (compile_java_class): Add source_version,
93633                 target_version arguments.
93634                 * javacomp.c: Rewritten to choose only a compiler that
93635                 respects the specified source_version and target_version.
93637         2006-06-27  Bruno Haible  <bruno@clisp.org>
93639                 Assume correct S_ISDIR macro.
93640                 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
93642         2006-07-22  Bruno Haible  <bruno@clisp.org>
93644                 * javaversion.h: New file, from GNU gettext.
93645                 * javaversion.c: New file, from GNU gettext.
93646                 * javaversion.java: New file, from GNU gettext.
93647                 * javaversion.class: New file, from GNU gettext.
93649         2006-05-17  Bruno Haible  <bruno@clisp.org>
93651                 Cygwin portability.
93652                 * javaexec.c (execute_java_class): Test for jview program
93653                 also on Cygwin.
93655         2006-04-09  Bruno Haible  <bruno@clisp.org>
93657                 * fatal-signal.c: Don't include string.h.
93658                 (at_fatal_signal): Use a copying loop instead of memcpy.
93660         2005-12-04  Bruno Haible  <bruno@clisp.org>
93662                 * csharpexec.c: Add support for 'clix' launcher (untested).
93663                 (execute_csharp_using_sscli): New function.
93664                 (execute_csharp_program): Call it.
93666         2006-06-21  Bruno Haible  <bruno@clisp.org>
93668                 Avoid warnings from recent versions of mcs.
93669                 * csharpcomp.c (compile_csharp_using_mono): Don't use options
93670                 -o, -L, -r any more. Use options documented since mcs-1.0
93671                 instead. Similarly for -g.
93673         2005-07-09  Bruno Haible  <bruno@clisp.org>
93675                 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
93676                 add a .dll suffix.
93677                 Reported by Mark Junker <mjscod@gmx.de>.
93679         2006-06-17  Bruno Haible  <bruno@clisp.org>
93681                 * config.charset: Update for NetBSD 3.0.
93683         2006-05-17  Bruno Haible  <bruno@clisp.org>
93685                 Cygwin portability.
93686                 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
93688         2006-05-16  Bruno Haible  <bruno@clisp.org>
93690                 * localcharset.c [CYGWIN]: Include <windows.h>.
93691                 (get_charset_aliases): For Cygwin, return the same CPxxx
93692                 aliases list as under WIN32.
93693                 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
93694                 the environment variables. Fall back to GetACP().
93696         2006-04-05  Bruno Haible  <bruno@clisp.org>
93698                 * config.charset: Update Juan Manuel Guerrero's address.
93700         2005-02-12  Bruno Haible  <bruno@clisp.org>
93702                 * allocsa.h: Add extern "C" for C++.
93704         2005-02-10  Bruno Haible  <bruno@clisp.org>
93706                 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
93707                 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
93709         2006-07-22  Bruno Haible  <bruno@clisp.org>
93711                 * gettext.h: Update to GNU gettext-0.15.
93713 2006-07-22  Bruno Haible  <bruno@clisp.org>
93715         * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
93716         localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
93717         lib-prefix.m4, longdouble.m4, ssize_t.m4.
93719 2006-07-21  Eric Blake  <ebb9@byu.net>
93721         * modules/stdlib-safer: New file.
93722         * MODULES.html.sh (File stream based Input/Output): Add
93723         stdlib-safer.
93725 2006-07-21  Eric Blake  <ebb9@byu.net>
93727         * lib/stdlib-safer.h: New file from coreutils, required by
93728         stdlib--.h.
93730 2006-07-20  Paul Eggert  <eggert@cs.ucla.edu>
93732         * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
93734 2006-07-20  Bruno Haible  <bruno@clisp.org>
93736         * gnulib-tool: Recognize new option --assume-autoconf.
93737         (autoconf_minversion): New variable.
93738         (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
93740 2006-07-20  Bruno Haible  <bruno@clisp.org>
93742         * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
93744 2006-07-19  Derek R. Price  <derek@ximbiot.com>
93746         * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
93747         Reindent and repaginate.
93749 2006-07-19  Derek Price  <derek@ximbiot.com>
93751         * doc/gnulib.texi (Libtool and Windows):  Eliminate passive voice.
93752         Correct grammar.
93754 2006-07-17  Bruno Haible  <bruno@clisp.org>
93756         * modules/list: New file.
93757         * modules/array-list: New file.
93758         * modules/carray-list, modules/carray-list-tests: New files.
93759         * modules/linked-list, modules/linked-list-tests: New files.
93760         * modules/avltree-list, modules/avltree-list-tests: New files.
93761         * modules/rbtree-list, modules/rbtree-list-tests: New files.
93762         * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
93763         * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
93764         * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
93765         * modules/oset: New file.
93766         * modules/array-oset: New file.
93767         * modules/avltree-oset, modules/avltree-oset-tests: New files.
93768         * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
93769         * tests/test-carray_list.c: New file.
93770         * tests/test-linked_list.c: New file.
93771         * tests/test-avltree_list.c: New file.
93772         * tests/test-rbtree_list.c: New file.
93773         * tests/test-linkedhash_list.c: New file.
93774         * tests/test-avltreehash_list.c: New file.
93775         * tests/test-rbtreehash_list.c: New file.
93776         * tests/test-avltree_oset.c: New file.
93777         * tests/test-rbtree_oset.c: New file.
93778         * MODULES.html.sh (Container data structures): New section.
93780 2006-07-17  Bruno Haible  <bruno@clisp.org>
93782         * m4/gl_list.m4: New file.
93784 2006-07-17  Bruno Haible  <bruno@clisp.org>
93786         * lib/gl_list.h: New file.
93787         * lib/gl_list.c: New file.
93788         * lib/gl_array_list.h: New file.
93789         * lib/gl_array_list.c: New file.
93790         * lib/gl_carray_list.h: New file.
93791         * lib/gl_carray_list.c: New file.
93792         * lib/gl_linked_list.h: New file.
93793         * lib/gl_linked_list.c: New file.
93794         * lib/gl_anylinked_list1.h: New file.
93795         * lib/gl_anylinked_list2.h: New file.
93796         * lib/gl_avltree_list.h: New file.
93797         * lib/gl_avltree_list.c: New file.
93798         * lib/gl_anyavltree_list1.h: New file.
93799         * lib/gl_anyavltree_list2.h: New file.
93800         * lib/gl_rbtree_list.h: New file.
93801         * lib/gl_rbtree_list.c: New file.
93802         * lib/gl_anyrbtree_list1.h: New file.
93803         * lib/gl_anyrbtree_list2.h: New file.
93804         * lib/gl_anytree_list1.h: New file.
93805         * lib/gl_anytree_list2.h: New file.
93806         * lib/gl_linkedhash_list.h: New file.
93807         * lib/gl_linkedhash_list.c: New file.
93808         * lib/gl_anyhash_list1.h: New file.
93809         * lib/gl_anyhash_list2.h: New file.
93810         * lib/gl_avltreehash_list.h: New file.
93811         * lib/gl_avltreehash_list.c: New file.
93812         * lib/gl_rbtreehash_list.h: New file.
93813         * lib/gl_rbtreehash_list.c: New file.
93814         * lib/gl_anytreehash_list1.h: New file.
93815         * lib/gl_anytreehash_list2.h: New file.
93817         * lib/gl_oset.h: New file.
93818         * lib/gl_oset.c: New file.
93819         * lib/gl_array_oset.h: New file.
93820         * lib/gl_array_oset.c: New file.
93821         * lib/gl_avltree_oset.h: New file.
93822         * lib/gl_avltree_oset.c: New file.
93823         * lib/gl_rbtree_oset.h: New file.
93824         * lib/gl_rbtree_oset.c: New file.
93825         * lib/gl_anytree_oset.h: New file.
93827 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
93829         * m4/mkancesdirs.m4: New file.
93830         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
93831         dirchownmod.h.  Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
93832         no longer needed.  Require gl_FUNC_LCHOWN, since dirchownmod.c needs
93833         it.
93835 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
93837         * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
93838         * lib/mkancesdirs.h: New files.
93839         * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
93840         unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
93841         save-cwd.h.  Instead, include dirchownmod.h and mkancesdirs.h.
93842         (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
93843         MODE_BITS.  Remove options VERBOSE_FMT_STRING, CWD_ERRNO.  All
93844         callers changed.  Revamp internals significantly, by not
93845         attempting to create directories that are temporarily more
93846         permissive than the final results.  Do not attempt to use
93847         save_cwd/restore_cwd; it isn't worth it for mkdir and install.
93848         This removes some race conditions, fixes some bugs, and simplifies
93849         things.  Use new dirchownmod function to do owner and mode changes.
93850         * lib/mkdir-p.h: Likewise.
93851         * lib/modechange.c (octal_to_mode): New function.
93852         (struct mode_change): New member mentioned.
93853         (make_node_op_equals): New arg mentioned.  All callers changed.
93854         (mode_compile): Keep track of which mode bits the user has explicitly
93855         mentioned.
93856         (mode_adjust): New arg DIR, so that we implement the X op correctly.
93857         New arg PMODE_BITS, to keep track of which mode bits the user
93858         mentioned; it treats S_ISUID and S_ISGID speciall.
93859         All callers changed.
93860         * lib/modechange.h: Likewise.
93862 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
93864         * MODULES.html.sh: Add mkancestors.
93865         * modules/mkancesdirs: New module.
93866         * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
93867         lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
93868         The chdir-safer and afs files are now orphans; I'll remove them
93869         unless someone speaks up.
93870         Add lib/dirchownmod.c, lib/dirchownmod.h.
93871         (Depends-on): Remove alloca, chown, save-cwd, dirname.
93872         Add lchown, mkancesdirs.
93873         (Maintainer): Add self.
93875 2006-07-15  Karl Berry  <karl@gnu.org>
93877         * gnulib-tool: help message wording/arrangement.
93879 2006-07-14  Simon Josefsson  <jas@extundo.com>
93881         * doc/gnulib.texi (Libtool and Windows): New section.
93883 2006-07-12  Simon Josefsson  <jas@extundo.com>
93885         * modules/gendocs (License): Fix license, approved by Karl.
93887 2006-07-12  Eric Blake  <ebb9@byu.net>
93889         * MODULES.html.sh: Add gendocs.
93891 2006-07-11  Eric Blake  <ebb9@byu.net>
93893         * modules/fdl: New module, to install doc/fdl.texi.
93894         * MODULES.html.sh: Add new section for documentation modules.
93895         * gnulib-tool: Avoid space-tab.
93896         (--doc-base): New option, to manage files from doc.
93898 2006-07-11  Eric Blake  <ebb9@byu.net>
93900         * m4/absolute-header.m4: Fix comments to match recent change.
93902 2006-07-11  Eric Blake  <ebb9@byu.net>
93904         * gnulib-tool: List --doc-base before --tests-base.
93906 2006-07-11  Derek R. Price  <derek@ximbiot.com>
93908         * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
93910 2006-07-11  Bruno Haible  <bruno@clisp.org>
93912         * README: Mention where to put documentation.
93914 2006-07-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
93916         * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
93918 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
93920         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
93921         to stdint.m4.
93923 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
93925         * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
93926         absolute-header.m4.  Also, set ABSOLUTE_STDINT_H to a string
93927         "no/such/file/stdint.h" when there is no such file, so that
93928         the resulting C code can be parsed by dodgy compilers.
93929         Problems reported by Bob Proulx.
93931 2006-07-10  Derek R. Price  <derek@ximbiot.com>
93933         * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
93934         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
93935         macros into the GNU _D_EXACT_NAMLEN.
93936         * lib/savedir.c:  Likewise.
93937         (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
93939 2006-07-10  Derek R. Price  <derek@ximbiot.com>
93940         and Paul Eggert  <eggert@cs.ucla.edu>
93942         * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
93943         * m4/savedir.m4:
93944         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
93945         macros into the GNU _D_EXACT_NAMLEN.
93947 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
93949         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
93950         around the absolute name, to work around a problem with the HP-UX
93951         11.23 native C compiler, reported by Bob Proulx.
93953 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
93955         * doc/maintain.texi, make-stds.texi: Sync from
93956         <http://savannah.gnu.org/projects/gnustandards>.
93958 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
93960         * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
93962 2006-07-09  Jim Meyering  <jim@meyering.net>
93964         * m4/glob.m4: Remove a doubled word in a comment.
93966 2006-07-09  Jim Meyering  <jim@meyering.net>
93968         * lib/argp-pv.c: Remove a doubled word in a comment.
93969         * lib/check-version.c (check_version): Likewise.
93970         * lib/javacomp.c (compile_java_class): Likewise.
93972 2006-07-08  Paul Eggert  <eggert@cs.ucla.edu>
93974         * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
93975         for the benefit of people using Autoconf 2.60.  If you want to
93976         support older Autoconf versions you can copy m4/onceonly_2_57.m4
93977         (or m4/onceonly.m4, if pre-2.57) manually.
93979 2006-07-08  Jim Meyering  <jim@meyering.net>
93981         * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
93982         comment.
93983         * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
93984         * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
93985         comment.
93987 2006-07-08  Jim Meyering  <jim@meyering.net>
93989         * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
93991 2006-07-07  Simon Josefsson  <jas@extundo.com>
93993         * tests/test-crc.c: Change expected crc value, the test vector
93994         were probably computed using the old broken crc.c?
93996 2006-07-06  Simon Josefsson  <jas@extundo.com>
93998         * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
93999         now the canonical place for the M4 file).
94001         * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
94002         from the sys_socket dependency now.
94004         * modules/inet_pton (Files): Ditto.
94006         * modules/inet_ntop (Files): Ditto.
94008 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
94010         * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
94011         not gl_PREREQ_GETUSERSHELL.
94013 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
94015         * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
94016         with only one argument, for Autoconf 2.60.
94017         * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
94018         expand to nothing, so add a shell command to avoid syntax error.
94019         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
94021 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
94023         * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
94025 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
94027         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
94028         no longer needed.  Check for isblank decl.
94029         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
94030         * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
94031         of existence.
94033 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
94035         * lib/getloadavg.c: Use __VMS, not VMS.
94036         * lib/getopt.c: Likewise.
94037         * lib/getpagesize.h: Likewise.
94038         * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
94039         and probably does not work.
94041 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
94043         * lib/.cppi-disable: Add wcwidth.
94044         * lib/fnmatch.c (ISBLANK): Remove.  All uses changed to isblank.
94045         (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
94046         (ISGRAPH): Remove.  All uses changed to isgraph.
94047         (FOLD) [!defined _LIBC]: Remove special case.
94048         * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
94049         * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
94050         HAVE_ISBLANK.
94051         * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
94052         case.
94054 2006-07-06  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
94056         * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
94057         '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
94058         brackets.  Other minor changes to suppress some compiler
94059         warnings.
94061 2006-07-06  Derek R. Price  <derek@ximbiot.com>
94062         and Paul Eggert  <eggert@cs.ucla.edu>
94064         * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
94065         of invoking obsolescent AC_HEADER_DIRENT macro.
94066         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
94067         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
94068         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
94069         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
94070         * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
94071         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
94072         * m4/savedir.m4 (gl_SAVEDIR): Likewise.
94073         * m4/readdir.m4: Remove; no longer needed.
94075 2006-07-06  Derek R. Price  <derek@ximbiot.com>
94076         and Paul Eggert  <eggert@cs.ucla.edu>
94078         * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
94079         Don't worry about this obsolete case any more.
94080         (HAVE_DIR): Remove.  All uses removed; we now assume you can read
94081         directories.
94082         * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
94083         worry about this obsolete case any more.
94084         * lib/fts.c: Likewise.
94085         * lib/getcwd.c: Likewise.
94086         * lib/glob.h: Likewise.
94087         * lib/savedir.c: Likewise.
94089 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
94091         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
94092         rather than AC_CHECK_DECLS for strtoimax and strtoumax.
94093         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
94094         needed.
94095         All uses removed.
94096         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
94097         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
94098         * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
94099         needed.
94100         * m4/getdate.m4 (gl_GETDATE): Likewise.
94101         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
94102         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
94103         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
94104         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
94105         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
94106         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
94107         * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
94108         needed.
94110 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
94112         * lib/memcasecmp.c: Include <limits.h>.
94113         (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
94114         * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
94115         Don't assume isdigit succeeds only on '0' through '9'.
94117 2006-07-05  Eric Blake  <ebb9@byu.net>
94119         * modules/getaddrinfo (Depends-on): Add snprintf.
94121 2006-07-05  Eric Blake  <ebb9@byu.net>
94123         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
94124         to avoid 'header present but could not be compiled' on cygwin.
94126 2006-07-05  Eric Blake  <ebb9@byu.net>
94128         * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
94129         missing from netdb.h.
94130         * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
94132 2006-07-05  Derek R. Price  <derek@ximbiot.com>
94134         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
94135         no longer needed.
94136         * m4/exclude.m4 (gl_EXCLUDE): Likewise.
94137         * m4/getdate.m4 (gl_GETDATE): Likewise.
94138         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
94139         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
94140         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
94141         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
94142         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
94144 2006-07-05  Derek R. Price  <derek@ximbiot.com>
94146         * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
94147         All uses of is_space replaced by isspace.
94148         * lib/exit.h: Don't talk about STDC_HEADERS.
94149         * lib/fnmatch.c (ISASCII): Remove; no longer needed.  All uses removed.
94150         (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
94151         (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed.  All uses
94152         replaced by isprint etc.
94153         * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
94154         * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
94155         * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
94156         * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
94157         * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
94158         * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
94160 2006-07-05  Bruno Haible  <bruno@clisp.org>
94162         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
94163         the function exists, before testing against AIX.
94164         Reported by Martin Lambers <marlam@marlam.de>.
94166 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
94168         * modules/cycle-check (lib_SOURCES): Add same-inode.h.
94169         From Mark D. Baushke.
94171 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
94173         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
94174         to the absolute name, not just one, to bypass Sun C 5.8's
94175         "warning: #include of /usr/include/... may be non-portable".
94177 2006-07-04  Eric Blake  <ebb9@byu.net>
94179         * modules/dirname-tests: New test module.
94180         * tests/test-dirname.c: New file, replacing dirname.c
94181         TEST_DIRNAME section that was recently deleted.
94183 2006-07-04  Bruno Haible  <bruno@clisp.org>
94185         Assume ANSI C header files and <ctype.h> functions.
94186         * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
94187         (mbsnwidth): Use isprint, iscntrl instead.
94189 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
94191         Merge from coreutils.
94192         * MODULES.html.sh: Add xstrtold.
94193         * modules/xstrtold: New file.
94194         * modules/cycle-check (Files): Add lib/same-inode.h.
94195         * modules/dirname (Files): Add m4/double-slash-root.m4.
94196         * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
94197         * modules/mkdir-p (Files): Add lib/same-inode.h.
94198         * modules/same (Files): Add lib/same-inode.h.
94200 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
94202         * m4/absolute-header.m4: Renamed from full-header-path.m4.
94203         This is to keep the terminology clean; POSIX talks about
94204         "absolute pathnames", not "full pathnames", but the GNU
94205         Coding Standards say to use "path" for something else;
94206         so use "absolute" to keep both sides happy.
94207         (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
94208         Set gl_absolute_header, not gl_full_header_path.
94209         Set gl_cv_absolute_<header>, not gl_full_path_<header>.
94210         Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
94211         All uses changed.
94213         Merge from coreutils.
94215         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
94217         * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
94218         Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
94219         want to require the building of c-strtod.o.
94220         * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
94221         needs -lm directly.
94222         * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
94224         2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
94226         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
94227         --as-needed option if available.  Problem reported by Albert Chin in
94228         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00114.html>.
94229         However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
94230         cc merely issues a bunch of annoying warnings for --as-needed
94231         (this problem was reported by Bob Proulx).  Also, try linking with
94232         -lm to detect a bug in binutils 2.16 (this problem was reported
94233         by Ralf Wildenhues).
94235         2006-06-18  Jim Meyering  <jim@meyering.net>
94237         Test for a bug that causes glibc's getcwd to suffer a failed assertion.
94238         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
94239         macro.
94240         * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
94241         also check for glibc-2.4's abort-inducing bug.
94243         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
94244         Low-probability clean-up should be to use rmdir to get rid of
94245         the just-created directory, not unlink.
94247         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
94248         configure fail, and request a bug report to inform us about it.
94249         Add a comment that, barring reports to the contrary, in 2007 we'll
94250         assume ftruncate is universally available.
94252         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
94254         * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
94256         2006-03-12  Jim Meyering  <jim@meyering.net>
94258         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
94259         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
94260         * m4/same.m4 (gl_SAME): Likewise.
94261         * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
94263         2006-03-11  Eric Blake  <ebb9@byu.net>
94265         * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
94266         * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
94267         * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
94268         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
94270 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
94272         * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
94273         MacOS X 10.4.6.  Don't mention <sys/int_types.h>.  Problems
94274         reported by Mark D. Baushke, one in
94275         <http://lists.gnu.org/archive/html/bug-gnulib/2006-07/msg00015.html>.
94277         Merge from coreutils.
94279         * lib/.cppi-disable: Add stdint_.h.
94280         * lib/.cvsignore: Add stdint.h.
94282         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
94284         * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
94285         both double and long double versions.
94286         (XSTRTOD): Renamed from xstrtod.  Use DOUBLE internally.
94287         * lib/xstrtold.c: New file.
94288         * lib/xstrtod.h (xstrtold): New decl.
94290         2006-05-22  Paul Eggert  <eggert@cs.ucla.edu>
94292         * lib/filemode.c (setst): Remove.
94293         (strmode): Rewrite to avoid setst.  This makes the code shorter,
94294         (arguably) clearer, and the generated code is a bit smaller on my
94295         Debian GNU/Linux stable x86 host.
94297         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
94299         * lib/filemode.c: Include "filemode.h" first, to test the interface.
94300         Assume that filemode.h includes sys/types.h and sys/stat.h.
94301         (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
94302         (ftypelet): Reorder to put common cases first, for efficiency.
94303         Add 'P', 'w'.  Remove 'M', since it's now the caller's responsibility
94304         to do 'M'.
94305         (strmode): Renamed from mode_string, and now stores 12 bytes instead
94306         of 10, for compatibility with FreeBSD.  All callers changed.
94307         (filemodestring): Now stores 12 bytes instead of 10, and sets file
94308         types that can't be deduced solely from st_mode.  First arg is now a
94309         const pointer.
94310         * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
94311         (strmode): Renamed from mode_string.
94312         (filemodestring): New decl.
94313         * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
94314         (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
94315         needed.
94316         (S_ISPORT, S_ISWHT): New macros, if not already defined.
94318         2006-04-12  Paul Eggert  <eggert@cs.ucla.edu>
94320         * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
94321         fsusage.h now does that.  Include fsusage.h first, to test interface.
94322         Prefer statvfs if it works, since it's blessed by POSIX.  Attempt
94323         at most one method (the old code could have generated decls that
94324         didn't conform to C89, not that this was ever exercised).
94325         * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
94327         2006-03-19  Jim Meyering  <jim@meyering.net>
94329         Work even in a chroot where d_ino values for entries in "/"
94330         don't match the stat.st_ino values for the same names.
94331         * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
94332         number, iterate through all entries again, using lstat instead.
94333         Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
94334         Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
94336         * lib/getcwd.c (__getcwd): Clarify a comment.
94337         Use memcpy in place of a call to strcpy.
94339         2006-03-12  Jim Meyering  <jim@meyering.net>
94341         * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
94342         matches that of the current directory (which we're about to chdir ".."
94343         out of), then save the dev-ino of the parent, instead.
94345         * lib/same-inode.h (SAME_INODE): New file/macro.
94346         * lib/chdir-safer.c (SAME_INODE): Remove definition.
94347         Include "same-inode.h", instead.
94348         * lib/same.c: Likewise.
94349         * lib/cycle-check.h: Include "same-inode.h".
94350         (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
94351         * lib/cycle-check.c (SAME_INODE): Remove definition.
94352         * lib/root-dev-ino.h: Include "same-inode.h".
94354         2006-03-11  Eric Blake  <ebb9@byu.net>
94356         * lib/same.c (same_name): s/base_name/last_component/
94357         * lib/backupfile.c (check_extension, numbered_backup): Likewise.
94358         * lib/filenamecat.c (file_name_concat): Likewise.
94360         2006-03-11  Eric Blake  <ebb9@byu.net>,
94361                     Paul Eggert  <eggert@cs.ucla.edu>
94363         * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
94364         [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
94365         drive prefix.
94366         (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
94367         platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
94368         (last_component): New method.
94369         * lib/dirname.c (dir_len): Determine when drive letters need a
94370         subsequent slash.  Preserve // when it is special.
94371         (dir_name): Don't append dot when drive letter is absolute.
94372         [TEST_DIRNAME]: Move into a full-blown gnulib test.
94373         * lib/basename.c (base_name): New semantics - malloc the result.
94374         Preserve // when it is special.  Preserve relative files that look
94375         like drive letters.
94376         (base_len): Preserve // when it is special.
94377         (last_component): New method, similar to old base_name semantics.
94378         * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
94379         base_name.  Strip redundant slashes from ///.
94381 2006-07-03  Jim Meyering  <jim@meyering.net>
94383         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
94384         macro is used before the first cycle_check call.
94386 2006-07-03  Eric Blake  <ebb9@byu.net>
94388         * modules/dirname (Depends-on): Add xstrndup.
94390 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
94392         * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
94393         test cases, so that config.log is a bit easier to follow.
94395 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
94397         * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
94398         both are 64 bits, since this seems to be the tradition, and this
94399         prevents gcc -Wformat from warning about usages with PRIuMAX.  If
94400         we ever run into a host that prefers long long to long in this
94401         case, we'll need another configure-time test.  Problem reported by
94402         Jim Meyering.
94404 2006-07-02  Eric Blake  <ebb9@byu.net>
94406         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
94408 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
94410         * modules/inttypes (Depends-on): No longer depends on stdint.
94411         * modules/stdint (Description): Say more about assumptions.
94412         Say that the fast types might differ.  Say macros are used.
94413         (Files): Remove m4/size_max.m4, m4/wchar_t.m4.  Add m4/longlong.m4.
94414         (Makefile.am): Revise list of substituted symbols to match
94415         new stdint.m4.
94416         * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
94417         (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
94418         * tests/test-stdint.c (verify_same_types)
94419         [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
94420         the code conforms to C99/C89.
94421         Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
94422         Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
94424 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
94426         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
94427         but fix a bug, by requiring at least 64 bits.
94428         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
94429         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
94430         AC_TYPE_LONG_LONG_INT.  This macro is obsolete and will go soon.
94431         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
94433         * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
94434         changes.  Make 2.59 a prerequisite.  Check and substitute for
94435         HAVE_LONG_LONG_INT.  Rely on Autoconf to check for stdint.h and
94436         inttypes.h.  Do not use special include files; just use the
94437         defaults.  Check for sys/inttypes.h and sys/bitypes.h in the usual
94438         way now.  Remove no-longer-needed tests for HAVE_LONG_64BIT,
94439         HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
94440         uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
94441         int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
94442         uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
94443         int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
94444         uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
94445         uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
94446         UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
94447         INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
94448         UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
94449         UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
94450         UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
94451         UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
94452         INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
94453         INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
94454         UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
94455         INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
94456         SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
94457         WINT_MAX.  Check for C99 conformance more strictly, by detecting
94458         bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9.  On the other hand do
94459         not check for things that C99 does not require, e.g., int8_t.  If
94460         a test isn't needed unless <stdint.h> isn't working, and is
94461         unlikely to be needed for any other reason, then don't do it
94462         unless <stdint.h> isn't working.  Do not check for ptrdiff_t or
94463         size_t, since we assume C89 freestanding at least.  Do not check
94464         for sig_atomic_t, wchar_t, or wint_t, since the code now does
94465         the right thing even if the types are not defined.  Instead use:
94466         (gl_STDINT_TYPE_PROPERTIES): New macro.
94467         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove.  Don't bother
94468         testing whether <sys/types.h> clashes, as Autoconf does this for
94469         us now.  All uses removed.
94470         (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
94471         (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
94472         (gl_CHECK_TYPE_SAME):
94473         Remove; no longer needed.
94474         (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
94475         exists, since we'll return 0 anyway in that case.
94476         (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
94478 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
94480         * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
94481         possible collision with system files.
94482         (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
94483         __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
94484         WCHAR_MIN and WCHAR_MAX in this case.
94485         (<stddef.h>): Do not include; no longer needed.
94486         (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
94487         (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
94488         (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
94489         !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
94490         && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
94491         (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
94492         __c99]: Define, to work around IRIX <stdint.h> incompatibility.
94493         (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
94494         !defined(__c99))]: Include in this case too, since it's harmless
94495         now.
94496         (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
94497         dangerous to do so.
94498         (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
94499         @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
94500         (_STDINT_MIN, _STDINT_MAX): New macros.
94501         (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
94502         (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
94503         (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
94504         (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
94505         (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
94506         (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
94507         macros, not typedefs; this simplifies things quite a bit.
94508         Use long int for all types narrower than int64_t.
94509         (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
94510         Define in terms of long long int or int64_t or long int,
94511         not int64_t or int32_t.  This saves some compile-time testing.
94512         (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
94513         (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
94514         (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
94515         (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
94516         (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
94517         (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
94518         (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
94519         (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
94520         (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
94521         (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
94522         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
94523         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
94524         undef any previous version and define our own version, for
94525         simplicity and consistency with the new macros for types.
94526         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
94527         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
94528         Simplify definitions by using _STDINT_MIN and _STDINT_MAX
94529         where appropriate.  Rely on new symbols @PTRDIFF_T_SUFFIX@,
94530         @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
94531         @WINT_T_SUFFIX@ to keep things simple here.
94532         (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
94533         Simplify by assuming typical 8/16/32/64 host, since we're
94534         already doing that elsewhere anyway.
94535         Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
94536         and assume long long int is 64 bits if available.  This
94537         speeds up 'configure'.
94539 2006-07-01  Eric Blake  <ebb9@byu.net>
94541         * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
94542         Reported by Andreas Buening.
94544 2006-07-01  Eric Blake  <ebb9@byu.net>
94546         * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
94548 2006-06-30  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
94550         * lib/getaddrinfo.c: fixed typo
94552 2006-06-29  Jim Meyering  <jim@meyering.net>
94554         * modules/strftime (Maintainer): Add my name, since with the
94555         FPRINTFTIME changes strftime.c has forked from glibc.
94557 2006-06-29  Eric Blake  <ebb9@byu.net>
94559         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
94561 2006-06-29  Eric Blake  <ebb9@byu.net>
94563         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
94565 2006-06-29  Eric Blake  <ebb9@byu.net>
94567         * lib/stat_.h: New file.
94569 2006-06-29  Eric Blake  <ebb9@byu.net>
94571         * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
94572         unused static function.
94574 2006-06-29  Eric Blake  <ebb9@byu.net>
94576         * doc/functions.texi (Function Portability): Document missing lstat
94577         on mingw.
94579 2006-06-29  Eric Blake  <ebb9@byu.net>
94581         * MODULES.html.sh: Add sys_stat.
94582         * modules/sys_stat: New module.
94583         * modules/mkstemp (Depends-on): Add sys_stat.
94585 2006-06-29  Derek R. Price  <derek@ximbiot.com>
94587         * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
94589 2006-06-29  Derek R. Price  <derek@ximbiot.com>
94591         * m4/c-bs-a.m4: Removed.
94593 2006-06-29  Derek R. Price  <derek@ximbiot.com>
94595         * lib/strftime.c: Assume strftime() exists.
94597 2006-06-29  Derek Price  <derek@ximbiot.com>
94599         * modules/c-bs-a: Removed - \a is C89.
94600         * MODULES.html.sh: Remove c-bs-a.
94602 2006-06-29  Bruno Haible  <bruno@clisp.org>
94604         * modules/wcwidth (License): Change to LGPL.
94606 2006-06-28  Simon Josefsson  <jas@extundo.com>
94608         * tests/test-getaddrinfo.c: Test getnameinfo too.  Call WSAStartup
94609         on _WIN32.
94611         * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
94612         getnameinfo.
94614 2006-06-28  Simon Josefsson  <jas@extundo.com>
94616         * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
94618 2006-06-28  Simon Josefsson  <jas@extundo.com>
94620         * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
94621         functions there.  It will succeed on Windows XP, but on Windows
94622         2000 and (presumably) earlier, it will fail, and use the internal
94623         re-implementation.
94624         (use_win32_p): New function.
94625         (getaddrinfo): Use strtoul on servname, to support numeric ports.
94626         Support AI_NUMERICSERV to disable getservbyname.
94627         (getnameinfo): New function, only supports
94628         NI_NUMERICHOST|NI_NUMERICSERV for now.
94630         * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
94631         only have some of them.  Add AI_NUMERICSERV.  Add prototype for
94632         getnameinfo.
94634 2006-06-28  Eric Blake  <ebb9@byu.net>
94636         * modules/wcwidth: New file.
94637         * modules/mbchar (Depends-on): Add wcwidth.
94638         * modules/mbswidth (Depends-on): Add wcwidth.
94639         * MODULES.html.sh: Add wcwidth.
94641 2006-06-28  Eric Blake  <ebb9@byu.net>
94643         * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
94644         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
94646 2006-06-28  Eric Blake  <ebb9@byu.net>
94648         * lib/xvasprintf.h: Fix comments.
94650 2006-06-28  Eric Blake  <ebb9@byu.net>
94652         * lib/mbchar.h (wcwidth): Include wcwidth.h.
94653         * lib/mbswidth.c (wcwidth): Move from here...
94654         * lib/wcwidth.h: ...to this new file.
94656 2006-06-28  Derek R. Price  <derek@ximbiot.com>
94658         * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
94660         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
94661         it's obsolete.
94662         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
94664 2006-06-28  Derek R. Price  <derek@ximbiot.com>
94666         * lib/savedir.c (CLOSEDIR): Remove.  All uses changed to closedir.
94667         Autoconf 2.60 says this stuff was obsolete.
94669 2006-06-28  Bruno Haible  <bruno@clisp.org>
94671         * modules/wcwidth (Files): Add m4/wchar_t.m4.
94673 2006-06-28  Bruno Haible  <bruno@clisp.org>
94675         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
94676         gt_TYPE_WCHAR_T.
94678 2006-06-28  Bruno Haible  <bruno@clisp.org>
94680         * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
94681         declaration for wcwidth.
94682         * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctype.h>.
94684 2006-06-28  Bruno Haible  <bruno@clisp.org>
94686         * lib/mkdtemp.c [MINGW]: Include <io.h>.
94687         (mkdir): Define using _mkdir.
94689 2006-06-28  Bruno Haible  <bruno@clisp.org>
94691         * lib/getaddrinfo.h: Fix POSIX URL.
94692         * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
94693         _WIN32.
94694         (use_win32_p): Make static.
94695         (getaddrinfo): Reject service name if it is empty or does not consist
94696         solely of decimal digits, or if its value is > 65535.
94697         (getnameinfo): Remove useless casts.
94699 2006-06-27  Simon Josefsson  <jas@extundo.com>
94701         * modules/sys_select: New file, suggested by Bruno Haible, Paul
94702         Eggert and Martin Lambers.
94704 2006-06-27  Simon Josefsson  <jas@extundo.com>
94706         * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
94707         Eggert and Martin Lambers.
94709 2006-06-27  Bruno Haible  <bruno@clisp.org>
94711         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
94712         result to 0, not to empty.
94713         Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
94715 2006-06-27  Bruno Haible  <bruno@clisp.org>
94717         * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
94719 2006-06-26  Simon Josefsson  <jas@extundo.com>
94721         * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
94722         present.
94724 2006-06-26  Paul Eggert  <eggert@cs.ucla.edu>
94726         * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
94727         bug in IBM C V6 for AIX.  Problem reported by Larry Jones in
94728         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00181.html>.
94730 2006-06-26  Mark D. Baushke  <mdb@gnu.org>
94732         * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
94734 2006-06-26  Bruno Haible  <bruno@clisp.org>
94736         * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
94738 2006-06-26  Bruno Haible  <bruno@clisp.org>
94740         * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
94742 2006-06-26  Bruno Haible  <bruno@clisp.org>
94744         * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
94745         SGI C compiler in pre-C99 mode.
94746         Suggested by Mark D. Baushke and Larry Jones.
94748 2006-06-26  Bruno Haible  <bruno@clisp.org>
94750         * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
94751         WCHAR_MAX.
94752         Reported by Mark D. Baushke and Larry Jones.
94754 2006-06-26  Bruno Haible  <bruno@clisp.org>
94756         * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
94757         in pre-C99 mode.
94758         Suggested by Mark D. Baushke and Larry Jones.
94760 2006-06-23  Simon Josefsson  <jas@extundo.com>
94761             Bruno Haible  <bruno@clisp.org>
94763         * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
94764         Emit mostlyclean-local rule.
94765         (func_emit_tests_Makefile_am): Likewise.
94766         * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
94768 2006-06-23  Mark D. Baushke  <mdb@gnu.org>
94770         * lib/stdint_.h: Treat BSD/OS like OpenBSD.
94772 2006-06-23  Bruno Haible  <bruno@clisp.org>
94774         * tests/test-stdint.c: Update to match ISO C 99 Technical
94775         Corrigendum 1.
94777 2006-06-23  Bruno Haible  <bruno@clisp.org>
94779         * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
94781 2006-06-23  Bruno Haible  <bruno@clisp.org>
94783         * lib/stdint_.h: Treat IRIX like OpenBSD.
94785 2006-06-23  Bruno Haible  <bruno@clisp.org>
94787         * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
94788         ISO C 99 Technical Corrigendum 1.
94790 2006-06-22  Simon Josefsson  <jas@extundo.com>
94792         * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
94793         MinGW.
94795 2006-06-22  Paul Eggert  <eggert@cs.ucla.edu>
94797         * lib/glob.c (collated_compare): Remove 'const' uses that weren't
94798         needed.  Some compiler complained about some of them.  Problem reported
94799         by Larry Jones in
94800         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00172.html>.
94802 2006-06-21  Simon Josefsson  <jas@extundo.com>
94804         * tests/test-getaddrinfo.c: New file.
94806         * modules/getaddrinfo-tests: New file.
94808         * MODULES.html.sh: Add inet_pton.
94810         * modules/inet_pton: New file.
94812 2006-06-21  Simon Josefsson  <jas@extundo.com>
94814         * m4/getaddrinfo.m4: Don't define WINVER.  Look for gethostbyname in
94815         -lws2_32 too.  Fixes getaddrinfo on Windows 2000, with the price
94816         of using the (limited) gnulib implementation on Windows XP.
94818         * m4/inet_pton.m4: New file.
94820 2006-06-21  Simon Josefsson  <jas@extundo.com>
94822         * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
94823         variable.
94825         * lib/socket_.h: Don't define WINVER.
94827         * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
94828         slightly modified to work in gnulib.
94830 2006-06-21  Simon Josefsson  <jas@extundo.com>
94832         * doc/gnulib.texi (Windows sockets): Add.
94834 2006-06-21  Paul Eggert  <eggert@cs.ucla.edu>
94836         * lib/read-file.c (fread_file): Start with buffer allocation of
94837         0 bytes rather than 1 byte; this simplifies the code.
94838         Don't invoke feof; it's not needed.  Refactor to avoid duplicate
94839         code to free buffer and save/restore errno.
94840         (internal_read_file): Remove unused local.
94842 2006-06-20  Paul Eggert  <eggert@cs.ucla.edu>
94844         * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
94845         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
94846         Problem reported by Denis Excoffier in
94847         <http://lists.gnu.org/archive/html/bug-tar/2006-06/msg00023.html>.
94849 2006-06-19  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
94851         * modules/sys_socket, modules/socklen: Include sys/types since
94852         FreeBSD 4.x's sys/socket.h needs it.
94854 2006-06-19  Simon Josefsson  <jas@extundo.com>
94856         * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
94858 2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
94860         * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
94862 2006-06-19  Bruno Haible  <bruno@clisp.org>
94864         * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
94865         and FULL_PATH_INTTYPES_H in angle brackets.
94866         Reported by Mark D. Baushke <mdb@gnu.org>.
94868 2006-06-17  Eric Blake  <ebb9@byu.net>
94870         * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
94871         errno.
94873 2006-06-17  Bruno Haible  <bruno@clisp.org>
94875         * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
94876         <sys/inttypes.h>.
94878 2006-06-17  Bruno Haible  <bruno@clisp.org>
94880         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
94881         whether errno is declared. Assume <errno.h> declares errno.
94883 2006-06-17  Bruno Haible  <bruno@clisp.org>
94885         * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
94887 2006-06-17  Bruno Haible  <bruno@clisp.org>
94889         * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
94890         problem on Solaris 2.5.1.
94892 2006-06-16  Eric Blake  <ebb9@byu.net>
94894         * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
94895         * lib/unicodeio.c [!defined errno]: Likewise.
94896         * lib/strtol.c [!defined errno]: Likewise.
94897         * lib/strtod.c [!defined errno]: Likewise.
94899 2006-06-15  Eric Blake  <ebb9@byu.net>
94901         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
94903 2006-06-15  Eric Blake  <ebb9@byu.net>
94905         * config/srclist.txt (ssize_t.m4): Lose sync.
94907 2006-06-15  Bruno Haible  <bruno@clisp.org>
94909         * modules/stdint (Files): Include m4/full-header-path.m4,
94910         m4/size_max.m4, m4/wchar_t.m4.
94911         (Makefile.am): Many more substitutions.
94912         * modules/stdint-tests: New file.
94913         * tests/test-stdint.c: New file.
94915 2006-06-15  Bruno Haible  <bruno@clisp.org>
94917         * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
94918         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
94919         gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
94920         gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
94921         gl_CHECK_TYPE_SAME): New macros.
94923 2006-06-15  Bruno Haible  <bruno@clisp.org>
94925         * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
94927 2006-06-15  Bruno Haible  <bruno@clisp.org>
94929         * lib/stdint_.h: Rewritten to be fully auto-configured.
94930         Fixes bug on HP-UX/IA64.
94932 2006-06-11  Paul Eggert  <eggert@cs.ucla.edu>
94934         * lib/getdate.y (__attribute__): Don't define if already defined.
94935         Problem reported by Larry Jones.
94936         * lib/utimens.c (__attribute__): Likewise.
94938 2006-06-04  Paul Eggert  <eggert@cs.ucla.edu>
94940         * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
94941         reported by Andreas Schwab.
94943 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
94944             Bruno Haible  <bruno@clisp.org>
94946         * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
94947         check for the declaration of strnlen and a run test that exposes the
94948         AIX 5.1 strnlen bug.  In the failure case, #define strndup to
94949         rpl_strndup.
94951 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
94952             Bruno Haible  <bruno@clisp.org>
94954         * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
94956 2006-05-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
94958         * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
94959         compile test, for Tru64 4.0D.
94961 2006-05-28  Karl Berry  <karl@gnu.org>
94963         * config/srclist.txt (printf-args.c): lose sync.
94965 2006-05-26  Martin Lambers  <marlam@marlam.de>
94967         * lib/getpass.c: Updates the test for the native W32 API, and adds
94968         missing includes, thus fixing compilation warnings.
94970 2006-05-25  Sergey Poznyakoff  <gray@gnu.org.ua>
94972         * lib/exclude.c (exclude_fnmatch): New function.
94973         (excluded_file_name): Call exclude_fnmatch.
94974         * lib/exclude.h (excluded_file_name): New prototype
94976 2006-05-25  Paul Eggert  <eggert@cs.ucla.edu>
94978         * lib/tempname.c (small_open, large_open): New macros.
94979         (__open, __open64) [!_LIBC]: Remove.
94980         (__gen_tempname): Use small_open and large_open instead of __open
94981         and __open64.  This fixes a portability bug on HP-UX 11.11i
94982         reported by Simon Wing-Tang in
94983         <http://lists.gnu.org/archive/html/bug-coreutils/2006-05/msg00114.html>.
94985 2006-05-24  Bruno Haible  <bruno@clisp.org>
94987         * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
94988         TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
94989         Reported by Thorsten Maerz <torte@netztorte.de> via
94990         Aaron Stone <aaron@serendipity.cx>.
94992 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
94994         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
94995         gl_ rather than jm_.  Link, don't run, so that cross-compiles are
94996         allowed.  Check that resulting type is arithmetic.  Move AC_REQUIRE
94997         and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
94998         not really conditional on the cache.
94999         (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
95001 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
95003         * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
95004         Use the usual Autoconf way to include <time.h> and/or sys/time.h.
95005         (my_usleep): Don't mishandle maximum value.
95007 2006-05-19  Jim Meyering  <jim@meyering.net>
95009         * lib/getugroups.c: Correct an outdated comment.  From Bruno Haible.
95011 2006-05-17  Bruno Haible  <bruno@clisp.org>
95013         Cygwin portability.
95014         * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
95016 2006-05-17  Bruno Haible  <bruno@clisp.org>
95018         * lib/stdint_.h: Fix recognition of Cygwin.
95020 2006-05-15  Bruno Haible  <bruno@clisp.org>
95022         * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
95023         on libtool patch by Ralf Wildenhues.
95025 2006-05-14  Paul Eggert  <eggert@cs.ucla.edu>
95027         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
95028         test for C99 conformance; (bool) 0.5 is an integer constant
95029         expression, but (bool) -0.5 is not.  Problem reported by Fedor
95030         Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
95032 2006-05-11  Simon Josefsson  <jas@extundo.com>
95034         * m4/xvasprintf.m4: Fix obvious typo.
95036 2006-05-11  Jim Meyering  <jim@meyering.net>
95038         * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/.  From
95039         James Lemley.
95041 2006-05-10  Simon Josefsson  <jas@extundo.com>
95043         * lib/md4.c: Typo fix, update copyright years.
95044         (K1, K2): Don't use L because it turn computations into 64-bit on
95045         64-bit platforms.
95047 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
95049         * lib/crc.c (crc32_update): Remove unnecessary L suffix.
95050         * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
95051         unwanted sign propagation, e.g., on hosts with 64-bit int.
95052         There still are some problems with reeelly weird theoretical hosts
95053         (e.g., 33-bit int) but it's not worth worrying about now.
95054         * lib/sha1.c (rol): Likewise.
95055         (K1, K2, K3, K4): Remove unnecessary L suffix.
95057 2006-05-10  Bruno Haible  <bruno@clisp.org>
95059         * lib/des.c: Cast to avoid warnings.
95061 2006-05-09  Bruno Haible  <bruno@clisp.org>
95063         * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
95064         (Depends-on): Depend also on xsize, stdarg.
95065         (configure.ac): Add gl_XVASPRINTF.
95067 2006-05-09  Bruno Haible  <bruno@clisp.org>
95069         * m4/xvasprintf.m4: New file.
95071 2006-05-09  Bruno Haible  <bruno@clisp.org>
95073         * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
95074         (EOVERFLOW): Define fallback value.
95075         (xstrcat): New function.
95076         (xvasprintf): Recognize the special case of a string concatenation.
95078 2006-05-08  Eric Blake  <ebb9@byu.net>
95080         * gnulib-tool (func_version): Base copyright year on CVS date.
95081         (func_emit_copyright_notice): New function.
95082         (func_emit_lib_Makefile_am): Use it.
95083         (func_emit_tests_Makefile_am): Likewise.
95084         (func_import): Likewise.
95086 2006-05-08  Bruno Haible  <bruno@clisp.org>
95088         * modules/stdarg: New file.
95089         * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
95091 2006-05-08  Bruno Haible  <bruno@clisp.org>
95093         * m4/stdarg.m4: New file, from GNU gettext.
95095 2006-05-08  Bruno Haible  <bruno@clisp.org>
95097         * config/srclist.txt (build-aux/config.rpath): different from latest
95098         release.
95100 2006-05-08  Bruno Haible  <bruno@clisp.org>
95102         * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
95104 2006-05-05  Jim Meyering  <jim@meyering.net>
95106         * m4/warning.m4: New file, derived from bison's file by the same name.
95108 2006-05-03  Bruno Haible  <bruno@clisp.org>
95110         * lib/stdint_.h: Shorter URL.
95111         * lib/inttypes.h: Likewise.
95113 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
95115         * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
95117 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
95119         * lib/verify.h: Document the internals better.  Most of this change
95120         was written by Bruno Haible.
95122 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
95124         * doc/verify.texi: New file, partly based on a proposal by
95125         Bruno Haible.
95127 2006-05-02  Bruno Haible  <bruno@clisp.org>
95129         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
95130         test from here...
95131         * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
95133 2006-04-29  Bruno Haible  <bruno@clisp.org>
95135         * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
95136         Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
95138 2006-04-29  Bruno Haible  <bruno@clisp.org>
95140         * gnulib-tool: Make --update option actually work.
95142 2006-04-29  Bruno Haible  <bruno@clisp.org>
95144         * doc/gcd.texi: New file.
95145         * doc/gnulib.texi: Include it.
95147 2006-04-25  Paul Eggert  <eggert@cs.ucla.edu>
95149         * lib/getdate.y (get_date): When adding relative date, start with the
95150         initial time, not with the result of the first mktime call.
95152 2006-04-25  Bruno Haible  <bruno@clisp.org>
95154         * gnulib-tool (func_import): Output the include directives in three
95155         blocks, sorted separately.
95156         Reported by Ben Pfaff <blp@cs.stanford.edu>.
95158 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
95160         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
95161         to define main with arguments, for C++.  Reported by Eric Blake.
95162         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
95163         Prefer 'int main ()' to 'int main (void)', for C++.
95164         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
95165         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
95166         for 'main', for C99 and C++.
95168 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
95170         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
95171         Don't assume that exit status -1 is valid.
95172         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
95173         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
95174         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
95175         * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
95176         * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
95177         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
95178         not AC_TRY_RUN.  Use return, not exit.  Don't assume that
95179         functions can be used without declaring them, or that you can
95180         exit with status -1.
95181         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
95183 2006-04-24  Karl Berry  <karl@gnu.org>
95185         * config/srclist.txt (longdouble.m4): sync lost.
95187 2006-04-24  Eric Blake  <ebb9@byu.net>
95189         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
95191 2006-04-24  Bruno Haible  <bruno@clisp.org>
95193         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
95194         poll() implementation in AIX.
95195         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
95197 2006-04-24  Bruno Haible  <bruno@clisp.org>
95199         * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
95200         assigned exactly once.
95202 2006-04-23  Claudio Fontana  <claudio@gnu.org>
95203             Bruno Haible  <bruno@clisp.org>
95205         * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
95206         * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
95207         for AM_CPPFLAGS.
95209 2006-04-23  Bruno Haible  <bruno@clisp.org>
95211         * modules/copy-file: Depend on unistd.
95212         * modules/execute: Likewise.
95213         * modules/fatal-signal: Likewise.
95214         * modules/findprog: Likewise.
95215         * modules/mkdtemp : Likewise.
95216         * modules/pipe: Likewise.
95217         * modules/wait-process: Likewise.
95219 2006-04-23  Bruno Haible  <bruno@clisp.org>
95221         * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
95222         condition was already detected.
95223         Reported by Ben Pfaff <blp@cs.stanford.edu>.
95225 2006-04-23  Bruno Haible  <bruno@clisp.org>
95227         * lib/copy-file.c: Include <unistd.h> unconditionally.
95228         * lib/execute.c: Likewise.
95229         * lib/fatal-signal.c: Likewise.
95230         * lib/findprog.c: Likewise.
95231         * lib/mkdtemp.c: Likewise.
95232         * lib/pipe.h: Likewise.
95233         * lib/pipe.c: Likewise.
95234         * lib/wait-process.h: Likewise.
95236 2006-04-23  Bruno Haible  <bruno@clisp.org>
95238         * gnulib-tool (func_usage): Fix --import description. Document
95239         --update.
95240         (func_import): Create temporary file in a temporary directory, if
95241         --dry-run is specified. Silence errors from 'grep' when there are no
95242         m4 files in $m4dir.
95243         (func_create_testdir): Silence errors from 'grep' when there are no
95244         m4 files in $m4dir.
95245         Reported by Karl Berry <karl@freefriends.org>.
95247 2006-04-20  Bruno Haible  <bruno@clisp.org>
95249         * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
95250         one argument, so that the code will be portable to Autoconf 2.60.
95251         * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
95252         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
95253         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
95255 2006-04-19  Derek Price  <derek@ximbiot.com>
95256             Eric Blake  <ebb9@byu.net>
95258         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
95259         rather than "/full/path.h".  Update comment to match.  Shorten &
95260         generalize m4_translit call via AS_TR_CPP.
95262 2006-04-19  Derek Price  <derek@ximbiot.com>
95263             Eric Blake  <ebb9@byu.net>
95265         * lib/inttypes.h: Correct grammar in comment.
95267 2006-04-18  Derek Price  <derek@ximbiot.com>
95268             Paul Eggert  <eggert@cs.ucla.edu>
95270         * modules/inttypes: New file.
95271         * modules/strtoimax, modules/strtoumax: Depend on inttypes.
95273 2006-04-18  Derek Price  <derek@ximbiot.com>
95274             Paul Eggert  <eggert@cs.ucla.edu>
95276         * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
95277         New files.
95279 2006-04-18  Derek Price  <derek@ximbiot.com>
95280             Paul Eggert  <eggert@cs.ucla.edu>
95282         * lib/inttypes.h: New file.
95283         * lib/strtoimax.c: Assume <inttypes.h>.
95285 2006-04-15  Paul Eggert  <eggert@cs.ucla.edu>
95287         * lib/utimens.c (futimens): glibc futimesat messes up if /proc
95288         isn't mounted.  Problem reported by Kir Kolyshkin.
95290 2006-04-13  Paul Eggert  <eggert@cs.ucla.edu>
95292         * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
95293         RE_ENABLE_I18N is not defined.  Problem reported by Mark D. Baushke via
95294         Derek R. Price.
95295         * lib/regex.h (RE_DUP_MAX): Update comment to match current
95296         implementation.
95298 2006-04-12  Eric Blake  <ebb9@byu.net>
95300         * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
95301         is now done automatically by the corresponding Autoconf macro.
95303 2006-04-11  Paul Eggert  <eggert@cs.ucla.edu>
95305         * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
95306         time_r.h.
95308 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
95310         Merge regex changes from libc, removing some of our
95311         POSIX-conformance changes that were rejected and redoing them in a
95312         less-intrusive way.
95314         * lib/regcomp.c (re_compile_internal, init_dfa):
95315         Length arg is now size_t, not Idx.  All uses changed.
95316         (peek_token): Forward decl now says internal_function.
95317         (__re_error_msgid, __re_error_msgid_idx):
95318         Now static rather than extern with attribute_hidden.
95319         (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
95320         For some reason libc prefers K&R style defns for external functions.
95321         (regerror) [!defined _LIBC]: Likewise.
95322         (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
95323         (seek_collating_symbol_entry, lookup_collation_sequence_value):
95324         (build_range_exp, build_collating_symbol):
95325         Use K&R-style defn.
95326         (re_compile_fastmap): Use '\0' to memset, not 0.
95327         (utf8_sb_map): Make the calculations more obvious.
95328         (init_dfa, parse_bracket_exp, build_charclass_op):
95329         Call calloc and cast result, as glibc does.
95330         (init_word_char, fetch_token, peek_token, peek_token_bracket):
95331         (build_range_exp, build_collating_symbol):
95332         Now internal functions.
95334         * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
95336         * lib/regex.h (__USE_GNU_REGEX): New macro.  Don't depend on
95337         _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
95338         Don't depend on VMS; depend on __VMS instead, for POSIX
95339         namespace cleanness.
95340         (regoff_t): Define to ssize_t, not long int.
95342         Remove the REG_ macros named below.  Instead, make the old names
95343         (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
95344         __USE_GNU_REGEX.
95345         (REG_BACKSLASH_ESCAPE_IN_LISTS):
95346         (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
95347         (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
95348         (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
95349         (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
95350         (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
95351         (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
95352         (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
95353         (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
95354         (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
95355         (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
95356         (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
95357         (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
95358         (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
95359         (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
95360         (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
95361         (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
95362         (REG_NREGS):
95363         Remove.  All uses replaced by the old RE_* names.
95364         (RE_BACKSLASH_ESCAPE_IN_LISTS):
95365         (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
95366         (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
95367         (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
95368         (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
95369         (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
95370         (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
95371         (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
95372         (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
95373         (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
95374         (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
95375         Don't bother having these macros be independent of each others'
95376         values, since they no longer exist in the POSIX name space.
95378         Rename the following member names back to their old names,
95379         unless !__USE_GNU_REGEX.  All uses changed back.
95380         (buffer): Renamed from re_buffer.
95381         (allocated): Renamed from re_allocated.
95382         (used): Renamed from re_used.
95383         (syntax): Renamed from re_syntax.
95384         (fastmap): Renamed from re_fastmap.
95385         (translate): Renamed from re_translate.
95386         (can_be_null): Renamed from re_can_be_null.
95387         (regs_allocated): Renamed from re_regs_allocated.
95388         (fastmap_accurate): Renamed from re_fastmap_accurate.
95389         (no_sub): Renamed from re_no_sub.
95390         (not_bol): Renamed from re_not_bol.
95391         (not_eol): Renamed from re_not_eol.
95392         (newline_anchor): Renamed from re_newline_anchor.
95393         (num_regs): Renamed from rm_num_regs.
95394         (start): Renamed from rm_start.
95395         (end): Renamed from rm_end.
95397         (free_state): Move up a bit.
95399         * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
95400         #define to be empty.
95401         (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
95402         when that is what is intended.
95403         (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
95404         (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
95405         (MAX): New macro.
95406         (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
95407         All uses changed back to re_malloc, etc.  It's now the caller's
95408         responsibility to check for overflow; all callers changed.
95409         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
95410         (re_x2nrealloc): Remove.
95411         (free_state): Remove decl.
95413         * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
95414         (re_set_registers, re_exec):
95415         Use K&R-style defn.
95417         2006-01-31  Roland McGrath  <roland@redhat.com>
95419         * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
95420         Reported by Mike Frysinger <vapier@gentoo.org>.
95422         2006-01-15  Andreas Jaeger  <aj@suse.de>
95424         [BZ #1950]
95425         * lib/regex_internal.c (re_string_reconstruct): Adjust for
95426         build_wcs_upper_buffer change.
95427         (build_wcs_upper_buffer): Change return type.
95429         2005-12-10  Ulrich Drepper  <drepper@redhat.com>
95431         * lib/regex_internal.h: Include <stdint.h> if available.
95433         2005-12-06  Paolo Bonzini  <bonzini@gnu.org>
95435         * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
95437         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
95439         * lib/regcomp.c: Adjust for changed secondary hash function.
95441         2005-09-30  Ulrich Drepper  <drepper@redhat.com>
95443         * lib/regex.h: Pretty printing.
95444         Clean up namespace a bit.
95446         2005-09-30  Jakub Jelinek  <jakub@redhat.com>
95448         * lib/regexec.c (update_cur_sifted_state, check_arrival,
95449         check_arrival_add_next_nodes): Avoid using uninitialized variable.
95451         2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
95452                     Ulrich Drepper  <drepper@redhat.com>
95454         [BZ #1302]
95455         * lib/regex_internal.h (bitset_t): Renamed from bitset.  All uses
95456         changed.
95457         (bitset_word_t): Renamed from bitset_word.  All uses changed.
95459         2005-09-22  Ulrich Drepper  <drepper@redhat.com>
95461         [BZ #281]
95462         * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
95463         * lib/regcomp.c: Remove unnecessary uses of
95464         unsigned RE_TRANSLATE_TYPE.
95465         * lib/regex_internal.h: Likewise.
95466         * lib/regex_internal.c: Likewise.
95467         * lib/regexec.c: Likewise.
95468         Based on a patch by Stepan Kasal <kasal@ucw.cz>.
95470         2005-09-07  Ulrich Drepper  <drepper@redhat.com>
95472         * lib/regexec.c (find_recover_state): Remove unnecessary
95473         initialization.
95474         (transit_state_bkref): Make DFA a const pointer.
95475         (get_subexp): Likewise.
95476         (check_arrival): Likewise.
95477         (update_cur_sifted_state): Likewise.
95478         (re_search_internal): Likewise.
95479         (prune_impossible_nodes): Likewise.
95480         (acquire_init_state_context): Likewise.
95481         (proceed_next_node): Likewise.
95482         (set_regs): Likewise.
95483         (free_fail_stack_return): Likewise.
95484         (check_arrival_expand_ecl): Mark DFA parameter as const.
95485         (check_arrival_expand_ecl_sub): Likewise.
95486         (check_subexp_limits): Likewise.
95487         (sub_epsilon_src_nodes):  Likewise.
95488         (add_epsilon_src_nodes):  Likewise.
95489         (merge_state_array): Likewise.
95490         (update_regs): Likewise.
95491         (build_trtable): Likewise.
95492         (sift_states_backward): Mark MCTX parameter as const.
95493         (build_sifted_states): Likewise.
95494         (update_cur_sifted_state): Likewise.
95495         (sift_states_mkref): Likewise.
95496         (check_arrival_expand_ecl): Mark eclosure as const.
95497         (check_dst_limits_calc_pos_1): Likewise.
95498         * lib/regex_internal.h (re_match_context_t): Make dfa a const
95499         pointer.
95501         2005-09-06  Ulrich Drepper  <drepper@redhat.com>
95503         * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
95504         (transit_state_sb): Likewise.
95505         (transit_state_mb): Likewise.
95506         (sift_states_iter_mb): Likewise.
95507         (check_arrival_add_next_nodes): Likewise.
95508         (check_node_accept_bytes): Change first parameter to pointer-to-const.
95509         [_LIBC] (re_search_2_stub): Use mempcpy.
95511         * lib/regex_internal.c (re_string_reconstruct): Avoid calling
95512         mbrtowc for very simple UTF-8 case.
95514         * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
95515         a pointer-to-const.
95516         (re_acquire_state_context): Likewise.
95517         * lib/regex_internal.h: Adjust prototypes.
95519         * lib/regex.c: Prevent using C++ compilers.
95521         * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
95522         (re_acquire_state_context): Likewise.
95524 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
95526         * modules/regex (Depends-on): Add ssize_t.
95528 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
95530         * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
95531         translation table.
95533 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
95535         * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
95537 2006-03-29  Mark D. Baushke  <mdb@gnu.org>
95538             Bruno Haible  <bruno@clisp.org>
95540         * lib/stdint_.h: On OpenBSD, don't redefine types already included in
95541         <sys/types.h> and <inttypes.h>.
95543 2006-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
95545         * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
95546         `__error_t_defined', so argp.h will not typedef the former.
95548 2006-03-25  Paul Eggert  <eggert@cs.ucla.edu>
95550         * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
95551         REG_SYNTAX_EMACS, and REG_IGNORE_CASE.  Settle for the traditional
95552         glibc names.  Even if glibc is changed to conform to POSIX, the
95553         traditional names will be available anyway, since regex depends on
95554         the extensions module.  Also, fix a longstanding typo in the
95555         implementation of Spencer ERE test #75 from grep 2.3.  Problems
95556         reported by Emanuele Giaquinta.  Also, change sense of cached
95557         variable, so that the message makes sense.
95559 2006-03-24  Simon Josefsson  <jas@extundo.com>
95561         * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
95562         including some doc fixes.
95563         (base64_encode_alloc): Fix +1 bug on allocation failures.
95565 2006-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
95567         * lib/base64.c (base64_encode): Do not read past end of array with
95568         unsanitized input on systems with CHAR_BIT > 8.
95570 2006-03-24  Eric Blake  <ebb9@byu.net>
95572         * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
95574 2006-03-22  Karl Berry  <karl@gnu.org>
95576         * config/srclist.txt (*setenv.[ch]): get from coreutils.
95577         * config/srclistvars.sh (COREUTILS): new var.
95579 2006-03-17  Jim Meyering  <jim@meyering.net>
95581         * m4/regex.m4 (gl_REGEX): Fix typo in last change:
95582         s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
95584 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
95586         * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
95587         no longer needs it.  Instead, check that regoff_t is as least
95588         as wide as ptrdiff_t.
95590         Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
95591         so that our regex.h stays compatible with the installed regex.
95592         This is helpful for installers who configure --without-included-regex.
95593         Problem reported by Emanuele Giaquinta.
95595 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
95597         * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
95598         Typedef to long int, not to off_, as POSIX will likely change
95599         in that direction.
95601 2006-03-15  Eric Blake  <ebb9@byu.net>
95603         * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
95605 2006-03-13  Sergey Poznyakoff  <gray@gnu.org.ua>
95607         * lib/argp-help.c (validate_uparams): Fix typo
95608         * lib/argp-parse.c (argp_default_options): Consistently begin help
95609         messages with a lowercase letter.
95611 2006-03-11  Paul Eggert  <eggert@cs.ucla.edu>
95613         * lib/time_r.h (asctime_r, ctime_r): Remove.  These functions can
95614         overrun buffers and shouldn't be used (much as gets shouldn't be
95615         used).
95616         * lib/time_r.c (asctime_r, ctime_r): Likewise.
95618 2006-03-08  Simon Josefsson  <jas@extundo.com>
95620         * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
95621         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
95623 2006-03-08  Simon Josefsson  <jas@extundo.com>
95625         * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
95626         $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
95628 2006-03-08  Simon Josefsson  <jas@extundo.com>
95630         * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
95631         signal that configure disabled the device.
95633 2006-03-08  Simon Josefsson  <jas@extundo.com>
95635         * build-aux/maint.mk: Fix refresh-po, to handle no translated
95636         languages.
95638 2006-03-07  Simon Josefsson  <jas@extundo.com>
95640         * modules/getopt (Depends-on): Add unistd.
95642         * modules/unistd: New file.
95644 2006-03-07  Simon Josefsson  <jas@extundo.com>
95646         * modules/gc-random: New file.
95648 2006-03-07  Simon Josefsson  <jas@extundo.com>
95650         * m4/unistd_h.m4: New file.
95652 2006-03-07  Simon Josefsson  <jas@extundo.com>
95654         * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
95655         test to be side-effect free by storing the result in the cache
95656         variable gl_cv_lib_readline, and moving the assignment of
95657         LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
95658         From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
95660 2006-03-07  Simon Josefsson  <jas@extundo.com>
95662         * m4/gc-random.m4: New file, mostly from gc.m4.  Warn instead of
95663         error on missing devices (the functions will return an error).
95665         * m4/gc.m4: Move random stuff to gc-random.m4
95667 2006-03-07  Simon Josefsson  <jas@extundo.com>
95669         * lib/unistd_.h: New file.
95671 2006-03-07  Simon Josefsson  <jas@extundo.com>
95673         * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
95675 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
95677         * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
95678         Problem reported by Juan Manuel Guerrero.
95680 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
95682         * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
95683         the unistd module.
95684         * lib/getlogin_r.c: Likewise.
95685         * lib/getlogin_r.h: Likewise.
95686         * lib/glob.c: Likewise.
95687         * lib/pagealign_alloc.c: Likewise.
95688         * lib/unistd_.h: Remove; no longer needed.
95690 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
95692         * MODULES.html.sh (Support for systems lacking POSIX:2001):
95693         Add unistd.
95694         * modules/c-stack (Depends-on): Add unistd.
95695         * modules/getlogin_r: Likewise.
95696         * modules/glob: Likewise.
95697         * modules/pagealign_alloc: Likewise.
95698         * modules/unistd (Files): Remove lib/unistd_.h.
95699         (EXTRA_DIST): Remove.
95700         (unistd.h): Create using 'echo' rather than 'cp', so that we don't
95701         need unistd_.h.
95702         (MOSTLYCLEANFILES): Remove unistd.h-t.
95704 2006-03-03  Simon Josefsson  <jas@extundo.com>
95706         * build-aux/maint.mk: Add several syntax checks from CoreUtils.
95708 2006-03-03  Simon Josefsson  <jas@extundo.com>
95710         * build-aux/maint.mk: Add refresh-po rule, based on ideas from
95711         libidn and bison.
95713 2006-03-03  Simon Josefsson  <jas@extundo.com>
95715         * build-aux/maint.mk: Add indent target.
95717 2006-03-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de> (tiny change)
95719         * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
95720         our replacement poll.h in any case, to avoid a differing
95721         declaration from a system header.  Seen on AIX.
95723 2006-03-01  Simon Josefsson  <jas@extundo.com>
95725         * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
95726         <kasal@ucw.cz>.
95728 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
95730         * modules/gettime (Depends-on): Add extensions module.
95731         * modules/nanosleep (Depends-on): Likewise.
95732         * modules/settime (Depends-on): Likewise.
95734 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
95736         * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
95737         not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
95738         pedantically.
95739         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
95740         * m4/timespec.m4 (gl_TIMESPEC): Likewise.
95742         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
95743         not "==".  Reported by Ralf Wildenhues.
95745 2006-03-01  Karl Berry  <karl@gnu.org>
95747         * doc/Copyright/request-*: new files, synced from gnuorg.
95749 2006-03-01  Karl Berry  <karl@gnu.org>
95751         * config/srclist.txt (Copyright/*): new entries.
95753 2006-02-28  Simon Josefsson  <jas@extundo.com>
95755         * lib/getopt.c: Protect #include of unistd.h, for MSVS.
95757 2006-02-27  Simon Josefsson  <jas@extundo.com>
95759         * lib/base64.h: Indent #define's.  From Jim Meyering
95760         <jim@meyering.net>.
95762 2006-02-27  Jim Meyering  <jim@meyering.net>
95764         Revert the change of 2006-02-24, so these files can continue
95765         to be sync'd from gettext.
95766         * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
95767         of `config.h'.
95769 2006-02-26  Paul Eggert  <eggert@cs.ucla.edu>
95771         * modules/intprops: New file.
95772         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
95773         Add intprops.
95774         * modules/getloadavg (Files): Remove lib/intprops.h.
95775         (Depends-on): Add intprops.
95776         * modules/human: Likewise.
95777         * modules/inttostr: Likewise.
95778         * modules/openat: Likewise.
95779         * modules/sig2str: Likewise.
95780         * modules/userspec: Likewise.
95781         * modules/utimecmp: Likewise.
95782         * modules/xnanosleep: Likewise.
95783         * modules/xstrtol: Likewise.
95785 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny changes)
95787         * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
95788         * modules/lock-tests (TESTS): Use $(EXEEXT).
95789         * modules/tls-tests: Likewise.
95790         * modules/argp-tests: Likewise.
95791         (check_PROGRAMS): New var, replacing...
95792         (noinst_PROGRAMS, test_argp_SOURCES): Remove.
95794 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
95796         * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
95797         `config.h'.
95799 2006-02-24  Paul Eggert  <eggert@cs.ucla.edu>
95801         * lib/glob.c: Say "invalid" rather than "illegal" in comments.
95803 2006-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
95805         Sync from coreutils.
95806         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
95807         gl_CHDIR_SAFER.
95809 2006-02-22  Jim Meyering  <jim@meyering.net>
95811         Sync from coreutils.
95812         * m4/chdir-safer.m4: New file.
95814 2006-02-20  Paul Eggert  <eggert@cs.ucla.edu>
95816         * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
95817         AT_FDCWD exceeds INT_MAX.
95818         * lib/openat.h (AT_FDCWD): Likewise.
95820 2006-02-17  Eric Blake  <address@hidden>
95822         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
95824 2006-02-16  Simon Josefsson  <jas@extundo.com>
95826         * modules/getaddrinfo (Depends-on): Add sys_socket.
95828 2006-02-15  Simon Josefsson  <jas@extundo.com>
95830         * build-aux/maint.mk: Add dsyntax-check rule.
95832 2006-02-15  Eric Blake  <ebb9@byu.net>
95834         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
95835         winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
95836         'present but cannot compile' warnings on cygwin.
95837         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET.  Don't
95838         use ws2tcpip.h if sys/socket.h works.
95839         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
95840         (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
95842 2006-02-14  Simon Josefsson  <jas@extundo.com>
95844         * modules/maintainer-makefile (Files): Rename.
95846         * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
95847         and (the local) Makefile.cfg to maint-cfg.mk.
95849         * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
95850         to the latter.
95852         * modules/maintainer-makefile: New module.
95854         * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
95855         severaly stripped to make it possible to build it up from scratch
95856         with reliable tests.
95858         * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
95859         fixes to permit overriding the default actions when configure and
95860         makefile are not available.
95862 2006-02-14  Paul Eggert  <eggert@cs.ucla.edu>
95864         Sync from coreutils.
95865         * modules/lstat (Depends-on): Don't depend on xalloc.
95866         (License): Change from GPL to LGPL, since this is now simply a
95867         replacement for a libc function.
95869 2006-02-14  Jim Meyering  <jim@meyering.net>
95871         Sync from coreutils.
95873         Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
95874         failure on deficient systems, and simplify gnulib lgpl dependencies.
95875         * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
95876         xmalloc/lstat combination.  Based on a patch from Bruno Haible.
95878         * lib/xalloc-die.c: Remove unused definition of N_.
95880 2006-02-14  Jim Meyering  <jim@meyering.net>
95882         Sync from coreutils.
95883         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
95884         AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
95885         $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
95886         double-quote uses of that variable, to accommodate the rare case in
95887         which getmntent is available in none of the libraries checked.  This
95888         happens at least on FreeBSD 5.0.
95890 2006-02-13  Simon Josefsson  <jas@extundo.com>
95892         * gnulib-tool (Usage): Fix --import, from
95893         karl@freefriends.org (Karl Berry).
95895 2006-02-13  Sergey Poznyakoff  <gray@gnu.org.ua>
95897         * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
95899 2006-02-07  Sergey Poznyakoff  <gray@gnu.org.ua>
95901         * lib/argp-namefrob.h: Restore changes accidentally lost during the
95902         "autoupdate" on 2005-12-12.
95904 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
95906         * modules/closeout (Depends-on): Remove atexit.
95908 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
95910         * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
95911         ints to 0 or 1, as this isn't true for the stdbool.h substitute.
95913 2006-02-05  Paul Eggert  <eggert@cs.ucla.edu>
95915         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
95916         __EXTENSIONS__ if this causes compilation to fail.  Problem
95917         reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
95918         c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
95920 2006-01-27  Paul Eggert  <eggert@cs.ucla.edu>
95922         * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
95923         Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
95924         <http://lists.gnu.org/archive/html/bug-gnulib/2006-01/msg00074.html>.
95925         All uses changed.
95927 2006-01-26  Simon Josefsson  <jas@extundo.com>
95929         * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
95930         prototype is visible on mingw32.
95932         * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
95933         for mingw32.
95935         * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
95936         mingw32).
95938 2006-01-26  Paul Eggert  <eggert@cs.ucla.edu>
95940         * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too.  Don't
95941         attempt to open for write; this always fails, at least on POSIX
95942         hosts.  This reinstates the 2006-01-09 change, which was
95943         inadvertently removed.
95945 2006-01-26  Bruno Haible  <bruno@clisp.org>
95947         * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
95948         Reported by Paul Eggert.
95950 2006-01-26  Bruno Haible  <bruno@clisp.org>
95951             Paul Eggert  <eggert@cs.ucla.edu>
95953         * lib/stdbool_.h (_Bool)
95954         [(! (defined __cplusplus || defined __BEOS__)
95955           && !defined __GNUC__
95956           && !(defined __HP_cc || defined __xlc__
95957                || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
95958                || defined __sgi))]:
95959         #define to signed char in these cases too; this simplifies
95960         the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
95961         etc., separately) and makes it more conservative.
95963 2006-01-25  Simon Josefsson  <jas@extundo.com>
95965         * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
95966         -lws2_32.  Protect sys/socket.h and netdb.h #include's.  Include
95967         ws2tcpip.h with WINVER=0x0501.  All for mingw32.
95969 2006-01-25  Sergey Poznyakoff  <gray@gnu.org.ua>
95971         * lib/argp-namefrob.h: Bugfix. Remove stray #
95973 2006-01-25  Paul Eggert  <eggert@cs.ucla.edu>
95975         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
95976         so that we test the test.
95977         Check for yet another HP-UX cc bug involving *bool |= bool.
95979 2006-01-25  Karl Berry  <karl@gnu.org>
95981         * config/srclist.txt (vasnprintf.c): sync lost.
95983 2006-01-25  Jim Meyering  <jim@meyering.net>
95985         Sync from the stable (b5) branch of coreutils:
95987         * lib/fts.c (fts_children): Don't let close() clobber errno from
95988         failed fchdir().
95990         * lib/fts.c (fts_stat): When following a symlink-to-directory,
95991         don't necessarily interpret stat-fails+lstat-succeeds as indicating
95992         a dangling symlink.  That can also happen at least for ELOOP.
95993         The fix: return FTS_SLNONE only when the stat errno is ENOENT.
95994         FYI, this bug predates the inclusion of fts.c in coreutils.
95996         * lib/fts.c (fts_open): Put new maxarglen declaration and uses
95997         in their own block, so pre-c99 compilers don't object.
95999         Avoid the double-free (first in fts_read, second in fts_close) that
96000         would occur when an `active' directory is made inaccessible (e.g.,
96001         via chmod a-x) during a traversal.
96002         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
96003         before returning.  Reproduce this failure by
96004         mkdir -p a/b; cd a; chmod a-x . b
96005         Reported by Stavros Passas.
96007 2006-01-25  Jim Meyering  <jim@meyering.net>
96009         * lib/fileblocks.c: Remove more useless parentheses.
96010         * lib/readutmp.h: Likewise.
96012 2006-01-25  Bruno Haible  <bruno@clisp.org>
96014         * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
96015         warnings.
96016         Reported by Paul Eggert.
96018 2006-01-25  Bruno Haible  <bruno@clisp.org>
96020         * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
96021         rid of a trap command. For Solaris sh.
96022         Reported by Mark D. Baushke <mdb@gnu.org>.
96024 2006-01-24  Simon Josefsson  <jas@extundo.com>
96026         * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
96027         Bruno.
96029 2006-01-24  Karl Berry  <karl@gnu.org>
96031         * config/srclist.txt (argp-namefrob.h): sync lost.
96033 2006-01-24  Jim Meyering  <jim@meyering.net>
96035         * modules/openat (Files): Add lib/intprops.h.
96036         From Mark D. Baushke.
96038 2006-01-24  Jim Meyering  <jim@meyering.net>
96040         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
96041         Reported by Mark D. Baushke.
96043 2006-01-24  Jim Meyering  <jim@meyering.net>
96045         * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
96047 2006-01-24  Bruno Haible  <bruno@clisp.org>
96049         * modules/strnlen (Maintainer): Change from glibc to all.
96051 2006-01-24  Bruno Haible  <bruno@clisp.org>
96053         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
96054         Patch by Paul Eggert.
96056 2006-01-24  Bruno Haible  <bruno@clisp.org>
96058         * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
96059         already has it.
96060         Report and patch by Albert Chin-A-Young  <china@thewrittenword.com> on
96061         2005-11-26.
96063         * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
96064         'signed char' to avoid problems with the built-in _Bool type.
96065         Reported by Paul Eggert on 2005-11-26.
96067 2006-01-24  Bruno Haible  <bruno@clisp.org>
96069         * gnulib-tool (func_import): Avoid constructing complicated sed
96070         expressions inside backquote.
96071         Report and solution by Mark D. Baushke <mdb@gnu.org>.
96073 2006-01-23  Ulrich Drepper  <drepper@redhat.com>
96075         These changes imported from libc.
96076         * lib/getopt.c: Use __fxprintf instead of inline stream orientation
96077         test and two separate function calls.
96078         * lib/strndup.c (__strndup): Add libc_hidden_def.
96080 2006-01-23  Simon Josefsson  <jas@extundo.com>
96082         * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
96083         Remove the test_*_SOURCES variable: automake infers it by default.
96084         * modules/tls-tests: Likewise.
96086 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
96088         Work around porting bugs reported by Dieter in
96089         <http://lists.gnu.org/archive/html/bug-bison/2006-01/msg00049.html>.
96090         * lib/getopt.c (_NOPROTO): Remove; no longer needed.
96091         Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
96092         Include "getopt.h" first, to check interface.
96093         (getenv): Declare only if defined HAVE_DECL_GETENV &&
96094         !HAVE_DECL_GETENV.
96095         * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
96096         (__strndup): Revert to K&R-style function dfns, the glibc style.
96097         * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
96098         (strnlen, __strnlen): Remove #defines and #undefs; not needed.
96099         Include strnlen.h first, to get prototype properly.
96100         (strnlen): Renamed from __strnlen.
96101         Remove weak alias.
96103 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
96105         * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
96107 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
96109         * config/srclist.txt: Adjust to reflect glibc reorganization.
96110         This affects only comments.
96112 2006-01-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
96114          * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
96115          Reported by Bruce Korb <bkorb@gnu.org>.
96117 2006-01-22  Paul Eggert  <eggert@cs.ucla.edu>
96119         * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
96120         to pacify gcc -Wswitch-default.
96122 2006-01-22  Bruno Haible  <bruno@clisp.org>
96124         * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
96125         temporary buffer for sprintf, take into account the precision also
96126         for 'd', 'i', 'u', 'o', 'x', 'X'.
96128 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
96130         * modules/argp-tests: New module
96131         * tests/test-argp.c: New file
96132         * tests/test-argp-2.sh: New file
96134 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
96136         * lib/argp-help.c (usage_long_opt): Do not print DOC options.
96137         (__argp_base_name): Removed
96138         * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
96139         typo.
96140         (__argp_base_name): Provide macro definition or extern declaration
96141         depending on the configuration
96143 2006-01-20  Simon Josefsson  <jas@extundo.com>
96145         * modules/inet_ntop (Depends-on): Depend on sys_socket.
96147 2006-01-20  Simon Josefsson  <jas@extundo.com>
96149         * lib/inet_ntop.h: Unconditionally include sys/socket.h.
96151 2006-01-20  Paul Eggert  <eggert@cs.ucla.edu>
96153         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
96154         rather than -Xlinker -z -Xlinker ignore, as it's more portable.
96155         Suggested by Bruno Haible.
96157 2006-01-20  Karl Berry  <karl@gnu.org>
96159         * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
96160         until changes propagate, I guess.
96162 2006-01-19  Simon Josefsson  <jas@extundo.com>
96164         * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
96166 2006-01-19  Simon Josefsson  <jas@extundo.com>
96168         * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
96170 2006-01-19  Simon Josefsson  <jas@extundo.com>
96172         * gnulib-tool: Set check_PROGRAMS.
96174         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
96175         modules/des-tests, modules/gc-arcfour-tests,
96176         modules/gc-arctwo-tests, modules/gc-des-tests,
96177         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
96178         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
96179         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
96180         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
96181         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
96182         modules/md5-tests, modules/readline, modules/rijndael-tests: Use
96183         check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
96184         test_*_SOURCES.
96186 2006-01-18  Simon Josefsson  <jas@extundo.com>
96188         * modules/socklen (Depends-on): Depend on sys_socket.
96190 2006-01-18  Simon Josefsson  <jas@extundo.com>
96192         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
96193         modules/des-tests, modules/gc-arcfour-tests,
96194         modules/gc-arctwo-tests, modules/gc-des-tests,
96195         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
96196         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
96197         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
96198         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
96199         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
96200         modules/md5-tests, modules/readline, modules/rijndael-tests: Add
96201         $(EXEEXT) to automake TESTS variable, for mingw32.
96203 2006-01-17  Simon Josefsson  <jas@extundo.com>
96205         * modules/socklen (Include): Need sys/socket.h.
96207 2006-01-17  Bruno Haible  <bruno@clisp.org>
96209         * modules/ssize_t (Include): Add <sys/types.h>.
96211 2006-01-16  Paul Eggert  <eggert@cs.ucla.edu>
96213         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
96214         it's not portable and it doesn't work with cross-compiles.
96215         Problem reported by Bruno Haible.  Fix missing-$ typo in
96216         'test "gl_cv_ignore_unused_libraries" ...' that prevented
96217         -zignore from being used with Sun's C compiler.
96219 2006-01-12  Simon Josefsson  <jas@extundo.com>
96221         * lib/base64.c: Fix warning, reported by Bruno Haible
96222         <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
96224 2006-01-12  Bruno Haible  <bruno@clisp.org>
96226         * modules/ldd: New file.
96227         * build-aux/ldd.sh.in: New file.
96228         * MODULES.html.sh (Support for building libraries and executables): Add
96229         ldd.
96231 2006-01-12  Bruno Haible  <bruno@clisp.org>
96233         * m4/ldd.m4: New file.
96235 2006-01-12  Bruno Haible  <bruno@clisp.org>
96237         * gnulib-tool (func_import, func_create_testdir): Don't go into an
96238         endless loop while replacing $auxdir with build-aux.
96240 2006-01-11  Simon Josefsson  <jas@extundo.com>
96242         * lib/stdint_.h (SIZE_MAX): Add missing (.
96244 2006-01-11  Paul Eggert  <eggert@cs.ucla.edu>
96246         Sync from coreutils.
96247         * lib/md5.c: Fix commentary typos.
96248         (alignof, UNALIGNED_P): No need for a GCC-specific version.
96249         * lib/md5.h (__attribute__): Remove; unused.
96250         * lib/sha1.c: Fix commentary to match md5 better.
96251         * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
96252         so that we don't need to worry about alignment.  All uses changed.
96253         This merges the 2005-10-28 md5 change into sha1.
96255 2006-01-11  Jim Meyering  <jim@meyering.net>
96257         Sync from coreutils.
96258         * lib/md5.c (OP): Fix spacing.
96260 2006-01-11  Bruno Haible  <bruno@clisp.org>
96262         Ensure automatic ordering between gl_LOCK and gl_ARGP.
96263         * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
96264         (gl_LOCK): New macro, requiring gl_LOCK_BODY.
96266 2006-01-11  Bruno Haible  <bruno@clisp.org>
96268         Ensure automatic ordering between gl_LOCK and gl_ARGP.
96269         * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
96270         the "early" section as well.
96272 2006-01-11  Bruno Haible  <bruno@clisp.org>
96274         Avoid "ar: no archive members specified" error on MacOS X.
96275         * gnulib-tool (func_modules_add_dummy): New function.
96276         (func_import, func_create_testdir): Invoke it.
96278 2006-01-11  Bruno Haible  <bruno@clisp.org>
96280         * gnulib-tool (func_import, func_create_testdir): Replace build-aux
96281         with $auxdir in AC_CONFIG_FILES statements.
96283 2006-01-11  Bruno Haible  <bruno@clisp.org>
96285         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
96286         Initialize also noinst_HEADERS to empty.
96288 2006-01-11  Bruno Haible  <bruno@clisp.org>
96290         * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
96291         variables.
96292         (func_create_megatestdir): Call aclocal, autoconf, automake here, not
96293         autoreconf.
96295 2006-01-11  Bruno Haible  <bruno@clisp.org>
96297         * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
96298         overridable by the user.
96299         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
96301 2006-01-10  Simon Josefsson  <jas@extundo.com>
96303         * modules/sys_socket: New file.
96305 2006-01-10  Simon Josefsson  <jas@extundo.com>
96307         * m4/sys_socket_h.m4: New file.
96309 2006-01-10  Simon Josefsson  <jas@extundo.com>
96311         * lib/socket_.h: New file.
96313 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
96315         * modules/readutmp (Maintainer): Add myself.
96317 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
96319         * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
96320         the 2002-12-31 change.  Problem and fix reported by Bruno Haible.
96321         People who are still concerned with buggy memcmp implementations
96322         can invoke gl_FUNC_MEMCMP themselves.
96324 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
96326         * lib/regex_internal.h (BITSET_WORD_BITS):
96327         Work around a bug in 64-bit PGC (before version 6.1-2), where the
96328         preprocessor mishandles large unsigned values as if they were signed.
96329         Problem reported by Claudio Fontana in
96330         <http://lists.gnu.org/archive/html/bug-gnulib/2005-12/msg00061.html>.
96332 2006-01-10  Jim Meyering  <jim@meyering.net>
96334         Avoid the double-free (first in fts_read, second in fts_close) that
96335         would occur when an `active' directory is made inaccessible (e.g.,
96336         via chmod a-x) during a traversal.
96337         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
96338         before returning.  Reproduce this failure by
96339         mkdir -p a/b; cd a; chmod a-x . b
96340         Reported by Stavros Passas.
96342         Sync from coreutils.
96343         * lib/sha1.c: Tweak grammar in a comment.
96345 2006-01-10  Jim Meyering  <jim@meyering.net>
96347         * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
96348         Patch by Joerg Sonnenberger.
96350 2006-01-10  Bruno Haible  <bruno@clisp.org>
96352         * modules/readutmp: Depend on module free.
96353         * modules/strtok_r: Depend on module restrict.
96355 2006-01-10  Bruno Haible  <bruno@clisp.org>
96357         * modules/gettext (configure.ac): Add an invocation of
96358         AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
96360 2006-01-10  Bruno Haible  <bruno@clisp.org>
96362         * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
96363         Reported by Werner Lemberg <wl@gnu.org>.
96365 2006-01-10  Bruno Haible  <bruno@clisp.org>
96367         * lib/localcharset.c: Update from GNU gettext.
96369 2006-01-10  Bruno Haible  <bruno@clisp.org>
96371         * lib/argp.h (__const): Remove macro. Use const instead.
96372         * lib/argp-fmtstream.h (__const): Likewise.
96373         * lib/glob_.h (__const): Remove macro.
96374         * lib/glob-libc.h: Use const instead of __const.
96376 2006-01-10  Bruno Haible  <bruno@clisp.org>
96378         * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
96379         variable.
96380         Needed to avoid an automake error regarding the 'gettext' module.
96382 2006-01-09  Simon Josefsson  <jas@extundo.com>
96384         * modules/inet_ntop (Depends-on): Add restrict.
96386 2006-01-09  Simon Josefsson  <jas@extundo.com>
96388         * modules/gc-rijndael-tests (License): Put under LGPL.
96390         * modules/gc-des-tests (License): Likewise.
96392         * modules/gc-arcfour-tests (License): Likewise.
96394         * modules/gc-arctwo-tests (License): Likewise.
96396         * modules/gc-pbkdf2-sha1-tests (License): Likewise.
96398         * modules/gc-hmac-sha1-tests (Files): Likewise.
96400         * modules/gc-hmac-md5-tests (License): Likewise.
96402         * modules/gc-sha1-tests (License): Likewise.
96404         * modules/gc-md5-tests (License): Likewise.
96406         * modules/gc-md4-tests (License): Likewise.
96408         * modules/gc-md2-tests (License): Likewise.
96410         * modules/gc-tests (License): Likewise.
96412         * modules/des-tests (License): Likewise.
96414         * modules/md4-tests (License): Likewise.
96416         * modules/md2-tests (License): Likewise.
96418 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
96420         Sync from coreutils:
96422         * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
96423         * modules/lib-ignore: New file.
96424         * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
96425         chdir-safer.m4, lchmod.m4.
96426         * modules/openat: Add mkdirat.c, openat-priv.h.
96428 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
96430         Sync from coreutils.
96431         * m4/lib-ignore.m4: New file.
96432         * m4/lchmod.m4: New file.
96434 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
96436         Sync from coreutils.
96437         * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
96438         for write access: POSIX says that must fail.
96439         * lib/fts.c (diropen): Likewise.
96440         * lib/save-cwd.c (save_cwd): Likewise.
96441         * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
96442         well, for minor improvements on hosts that lack O_DIRECTORY.
96443         * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
96444         Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
96445         Fall back on chown if open failed with EACCES.
96447         * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
96448         Report an error at compile-time if only a 1-second nominal clock
96449         resolution is found.
96451         * lib/lchmod.h: New file.
96452         * lib/mkdir-p.c: Include lchmod.h, lchown.h.
96453         (make_dir_parents): Use lchown rather than chown, and
96454         lchmod rather than chmod.
96456         * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
96457         dummies too.  Problem with "none" reported by Bob Proulx.  Problem with
96458         "proc" reported by n0dalus.
96460         * lib/mountlist.c: Include <limits.h>.
96461         (dev_from_mount_options)
96462         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
96463         New function.  It no longer assumes "dev=" has the System V meaning
96464         on Linux (since it doesn't).  It also parses "dev=" more carefully.
96465         (read_file_system_list)
96466         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
96467         MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
96468         dev= in that case.
96470         * lib/posixtm.h (PDS_PRE_2000): New macro.
96471         * lib/posixtm.c (year): Arg is now syntax_bits rather than
96472         allow_century.  All usages changed.  Reject dates outside the range
96473         1969-1999 if PDS_PRE_2000 is used.
96475 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
96477         Sync from coreutils.
96478         * doc/getdate.texi (General date syntax): Invalid dates are rejected.
96479         (Time of day items): Mention the possibility of leap seconds.
96480         Problem reported by Dr. David Alan Gilbert.
96482 2006-01-09  Jim Meyering  <jim@meyering.net>
96484         Sync from coreutils.
96486         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
96488         * lib/chdir-safer.h, lib/chdir-safer.c: New files.
96490         * lib/modechange.c (mode_compile): Reject an invalid mode string
96491         that starts with an octal digit.  From Andreas Gruenbacher.
96493         * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
96494         and dup to open_safer and dup_safer, respectively.
96495         (openat_permissive): Fix typo in comment.
96497         * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
96498         "gettext.h"; either no longer needed or are guaranteed by openat.h.
96499         (_): Remove; no longer needed.
96500         (openat): Renamed from rpl_openat; no need for rpl_openat
96501         since openat.h renames openat for us.
96502         Replace most of the body with a call to openat_permissive,
96503         to avoid duplicate code.
96504         Port to (probably hypothetical) environments were mode_t is
96505         wider than int.
96506         (openat_permissive): Require mode arg, so that we can check
96507         types better.  Put it just after flags.  Change cwd failure
96508         indicator from pointer-to-bool to pointer-to-errno-value.
96509         All callers changed.
96510         Invoke openat_save_fail and/or openat_restore_fail if
96511         cwd_errno is null, so that openat can call us.
96512         (openat_permissive, fdopendir, fstatat, unlinkat):
96513         Simplify errno handling to avoid some duplicate code,
96514         as it's OK to set errno on success.
96515         * lib/openat.h: Revamp code so that function macros depend on
96516         __OPENAT_PREFIX only, not also on AT_FDCWD.
96517         (openat_ro): Remove.  Caller changed to use openat_permissive.
96518         (openat_permissive): Now a macro, if not a function.
96519         (openat_restore_fail, openat_save_fail): Now always functions,
96520         since mkdirat needs them even if __OPENAT_PREFIX is defined.
96522         * lib/openat-priv.h: New file, defining macros used by mkdirat.c
96523         and openat.c.
96524         * lib/mkdirat.c: Include openat-priv.h.
96525         Remove definitions of macros defined therein.
96526         * lib/openat.c: Likewise.
96528         * lib/mkdirat.c (mkdirat): New file and function.
96529         * lib/openat.h (mkdirat): Declare.
96531         * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
96533         * lib/openat.h (openat_permissive): Declare.
96534         (openat_ro): Define.
96536         * lib/openat.c (EXPECTED_ERRNO): New macro.
96537         (openat_permissive): New function -- used in remove.c rewrite.
96538         (all functions): Set errno just before returning, only if there
96539         was an actual failure.
96540         Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
96542         Emulate openat-family functions using Linux's procfs, if possible.
96543         Idea and some code based on Ulrich Drepper's glibc changes.
96545         * lib/openat.c: (BUILD_PROC_NAME): New macro.
96546         Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
96547         (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
96548         before falling back on save_cwd and restore_cwd.
96549         (fdopendir, fstatat, unlinkat): Likewise.
96551         * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
96552         skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
96554         * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
96555         as second argument to va_arg.  Otherwise, some versions of gcc
96556         warn that `if this code is reached, the program will abort'.
96558 2006-01-09  Jim Meyering  <jim@meyering.net>
96560         Sync from coreutils.
96561         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
96562         Require openat-priv.h.
96564 2006-01-09  Bruno Haible  <bruno@clisp.org>
96566         * modules/strnlen (Include): Use strnlen.h.
96568 2006-01-09  Bruno Haible  <bruno@clisp.org>
96570         * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
96572 2006-01-09  Bruno Haible  <bruno@clisp.org>
96574         * lib/sysexit_.h (EX_OK): New macro.
96575         Suggested by Martin Lambers <marlam@marlam.de>.
96577 2006-01-09  Bruno Haible  <bruno@clisp.org>
96579         * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
96580         don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
96582 2006-01-09  Bruno Haible  <bruno@clisp.org>
96584         * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
96585         numbers.
96587 2006-01-09  Bruno Haible  <bruno@clisp.org>
96589         * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
96590         * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
96591         * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
96592         * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
96594 2006-01-09  Bruno Haible  <bruno@clisp.org>
96596         * build-aux/javacomp.sh.in: New file, moved from lib/.
96597         * modules/javacomp-script (Files): Update.
96598         (configure.ac): Add AC_CONFIG_FILES invocation.
96599         (EXTRA_DIST): Remove variable.
96601         * build-aux/javaexec.sh.in: New file, moved from lib/.
96602         * modules/javaexec (Files): Update.
96603         (configure.ac): Add AC_CONFIG_FILES invocation.
96604         (EXTRA_DIST): Remove javaexec.sh.in.
96606         * build-aux/csharpcomp.sh.in: New file, moved from lib/.
96607         * modules/csharpcomp-script (Files): Update.
96608         (configure.ac): Add AC_CONFIG_FILES invocation.
96609         (EXTRA_DIST): Remove variable.
96611         * build-aux/csharpexec.sh.in: New file, moved from lib/.
96612         * modules/csharpexec (Files): Update.
96613         (configure.ac): Add AC_CONFIG_FILES invocation.
96614         (EXTRA_DIST): Remove csharpexec.sh.in.
96616 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
96618         Sync from coreutils.
96620         Add POSIX ACL support
96621         * lib/acl.h (copy_acl, set_acl): Add declarations.
96622         * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
96623         systems other than Linux.
96624         (chmod_or_fchmod): New function: use fchmod when possible,
96625         and chmod otherwise.
96626         (file_has_acl): Add a POSIX ACL implementation, with a
96627         Linux-specific subcase.
96628         (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
96629         S_ISVTX from one file to another.  Fall back to fchmod/chmod when
96630         acls are unsupported.
96631         (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
96632         S_ISVTX to a defined value.  Fall back to fchmod/chmod when acls
96633         are unsupported.
96635 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
96637         Sync from coreutils.
96638         * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
96640 2006-01-07  Bruno Haible  <bruno@clisp.org>
96642         * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
96643         gl_EARLY.
96645 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
96647         * lib/strftime.c (tzname): Don't declare if it is already #defined.
96648         Problem reported for Mingw by Mark Junker.
96650 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
96652         * README: Gnulib normally doesn't generate a tarball.
96654 2006-01-03  Paul Eggert  <eggert@cs.ucla.edu>
96656         * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
96657         long int, not int, for nanosecond counts, so that people who are
96658         used to POSIX struct timespec won't be surprised.  Reported by Jim
96659         Meyering.
96661 2005-12-28  Bruno Haible  <bruno@clisp.org>
96663         * build-aux/config.rpath: Update from GNU gettext.
96665 2005-12-16  Jim Meyering  <jim@meyering.net>
96667         * modules/fprintftime: New module.
96668         * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
96670 2005-12-16  Jim Meyering  <jim@meyering.net>
96672         * m4/fprintftime.m4: New file.
96674 2005-12-16  Jim Meyering  <jim@meyering.net>
96676         * lib/fprintftime.c, lib/fprintftime.h: New files.
96678 2005-12-15  Simon Josefsson  <jas@extundo.com>
96680         * modules/socklen (configure.ac): Fix M4 macro name, to align with
96681         new m4/socklen.m4.
96683 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
96685         * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
96686         HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
96688 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
96690         * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
96691         * lib/argp-help.c (fill_in_uparams): Check if the constructed
96692         struct uparams is valid. Fall back to the default values if it is
96693         not.
96695 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
96697         * modules/argp (Files): Add argp-pin.c
96698         (Depends-on): dirname
96699         (lib_SOURCES): Add argp-pin.c
96701 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
96703         * m4/argp.m4:  Check if program_invocation_name and
96704         program_invocation_short_name are declared and define appropriate
96705         macros if they are not.
96707 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
96709         * lib/argp-help.c (__argp_base_name): New function
96710         (__argp_short_program_name): Rewrite using __argp_base_name
96711         * lib/argp-namefrob.h: Define program_invocation_name and
96712         program_invocation_short_name if requested
96713         (__argp_base_name): Add prototype
96714         * lib/argp-parse.c (argp_def): Use gettext wrappers
96715         (argp_default_parser): Use __argp_base_name
96716         * lib/argp-pin.c: New file. Defines program_invocation_name and
96717         program_invocation_short_name on systems that lack them.
96719 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
96721         * m4/stat-time.m4 (gl_STAT_TIME): Add check for
96722         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
96723         porting problem reported by Georg Schwarz in
96724         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
96726 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
96728         * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
96729         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
96730         porting problem reported by Georg Schwarz in
96731         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
96733 2005-12-05  Bruno Haible  <bruno@clisp.org>
96735         * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
96736         * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
96737         Reported by Mark Junker <mjscod@gmx.de>.
96739 2005-12-02  Paul Eggert  <eggert@cs.ucla.edu>
96741         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
96742         Use implementation from Albert Chin, with some
96743         comments/corrections by Stepan Kasal and myself.
96745 2005-12-02  Bruno Haible  <bruno@clisp.org>
96747         * gnulib-tool (func_import): Accept GPLed build tool modules when
96748         --lgpl is given.
96749         * modules/csharpcomp-script: New file.
96750         * modules/csharpcomp: Depend on it.
96751         * modules/javacomp-script: New file.
96752         * modules/javacomp: Depend on it.
96753         Suggested by Simon Josefsson.
96755 2005-12-01  Paul Eggert  <eggert@cs.ucla.edu>
96757         * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
96758         statement, to work around an HP-UX 10.20 compiler bug reported by
96759         Peter O'Gorman.
96761 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
96763         * modules/savedir (Depends-on): Add openat.
96765 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
96767         * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
96768         (uintmax_t) [defined uintmax_t]: Do not declare.
96769         (SIZE_MAX) [defined SIZE_MAX]: Do not define.
96770         This works around a problem if intmax_t.m4 and/or uintmax_t.m4
96771         and/or size_max.m4 are also used.  Problem reported by Mark D. Baushke.
96772         (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
96773         sake of portability to weird hosts that C allows (though we don't
96774         know of any practical examples).
96776         * lib/savedir.h (fdsavedir): New decl.
96777         * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
96778         contains most of the former guts of savedir.
96779         (savedir): Use savedirstream.
96780         Include "openat.h".
96782 2005-11-25  Paul Eggert  <eggert@cs.ucla.edu>
96784         * modules/obstack (Files): Add m4/ulonglong.m4.
96785         Problem reported by Davide Angelocola.
96787 2005-11-15  Paul Eggert  <eggert@cs.ucla.edu>
96789         * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
96790         coreutils no longer futzes with rounding modes.
96792 2005-11-14  Jim Meyering  <jim@meyering.net>
96794         * lib/mkstemp-safer.c: Include <config.h>, required for possible
96795         replacement of mkstemp.
96797 2005-11-10  Simon Josefsson  <jas@extundo.com>
96799         * lib/readline.c: Remove EOL.
96801 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
96803         * modules/gethrxtime (Depends-on): Add gettime.
96805 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
96807         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
96808         or gettimeofday; no longer needed.
96810 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
96812         * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
96813         time business.
96814         (gethrxtime) [! (HAVE_NANOUPTIME
96815         || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
96816         || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
96817         our own approximation.
96819 2005-11-08  Eric Blake  <ebb9@byu.net>
96821         * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
96823 2005-11-08  Eric Blake  <ebb9@byu.net>
96825         * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
96827 2005-11-04  Bruno Haible  <bruno@clisp.org>
96829         * gnulib-tool: Implement --update mode.
96831 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
96833         Fix porting problem reported by Theodoros V. Kalamatianos.
96834         * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
96835         Don't assume that futimes failing means we must fail.
96837 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
96839         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
96840         variables to suggest the intended function of the PATH_MAX check.
96842 2005-10-30  Kean Johnston  <jkj@sco.com>
96844         Trivial changes to support SCO systems.
96845         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
96846         as PATH_MAX.
96847         * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
96848         where __ptr is null when no I/O is pending.
96850 2005-10-29  Paul Eggert  <eggert@cs.ucla.edu>
96852         * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
96853         leave errno alone.  Problem reported by Dmitry V. Levin.
96855 2005-10-28  Simon Josefsson  <jas@extundo.com>
96857         * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
96858         Test more.
96860         * tests/test-gc-md2.c, tests/test-md2.c: New files.
96862         * modules/md2, modules/md2-tests: New files.
96864 2005-10-28  Simon Josefsson  <jas@extundo.com>
96866         * m4/inet_ntop.m4: More tests.
96868         * m4/gc-md2.m4, md2.m4: New file.
96870 2005-10-28  Simon Josefsson  <jas@extundo.com>
96872         * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
96873         "restrict" keywords, as per POSIX.  Protect the function
96874         declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
96875         Don't use K&R prototypes.  Check the sprintf return values.
96876         Re-define EAFNOSUPPORT if not present.  Indent.
96878         * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
96879         suggested by Bruno Haible <bruno@clisp.org>.
96881         * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
96883         * lib/gc.h: Add MD2 and RMD160 length defines.  Add prototypes.
96885         * lib/gc-libgcrypt.c: Add MD2 (which is not available through
96886         libgcrypt).
96888         * lib/gc-gnulib.c: Add MD2.  Implement gc_hash_* API.
96890         * lib/md2.h, lib/md2.c: New files.
96892 2005-10-28  Paul Eggert  <eggert@cs.ucla.edu>
96894         * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
96895         errno alone.  Problem reported by Frederic Jolliton.
96897 2005-10-27  Paul Eggert  <eggert@cs.ucla.edu>
96899         * modules/verify (License): Change from GPL to LGPL.  This is a
96900         tiny module and there are apparently near-equivalents that are
96901         under the BSD license.
96903 2005-10-24  Simon Josefsson  <jas@extundo.com>
96905         * modules/sha1: Relicense to LGPL.
96907 2005-10-24  Simon Josefsson  <jas@extundo.com>
96909         * lib/md4.h: Shrink buffer size, now that we changed the type.
96911 2005-10-23  Simon Josefsson  <jas@extundo.com>
96913         * gnulib-tool (func_import): Fix --tests-base.
96915 2005-10-22  Simon Josefsson  <jas@extundo.com>
96917         * modules/arcfour (Depends-on): Need stdint.
96919 2005-10-22  Simon Josefsson  <jas@extundo.com>
96921         * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
96922         suggested by Bruno Haible <bruno@clisp.org>.  Fix error messages.
96924 2005-10-22  Simon Josefsson  <jas@extundo.com>
96926         * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
96927         suggested by Bruno Haible <bruno@clisp.org>.
96929 2005-10-22  Simon Josefsson  <jas@extundo.com>
96931         * lib/crc.h: Include stddef.h, for size_t.
96933 2005-10-22  Simon Josefsson  <jas@extundo.com>
96935         * lib/arcfour.h, arcfour.c: Use fixed size indices in the
96936         arcfour_context struct (simplify test vector testing in GNU
96937         Shishi).
96939 2005-10-21  Simon Josefsson  <jas@extundo.com>
96941         * modules/des, modules/des-tests: New files.
96943         * modules/gc-des, modules/gc-des-tests: New files.
96945         * tests/test-des.c, tests/test-gc-des.c: New file.
96947 2005-10-21  Simon Josefsson  <jas@extundo.com>
96949         * modules/arctwo, modules/arctwo-tests: New files.
96951         * tests/test-arctwo.c: New file.
96953         * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
96955         * tests/test-gc-arctwo.c: New file.
96957 2005-10-21  Simon Josefsson  <jas@extundo.com>
96959         * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
96960         Bruno Haible <bruno@clisp.org>.
96962         * m4/gc-des.m4: New file.
96964 2005-10-21  Simon Josefsson  <jas@extundo.com>
96966         * m4/arctwo.m4: New file.
96968         * m4/gc-arctwo.m4: New file.
96970 2005-10-21  Simon Josefsson  <jas@extundo.com>
96972         * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
96973         block.
96975 2005-10-21  Simon Josefsson  <jas@extundo.com>
96977         * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
96978         <bruno@clisp.org>.
96980         * lib/hmac-sha1.c (hmac_sha1): Likewise.
96982         * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
96983         Bruno Haible <bruno@clisp.org>.
96985         * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
96986         <bruno@clisp.org>.
96988 2005-10-21  Simon Josefsson  <jas@extundo.com>
96990         * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
96992 2005-10-21  Simon Josefsson  <jas@extundo.com>
96994         * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
96996 2005-10-21  Simon Josefsson  <jas@extundo.com>
96998         * lib/des.h, lib/des.c: New files.
97000         * lib/gc-gnulib.c: Support DES.c
97002 2005-10-21  Simon Josefsson  <jas@extundo.com>
97004         * lib/arctwo.h, lib/arctwo.c: New files.
97006         * lib/gc-gnulib.c: Support ARCTWO.
97008 2005-10-21  Simon Josefsson  <jas@extundo.com>
97010         * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
97011         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
97013 2005-10-21  Simon Josefsson  <jas@extundo.com>
97015         * gnulib-tool (func_import, func_create_testdir): Define automake
97016         conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
97017         Makefile.am snippet),
97018         suggested by Bruno Haible <bruno@clisp.org>.
97020         * modules/gc (Makefile.am): Use it.
97022 2005-10-21  Bruno Haible  <bruno@clisp.org>
97024         * gnulib-tool (func_import, func_create_testdir): Add quoting to last
97025         patch.
97027 2005-10-19  Simon Josefsson  <jas@extundo.com>
97029         * tests/test-gc-rijndael.c: New file.
97031         * modules/gc-rijndael, modules/gc-rijndael-test: New files.
97033 2005-10-19  Simon Josefsson  <jas@extundo.com>
97035         * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
97036         interface too.
97038 2005-10-19  Simon Josefsson  <jas@extundo.com>
97040         * tests/test-gc-arcfour.c: New file.
97042         * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
97044 2005-10-19  Simon Josefsson  <jas@extundo.com>
97046         * modules/gc-md4, modules/gc-md4-tests: New file.
97048         * tests/test-gc-md4.c: New file.
97050 2005-10-19  Simon Josefsson  <jas@extundo.com>
97052         * m4/gc-md4.m4: New file.
97054 2005-10-19  Simon Josefsson  <jas@extundo.com>
97056         * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
97057         gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
97058         <kasal@ucw.cz>.
97060 2005-10-19  Simon Josefsson  <jas@extundo.com>
97062         * m4/gc-arcfour.m4: New file.
97064         * m4/gc-rijndael.m4: New file.
97066 2005-10-19  Simon Josefsson  <jas@extundo.com>
97068         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
97070 2005-10-19  Simon Josefsson  <jas@extundo.com>
97072         * lib/gc-gnulib.c: Support ARCFOUR.
97074 2005-10-19  Simon Josefsson  <jas@extundo.com>
97076         * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
97077         support.
97079         * lib/gc.h: Add ECB enum type.
97081         * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
97083 2005-10-18  Simon Josefsson  <jas@extundo.com>
97085         * tests/test-md5.c: New file.
97087         * modules/md5-tests: New file.
97089 2005-10-18  Simon Josefsson  <jas@extundo.com>
97091         * tests/test-md4.c: New file.
97093         * modules/md4, modules/md4-tests: New files.
97095 2005-10-18  Simon Josefsson  <jas@extundo.com>
97097         * m4/md4.m4: New file.
97099 2005-10-18  Simon Josefsson  <jas@extundo.com>
97101         * lib/md4.h, lib/md4.c: New files, based on md5.?.
97103 2005-10-17  Stepan Kasal  <kasal@ucw.cz>
97105         * gnulib-tool (func_create_testdir): Omit the second check whether
97106         BUILT_SOURCES in nonempty.
97108 2005-10-17  Simon Josefsson  <jas@extundo.com>
97110         * tests/test-rijndael.c: New file.
97112 2005-10-17  Simon Josefsson  <jas@extundo.com>
97114         * modules/sha1: Depend on stdint instead of md5.
97116         * modules/md5: Depend on stdint, remove uint32_t.
97118 2005-10-17  Simon Josefsson  <jas@extundo.com>
97120         * modules/gc-sha1-tests: New file.
97122         * tests/test-gc-sha1.c: New file.
97124 2005-10-17  Simon Josefsson  <jas@extundo.com>
97126         * m4/md5.m4: Remove call to uint32_t.m4.
97128 2005-10-17  Simon Josefsson  <jas@extundo.com>
97130         * lib/sha1.c: Use uint32_t instead of md5_uint32.t
97132         * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
97133         md5.h.
97135         * lib/md5.c: Use uin32_t.  Fix non-gcc UNALIGNED_P macro.
97137         * lib/md5.h: Use stdint.h and uint32_t.  Doc fix.
97139 2005-10-17  Simon Josefsson  <jas@extundo.com>
97141         * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
97143 2005-10-17  Simon Josefsson  <jas@extundo.com>
97145         * lib/gc.h, gc-libgcrypt.c: Add ciphers.
97147 2005-10-17  Simon Josefsson  <jas@extundo.com>
97149         * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
97151         * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
97153 2005-10-17  Bruno Haible  <bruno@clisp.org>
97155         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
97156         that it can also be used in a test.
97158 2005-10-16  Bruno Haible  <bruno@clisp.org>
97160         * gnulib-tool (func_emit_tests_Makefile_am): Also define
97161         TESTS_ENVIRONMENT, so that individual tests can augment it.
97163         * gnulib-tool (func_create_testdir): Use an intermediate target for
97164         building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
97165         macros, like $(ALLOCA_H), which cannot be passed through the command
97166         line.
97168 2005-10-15  Simon Josefsson  <jas@extundo.com>
97170         * modules/rijndael-tests: New file.
97172         * modules/rijndael: New file.
97174 2005-10-15  Simon Josefsson  <jas@extundo.com>
97176         * m4/rijndael.m4: New file.
97178 2005-10-15  Simon Josefsson  <jas@extundo.com>
97180         * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
97182         * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
97184 2005-10-14  Simon Josefsson  <jas@extundo.com>
97186         * tests/test-arcfour.c: New file.
97188         * modules/arcfour, modules/arcfour-tests: New files.
97190 2005-10-14  Simon Josefsson  <jas@extundo.com>
97192         * m4/arcfour.m4: New file.
97194 2005-10-14  Simon Josefsson  <jas@extundo.com>
97196         * lib/arcfour.h, lib/arcfour.c: New files.
97198 2005-10-14  Roland McGrath  <roland@redhat.com>
97200         Import from libc.  [BZ #1331]
97201         * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
97202         macro argument.
97203         Reported by Matej Vela <vela@debian.org>.
97205 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
97207         * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
97208         include <wchar.h>; no longer needed.
97210 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
97212         * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
97214 2005-10-14  Jakub Jelinek  <jakub@redhat.com>
97215         and  Ulrich Drepper  <drepper@redhat.com>
97217         Import from libc.
97218         * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
97219         instead of inline stream orientation test and two separate
97220         function calls.  Pay no attention to USE_IN_LIBIO.
97222 2005-10-13  Simon Josefsson  <jas@extundo.com>
97224         * modules/gc-hmac-md5-tests: New file.
97226         * tests/test-gc-hmac-sha1.c: New file.
97228         * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
97230         * modules/gc-hmac-md5-tests: New file.
97232         * tests/test-gc-md5.c: New file.
97234         * modules/gc-md5-tests: New file.
97236 2005-10-13  Simon Josefsson  <jas@extundo.com>
97238         * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
97239         Move memory allocation outside of loop.
97241 2005-10-13  Paul Eggert  <eggert@cs.ucla.edu>
97243         * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
97244         intermediate directory is in a read-only file system.  Problem
97245         reported by Eric Blake.
97247 2005-10-13  Oskar Liljeblad  <oskar@osk.mine.nu>
97249         * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
97251 2005-10-12  Simon Josefsson  <jas@extundo.com>
97253         * tests/test-hmac-sha1.c: New file.
97255         * modules/hmac-sha1-tests: New file.
97257         * modules/hmac-sha1: New file.
97259 2005-10-12  Simon Josefsson  <jas@extundo.com>
97261         * modules/gc-sha1: New file.
97263 2005-10-12  Simon Josefsson  <jas@extundo.com>
97265         * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
97267         * tests/test-gc-pbkdf2-sha1.c: New file.
97269 2005-10-12  Simon Josefsson  <jas@extundo.com>
97271         * modules/gc-md5, modules/gc-hmac-md5: New files.
97273         * modules/gc (Files): Remove md5, memxor and hmac files.
97275 2005-10-12  Simon Josefsson  <jas@extundo.com>
97277         * m4/gc-pbkdf2-sha1.m4: New file.
97279         * m4/gc-hmac-sha1.m4: New file.
97281         * m4/gc-sha1: New file.
97283         * m4/hmac-sha1.m4: New file.
97285 2005-10-12  Simon Josefsson  <jas@extundo.com>
97287         * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
97289         * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
97291 2005-10-12  Simon Josefsson  <jas@extundo.com>
97293         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
97294         suggested by Bruno Haible <bruno@clisp.org>.
97296 2005-10-12  Simon Josefsson  <jas@extundo.com>
97298         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
97300 2005-10-12  Simon Josefsson  <jas@extundo.com>
97302         * lib/gc-pbkdf2-sha1.c: New file.
97304         * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
97306 2005-10-12  Simon Josefsson  <jas@extundo.com>
97308         * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
97310         * lib/gc-gnulib.c (gc_hmac_sha1): New function.
97312 2005-10-12  Simon Josefsson  <jas@extundo.com>
97314         * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
97315         GC_USE_HMAC_MD5, respectively.
97317         * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
97318         (gc_md5): Fix typo.
97320         * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
97322         * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
97324         * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
97326 2005-10-12  Bruno Haible  <bruno@clisp.org>
97328         * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
97329         Reported by Stepan Kasal <kasal@ucw.cz>.
97331 2005-10-11  Simon Josefsson  <jas@extundo.com>
97333         * tests/test-crc.c: New file.
97335         * modules/crc, modules/crc-tests: New files.
97337 2005-10-11  Simon Josefsson  <jas@extundo.com>
97339         * m4/crc.m4: New file.
97341 2005-10-11  Simon Josefsson  <jas@extundo.com>
97343         * lib/gc.h: Add gc_hash and gc_hash_buffer.
97345         * lib/gc-gnulib.c (gc_hash_buffer): Add.  Reorder #include's.
97347         * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
97349 2005-10-11  Simon Josefsson  <jas@extundo.com>
97351         * lib/crc.h, lib/crc.c: New files.
97353         * lib/gc.h (gc_hash_buffer): Add doc.
97355 2005-10-11  Bruno Haible  <bruno@clisp.org>
97357         * modules/c-strcasestr: New file.
97358         * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
97360 2005-10-11  Bruno Haible  <bruno@clisp.org>
97362         * modules/c-strcase: New file.
97363         * MODULES.html.sh (String handling <string.h>): Add c-strcase.
97365 2005-10-11  Bruno Haible  <bruno@clisp.org>
97367         * lib/strcasecmp.c: Include limits.h.
97368         (strcasecmp): Avoid integer overflow on exotic platforms.
97369         * lib/strncasecmp.c: Include limits.h.
97370         (strncasecmp): Avoid integer overflow on exotic platforms.
97371         Reported by Paul Eggert.
97373 2005-10-11  Bruno Haible  <bruno@clisp.org>
97375         * lib/c-strcasestr.h: New file, from GNU gettext.
97376         * lib/c-strcasestr.c: New file, from GNU gettext.
97378 2005-10-11  Bruno Haible  <bruno@clisp.org>
97380         * lib/c-strcase.h: New file, from GNU gettext.
97381         * lib/c-strcasecmp.c: New file, from GNU gettext.
97382         * lib/c-strncasecmp.c: New file, from GNU gettext.
97384 2005-10-10  Paul Eggert  <eggert@cs.ucla.edu>
97386         * modules/mempcpy (License): GPL -> LGPL.
97387         * modules/strchrnul (License): Likewise.
97388         * modules/sysexits (License): Likewise.
97390 2005-10-08  Simon Josefsson  <jas@extundo.com>
97392         * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
97394 2005-10-07  Simon Josefsson  <jas@extundo.com>
97396         * m4/memxor.m4: Remove gl_C_RESTRICT call.
97398 2005-10-06  Simon Josefsson  <jas@extundo.com>
97400         * tests/test-hmac-md5.c: New file.
97402         * modules/hmac-md5-tests: New file.
97404         * modules/hmac-md5: New file.
97406 2005-10-06  Simon Josefsson  <jas@extundo.com>
97408         * m4/hmac-md5.m4: New file.
97410         * m4/memxor.m4: Require gl_C_RESTRICT.
97412 2005-10-06  Simon Josefsson  <jas@extundo.com>
97414         * lib/memxor.c (memxor): Avoid casts and warnings.
97416 2005-10-06  Simon Josefsson  <jas@extundo.com>
97418         * lib/hmac-md5.c: New file.
97420         * lib/hmac.h: New file.
97422 2005-10-06  Paul Eggert  <eggert@cs.ucla.edu>
97424         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
97425         promotes to int, not unsigned int, to catch the AIX 5.3
97426         compiler bug.
97428 2005-10-05  Simon Josefsson  <jas@extundo.com>
97430         * modules/memxor: New file.
97432         * modules/iconv (Files): Move config.rpath to havelib, it is used
97433         there.
97435         * modules/havelib (Files): Add config.rpath.
97437 2005-10-05  Simon Josefsson  <jas@extundo.com>
97439         * m4/memxor.m4: New file.
97441 2005-10-05  Simon Josefsson  <jas@extundo.com>
97443         * lib/memxor.c (memxor): Fix compiler error.
97445         * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
97446         <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
97448         * lib/memxor.h, lib/memxor.c: New files.
97450         * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
97451         we assume all systems have it, suggested by Jim Meyering
97452         <jim@meyering.net>.  Remove HAVE_SYS_SOCKET_H test too, to see if
97453         any systems lack sys/socket.h; mingw32 is known to lack it, but we
97454         don't support it yet anyway.  Also remove HAVE_NETDB_H test, for
97455         same reasons.
97457 2005-10-05  Simon Josefsson  <jas@extundo.com>
97459         * config/srclist.txt: Add glibc bug 1423 for md5.h.
97461 2005-10-05  Paul Eggert  <eggert@cs.ucla.edu>
97463         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
97464         sys/socket.h, netdb.h, sys/types.h; the checks areno longer
97465         needed, since the source code now assumes these .h files.
97467 2005-10-05  Derek Price  <derek@ximbiot.com>
97469         * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
97471 2005-10-05  Bruno Haible  <bruno@clisp.org>
97473         * modules/stdint (License): Change to LGPL.
97475 2005-10-04  Simon Josefsson  <jas@extundo.com>
97477         * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
97478         D. Baushke" <mdb@gnu.org>.
97480 2005-10-04  Bruno Haible  <bruno@clisp.org>
97482         * lib/verify.h (verify_true): Provide alternative definition for C++.
97484 2005-10-03  Paul Eggert  <eggert@cs.ucla.edu>
97486         * lib/getdelim.c: Include getdelim.h first.  Include <limits.h>.
97487         (SSIZE_MAX): New macro, if not already defined.
97488         (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
97489         than 2 GiB.
97491 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
97493         Sync from coreutils.
97494         * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
97495         * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
97496         defines ULONG_MAX_LT_ULLONG_MAX.  Thomas M.Ott reports that
97497         ULLONG_MAX doesn't work with 2.7.2.1.
97499 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
97501         * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
97502         From Ben Pfaff.
97504         * modules/exclude (Depends-on): Depend on verify.
97505         * modules/strtoimax (Depends-on): Likewise.
97506         * modules/utimecmp (Depends-on): Likewise.
97508 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
97510         * lib/exclude.c: Include verify.h.
97511         (verify): Remove.  All callers changed to use verify.h's version.
97512         * lib/strtoimax.c: Likewise.
97513         * lib/utimecmp.c: Likewis.e
97515         Sync from coreutils.
97516         * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
97517         getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
97518         * lib/.cvsignore: Add fts.h, search.h, t-fpending.
97519         * lib/settime.c (settime): Fix { typo in previous patch.  Also, don't
97520         bother returning ENOSYS if settimeofday or stime fails; just let
97521         them return whatever errno they want to return.
97522         * lib/utimens.c: Include unistd.h, for dup2.
97523         (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
97524         (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
97526 2005-10-02  Jim Meyering  <jim@meyering.net>
97528         Sync from coreutils.
97529         * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
97530         from glibc-2.2.5 that fails for read-only files.
97532 2005-10-02  Jim Meyering  <jim@meyering.net>
97534         Sync from coreutils.
97535         * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
97536         * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
97537         `#if HAVE_CONFIG_H'.
97538         * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
97539         Remove AT_FDCWD test.
97540         Do not consume the fd unless successful.
97541         * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
97542         * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
97543         block, so that we don't even try to compile it if settimeofday is
97544         available.  This works around a compilation failure on OSF1 V5.1,
97545         due to stime requiring a `long int*' while tv_sec is `int'.
97547 2005-10-02  Alfred M. Szmidt  <ams@gnu.org>
97549         Sync from coreutils.
97550         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
97551         against `yes', rather than just testing for nonempty.
97553 2005-10-01  Simon Josefsson  <jas@extundo.com>
97555         * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
97556         and Darwin.
97558         * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
97559         as an (POSIX) extension.  Check for sys/types.h, sys/socket.h, and
97560         netdb.h too, needed by getaddrinfo.h.  Check if getaddrinfo,
97561         freeaddrinfo and gai_strerror are declared by the POSIX headers.
97562         Check if struct addrinfo is declared.
97564 2005-10-01  Simon Josefsson  <jas@extundo.com>
97566         * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
97567         Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO.  Protect
97568         AI_* and EAI_* definitions.  Protect function declarations.
97570 2005-10-01  Jim Meyering  <jim@meyering.net>
97572         Sync from coreutils.
97574         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
97575         libraries [inet nsl socket xnet].  Nelson Beebe reported that with
97576         native cc on Solaris 7, getaddrinfo.c requires -lsocket.
97577         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
97578         in the inet and nsl libraries.  Required on Solaris 5.7.
97580 2005-10-01  Jim Meyering  <jim@meyering.net>
97582         Sync from coreutils.
97583         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
97584         in the inet and nsl libraries.  Required on Solaris 5.7.
97586 2005-10-01  Eric Blake  <ebb9@byu.net>  (tiny change)
97588         * lib/getdelim.c (getdelim): Remove unused variables.
97590 2005-09-29  Paul Eggert  <eggert@cs.ucla.edu>
97592         * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
97593         so that the code works even with ancient cpp.  Portability problem
97594         with GCC 2.7.2.1 reported by Thomas M.Ott.
97596 2005-09-27  Paul Eggert  <eggert@cs.ucla.edu>
97598         * modules/regex (Depends-on): Add strcase.
97600         * modules/gethostname (Licence): Change from GPL to LGPL, since
97601         gethostname.c is a trivial implementation of a standard library
97602         function.
97603         * modules/poll (License): Change from GPL to LGPL, since it's
97604         derived from LGPL code.
97606 2005-09-27  Jim Meyering  <jim@meyering.net>
97608         * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
97609         HAVE_CONFIG_H.
97611         * lib/intprops.h (signed_type_or_expr__): Define.
97612         (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
97613         for unsigned types.
97615 2005-09-26  Paul Eggert  <eggert@cs.ucla.edu>
97617         * lib/verify.h (verify_expr): Remove, replacing with:
97618         (verify_true): New macro that returns true instead of void.
97619         (verify_type__): Remove.
97620         (verify): Use verify_true rather than verify_type__.
97622 2005-09-26  Bruno Haible  <bruno@clisp.org>
97624         * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
97625         is necessary.
97626         (lib_SOURCES): Remove mbchar.c.
97627         * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
97628         (Files): Add m4/mbrtowc.m4.
97629         * modules/mbiter: Likewise.
97630         * modules/mbuiter: Likewise.
97632 2005-09-26  Bruno Haible  <bruno@clisp.org>
97634         * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
97635         compile mbchar.c if they are not both present.
97636         * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
97637         * m4/mbiter.m4 (gl_MBITER): Likewise.
97638         * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
97639         * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
97640         * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
97642 2005-09-25  Jim Meyering  <jim@meyering.net>
97644         * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
97645         also uses socklen_t.
97647 2005-09-24  Paul Eggert  <eggert@cs.ucla.edu>
97649         * lib/utimens.c (ENOSYS): Define if not already defined.
97650         (futimens): Support having a null PATH if the file descriptor
97651         is nonnegative.
97653         * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
97654         Remove.
97655         (__attribute): Define to empty unless GCC 3.1 or later.
97656         This works around a core dump on OpenBSD 3.4, which has GCC
97657         2.95.3, which dumps core when given __attribute__(()).  It also
97658         simplifies other tests, since we really don't want to bother with
97659         worrying about which ancient version of GCC supported what.
97660         Original problem reported by Yoann Vandoorselaere, with part of
97661         the fix suggested by Derek Price.
97663 2005-09-24  Jim Meyering  <jim@meyering.net>
97665         * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
97666         so we can once again use a positive bitfield width of 1 -- now we
97667         don't have to explain why we were using a bitfield width of 2.
97669 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
97671         * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
97672         and similarly for the other external symbols.  Problem reported
97673         by James Gallager.
97675         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
97676         bug reported by Jim Meyering.
97678         * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
97679         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
97680         not needed, since socklen is a prerequisite module.
97682 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
97684         * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
97685         Problem reported by Eric Blake.
97686         (getaddrinfo): Initialize se so that it's not garbage.
97687         Redo internal storage allocation so that it doesn't make unportable
97688         assumptions about alignment.
97689         Fix a memory leak.
97691         * lib/utimens.c (futimens): Use futimesat if available.
97692         Prefer it to futimes since it doesn't have the futimes bug.
97694         * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
97695         (verify): Don't use the __LINE__ trick, as it doesn't work in general.
97696         Instead, declare a function that returns a pointer to an array,
97697         and use verify_type__ to declare the size of the array.
97698         Problem and germ of a solution reported by Bruno Haible.
97699         (verify_type__): Use 2, not 1, for bitfield size, to avoid
97700         a warning with Irix 6.5 cc.  Problem reported by Bruno Haible.
97702 2005-09-23  Jim Meyering  <jim@meyering.net>
97704         Sync from coreutils.
97705         Correct build failure (socklen_t not defined) on at least
97706         mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
97707         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
97709 2005-09-23  Jim Meyering  <jim@meyering.net>
97711         * modules/getaddrinfo (Depends-on): Add socklen.
97713 2005-09-23  Bruno Haible  <bruno@clisp.org>
97715         * tests/test-verify.c: New file.
97717 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
97719         Sync from coreutils.
97721         * modules/argmatch (Depends-on): Add verify.
97722         * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
97723         unistd-safer.
97724         * modules/save-cwd (Depends-on): Likewise.
97726         * modules/openat (Files): Add lib/openat-die.c.
97727         (Depends-on): Remove error, exitfail.
97728         Add dirname.
97730         * modules/verify: New file.
97731         * MODULES.html.sh (Diagnostics <assert.h>): New section,
97732         with "verify" module.
97734 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
97736         Sync from coreutils.
97738         * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
97739         * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
97740         * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
97741         * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
97742         * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
97743         * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
97744         * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
97745         Don't bother checking for string.h, stdlib.h, unistd.h.
97746         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
97747         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
97748         module's job.
97749         * m4/jm-macros.m4 (gl_MACROS): Likewise.
97750         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
97752         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
97753         (gl_GETDATE): Use it.
97755         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
97757 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
97759         Sync from coreutils.
97761         * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
97762         stat-time.h.
97763         * lib/argmatch.h: Include verify.h
97764         (ARGMATCH_VERIFY): Use verify rather than rolling our own.
97765         (ARGMATCH_ASSERT): Remove; unused.
97766         * lib/canonicalize.c: Assume STDC_HEADERS.
97767         * lib/exclude.c: Include "strcase.h".
97768         * lib/regex_internal.h [!defined _LIBC]: Likewise.
97769         * lib/getusershell.c: Include stdio--.h rather than stdio.h
97770         and stdio-safer.h.
97771         (getusershell): Call fopen, not fopen_safer.
97772         * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
97773         Do not include unistd-safer.h.
97774         (save_cwd): Don't call fd_safer; no longer needed
97775         now that we include fcntl--.h.
97777         * lib/getdate.y (relative_time): New type.
97778         (RELATIVE_TIME_0): New constant.
97779         (parser_control): Use relative_time instead of doing it ourselves.
97780         (%union): Add new relative_time rel member.
97781         (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
97782         Now typeless.
97783         (relunit, relunit_snumber): Now of type rel.
97784         (zone, rel, relunit, get_date): Adjust to above changes.
97786         * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
97787         Do not include unistd-safer.h.
97788         (getloadavg): Don't call fd_safer; no longer needed
97789         now that we include fcntl--.h.
97791         * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
97792         (make_dir_parents): Treat ENOSYS like EEXIST.
97794         Improve quality of diagnostics on restore_cwd failure.
97795         * lib/mkdir-p.h (make_dir): Remove.  All uses replaced by mkdir.
97796         (make_dir_parents): Last arg is now int * (for errno), not bool *.
97797         * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
97798         Rewrite "mkdir -p" algorithm to avoid the need for "stat"
97799         each time through the loop.  Do not diagnose restore_cwd failure;
97800         that is the caller's job (and perhaps the caller does not care).
97802         * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
97803         (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
97804         If the file already exists but is not a directory, don't bother
97805         to try to make its parents.
97806         Close potential file descriptor leak if we can't chdir("/") (!).
97807         Don't always return true if chdir($PWD) fails; return true only
97808         if the requested action was done successfully (except for the
97809         chdir($PWD)).
97810         Don't log final directory unless we actually made it.
97811         Refactor to avoid duplicate code to fix up permissions.
97812         Don't attempt to fix up parent permissions if chdir($PWD) fails.
97814         * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
97815         to make it a bit faster and (I hope) clearer.
97816         * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
97817         Fix bug in formats like %2N.
97819         * lib/verify.h: New file.
97821 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
97823         Sync from coreutils.
97824         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
97826 2005-09-22  Jim Meyering  <jim@meyering.net>
97828         Sync from coreutils.
97830         * m4/lstat.m4 (gl_FUNC_LSTAT):
97831         Use AC_LIBSOURCES to require lstat.c and lstat.h.
97832         Remove obsolete comment.
97833         * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
97834         * m4/xstrtod.m4: Likewise.
97836         * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
97838 2005-09-22  Jim Meyering  <jim@meyering.net>
97840         Sync from coreutils.
97842         * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
97844         * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
97845         the .tm_year member, since otherwise gcc-4.0 would now warn about
97846         tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
97848         * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
97849         order to avoid an unsuppressible warning from gcc on 64-bit systems.
97851         * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
97852         the command "date -d'2005-03-27 +1 day'" succeeds once again, even
97853         when run in a time zone for which daylight savings time is in effect
97854         for the starting date.
97856         * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
97857         stop us from restricting permissions of just-created absolute-named
97858         directories.
97859         * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
97860         to restore initial working directory.
97861         * lib/mkdir-p.c (make_dir_parents): New parameter:
97862         different_working_dir, to tell caller if/when we change the working
97863         directory and are unable to return to the initial one.
97864         * lib/mkdir-p.h (make_dir_parents): Update prototype.
97865         * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
97866         `return false'.  This fixes a bug introduced on 2004-07-30.
97868         * lib/openat.c (fdopendir): Be sure to close the supplied
97869         file descriptor before returning.  This makes our replacement
97870         implementation a little closer to Solaris's, where fdopendir
97871         ties the file descriptor to the returned DIR* pointer.
97872         * lib/openat.c (unlinkat): New function.
97873         * lib/openat.h (unlinkat): Add prototype.
97874         * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
97875         (openat_restore_fail): Rename from openat_restore_die.
97876         * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
97878         Provide an alternative to exiting immediately upon save_cwd or
97879         restore_cwd failure.  Now, an application can arrange e.g.,
97880         to perform a longjump in that case.
97881         * lib/openat.c: Include dirname.h.
97882         Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
97883         (rpl_openat, fdopendir, fstatat): Call openat_save_die
97884         and openat_restore_die rather than calling error directly.
97885         Don't include "error.h" or "exitfail.h"; they're no longer needed.
97887         * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
97888         * lib/openat.h (openat_save_die, openat_restore_die): Declare and
97889         define.
97891         * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
97892         size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
97893                             int utc, int nanoseconds);
97894         Background:
97895         date should not have to allocate a megabyte of virtual memory to
97896         handle a format argument like +%1048575T.  When implemented with
97897         strftime, it must allocate such a buffer, use strftime to fill it
97898         in, print it, then free it.
97899         With fprintftime, it simply prints everything and exits.
97900         With no need for memory allocation, that's one fewer way to fail.
97901         * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
97902         optional field width, not before, so we accept %9:z, not %:9z.
97903         (my_strftime): Be sure to use L_('x') for literals.
97905         * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
97906         * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
97907         * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
97908         * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
97909         * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
97910         * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
97911         * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
97912         * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
97913         * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
97914         * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
97915         * lib/xgethostname.c, lib/xreadlink.c:
97916         Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
97918         * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
97919         * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
97920         * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
97921         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
97922         and don't include <sys/file.h>).
97924 2005-09-22  Eric Blake  <ebb9@byu.net>  (tiny change)
97926         Sync from coreutils.
97928         * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
97929         [__linux__]: Allocate a big enough buffer for /proc/loadavg.
97930         [!LDAV_DONE]: Avoid unused variable warning.
97932 2005-09-21  Bruno Haible  <bruno@clisp.org>
97934         * lib/unicodeio.h (unicode_to_mb): New declaration.
97936 2005-09-20  Derek Price  <derek@ximbiot.com>
97938         * lib/getaddrinfo.c: Don't include <netdb.h> included from
97939         getaddrinfo.h.
97941 2005-09-20  Bruno Haible  <bruno@clisp.org>
97943         * gnulib-tool: Remove trailing slashes from the values specified for
97944         --source-base, --m4-base, --tests-base, --aux-dir.
97945         Suggested by Simon Josefsson <jas@extundo.com>.
97947 2005-09-20  Bruno Haible  <bruno@clisp.org>
97949         * gnulib-tool (func_all_modules, func_modules_transitive_closure,
97950         func_modules_to_filelist, func_import, func_create_testdir): Make all
97951         sorting results locale-independent, so that gnulib-cache.m4 doesn't
97952         change when gnulib-tool is invoked in a different locale.
97954 2005-09-19  Simon Josefsson  <jas@extundo.com>
97956         * m4/socklen.m4: Fix typo.
97958 2005-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
97960         Use a consistent style for including <config.h>.
97961         * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
97962         lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
97963         lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
97964         lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
97965         lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
97966         lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
97967         lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
97968         lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
97969         lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
97970         lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
97971         lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
97972         lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
97973         lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
97974         lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
97975         lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
97976         lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
97977         lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
97978         lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
97979         lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
97980         lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
97981         lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
97982         lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
97983         lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
97984         lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
97985         lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
97986         lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
97987         lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
97988         lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
97989         lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
97990         lib/xstrtoumax.c, lib/yesno.c:
97991         Standardize inclusion of config.h.
97992         * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
97993         lib/inttostr.h:  Removed inclusion of config.h from header files.
97994         * lib/inttostr.c:  Adjusted in-tree users.
97995         * lib/timespec.h: Remove superfluous warning to include config.h.
97996         * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
97997         lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
97998         lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
97999         lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
98000         config.h with HAVE_CONFIG_H.
98002 2005-09-19  Jim Meyering  <jim@meyering.net>
98004         * modules/pathmax (License): Change to LGPL.
98006 2005-09-19  Derek Price  <derek@ximbiot.com>
98008         * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
98010 2005-09-19  Bruno Haible  <bruno@clisp.org>
98012         * gnulib-tool (import): Provide default for --tests-base.
98014 2005-09-19  Bruno Haible  <bruno@clisp.org>
98016         * doc/quote.texi: New file, extracted from gnulib.texi.
98017         * doc/ctime.texi: New file, extracted from gnulib.texi.
98018         * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
98019         * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
98020         * doc/gnulib.texi: Include them.
98022 2005-09-18  Bruno Haible  <bruno@clisp.org>
98024         Portability fix.
98025         * gnulib-tool (func_readlink): New function.
98026         (func_ln_if_changed): Use it.
98028 2005-09-18  Bruno Haible  <bruno@clisp.org>
98030         * gnulib-tool: Support --with-tests also with --import.
98031         (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
98032         (func_import): Use variables $testsbase and $inctests. Emit a
98033         gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
98034         Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
98035         SUBDIRS += $testsdir.
98036         (func_create_testdir): Update.
98038 2005-09-18  Bruno Haible  <bruno@clisp.org>
98040         * gnulib-tool: Revise --dry-run implementation. Use variable $doit
98041         instead of $dry_run.
98042         (func_cp_if_changed, func_mv_if_changed): Remove functions.
98043         (func_ln_if_changed): Don't handle dry-run here.
98044         (func_import): In dry-run mode, detect more precisely which actions
98045         would be performed, and don't use "...ing" verbs.
98047 2005-09-18  Bruno Haible  <bruno@clisp.org>
98049         * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
98050         (func_import): Use join on two temporary files instead of three nested
98051         loops, in order to determine which files are new or old.
98053 2005-09-18  Bruno Haible  <bruno@clisp.org>
98055         * gnulib-tool (func_import): Comment out code that spits out the
98056         new files with --dry-run.
98058 2005-09-18  Bruno Haible  <bruno@clisp.org>
98060         * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
98062 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
98064         * lib/stat-time.h: New file.
98065         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
98066         (MTIME_CMP, TIMESPEC_NS): Remove.  Now done by stat-time.h,
98067         in a different way.
98068         (timespec_cmp): New function.
98069         * lib/utimecmp.c: Include stat-time.h.
98070         (SYSCALL_RESOLUTION): Depend on whether various struct stat
98071         members exist, not on the obsolescent ST_MTIM_NSEC.
98072         (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
98074 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
98076         * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
98078 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
98080         * MODULES.html.sh (File system functions): Add stat-time.
98081         * modules/stat-time: New file.
98082         * modules/timespec (Files): Remove m4/st_mtim.m4; this
98083         is now done in a different way, by the stat-time module.
98084         * modules/utimecmp (Depends-on): Add stat-time.
98086 2005-09-15  Paul Eggert  <eggert@cs.ucla.edu>
98088         * m4/st_mtim.m4: Remove.  Superseded by...
98089         * m4/stat-time.m4: New file.
98090         * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
98091         Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
98093 2005-09-15  Derek Price  <derek@ximbiot.com>
98095         * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
98097 2005-09-15  Derek Price  <derek@ximbiot.com>
98099         * lib/regex_internal.h: Blank `pure' for GNUC < 3.
98100         * lib/regex_internal.c: Ditto, using this...
98101         (__GNUC_PREREQ): ...new macro.
98102         * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
98103         using...
98104         (__GNUC_PREREQ): ...this new macro.
98106         * lib/strstr.h: Include string.h. Define strstr as a macro here.
98108 2005-09-15  Derek Price  <derek@ximbiot.com>
98109             Paul Eggert  <eggert@cs.ucla.edu>
98111         * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
98112         changes, consolidating in...
98113         * lib/regex_internal.h: ...this file.
98115 2005-09-13  Jim Meyering  <jim@meyering.net>
98117         * lib/canon-host.c: Filter through gnu indent and reword comments
98118         slightly.
98119         * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
98121 2005-09-13  Derek Price  <derek@ximbiot.com>
98123         * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
98124         failure.
98125         Reported by Jim Meyering  <jim@meyering.net>.
98127 2005-09-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
98129         * lib/base64.c: Typo.
98130         (base64_encode): Put b64str in initialized data section.
98132 2005-09-12  Paul Eggert  <eggert@cs.ucla.edu>
98134         Merge glibc and coreutils changes into gnulib, plus a few
98135         extra fixes.
98136         * lib/md5.c: Use #error rather than a string.
98137         (CYCLIC): New macro, from glibc source.  Use it instead of rol.
98138         * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
98139         (__attribute__): Define to empty for non recent-GCC.
98140         (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
98141         (__md5_process_bytes, __md5_read_ctx, __md5_stream):
98142         Renamed from their non-__ counterparts, with new macros replacing
98143         them if not _LIBC.  Add __THROW attribute.
98144         (rol): Remove.
98145         (struct md5_ctx): Align buffer if using GCC.
98146         * lib/sha1.h (struct sha1_ctx): Likewise.
98147         * lib/sha1.c (SWAP): Renamed from the NOTSWAP.  All uses changed.
98148         The old name was backwards.
98149         (NOTSWAP): Remove; not used.
98150         (rol): New macro, moved here from md5.h.
98151         (sha1_process_block): Remove a FIXME that doesn't make sense.
98153 2005-09-12  Derek Price  <derek@ximbiot.com>
98155         Return usable errors from canon-host.
98156         * lib/canon-host.h: New file.
98157         * lib/canon-host.c (canon_host): Wrap...
98158         (canon_host_r): ...this new function, which now relies exclusively on
98159         getaddrinfo.
98160         (ch_strerror): New function.
98161         (last_cherror): New global.
98162         * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
98163         interface.
98164         (getaddrinfo): Add AI_CANONNAME functionality.  Don't do arithmetic on
98165         void *.
98166         (freeaddrinfo): Free ai->ai_canonname when set.
98168 2005-09-12  Derek Price  <derek@ximbiot.com>
98170         Make canon-host require getaddrinfo.
98171         * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
98172         AC_LIBSOURCE canon-host.h.  Call...
98173         (gl_PREREQ_CANON_HOST): ...this new function, which requires
98174         gl_GETADDRINFO.
98175         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
98177 2005-09-12  Derek Price  <derek@ximbiot.com>
98179         * modules/canon-host: Add canon-host.h.  Depend on getaddrinfo.  Make
98180         LGPL.
98181         * modules/getaddrinfo: Add link to opengroup spec.  Depend on strdup.
98183 2005-09-12  Derek Price  <derek@ximbiot.com>
98185         * lib/gai_strerror.c: Include config.h when available.  Include
98186         getaddrinfo.h before other headers to test interface.
98187         Reported by Larry Jones <lawrence.jones@ugs.com>.
98189 2005-09-12  Derek Price  <derek@ximbiot.com>
98190             Paul Eggert  <eggert@cs.ucla.edu>
98192         * modules/glob (Files): Add glob-libc.h.
98194 2005-09-12  Derek Price  <derek@ximbiot.com>
98195             Paul Eggert  <eggert@cs.ucla.edu>
98197         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
98198         glob_.h, glob-libc.h.
98199         (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
98201 2005-09-12  Derek Price  <derek@ximbiot.com>
98202             Paul Eggert  <eggert@cs.ucla.edu>
98204         * lib/glob-libc.h: Renamed from glob_.h.  The new version is
98205         taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
98206         protecting things that should be done only in gnulib contexts.
98207         * lib/glob_.h: New file, containing only the glob things needed for
98208         gnulib.
98209         (GLOB_PREFIX): Remove.  All uses changed to look for __GLOB_GNULIB.
98210         (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
98211         (glob, globfree, glob_pattern_p): Now defined simply in terms of
98212         rpl_glob, rpl_globfree, rpl_glob_pattern_p.
98213         (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
98214         and to respect the namespace rules better.
98216 2005-09-08  Simon Josefsson  <jas@extundo.com>
98218         * modules/socklen: New file.
98220 2005-09-08  Simon Josefsson  <jas@extundo.com>
98222         * m4/socklen.m4: New file.
98224 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
98226         * modules/utimens (Files): Add m4/utimbuf.m4, since
98227         m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
98228         Reported by Sergey Poznyakoff.
98230 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
98232         * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
98233         definitions, since that's the preferred style in glibc.
98234         Fix a minor spacing issue, and update copyright notice to match
98235         glibc's.
98237 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
98239         * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
98241 2005-09-06  Simon Josefsson  <jas@extundo.com>
98243         * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
98244         TCSETATTR.  Reported by Derek Price <derek@ximbiot.com>.
98246 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
98248         * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
98249         warning.
98251 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
98253         * config/srclist.txt: Add glibc bug 1302.
98255 2005-09-05  Paul Eggert  <eggert@cs.ucla.edu>
98257         Change bitset word type from unsigned int to unsigned long int,
98258         as this has better performance on typical 64-bit hosts.
98259         Port bitset code to hosts with unusual word sizes.
98260         * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
98261         (build_collating_symbol):
98262         Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
98263         argument is a bitset.  This is merely a style issue, but it makes
98264         it clearer that an entire array is expected.
98265         (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
98266         * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
98267         Port to the case where bitset_word is not the same as unsigned int.
98268         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
98269         (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
98270         Likewise.
98271         * lib/regexec.c (check_dst_limits_calc_pos_1,
98272         check_subexp_matching_top):
98273         (build_trtable, group_nodes_into_DFAstates):
98274         Likewise.
98275         * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
98276         Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
98277         * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
98278         * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
98279         * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
98280         * lib/regcomp.c (optimize_subexps, lower_subexp):
98281         Work even if bitset_word has holes in its bitwise representation.
98282         * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
98283         * lib/regexec.c (check_dst_limits_calc_pos_1,
98284         check_subexp_matching_top):
98285         Likewise.
98286         * lib/regex_internal.c (re_string_reconstruct):
98287         Don't assume UCHAR_MAX == 255.
98288         * lib/regex_internal.h (bitset_set_all): Likewise.
98289         * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
98290         All uses changed.
98291         (BITSET_WORDS): Renamed from BITSET_UINTS.  All uses changed.
98292         (bitset_word): New type, replacing 'unsigned int' for bitset uses.
98293         All uses changed.
98294         (BITSET_WORD_MAX): New macro.
98295         (bitset_set, bitset_clear, bitset_contain, bitset_empty):
98296         (bitset_set_all, bitset_copy):  Now inline functions, not macros.
98297         (bitset_empty, bitset_copy):
98298         Prefer sizeof (bitset) to multiplying it out ourselves.
98299         (bitset_not_merge): Remove; unused.
98300         (bitset_contain): Return bool, not unsigned int with one bit on.
98301         All callers changed.
98302         * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
98303         alignment than re_node_set; do this by defining a new internal
98304         type struct dests_alloc and using it to allocate memory.
98306 2005-09-05  Bruno Haible  <bruno@clisp.org>
98308         * gnulib-tool (func_import): Fix comparison in handling of symbolic
98309         links.
98311 2005-09-04  Martin Lambers  <marlam@marlam.de>  (tiny change)
98313         * modules/size_max (Makefile.am): Add size_max.h
98315 2005-09-04  Derek Price  <derek@ximbiot.com>
98317         * gnulib-tool (func_import): Fix reversed $symbolic logic.
98319 2005-09-03  Simon Josefsson  <jas@extundo.com>
98321         * gnulib-tool: Fix typo.
98323 2005-09-03  Simon Josefsson  <jas@extundo.com>
98325         * config/srclist.txt: Add glibc bug 1293.
98327 2005-09-03  Derek Price  <derek@ximbiot.com>
98329         * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
98330         From Larry Jones <lawrence.jones@ugs.com>.
98332 2005-09-02  Simon Josefsson  <jas@extundo.com>
98334         * modules/socklen: New file.
98336 2005-09-02  Simon Josefsson  <jas@extundo.com>
98338         * modules/havelib: New module.
98340         * modules/gettext, modules/iconv, modules/lock, modules/readline:
98341         Use havelib.
98343 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
98345         Check for arithmetic overflow when calculating sizes, to prevent
98346         some buffer-overflow issues.  These patches are conservative, in the
98347         sense that when I couldn't determine whether an overflow was possible,
98348         I inserted a run-time check.
98349         * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
98350         macros.
98351         (SIZE_MAX) [!defined SIZE_MAX]: New macro.
98352         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
98353         (re_xnrealloc, re_x2nrealloc): New inline functions.
98354         * lib/regcomp.c (init_dfa, analyze, build_range_exp,
98355         parse_bracket_exp):
98356         (build_equiv_class, build_charclass): Check for arithmetic overflow
98357         in size expression calculations.
98358         * lib/regex_internal.c (re_string_realloc_buffers):
98359         (build_wcs_upper_buffer, re_node_set_add_intersect):
98360         (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
98361         (re_dfa_add_node, register_state): Likewise.
98362         * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
98363         (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
98364         (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
98365         (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
98367 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
98369         * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
98370         m4/ulonglong.m4.  Problem reported by Martin Lambers.
98372 2005-09-02  Bruno Haible  <bruno@clisp.org>
98374         Support for lib vs. lib64 distinction on biarch platforms.
98375         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
98376         (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
98377         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
98379 2005-09-02  Bruno Haible  <bruno@clisp.org>
98381         * gnulib-tool (import): In the other first-use case, provide defaults
98382         as well.
98384 2005-09-02  Bruno Haible  <bruno@clisp.org>
98386         * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
98387         patches not yet found in the latest gettext release.
98389 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
98391         * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
98392         to avoid a collision with bits/local_lim.h in glibc.
98393         All uses changed.  Problem reported by Dmitry V. Levin in
98394         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
98396         * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
98397         bugs in int versus size_t comparisons.
98398         (re_string_context_at): Fix bug where the code assumed that
98399         Idx is signed.
98401         Use bool where appropriate.
98402         * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
98403         All callers changed.
98404         (calc_eclosure_iter): Likewise, for ROOT arg.
98405         (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
98406         (build_charclass_op): Likewise, for NON_MATCH arg.
98407         * lib/regex_internal.c (re_string_allocate, re_string_construct):
98408         (re_string_construct_common): Likewise, for ICASE arg.
98409         * lib/regexec.c (re_search_2_stub, re_search_stub):
98410         Likewise, for RET_LEN arg.
98411         (check_matching): Likewise, for FL_LONGEST_MATCH arg.
98412         (set_regs): Likewise, for FL_BACKTRACK arg.
98413         * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
98414         (duplicate_node_closure, calc_inveclosure, calc_eclosure):
98415         (calc_eclosure_iter, parse_bracket_exp):
98416         Use bool for internal variables that are booleans.
98417         * lib/regexec.c (re_search_internal, check_matching,
98418         proceed_next_node):
98419         (set_regs, build_sifted_states, sift_states_bkref):
98420         (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
98421         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
98422         (find_collation_sequence_value):
98423         Likewise.
98424         * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
98425         (re_node_set_compare):
98426         Return bool, not int. All callers changed.
98427         * lib/regexec.c (check_halt_node_context, check_dst_limits):
98428         (build_trtable, check_node_accept): Likewise.
98429         * lib/regex_internal.h: Include stdbool.h.
98431         Fix bugs uncovered when converting to bool.
98432         * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
98433         failure instead of charging ahead blindly.
98434         * lib/regex_internal.c (register_state): Likewise.
98435         * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
98436         for freeing internal storage.
98437         (group_nodes_into_DFA_states): Use unsigned int, not int, for
98438         bitset pieces used as boolean, to avoid undefined behavior
98439         on hosts that do int overflow checking.
98441 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
98443         * config/srclist.txt: Add glibc bugs 1285-1287.
98445 2005-09-01  Jim Meyering  <jim@meyering.net>
98447         * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
98448         CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
98449         Require gl_STAT_MACROS, too.
98451 2005-09-01  Bruno Haible  <bruno@clisp.org>
98453         * gnulib-tool (import): In the first-use case, provide defaults.
98455 2005-09-01  Bruno Haible  <bruno@clisp.org>
98457         * gnulib-tool (func_import): Remove the .tmp files.
98459 2005-09-01  Bruno Haible  <bruno@clisp.org>
98461         * gnulib-tool (func_import): Fix handling of symbolic links.
98463 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
98465         On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
98466         old glibc regex code mishandles strings longer than 2**31 bytes.
98467         This patch fixes this when the regex code is used in gnulib
98468         (i.e., outside glibc).
98470         This patch should not affect the use of the regex code inside
98471         glibc.  No doubt this problem also needs to be handled for glibc
98472         as well, but the result will be an incompatible change to the
98473         glibc ABI, and the old ABI will have to be supported too.  That
98474         can be the subject for another patch.
98476         * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
98477         governing whether the rest of this patch is active.  By default,
98478         the macro is disabled and the patch has no effect.
98479         (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
98480         (__re_idx_t, __re_size_t, __re_long_size_t): New types.
98481         (struct re_pattern_buffer, re_search, re_search_2, re_match):
98482         (re_match_2, re_set_registers): Use the new types.
98483         * lib/regex_internal.h (Idx, re_hashval_t): New types.
98484         (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
98485         New macros.
98486         (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
98487         (re_string_context_at, bin_tree_t, re_dfastate_t):
98488         (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
98489         (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
98490         (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
98491         (re_string_char_size_at, re_string_wchar_at):
98492         (re_string_elem_size_at):
98493         Use the new types and macros to port to 64-bit hosts.
98494         Use unsigned types for internal values, so that the code
98495         mostly works even for arrays larger than SSIZE_MAX.
98496         * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
98497         (search_duplicated_node, calc_eclosure_iter, fetch_number):
98498         (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
98499         (build_equiv_class, build_charclass, re_compile_fastmap_iter):
98500         (free_dfa_content, create_initial_state, optimize_utf8, analyze):
98501         (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
98502         (calc_inveclosure, parse_dup_op, build_range_exp):
98503         (build_collating_symbol, parse_bracket_exp, build_charclass_op):
98504         (fetch_number, create_token_tree, mark_opt_subexp):
98505         Likewise.
98506         * lib/regex_internal.c (re_string_construct_common,
98507         create_ci_newstate):
98508         (create_cd_newstate, re_string_allocate, re_string_construct):
98509         (re_string_realloc_buffers, build_wcs_upper_buffer):
98510         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
98511         (re_string_reconstruct, re_string_peek_byte_case):
98512         (re_string_fetch_byte_case, re_string_context_at):
98513         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
98514         (re_node_set_init_copy, re_node_set_add_intersect):
98515         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
98516         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
98517         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
98518         (re_acquire_state, re_acquire_state_context, register_state):
98519         Likewise.
98520         * lib/regex.c (match_ctx_init, match_ctx_add_entry,
98521         search_cur_bkref_entry):
98522         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
98523         (re_search_internal, re_search_2_stub, re_search_stub)
98524         (re_copy_regs, check_matching, check_halt_state_context, update_regs):
98525         (push_fail_stack, sift_states_iter_mb, build_sifted_states):
98526         (update_cur_sifted_state, check_dst_limits):
98527         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
98528         (check_subexp_limits, sift_states_bkref, merge_state_array):
98529         (check_subexp_matching_top, get_subexp, get_subexp_sub):
98530         (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
98531         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
98532         (expand_bkref_cache, check_node_accept_bytes):
98533         (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
98534         (re_search, re_match_2, re_search_2, prune_impossible_nodes):
98535         (acquire_init_state_context, check_halt_node_context):
98536         (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
98537         (sift_states_backward, clean_state_log_if_needed):
98538         (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
98539         (find_recover_state, transit_state_sb, transit_state_mb):
98540         (transit_state_bkref, build_trtable, match_ctx_clean):
98541         Likewise.
98542         * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
98543         to work around an assumption that REG_MISSING is negative.
98545         * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
98546         (seek_collating_symbol_entry) [defined _LIBC]:
98547         (lookup_collation_sequence_value) [defined _LIBC]:
98548         (build_range_exp, build_collating_symbol) [defined _LIBC]:
98549         Use prototypes rather than old-style function definitions.
98550         * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
98551         (transit_state_sb) [0]:
98552         (find_collation_sequence_value) [defined _LIBC]: Likewise.
98554         * lib/regexec.c (re_search_internal): Simplify update of rm_so and
98555         rm_eo.
98557         * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
98558         (optimize_subexps, lower_subexp):
98559         Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
98560         since the signed shift might overflow.  Use 1u<<31 instead.
98561         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
98562         Likewise.
98563         * lib/regexec.c (check_dst_limits_calc_pos_1,
98564         check_subexp_matching_top): Likewise.
98566         * lib/regcomp.c (optimize_subexps, lower_subexp):
98567         Use CHAR_BIT rather than 8, for clarity.
98568         * lib/regexec.c (check_dst_limits_calc_pos_1):
98569         (check_subexp_matching_top): Likewise.
98570         * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
98571         have to worry about portability issues when shifting it left.
98572         Remove no-longer-needed test for table_size > 0.
98573         * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
98574         in a word, as the resulting behavior is undefined.
98575         * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
98576         in one case, a <= should have been an <, and in another case the
98577         whole test was missing.
98578         * lib/regex_internal.h (BYTE_BITS): Remove.  All uses changed to
98579         the standard name CHAR_BIT.
98580         * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
98581         this is not true on one's complement and signed-magnitude hosts.
98583         * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
98584         next_last_offset.
98585         (struct re_dfa_t): Remove unused member states_alloc.
98586         * lib/regcomp.c (init_dfa): Don't initialize unused members.
98588 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
98590         * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
98591         _REGEX_LARGE_OFFSETS).  Test for regoff_t/off_t bug in 64-bit
98592         and large-file glibc and in 32-bit large-file Solaris.
98594 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
98596         * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
98597         lengths fit in regoff_t; this isn't true if regoff_t is the same
98598         width as size_t.
98599         * lib/regex.c (re_search_internal): 5th arg is LAST_START
98600         (= START + RANGE) instead of RANGE.  This avoids overflow
98601         problems when regoff_t is the same width as size_t.
98602         All callers changed.
98603         (re_search_2_stub): Check for overflow when adding the
98604         sizes of the two strings.
98605         (re_search_stub): Check for overflow when adding START
98606         to RANGE; if it occurs, substitute the extreme value.
98608 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
98610         * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
98612 2005-08-31  Jim Meyering  <jim@meyering.net>
98614         * lib/regcomp.c (search_duplicated_node): Make first pointer arg
98615         a pointer-to-const.
98616         * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
98617         (register_state): Likewise.
98618         * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
98619         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
98620         (group_nodes_into_DFAstates): Likewise.
98622 2005-08-31  Jim Meyering  <jim@meyering.net>
98624         * check-module: Add a FIXME comment.
98626 2005-08-31  Eric Blake  <ebb9@byu.net>
98628         * modules/unistd-safer (Files): Add unistd--.h.
98629         * modules/stdio-safer (Files): Add stdio--.h.
98631 2005-08-31  Derek Price  <derek@ximbiot.com>
98633         * lib/getdelim.c (getdelim): Return EOF on EOF.
98634         Reported by Larry Jones <lawrence.jones@ugs.com>.
98636 2005-08-31  Bruno Haible  <bruno@clisp.org>
98638         Avoid unnecessary diffs in the generated lib/Makefile.am.
98639         * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
98640         the generated files.
98641         (func_import): Don't set cmd.
98643 2005-08-31  Bruno Haible  <bruno@clisp.org>
98645         * lib/strstr.c: Include <stddef.h>, for NULL.
98646         * lib/strcasestr.c: Likewise.
98647         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
98649 2005-08-31  Bruno Haible  <bruno@clisp.org>
98651         * gnulib-tool: New option --macro-prefix.
98652         (func_import): Use macro_prefix.
98653         (import): Handle option --macro-prefix.
98655 2005-08-31  Bruno Haible  <bruno@clisp.org>
98657         * gnulib-tool (import): Rename most ac_* variables to cached_*.
98658         Also use new variables cached_lgpl, cached_libtool.
98660 2005-08-31  Bruno Haible  <bruno@clisp.org>
98662         * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
98663         always instantiating them.
98665 2005-08-31  Bruno Haible  <bruno@clisp.org>
98667         * gnulib-tool (func_import): Read the previous cached settings
98668         from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
98669         earlier added by gnulib but are now dropped. Warn when a gnulib file
98670         overwrites a non-gnulib file.
98672 2005-08-31  Bruno Haible  <bruno@clisp.org>
98674         * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
98675         gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
98676         projects that don't keep autogenerated files in CVS. Put into
98677         actioncmd only the specified modules, not the transitive closure.
98679 2005-08-31  Bruno Haible  <bruno@clisp.org>
98681         * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
98682         Create directories that shall be filled.
98683         (import): Don't look for gl_* macros in configure.ac. Recurse across
98684         all directories containing a gnulib-cache.m4 files, if meaningful.
98686 2005-08-31  Bruno Haible  <bruno@clisp.org>
98688         * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
98689         (import): Set seen_libtool when we see gl_LIBTOOL.
98691 2005-08-31  Bruno Haible  <bruno@clisp.org>
98693         * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
98694         declaration macro definitions from generated gnulib.m4.
98696 2005-08-30  Oskar Liljeblad  <oskar@osk.mine.nu>
98698         * lib/iconvme.h: Add prototype for iconv_alloc.
98700 2005-08-29  Simon Josefsson  <jas@extundo.com>
98702         * lib/iconvme.c: Fix errno.
98704 2005-08-29  Bruno Haible  <bruno@clisp.org>
98706         * gnulib-tool: Enclose all occurrences of $destdir in "...", so
98707         that it works when the directory contains spaces.
98709 2005-08-29  Bruno Haible  <bruno@clisp.org>
98711         * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
98713 2005-08-29  Bruno Haible  <bruno@clisp.org>
98715         * gnulib-tool (func_import): Emit more comments into gnulib.m4.
98716         Emit more advice.
98718 2005-08-29  Bruno Haible  <bruno@clisp.org>
98719         and Stepan Kasal  <kasal@ucw.cz>
98721         * check-module: If more parameters are given, check each of them
98722         separately; add more exceptions, as noted by Jim Meyering.
98723         (check_module): New procedure.
98724         (%exempt_header): Now contains all exceptions.
98726 2005-08-29  Ben Pfaff  <blp@cs.stanford.edu>
98728         * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
98730 2005-08-29  Oskar Liljeblad  <oskar@osk.mine.nu>
98732         * lib/iconvme.c: Split iconv_string into iconv_alloc.
98734 2005-08-28  Bruno Haible  <bruno@clisp.org>
98736         * m4/gnulib-tool.m4: New file.
98738 2005-08-27  Jim Meyering  <jim@meyering.net>
98740         * modules/unistd-safer (Files): Add pipe-safer.c.
98741         * modules/fcntl-safer (Files): Add creat-safer.c.
98743 2005-08-27  Jim Meyering  <jim@meyering.net>
98745         * m4/stdlib-safer.m4: New file.  From coreutils.
98746         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
98747         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
98748         AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
98749         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
98750         Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
98752 2005-08-27  Jim Meyering  <jim@meyering.net>
98754         * lib/fopen-safer.c: Merge minor changes from coreutils.
98755         * lib/dup-safer.c: Likewise.
98756         * lib/fd-safer.c: Likewise.
98758         Merge from coreutils.
98759         * lib/stdio--.h: New file.
98760         * lib/stdlib--.h: New file.
98761         * lib/mkstemp-safer.c: New file.
98763         GNU tar needs these.
98764         * lib/pipe-safer.c: New file.
98765         * lib/creat-safer.c: New file.
98766         * lib/fcntl--.h (creat): Define to creat_safer.
98767         * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
98768         * lib/unistd--.h (pipe): Define to pipe_safer.
98769         * lib/unistd-safer.h: Declare pipe_safer.
98771 2005-08-26  Simon Josefsson  <jas@extundo.com>
98773         * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
98774         Haible <bruno@clisp.org>.
98776 2005-08-26  Paul Eggert  <eggert@cs.ucla.edu>
98778         * lib/regex_internal.h: Remove all references to
98779         RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
98780         or better.
98781         (bitset_not, bitset_merge, bitset_not_merge):
98782         (bitset_mask, re_string_allocate, re_string_construct):
98783         (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
98784         (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
98785         (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
98786         (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
98787         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
98788         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
98789         (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
98790         (re_acquire_state_context):
98791         Remove unnecessary forward decls.
98792         (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
98793         Put __attribute at function definition,
98794         now that the function decl has been removed.
98795         * lib/regex_internal.c (re_string_peek_byte_case):
98796         (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
98797         Likewise.
98799 2005-08-25  Stepan Kasal  <kasal@ucw.cz>
98801         * m4/regex.m4: Add AC_PREREQ(2.50).
98802         (gl_REGEX): If --with-included-regex was given, skip the autodetection.
98804 2005-08-25  Simon Josefsson  <jas@extundo.com>
98806         * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
98807         __fsetlocking.
98809 2005-08-25  Simon Josefsson  <jas@extundo.com>
98811         * lib/getpass.c: Add WIN32 implementation.  Conditionalize use of
98812         termios.h, tcgetattr, tcsetattr and __fsetlocking.  Remove some
98813         GLIBC specific code.
98815 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
98817         Make regex safe for g++.  This fixes one real bug (an "err"
98818         that should have been "*err").  g++ problem reported by
98819         Sam Steingold.
98820         * lib/regex_internal.h (re_calloc): New macro, consistent with
98821         re_malloc etc.  All callers of calloc changed to use re_calloc.
98822         * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
98823         not int.  All callers changed.
98824         * lib/regcomp.c (re_compile_fastmap_iter): Don't use
98825         alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
98826         * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
98827         (find_recover_state): Change "err" to "*err"; this fixes what
98828         appears to be a real bug.
98829         (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
98830         versus int.
98832 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
98834         * modules/regex (Depends-on): Add malloc, since the code
98835         assumes that !malloc(0) means failure.
98837 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
98839         * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
98841         alloca modernization/simplification for regex.
98842         * lib/regex.c: Remove portability cruft for alloca.  This no longer
98843         needs to be at the start of the file, and can be moved into
98844         regex_internal.h and simplified.
98845         * lib/regex_internal.h: Include <alloca.h>.
98846         (__libc_use_alloca) [!defined _LIBC]: New macro.
98847         * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
98848         now works outside glibc.
98850 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
98852         * config/srclist.txt: Add glibc bugs 1241, 1245.
98854 2005-08-25  Jim Meyering  <jim@meyering.net>
98856         * lib/open-safer.c: Include <config.h>.
98857         Otherwise, we'd lose LARGEFILE support in any file using
98858         e.g. "fcntl--.h"
98860 2005-08-25  Bruno Haible  <bruno@clisp.org>
98862         * m4/minmax.m4: Require autoconf 2.52.
98863         (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
98864         of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
98865         alternatives of translit over the alphabet.
98866         Based on a patch from Stepan Kasal <kasal@ucw.cz>.
98868 2005-08-24  Simon Josefsson  <jas@extundo.com>
98870         * tests/test-getpass.c: New file.
98872 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
98874         * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
98875         for GNU regex features.
98877 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
98879         * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
98880         * lib/regex.h (regerror): Likewise.
98882         * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
98883         requires this.  (The code never needed it.)
98885         * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
98886         All uses of recently-renamed identifiers changed to use the new,
98887         POSIX-compliant names.  The code will build and run just fine
98888         without these changes, but it's better to eat our own dog food
98889         and use the standard-conforming names.
98891         * lib/regex.h: Fix a multitude of POSIX name space violations.
98892         These changes have an effect only for programs that define
98893         _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
98894         do not change anything for programs compiled in the normal way.
98895         Also, there is no effect on the ABI.
98897         (_REGEX_SOURCE): New macro.
98898         Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
98899         defined and _GNU_SOURCE is not; this fixes a name space violation.
98901         Rename the following macros to obey POSIX requirements.
98902         The old names are still visible as macros if _REGEX_SOURCE is defined.
98903         (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
98904         RE_BACKSLASH_ESCAPE_IN_LISTS.
98905         (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
98906         (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
98907         (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
98908         (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
98909         (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
98910         (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
98911         (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
98912         (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
98913         (REG_INTERVALS): renamed from RE_INTERVALS.
98914         (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
98915         (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
98916         (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
98917         (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
98918         (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
98919         (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
98920         (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
98921         (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
98922         RE_UNMATCHED_RIGHT_PAREN_ORD.
98923         (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
98924         (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
98925         (REG_DEBUG): renamed from RE_DEBUG.
98926         (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
98927         (REG_IGNORE_CASE): renamed from RE_ICASE.  This renaming is a bit
98928         unusual, since we can't clash with the POSIX REG_ICASE.
98929         (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
98930         (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
98931         (REG_NO_SUB): renamed from RE_NO_SUB.
98932         (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
98933         (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
98934         (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
98935         (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
98936         (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
98937         (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
98938         (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
98939         (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
98940         (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
98941         (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
98942         (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
98943         (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
98944         RE_SYNTAX_POSIX_MINIMAL_BASIC.
98945         (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
98946         (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
98947         RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
98948         (REG_DUP_MAX): renamed from RE_DUP_MAX.  No need to undef it.
98949         (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
98950         (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
98951         (REG_FIXED): Renamed from REGS_FIXED.
98952         (REG_NREGS): Renamed from RE_NREGS.
98954         (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
98955         of other REG_* macros, since POSIX says the user is allowed to
98956         #undef these macros selectively.
98958         (reg_errcode_t): Update comment stating what other tables need
98959         to be consistent.
98961         Rename the following enum values to obey POSIX requirements.
98962         The old names are still visible as macros.
98963         (_REG_ENOSYS): Renamed from REG_ENOSYS.  Define even if _XOPEN_SOURCE
98964         is not defined, since GNU is supposed to be a superset of POSIX as
98965         much as possible, and since we want reg_errcode_t to be a signed
98966         type for implementation consistency.
98967         (_REG_NOERROR): Renamed from REG_NOERROR.
98968         (_REG_NOMATCH): Renamed from REG_NOMATCH.
98969         (_REG_BADPAT): Renamed from REG_BADPAT.
98970         (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
98971         (_REG_ECTYPE): Renamed from REG_ECTYPE.
98972         (_REG_EESCAPE): Renamed from REG_EESCAPE.
98973         (_REG_ESUBREG): Renamed from REG_ESUBREG.
98974         (_REG_EBRACK): Renamed from REG_EBRACK.
98975         (_REG_EPAREN): Renamed from REG_EPAREN.
98976         (_REG_EBRACE): Renamed from REG_EBRACE.
98977         (_REG_BADBR): Renamed from REG_BADBR.
98978         (_REG_ERANGE): Renamed from REG_ERANGE.
98979         (_REG_ESPACE): Renamed from REG_ESPACE.
98980         (_REG_BADRPT): Renamed from REG_BADRPT.
98981         (_REG_EEND): Renamed from REG_EEND.
98982         (_REG_ESIZE): Renamed from REG_ESIZE.
98983         (_REG_ERPAREN): Renamed from REG_ERPAREN.
98984         (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
98985         (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
98986         (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
98987         (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
98989         (_REG_RE_NAME, _REG_RM_NAME): New macros.
98990         (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE.  All uses
98991         changed.  But support the old name if the new one is not defined
98992         and if _REGEX_SOURCE.
98994         Change the following member names in struct re_pattern_buffer.
98995         The old names are still supported if !_REGEX_SOURCE.
98996         The new names are always supported, regardless of _REGEX_SOURCE.
98997         (re_buffer): Renamed from buffer.
98998         (re_allocated): Renamed from allocated.
98999         (re_used): Renamed from used.
99000         (re_syntax): Renamed from syntax.
99001         (re_fastmap): Renamed from fastmap.
99002         (re_translate): Renamed from translate.
99003         (re_can_be_null): Renamed from can_be_null.
99004         (re_regs_allocated): Renamed from regs_allocated.
99005         (re_fastmap_accurate): Renamed from fastmap_accurate.
99006         (re_no_sub): Renamed from no_sub.
99007         (re_not_bol): Renamed from not_bol.
99008         (re_not_eol): Renamed from not_eol.
99009         (re_newline_anchor): Renamed from newline_anchor.
99011         Change the following member names in struct re_registers.
99012         The old names are still supported if !_REGEX_SOURCE.
99013         The new names are always supported, regardless of _REGEX_SOURCE.
99014         (rm_num_regs): Renamed from num_regs.
99015         (rm_start): Renamed from start.
99016         (rm_end): Renamed from end.
99018         (re_set_syntax, re_compile_pattern, re_compile_fastmap):
99019         (re_search, re_search_2, re_match, re_match_2, re_set_registers):
99020         Prepend __ to parameter names.
99022         Undo yesterday's changes.
99024 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
99026         * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
99027         supersedes it. Add glibc bugs 1237, 1238, 1240.  Comment out
99028         lib/regex.c.
99030 2005-08-24  Jim Meyering  <jim@meyering.net>
99032         Sync from coreutils.
99033         * m4/fcntl-safer.m4: New file.
99035         * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
99036         and object files for this module.
99038 2005-08-24  Jim Meyering  <jim@meyering.net>
99040         Sync from coreutils.
99041         * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
99043 2005-08-24  Jim Meyering  <jim@meyering.net>
99045         * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
99046         now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
99048 2005-08-24  Jim Meyering  <jim@meyering.net>
99050         * modules/fcntl-safer: New module.
99051         * modules/fts (Depends-on): Add fcntl-safer.
99052         * MODULES.html.sh (File descriptor based Input/Output):
99053         Add fcntl-safer.
99055 2005-08-24  Bruno Haible  <bruno@clisp.org>
99057         Support for unit test modules.
99058         * modules/README: Mention tests modules.
99059         * modules/TEMPLATE-TESTS: New file.
99060         * gnulib-tool: New options --extract-tests-module, --with-tests and
99061         --tests-base (unused for the moment).
99062         (testsbase, inctests): New variables.
99063         (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
99064         (func_verify_module): Exclude TEMPLATE-TESTS.
99065         (func_verify_nontests_module, func_verify_tests_module): New functions.
99066         (func_get_dependencies): Add implicit dependency for tests modules.
99067         (func_get_tests_module): New function.
99068         (func_modules_transitive_closure): When --with-tests was specified,
99069         include the unit tests as well, unless explicitly avoided.
99070         (func_emit_lib_Makefile_am): Ignore the tests modules here.
99071         (func_emit_tests_Makefile_am): New function.
99072         (func_create_testdir): When --with-tests was specified, emit a
99073         tests/ directory.
99074         * MODULES.html.sh (Future developments): Update.
99076 2005-08-24  Bruno Haible  <bruno@clisp.org>
99078         * modules/tls-tests: New file.
99079         * tests/test-tls.c: New file, from GNU gettext.
99081 2005-08-24  Bruno Haible  <bruno@clisp.org>
99083         * modules/lock-tests: New file.
99084         * tests/test-lock.c: New file, from GNU gettext.
99086 2005-08-24  Bruno Haible  <bruno@clisp.org>
99088         * lib/lock.h: Add multiple inclusion guard.
99089         * lib/tls.h: Add multiple inclusion guard.
99091 2005-08-24  Bruno Haible  <bruno@clisp.org>
99093         * gnulib-tool: Add support for the --aux-dir option to
99094         --create-testdir, --create-megatestdir, --test, --megatest.
99095         (func_create_testdir, func_create_megatestdir): Optionally emit a
99096         AC_CONFIG_AUX_DIR directive.
99097         (create-testdir, create-megatestdir, test, megatest): Provide a
99098         default value for $auxdir.
99100 2005-08-24  Bruno Haible  <bruno@clisp.org>
99102         * gnulib-tool (import): Use compound statement instead of subshell
99103         where possible.
99105 2005-08-24  Bruno Haible  <bruno@clisp.org>
99107         * gnulib-tool (import): Change --aux-dir default to "build-aux".
99109 2005-08-24  Bruno Haible  <bruno@clisp.org>
99111         * gnulib-tool (func_version): Update.
99113 2005-08-24  Bruno Haible  <bruno@clisp.org>
99115         * gnulib-tool (func_import, func_create_testdir,
99116         func_create_megatestdir): Quote all autoconf macro arguments.
99118 2005-08-24  Bruno Haible  <bruno@clisp.org>
99120         * gnulib-tool (func_create_megatestdir): Call autoreconf without the
99121         option --force, because --force causes the aclocal.m4 of each
99122         subdirectory to be newer than the corresponding config.h.in.
99124 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
99126         * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
99127         All contents moved to gl_REGEX.
99128         (gl_REGEX): Don't bother checking whether lib/regex.c exists;
99129         assume that it does.
99131 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
99133         * lib/regex.h (REG_NOSYS)
99134         [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
99135         Define, since POSIX requires it as of 2001.
99136         (_REG_ENOSYS)
99137         [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
99138         New private symbol, used to keep the enum signed in all cases.
99139         * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
99140         Youngman in
99141         <http://lists.gnu.org/archive/html/bug-gnulib/2005-07/msg00132.html>.
99143         * lib/regex_internal.c (re_string_skip_chars, register_state):
99144         (calc_state_hash):
99145         Remove forward decls; no longer needed now that we use prototypes.
99146         * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
99147         (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
99148         (clean_state_log_if_needed): Likewise.
99150 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
99152         * config/srclist.txt: Add glibc bugs 1231-1233.
99154 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
99156         Fix problems reported by Sam Steingold in
99157         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00007.html>.
99158         * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
99159         assumed that reg_errcode_t is a signed type, which is not
99160         necessarily true if _XOPEN_SOURCE is not defined.
99161         * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
99162         since some compilers warn about it otherwise.
99164 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
99166         * lib/regcomp.c (create_initial_state): Remove duplicate decl.
99167         (init_word_char, create_initial_state, duplicate_node_closure):
99168         (fetch_token, peek_token_bracket, build_range_exp):
99169         (build_collating_symbol): Remove forward decls; no longer needed
99170         now that we use prototypes.
99172         * lib/regcomp.c:
99173         (re_compile_pattern, re_set_syntax, re_compile_fastmap):
99174         (re_compile_fastmap_iter, regcomp, regerror, regfree):
99175         (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
99176         (create_initial_state, optimize_utf8, analyze, postorder, preorder):
99177         (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
99178         (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
99179         (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
99180         (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
99181         (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
99182         (build_range_exp, build_collating_symbol, parse_bracket_exp):
99183         (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
99184         (build_charclass, build_charclass_op, fetch_number, create_tree):
99185         (create_token_tree, mark_opt_subexp, duplicate_tree):
99186         Use prototypes rather than old-style definitions.
99188         * lib/regex_internal.c:
99189         (re_string_allocate, re_string_construct, re_string_realloc_buffers):
99190         (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
99191         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
99192         (re_string_reconstruct, re_string_peek_byte_case):
99193         (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
99194         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
99195         (re_node_set_init_copy, re_node_set_add_intersect):
99196         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
99197         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
99198         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
99199         (re_acquire_state, re_acquire_state_context, register_state):
99200         (create_ci_newstate, create_cd_newstate, free_state):
99201         Likewise.
99202         * lib/regexec.c (regexec, re_match, re_search, re_match_2,
99203         re_search_2):
99204         (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
99205         (re_search_internal, prune_impossible_nodes):
99206         (acquire_init_state_context, check_matching, static):
99207         (check_halt_node_context, check_halt_state_context, proceed_next_node):
99208         (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
99209         (update_regs, sift_states_backward, build_sifted_states):
99210         (clean_state_log_if_needed, merge_state_array):
99211         (update_cur_sifted_state, add_epsilon_src_nodes):
99212         (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
99213         (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
99214         (sift_states_iter_mb, transit_state, merge_state_with_log, static):
99215         (find_recover_state, check_subexp_matching_top, transit_state_mb):
99216         (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
99217         (check_arrival, check_arrival_add_next_nodes):
99218         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
99219         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
99220         (check_node_accept_bytes, check_node_accept, extend_buffers):
99221         (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
99222         (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
99223         (sift_ctx_init):
99224         Likewise.
99226         * lib/regex_internal.h:
99227         (re_string_allocate, re_string_construct, re_string_reconstruct):
99228         (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
99229         (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
99230         (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
99231         (re_string_context_at, re_string_peek_byte_case):
99232         (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
99233         is defined, since we now use prototypes always.
99235         * lib/regex.h (_RE_ARGS): Remove.  No longer needed, since we assume
99236         C89 or better.  All uses removed.
99238 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
99240         * config/srclist.txt: Add glibc bugs 1220-1227.
99242 2005-08-20  Jim Meyering  <jim@meyering.net>
99244         * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
99245         of unused local, dfa.
99247 2005-08-20  Bruno Haible  <bruno@clisp.org>
99249         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
99251 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
99253         * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
99254         (re_node_set_insert_last, re_dfa_add_node):
99255         Rename local variables to avoid GCC shadowing warnings.
99257 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
99259         * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
99260         [defined lint]: Suppress bogus uninitialized-variable warnings.
99262         * lib/regcomp.c (duplicate_node): Return new index, not an error code,
99263         and let the caller return REG_ESPACE if out of space.  This
99264         removes an uninitialied-variable warning with GCC 4.0.1, and also
99265         avoids taking the address of a local variable.  All callers
99266         changed.
99268 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
99270         * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
99271         $LIBCSRC/posix/regexec.c.
99272         Add glibc bug 1217 for regcomp.c.
99274 2005-08-19  Jim Meyering  <jim@meyering.net>
99276         * lib/regexec.c (proceed_next_node): Redo local variables to
99277         avoid GCC shadowing warnings.
99279 2005-08-18  Bruno Haible  <bruno@clisp.org>
99281         * lib/strstr.c (strstr): Fix return value in multibyte case.
99282         * lib/strcasestr.c (strcasestr): Likewise.
99284 2005-08-17  Paul Eggert  <eggert@cs.ucla.edu>
99286         * lib/regex.h: Remove useless space-before-tab.  From coreutils.
99288 2005-08-17  Jim Meyering  <jim@meyering.net>
99290         Make the %s format (seconds since the epoch) work for a negative
99291         number and when used with a zero-padded field width, e.g. %015s.
99293         * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
99294         label so that it precedes the code to set `digits'.  Otherwise,
99295         %0Ns wouldn't work.  Before this change, `date -d @-22 +%05s' would
99296         print `00-22'.  Now, it prints `-0022', as it should.
99298 2005-08-17  Bruno Haible  <bruno@clisp.org>
99300         * modules/strstr (Files): Add m4/mbrtowc.m4.
99301         (Depends-on): Add mbuiter.
99303 2005-08-17  Bruno Haible  <bruno@clisp.org>
99305         * modules/strcasestr: New file.
99306         * MODULES.html.sh (String handling, based on ANSI C 89): Add
99307         strcasestr.
99309 2005-08-17  Bruno Haible  <bruno@clisp.org>
99311         * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
99313 2005-08-17  Bruno Haible  <bruno@clisp.org>
99315         * modules/mbuiter: New file.
99316         * MODULES.html.sh (Extended multibyte and wide character utilities):
99317         Add mbuiter.
99319 2005-08-17  Bruno Haible  <bruno@clisp.org>
99321         * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
99322         (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
99324 2005-08-17  Bruno Haible  <bruno@clisp.org>
99326         * m4/strcasestr.m4: New file.
99328 2005-08-17  Bruno Haible  <bruno@clisp.org>
99330         * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
99331         * lib/strstr.c: Completely rewritten, with multibyte locale support.
99333 2005-08-17  Bruno Haible  <bruno@clisp.org>
99335         * lib/strcasestr.h: New file.
99336         * lib/strcasestr.c: New file.
99338 2005-08-17  Bruno Haible  <bruno@clisp.org>
99340         * lib/strcasecmp.c: Use mbuiter.h.
99342 2005-08-17  Bruno Haible  <bruno@clisp.org>
99344         * lib/mbuiter.h: New file.
99346 2005-08-16  Paul Eggert  <eggert@cs.ucla.edu>
99348         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
99349         of gl_GETOPT_SUBSTITUTE.  That way, if both gl_GETOPT_SUBSTITUTE
99350         and gl_GETOPT are both invoked via different paths (as happens
99351         with GNU tar CVS because it uses both argp and getopt), the former
99352         wins.
99354 2005-08-16  Bruno Haible  <bruno@clisp.org>
99356         * modules/tls: New file.
99357         * MODULES.html.sh (Multithreading): Add tls.
99359 2005-08-16  Bruno Haible  <bruno@clisp.org>
99361         * modules/strnlen1: New file.
99362         * MODULES.html.sh (String handling): Add strnlen1.
99364 2005-08-16  Bruno Haible  <bruno@clisp.org>
99366         * modules/strcase (Files): Add m4/mbrtowc.m4.
99367         (Depends-on): Add strnlen1, mbchar.
99369 2005-08-16  Bruno Haible  <bruno@clisp.org>
99371         * modules/mbiter: New file.
99372         * MODULES.html.sh (Extended multibyte and wide character utilities):
99373         Add mbiter.
99375 2005-08-16  Bruno Haible  <bruno@clisp.org>
99377         * modules/mbfile: New file.
99378         * MODULES.html.sh (Extended multibyte and wide character utilities):
99379         Add mbfile.
99381 2005-08-16  Bruno Haible  <bruno@clisp.org>
99383         * modules/mbchar: New file.
99384         * MODULES.html.sh (Extended multibyte and wide character utilities):
99385         New section.
99387 2005-08-16  Bruno Haible  <bruno@clisp.org>
99389         * m4/tls.m4: New file, from GNU gettext.
99391 2005-08-16  Bruno Haible  <bruno@clisp.org>
99393         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
99394         always.
99395         (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
99397 2005-08-16  Bruno Haible  <bruno@clisp.org>
99399         * m4/mbiter.m4: New file.
99401 2005-08-16  Bruno Haible  <bruno@clisp.org>
99403         * m4/mbfile.m4: New file.
99405 2005-08-16  Bruno Haible  <bruno@clisp.org>
99407         * m4/mbchar.m4: New file.
99409 2005-08-16  Bruno Haible  <bruno@clisp.org>
99411         * lib/tls.h: New file, from GNU gettext.
99412         * lib/tls.c: New file, from GNU gettext.
99414 2005-08-16  Bruno Haible  <bruno@clisp.org>
99416         * lib/strnlen1.h: New file.
99417         * lib/strnlen1.c: New file.
99419 2005-08-16  Bruno Haible  <bruno@clisp.org>
99421         * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
99422         (mbi_init): Update.
99423         (mbi_avail, mbi_advance): Let the iteration end before the terminating
99424         NUL byte, not after it.
99426 2005-08-16  Bruno Haible  <bruno@clisp.org>
99428         * lib/strcase.h (strcasecmp): Add note in comments.
99429         * lib/strncasecmp.c: Use code from strcasecmp.c.
99430         * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
99431         (strcasecmp): Work correctly in multibyte locales.
99433 2005-08-16  Bruno Haible  <bruno@clisp.org>
99435         * lib/mbiter.h: New file.
99437 2005-08-16  Bruno Haible  <bruno@clisp.org>
99439         * lib/mbfile.h: New file.
99441 2005-08-16  Bruno Haible  <bruno@clisp.org>
99443         * lib/mbchar.h: New file.
99444         * lib/mbchar.c: New file.
99446 2005-08-16  Bruno Haible  <bruno@clisp.org>
99448         * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
99449         the valid ones. Makes the comparison operations transitive:
99450         cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
99451         * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
99453 2005-08-15  Simon Josefsson  <jas@extundo.com>
99455         * modules/ssize_t (License): Change to 'unlimited'.
99457         * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
99459 2005-08-15  Paul Eggert  <eggert@cs.ucla.edu>
99461         * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
99462         Add comments for each pending glibc patch.
99464 2005-08-15  Bruno Haible  <bruno@clisp.org>
99466         * lib/regex.h (__restrict_arr): Don't define to __restrict if
99467         __cplusplus is defined.
99469 2005-08-14  Jim Meyering  <jim@meyering.net>
99471         Sync from coreutils.
99473         * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
99474         Use the hash-table-based cycle-detection code not just when
99475         FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
99476         Reported by James Youngman in
99477         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00011.html>.
99478         * lib/fts_.h: Mention that with FTS_LOGICAL, we use
99479         FTS_TIGHT_CYCLE_CHECK.
99480         * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
99481         s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
99482         once again.
99483         * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
99484         * lib/fts.c (fd_safer): Remove decl.
99485         Include fcntl--.h rather than unistd-safer.h
99486         (fts_safe_changedir): Don't call fd_safer; no longer needed
99487         now that we include fcntl--.h.
99489 2005-08-12  Simon Josefsson  <jas@extundo.com>
99491         * modules/getndelim2: Use ssize_t module.
99492         * modules/getnline: Likewise.
99493         * modules/safe-read: Likewise.
99494         * modules/xreadlink: Likewise.
99496         * modules/ssize_t: New file.
99498 2005-08-12  Simon Josefsson  <jas@extundo.com>
99500         * m4/readline.m4: Look for termcap, curses or ncurses if required.
99502 2005-08-12  Simon Josefsson  <jas@extundo.com>
99504         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
99505         ssize_t.
99507 2005-08-12  Simon Josefsson  <jas@extundo.com>
99509         * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
99510         readline, getdelim and check_version.
99511         (Support for systems lacking ISO C 99: Sizes of integer types):
99512         Add size_max.
99514 2005-08-12  Bruno Haible  <bruno@clisp.org>
99516         * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
99518 2005-08-11  Simon Josefsson  <jas@extundo.com>
99520         * modules/readline: New file.
99522         * modules/strnlen (Files): Add strnlen.h.
99524 2005-08-11  Simon Josefsson  <jas@extundo.com>
99526         * m4/readline.m4: New file.
99528 2005-08-11  Simon Josefsson  <jas@extundo.com>
99530         * lib/readline.h, readline.c: New file.
99532 2005-08-11  Simon Josefsson  <jas@extundo.com>
99534         * doc/gnulib.texi (Initial import, Finishing touches): Mention
99535         gl_AVOID.
99537 2005-08-11  Bruno Haible  <bruno@clisp.org>
99539         * lib/strnlen.h (strnlen): Change parameter name to match comment.
99541 2005-08-10  Stepan Kasal  <kasal@ucw.cz>
99543         * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
99545 2005-08-10  Simon Josefsson  <jas@extundo.com>
99547         * tests/test-iconvme.c: New file.
99549 2005-08-10  Simon Josefsson  <jas@extundo.com>
99551         * m4/strnlen.m4: New file.
99553         * m4/strndup.m4: Don't check for strnlen declaration, done in
99554         strnlen.m4.
99556 2005-08-10  Simon Josefsson  <jas@extundo.com>
99558         * lib/strndup.c: Use strnlen.h.
99560         * lib/strnlen.h: New file.
99562 2005-08-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
99564         * README: Typos.
99566 2005-08-02  Simon Josefsson  <jas@extundo.com>
99568         * modules/readline: New file.
99570 2005-08-02  Simon Josefsson  <jas@extundo.com>
99572         * modules/getdelim: New file.
99574         * modules/getline: Rewrite, don't use getndelim2.
99576 2005-08-02  Simon Josefsson  <jas@extundo.com>
99578         * m4/getline.m4: Separate out getdelim stuff into separate module.
99580         * m4/getdelim.m4: New file.
99582 2005-08-02  Simon Josefsson  <jas@extundo.com>
99584         * lib/getline.h, getline.c: Rewrite.
99586         * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
99588 2005-07-31  Bruno Haible  <bruno@clisp.org>
99590         * lib/lock.h (gl_lock_initializer): New macro.
99591         (gl_lock_define_initialized): Use it.
99592         (gl_rwlock_initializer): New macro.
99593         (gl_rwlock_define_initialized): Use it.
99594         (gl_recursive_lock_initializer): New macro.
99595         (gl_recursive_lock_define_initialized): Use it.
99597 2005-07-30  Karl Berry  <karl@gnu.org>
99599         * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
99600         Report from Ben Pfaff, regarding getopt.
99602 2005-07-26  Paul Eggert  <eggert@cs.ucla.edu>
99604         Add support to getopt for Emacs, which doesn't use LIBOBJS in the
99605         normal way.
99606         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
99607         (gl_GETOPT_SUBSTITUTE): Use it.  Invoke gl_PREREQ_GETOPT.
99608         (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
99609         (gl_GETOPT): Use the new macros.  Most of the implementation
99610         is moved to the new macros.  This is for programs like Emacs
99611         that don't want all the functionality of gl_GETOPT.
99613 2005-07-26  Bruno Haible  <bruno@clisp.org>
99615         * m4/lock.m4: Update from GNU gettext.
99617 2005-07-26  Bruno Haible  <bruno@clisp.org>
99619         * lib/lock.h: Update from GNU gettext.
99620         * lib/lock.c: Update from GNU gettext.
99622 2005-07-25  Paul Eggert  <eggert@cs.ucla.edu>
99624         * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
99625         obsolescent AC_TRY_RUN.  Include the default includes files, for
99626         'exit'.
99628 2005-07-24  Bruno Haible  <bruno@clisp.org>
99630         * modules/visibility: New file.
99631         * MODULES.html.sh (Misc): Add visibility.
99633 2005-07-24  Bruno Haible  <bruno@clisp.org>
99635         * m4/visibility.m4: New file.
99637 2005-07-24  Bruno Haible  <bruno@clisp.org>
99639         * doc/visibility.texi: New file.
99641 2005-07-22  Bruno Haible  <bruno@clisp.org>
99643         * modules/alloca-opt (Makefile.am): Remove explicit dependency on
99644         $(ALLOCA_H), redundant through BUILT_SOURCES.
99645         * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
99646         redundant through BUILT_SOURCES.
99647         * modules/byteswap (Makefile.am): Remove explicit dependency on
99648         $(BYTESWAP_H), redundant through BUILT_SOURCES.
99649         * modules/fnmatch (Makefile.am): Remove explicit dependency on
99650         $(FNMATCH_H), redundant through BUILT_SOURCES.
99651         * modules/getopt (Makefile.am): Remove explicit dependency on
99652         $(GETOPT_H), redundant through BUILT_SOURCES.
99653         * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
99654         redundant through BUILT_SOURCES.
99655         * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
99656         redundant through BUILT_SOURCES.
99657         * modules/stdbool (Makefile.am): Remove explicit dependency on
99658         $(STDBOOL_H), redundant through BUILT_SOURCES.
99659         * modules/stdint (Makefile.am): Remove explicit dependency on
99660         $(STDINT_H), redundant through BUILT_SOURCES.
99661         * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
99662         Remove explicit dependency on $(SYSEXITS_H).
99663         Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
99665 2005-07-18  Simon Josefsson  <jas@extundo.com>
99667         * lib/check-version.c (check_version): Accept identical versions too.
99669 2005-07-18  Bruno Haible  <bruno@clisp.org>
99671         * modules/lock: New file.
99672         * MODULES.html.sh (Multithreading): New section.
99674 2005-07-18  Bruno Haible  <bruno@clisp.org>
99676         * m4/lock.m4: New file, from GNU gettext.
99678 2005-07-18  Bruno Haible  <bruno@clisp.org>
99680         * lib/lock.h: New file, from GNU gettext.
99681         * lib/lock.c: New file, from GNU gettext.
99683 2005-07-18  Bruno Haible  <bruno@clisp.org>
99685         * lib/lock.h (gl_once_t): New type.
99686         (gl_once_define, gl_once): New macros.
99687         * lib/lock.c (fresh_once): New variable.
99688         (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
99689         functions.
99691 2005-07-16  Simon Josefsson  <jas@extundo.com>
99693         * doc/gnulib.texi (Library version handling): Add ELF symbol collision
99694         workaround, suggested by Bruno.
99696 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
99698         * modules/xalloc (Depends-on): Add xalloc-die.
99699         * modules/xvasprintf (Depends-on): Add xalloc-die.
99701 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
99703         * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
99704         with a minor change.
99706 2005-07-15  Bruno Haible  <bruno@clisp.org>
99708         * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
99709         When using lib/poll.c, define poll as rpl_poll.
99711 2005-07-14  Paul Eggert  <eggert@cs.ucla.edu>
99713         * modules/argp (Depends-on): Remove unlocked-io.
99715 2005-07-14  Derek Price  <derek@ximbiot.com>
99717         * m4/glob.m4 (gl_GLOB): Cache glob interface check result.  Add check
99718         for glob symlink bug.
99720 2005-07-14  Bruno Haible  <bruno@clisp.org>
99722         * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
99723         Instead, test for *_unlocked function declarations directly.
99725 2005-07-11  Simon Josefsson  <jas@extundo.com>
99727         * modules/size_max: New file.
99729         * modules/xsize: Depend on size_max module for size_max.m4.
99731 2005-07-11  Simon Josefsson  <jas@extundo.com>
99733         * lib/size_max.h: New file.
99735 2005-07-11  Paul Eggert  <eggert@cs.ucla.edu>
99737         * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
99738         copyright symbol and the year.
99739         * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
99740         (version_etc_va): Use parameterized copyright notice.
99741         Reword to conform to the current GNU coding standards.
99743 2005-07-11  Karl Berry  <karl@gnu.org>
99745         * doc/gnulib.texi (Quoting): new node.
99746         (Initial import): more info, from Patrice.
99748 2005-07-11  Bruno Haible  <bruno@clisp.org>
99750         * gnulib-tool (func_usage): Document option --avoid.
99751         (Command line options): Handle --avoid.
99752         (func_acceptable): New function.
99753         (func_modules_transitive_closure): Use it.
99755 2005-07-11  Bruno Haible  <bruno@clisp.org>
99757         * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
99758         Reported by Jim Meyering.
99760 2005-07-10  Bruno Haible  <bruno@clisp.org>
99762         * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
99763         Needed when size_t is smaller than 'unsigned int'.
99764         Reported by Paul Eggert.
99766 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
99768         * modules/argp (Depends-on): Add unlocked-io
99770 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
99772         * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
99773         block of defines.
99775 2005-07-08  Paul Eggert  <eggert@cs.ucla.edu>
99777         * config/srclist.txt: Comment out regcomp.c, since we have a porting
99778         fix now.
99780 2005-07-08  Eric Blake  <ebb9@byu.net>  (tiny change)
99781         and Paul Eggert  <eggert@cs.ucla.edu>
99783         * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
99784         in wint_t, not wchar_t.  Remove now-unnecessary cast.
99786 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
99788         * modules/regex (Files): Add lib/regex_internal.c,
99789         lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
99790         (Depends-on): Add extensions.
99791         (Makefile.am): Remove lib_SOURCES; now done by m4 code.
99793 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
99795         * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
99796         pathconf.
99797         * m4/same.m4 (gl_SAME): Likewise.
99798         Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
99800         * m4/regex.m4: Adjust to new libc regex implementation.
99801         (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
99802         all the .c and .h parts of (the new) regex.
99803         Quote the m4 stuff better.
99804         Check for RE_ICASE bug of old gnulib.
99805         Check for REG_STARTEND of recent libc.
99806         Rename local variables from jm_* to gl_*.
99807         Quote operand of "test -f".
99808         Say "recent enough" version of libc, not "version 2".
99809         (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
99810         prerequisite module.  Remove AC_HEADER_STDC; no longer needed.
99811         Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
99812         Remove check for btowc, isascii.
99813         Require AM_LANGINFO_CODESET.
99815 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
99817         * lib/regex.c, regex.h: Sync from libc.
99818         * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
99819         * lib/regexec.c:
99820         New files, synced from libc, except that regex_internal.h
99821         currently has a small porting fix.
99823 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
99825         * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
99826         regex_internal.c, regexec.c.
99827         Add regex_internal.h too, but as a comment, since the libc version
99828         is currently broken in gnulib mode.
99830 2005-07-06  Paul Eggert  <eggert@cs.ucla.edu>
99832         Support programs like Emacs that use gnulib but not gettext.
99833         * MODULES.html.sh (Internationalization functions): Add gettext-h.
99834         * modules/gettext-h: New file.
99835         * modules/gettext (Files): Remove lib/gettext.h.
99836         (Depends-on): Add gettext-h.
99837         (Makefile.am): Remove lib_SOURCES.
99838         * modules/argmatch, modules/c-stack, modules/closeout:
99839         * modules/copy-file, modules/csharpcomp, modules/csharpexec:
99840         * modules/execute, modules/file-type, modules/getaddrinfo:
99841         * modules/getopt, modules/human, modules/javacomp:
99842         * modules/javaexec, modules/mkdir-p, modules/obstack:
99843         * modules/openat, modules/pagealign_alloc, modules/pipe:
99844         * modules/quotearg, modules/regex, modules/rpmatch:
99845         * modules/unicodeio, modules/userspec, modules/version-etc:
99846         * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
99847         * modules/xsetenv:
99848         Depend on gettext-h, not gettext.
99850 2005-07-05  Paul Eggert  <eggert@cs.ucla.edu>
99852         * gnulib-tool (func_import): Add support for 'public domain' license.
99853         * modules/alloca, modules/atexit, modules/memmove:
99854         Now public domain, not GPL.
99855         * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
99856         * modules/realloc, modules/strerror, modules/strtod:
99857         Now LGPL, not GPL.
99859 2005-07-05  Bruno Haible  <bruno@clisp.org>
99861         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
99862         autoconf CVS. Needed for mingw.
99864 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
99866         Remove the dependency of the strftime module on the tzset module.
99867         * modules/strftime (Depends-on): Remove dependency on tzset.
99869 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
99871         Remove the dependency of the strftime module on the tzset module.
99872         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
99873         gl_FUNC_TZSET_CLOBBER.
99875 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
99877         Remove the dependency of the strftime module on the tzset module.
99878         * lib/strftime.c (my_strftime)
99879         [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
99880         Copy the input structure, to work around some of the bug with
99881         Solaris 2.5.1 and Solaris 2.6.  If you still care about these old
99882         Solaris releases, you should also use the tzset module, but we won't
99883         require it as a dependency any more since we don't want LGPLed code
99884         to depend on GPLed code.
99886 2005-07-02  Jim Meyering  <jim@meyering.net>
99888         * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
99889         * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
99890         * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
99891         Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
99893 2005-07-02  Jim Meyering  <jim@meyering.net>
99895         * lib/backupfile.c (backup_args): Change a `0' to NULL.
99897 2005-07-01  Paul Eggert  <eggert@cs.ucla.edu>
99899         * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
99900         declares only 'struct timespec;' (!).
99902 2005-07-01  Jim Meyering  <jim@meyering.net>
99904         * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
99905         * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
99906         * lib/save-cwd.c, tempname.c:
99907         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
99908         and don't include <sys/file.h>).
99910 2005-06-29  Jim Meyering  <jim@meyering.net>
99912         * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
99913         type name.  Use the variable name instead.
99914         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
99915         Likewise.
99917 2005-06-28  Simon Josefsson  <jas@extundo.com>
99919         * modules/check-version (Files): Add check-version.m4.
99921 2005-06-28  Simon Josefsson  <jas@extundo.com>
99923         * m4/check-version.m4: New file, suggested by Jim Meyering
99924         <jim@meyering.net>.
99926 2005-06-28  Simon Josefsson  <jas@extundo.com>
99928         * lib/check-version.h, lib/check-version.c: New files.
99930 2005-06-28  Simon Josefsson  <jas@extundo.com>
99932         * lib/base64.c (base64_encode): Indent.  Rename 'b64' to avoid
99933         collision with global variable.  Better indentation.  Don't
99934         increment buffer pointer beyond buffer end.  Based on comments
99935         from Paul Eggert <eggert@cs.ucla.edu>.
99937         * lib/base64.h: Indent.
99939 2005-06-28  Simon Josefsson  <jas@extundo.com>
99941         * doc/gnulib.texi (Library version handling): New section.
99943 2005-06-28  Jim Meyering  <jim@meyering.net>
99945         * check-module (find_included_lib_files): Hard-code another
99946         pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
99947         but modules/fts-lgpl (correctly) does not list those files.
99949         * modules/canonicalize (Files): Add lib/pathmax.h.
99951 2005-06-25  Simon Josefsson  <jas@extundo.com>
99953         * modules/check-version: New file.
99955 2005-06-24  Paul Eggert  <eggert@cs.ucla.edu>
99957         * lib/canon-host.c (canon-host): Append trailing "," to 0 in
99958         initializer of struct addrinfo, as an indication that we don't
99959         care how many members the structure has.
99961 2005-06-24  Derek Price  <derek@ximbiot.com>
99962         and Bruno Haible  <bruno@clisp.org>
99964         Remove stat module & update lstat.
99965         * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
99966         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
99967         * m4/stat.m4: Remove this file.
99969 2005-06-24  Derek Price  <derek@ximbiot.com>
99970         and Bruno Haible  <bruno@clisp.org>
99972         Remove stat module & update lstat.
99973         * lib/stat.c: Remove this file...
99974         (slash_aware_lstat): ...moving this content and its support...
99975         * lib/lstat.c (rpl_lstat): ...into here.
99976         * lib/lstat.h: New file.
99978 2005-06-24  Derek Price  <derek@ximbiot.com>
99979         and Bruno Haible  <bruno@clisp.org>
99981         Remove stat module & update lstat.
99982         * config/srclist.txt (libc sources): Remove stat.
99984 2005-06-24  Derek Price  <derek@ximbiot.com>
99985         and Bruno Haible  <bruno@clisp.org>
99987         Remove stat module & update lstat.
99988         * MODULES.html.sh (stat): Remove.
99989         * MODULES.html: Regenerated.
99990         * modules/lstat (Description): Correct function name.
99991         (Files): Add "lstat.h".
99992         (Depends-on): Remove stat, add xalloc, stat-macros.
99993         * modules/stat: Remove this file.
99994         (Include): Add "lstat.h", remove <sys/stat.h>.
99996 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
99998         * lib/mktime.c: Include <string.h> even if !DEBUG.  (From glibc.)
99999         (ranged_convert): Don't save conversion in a temporary struct.
100000         This causes a warning with GCC 4.0.0, and anyway in the typical
100001         case it's not worth the extra 100 bytes or so of code.
100002         (ranged_convert, __mktime_internal): When calling a function via a
100003         pointer P, use P () rather than (*P) (), as we now assume C89 or
100004         better.
100006 2005-06-22  Paul Eggert  <eggert@cs.ucla.edu>
100008         * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
100009         "who -r" failed to give output.  Problem reported by Tim Waugh.
100011         * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
100012         (xcalloc): Use it to avoid needless tests.
100013         Problem reported by Jim Meyering.
100015 2005-06-20  Derek Price  <derek@ximbiot.com>
100017         * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
100018         unnecessary for Autoconfs > 2.59c.
100020 2005-06-16  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
100022         * lib/argp.h (__option_is_short): Check upper limit of
100023         __key. Isprint() requires its argument to have the value
100024         of an unsigned char or EOF.
100026 2005-06-16  Jim Meyering  <jim@meyering.net>
100028         * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
100029         when either N or S is zero.
100031 2005-06-16  Derek Price  <derek@ximbiot.com>
100033         * m4/bison.m4: Declare YACC & YFLAGS precious.
100035 2005-06-10  Paul Eggert  <eggert@cs.ucla.edu>
100037         * lib/fnmatch.c (fnmatch): If there is an encoding error in a
100038         multibyte string or pattern, fall back on unibyte matching.
100039         Problem reported by James Youngman.
100041 2005-06-08  Bruno Haible  <bruno@clisp.org>
100043         * modules/csharpcomp: New file.
100044         * MODULES.html.sh (C#): Add csharpcomp.
100046 2005-06-08  Bruno Haible  <bruno@clisp.org>
100048         * m4/csharpcomp.m4: New file, from GNU gettext.
100050 2005-06-08  Bruno Haible  <bruno@clisp.org>
100052         * lib/csharpcomp.h: New file, from GNU gettext.
100053         * lib/csharpcomp.c: New file, from GNU gettext.
100054         * lib/csharpcomp.sh.in: New file, from GNU gettext.
100056 2005-06-08  Bruno Haible  <bruno@clisp.org>
100058         * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
100059         warning on mingw.
100061 2005-06-07  Derek Price  <derek@ximbiot.com>
100063         Sync from CVS.
100064         * lib/glob_.h: Indent nested #ifdef.
100066 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
100068         Sync from coreutils.
100069         Use "file name" when talking about file names, instead of "filename"
100070         or "path", as per the GNU coding standards.
100071         * lib/mkdir-p.c: Renamed from makepath.c.
100072         (make_dir_parents): Renamed from make_path.  All callers changed.
100073         * lib/mkdir-p.h: Likewise.  All includers changed.
100074         * lib/filenamecat.c: Renamed from path-concat.c.
100075         (file_name_concat): Renamed from path_concat.  All callers changed.
100076         [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
100077         * lib/filenamecat.h: Likewise.  All includers changed.
100078         * lib/acl.c: Don't use "path" or "filename" to mean "file name"
100079         in comments or local variable names.
100080         * lib/basename.c: Likewise.
100081         * lib/canonicalize.c, canonicalize.h: Likewise.
100082         * lib/dirname.c, dirname.h: Likewise.
100083         * lib/euidaccess.c: Likewise.
100084         * lib/exclude.c: Likewise
100085         * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
100086         * lib/fsusage.c, fsuage.h: Likewise.
100087         * lib/fts.c, fts_.h: Likewise.
100088         * lib/getcwd.c: Likewise.
100089         * lib/getloadavg.c: Likewise.
100090         * lib/mkstemp.c: Likewise.
100091         * lib/mountlist.c, mountlist.h: Likewise.
100092         * lib/openat.c, openat.h: Likewise.
100093         * lib/readlink-stub.c: Likewise.
100094         * lib/readutmp.c, readutmp.h: Likewise.
100095         * lib/rename.c: Likewise.
100096         * lib/rmdir.c: Likewise.
100097         * lib/same.c: Likewise.
100098         * lib/savedir.c: Likewise.
100099         * lib/stripslash.c: Likewise.
100100         * lib/tempname.c: Likewise.
100101         * lib/xreadlink.c: Likewise.
100102         * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
100103         All uses changed.
100104         * lib/exclude.h: Likewise.
100106         * lib/euidaccess.c (getuid, getgid, getuid, getegid)
100107         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
100108         * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
100109         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
100110         * lib/pathmax.h: Include <limits.h> unconditionally, since other
100111         files have been getting away with it for years (MORE/BSD 4.3
100112         is extinct now).
100113         * lib/userspec.c (getpwnam, getgrnam, getgrgid)
100114         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
100116         * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
100117         Define to 256, not 255, as per modern POSIX.
100119 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
100121         Sync from coreutils.
100122         Use "file name" when talking about file names, instead of "filename"
100123         or "path", as per the GNU coding standards.
100124         * MODULES.html.sh: mkdir-p renamed from makepath.
100125         filenamecat renamed from path-concat.
100126         * modules/filenamecat: Renamed from modules/path-concat.
100127         (Files): filenamecat.h and filenamecat.c renamed from
100128         path-concat.h and path-concat.c.
100129         (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
100130         (Include): filenamecat.h, not path-concat.h.
100131         * modules/mkdir-p: Renamed from modules/makepath.
100132         (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
100133         makepath.c.
100134         (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
100135         (Include): mkdir-p.h, not makepath.h.
100137 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
100139         Sync from coreutils.
100140         * m4/mkdir-p.m4: Renamed from makepath.m4.
100141         (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH.  All uses changed.
100142         Rename files from makepath.c to mkdir-p.c, and from
100143         makepath.h to mkdir-p.h.
100144         * m4/filenamecat.m4: Renamed from path-concat.m4.
100145         (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT.  All uses changed.
100146         Rename files from path-concat.c to filenamecat.c,
100147         and from path-concat.h to filenamecat.h.
100148         * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
100149         "file name" in local variables or comments.
100150         * m4/rename.m4: Likewise.
100152 2005-06-01  Bruno Haible  <bruno@clisp.org>
100154         * modules/csharpexec: New file.
100155         * MODULES.html.sh (C#): New section.
100157 2005-06-01  Bruno Haible  <bruno@clisp.org>
100159         * m4/csharp.m4: New file, from GNU gettext.
100160         * m4/csharpexec.m4: New file, from GNU gettext.
100162 2005-06-01  Bruno Haible  <bruno@clisp.org>
100164         * lib/csharpexec.h: New file, from GNU gettext.
100165         * lib/csharpexec.c: New file, from GNU gettext.
100166         * lib/csharpexec.sh.in: New file, from GNU gettext.
100168 2005-05-31  Derek Price  <derek@ximbiot.com>
100169             Paul Eggert  <eggert@cs.ucla.edu>
100171         Sync from cvs.
100172         * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
100174 2005-05-31  Derek Price  <derek@ximbiot.com>
100175             Paul Eggert  <eggert@cs.ucla.edu>
100177         Sync from cvs.
100178         * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
100180 2005-05-29  Derek Price  <derek@ximbiot.com>
100182         * config/srclist.txt (glob_.h, glob.c): Add these files.
100184 2005-05-29  Derek Price  <derek@ximbiot.com>
100186         * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
100187         * modules/glob: New file.
100188         * modules/getlogin_r: Add link to POSIX spec in description.
100190 2005-05-29  Derek Price  <derek@ximbiot.com>
100191             Paul Eggert  <eggert@cs.ucla.edu>
100193         * m4/glob.m4: New file.
100195 2005-05-29  Derek Price  <derek@ximbiot.com>
100196             Paul Eggert  <eggert@cs.ucla.edu>
100198         * lib/glob_.h, lib/glob.c: New files.
100200 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
100202         * modules/fts (Files): Remove m4/inttypes-pri.m4.
100203         * modules/fts-lgpl (Depends-on): Remove gettext.
100205 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
100207         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
100208         and don't require gt_INTTYPES_PRI.
100210 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
100212         * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
100214         * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
100215         the configuration hassle isn't worth it.
100216         Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
100217         (LONGEST_MODIFIER, PRIuMAX): Remove.
100219 2005-05-27  Bruno Haible  <bruno@clisp.org>
100221         * lib/getlogin_r.h: Remove second include of <stddef.h>.
100223 2005-05-26  Paul Eggert  <eggert@cs.ucla.edu>
100225         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
100226         _POSIX_PTHREAD_SEMANTICS for Solaris.
100228 2005-05-25  Derek Price  <derek@ximbiot.com>
100230         * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
100232 2005-05-25  Derek Price  <derek@ximbiot.com>
100233             Paul Eggert  <eggert@cs.ucla.edu>
100235         * modules/getlogin_r, m4/getlogin_r.m4: New files.
100236         * lib/getlogin_r.c, getlogin_r.h: New files.
100238 2005-05-25  Bruno Haible  <bruno@clisp.org>
100239             Derek Price  <derek@ximbiot.com>
100241         * lib/getlogin_r.h: Simplify API documentation.
100243 2005-05-23  Derek Price  <derek@ximbiot.com>
100245         * modules/minmax (Files): Add m4/minmax.m4.
100246         (configure.ac): Add gl_MINMAX.
100248 2005-05-22  Paul Eggert  <eggert@cs.ucla.edu>
100250         * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
100251         so that unistd-safer.h (GPL'ed code) need not be included.
100253 2005-05-22  Bruno Haible  <bruno@clisp.org>
100255         * m4/minmax.m4: New file.
100256         Based on a patch by Derek Price <derek@ximbiot.com>.
100258 2005-05-22  Bruno Haible  <bruno@clisp.org>
100260         * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
100261         (INT64_MIN): Fix definition.
100262         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
100264         * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
100265         NEED_SIGNED_INT_TYPES.
100267         * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
100268         HAVE_SYSTEM_INTTYPES.
100270 2005-05-22  Bruno Haible  <bruno@clisp.org>
100272         * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
100273         Also include <sys/param.h> if it defines MIN, MAX.
100274         Based on a patch by Derek Price <derek@ximbiot.com>.
100276 2005-05-21  Jim Meyering  <jim@meyering.net>
100278         * modules/fts (Files): Add m4/inttypes-pri.m4.
100279         (Depends-on): Add lstat and remove gettext.  Alphabetize.
100281 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
100283         New fts module.
100284         * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
100285         (setup_dir, free_dir): New functions.
100286         (enter_dir, leave_dir): Define trivial
100287         alternatives of _LGPL_PACKAGE.  Move to fts-cycle.c if !_LGPL_PACKAGE.
100288         (HT_INITIAL_SIZE, ENTER_DIR): Remove.  All uses removed.
100289         (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
100290         (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
100291         Move to fts-cycle.c.
100292         (fts_open): Use setup_dir.
100293         (fts_close): Use free_dir.
100294         (fts_read): Have just one copy of the ENTER_DIR code rather than three.
100295         This adds a label and some gotos, but the alternatives were messier.
100296         Check for memory allocation failure when entering a dir.
100297         (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
100298         * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
100299         (FTS): New member fts_cycle, that is a union that contains the
100300         old active_dir_ht and cycle_state.  All uses changed to mention
100301         fts_cycle.ht and fts_cycle.state.
100302         * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
100303         fts.c, with the following changes:
100304         (setup_dir, free_dir): New functions.
100305         (enter_dir): Now returns bool.  Return true if successful, false
100306         if memory exhausted.  All callers changed.
100307         Do not bother partly cleaning up on
100308         memory allocation failure; that is free_dir's job.
100309         However, free ad if hash_insert fails, to avoid memory leak.
100310         (enter_dir, leave_dir): Accommodate change to FTS by inspecting
100311         fts->fts_options to see which union member to use.
100313 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
100315         * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
100316         (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
100318 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
100320         * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
100322 2005-05-20  Jim Meyering  <jim@meyering.net>
100324         * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
100325         Now a macro, to pacify GCC.
100327 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
100329         * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
100330         of -1.
100332 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
100334         * lib/chown.c (rpl_chown): Return -1 on failure.
100336 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
100338         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
100339         Don't check for stddef.h.
100340         * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
100341         don't use its results.
100342         Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
100343         since we include them unconditionally.  Don't require
100344         AM_STDBOOL_H, since stdbool is a prerequisite.
100345         Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
100346         since we assume C89 or better.
100347         Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
100348         as we don't use their results.
100349         Don't check for fchdir, memmove, memset, strrchr, as we use
100350         them unconditionally.
100351         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
100352         GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
100354 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
100356         * lib/canonicalize.c: Include canonicalize.h first, to test interface.
100357         Include <stddef.h> unconditionally, since we assume C89 now.
100358         All uses of PTR_INT_TYPE replaced by ptrdiff_t.
100359         * lib/fts.c: Include fts_.h first, to check interface.
100360         Do not include intprops.h; no longer needed.
100361         Include cycle-check.h and hash.h, since fts_.h no longer does.
100362         Remove unnecessary casts of closedir to void.
100363         (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
100364         decide whether to decrement nlinks.
100365         * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
100366         (FTS): Use struct hash_table * instead of Hash_table, so that
100367         we no longer need to include hash.h here.
100369 2005-05-18  Jim Meyering  <jim@meyering.net>
100371         * modules/dirfd (License): Change to LGPL.  Most of the code
100372         is already in the public domain.
100374 2005-05-18  Jim Meyering  <jim@meyering.net>
100376         * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
100377         Reported by Yoann Vandoorselaere.
100379 2005-05-17  Jim Meyering  <jim@meyering.net>
100381         * m4/fts.m4: New file, from coreutils.
100383 2005-05-17  Jim Meyering  <jim@meyering.net>
100385         * lib/fts.c, lib/fts_.h: New files, from coreutils.
100387 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
100389         Sync from coreutils.
100390         * m4/unlinkdir.m4: New file.
100392 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
100394         Sync from coreutils.
100395         * lib/unlinkdir.c, lib/unlinkdir.h: New files.
100396         * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
100397         lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
100398         White space changes only.
100399         * lib/makepath.c (make_path): Port to hosts where leading "//" is
100400         special.
100401         * lib/yesno.c: Include getline.h, not ctype.h.
100402         (yesno): Don't remove leading white space; POSIX doesn't allow it.
100403         Use getline to remove arbitrary restriction on response length.
100405 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
100407         * config/srclist-update: Spell out "Street" in FSF postal
100408         mail address; this is the style the FSF seems to prefer.
100410         * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
100411         build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
100412         this updates FSF postal mail address.
100414         Sync from coreutils.
100415         * modules/unlinkdir: New file.
100416         * modules/yesno (Depends-on): Add getline.
100417         * MODULES.html.sh (File system functions): Add unlinkdir.
100419 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
100421         * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
100422         lib/strsep.h:
100423         Change the initial comment to refer to GPL, not LGPL.
100424         gnulib-tool will change it to LGPL as needed.
100426         * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
100427         lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
100428         lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
100429         lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
100430         lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
100431         lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
100432         lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
100433         lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
100434         lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
100435         lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
100436         lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
100437         lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
100438         lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
100439         lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
100440         lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
100441         lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
100442         lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
100443         lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
100444         lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
100445         lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
100446         lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
100447         lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
100448         lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
100449         lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
100450         lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
100451         lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
100452         lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
100453         lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
100454         lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
100455         lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
100456         lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
100457         lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
100458         lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
100459         lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
100460         lib/getusershell.c, lib/group-member.c, lib/group-member.h,
100461         lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
100462         lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
100463         lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
100464         lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
100465         lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
100466         lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
100467         lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
100468         lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
100469         lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
100470         lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
100471         lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
100472         lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
100473         lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
100474         lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
100475         lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
100476         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
100477         lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
100478         lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
100479         lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
100480         lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
100481         lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
100482         lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
100483         lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
100484         lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
100485         lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
100486         lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
100487         lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
100488         lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
100489         lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
100490         lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
100491         lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
100492         lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
100493         lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
100494         lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
100495         lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
100496         lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
100497         lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
100498         lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
100499         lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
100500         lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
100501         lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
100502         lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
100503         lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
100504         lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
100505         lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
100506         lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
100507         lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
100508         lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
100509         lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
100510         lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
100511         lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
100512         lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
100513         lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
100514         lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
100515         lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
100516         lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
100517         lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
100518         lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
100519         lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
100520         lib/yesno.c, lib/yesno.h:
100521         Update FSF postal mail address.
100523 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
100525         * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
100526         tests/test-memmem.c, tests/test-stpncpy.c:
100527         Update FSF postal mail address.
100529 2005-05-13  Bruno Haible  <bruno@clisp.org>
100531         * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
100532         int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
100533         UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
100534         INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
100535         INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
100536         Add support for 64-bit integers in the MSVC compiler.
100538 2005-05-12  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
100540         * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
100542 2005-05-12  Eric Blake  <ebb9@byu.net>  (tiny change)
100544         * gnulib-tool (func_import): Sort and uniquify recommended includes.
100546 2005-05-11  Paul Eggert  <eggert@cs.ucla.edu>
100548         * doc/getdate.texi (General date syntax): Don't say that date
100549         date --iso-8601=ns generates acceptable dates; it doesn't yet.
100550         Problem reported by Nic Ferrier.
100552 2005-05-10  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
100554         * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
100555         specified in ai_socktype. Fix invalid ai_protocol
100556         check. ai_protocol is usually set to 0 or depending on
100557         ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP.  Checking for
100558         SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid.  Set
100559         ai_socktype / ai_protocol in the returned addrinfo structure.
100561 2005-05-10  Simon Josefsson  <jas@extundo.com>
100563         * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
100564         Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
100566 2005-05-10  Karl Berry  <karl@gnu.org>
100568         * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
100569         (from http://www.gnu.org/licenses).
100570         * doc/COPYING.LIB: also rename to COPYING.LESSER.
100571         * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
100572         fdl.texi suffices.
100574 2005-05-10  Karl Berry  <karl@gnu.org>
100576         * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
100577         (COPYING.DOC): remove.
100579         * config/srclist-update: new FSF address.
100581 2005-05-10  Derek Price  <derek@ximbiot.com>
100583         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
100584         possible.
100586 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
100587             Bruno Haible  <bruno@clisp.org>
100589         * modules/inet_ntop: New file.
100590         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
100591         inet_ntop.
100593 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
100594             Bruno Haible  <bruno@clisp.org>
100596         * m4/inet_ntop.m4: New file.
100598 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
100599             Bruno Haible  <bruno@clisp.org>
100601         * lib/inet_ntop.h: New file.
100602         * lib/inet_ntop.c: New file, from glibc with modifications.
100604 2005-05-09  Paul Eggert  <eggert@cs.ucla.edu>
100606         * modules/time_r (License): Change to LGPL.
100607         * modules/extensions (License): Change to LGPL.  Actually,
100608         the license is more permissive than that, but currently gnulib-tool
100609         doesn't know how to handle more-permissive licenses.
100611         * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
100612         Problem reported by Dave Love.
100614 2005-05-08  Jim Meyering  <jim@meyering.net>
100616         * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
100617         blank.
100619 2005-05-06  Paul Eggert  <eggert@cs.ucla.edu>
100621         * modules/argmatch (Depends-on): Add stdbool.
100622         * modules/backupfile (Depends-on): Likewise.
100623         * modules/chdir-long (Depends-on): Likewise.
100624         * modules/closeout (Depends-on): Likewise.
100625         * modules/cycle-check (Depends-on): Likewise.
100626         * modules/dirname (Depends-on): Likewise.
100627         * modules/fnmatch (Depends-on): Likewise.
100628         * modules/fsusage (Depends-on): Likewise.
100629         * modules/fwriteerror (Depends-on): Likewise.
100630         * modules/getcwd (Depends-on): Likewise.
100631         * modules/getloadavg (Depends-on): Likewise.
100632         * modules/hard-locale (Depends-on): Likewise.
100633         * modules/makepath (Depends-on): Likewise.
100634         * modules/mountlist (Depends-on): Likewise.
100635         * modules/nanosleep (Depends-on): Likewise.
100636         * modules/posixtm (Depends-on): Likewise.
100637         * modules/quotearg (Depends-on): Likewise.
100638         * modules/readtokens (Depends-on): Likewise.
100639         * modules/readtokens0 (Depends-on): Likewise.
100640         * modules/readutmp (Depends-on): Likewise.
100641         * modules/save-cwd (Depends-on): Likewise.
100642         * modules/strftime (Depends-on): Likewise.
100643         * modules/userspec (Depends-on): Likewise.
100644         * modules/utimecmp (Depends-on): Likewise.
100645         * modules/xgetcwd (Depends-on): Likewise.
100646         * modules/xnanosleep (Depends-on): Likewise.
100647         * modules/xstrtod (Depends-on): Likewise.
100648         * modules/yesno (Depends-on): Likewise.
100650 2005-05-05  Paul Eggert  <eggert@cs.ucla.edu>
100652         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
100653         needless checks.
100655 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
100657         Merge from coreutils.  Among other things,
100658         add bulletproofing for cases where stdin, stdout, or stderr are closed.
100659         * lib/fd-safer.c: New file.
100660         * lib/fcntl-safer.h, open-safer.c: Remove.
100661         * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
100662         * lib/dup-safer.c: Include unistd-safer.h first.
100663         Don't include errno.h.
100664         (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
100665         * lib/file-type.h: Don't assume invoker included sys/stat.h first.
100666         * lib/file-type.c: Rely on file-type.h change.
100667         * lib/getloadavg.c: Include unistd-safer.h.
100668         (getloadavg): Use safer open.
100669         * lib/getusershell.c: Include "stdio-safer.h".
100670         (getusershell): Use safer fopen.
100671         * lib/long-options.c (long_options): Use NULL rather than 0.
100672         * lib/modechange.h (mode_free): Remove; all callers changed to invoke
100673         'free'.
100674         * lib/modechange.c: Likewise.
100675         xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
100676         (MODE_DONE): New constant.
100677         (struct mode_change): Remove 'next' member.
100678         (make_node_op_equals): New function; like the old one of the
100679         same name, except it allocates an array.
100680         (mode_compile, mode_create_from_ref): Use it.
100681         (mode_compile): Allocate result as an array, not a linked list.
100682         Parse octal string ourself, so that we catch mistakes like "+0".
100683         (mode_adjust): Arg is an array, not a linked list.
100684         * lib/modechange.c: Include stat-macros.h, xalloc.h.
100685         (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
100686         (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
100687         (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
100688         Remove.  This is now stat-macros.h's job.
100689         (talloc): Remove.  All callers replaced by xalloc, so that
100690         our invokers don't have to worry about reporting memory failures.
100691         (make_node_op_equals): Remove.
100692         (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
100693         New constants.
100694         (struct mode_change): Moved here from modechange.h.
100695         (mode_append_entry): Remove.
100696         (mode_compile): Remove MASKED_OPS arg, since it encouraged
100697         apps to have incorrect behavior.  Use simpler algorithm for head
100698         and tail.  Don't futz with umask; that's now the job of mode_adjust.
100699         Detect more invalid usages rather than having somewhat-random behavior.
100700         Don't insert an "a=" action, as that leads to incorrect behavior.
100701         (mode_compile, mode_create_from_ref): Return NULL on error instead
100702         of an enum, since now there's only one way to have an error.  All
100703         callers changed.
100704         (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
100705         at the correct time.  Simplify calculation of "+u" and its ilk.
100706         Don't mishandle "+X".
100707         (mode_free): Remove "register" and localize decls.
100708         * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
100709         (struct mode_change): Move to modechange.c; callers don't
100710         need to see this stuff.
100711         (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
100712         (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
100713         (mode_change, mode_adjust): Reflect the new signatures noted above.
100714         * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
100715         that might redefine system include files.
100716         (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
100717         (my_usleep): Use NULL rather than (void *) 0.
100718         (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
100719         Use siginterrupt to specify that system calls should be interrupted.
100720         (rpl_nanosleep): Move initialization of suspended closer to call of
100721         my_usleep.
100722         * lib/readutmp.h (read_utmp): New arg OPTIONS.  All uses changed.
100723         * lib/readutmp.c: Likewise.  Include signal.h, stdbool.h.
100724         (desirable_utmp_entry): New function.
100725         (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
100726         using x2nrealloc, to simplify logic.
100727         (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
100728         size calculation.  Do not assume utmp file is a regular file.
100729         * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
100730         (READ_UTMP_CHECK_PIDS): New constant.
100731         * lib/save-cwd.c: Include unistd-safer.h.
100732         (save_cwd): Use fd_safer.
100733         * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
100734         [!_LIBC] Include "stat-macros.h" instead.
100735         * lib/unistd-safer.h (fd_safer): New decl.
100737 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
100739         * modules/getloadavg (Depends-on): Add unistd-safer.
100740         * modules/getusershell (Depends-on): Add stdio-safer.
100741         * modules/lstat (Depends-on): Remove xalloc.
100742         * modules/mkstemp (Depends-on): Add stat-macros.
100743         * modules/modechange (Depends-on): Remove xstrtol.
100744         Add stat-macros, xalloc.
100745         * modules/save-cwd (Depends-on): Add unistd-safer.
100746         * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
100747         * modules/unistd-safer (Files): Add lib/fd-safer.c
100748         (Makefile.am): Remove lib_SOURCES.
100750         * MODULES.html.sh (Enhancements for POSIX:2001 functions):
100751         Remove fcntl-safer; unistd-safer supersedes it.
100753 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
100755         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
100756         AC_HEADER_STAT.
100757         * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
100758         (gl_PREREQ_CHOWN): Remove.
100759         * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
100760         it.  Don't require AC_HEADER_STAT.
100761         (gl_PREREQ_LSTAT): Remove.
100762         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
100763         Don't require AC_HEADER_STAT.
100764         * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
100765         (gl_PREREQ_RMDIR): Remove.
100766         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
100767         mention stat-macros.h or AC_HEADER_STAT, since we'll make
100768         the stat-macros module a prerequisite.
100769         * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
100770         * m4/filemode.m4 (gl_FILEMODE): Likewise.
100771         * m4/makepath.m4 (gl_MAKEPATH): Likewise.
100772         * m4/modechange.m4 (gl_MODECHANGE): Likewise.
100773         * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
100774         variable names.
100775         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
100776         fetish_FUNC_RMDIR_NOTEMPTY.  All uses changed.  Use gl_ for
100777         variable prefixes.
100778         * m4/fcntl-safer.m4: Remove.
100779         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
100780         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
100781         Invoke gl_PREREQ_FD_SAFER.
100782         (gl_PREREQ_FD_SAFER): New macro.
100783         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
100784         * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
100785         Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
100786         Remove duplicate call to AC_LIBOBJ(readutmp).
100787         (gl_PREREQ_READUTMP): Remove.  All uses inlined.
100789         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
100790         MAP_ANON.  Problem reported by Moriyoshi Koizumi to bug-cvs.
100792 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
100794         * MODULES.html.sh (Misc): Add byteswap.
100796 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
100798         * modules/getcwd (Depends-on): Add extensions.
100799         * modules/openat (Depends-on): Likewise.
100801 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
100803         * modules/byteswap: New file.
100805 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
100807         * m4/byteswap.m4: New file.
100809 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
100811         * lib/byteswap_.h: New file.
100813 2005-04-25  Karl Berry  <karl@gnu.org>
100815         * m4/gettext.m4: Update from GNU gettext 0.14.4.
100817 2005-04-25  Albert Chin  <china@thewrittenword.com>
100819         * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
100820         Toolkit C bug.
100822 2005-04-21  Oskar Liljeblad  <oskar@osk.mine.nu>
100824         * gnulib-tool (Options): Add -s for --symlink/--symbolic.
100825         (func_ln_if_changed): Remove forcibly for no error message
100826         in case file does not exist.
100828 2005-04-19  Simon Josefsson  <jas@extundo.com>
100830         * gnulib-tool (Options): Make --symlink mean --symbolic.
100832 2005-04-18  Oskar Liljeblad  <oskar@osk.mine.nu>
100834         * doc/gnulib.texi (Initial import): Fix.  Mention --aux-dir.
100836 2005-04-16  Simon Josefsson  <jas@extundo.com>
100838         * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
100840 2005-04-15  Simon Josefsson  <jas@extundo.com>
100842         * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
100844 2005-04-15  Simon Josefsson  <jas@extundo.com>
100846         * gnulib-tool: Rename --symlink to --symbolic.
100848 2005-04-15  Oskar Liljeblad  <oskar@osk.mine.nu>
100850         * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
100851         symbolic links to files instead of copying/moving.  Add --aux-dir,
100852         specifying directory relative --dir where auxiliary build tools
100853         are placed.
100855 2005-04-14  Bruno Haible  <bruno@clisp.org>
100857         * modules/allocsa (License): Change to LGPL.
100858         Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
100860 2005-04-13  Paul Eggert  <eggert@cs.ucla.edu>
100862         * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
100863         that "UTC +1 second" continues to work.  Problem reported
100864         by Dmitry V. Levin.
100865         (relunit_snumber): New rule.
100866         (relunit): Use it.
100868 2005-04-12  Paul Eggert  <eggert@cs.ucla.edu>
100870         * lib/getdate.y (universal_time_zone_table): New constant.
100871         (time_zone_table): Remove GMT, UT, UTC entries; they're now in
100872         universal_time_zone_table.
100873         (lookup_zone): Prefer universal_time_zone_table to
100874         local_time_zone_table, so that "GMT" time stamps are allowed in
100875         London during the summer.  Problem reported by Ian Abbott.
100877 2005-04-12  Jim Meyering  <jim@meyering.net>
100879         * lib/human.c (humblock): Set *options even when returning due to
100880         xstrtoumax conversion failure.  Thanks to a used-uninitialized
100881         warning from gcc-4.
100883 2005-04-09  Jim Meyering  <jim@meyering.net>
100885         * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
100886         -Wuninitialized: initialize tm0.tm_year.
100888 2005-04-04  Paul Eggert  <eggert@cs.ucla.edu>
100890         * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
100891         count, since there's no maximum.  All uses changed.
100892         Add member dsts_seen.
100893         (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
100894         not being INT_MAX.
100895         (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
100896         Use pc_rels_seen to decide whether a date is absolute.
100898         * lib/getdate.y (number): Don't overwrite year.
100899         (get_date): Initialize pc.year.digits to 0, not 4, to enable above
100900         check.
100902 2005-04-02  Simon Josefsson  <jas@extundo.com>
100904         * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
100905         patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
100907 2005-03-28  Eric Blake  <ebb9@byu.net>  (tiny change)
100909         * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
100910         where no absolute path name can be longer than PATH_MAX.
100912 2005-03-27  Jim Meyering  <jim@meyering.net>
100914         * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
100916 2005-03-26  Paul Eggert  <eggert@cs.ucla.edu>
100918         * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
100919         "one's complement" -> "ones' complement" in comment, as per Knuth.
100920         "value of type" -> "type or expression" in comment.
100921         * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
100923 2005-03-26  Jim Meyering  <jim@meyering.net>
100925         Comment nits.
100926         * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
100927         Correct typos: s/or/of/.
100929 2005-03-26  Jim Meyering  <jim@meyering.net>
100931         * modules/check-include-files: Move to ../ and rename to...
100932         * check-module: ...this.
100934 2005-03-25  Jim Meyering  <jim@meyering.net>
100936         * modules/xvasprintf (Files): Add xalloc.h.
100938 2005-03-23  Paul Eggert  <eggert@cs.ucla.edu>
100940         * modules/gettext (Files): config/config.rpath ->
100941         build-aux/config.rpath
100942         * modules/iconv (Files): Likewise.
100943         Problem reported by Oskar Liljeblad.
100945 2005-03-23  Jim Meyering  <jim@meyering.net>
100947         * modules/check-include-files: New script to check for
100948         missing dependencies, multiple includes, etc.
100950         * modules/c-strtold (Depends-on): Add xalloc.
100951         * modules/c-strtod (Depends-on): Add xalloc.
100952         * modules/hash (Depends-on): Add xalloc.
100953         (Files): Remove lib/xalloc.h.
100955         * modules/gethrxtime (Files): Add lib/gethrxtime.h.
100956         * modules/userspec (Files): Add lib/inttostr.h.
100958 2005-03-23  Jim Meyering  <jim@meyering.net>
100960         * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
100962 2005-03-22  Jim Meyering  <jim@meyering.net>
100964         * modules/stat-macros: New module.
100965         * modules/canonicalize, modules/euidaccess, modules/file-type,
100966         * modules/filemode, modules/lchown, modules/makepath,
100967         * modules/rmdir, modules/stat: Depend on new stat-macros module
100968         rather than listing lib/stat-macros.h manually.
100969         Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
100971 2005-03-22  Jim Meyering  <jim@meyering.net>
100973         * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
100975 2005-03-22  Bruno Haible  <bruno@clisp.org>
100977         * config/srclist.txt: Replace target directory 'config' with
100978         'build-aux'.
100979         * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
100980         * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
100981         ../build-aux/.
100983 2005-03-21  Paul Eggert  <eggert@cs.ucla.edu>
100985         * modules/chdir-long (Depends-on): Add mempcpy.
100987         * modules/acl, modules/backupfile, modules/c-strtod,
100988         modules/c-strtold, modules/canon-host, modules/canonicalize,
100989         modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
100990         modules/exclude, modules/exitfail, modules/file-type,
100991         modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
100992         modules/getdate, modules/getline, modules/getpagesize,
100993         modules/getpass, modules/getugroups, modules/group-member,
100994         modules/hard-locale, modules/hash, modules/human, modules/idcache,
100995         modules/inttostr, modules/long-options, modules/makepath,
100996         modules/md5, modules/memcasecmp, modules/memcoll,
100997         modules/modechange, modules/mountlist, modules/path-concat,
100998         modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
100999         modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
101000         modules/safe-read, modules/safe-write, modules/same, modules/savedir,
101001         modules/settime, modules/sha1, modules/sig2str, modules/strdup,
101002         modules/strftime, modules/strndup, modules/strverscmp,
101003         modules/timespec, modules/unlocked-io, modules/userspec,
101004         modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
101005         modules/yesno:
101006         Remove lib_SOURCES line from Makefile.am section, as this is now
101007         done automatically by the corresponding Autoconf macro.
101009 2005-03-21  Jim Meyering  <jim@meyering.net>
101011         Changes imported from coreutils.
101013         * lib/cycle-check.c: Don't include xalloc.h.
101015         * lib/path-concat.c: Don't include assert.h.
101016         (path_concat): Remove assertion that would have triggered
101017         for ABASE starting with more than one slash.
101018         Reported by Andreas Schwab.
101020         * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
101021         properly when ABASE is an absolute file name.
101022         Correct the description of this function.
101023         Include <assert.h>.
101024         Add an assertion and a test driver.
101025         This fixes a bug introduced on 2004-07-02.
101026         Andreas Schwab reported the resulting failure of cp --parents:
101027         http://lists.gnu.org/archive/html/bug-coreutils/2005-01/msg00130.html
101029 2005-03-21  Jim Meyering  <jim@meyering.net>
101031         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
101032         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
101034 2005-03-21  Jim Meyering  <jim@meyering.net>
101035         and  Paul Eggert  <eggert@cs.ucla.edu>
101037         * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
101038         m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
101039         m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
101040         m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
101041         m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
101042         m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
101043         m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
101044         m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
101045         m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
101046         m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
101047         m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
101048         m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
101049         m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
101050         m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
101051         m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
101052         m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
101053         Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
101054         for these modules.
101056 2005-03-18  Paul Eggert  <eggert@cs.ucla.edu>
101058         * lib/strftime.c (my_strftime): If the underlying strftime returns 0
101059         (which shouldn't happen), generate nothing instead of returning 0
101060         immediately, so that nstrftime (NULL, ...) doesn't return 0.
101062 2005-03-16  Bruno Haible  <bruno@clisp.org>
101064         * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
101065         HAVE_LONGLONG_64BIT.
101067 2005-03-16  Bruno Haible  <bruno@clisp.org>
101069         * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
101070         HAVE_LONGLONG_64BIT.
101072 2005-03-16  Bruno Haible  <bruno@clisp.org>
101074         * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
101075         HAVE_LONGLONG_64BIT.
101077 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
101079         * lib/strftime.c (my_strftime): Prepend space to format so that we can
101080         reliably distinguish strftime failure from empty output on POSIX
101081         hosts.
101083 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
101085         * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
101086         (iconv_string): Don't guess a size-zero buffer, as that might cause
101087         buffer overrun.  Instead, avoid multiplying by MB_LEN_MAX if the
101088         result would be 'too large', where 'too large' is (heuristically)
101089         the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
101090         overflow concerns.  This will prevent some unwanted malloc failures
101091         when the inputs are very large.
101093 2005-03-15  Karl Berry  <karl@gnu.org>
101095         * config/srclist.txt (config.rpath): from gettext.
101096         * config/config.rpath: update.
101098 2005-03-15  Bruno Haible  <bruno@clisp.org>
101100         * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
101101         to 'negate'.
101103         * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
101104         variable.
101106         * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
101107         results.
101109 2005-03-14  Simon Josefsson  <jas@extundo.com>
101111         * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
101112         <fx@gnu.org>.
101114 2005-03-14  Paul Eggert  <eggert@cs.ucla.edu>
101116         * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
101117         TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
101118         intprops.h.
101119         * lib/strtol.c: Likewise.
101121 2005-03-14  Jim Meyering  <jim@meyering.net>
101123         * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
101124         && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
101125         to be nonzero so that we (and caller) can detect the difference
101126         between a valid zero-length expansion and an error return, even
101127         when the underlying strftime fails before writing anything into
101128         that location.
101130 2005-03-14  Bruno Haible  <bruno@clisp.org>
101132         * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
101133         Update from GNU gettext 0.14.3.
101135 2005-03-10  Jim Meyering  <jim@meyering.net>
101137         * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
101139 2005-03-10  Jim Meyering  <jim@meyering.net>
101141         * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
101142         so that this module works on systems without fchdir.
101144 2005-03-09  Paul Eggert  <eggert@cs.ucla.edu>
101146         Factor int-properties macros into a single file, except for
101147         glibc-related files.
101148         * lib/intprops.h: New file.
101149         * lib/getloadavg.c: Include it instead of limits.h.
101150         (INT_STRLEN_BOUND): Remove.
101151         * lib/human.c: Include intprops.h.
101152         (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
101153         * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
101154         302/1000.
101155         * lib/inttostr.h: Include intprops.h instead of limits.h.
101156         (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
101157         * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
101158         for consistency with intprops.h.
101159         (time_t_is_integer, twos_complement_arithmetic): Use them.
101160         * lib/sig2str.h: Include <signal.h>, intprops.h.
101161         (INT_STRLEN_BOUND): Remove.
101162         * lib/strftime.c (TYPE_SIGNED): Remove.
101163         (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
101164         * lib/strtol.c: Adjust comments to match intprops.h.
101165         * lib/userspec.c: Include intprops.h.
101166         (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
101167         * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
101168         * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
101169         instead of rolling our own expressions.
101170         * lib/xstrtol.c: Include xstrtol.h first, to test interface.
101172         * lib/strftime.c: Include <stdbool.h>.  Use bool where appropriate,
101173         instead of int.
101174         (my_strftime): Do not mishandle years close to INT_MAX, by doing
101175         the right thing even if adding 1900 would overflow.  Similarly
101176         for tm_mon + 1 and tm_yday + 1.
101177         Make %Y always equivalent to %C%y, and similarly for %G and %g.
101178         (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
101179         (DO_SIGNED_NUMBER): New macro.
101180         (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
101182 2005-03-07  Bruno Haible  <bruno@clisp.org>
101184         * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
101186 2005-03-07  Bruno Haible  <bruno@clisp.org>
101188         * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
101190 2005-03-04  Derek R. Price  <derek@ximbiot.com>
101192         * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
101193         (func_import): Only replace files via --import when they have actually
101194         changed.
101196 2005-03-03  Derek R. Price  <derek@ximbiot.com>
101198         * m4/mmap-anon.m4: New file.
101199         * m4/pagealign_alloc.m4: New file.
101201 2005-03-03  Derek R. Price  <derek@ximbiot.com>
101202             Bruno Haible  <bruno@clisp.org>
101204         * modules/pagealign_alloc: New file.
101205         * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
101207 2005-03-03  Derek R. Price  <derek@ximbiot.com>
101208             Bruno Haible  <bruno@clisp.org>
101210         * lib/pagealign_alloc.h: New file.
101211         * lib/pagealign_alloc.c: New file.
101213 2005-03-03  Bruno Haible  <bruno@clisp.org>
101215         * m4/inttypes.m4, isc-posix.m4, once-only.m4:
101216         Use an all-permissive copyright notice, recommended by RMS.
101218 2005-03-02  Bruno Haible  <bruno@clisp.org>
101220         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
101221         of AIX, the replacement has to be done only after <string.h> is
101222         included, therefore not in config.h. stpncpy.h does the replacement,
101223         and stpncpy.c uses it.
101225 2005-03-02  Bruno Haible  <bruno@clisp.org>
101227         * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
101228         stpncpy.c uses it.
101230 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
101232         Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
101233         The workaround isn't strictly needed for POSIX conformance, and
101234         it's too much of a pain to configure and maintain.  We'll ask
101235         people to fix their kernels instead.
101236         * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
101237         (NANOSLEEP_BUG_WORKAROUND): Remove.
101238         (xnanosleep): Remove the workaround.
101240 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
101242         * modules/gettime (Makefile.am): Remove lib_SOURCES line.
101243         Reported by Derek Price.
101244         (Include): Add "timespec.h".
101246         * modules/xnanosleep (Depends-on): Remove gethrxtime.
101248 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
101250         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
101251         to detect nanosleep bug.
101253 2005-03-01  Bruno Haible  <bruno@clisp.org>
101255         * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
101257 2005-02-26  Paul Eggert  <eggert@cs.ucla.edu>
101259         * modules/gethrxtime: New file.
101260         * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
101261         (Depends-on): Add gethrxtime.
101262         (configure.ac): Add gl_XNANOSLEEP.
101263         (Makefile.am): Remove lib_SOURCES line.
101265 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
101267         * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
101268         * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
101270 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
101272         * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
101273         * lib/timespec.h (gettime): Return void, since it always
101274         succeeds now.  All uses changed.
101275         * lib/gettime.c (gettime): Likewise.
101276         [HAVE_NANOTIME]: Prefer nanotime.
101277         Assume gettimeofday succeeds, as POSIX requires.
101278         Assime time () succeeds, since other code already does.
101279         * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
101280         (timespec_subtract): Remove.
101281         (NANOSLEEP_BUG_WORKAROUND): New constant.
101282         (xnanosleep): Use gethrxtime rather than gettime; this simplifies
101283         things considerably.  Use it only on GNU/Linux hosts, since the
101284         workaround shouldn't be needed elsewhere.
101286 2005-02-24  Bruno Haible  <bruno@clisp.org>
101288         * modules/gettext (Files): Add m4/glibc2.m4.
101290 2005-02-24  Bruno Haible  <bruno@clisp.org>
101292         * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
101293         * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
101294         * m4/progtest.m4:
101295         Update from GNU gettext 0.14.2.
101296         * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
101298 2005-02-24  Bruno Haible  <bruno@clisp.org>
101300         * lib/localcharset.c: Update from GNU gettext 0.14.2.
101301         * lib/config.charset: Update from GNU gettext 0.14.2.
101303 2005-02-24  Bruno Haible  <bruno@clisp.org>
101305         * lib/gettext.h: Update from GNU gettext 0.14.2.
101307 2005-02-23  Simon Josefsson  <jas@extundo.com>
101309         * m4/iconvme.m4: New file.
101311 2005-02-23  Jim Meyering  <jim@meyering.net>
101313         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
101314         change.
101315         Thanks to Bruno Haible for catching it.
101317 2005-02-22  Simon Josefsson  <jas@extundo.com>
101319         * modules/iconvme: New file.
101321         * MODULES.html.sh: Add iconvme.
101323 2005-02-22  Simon Josefsson  <jas@extundo.com>
101325         * lib/iconvme.h, lib/iconvme.c: New files, from libc.
101327 2005-02-22  Simon Josefsson  <jas@extundo.com>
101329         * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
101331 2005-02-22  Jim Meyering  <jim@meyering.net>
101333         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
101334         s/ifndef/ifdef/.
101336 2005-02-20  Neil Conway  <neilc@samurai.com>
101338         * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
101339         returned by OSX/Darwin if the specified buffer is not large
101340         enough for the hostname.
101342 2005-02-03  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
101344         * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
101345         pass it to _help, otherwise the latter coredumps trying to
101346         dereference state.root_argp.
101348 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
101350         * modules/chdir-long (Depends-on): Add memrchr.
101351         * modules/memrchr (Files): Add lib/memrchr.h.
101352         (Include): "memrchr.h".
101354 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
101356         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
101358 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
101360         * lib/memrchr.h: New file.
101361         * lib/chdir-long.c: Include it.
101362         * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
101363         Don't bother including stddef.h.
101365 2005-02-01  Paul Eggert  <eggert@cs.ucla.edu>
101367         * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
101368         inclusion.
101369         Include <sys/types.h>, for dev_t.
101370         (ME_DUMMY, ME_REMOTE): Move from here....
101371         * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
101372         (ME_DUMMY): Count "subfs" as a dummy.  Problem reported by
101373         Dmitry V. Levin.
101374         Include mountlist.h first, to test the interface.
101376 2005-01-29  Bruno Haible  <bruno@clisp.org>
101378         * lib/progname.c (program_name): Initialize.
101379         Needed when linking statically on MacOS X.
101381 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
101383         Sync from coreutils.
101384         * modules/getloadavg (Files): Remove m4/getloadavg.m4.
101385         (Depends-on): Add c-strtod.
101386         (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
101388 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
101390         Sync from coreutils.
101391         * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
101393         Remove files that are specific to coreutils.
101394         * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
101396 2005-01-28  Bruno Haible  <bruno@clisp.org>
101398         * modules/javacomp: New file.
101399         * MODULES.html.sh (Java): Add javacomp.
101401 2005-01-28  Bruno Haible  <bruno@clisp.org>
101403         * m4/javacomp.m4: New file, from GNU gettext.
101405 2005-01-28  Bruno Haible  <bruno@clisp.org>
101407         * lib/javacomp.sh.in: New file, from GNU gettext.
101408         * lib/javacomp.h: New file, from GNU gettext.
101409         * lib/javacomp.c: New file, from GNU gettext.
101411 2005-01-26  Simon Josefsson  <jas@extundo.com>
101413         * lib/gai_strerror.c: Use GPL in header.
101415 2005-01-26  Bruno Haible  <bruno@clisp.org>
101417         * modules/javaexec: New file.
101418         * MODULES.html.sh (Java): Add javaexec.
101420 2005-01-26  Bruno Haible  <bruno@clisp.org>
101422         * m4/javaexec.m4: New file, from GNU gettext.
101424 2005-01-26  Bruno Haible  <bruno@clisp.org>
101426         * lib/javaexec.sh.in: New file, from GNU gettext.
101427         * lib/javaexec.h: New file, from GNU gettext.
101428         * lib/javaexec.c: New file, from GNU gettext.
101430 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
101432         * modules/lchown (Depends-on): Remove lchown.h
101434 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
101436         * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
101437         must be defined if the header file was not found, in order
101438         to provide a replacement. Reported by Todd Vierling <tv@duh.org>
101440 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
101442         * lib/argp-help.c (hol_entry_help): Avoid using non-constant
101443         initializers for struct pentry_state.
101444         (__argp_error): Check return value of __asprintf
101445         (__argp_failure): Translate error message
101447         * lib/argp-parse.c: Removed braces around the expansion of N_()
101449 2005-01-23  Paul Eggert  <eggert@cs.ucla.edu>
101451         * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
101452         backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
101453         c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
101454         clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
101455         dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
101456         exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
101457         file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
101458         free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
101459         getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
101460         getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
101461         getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
101462         gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
101463         group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
101464         idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
101465         link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
101466         makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
101467         memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
101468         memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
101469         modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
101470         path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
101471         posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
101472         readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
101473         restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
101474         savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
101475         sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
101476         stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
101477         strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
101478         strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
101479         strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
101480         time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
101481         uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
101482         unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
101483         utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
101484         xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
101485         xstrtol.m4, xstrtoumax.m4, yesno.m4:
101486         Use an all-permissive copyright notice, recommended by RMS.
101488 2005-01-21  Paul Eggert  <eggert@cs.ucla.edu>
101490         * modules/chdir-long (Depends-on): Remove mempcpy.
101492 2005-01-21  Jim Meyering  <jim@meyering.net>
101494         * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
101495         same value as for Solaris 9.
101497         * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
101498         component length.  This included changing the parameter to be
101499         of type `char *' rather than `char const *'.
101500         * lib/chdir-long.h (chdir_long): Update prototype.
101502         * lib/openat.c (fdopendir, fstatat): New functions.
101503         * lib/openat.h: Include headers required for use of DIR and struct
101504         stat.
101505         [AT_SYMLINK_NOFOLLOW]: Define.
101506         (fdopendir, fstatat): Add prototypes.
101508 2005-01-21  Bruno Haible  <bruno@clisp.org>
101510         * modules/classpath: New file.
101511         * MODULES.html.sh (Java): Add classpath.
101513 2005-01-21  Bruno Haible  <bruno@clisp.org>
101515         * lib/classpath.h: New file, from GNU gettext.
101516         * lib/classpath.c: New file, from GNU gettext.
101518 2005-01-20  Simon Josefsson  <jas@extundo.com>
101520         * modules/version-etc-fsf: New file.
101522 2005-01-20  Simon Josefsson  <jas@extundo.com>
101524         * lib/version-etc-fsf.c: New file, with version_etc_copyright.
101525         * lib/version-etc.c: Remove version_etc_copyright.
101526         * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
101527         prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
101529 2005-01-20  Simon Josefsson  <jas@extundo.com>
101531         * lib/base64.h (isbase64): Add.
101533         * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
101534         using a unsigned prototype, don't inline.
101535         (base64_decode): Use it.
101537 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
101539         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
101540         it.
101542 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
101544         * lib/save-cwd.c (save_cwd): Remove code to support the case
101545         where fchdir is missing or flaky.
101547 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
101549         * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
101551 2005-01-19  Paul Eggert  <eggert@cs.ucla.edu>
101553         * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
101554         AC_LIBSOURCES now does this.
101555         * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
101556         with new ullong_max module.
101558 2005-01-19  Bruno Haible  <bruno@clisp.org>
101560         * modules/sh-quote: New file.
101561         * MODULES.html.sh (Executing programs): Add sh-quote.
101563 2005-01-19  Bruno Haible  <bruno@clisp.org>
101565         * lib/sh-quote.h: New file, from GNU gettext.
101566         * lib/sh-quote.c: New file, from GNU gettext.
101568 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
101570         Merge from coreutils.
101571         * m4/ullong_max.m4: New file.
101572         * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
101573         (gl_MACROS): Assume localeconv exists.
101575 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
101577         Merge changes from coreutils, as described below in several
101578         changelogs dated today.
101580         * lib/save-cwd.c: Include "save-cwd.h" before other include files.
101581         (O_DIRECTORY): Remove; not needed here, since "." must be
101582         a directory.  All uses removed.
101583         (save_cwd): Use __sgi || __sun, not sun || __sun.  __sun is
101584         universal on Suns, and we also need to test for IRIX.
101585         Revamp code to use 'if' rather than '#if'.
101586         Avoid unnecessary comparison of cwd->desc to 0.
101588         * lib/utimens.c (futimens): Robustify the previous patch, by checking
101589         for known valid error numbers rather than observed invalid ones.
101591 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
101593         * modules/ullong_max: New file.
101595         * modules/chdir-long, modules/openat: New files.
101596         * modules/save-cwd (Depends-on): Depend on chdir-long.
101597         (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
101599 2005-01-18  Jim Meyering  <jim@meyering.net>
101601         Merge from coreutils.
101602         * m4/chdir-long.m4, m4/openat.m4: New files.
101603         * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
101604         save-cwd.h.  Add AC_LIBOBJ for save-cwd.
101605         * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
101606         is sane and DOES follow symlinks.  Besides, testing 20 different
101607         systems found no broken chown implementations.
101608         Prompted by a change in rsync's copy of this macro.
101609         * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
101611         * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
101613         * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
101614         (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
101615         NULL-means-set-to-current-time semantics.
101616         Remove temporary file immediately, rather than waiting
101617         for configure's at-exit trap code to do it.
101619 2005-01-18  Jim Meyering  <jim@meyering.net>
101621         * lib/version-etc.c (version_etc_copyright): Update copyright date.
101623         * lib/utimens.c (futimens): Account for the fact that futimes
101624         can also fail with errno == ENOSYS or errno == ENOENT.
101625         Patch from Dmitry V. Levin.
101627         Change the name of the robust chdir function from chdir to chdir_long.
101628         * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
101629         (restore_cwd): Use chdir_long, not chdir.
101630         * lib/chdir-long.c: Renamed from chdir.c.
101631         * lib/chdir-long.h: Renamed from chdir.h.
101632         [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
101633         Hurd.
101635 2005-01-18  Bruno Haible  <bruno@clisp.org>
101637         * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
101638         * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
101639         * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
101640         * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
101641         * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
101642         * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
101643         * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
101644         * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
101645         * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
101646         * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
101647         * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
101648         * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
101649         * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
101650         * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
101651         Use an all-permissive copyright notice, recommended by RMS.
101653 2005-01-18  Bob Proulx  <bob@proulx.com>
101655         * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
101656         simplify offsetof() macro construct to avoid compile failure with
101657         native HP-UX 11.0 ANSI C compiler.
101659 2005-01-17  Bruno Haible  <bruno@clisp.org>
101661         * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
101662         redundant because stpncpy.m4 takes care of it.
101664 2005-01-17  Bruno Haible  <bruno@clisp.org>
101666         * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
101668 2005-01-17  Bruno Haible  <bruno@clisp.org>
101670         * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
101671         used.
101673 2005-01-17  Bruno Haible  <bruno@clisp.org>
101675         * lib/fwriteerror.h (fwriteerror): Change specification to include
101676         fclose.
101677         * lib/fwriteerror.c: Include <stdbool.h>.
101678         (fwriteerror): At the end, close the file stream. Record whether
101679         stdout was already closed.
101681 2005-01-17  Bruno Haible  <bruno@clisp.org>
101683         * lib/execute.c (environ): Declare if needed.
101684         * lib/pipe.c (environ): Likewise.
101685         Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
101687 2005-01-11  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
101689         * modules/argp: Depend on vsnprintf
101691 2005-01-10  Jim Meyering  <jim@meyering.net>
101693         * modules/closeout (Depends-on): Add atexit.
101695 2005-01-06  Bruno Haible  <bruno@clisp.org>
101697         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
101699 2005-01-04  Paul Eggert  <eggert@cs.ucla.edu>
101701         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
101702         definitions to be after all include files, to avoid collisions.
101703         Problem reported by Bob Proulx.
101705 2005-01-04  Jim Meyering  <jim@meyering.net>
101707         Changes imported from coreutils.
101708         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
101709         as the mkstemp template, use a temporary directory and an
101710         8.3-friendly template to avoid trouble on systems like DJGPP.
101711         Reported by Juan M. Guerrero via Stepan Kasal.
101712         * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
101713         close. Remove the temporary directory right away, rather than waiting
101714         for configure's at-exit trap code to do it.
101715         Suggestion from Stepan Kasal.
101717 2005-01-01  Simon Josefsson  <jas@extundo.com>
101719         * gnulib-tool: Print #include directives when --import'ing.
101721 2004-12-28  Simon Josefsson  <jas@extundo.com>
101723         * tests/test-base64.c: Include required header files.  Remove
101724         unused variables.
101726 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
101728         * modules/error (Depends-on): Remove gettext.
101730 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
101732         * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
101733         not needed.  This removes a dependency on the gettext module.
101734         [defined _LIBC]: Do not include <libintl.h>; not needed.
101736 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
101738         * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
101739         (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
101741 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
101743         * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
101744         HAVE_DECL_STRTOLD.
101746 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
101748         * modules/getdate (Depends-on): Remove alloca-opt.
101750 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
101752         * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
101754 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
101756         * lib/argp-parse.c: Include <stddef.h>.
101757         (alignof, alignto): New macros.
101758         (parser_init): Don't assume that void * is aligned sufficiently
101759         for struct option.
101761         * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
101762         need to extend the stack.
101763         (YYINITDEPTH): New macro, so that the initial stack isn't overly
101764         large.
101766 2004-12-22  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
101768         * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
101770 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
101772         * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
101773         (2004-10-24) change.  Apparently this was a false alarm.
101775         * modules/getdate: Depend on alloca-opt, not alloca.
101777 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
101779         * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
101780         Remove now-obsolete comment about AIX.
101781         * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
101782         (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
101783         (YYMAXDEPTH): New macro.
101785 2004-12-18  Simon Josefsson  <jas@extundo.com>
101787         * modules/alloca: Depend on alloca-opt, instead of duplicating it.
101789 2004-12-18  Bruno Haible  <bruno@clisp.org>
101791         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
101793 2004-12-18  Bruno Haible  <bruno@clisp.org>
101795         * lib/fatal-signal.c (fatal_signals): Make non-const.
101796         (init_fatal_signals): New function.
101797         (uninstall_handlers, install_handlers): Ignore signals that were set to
101798         SIG_IGN.
101799         (at_fatal_signal): Call init_fatal_signals.
101800         (init_fatal_signal_set): Likewise. Ignore signals that were set to
101801         SIG_IGN.
101802         Reported by Paul Eggert.
101804 2004-12-18  Bruno Haible  <bruno@clisp.org>
101806         * doc/alloca.texi: New file.
101807         * doc/alloca-opt.texi: New file.
101809 2004-12-17  Jim Meyering  <jim@meyering.net>
101811         * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
101812         Otherwise, install-sh could exit with improper exit status when
101813         exiting via a trapped interrupt.  Thanks to a report from Bob Proulx.
101815 2004-12-16  Simon Josefsson  <jas@extundo.com>
101817         * tests/test-base64.c: Add license.
101819 2004-12-15  Stepan Kasal  <address@hidden>
101821         * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
101823 2004-12-12  Paul Eggert  <eggert@cs.ucla.edu>
101825         * modules/getcwd (Files): Add m4/d-ino.m4.
101826         Suggested by Mark D. Baushke.
101828 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
101830         * lib/getdate.y (textint): New member "negative".
101831         (time_zone_hhmm): New function.
101832         Expect 14 shift-reduce conflicts, not 13.
101833         (o_colon_minutes): New rule.
101834         (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
101835         (yylex): Set the "negative" member of signed numbers.
101837 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
101839         * doc/getdate.texi (Time of day items, Time zone items):
101840         Describe new formats +00:00, UTC+00:00.
101842 2004-12-07  Paul Eggert  <eggert@cs.ucla.edu>
101844         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
101845         spurious "-l"s.  Problem reported by Stepan Kasal.
101847 2004-12-06  Paul Eggert  <eggert@cs.ucla.edu>
101849         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
101850         in Autoconf 2.59.  Problem reported by Mark D. Baushke.
101852 2004-12-04  Simon Josefsson  <jas@extundo.com>
101854         * modules/getaddrinfo (License): Add LGPL, reported by Yoann
101855         Vandoorselaere <yoann@prelude-ids.org>.
101857 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
101859         Changes imported from coreutils.
101860         * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
101861         exist.
101862         * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
101864 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
101866         Changes imported from coreutils.
101867         * lib/hard-locale.c: Assume <locale.h> exists.
101868         Include "strdup.h".
101869         (GLIBC_VERSION): New macro.
101870         (hard_locale): Assume setlocale exists.
101871         Rewrite to avoid #ifdef.
101872         Use strdup rather than malloc + strcpy.
101873         * lib/human.c: Assume <locale.h> exists.
101874         (human_readable): Assume localeconv exists.
101876 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
101878         * modules/hard-locale (Depends-on): Add strdup.
101880 2004-12-01  Jakub Jelinek  <jakub@redhat.com>
101882         * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
101883         convert T2, not T.  (Imported from libc.)
101885 2004-11-30  Simon Josefsson  <jas@extundo.com>
101887         * modules/restrict (License): Change to LGPL.
101889 2004-11-30  Simon Josefsson  <jas@extundo.com>
101891         * m4/restrict.m4: Add copyright and copying conditions.
101893 2004-11-30  Simon Josefsson  <jas@extundo.com>
101895         * m4/base64.m4: New file.
101897 2004-11-30  Simon Josefsson  <jas@extundo.com>
101899         * MODULES.html.sh (Extra functions based on ANSI C 89): Add
101900         base64.
101902         * tests/test-base64.c: New file.
101904         * modules/base64: New file.
101906 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
101908         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
101909         Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
101911         * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
101913 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
101915         * lib/getcwd.c (is_ENAMETOOLONG): New macro.
101916         (__getcwd.c): Don't restore errno; glibc doesn't.
101917         [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
101918         first, falling back to our code only if its results look suspicious.
101919         Ensure that the resulting buffer is only as large as necessary.
101921         * lib/readutmp.c: Include readutmp.h first.
101922         Include <errno.h>, since readutmp.h no longer does that.
101923         * lib/readutmp.h: Don't include <errno.h>,
101924         <sys/param.h>, <time.h>; not needed to establish interface.
101925         (errno): Remove decl.
101926         (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
101927         (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
101928         UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
101930 2004-11-28  Simon Josefsson  <jas@extundo.com>
101932         * lib/base64.h, base64.c: New file.
101934 2004-11-27  Paul Eggert  <eggert@cs.ucla.edu>
101936         * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
101938 2004-11-26  Paul Eggert  <eggert@cs.ucla.edu>
101940         * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
101941         (Depends-on): Remove pathmax, same.  Add mempcpy.
101942         (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
101943         (Makefile.am): Append getcwd.h to lib_SOURCES.
101944         (Include): Add getcwd.h.
101945         (Maintainer): Change from Jim Meyering to "all, glibc",
101946         since getdate now uses intended-for-glibc code.
101947         * modules/xgetcwd (Files): Remove m4/getcwd.m4.
101948         (Depends-on): Depend on getcwd.  Do not depend on pathmax.
101950 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
101952         Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
101953         HP's ANSI C compiler.
101954         * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
101955         Declaring int functions causes warnings on some modern systems and
101956         shouldn't be needed to compile on ancient ones.
101957         * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
101958         defined.
101960         * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
101961         with the following changes.
101962         (__set_errno): Parenthesize properly.
101963         Include <stdbool.h>.
101964         (MIN, MAX, MATCHING_INO): New macros.
101965         (__getcwd): Define with prototype, not K&R form.
101966         Use heuristics to allocate default buffer on stack if possible.
101967         If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
101968         behavior, and to avoid the PATH_MAX limit when computing
101969         ../../../../...
101970         Use MATCHING_INO to compare inode number to file.
101971         Check for arithmetic overflow in size calculations.
101972         Fix bug in reallocation of dot array that caused getcwd to fail
101973         on directories nested deeper than 75.
101974         Be more careful about saving errno on error.
101975         Do not use realloc; use only free+malloc, as this is a bit
101976         more flexible and avoids a needless copy operation.
101977         Do not inspect st_dev and st_ino for symbolic links; POSIX
101978         doesn't specify the latter.
101979         Check for closedir errors.
101980         Avoid needless casts.
101981         Use "#ifdef weak_alias" around weak_alias, to be like other
101982         glibc code.
101983         The following changes to getcwd.c have effect only when used in
101984         gnulib; they have no effect inside glibc proper.
101985         (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
101986         as alloca isn't used.
101987         (alloca, __alloca): Likewise.
101988         [!_LIBC]: Include "getcwd.h", "mempcpy.h".
101989         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
101990         unconditionally, as gnulib assumes C89 or better.
101991         Do not include <sys/param.h>.
101992         (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
101993         no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
101994         better.
101995         (NULL) [!defined NULL]: Remove; we assume C89 or better.
101996         Include <dirent.h> in a way that is compatible with modern Autoconf.
101997         (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
101998         New macros, if not already defined.
101999         Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
102000         Use "_LIBC", not "defined _LIBC", for consistency.
102001         (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
102002         a mempcpy module.
102003         (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
102004         (GETCWD_RETURN_TYPE): Remove.  All uses replaced by char *.
102005         * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
102006         credit only to Jim Meyering and adjust the copyright dates.
102007         Do not include <limits.h>, <stdio.h>, <sys/types.h>,
102008         <stdlib.h>, <unistd.h>, "pathmax.h".
102009         Instead, include "xgetcwd.h" (first) and "getcwd.h".
102010         (INITIAL_BUFFER_SIZE): Remove.
102011         (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
102013 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
102015         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
102016         GL_FUNC_GETCWD_PATH_MAX for consistency.  All uses changed.
102017         Use the _ONCE methods, for efficiency.
102018         Check for fcntl.h.  In test program, include <errno.h>
102019         and <fcntl.h> if available.  Remove old K&R cruft from
102020         test program.  Check for common errors in GNU/Linux,
102021         OpenBSD, and Solaris.  Just set gl_cv_func_getcwd_path_max;
102022         don't do AC_LIBOBJ, as that's getcwd.m4's job.
102023         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
102024         AC_FUNC_GETCWD_NULL.  All used changed.  Change cache variable
102025         name accordingly.
102026         (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros.  Revamp to
102027         accommodate new getcwd.c.
102028         * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
102029         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
102030         * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
102031         that's all we need now.
102033 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
102035         * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
102036         argp-parse.c depends on getopt internals, that means we should
102037         always use our getopt, to be on the safe side.
102038         * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
102039         order not to spoil the result of an eventual previous invocation
102040         of gl_GETOPT_SUBSTITUTE.
102042 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
102044         * lib/getopt_.h: Re-addition of __getopt_argv_const caused
102045         redefinition warnings. To avoid them, include the defines
102046         in `#if !defined __need_getopt ... #endif'. The only place
102047         where __getopt_argv_const is used is in definitions
102048         of getopt_long and getopt_long_only below, which are as well
102049         protected by `#ifndef __need_getopt'.
102050         [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
102051         __need_getopt after including <stdio.h> and <unistd.h> These
102052         headers might have defined it.
102054 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
102056         * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
102058 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
102060         * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
102061         (futimens): New function, which uses futimes if available.
102062         (futimens, utimens): Support timespec==NULL, with same semantics
102063         as utime and utimens.
102064         * lib/utimens.h (futimens): New decl.
102066 2004-11-23  Jim Meyering  <jim@meyering.net>
102068         * lib/getopt_.h: Remove trailing blanks.
102070 2004-11-23  Jim Meyering  <jim@meyering.net>
102072         * lib/__fpending.c: Add comment.
102074 2004-11-22  Paul Eggert  <eggert@cs.ucla.edu>
102076         * modules/canonicalize (Depends-on): Add xreadlink.
102077         Problem reported by James Youngman.
102079 2004-11-20  Paul Eggert  <eggert@cs.ucla.edu>
102081         * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
102082         New macros.
102083         (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
102084         optopt): Use them instead of invoking ## directly; otherwise, the
102085         symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
102087 2004-11-19  Bruno Haible  <bruno@clisp.org>
102089         * lib/strtok_r.c: Move comments from here...
102090         * lib/strtok_r.h: ... to here.
102092 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
102094         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
102095         implementations that mishandle size_t overflow.
102097 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
102099         * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
102100         might fail.  Problem reported by Yoann Vandoorselaere.
102101         * lib/calloc.c (rpl_calloc): Defend against buggy calloc
102102         implementations that mishandle size_t overflow.
102104 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
102106         * modules/canon-host (Depends-on): Add strdup.
102108 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
102110         * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
102112 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
102114         * lib/canon-host.c: Include "strdup.h".
102115         (canon_host): Use getaddrinfo if available, so that IPv6 works.
102116         Use strdup instead of malloc/strcpy to duplicate strings.
102118         * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
102119         (human_space_before_unit): New constant.
102120         * lib/human.c (human_readable): Support it.
102122         * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
102123         (xgetcwd): Set errno correctly when failing.
102124         Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
102125         the failure is actually due to a PATH_MAX problem.
102127         Further getopt changes to make it more likely that glibc will
102128         buy the changes back.
102129         * lib/getopt.c (POSIXLY_CORRECT): New constant.
102130         (getopt): Use it, so to preserve glibc semantic
102131         * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
102132         when compiling for libc.
102133         * lib/getopt_.h (__getopt_argv_const): Bring it back.
102134         (getopt_long, getopt_long_only): Use it.
102136         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
102137         _getopt_internal): New arg POSIXLY_CORRECT.  All callers changed.
102138         (getopt): Argv is now char * const *, as per standard.
102139         (_getopt_internal_r, _getopt_internal): Argv is now char **,
102140         not char *__getopt_argv_const *.
102141         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
102142         _getopt_long_only_r): Likewise.
102143         * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
102144         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
102145         _getopt_long_r, _getopt_long_only_r): Likewise.
102146         * lib/getopt_.h (__getopt_argv_const): Remove.
102147         (getopt): Argv is now char * const *, as per standard.
102149         * lib/getdate.y (tORDINAL): New token.
102150         (day, relunit): Allow it for relative times.
102151         (relative_time_table): Use tORDINAL for ordinals.
102153 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
102155         * doc/getdate.texi (General date syntax): "next" is 1, not 2.
102156         Document that "second" isn't allowed as an ordinal number.
102158 2004-11-16  Jim Meyering  <jim@meyering.net>
102160         * modules/closeout (Depends-on): Add fpending.
102162 2004-11-15  Jim Meyering  <jim@meyering.net>
102164         * lib/closeout.c: Include "__fpending.h" once again.
102165         Include <stdbool.h>.
102166         (close_stdout): Don't fail just because stdout was closed initially,
102167         since some programs don't write to stdout in the normal course of
102168         operation (other than --version and --help), and we don't want this
102169         function to make e.g. `touch file >&-' fail.
102170         But do fail if it was closed and someone has tried to write to it.
102171         E.g., `printf foo >&-' must fail.
102173 2004-11-13  Jim Meyering  <jim@meyering.net>
102175         * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
102177 2004-11-12  Simon Josefsson  <jas@extundo.com>
102179         * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
102180         small doc fix is still pending.
102182 2004-11-11  Simon Josefsson  <jas@extundo.com>
102184         * modules/strtok_r: New file.
102186         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
102187         strtok_r.
102189 2004-11-11  Simon Josefsson  <jas@extundo.com>
102191         * m4/strtok_r.m4: New file.
102193         * m4/getopt.m4: Replace opterr.
102195 2004-11-11  Simon Josefsson  <jas@extundo.com>
102197         * lib/strtok_r.h, strtok_r.c: New file.
102199 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
102201         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
102202         of replacing opterr, getopt, etc.  This should handle the
102203         powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
102205 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
102207         * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
102208         we can stop lying to compilers about the constness of argv when we
102209         are compiled outside glibc.
102210         (getopt, getopt_long, getopt_long_only): Use it.
102211         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
102212         _getopt_internal, getopt): Likewise.
102213         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
102214         _getopt_long_only_r): Likewise.
102215         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
102216         _getopt_long_r, _getopt_long_only_r): Likewise.
102218         * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
102219         Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
102220         Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
102221         the other external symbols.
102222         (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
102223         declaration, since the above renaming now works around collisions.
102225 2004-11-11  Jim Meyering  <jim@meyering.net>
102227         * lib/linebreak.c: Remove trailing blanks.
102228         * lib/alloca_.h: Likewise.
102229         * lib/acosl.c: Likewise.
102230         * lib/euidaccess.c: Likewise.
102231         * lib/allocsa.h: Likewise.
102233 2004-11-10  Simon Josefsson  <jas@extundo.com>
102235         * m4/getaddrinfo.m4: New file.
102237 2004-11-10  Simon Josefsson  <jas@extundo.com>
102239         * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
102241 2004-11-10  Simon Josefsson  <jas@extundo.com>
102243         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
102244         getaddrinfo.
102246         * modules/getaddrinfo: New file.
102248 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
102250         * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
102252 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
102254         * lib/mktime.c (SHR): New macro, which is a portable
102255         substitute for >> that should work even on Crays.
102256         (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
102257         Problem reported by Mark D. Baushke in
102258         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00071.html>.
102259         * lib/getdate.y (SHR): Likewise.
102260         (tm_diff): Use it.
102261         * lib/strftime.c (SHR): Likewise.
102262         (tm_diff): Use it.
102263         * lib/quotearg.c (struct quoting_options): Use unsigned int for
102264         quote_these_too, so that right shifts are well defined.  All uses
102265         changed.
102267 2004-11-10  Jim Meyering  <jim@meyering.net>
102269         Ensure that no close failure goes unreported.
102270         * lib/closeout.c (close_stdout): Always close stdout.  I.e., don't
102271         return early when it seems there's nothing to flush.
102272         Don't include __fpending.h.
102274 2004-11-10  Jim Meyering  <jim@meyering.net>
102276         * modules/closeout (Depends-on): Remove fpending.
102278 2004-11-10  Jim Meyering  <jim@meyering.net>
102280         * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
102282 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
102284         * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove.  Move its body to
102285         gl_FUNC_STRFTIME.
102286         (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
102287         and AC_REQUIRE when possible, to avoid duplicate checks.
102288         Check for <wchar.h>.
102290 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
102292         * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
102294 2004-11-09  Bruno Haible  <bruno@clisp.org>
102296         * m4/sockpfaf.m4: New file.
102298 2004-11-05  Bruno Haible  <bruno@clisp.org>
102300         * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
102301         Reported by Mark D. Baushke <mdb@cvshome.org>.
102303 2004-11-04  Bruno Haible  <bruno@clisp.org>
102305         2004-09-11  Bruno Haible  <bruno@clisp.org>
102306                 * allocsa.valgrind: New file.
102307         2004-02-06  Bruno Haible  <bruno@clisp.org>
102308                 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
102309                 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
102310                 Reported by Christopher Seip <chris.seip@hp.com>.
102312 2004-11-04  Bruno Haible  <bruno@clisp.org>
102314         * modules/allocsa (Files): Add lib/allocsa.valgrind.
102315         (Makefile.am): Distribute it.
102317 2004-11-03  Paul Eggert  <eggert@cs.ucla.edu>
102319         * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
102320         with errno == ERANGE if the buffer is too small.
102321         Problem reported by Mark D. Baushke.
102323 2004-11-03  Albert Chin  <china@thewrittenword.com>
102324             Paul Eggert  <eggert@cs.ucla.edu>
102326         * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
102327         equivalent, substitute $ac_type for equivalent type rather than
102328         blindly using uint32_t *always* which won't work if uint32_t is not
102329         available.  Define _UINT32_T to work around typedef of uint32_t if
102330         <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
102331         2.5.1.
102333 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
102335         * m4/jm-macros.m4: Sync from coreutils.
102336         (gl_MACROS): Check for mbrlen, for pathchk.
102337         (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
102339 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
102341         * lib/xreadlink.c (MAXSIZE): New macro.
102342         (xreadlink): Use it instead of SSIZE_MAX.  Ensure initial buffer
102343         size does not exceed MAXSIZE.  Avoid cast.
102344         As suggested by Mark D. Baushke in
102345         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00009.html>,
102346         if readlink fails with buffer size just under MAXSIZE, try again
102347         with MAXSIZE.
102349 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
102351         * config/srclist.txt: Add mktime.c; glibc bought all our changes.
102353 2004-11-02  Derek R. Price  <derek@ximbiot.com>
102354         and  Paul Eggert  <eggert@cs.ucla.edu>
102356         * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
102357         (get_date): Overparenthesize to avoid GCC warning.
102359 2004-11-02  Bruno Haible  <bruno@clisp.org>
102361         * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
102362         returns void.
102364 2004-11-02  Bruno Haible  <bruno@clisp.org>
102366         * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
102367         function returns void.
102369 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
102371         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
102372         fflush_unlocked, flockfile, funlockfile, funlockfile,
102373         fputs_unlocked, putc_unlocked.
102375 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
102377         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
102378         (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
102379         already declared.
102381 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
102383         * modules/getdate (Files): Add doc/getdate.texi.
102384         (Depends-on): Add setenv, xalloc.
102386 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
102388         * lib/getdate.y: Add support for TZ="foo" within a date string.
102389         Fix some bugs near time_t boundaries.  Reject dates with
102390         out-of-range components, e.g., "Sept 31".
102391         Include <stdlib.h>, "setenv.h", "xalloc.h".
102392         (ISDIGIT_LOCALE): Remove; unused.
102393         Note that the TZ and time functions used here are not reentrant.
102394         (mktime_ok, get_tz): New functions.
102395         (TZBUFSIZE): New constant.
102396         (get_date): Parse leading TZ="foo".  Reject out-of-range components;.
102397         This requires that we sometimes generate our own TZ="XXX..." setting.
102399 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
102401         * doc/getdate.texi: New file, from coreutils with modifications for
102402         the new TZ parsing.
102404 2004-10-27  Derek R. Price  <derek@ximbiot.com>
102406         * lib/mktime.c (not_equal_tm): Remove redundant check.
102408 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
102410         * modules/regex (lib_SOURCES): Add regex.c.
102411         Reported by James Youngman in
102412         <http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00199.html>.
102414 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
102416         * lib/getdate.y: Use Bison 1.875 features, and some minor
102417         code cleanups.  This change does not affect semantics.
102418         Don't include <stdlib.h>; no longer needed.
102419         Don't include unlocked-io.h; only the "#if TEST" code uses
102420         stdio, and performance isn't crucial there.
102421         (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
102422         Bison 1.875 features as described below.
102423         All uses of "PC." replaced by "pc->".
102424         (YYSTYPE): Add a forward declaration.
102425         (yylex, yyerror): Use full prototypes in forward decls.
102426         Use "%pure-parser" rather than obsolescent "%pure_parser".
102427         Use %parse-param and %lex-param instead of obsolescent
102428         YYPARSE_PARAM and YYLEX_PARAM.
102429         (meridian_table, month_and_day_table, time_units_table,
102430         relative_time_table, time_zone_table, military_table,
102431         lookup_zone, lookup_word, get_date):
102432         Use NULL instead of 0 where appropriate.
102433         (to_hour): Avoid abort (), to avoid a dependency on
102434         stdlib.h.
102435         (yyerror, yylex): Now accepts parser_control * arg.
102436         (main) [TEST]: Use '\0' rather than 0 for char.
102438 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
102440         * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
102442 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
102444         * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
102445         It's now the caller's responsibility to handle the case where
102446         !HAVE_GETPAGESIZE && !defined getpagesize.
102448         * lib/mktime.c (leapyear): Arg is long int, not int.
102450 2004-10-18  Paul Eggert  <eggert@cs.ucla.edu>
102452         * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
102454 2004-10-17  Paul Eggert  <eggert@cs.ucla.edu>
102456         * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
102457         missing.  Problem reported by James Youngman.
102459 2004-10-16  Simon Josefsson  <jas@extundo.com>
102461         * gnulib-tool: Fix comments.  Fix parse problem.
102462         (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
102464 2004-10-15  Paul Eggert  <eggert@cs.ucla.edu>
102466         * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
102467         implementation of getopt_long.  Problem reported by Alexander Taler in:
102468         http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00103.html
102470 2004-10-15  Bruno Haible  <bruno@clisp.org>
102472         * gnulib-tool: Untabify. Initialize supplied_libname.
102473         (func_usage): More homogenous output.
102474         (func_modules_transitive_closure, func_modules_to_filelist,
102475         func_emit_lib_Makefile_am): New functions.
102476         (func_import): New function, extracted from big case statement. Use
102477         func_get_license, func_modules_transitive_closure,
102478         func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
102479         opt_lgpl. Don't use test -a, as it's not portable.
102480         (func_create_testdir): Use func_modules_transitive_closure,
102481         func_modules_to_filelist, func_emit_lib_Makefile_am.
102483 2004-10-15  Bruno Haible  <bruno@clisp.org>
102485         * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
102487 2004-10-15  Bruno Haible  <bruno@clisp.org>
102489         * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
102490         the portions belonging to each module.
102491         Suggested by Derek Robert Price <derek@ximbiot.com>.
102493 2004-10-12  Simon Josefsson  <jas@extundo.com>
102495         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
102496         (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
102497         to real functions.
102499 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
102501         * modules/vsnprintf: New file.
102503 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
102505         * m4/vsnprintf.m4: New file.
102507 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
102509         * lib/vsnprintf.h: New file.
102510         * lib/vsnprintf.c: New file.
102512 2004-10-11  Bruno Haible  <bruno@clisp.org>
102514         * MODULES.html.sh (Support for systems lacking ISO C 99): Add
102515         vsnprintf.
102517 2004-10-10  Paul Eggert  <eggert@cs.ucla.edu>
102519         * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
102521 2004-10-07  Bruno Haible  <bruno@clisp.org>
102523         * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
102524         fits into the provided buffer.
102526 2004-10-06  Paul Eggert  <eggert@cs.ucla.edu>
102528         * lib/diacrit.c, diacrit.h: Add GPL notice.
102530         * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
102531         notice.
102532         * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
102533         * lib/logl.c (logl): Keep the code as similar to glibc as possible.
102534         This avoids a potential constant-folding bug.
102536 2004-10-05  Bruno Haible  <bruno@clisp.org>
102538         * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
102539         for the declaration of strsep.
102541 2004-10-05  Bruno Haible  <bruno@clisp.org>
102543         * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
102545 2004-10-04  Simon Josefsson  <jas@extundo.com>
102547         * modules/memmem: New file.
102548         * tests/test-memmem.c: New file.
102549         * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
102551 2004-10-04  Simon Josefsson  <jas@extundo.com>
102553         * m4/memmem.m4: New file.
102555 2004-10-04  Simon Josefsson  <jas@extundo.com>
102557         * lib/memmem.h: New file.
102558         * lib/memmem.c: New file, taken from glibc.
102560 2004-10-04  Simon Josefsson  <jas@extundo.com>
102562         * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
102563         '#ifdef USE_UNLOCKED_IO'.
102565 2004-10-04  Simon Josefsson  <jas@extundo.com>
102567         * config/srclist.txt: Add memmem from glibc.
102569 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
102571         * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
102573         * modules/argmatch, modules/argp, modules/closeout, modules/error,
102574         modules/exclude, modules/getdate, modules/getline,
102575         modules/getndelim2, modules/getpass, modules/getpass-gnu,
102576         modules/getusershell, modules/linebuffer, modules/md5,
102577         modules/mountlist, modules/posixtm, modules/readtokens,
102578         modules/readutmp, modules/regex, modules/sha1,
102579         modules/version-etc, modules/yesno:
102580         Remove dependency on unlocked-io.
102582 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
102584         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove.  All uses removed.
102586         * m4/unlocked-io.m4: Add copyright notice.
102587         (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
102589 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
102591         * lib/xalloc.h (xmemdup): Renamed from xclone.  All uses changed.
102592         * lib/xmalloc.c (xmemdup): Likewise.
102593         * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
102594         XFREE): Remove these long-obsolescent macros.
102595         * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
102596         * lib/xstrdup.c: Remove.
102598         * lib/regex.c (re_comp): Cast gettext return value to char *,
102599         Problem reported by Martin Neitzel via Mark D. Baushke.
102601 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
102603         * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
102604         getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
102605         md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
102606         regex.c, sha1.c, version-etc.c, yesno.c:
102607         Include "unlocked-io.h" only if USE_UNLOCKED_IO.
102608         * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
102609         the includer's responsibility.
102611         Sync from coreutils.
102613         * lib/modechange.c (mode_compile): Don't decrement a pointer that
102614         points to the start of a string, as the C Standard says the
102615         resulting behavior is undefined.
102617         * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
102618         simple -> simple_backups, numbered_existing ->
102619         numbered_existing_backups, numbered -> numbered_backups
102620         to avoid shadowing problems.  All uses changed.
102621         * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
102622         * lib/backupfile.c (check_extension, numbered_backup):
102623         Rename locals to avoid shadowing 'basename'.
102624         * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
102625         once.
102627         * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
102628         * lib/.cvsignore: Add getopt.h.
102630 2004-10-04  Bruno Haible  <bruno@clisp.org>
102632         * modules/README: New file.
102633         * gnulib-tool (func_all_modules, func_verify_module): modules/README is
102634         not a module.
102636 2004-10-02  Jim Meyering  <jim@meyering.net>
102638         * lib/dirfd.h, getpagesize.h: Add copyright notice.
102640 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
102642         * modules/strsep: New file.
102644 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
102646         * m4/strsep.m4: New file.
102648 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
102650         * lib/strsep.h: New file.
102651         * lib/strsep.c: New file.
102653 2004-10-01  Simon Josefsson  <jas@extundo.com>
102655         * lib/snprintf.c (snprintf): Handle size==0.
102657 2004-10-01  Simon Josefsson  <jas@extundo.com>
102658             Bruno Haible  <bruno@clisp.org>
102660         * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
102661         (snprintf): Declare 'args'.
102663 2004-10-01  Paul Eggert  <eggert@cs.ucla.edu>
102665         * lib/snprintf.c: Remove comments as to why each header is needed.
102667 2004-10-01  Bruno Haible  <bruno@clisp.org>
102669         * MODULES.html.sh: Add strsep.
102671 2004-09-30  Simon Josefsson  <jas@extundo.com>
102673         * modules/snprintf: New file.
102675 2004-09-30  Simon Josefsson  <jas@extundo.com>
102677         * m4/snprintf.m4: New file.
102679 2004-09-30  Simon Josefsson  <jas@extundo.com>
102681         * lib/snprintf.h, lib/snprintf.c: New files.
102683 2004-09-30  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
102685         * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
102686         (hol_entry_help): Never translate an empty string.
102687         Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
102688         * lib/argp.h (OPTION_NO_TRANS): New option.
102690 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
102692         * modules/argp (Maintainer): Replace Simon Josefsson
102693         by Sergey Poznyakoff.
102695 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
102697         * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
102698         changes merged back into glibc.
102700 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
102702         * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
102704 2004-09-29  Oskar Liljeblad  <oskar@osk.mine.nu>
102706         * lib/xvasprintf.c: Include xalloc.h.
102707         (xvasprintf): Use xalloc_die, not xmalloc_die.
102709 2004-09-29  Bruno Haible  <bruno@clisp.org>
102711         * modules/alloca-opt: New file, derived from modules/alloca.
102712         * modules/allocsa: Depend on alloca-opt instead of alloca.
102713         * modules/setenv: Likewise.
102714         * modules/vasnprintf: Likewise.
102715         * MODULES.html.sh: Add alloca-opt.
102717 2004-09-28  Simon Josefsson  <jas@extundo.com>
102719         * gnulib-tool: New parameter --lgpl, to asseert that modules are
102720         LGPL, and to replace license template from GPL to LGPL.
102722 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
102724         * modules/dummy: Change license to LGPL.
102726 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
102728         * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
102730 2004-09-24  Simon Josefsson  <jas@extundo.com>
102732         * modules/minmax (License): Change from GPL to LGPL.
102734 2004-09-23  Simon Josefsson  <jas@extundo.com>
102736         * gnulib-tool (--import): Typo.
102738 2004-09-23  Simon Josefsson  <jas@extundo.com>
102740         * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
102742 2004-09-22  Bruno Haible  <bruno@clisp.org>
102744         * modules/*: Add 'License' field.
102745         * gnulib-tool: Accept --extract-license option.
102746         (func_get_license): New function.
102748 2004-09-21  Bruno Haible  <bruno@clisp.org>
102750         * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
102751         Reported by Simon Josefsson.
102753 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
102755         * modules/inttostr (Files): Add m4/longlong.m4, since it uses
102756         gl_AC_TYPE_LONG_LONG.
102758 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
102760         * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
102762 2004-09-18  Simon Josefsson  <jas@extundo.com>
102763         and  Paul Eggert  <eggert@cs.ucla.edu>
102765         * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
102766         calls with autoreconf.  Define GL_LIB.
102768 2004-09-14  Karl Berry  <karl@gnu.org>
102770         * config/srclist.txt: unsync setenv.c, sigh.
102772 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
102774         * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
102775         Problem reported by Bruno Haible in:
102776         http://lists.gnu.org/archive/html/bug-tar/2004-09/msg00023.html
102778 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
102780         * config/srclist.txt: Comment out argp-pvh.c.
102782 2004-09-11  Paul Eggert  <eggert@cs.ucla.edu>
102784         * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
102785         in case some system header has #define'd it.  Problem reported by
102786         Soeren D. Schulze in
102787         <http://lists.gnu.org/archive/html/bug-gnulib/2004-09/msg00017.html>.
102789 2004-09-09  Karl Berry  <karl@gnu.org>
102791         * regex.[ch]: delete from the root.  These were supposed to be
102792                 synced with emacs cvs, but this has not happened for about
102793                 a year, and anyway nothing else uses emacs regex.[ch].
102794                 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
102795                 lib/regex[.ch] is untouched.
102797 2004-09-09  Bruno Haible  <bruno@clisp.org>
102799         * modules/vasnprintf (Files): Add m4/eoverflow.m4.
102801 2004-09-09  Bruno Haible  <bruno@clisp.org>
102803         * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
102804         modifications.
102805         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
102807 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
102809         * modules/xvasprintf: New file.
102810         * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
102812 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
102814         * lib/xvasprintf.h: New file.
102815         * lib/xvasprintf.c: New file.
102816         * lib/xasprintf.c: New file.
102818 2004-09-08  Bruno Haible  <bruno@clisp.org>
102820         * m4/stdint.m4: New file, taken from GNU clisp with modifications.
102822 2004-09-08  Bruno Haible  <bruno@clisp.org>
102824         * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
102825         length is > INT_MAX.
102826         * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
102827         more.
102829 2004-09-08  Bruno Haible  <bruno@clisp.org>
102831         * lib/stdint_.h: New file, taken from GNU clisp.
102833 2004-09-08  Bruno Haible  <bruno@clisp.org>
102834             Oskar Liljeblad  <oskar@osk.mine.nu>
102836         * modules/stdint: New file.
102837         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
102839 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
102841         Import from coreutils.
102842         * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
102843         strings on unbounded length.  alloca's performance benefits aren't
102844         that important here.
102845         (V_STRDUP): Remove.
102846         (parse_with_separator): New function, with most of the internals
102847         of the old parse_user_spec.  Allow user to omit both user and group,
102848         for compatibility with FreeBSD.
102849         Clone only the user name, not the entire spec.
102850         Do not set *uid, *gid unless entirely successful.
102851         Avoid memory leak in some failing cases.
102852         Fix regression for USER.GROUP reported by Dmitry V. Levin in
102853         <http://lists.gnu.org/archive/html/bug-coreutils/2004-08/msg00102.html>
102854         (parse_user_spec): Rewrite to use parse_with_separator.
102856 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
102858         * modules/userspec: Don't depend on alloca.
102860 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
102862         * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
102864 2004-08-17  Paul Eggert  <eggert@cs.ucla.edu>
102866         * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
102867         readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
102868         utimecmp, utimens, xnanosleep.  Rename sha to sha1.
102870 2004-08-16  Simon Josefsson  <jas@extundo.com>
102872         * gnulib-tool: Use sed instead of autoconf --trace, inspired by
102873         libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
102874         Add --dry-run for --import.
102875         Let user provided command line parameters override configure.ac
102876         settings.
102878 2004-08-12  Simon Josefsson  <jas@extundo.com>
102880         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
102881         as discussed with Paul Eggert in threads rooted at
102882         <http://lists.gnu.org/archive/html/bug-gnulib/2004-06/msg00039.html>
102883         and
102884         <http://lists.gnu.org/archive/html/bug-gnulib/2004-07/msg00001.html>.
102885         Before, the test was empty, and relied on ELIDE_CODE in source
102886         code.)
102887         (gl_PREREQ_GETOPT): New macro.
102888         (gl_GETOPT): Use them.
102890 2004-08-12  Simon Josefsson  <jas@extundo.com>
102892         * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
102893         * lib/getopt_.h: Renamed from getopt.h.
102895 2004-08-12  Simon Josefsson  <jas@extundo.com>
102897         * gnulib-tool: Add --source-base, --m4-base, --libtool options.
102898         Change default library name from libfoo to libgnu.
102899         Now, if you have a configure.ac that says:
102900                 gl_SOURCE_BASE(gl)
102901                 gl_M4_BASE(gl/m4)
102902                 gl_MODULES(error getopt etcetera)
102903                 gl_INIT
102904         you can import all you need by running:
102905                 ../gnulib/gnulib-tool --import
102907         * modules/getopt (Files): Rename getopt.h to getopt_.h.
102908         (Makefile.am): Rewrite, use logic from argz.
102909         (Include): Use <getopt.h> instead of "getopt.h".
102911 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
102913         * modules/argp (Files): Add m4/unlocked-io.m4.
102914         (Depends-on): Add extensions.
102916 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
102918         * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
102919         uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
102920         Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
102921         Check for program_invocation_name, program_invocation_short_name,
102922         flockfile, funlockfile, features.h, _getopt_long_only_r.
102924 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
102926         * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
102927         its complicated substitute.
102928         * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
102929         and program_invocation_name.
102930         (__argp_basename) [!_LIBC]: Remove; the only use was
102931         replaced by its body.
102932         (__argp_short_program_name): Change condition from
102933         !defined __argp_short_program_name to
102934         ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
102935         to match argp-namefrob.h.
102936         (__argp_failure): Don't assume strerror_r returns char *.
102937         * lib/argp-parse.c (N_): Define unconditionally.
102938         (argp_default_options): Fill out initializers with 0 to avoid
102939         gcc warnings.
102941 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
102943         * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
102944         getopt1.c.
102946 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
102948         Merge from coreutils.
102950         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
102952         * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
102953         gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
102955 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
102957         Merge from coreutils.
102959         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
102960         wmemchr or wmemcpy.  Problem reported by Robert Dahlem
102961         for Reliant Unix 5.43.
102963         * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
102964         (union fooround): Use uintmax_t, not long int.
102965         The rest is a merge from libc:
102966         [defined _LIBC]: Include <shlib-compat.h>.
102967         (_obstack) [defined _LIBC]: Remove after 2.3.4.
102969         * lib/settime.c (settime): Recode to avoid warning with
102970         Sun Forte C 6U2.
102972         * lib/strverscmp.c: Convert to UTF-8.
102974 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
102976         * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
102977         m4/uintmax_t.m4.
102979 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
102981         * modules/xalloc-die: New file.
102982         * modules/xalloc: Remove dependencies on error, gettext, exitfail.
102984         * modules/md5 (Files): Add m4/uint32_t.m4.
102985         * modules/sha1: Renamed from modules/sha.
102986         (Files):
102987         Rename lib/sha.h to lib/sha1.h.
102988         Rename lib/sha.c to lib/sha1.c.
102989         Rename m4/sha.m4 to m4/sha1.m4.
102990         (lib_SOURCES): Likewise.
102991         (configure.ac): Rename gl_SHA to gl_SHA1.
102992         (Include): sha.h -> sha1.h.
102994 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
102996         * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
102997         * m4/sha1.m4: Renamed from sha.m4.
102998         (gl_SHA1): Renamed from gl_SHA.  All uses changed.
103000 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
103002         * lib/obstack.h (obstack_empty_p):
103003         Don't assume that chunk->contents is suitably aligned.
103004         * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
103005         Likewise. Problem reported by Benno in
103006         <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
103008         * lib/chown.c (rpl_chown): Work even if the file is writeable but not
103009         readable.  This could be improved further but it'd take some work.
103011 2004-08-08  Simon Josefsson  <jas@extundo.com>
103013         * modules/xgethostname (Depends-on): Remove exit and error (not
103014         used).
103016         * modules/getpass-gnu: Add getpass.h.
103017         (Depends-on): Add stdbool.
103018         * modules/getpass: Add getpass.h.
103020 2004-08-08  Simon Josefsson  <jas@extundo.com>
103022         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
103023         Check getpass declaration.
103025 2004-08-08  Simon Josefsson  <jas@extundo.com>
103027         * lib/xgethostname.c: Don't include error.h (not used).
103029         * lib/getpass.h: Add.
103030         * lib/getpass.c: Include getpass.h first.
103032 2004-08-08  Paul Eggert  <eggert@cs.ucla.edu>
103034         * lib/xalloc-die.c: New file.
103035         * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
103036         All uses removed.
103037         * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
103038         Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
103039         xalloc-die.c.
103040         (_, N_, xalloc_die): Move to xalloc-die.c.
103041         * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
103042         so that we needn't mess with xalloc_msg_memory_exhausted.
103044         * lib/sha1.h: Renamed from sha.h.
103045         (SHA1_H): Renamed from _SHA_H.
103046         (sha1_ctx): Renamed from sha_ctx.
103047         (sha1_init_ctx): Renamed from sha_init_ctx.
103048         (sha1_process_block): Renamed from sha_process_block.
103049         (sha1_process_bytes): Renamed from sha_process_bytes.
103050         (sha1_finish_ctx): Renamed from sha_finish_ctx.
103051         (sha1_read_ctx): Renamed from sha_read_ctx.
103052         (sha1_stream): Renamed from sha_stream.
103053         (sha1_buffer): Renamed from sha_buffer.
103054         * lib/sha1.c: Likewise; renamed from sha.c.
103055         Do not include <sys/types.h>.
103056         Include <stddef.h> rather than <stdlib.h>.
103058 2004-08-08  Bruno Haible  <bruno@clisp.org>
103060         * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
103061         FILESYSTEM_PREFIX_LEN.
103062         * lib/progreloc.c: Likewise.
103063         * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
103065 2004-08-06  Simon Josefsson  <jas@extundo.com>
103067         * modules/progname (Depends-on): Don't depend on stdbool.
103069 2004-08-06  Simon Josefsson  <jas@extundo.com>
103071         * modules/getsubopt: New file.
103072         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
103073         getsubopt.
103075 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
103077         More merge from coreutils.
103079         * m4/utimens.m4, m4/utimecmp.m4: New files.
103080         * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
103081         fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
103082         prereq.m4, sha.m4: Import changes from coreutils.
103084 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
103086         More merge from coreutils.
103087         * modules/raise, modules/readtokens0, modules/utimens:
103088         * modules/utimecmp, module/xnanosleep: New files.
103089         * modules/strftime: Add lib/strftime.h.
103090         Change include from <time.h> to "strftime.h".
103091         * modules/yesno: Add lib/yesno.h.
103092         * modules/backupfile: Remove lib/addext.c.
103093         * modules/euidaccess: Add stat-macros.h.
103094         * modules/canonicalize, modules/euidaccess,
103095         modules/filemode, modules/lchown, modules/makepath,
103096         modules/rmdir, modules/stat: Likewise.
103098 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
103100         Merge from tar.
103101         * lib/argp-help.c (make_hol, hol_append): Don't assume that
103102         SIZE_MAX is a valid preprocessor constant.
103103         (__argp_basename): Change from "#ifndef _LIBC"
103104         to "#ifndef __argp_short_program_name", so that
103105         we don't compile these functions for tar.
103107         More merges from coreutils.
103108         * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
103109         * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
103110         * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
103111         * lib/addext.c: Remove; no longer needed.
103112         * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
103113         lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
103114         lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
103115         lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
103116         lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
103117         lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
103118         lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
103119         lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
103120         lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
103121         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
103122         lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
103123         lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
103124         lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
103125         lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
103126         lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
103127         lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
103128         lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
103129         Import changes from coreutils.
103131 2004-08-05  Simon Josefsson  <jas@extundo.com>
103133         * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
103135 2004-08-05  Simon Josefsson  <jas@extundo.com>
103137         * m4/getsubopt.m4: New file.
103139 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
103141         Merge from coreutils.
103143         * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
103144         * m4/getcwd-path-max.m4: New files.
103146         * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
103147         FILESYSTEM_PREFIX_LEN ->
103148         FILE_SYSTEM_PREFIX_LEN.
103149         FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
103150         FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
103151         FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
103152         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
103154         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
103155         prerequisite modules now handle the DOS stuff.
103156         Don't check for unistd.h.
103158 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
103160         Merge from coreutils.
103162         * lib/.gdb-history: Remove; this doesn't belong here.
103164         * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
103165         * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
103166         * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
103167         * lib/getcwd.c: New files.
103169         * lib/dirname.h: Include <stdbool.h>.
103170         (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
103171         for consistency with POSIX terminology.  All uses changed.
103172         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
103173         (strip_trailing_slashes): Use bool for booleans.
103174         * lib/stripslash.c (strip_trailing_slashes): Likewise.
103176         * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
103177         sometimes returns a positive errno value even when it succeeds.
103178         (print_errno_message) [!LIBC]: Fall back on strerror if
103179         __strerror_r fails.
103181         * lib/path-concat.c (mempcpy): Don't define if a system header defines
103182         it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
103183         (longest_relative_suffix): New function.
103184         (path_concat): Use it.  Assume first argument is not NULL.
103185         Port to DOS.  Omit redundant separators.
103186         Report an error instead of returning NULL.
103187         Use mempcpy instead of memcpy.
103188         (xpath_concat): Remove: not declared or used.
103190         * lib/same.h: Include <stdbool.h>
103191         (same_name): Return bool, not int.
103192         * lib/same.c (same_name): Likewise.
103193         (errno): Don't declare; we assume C89 or better now.
103195         * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
103196         if not already defined.
103198         * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
103199         * lib/dup-safer.c (errno): Likewise.
103201 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
103203         Merge from coreutils.
103204         * modules/c-strtod, modules/c-strtold, modules/canonicalize:
103205         * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
103206         * modules/path-concat: Don't depend on strdup.
103208 2004-08-03  Simon Josefsson  <jas@extundo.com>
103210         * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
103211         * lib/progname.h: Don't include stdbool.h.
103213 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
103215         * modules/fatal: Remove, as the "fatal" module wasn't used or working.
103216         * MODULES.html.sh (func_all_modules): Remove fatal.
103218 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
103220         * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
103222 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
103224         * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
103225         working.
103227 2004-08-02  Simon Josefsson  <jas@extundo.com>
103229         * lib/getsubopt.h: New file, with comments from Bruno Haible.
103230         * lib/getsubopt.c: New file, from glibc, but slightly modified based on
103231         suggestions from Paul Eggert <eggert@cs.ucla.edu>.
103233 2004-08-01  Simon Josefsson  <jas@extundo.com>
103235         * lib/xgetdomainname.c: Include stdlib.h, for free().
103237 2004-07-19  Bruno Haible  <bruno@clisp.org>
103239         * MODULES.html.sh (func_all_modules): Add dummy.
103241 2004-07-16  Simon Josefsson  <jas@extundo.com>
103243         * modules/dummy: New file.
103245 2004-07-16  Simon Josefsson  <jas@extundo.com>
103247         * lib/dummy.c: New file.
103249 2004-07-16  Bruno Haible  <bruno@clisp.org>
103251         * lib/backupfile.h: Add extern "C" for C++.
103252         * lib/closeout.h: Likewise.
103253         * lib/copy-file.h: Likewise.
103254         * lib/findprog.h: Likewise.
103255         * lib/full-write.h: Likewise.
103256         * lib/pathname.h: Likewise.
103257         * lib/progname.h: Likewise.
103258         * lib/stpcpy.h: Likewise.
103259         * lib/stpncpy.h: Likewise.
103260         * lib/strcase.h: Likewise.
103261         * lib/strstr.h: Likewise.
103262         * lib/xalloc.h: Likewise.
103264         * lib/mbswidth.h: Add extern "C" for C++.
103265         Reported by Albert Chin-A-Young <china@thewrittenword.com>.
103267 2004-07-13  Robert Millan  <robertmh@gnu.org>
103269         * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
103271 2004-07-09  Simon Josefsson  <jas@extundo.com>
103273         * lib/getndelim2.c: Include stddef.h, for ptrdiff_t.  (FreeBSD 4.9
103274         failed without this.)
103276 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
103278         * modules/chown (Files): Add lib/fchown-stub.c, since
103279         gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
103281 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
103283         * lib/fchown-stub.c: New file.
103285 2004-06-24  Jim Meyering  <jim@meyering.net>
103287         * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
103289 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
103291         * modules/argz: Omit "#include".
103293         * MODULES.html.sh (func_all_modules): Add calloc, to match
103294         2004-06-01 addition of calloc module.
103296 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
103298         * m4/argz.m4: New file, which is autoupdated from libtool.
103300 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
103302         * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
103303         libtool.
103305 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
103307         * config/srclist-update: Don't insist on "USA." before the
103308         close-comment, as libtool omits the period and puts the */ on a
103309         separate line.
103310         * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
103311         * config/srclistvars.sh: Add LIBTOOL (for eggert only).
103313 2004-06-22  Gary V. Vaughan  <gary@gnu.org>
103315         * modules/argz: New file.
103316         * MODULES.html.sh (func_all_modules): Add argz.
103318 2004-06-12  Jim Meyering  <jim@meyering.net>
103319         and  Paul Eggert  <eggert@cs.ucla.edu>
103321         * modules/hash (Files): Add lib/xalloc.h.
103322         * modules/pipe (Depends-on): Add wait-process.
103323         * modules/stat (Depends-on): Add xalloc.
103324         * modules/userspec (Files): Add lib/userspec.h.
103325         * modules/xstrto
103327         Upgrade from gettext-0.13.
103328         * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
103329         m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
103330         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
103332 2004-06-10  Jim Meyering  <jim@meyering.net>
103334         * lib/calloc.c: New file.
103336 2004-06-06  Paul Eggert  <eggert@cs.ucla.edu>
103338         * lib/getdate.y (yylex): Allow space between sign and number.
103339         Problem reported by Dan Jacobson.
103341 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
103343         Merge from coreutils CVS.
103345         * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
103346         makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
103347         putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
103348         strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
103349         xstrtol.m4: Fix copyright date and/or serial number.
103351         * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
103352         See if we need an fchown replacement.
103353         (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
103354         (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
103355         and use the replacement function if we detect either defect.
103357         * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
103358         gl_UTIMECMP.
103360 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
103361         and  Jim Meyering  <jim@meyering.net>
103363         Merge from coreutils CVS.
103365         * lib/stat-macros.h: New file, with contents from file-type.h
103366         and coreutils' system.h.
103367         * lib/file-type.c: Include "stat-macros.h".
103368         * lib/file-type.h (file_type): Move all macro definitions to new file,
103369         stat-macros.h.
103371         * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
103372         Wrap old code with this conditional.
103373         [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
103374         function that does not dereference symlinks.
103375         * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
103377         * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
103378         dependency problems.
103379         (xreadlink): Accept new arg SIZE, for efficiency.
103380         All decls and uses changed.
103381         * lib/xreadlink.h: Include <stddef.h>, for size_t.
103383         * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
103384         gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
103386         * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
103387         sysexits.h.
103389 2004-06-01  Jim Meyering  <jim@meyering.net>
103391         * m4/calloc.m4: New file.
103393 2004-05-31  Paul Eggert  <eggert@cs.ucla.edu>
103395         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
103396         C B3910B A.05.55 [Dec 04 2003].  Problem reported by Jim Meyering.
103397         Also, fix a typo in a diagnostic.
103399 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
103401         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
103402         or AC_FUNC_REALLOC.
103404 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
103406         * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
103407         macros to be defined.
103408         (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
103409         the allocator returns NULL because the requested size is zero.
103411 2004-05-20  Paul Eggert  <eggert@cs.ucla.edu>
103413         * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
103414         var.  Add comment explaining why libc still defines it.  This
103415         merges the following patch from glibc:
103416         http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
103418 2004-05-20  Andreas Schwab  <schwab@suse.de>
103420         * m4/free.m4: Replace free if it not known to work, not the other
103421         way round.
103423 2004-05-19  Paul Eggert  <eggert@cs.ucla.edu>
103425         * lib/obstack.c (_obstack): Remove unused variable.  It hasn't been
103426         present in glibc since revision 1.1 of this file.
103427         * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
103428         obstack_alignment_mask, obstack_alloc, obstack_base,
103429         obstack_blank, obstack_blank_fast, obstack_chunk_size,
103430         obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
103431         obstack_grow0, obstack_init, obstack_int_grow,
103432         obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
103433         obstack_next_free, obstack_object_size, obstack_ptr_grow,
103434         obstack_ptr_grow_fast, obstack_room): Remove declarations of
103435         nonexistent functions.
103437 2004-05-18  Karl Berry  <karl@gnu.org>
103439         * config/srclist.txt: break link for vasnprintf.c.
103441 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
103443         Port obstack to the AS/400, where pointers are 16 bytes wide and
103444         you cannot cast an integer to a valid pointer.  This patch is
103445         currently waiting to be integrated into glibc; see
103446         <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
103448         * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
103449         All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
103450         (__BPTR_ALIGN, __PTR_ALIGN): New macros.
103451         (struct obstack): temp member is now a union of a pointer and
103452         an integer, instead of an integer.  All integer uses changed.
103453         This does not affect the physical layout of struct obstack,
103454         except on hosts (like the AS/400) where the size or alignment of
103455         void * is greater than that of ptrdiff_t.
103456         (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
103457         __STDC__)]: Store temporary in pointer member of union, not
103458         integer member.
103459         * lib/obstack.c: Include <stddef.h>, for offsetof.
103460         (struct fooalign): Remove; it doesn't need a name.
103461         (union fooround): Change double to long double, and add void *.
103462         (DEFAULT_ALIGNMENT): Use offsetof to compute.
103463         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
103464         not a macro.  Hence the values are always int; so remove all
103465         casts-to-int in uses.
103467 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
103469         * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
103470         we can get this patch merged into glibc.
103472 2004-05-17  Derek R. Price  <derek@ximbiot.com>
103473             Paul Eggert  <eggert@cs.ucla.edu>
103475         * m4/argp: Depend on alloca.
103477 2004-05-17  Derek R. Price  <derek@ximbiot.com>
103478             Paul Eggert  <eggert@cs.ucla.edu>
103480         * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
103481         freecoding.
103483 2004-05-17  Bruno Haible  <bruno@clisp.org>
103485         * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
103486         precision that consists of a '.' followed by an empty digit string.
103487         Patch by Tor Lillqvist <tml@iki.fi>.
103489 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
103491         * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
103492         for backward compatibility with older code.  We need our own
103493         alloca.h if _AIX is defined.  Define HAVE_ALLOCA if we discover
103494         it under some other name, and our alloca.h will define it.
103496 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
103497             Derek Price  <derek@ximbiot.com>
103499         * lib/alloca.c: Include <alloca.h>, to get our interface.
103500         * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
103501         include <alloca.h> first.  Use C89 prototype for alloca; this
103502         requires including <stddef.h> for size_t.  Use extern "C" if C++.
103503         Use #elif for simplicity, since we can assume C89 now.
103504         Don't try to source the system alloca.h since it will not be found
103505         and to prevent recursively including its replacement.
103506         * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
103507         * lib/regex.c: Likewise.
103509 2004-05-16  Derek Price  <derek@ximbiot.com>
103510             Paul Eggert  <eggert@cs.ucla.edu>
103512         getline cleanup.  This changes the getndelim2 API: both order of
103513         arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
103514         no delimiter).
103516         * lib/getline.c: Don't include stddef.h or stdio.h, since our
103517         interface does that.
103518         (getline): Always use getdelim, so that we don't have two
103519         copies of this code.
103520         * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
103521         if available.
103522         (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
103523         (GETNDELIM2_MAXIMUM): New macro.
103524         (getndelim2): Reorder arguments.  delim==EOF now means no delimiter,
103525         instead of the old practice of delim2==0.  All callers changed.
103526         Return -1 on overflow, instead of returning junk.
103527         Do not set *linesize unless allocation succeeds.
103528         * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
103529         that we include sys/types.h.
103530         * lib/getnline.h: Likewise.
103531         * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
103532         (getndelim2): Reorder arguments.
103533         * lib/getnline.c (getnline, getndelim):
103534         Don't discard the NMAX argument.
103535         (getnline): Invoke getndelim, to avoid code duplication.
103536         * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
103537         of (size_t) -1 by callers of the getnline family.
103539 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
103541         * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
103542         Check for gettimeofday.
103543         * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
103544         Check for settimeofday, stime.
103546 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
103548         * lib/nanosleep.c (suspended): Change its type from int to
103549         sig_atomic_t volatile.
103550         (first_call): Make it private to rpl_nanosleep, and have it
103551         be zero initially as that's a bit faster.
103552         (my_usleep): Round up fractional times instead of truncating them,
103553         as this is the usual meaning for 'sleep'.
103555         * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
103556         doesn't work.
103557         * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
103558         (ENOSYS): Define if not defined.
103559         (settime): Fall back on stime if it exists and settimeofday fails.
103560         But don't bother with fallbacks if a method fails with errno == EPERM.
103562 2004-05-11  Jim Meyering  <jim@meyering.net>
103564         Prior to this change, the save_cwd caller required read access to the
103565         current directory on most systems (ones with the fchdir function).
103567         * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
103568         fails, try write-only, and finally, resort to using xgetcwd.
103570 2004-05-06  Paul Eggert  <eggert@cs.ucla.edu>
103572         * lib/obstack.c, obstack.h: Import changes from libc.
103574 2004-04-28  Bruno Haible  <bruno@clisp.org>
103576         * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
103577         also implicitly appends .exe to executables.
103578         * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
103579         accepts Windows pathnames.
103580         * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
103581         Treat Cygwin like Windows, since it now accepts Windows pathnames.
103582         * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
103583         Treat Cygwin like Windows, since it now accepts Windows pathnames.
103584         Reported by Derek Robert Price <derek@ximbiot.com>.
103586 2004-04-21  Karl Berry  <karl@gnu.org>
103588         * config/srclist.txt (localcharset.c): break sync.
103590 2004-04-20  Paul Eggert  <eggert@twinsun.com>
103592         * m4/host-os.m4: Add a copyright notice.
103594 2004-04-20  Jim Meyering  <jim@meyering.net>
103596         Change UTILS_ to gl_ in AC_DEFINE'd names.
103597         Change utils_- and jm_-prefixed variables, too.
103598         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
103599         UTILS_FUNC_MKDIR_TRAILING_SLASH.
103600         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
103602         * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
103603         Don't emit trailing blanks.
103604         Also rename jm_-prefixed variables to have gl_ prefix.
103606         * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
103607         Also rename jm_-prefixed variables to have gl_ prefix.
103609         * m4/jm-macros.m4: Reflect the renamings.
103610         * m4/prereq.m4: Likewise.
103612 2004-04-20  Jim Meyering  <jim@meyering.net>
103614         * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
103615         memory.
103617 2004-04-20  Jim Meyering  <jim@meyering.net>
103618             Bruno Haible  <bruno@clisp.org>
103620         * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
103621         memory when realloc fails.
103623 2004-04-19  Jim Meyering  <jim@meyering.net>
103625         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
103626         now that readutmp.c may call `free (0)'.
103628 2004-04-19  Bruno Haible  <bruno@clisp.org>
103630         * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
103631         * m4/inttypes_h.m4: Likewise.
103632         * m4/stdint_h.m4: Likewise.
103633         * m4/intmax_t.m4: Likewise.
103634         * m4/uintmax_t.m4: Likewise.
103636 2004-04-18  Jim Meyering  <jim@meyering.net>
103638         * m4/prereq.m4: Don't forbid jm_ prefix.
103640         * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
103641         * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
103642         * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
103643         * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
103644         * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
103645         * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
103646         * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
103647         * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
103648         * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
103649         * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
103650         * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
103651         * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
103652         * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
103653         * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
103654         * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
103655         * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
103656         * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
103657         * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
103658         Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
103660 2004-04-18  Jim Meyering  <jim@meyering.net>
103662         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
103663         failure, don't leak memory and do call END_UTMP_ENT.
103665 2004-04-16  Jim Meyering  <jim@meyering.net>
103667         * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro.  It is specific to
103668         coreutils' stat program.
103669         (gl_PREREQ): Don't require jm_PREREQ_STAT.
103671 2004-04-11  Paul Eggert  <eggert@twinsun.com>
103673         * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
103674         C89.
103675         (CHAR_BIT): Remove, since we assume C89.
103676         Include <stdint.h> if available, as per current Autoconf CVS advice.
103678 2004-03-31  Jim Meyering  <jim@meyering.net>
103680         * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
103681         Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
103682         * m4/xalloc.m4: Likewise.
103684 2004-03-30  Paul Eggert  <eggert@twinsun.com>
103686         Merge from coreutils.
103688         * m4/inttostr.m4: New file.
103689         * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
103690         Require AM_STDBOOL_H and gl_TIMESPEC instead.
103691         Require gl_CLOCK_TIME.
103692         * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
103694 2004-03-30  Paul Eggert  <eggert@twinsun.com>
103696         * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
103697         not bool, to be more consistent with Unix conventions.
103698         Suggested by Bruno Haible.
103700         Merge from coreutils.
103702         * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
103703         * lib/umaxtostr.c: New files.
103705         * lib/getdate.h: Include stdbool.h, and timespec.h instead of
103706         the usual <time.h> dance.
103707         (get_date): Change signature to support fractional time stamps.
103708         All callers changed.
103709         * lib/getdate.y: Include "getdate.h" first, as we can now
103710         assume C89 and don't need to worry about 'const'.
103711         Similarly, include "unlocked-io.h" near start, not in middle.
103712         Include <limits.h>.
103713         (textint.value): Use long int rather than int.
103714         (textint.digits): Use size_t rather than int.
103715         (BILLION, LOG10_BILLION): New constants.
103716         (parser_control): New member rel_ns.  Members day_ordinal,
103717         time_zone, month, day, hour, minutes, rel_year, rel_month,
103718         rel_day, rel_hour, rel_minutes, rel_seconds
103719         are now long int, not int.  Member seconds is now struct timespec,
103720         not int.  New member timespec_seen.  Members dates_seen, days_seen,
103721         local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
103722         not int.
103723         (%union.intval): Now long int, not int.
103724         New member timespec.
103725         (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
103726         (seconds, signed_seconds, unsigned_seconds): New nonterminals.
103727         (spec): Now is a timespec or an item list.
103728         (timespec, items): New nonterminals.
103729         (time, rel, relunit, number, get_date):
103730         Add support for fractional seconds.
103731         (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
103732         (gmtime, localtime, mktime): Remove decls; not needed with C89.
103733         (to_hour): First arg is now long int, not int.
103734         (to_year): Returns long int, not int.
103735         Don't treat year -70 like 70.
103736         (tm_diff): Returns long int, not int.
103737         (lookup_word): Use bool instead of int when appropriate.
103738         (yylex): Use size_t for count, not int.
103739         Detect overflow when parsing large integer constants.
103740         Add support for fractions.
103741         (get_date): Make pointers 'const' if possible.
103742         Use more-portable code to detect integer overflow.
103743         (main) [TEST]: Adjust to above changes.  Test for localtime failure.
103744         Don't use ctime; it's not reliable if the year has >4 digits.
103746         * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
103747         This is for compatibility with BSD.
103749         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
103750         (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
103751         From coreutils' system.h.
103753         * lib/userspec.c: Don't include "posixver.h".
103754         (parse_user_spec): Fall back on USER.GROUP parsing, regardless
103755         of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
103756         compatible extension.  Simplify code by removing a boolean int
103757         that was always nonzero if a string was nonnull.
103759 2004-03-30  Jim Meyering  <jim@meyering.net>
103761         Merge from coreutils.
103763         Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
103764         * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
103765         on some systems one must include <grp.h> before it.
103766         Reported by Christian Krackowizer.
103768 2004-03-30  Jim Meyering  <jim@meyering.net>
103770         Merge from coreutils.
103772         * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
103774         * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
103775         an empty input stream.
103777         * lib/readtokens.c: Include <stdbool.h>.
103778         (readtoken): Use `size_t' rather than int/long.
103779         All callers adjusted.
103780         Use `bool' rather than `int' where appropriate.
103781         Use memset rather than an explicit loop.
103782         Use x2nrealloc rather than xrealloc.
103783         Allow the use of `\0' as a delimiter.
103784         (readtokens): Likewise.
103785         * lib/readtokens.h (readtoken, readtokens): Update prototypes.
103787 2004-03-30  Jim Meyering  <jim@meyering.net>
103789         * m4/realloc.m4: Remove file, since now it does no more than
103790         AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
103791         the `configure.ac' section of module/realloc.
103792         * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
103794 2004-03-30  Bruno Haible  <bruno@clisp.org>
103796         * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
103797         nonnull.
103799 2004-03-29  Paul Eggert  <eggert@twinsun.com>
103801         Merge changes to getloadavg.c from coreutils and Emacs.
103803         * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
103804         Define to an expression, not to the empty string.
103805         Include cloexec.h and xalloc.h.
103806         (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
103807         Use set_cloexec_flag rather than rolling our own.
103808         * lib/cloexec.c, lib/cloexec.h: New files.
103810 2004-03-29  Paul Eggert  <eggert@twinsun.com>
103812         * m4/cloexec.m4: New file.
103814 2004-03-18  Paul Eggert  <eggert@twinsun.com>
103816         * lib/getopt.h: Sync with libc CVS.
103818 2004-03-18  Paul Eggert  <eggert@twinsun.com>
103819             Bruno Haible  <bruno@clisp.org>
103821         * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
103822         mbswidth.
103824 2004-03-18  Paul Eggert  <eggert@twinsun.com>
103825             Bruno Haible  <bruno@clisp.org>
103827         * lib/mbswidth.h: Include <wchar.h> only if
103828         HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
103829         <wchar.h>.
103830         * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
103832 2004-03-09  Paul Eggert  <eggert@twinsun.com>
103834         * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
103835         Sync with libc CVS.
103836         * lib/getopt_int.h: New file, also synced from libc.
103838 2004-03-09  Paul Eggert  <eggert@twinsun.com>
103840         * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
103841         * config/srclist.txt: Sync getopt with libc.  Add getopt_int.h.
103842         Bring back getopt.c, getopt.h, getopt1.c.
103844 2004-03-07  Paul Eggert  <eggert@twinsun.com>
103846         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
103847         All uses changed.  Check for sa_sigaction member; this fixes
103848         a bug first reported by Jason Andrade in
103849         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
103851 2004-03-07  Paul Eggert  <eggert@twinsun.com>
103853         * lib/c-stack.c (SIGACTION_WORKS): New macro.  Use it instead of long
103854         '#if' expressions.  Unlike the code it replaces, it does not
103855         depend on (defined _SC_PAGESIZE).  However, it does depend on
103856         HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
103857         first reported by Jason Andrade in
103858         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
103860 2004-02-25  Simon Josefsson  <jas@extundo.com>
103862         * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
103864 2004-02-25  Simon Josefsson  <jas@extundo.com>
103866         * lib/strdup.h: New file.
103867         * lib/strdup.c: Include it.
103868         * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
103869         * lib/userspec.c: Include strdup.h. Drop strdup declaration.
103871 2004-02-23  Karl Berry  <karl@gnu.org>
103873         * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
103874         (from fencepost.gnu.org:/gd/gnuorg).
103876 2004-02-23  Karl Berry  <karl@gnu.org>
103878         * config/srclistvars.sh (GNUORG) [karl]: redefine.
103879         * config/srclist.txt: add maintain/standards documents.
103881 2004-02-18  Bruno Haible  <bruno@clisp.org>
103883         * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
103884         Reported by Derek Robert Price <derek@ximbiot.com>.
103886 2004-02-16  Karl Berry  <karl@gnu.org>
103888         * config/mkinstalldirs, install-sh: update from automake.
103890 2004-02-06  Karl Berry  <karl@gnu.org>
103892         * m4/po.m4: update from gettext 0.14.1.
103894 2004-02-06  Karl Berry  <karl@gnu.org>
103896         * lib/config.charset: update from gettext 0.14.1.
103898 2004-02-05  Paul Eggert  <eggert@twinsun.com>
103900         Add comments and code, prompted by suggestions from Bruno Haible
103901         for sh-quote.
103902         * lib/quotearg.h (quotearg_alloc): New decl.  Improve the comments
103903         describing the enum quoting_style values.
103904         * lib/quotearg.c (quotearg_alloc): New function.
103905         (quotearg_buffer_restyled): Treat lone { and } as special.
103906         Treat = as special.  Work around bug with older shells
103907         that "see" a '\' that is really the 2nd byte of a multibyte char.
103908         Quote empty string with shell_quoting_style.
103910 2004-02-03  Bruno Haible  <bruno@clisp.org>
103912         * m4/pipe.m4: New file, from GNU gettext.
103914 2004-02-03  Bruno Haible  <bruno@clisp.org>
103916         * lib/pipe.h: New file, from GNU gettext.
103917         * lib/pipe.c: New file, from GNU gettext.
103919 2004-01-27  Bruno Haible  <bruno@clisp.org>
103921         * m4/execute.m4: New file, from GNU gettext.
103923 2004-01-27  Bruno Haible  <bruno@clisp.org>
103925         * lib/execute.h: New file, from GNU gettext.
103926         * lib/execute.c: New file, from GNU gettext.
103927         * lib/w32spawn.h: New file, from GNU gettext.
103929 2004-01-24  Paul Eggert  <eggert@twinsun.com>
103931         Merge from diffutils.
103933         * lib/file-type.c (file_type): Add typed memory objects.
103934         * lib/file-type.h (S_TYPEISTMO): New macro.
103936         * lib/c-stack.h (c_stack_action): Remove argv argument.
103937         * lib/c-stack.c (c_stack_action): Likewise.  All uses changed.
103938         (die): Don't calculate message unless segv_action returns.
103939         (get_stack_location, min_address_from_argv, max_address_from_argv,
103940         volatile stack_base, volatile_stack_size): Remove.
103941         (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
103942         that every segmentation violation is a stack overflow.  (Ouch!)
103943         See Debian bug 136249 (still outstanding) for more info about why
103944         HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
103946 2004-01-24  Paul Eggert  <eggert@twinsun.com>
103948         Exit-status fix from coreutils.
103950         Use exit_failure consistently in place of EXIT_FAILURE,
103951         so that program exit statuses are consistent on failure.
103953         * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
103954         Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
103955         * lib/argmatch.h: Comment fix to match the above.
103956         * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
103957         Now a macro referring to exit_failure, instead of a separate
103958         variable.  Include "exitfail.h" to get it.
103959         * lib/xstrtol.h: Include "exitfail.h".
103960         (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
103962         * lib/long-options.c (parse_long_options): Use prototype
103963         for usage function arg.  Pass it EXIT_SUCCESS rather than 0,
103964         for clarity.
103966 2004-01-21  Jim Meyering  <jim@meyering.net>
103968         * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
103969         so as not to conflict with a different-sized __mktime_internal
103970         function in GNU libc.
103971         * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
103972         Problem building statically-linked `ls' reported by Michael Brunnbauer.
103974 2004-01-20  Karl Berry  <karl@gnu.org>
103976         * config/config.guess: update from config.
103978         * config/srclistvars.sh: GNUWWWLICENSES for karl.
103980 2004-01-20  Bruno Haible  <bruno@clisp.org>
103982         Safer stack allocation.
103983         * lib/setenv.c: Include allocsa.h.
103984         (alloca): Remove fallback definition.
103985         (freea): Remove macro.
103986         (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
103987         instead of freea.
103989 2004-01-20  Bruno Haible  <bruno@clisp.org>
103991         * m4/eealloc.m4: New file, from GNU gettext.
103993 2004-01-20  Bruno Haible  <bruno@clisp.org>
103995         * m4/allocsa.m4: New file, from GNU gettext.
103997 2004-01-20  Bruno Haible  <bruno@clisp.org>
103999         * lib/xallocsa.h: New file, from GNU gettext.
104000         * lib/xallocsa.c: New file, from GNU gettext.
104002 2004-01-20  Bruno Haible  <bruno@clisp.org>
104004         * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
104006 2004-01-20  Bruno Haible  <bruno@clisp.org>
104008         * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
104009         * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
104010         specially.
104012 2004-01-20  Bruno Haible  <bruno@clisp.org>
104014         * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
104015         patch.
104017 2004-01-20  Bruno Haible  <bruno@clisp.org>
104019         * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
104021 2004-01-20  Bruno Haible  <bruno@clisp.org>
104023         * lib/eealloc.h: New file.
104025 2004-01-20  Bruno Haible  <bruno@clisp.org>
104027         * lib/binary-io.h: Avoid warnings on Cygwin.
104029 2004-01-20  Bruno Haible  <bruno@clisp.org>
104031         * lib/allocsa.h: New file, from GNU gettext.
104032         * lib/allocsa.c: New file, from GNU gettext.
104034 2004-01-18  Karl Berry  <karl@gnu.org>
104036         * doc/gpl.texi, doc/lgpl.texi: new files.
104038 2004-01-18  Karl Berry  <karl@gnu.org>
104040         * config/srclistvars.sh (GNUWWWLICENSES): new variable.
104041         * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
104043 2004-01-15  Paul Eggert  <eggert@twinsun.com>
104045         Merge from coreutils.
104047         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
104048         * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
104049         (gl_DEFAULT_POSIX2_VERSION): Move
104050         the documentation from 'configure' into 'config.hin',
104051         so that 'configure --help' isn't burdened by it and
104052         we don't have to worry about its formatting there.
104053         Reword the documentation so that it's more succinct
104054         and can be run together into a single paragraph.
104055         * m4/same.m4 (gl_SAME): Check for pathconf.
104057 2004-01-15  Paul Eggert  <eggert@twinsun.com>
104059         Merge from coreutils.
104061         * lib/posixver.c: Include posixver.h.
104063         * lib/same.c: Include <stdbool.h>, <limits.h>.
104064         (_POSIX_NAME_MAX): Define if not defined.
104065         (MIN): New macro.
104066         (same_name): If file names are silently truncated, report
104067         that the file names are the same if they are the same after
104068         the silent truncation.
104070         * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
104071         conversion function.
104072         * lib/xstrtod.c (xstrtod): Likewise.  All callers changed to
104073         include c-strtod.h and use c_strtod.  Don't include stdlib.h; no
104074         longer needed.
104076 2004-01-15  Jim Meyering  <jim@meyering.net>
104078         Merge from coreutils.
104080         * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
104081         if no library is required.
104082         * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
104083         * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
104084         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
104085         (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
104086         * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
104087         * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
104088         value, $ac_cv_search_crypt, if it's "none required".
104089         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
104090         * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
104091         not gl_FUNC_GETLOADAVG.
104092         * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
104093         gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
104095 2004-01-15  Jim Meyering  <jim@meyering.net>
104097         Merge from coreutils.
104099         * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code.  These
104100         days, gcc-3.x does better all by itself.  Patch from Dean Gaudet:
104101         http://mail.gnu.org/archive/html/bug-coreutils/2003-11/msg00144.html
104103         * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
104104         optional configure-time default.
104106         * lib/version-etc.c (version_etc_copyright): Update copyright date.
104108         * lib/xreadlink.c (xreadlink): Correct outdated comment.
104110 2004-01-15  Alexandre Duret-Lutz  <adl@gnu.org>
104112         Merge from coreutils.
104114         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
104115         value, $ac_cv_search_nanosleep, if it's "none required".
104117 2004-01-14  Paul Eggert  <eggert@twinsun.com>
104119         * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
104120         with like-named macro in fnmatch.c.
104121         (EXT): Use an internal constant instead.
104123         Merge fnmatch patches from glibc.
104124         * lib/fnmatch.c (mbsinit): Remove define.
104125         Add libc_hidden_ver (__fnmatch, fnmatch).
104126         * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
104127         Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
104129 2004-01-14  Karl Berry  <karl@gnu.org>
104131         * config/install-sh: update from automake.
104133 2004-01-13  Karl Berry  <karl@gnu.org>
104135         * config/install-sh: update from automake.
104137 2004-01-09  Karl Berry  <karl@gnu.org>
104139         * config/install-sh: update from automake.
104141 2004-01-05  Karl Berry  <karl@gnu.org>
104143         * config/config.{sub,guess}: update from config.
104145 2003-12-31  Karl Berry  <karl@gnu.org>
104147         * config/depcomp: update from automake.
104149 2003-12-14  Karl Berry  <karl@gnu.org>
104151         * lib/config.charset: update from gettext-runtime.
104153 2003-12-03  Paul Eggert  <eggert@twinsun.com>
104155         * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
104156         Bug reported by Alfred M. Szmidt.
104158 2003-12-03  Bruno Haible  <bruno@clisp.org>
104160         * m4/gettext.m4: Upgrade from gettext-0.13.
104161         * m4/po.m4: Upgrade from gettext-0.13.
104162         * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
104163         * m4/intmax.m4: New file, from gettext-0.13.
104164         * m4/printf-posix.m4: New file, from gettext-0.13.
104166 2003-11-29  Karl Berry  <karl@gnu.org>
104168         * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
104170 2003-11-25  Paul Eggert  <eggert@twinsun.com>
104171             Bruno Haible  <bruno@clisp.org>
104173         * lib/printf-parse.h: Don't include sys/types.h.
104174         (ARG_NONE): New macro.
104175         (char_directive): Change type of *arg_index fields to size_t.
104176         * lib/printf-parse.c: Don't include sys/types.h.
104177         (SSIZE_MAX): Remove macro.
104178         (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
104179         Remove unnecessary overflow check.
104180         * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
104181         fields.
104183 2003-11-25  Bruno Haible  <bruno@clisp.org>
104185         * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
104187 2003-11-25  Bruno Haible  <bruno@clisp.org>
104189         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
104190         gt_TYPE_SSIZE_T.
104192 2003-11-24  Paul Eggert  <eggert@twinsun.com>
104194         * modules/alloca: Remove dependency on xalloc.
104196 2003-11-24  Paul Eggert  <eggert@twinsun.com>
104198         * lib/alloca.c: Remove dependency on xalloc module.
104199         (xalloc_die): Remove.
104200         (memory_full) [!defined emacs]: New macro.
104201         [!defined emacs]: Don't include xalloc.h.
104202         (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
104203         address arithmetic overflows.  Change datatypes a bit to avoid
104204         unnecessary casts.
104206 2003-11-22  Jim Meyering  <jim@meyering.net>
104208         * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
104209         s/size/size_t/.
104211 2003-11-21  Karl Berry  <karl@gnu.org>
104213         * config/config.{sub,guess}: update from config.
104215 2003-11-18  Karl Berry  <karl@gnu.org>
104217         * config/config.{sub,guess}: update from config.
104219         * config/(printf-{parse,args}.[ch]): sync broken, sigh.
104221 2003-11-17  Paul Eggert  <eggert@twinsun.com>
104223         * README: Mention that S+T cannot overflow if S is the size of
104224         an existing object and T is sufficiently small.
104226 2003-11-17  Jim Meyering  <jim@meyering.net>
104228         On systems without utime and without a utimes function capable of
104229         dealing with a NULL struct utimbuf* argument, this utime replacement
104230         could -- in unusual circumstances -- leak a file descriptor.
104231         * lib/utime.c: Include <unistd.h> and <errno.h>.
104232         (utime_null): Be sure to close `fd' and to preserve errno.
104233         Reported by Geoff Collyer via Arnold Robbins.
104235 2003-11-17  Bruno Haible  <bruno@clisp.org>
104237         * modules/vasnprintf (Files): Add m4/ssize_t.m4.
104238         (Depends-on): Add xsize.
104240 2003-11-17  Bruno Haible  <bruno@clisp.org>
104242         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
104244 2003-11-17  Bruno Haible  <bruno@clisp.org>
104246         * lib/vasnprintf.c (alloca): Remove fallback definition.
104247         (freea): Remove definition.
104248         (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
104249         Reported by Paul Eggert.
104251 2003-11-16  Paul Eggert  <eggert@twinsun.com>
104252             Bruno Haible  <bruno@clisp.org>
104254         Protect against address arithmetic overflow.
104255         * lib/printf-args.h: Include stddef.h.
104256         (arguments): Change type of field 'count' to size_t.
104257         * lib/printf-args.c (printf_fetchargs): Use size_t instead of
104258         'unsigned int' where appropriate.
104259         * lib/printf-parse.h: Include sys/types.h.
104260         (char_directive): Change type of *arg_index fields to ssize_t.
104261         (char_directives): Change type of fields 'count', max_*_length to
104262         size_t.
104263         * lib/printf-parse.c: Include sys/types.h and xsize.h.
104264         (SSIZE_MAX): Define fallback value.
104265         (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
104266         instead of 'int' where appropriate. Check a_allocated, d_allocated
104267         against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
104268         * lib/vasnprintf.c: Include xsize.h.
104269         (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
104270         Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
104271         overflow. Avoid wraparound when converting a width or precision from
104272         decimal to binary.
104274 2003-11-16  Bruno Haible  <bruno@clisp.org>
104276         Update from GNU gettext.
104277         * lib/printf-parse.c: Generalize to it can be compiled for wide
104278         strings.
104279         (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
104280         * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
104281         (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
104282         SNPRINTF): New macros.
104283         Don't include <alloca.h> if the file is used inside libintl.
104284         (local_wcslen): New function, for Solaris 2.5.1.
104285         (VASNPRINTF): Use it instead of wcslen.
104287 2003-11-16  Bruno Haible  <bruno@clisp.org>
104289         * lib/xsize.h (xmax): New function.
104290         (xsum, xsum3, xsum4): Declare as "pure" functions.
104292 2003-11-12  Paul Eggert  <eggert@twinsun.com>
104294         * modules/xalloc (Files): Undo latest change, since xalloc.h
104295         no longer needs SIZE_MAX or PTRDIFF_MAX.
104297 2003-11-12  Paul Eggert  <eggert@twinsun.com>
104299         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
104300         gl_PTRDIFF_MAX.
104302 2003-11-12  Paul Eggert  <eggert@twinsun.com>
104304         * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
104305         "return", to pacify some unknown compiler.  Problem reported
104306         by Joerg Schilling.
104308 2003-11-12  Paul Eggert  <eggert@twinsun.com>
104310         * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
104311         (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
104312         the heuristic, rather than PTRDIFF_MAX and SIZE_MAX.  This
104313         heuristic is just as accurate as far as we know, and it removes a
104314         dependency on size_max.m4 and ptrdiff_max.m4.
104316 2003-11-11  Bruno Haible  <bruno@clisp.org>
104318         * modules/xsize (Files): Add m4/size_max.m4.
104319         * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
104321 2003-11-11  Bruno Haible  <bruno@clisp.org>
104323         * m4/size_max.m4: New file.
104324         * m4/ptrdiff_max.m4: New file.
104325         * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
104326         * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
104327         (gl_XALLOC): Invoke it.
104329 2003-11-11  Bruno Haible  <bruno@clisp.org>
104331         * lib/xsize.h (SIZE_MAX): Remove fallback definition.
104332         * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
104333         defined.
104335 2003-11-10  Paul Eggert  <eggert@twinsun.com>
104337         * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
104338         PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
104339         rejected some allocations of exactly SIZE_MAX - 2 bytes.
104340         From Bruno Haible.
104341         [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
104342         not (size_t) -1, since it's defined here.
104344 2003-11-09  Karl Berry  <karl@gnu.org>
104346         * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
104348 2003-11-06  Paul Eggert  <eggert@twinsun.com>
104350         * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
104351         (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
104352         Reject sizes of exactly SIZE_MAX bytes.
104353         * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
104354         is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
104356 2003-11-05  Bruno Haible  <bruno@clisp.org>
104358         * lib/xsize.h: Include limits.h, to avoid a possible collision with
104359         SIZE_MAX defined in <limits.h> on Solaris.
104361 2003-11-04  Jim Meyering  <jim@meyering.net>
104363         * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
104364         variable names, rather than @VAR@.
104365         * modules/poll: Likewise.
104367 2003-11-04  Bruno Haible  <bruno@clisp.org>
104369         * modules/xsize: New file.
104370         * modules/linebreak: Depend on xsize.
104371         * MODULES.html.sh (func_all_modules): Add xsize.
104373 2003-11-04  Bruno Haible  <bruno@clisp.org>
104375         * m4/xsize.m4: New file.
104377 2003-11-04  Bruno Haible  <bruno@clisp.org>
104379         * lib/xsize.h: New file.
104380         * lib/linebreak.c: Include xsize.h.
104381         (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
104382         argument for overflow.
104383         Suggested by Paul Eggert.
104385 2003-11-03  Karl Berry  <karl@gnu.org>
104387         * config/config.{guess,sub}: update from config.
104389 2003-11-03  Jim Meyering  <jim@meyering.net>
104391         * modules/userspec (lib_SOURCES): Add userspec.h.
104392         (Include): Add "userspec.h".
104393         Improve description.
104395 2003-11-03  Jim Meyering  <jim@meyering.net>
104397         * lib/userspec.c: Include "userspec.h".
104398         * lib/userspec.h: New file.
104400 2003-11-03  Bruno Haible  <bruno@clisp.org>
104402         * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
104404 2003-11-03  Bruno Haible  <bruno@clisp.org>
104406         * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
104407         available, to avoid (extremely rare) race condition.
104408         Suggested by Paul Eggert.
104410 2003-11-02  Karl Berry  <karl@gnu.org>
104412         * config/srclist.txt (vasprintf.c): sync broken, sigh.
104414 2003-10-31  Paul Eggert  <eggert@twinsun.com>
104416         * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
104417         * lib/mountlist.c (SIZE_MAX): Define if not defined already.
104418         (read_filesystem_list): Set and use me_type_malloced.
104419         Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
104420         whatever the type happens to be), for brevity and consistency.
104421         Check for size calculation overflow on Alphas running OSF/1.
104423 2003-10-31  Jim Meyering  <jim@meyering.net>
104425         * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
104427         * lib/linebuffer.c: Include <string.h> for declaration of memset.
104429 2003-10-30  Paul Eggert  <eggert@twinsun.com>
104430             Bruno Haible  <bruno@clisp.org>
104432         * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
104433         (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
104435 2003-10-30  Paul Eggert  <eggert@cs.ucla.edu>
104437         * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
104438         netbsd*-gnu*.  Suggested by Robert Millan.
104440 2003-10-29  Paul Eggert  <eggert@twinsun.com>
104442         * modules/group-member: Depend on stdbool.
104444 2003-10-29  Paul Eggert  <eggert@twinsun.com>
104446         * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
104448 2003-10-29  Paul Eggert  <eggert@twinsun.com>
104450         * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu.  Add comments
104451         to it, and to knetbsd*-gnu and kfreebsd*-gnu.  Remove the '*' from
104452         after the 'gnu' in these cases.  This fixes some bugs in the
104453         previous change, and is based on suggestions by Robert Millan.
104455 2003-10-29  Paul Eggert  <eggert@twinsun.com>
104457         * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
104458         so that it works even if SIZE_MAX < N.  Do not include <stdbool.h>;
104459         no longer needed.
104460         * lib/quotearg.c (quotearg_n_options): Use it.
104461         * lib/group-member.c: Include <stdbool.h>.
104462         (free_group_info): Arg is now const *; don't free arg.
104463         (get_group_info): Now returns bool and accepts struct group_info *,
104464         rather than returning a malloc'ed struct group_info *.
104465         All uses changed.  Check for overflow in internal size calculation.
104467         * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
104468         rather than xmalloc/xrealloc.
104469         * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
104470         using x2realloc rather than xmalloc/xrealloc.  Also, fix a C
104471         conformance bug: the old code used a pointer after freeing the
104472         storage that it addressed.
104473         * lib/hash.c (hash_initialize): Simplify the code by using
104474         xalloc_oversized rather than doing it by hand.
104475         * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
104476         the buffer preserved.  Use free and xmalloc instead.
104477         * lib/quotearg.c (quotearg_n_options): Likewise.
104478         Use a simpler test for size overflow.  Don't use xalloc_oversized
104479         because unsigned int might be wider than size_t (!); this suggests
104480         that we should switch from unsigned int to size_t for slot numbers.
104482 2003-10-28  Paul Eggert  <eggert@twinsun.com>
104484         * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
104485         GNU/KNetBSD.  These implementations use glibc atop the FreeBSD and
104486         NetBSD kernels.  Requested by Richard Stallman.
104488 2003-10-27  Paul Eggert  <eggert@twinsun.com>
104490         * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
104491         to allocate the returned structure.  Do not allocate a subarray,
104492         as x2nrealloc will do that.
104493         (add_exclude): Use x2nrealloc to reallocate ex->exclude,
104494         instead of xnrealloc.
104495         (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
104497 2003-10-27  Bruno Haible  <bruno@clisp.org>
104499         * lib/stdbool_.h: Better support for BeOS.
104501 2003-10-26  Paul Eggert  <eggert@twinsun.com>
104503         * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
104504         now uses inline.
104506 2003-10-26  Paul Eggert  <eggert@twinsun.com>
104508         * lib/xalloc.h (xalloc_oversized): New static inline function, for
104509         callers that want to do their own size-overflow checking.  Include
104510         <stdbool.h>, since xalloc_oversized returns bool.
104511         * lib/xalloc.c (array_size_overflow): Remove.  All callers changed
104512         to use xalloc_oversized.
104514         Add two functions x2realloc, x2nrealloc, for programs that grow
104515         arrays dynamically by doubling their sizes.
104516         * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
104517         * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
104518         New functions.
104520         Port to C99 semantics for 'inline' of external functions.
104521         Bug reported by Bruno Haible.
104522         * lib/xmalloc.c (xnmalloc_inline): New static inline function,
104523         with the old contents of xnmalloc.
104524         (xnmalloc, xmalloc): Use it.
104525         (xnrealloc_inline): New static inline function,
104526         with the old contents of xnrealloc.
104527         (xnrealloc, xrealloc): Use it.
104529         * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
104530         that.
104532 2003-10-26  Karl Berry  <karl@gnu.org>
104534         * config/srclist.txt (COPYING.DOC): no longer available from
104535         /gd/gnuorg; don't know where the ultimate source is.
104537 2003-10-25  Paul Eggert  <eggert@twinsun.com>
104539         Fix several address-calculation bugs in the hash modules,
104540         plus some minor code cleanup.
104542         * lib/hash.h: Include <stdbool.h>, for bool.
104543         * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
104544         * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
104545         hash_get_n_entries, hash_get_max_bucket_length,
104546         hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
104547         hash_rehash): Use size_t rather than unsigned.
104548         * lib/hash.c (struct hash_table, hash_get_n_buckets,
104549         hash_get_n_buckets_used, hash_get_n_entries,
104550         hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
104551         hash_get_entries, hash_do_for_each, hash_string, is_prime,
104552         next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
104553         Likewise.
104554         (SIZE_MAX): Define if not defined.
104555         (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
104556         hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
104557         hash_print):
104558         Use const * when possible.
104559         (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
104560         (check_tuning): Fix bug: if tuning parameters were very close to
104561         0 or 1, rounding errors could have caused subscript violations.
104562         (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
104563         (hash_initialize): Add 'fail:' label
104564         to free table and return NULL, and use it to simplify code.
104565         Use calloc rather than clearing the storage ourself.
104566         (hash_initialize, hash_rehash): Check for arithmetic overflow in
104567         buffer size calculations.
104568         * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
104569         Include <stddef.h>, for size_t.
104570         * lib/hash-pjw.c (hash_pjw): Likewise.
104571         Switch to method described by Bruno Haible.
104572         Include <limits.h>, for CHAR_BIT.
104573         (SIZE_BITS): New macro.
104575 2003-10-23  Paul Eggert  <eggert@twinsun.com>
104577         * m4/getline.m4 (AM_FUNC_GETLINE):
104578         Don't include getndelim2.o twice into LIBOBJS; this breaks on some
104579         hosts.  Problem reported by Derek Robert Price in
104580         <http://mail.gnu.org/archive/html/bug-gnulib/2003-10/msg00092.html>.
104581         This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
104582         * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
104584 2003-10-21  Paul Eggert  <eggert@twinsun.com>
104586         * lib/getndelim2.c (getndelim2): When size calculation overflows,
104587         ceiling the allocation at NMAX bytes rather than silently
104588         discarding input bytes before NMAX is reached.  This makes
104589         a difference only if NMAX exceeds SIZE_MAX / 2.
104591         * lib/obstack.c: Merge from glibc.
104592         [defined _LIBC]: Include <obstack.h>, not "obstack.h".
104593         Add libc_hidden_def (_obstack_newchunk).
104594         (_obstack_free) [! defined _LIBC]: Remove.
104595         [defined _LIBC]: Make a strong alias from obstack_free, rather than
104596         a clone of the function body.
104597         (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
104598         [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
104600         * lib/obstack.h: Indenting cleanup, to make it easier to merge with
104601         glibc.
104602         (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
104603         arg to memcpy.
104605         * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
104606         (obstack_ptr_grow_fast, obstack_int_grow_fast):
104607         Don't use lvalue casts, as GCC plans to remove support for them
104608         in GCC 3.5.  Reported by Joseph S. Myers.  This bug
104609         was also present in the non-GCC version, indicating that this
104610         code had always been buggy and had never been widely used.
104611         (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
104612         Use the fast variant of each macro, rather than copying the
104613         definiens of the fast variant; that way, we'll be more likely to
104614         catch future bugs in the fast variants.
104616 2003-10-20  Bruno Haible  <bruno@clisp.org>
104618         * modules/wait-process: New file.
104619         * MODULES.html.sh (func_all_modules): Add wait-process.
104621 2003-10-20  Bruno Haible  <bruno@clisp.org>
104623         * m4/wait-process.m4: New file.
104625 2003-10-20  Bruno Haible  <bruno@clisp.org>
104627         * lib/wait-process.h: New file, from GNU gettext.
104628         * lib/wait-process.c: New file, from GNU gettext.
104630 2003-10-19  Jim Meyering  <jim@meyering.net>
104632         * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
104633         HPUX 10.20.
104635 2003-10-18  Karl Berry  <karl@gnu.org>
104637         * config/config.guess: update from config.
104639 2003-10-16  Paul Eggert  <eggert@twinsun.com>
104641         * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
104642         (getgroups): First arg is int, not size_t.
104643         Don't let 'free' mangle errno.
104645 2003-10-16  Paul Eggert  <eggert@twinsun.com>
104647         * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
104649 2003-10-16  Karl Berry  <karl@gnu.org>
104651         * config/config.{guess,sub}: update from config.
104653 2003-10-16  Jim Meyering  <jim@meyering.net>
104655         * lib/xmalloc.c: Include <string.h>, for declarations of memset and
104656         memcpy.
104658 2003-10-15  Paul Eggert  <eggert@twinsun.com>
104660         * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
104661         (SIZE_MAX): Remove.
104662         (new_exclude, add_exclude_file): Initial size no longer needs to
104663         be a power of 2.
104664         (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
104665         our own address arithmetic overflow checking.
104667         * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
104668         (fnmatch): Do not alloca more than 2000 wide characters;
104669         instead, use malloc for large buffers.
104670         Check for address arithmetic overflow, and return -1
104671         with errno set to ENOMEM in that case.
104672         * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
104673         (NEW_PATTERN): Do not alloca more than 8000 bytes;
104674         instead, return -1.  Check for address arithmetic overflow.
104676 2003-10-14  Paul Eggert  <eggert@twinsun.com>
104678         Handle invalid suffixes and overflow independently, so that
104679         callers can treat them independently as needed.  Fix some bugs in
104680         suffix handling, e.g., "100k@" was not diagnosed as an invalid
104681         suffix for a human-readable blocksize.  The major caller-visible
104682         change is the addition of a new
104683         LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
104684         that both overflow and suffix chars were found.
104686         * lib/human.c (humblock): Don't check separately for invalid suffix
104687         char; that is xstrtoumax's job (now that its bug is fixed).
104688         * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
104689         INTMAX_MAX]: New macros.
104690         * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
104691         TYPE_MAXIMUM): New macros.
104692         (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
104693         (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
104694         if overflow occurs, as it's what __strtol does and it's more useful
104695         in practice.
104696         (__xstrtol): If __strtol reports some error other than ERANGE,
104697         reflect it to the caller as LONGINT_INVALID.  If it reports
104698         ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
104699         | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
104700         * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
104701         value.
104702         (_STRTOL_ERROR): Handle it.  Abort when given unknown error codes.
104703         * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
104704         * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
104705         [defined UINTMAX_MAX]: New macros.
104707 2003-10-14  Bruno Haible  <bruno@clisp.org>
104709         * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
104711 2003-10-14  Bruno Haible  <bruno@clisp.org>
104713         * m4/sig_atomic_t: New file, from GNU gettext.
104714         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
104716 2003-10-14  Bruno Haible  <bruno@clisp.org>
104718         * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
104719         * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
104720         Also use volatile where needed.
104722 2003-10-12  Paul Eggert  <eggert@twinsun.com>
104724         * modules/xalloc: Do not depend on 'exit'.  Depend on 'stdbool'.
104725         Change maintainer from Bruno Haible to 'all'.
104727 2003-10-12  Paul Eggert  <eggert@twinsun.com>
104729         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
104731 2003-10-12  Paul Eggert  <eggert@twinsun.com>
104733         * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
104734         (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
104735         and define in terms of the other primitives.
104736         * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
104737         (SIZE_MAX): Define if not already defined.
104738         (array_size_overflow): New function.
104739         (xalloc_die): Abort instead of exiting if 'error' returns.
104740         (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
104741         (xmalloc, xrealloc): Use them.
104742         (xcalloc): Check for address arithmetic overflow.
104743         * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
104744         a bit faster than strcpy.
104746 2003-10-10  Simon Josefsson  <jas@extundo.com>
104748         * modules/argp (Depends-on): Add restrict and strcase.
104750 2003-10-10  Simon Josefsson  <jas@extundo.com>
104752         * m4/argp.m4: Add AC_C_INLINE.
104754 2003-10-08  Paul Eggert  <eggert@twinsun.com>
104756         Merge getpass from libc, plus a few fixes.
104758         * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
104759         Include <stdbool.h>.
104760         Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
104761         __fsetlocking to empty.
104762         [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
104763         do include <bits/libc-lock.h>.
104764         Do not include <fcntl.h>; not needed.
104765         [_LIBC]: Include <wchar.h>.
104766         (NOTCANCEL_MODE): New macro.
104767         (flockfile, funlockfile) [_LIBC]: New macros.
104768         (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
104769         [!_LIBC]: New macros.
104770         (call_fclose): New function.
104771         (getpass): Use it.  Save tty stream separately; this simplifies the
104772         code and makes it more reliable if stdin happens to equal stdout.
104773         Invoke __fsetlocking on tty.
104774         Handle thread cancellation if needed.
104775         Namespace cleanup (use __tcgetattr, __getline).
104776         Use bool for Booleans.
104777         [USE_IN_LIBIO]: Handle wide streams.
104778         [!_LIBC]: Unconditionally do the fseek, since we don't know what
104779         stream might go where.
104781         * lib/unlocked-io.h: Include <stdio.h>, so that the caller
104782         doesn't have to include <stdio.h> before us.
104783         (clearerr_unlocked, feof_unlocked, ferror_unlocked,
104784         fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
104785         fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
104786         putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
104787         if not declared, so that we can use getpass.c code from libc without
104788         rewriting it.
104789         (flockfile, ftrylockfile, funlockfile): New macros.
104791 2003-10-08  Paul Eggert  <eggert@twinsun.com>
104793         * modules/getpass: Depend on stdbool.
104795 2003-10-08  Paul Eggert  <eggert@twinsun.com>
104797         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
104799 2003-10-07  Karl Berry  <karl@gnu.org>
104801         * config/config.{guess,sub}: update from config.
104803 2003-10-06  Jim Meyering  <jim@meyering.net>
104804             Bruno Haible  <bruno@clisp.org>
104806         This lets translators provide better translations for the
104807         "Written by ..." part of --version output.
104808         * lib/version-etc.h: Include stdarg.h.
104809         (version_etc_copyright): Declare as readonly.
104810         (version_etc): Make this function variadic with a NULL-terminated list
104811         of author name strings.
104812         (version_etc_va): New declaration.
104813         * lib/version-etc.c: Include stdarg.h, stdlib.h.
104814         (version_etc_copyright): Declare as readonly.
104815         (version_etc_va): New function. Provide a different translatable string
104816         for each possible number of authors < 10. Abbreviate when there are 10
104817         authors or more.
104818         (version_etc): Make this function variadic. Call version_etc_va.
104819         Suggestion from Gary V. Vaughan.
104821         * lib/long-options.h (parse_long_options): Change prototype: the
104822         authors string is moved to the end and becomes variadic.
104823         * lib/long-options.c: Include stdarg.h.
104824         (parse_long_options): Make this function variadic, too.
104825         Call version_etc_va, not version_etc.
104827 2003-10-06  Bruno Haible  <bruno@clisp.org>
104829         * modules/version-etc-2: Remove file.
104830         * MODULES.html.sh (func_all_modules): Remove version-etc-2.
104832 2003-10-06  Bruno Haible  <bruno@clisp.org>
104834         * modules/fatal-signal: New file.
104835         * MODULES.html.sh (func_all_modules): Add fatal-signal.
104837 2003-10-06  Bruno Haible  <bruno@clisp.org>
104839         * m4/fatal-signal.m4: New file.
104840         * m4/signalblocking.m4: New file, from GNU gettext.
104842 2003-10-06  Bruno Haible  <bruno@clisp.org>
104844         * lib/version-etc-2.h: Remove file.
104845         * lib/version-etc-2.c: Remove file.
104847 2003-10-06  Bruno Haible  <bruno@clisp.org>
104849         * lib/fatal-signal.h: New file, from GNU gettext.
104850         * lib/fatal-signal.c: New file, from GNU gettext.
104852 2003-10-05  Paul Eggert  <eggert@twinsun.com>
104854         * README: Rework advice for preventing empty .o files.
104855         Don't recommend ELIDE constructs.  Recommend <stddef.h>,
104856         not <sys/types.h>.
104858 2003-10-04  Karl Berry  <karl@gnu.org>
104860         * lib/argp*: update from libc.
104862 2003-10-04  Karl Berry  <karl@gnu.org>
104864         * config/config.{guess,sub}: update from config.
104866 2003-10-02  Bruno Haible  <bruno@clisp.org>
104868         * modules/lchown (Include): Add lchown.h.
104869         * modules/time_r (Include): Use "..." syntax.
104870         * modules/xgetdomainname (Include): Add xgetdomainname.h.
104872 2003-10-01  Simon Josefsson  <jas@extundo.com>
104874         * MODULES.html.sh (func_all_modules): Move gethostname from section
104875         'based on' to section 'lacking' POSIX:2001.
104877 2003-10-01  Larry Jones  <lawrence.jones@eds.com>
104879         * lib/getpass.c (getpass): Use a no-op fseek when switching from input
104880         to output mode on the same stream.
104882 2003-09-29  Paul Eggert  <eggert@twinsun.com>
104884         * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
104885         Fix arg typo in previous patch.
104887 2003-09-28  Jim Meyering  <jim@meyering.net>
104889         * lib/error.c: Correct cpp indentation.
104891 2003-09-27  Paul Eggert  <eggert@twinsun.com>
104893         * modules/free: New file.
104895 2003-09-27  Paul Eggert  <eggert@twinsun.com>
104897         * m4/free.m4: New file.
104899 2003-09-27  Paul Eggert  <eggert@twinsun.com>
104901         * lib/minmax.h (MIN, MAX)
104902         [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
104903         Omit the special code that used __typeof__, since we worry that
104904         it could be more trouble than it's worth.  See:
104905         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00090.html
104906         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00095.html
104908         * lib/free.c: New file.
104910 2003-09-27  Oskar Liljeblad  <oskar@osk.mine.nu>
104912         Trivial fixes to Makefile.am parts of module listings.
104913         * modules/strstr: Append strstr.h to lib_SOURCES.
104914         * modules/strcase: Likewise, for strcase.h.
104916 2003-09-27  Karl Berry  <karl@gnu.org>
104918         * config/mkinstalldirs: update from automake.
104920 2003-09-26  Paul Eggert  <eggert@twinsun.com>
104922         * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
104923         (error_tail): Do not loop, reallocating temporary buffer, since
104924         the output cannot contain more wide characters than the input
104925         contains bytes, the size must be big enough already.  This avoids
104926         one potential size overflow calculation.  Check for size overflow
104927         when calculating temporary buffer size.  Free temporary buffer
104928         when done, if it was allocated with malloc; this plugs a memory
104929         leak.  Remove casts from void * to pointers, that are no longer
104930         needed now that we're assuming C89 or better.
104932         Merge error changes from glibc.
104934         * lib/error.c, error.h: Update copyright notice header to match glibc.
104935         * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
104936         (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
104937         Disable cancellation while printing error.
104938         * lib/error.h: Prepend __ to parameter names.
104940 2003-09-26  Jim Meyering  <jim@meyering.net>
104942         * lib/error.c (error_tail): Move some declarations
104943         into inner scope where the local variables are used.
104945 2003-09-26  Bruno Haible  <bruno@clisp.org>
104947         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
104948         stpncpy().
104949         Don't define stpncpy through config.h; it's now done through stpncpy.h.
104951 2003-09-26  Bruno Haible  <bruno@clisp.org>
104953         * lib/stpncpy.h (gnu_stpncpy): New declaration.
104954         (stpncpy): Define as alias for gnu_stpncpy.
104955         * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
104957 2003-09-25  Simon Josefsson  <jas@extundo.com>
104959         * lib/xgetdomainname.h: New file.
104960         * lib/xgetdomainname.c: New file.
104962 2003-09-25  Simon Josefsson  <jas@extundo.com>
104963             Bruno Haible  <bruno@clisp.org>
104965         * modules/getdomainname: New file.
104966         * modules/xgetdomainname: New file.
104967         * MODULES.html.sh (func_all_modules): Add getdomainname,
104968         xgetdomainname.
104970 2003-09-25  Simon Josefsson  <jas@extundo.com>
104971             Bruno Haible  <bruno@clisp.org>
104973         * m4/getdomainname.m4: New file.
104975 2003-09-25  Simon Josefsson  <jas@extundo.com>
104976             Bruno Haible  <bruno@clisp.org>
104978         * lib/getdomainname.h: New file.
104979         * lib/getdomainname.c: New file.
104981 2003-09-25  Karl Berry  <karl@gnu.org>
104983         * lib/argp-fmtstream.c, argp-help.c: update from libc.
104985 2003-09-25  Karl Berry  <karl@gnu.org>
104987         * config/install-sh: update from automake.
104989 2003-09-25  Bruno Haible  <bruno@clisp.org>
104991         * modules/version-etc-2: New file, from modules/version-etc with
104992         modifications.
104993         * MODULES.html.sh (func_all_modules): Add version-etc-2.
104995 2003-09-25  Bruno Haible  <bruno@clisp.org>
104997         * lib/version-etc-2.h: New file, from version-etc.h with modifications.
104998         * lib/version-etc-2.c: New file, from version-etc.c with modifications.
105000 2003-09-24  Simon Josefsson  <jas@extundo.com>
105002         * modules/xgethostname: Add xgethostname.h.
105004 2003-09-24  Paul Eggert  <eggert@twinsun.com>
105006         * lib/linebuffer.c (freebuffer): Don't free the argument, just
105007         the buffer associated with the argument.  Bug reported by
105008         Simon Josefsson.
105010 2003-09-24  Paul Eggert  <eggert@twinsun.com>
105012         * README: Document assumptions that 'int' is at least 32 bits
105013         wide, that integer arithmetic is 2's complement without overflow,
105014         that there are no holes in integer values, that adding sizes of
105015         two nonoverlapping objects can't overflow, and that all-bits-zero
105016         yields scalar zero.  Fix spelling and capitalization typos.
105018 2003-09-19  Karl Berry  <karl@gnu.org>
105020         * lib/argp.h: update from libc.
105022 2003-09-17  Paul Eggert  <eggert@twinsun.com>
105024         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
105025         to avoid spurious warnings like "AC_RUN_IFELSE was called before
105026         gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
105028 2003-09-17  Paul Eggert  <eggert@twinsun.com>
105030         * gnulib-tool: Use "test -h", not "test -L", for portability
105031         to Solaris 8 /bin/sh.  (This bug is fixed in Solaris 9.)
105032         (tags_regexp): Remove, since \| doesn't conform to POSIX.
105033         (sed_extract_prog): Issue s commands one-by-one, rather than
105034         using \| in one s command.
105036 2003-09-16  Paul Eggert  <eggert@twinsun.com>
105038         * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
105039         input error, instead of returning NULL the next time we are called
105040         (and therefore losing track of errno).
105042 2003-09-16  Bruno Haible  <bruno@clisp.org>
105044         * gnulib-tool (func_create_testdir): Warn about duplicated
105045         dependencies.
105047 2003-09-15  Paul Eggert  <eggert@twinsun.com>
105049         * modules/argmatch, modules/fatal, modules/obstack,
105050         modules/xalloc, modules/xgethostname: Sort dependencies by
105051         importance, not alphabetically.
105053 2003-09-15  Paul Eggert  <eggert@twinsun.com>
105055         * lib/getndelim2.c (getndelim2): Don't trash errno when a read
105056         fails, so that the caller gets the proper errno.
105058         * lib/readutmp.c (read_utmp): Likewise.
105059         Check for fstat error.  Close stream and free storage
105060         when failing.
105062 2003-09-14  Karl Berry  <karl@gnu.org>
105064         * config/srclist.txt (strdup.c): disable for c89 changes.
105066 2003-09-14  Jim Meyering  <jim@meyering.net>
105068         * lib/getloadavg.c: Correct cpp indentation.
105069         * lib/strdup.c: Likewise.
105070         * lib/vasnprintf.c: Likewise.
105072 2003-09-14  Bruno Haible  <bruno@clisp.org>
105074         * modules/fwriteerror: New file.
105075         * MODULES.html.sh (func_all_modules): Add fwriteerror.
105077 2003-09-14  Bruno Haible  <bruno@clisp.org>
105079         * lib/fwriteerror.h: New file.
105080         * lib/fwriteerror.c: New file.
105082 2003-09-12  Paul Eggert  <eggert@twinsun.com>
105084         * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
105085         modules/xgethostname, modules/xalloc: Depend on exit.
105087 2003-09-12  Paul Eggert  <eggert@twinsun.com>
105089         * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
105091         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
105092         and AC_MINIX, too, so that their extensions are available.
105094         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove.  All uses removed.
105095         This macro has been superseded by gl_BACKUPFILE.
105097         More patches to assume C89 or better.
105099         * m4/error.m4 (gl_ERROR): Don't check for vprintf.
105101         * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
105102         unconditionally.
105103         * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
105104         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
105105         Include <string.h>, <stdlib.h> unconditionally.
105106         * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
105107         * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
105108         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
105109         headers or for string.h.
105110         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
105111         or strtoul.
105113         * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
105114         headers.
105115         * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
105116         * m4/userspec.m4 (gl_USERSPEC): Likewise.
105117         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
105118         * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
105119         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
105120         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
105121         memcpy, memset.
105122         (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
105123         * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
105124         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
105125         strtol.
105126         * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
105127         * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
105128         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
105129         strtoul.
105131 2003-09-12  Paul Eggert  <eggert@twinsun.com>
105133         * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
105134         * lib/obstack.c [!defined _LIBC]: Likewise.
105135         * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
105136         * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
105137         * lib/exitfail.c: Don't include stdlib.h; no longer needed.
105139         More changes to assume C89 or better.
105141         * lib/error.c (error_tail): Assume vprintf.
105143         * lib/argmatch.c (getenv): Remove decl.
105144         * lib/progreloc.c (get_full_program_name): Define via prototype.
105145         * lib/setenv.c (clearenv): Likewise.
105146         * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
105147         needed.
105148         * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
105149         (malloc, memcpy): Remove decls.
105150         * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
105151         (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
105152         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
105153         (memcpy): Remove macro.
105154         (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
105155         (__P): Remove.  All uses removed.
105156         (PTR): Remove.  All uses changed to void *.
105157         (CHAR_BIT, NULL): Remove.
105158         (spaces, zeros, memset_space, memset_zero)
105159         [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
105160         Remove.
105161         (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
105162         (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
105163         Define with prototype.
105164         Remove now-unnecessary prototype decl.
105165         (extra_args_spec): Assume ANSI C.  All uses changed.
105166         (extra_args_spec_iso): Remove.
105167         (my_strftime, emacs_strftimeu): Define via prototype.
105168         * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
105169         unconditionally.
105170         (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
105171         * lib/strtoimax.c: Include <stdlib.h> unconditionally.
105172         (strtoul, strtol): Remove decls.
105173         * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
105174         LONG_MAX): Remove.
105175         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
105176         (LOCALE_PARAM_DECL): Remove.  All uses changed to LOCALE_PARAM_PROTO.
105177         (LOCALE_PARAM_PROTO): New macro.
105178         (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
105179         (INTERNAL (strtol), strtol): Define with a prototype.
105180         (PARAMS): Remove.  All uses removed.
105181         * lib/tempname.c: Include <string.h> unconditionally.
105182         * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
105183         * lib/xgethostname.c (main): Define with a prototype.
105184         * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
105185         Include <stdlib.h> unconditionally.
105186         (calloc, malloc, realloc, free): Remove decls.
105187         * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
105188         Include <stdlib.h> unconditionally.  Sort include file names.
105189         (strtod): Remove.
105190         (xstrtod): Define with a prototype.
105191         * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
105192         (strtol, strtoul): Remove decls.
105194 2003-09-11  Paul Eggert  <eggert@twinsun.com>
105196         More patches to assume C89 or better.
105197         * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
105198         * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
105199         string.h, memchr, STDC_HEADERS.
105201 2003-09-11  Paul Eggert  <eggert@twinsun.com>
105203         * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
105204         Include <stdlib.h>, <string.h> unconditionally.
105205         Remove now-unnecessary cast to char *.
105206         * lib/strnlen.c: Include <string.h> unconditionally.
105207         * lib/yesno.c (yesno): Define with a prototype.
105209 2003-09-11  Bruno Haible  <bruno@clisp.org>
105211         * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
105213 2003-09-10  Jim Meyering  <jim@meyering.net>
105215         * lib/error.c: Correct indentation of cpp directives.
105217 2003-09-10  Bruno Haible  <bruno@clisp.org>
105219         * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
105220         * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
105221         * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
105222         * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
105223         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
105224         <stdlib.h> and <string.h> checks.
105225         * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
105226         * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
105228 2003-09-10  Bruno Haible  <bruno@clisp.org>
105230         * lib/strcspn.c: Include <string.h> unconditionally.
105231         * lib/strpbrk.c: Include <string.h> unconditionally.
105232         * lib/strstr.c: Include <string.h> unconditionally.
105233         * lib/unicodeio.c: Include <string.h> unconditionally.
105234         * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
105235         * lib/unsetenv.c: Likewise.
105236         * lib/xreadlink.c: Include <stdlib.h> unconditionally.
105237         * lib/yesno.c: Include <stdlib.h> unconditionally.
105238         (rpmatch): Add prototype.
105240 2003-09-09  Paul Eggert  <eggert@twinsun.com>
105242         More patches to assume C89 or better.
105243         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
105244         * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
105245         * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
105246         or for string.h.
105247         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
105248         stdlib.h.
105249         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
105250         C headers.
105251         * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
105252         string.h.
105253         * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
105254         * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
105255         * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
105256         or for string.h.
105257         * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
105258         * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
105259         C headers.
105260         * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
105261         memcpy.
105262         * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
105263         * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
105264         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
105265         * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
105266         * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
105267         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
105268         string.h, free.
105269         * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
105270         * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
105271         * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
105272         C headers, or for string.h.
105273         * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
105274         (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
105275         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
105276         headers, memory.h, stdlib.h, string.h, strings.h.
105277         * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
105278         * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
105279         * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
105280         strchr.
105281         * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
105282         headers, memory.h, string.h.
105283         * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
105284         * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
105285         free.
105286         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
105287         headers.
105288         * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
105289         * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
105290         * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
105291         * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
105292         * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
105294 2003-09-09  Paul Eggert  <eggert@twinsun.com>
105296         More K&R removal.
105298         * lib/acosl.c (main): Use a prototype.
105299         * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
105300         tanl.c: Likewise.
105302         * lib/getloadavg.c (getloadavg, main): Define via prototypes.
105304         * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
105305         (getopt, etopt_long, getopt_long_only, _getopt_internal)
105306         [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
105307         with a prototype.
105308         * lib/getopt.c (const): Remove macro.
105309         Include <string.h> unconditionally.
105310         (my_index): Remove; all uses changed to strchr.
105311         (strlen): Remove decl.
105312         (exchange): Remove forward decl; no longer needed.
105313         (exchange, _getopt_initialize, _getopt_internal, getopt, main):
105314         Define with prototype.
105315         * lib/getopt1.c (const): Remove macro.
105316         (getopt_long, getopt_long_only, main): Define with prototype.
105318         * lib/getugroups.c: Include <string.h> unconditionally.
105320         * lib/getusershell.c: Include <stdlib.h> unconditionally.
105321         (getusershell, setusershell, endusershell, readname, main):
105322         Define with prototypes.
105324         * lib/group-member.c: Include group-member.h first.
105325         Include <stdlib.h> unconditionally.
105327         * lib/hard-locale.c: Include hard-locale.h first.
105328         Include <stdlib.h>, <string.h> unconditionally.
105330         * lib/hash.c (free, malloc): Remove decls.
105331         Include <stdlib.h> unconditionally.
105333         * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
105334         (getenv): Do not declare.
105336         * lib/idcache.c: Include <string.h> unconditionally.
105338         * lib/long-options.c: Include long-options.h first, to test interface.
105339         Include <stdlib.h> unconditionally.
105341         * lib/makepath.c: Include makepath.h first, to test interface.
105342         Include <stdlib.h> and <string.h> unconditionally.
105344         * lib/linebuffer.c: Include <stdlib.h>.
105345         (free): Remove decl.
105347         * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
105348         stddef.h. rpl_malloc returns void *, not char *.
105349         * lib/realloc.c (rpl_realloc): Likewise.  Also, define with a
105350         prototype.
105352         * lib/md5.h: Include <limits.h> unconditionally.
105353         (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
105354         (__P): Remove; all uses removed.
105355         * lib/md5.c: Include "md5.h" first.
105356         (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
105357         md5_buffer, md5_process_bytes, md5_process_block):
105358         Define with prototypes.
105359         * lib/sha.h (__P): Remove all uses.  (It wasn't defined??)
105360         * lib/sha.c: Include "sha.h" first.
105361         Include <stdlib.h>, <string.h> unconditionally.
105363         * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
105364         * lib/memcmp.c (__ptr_t): Likewise.
105365         * lib/memrchr.c (__ptr_t): Likewise.
105366         * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
105367         Include <string.h> unconditionally.
105368         * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
105369         * lib/memchr.c: Include <stdlib.h> unconditionally.
105370         * lib/memchr.c (LONG_MAX): Remove.
105371         * lib/memrchr.c (LONG_MAX): Likewise.
105372         * lib/memchr.c (__memchr): Define via a prototype.
105373         * lib/memrchr.c (__memrchr): Likewise.
105374         * lib/memcmp.c (__P): Remove, and remove all uses.
105375         (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
105376         Remove forward decls; no longer needed.
105377         * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
105378         Use types required by C89 in prototype.
105380         * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
105381         * lib/savedir.c: Likewise.
105382         * lib/mkdir.c (free): Remove decl.
105383         * lib/rmdir.c (rmdir): Define with a prototype.
105384         * lib/savedir.c: Include savedir.h first, to test interface.
105386         * lib/mktime.c (STDC_HEADERS): Remove.
105387         Include <stdlib.h>, <string.h> unconditionally.
105389         * lib/modechange.c: Include <stdlib.h> unconditionally.
105390         (malloc): Remove decl.
105392         * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
105393         (free): Remove decl.
105395         * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
105396         Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
105397         (This type really should be intptr_t, but that's a C99ism.)
105398         (_obstack_memcpy): Remove: all uses changed to memcpy.
105399         Include <string.h> unconditionally.
105400         (struct obstack): Assume __STDC__ for types of members
105401         chunkfun, freefun, extra_arg.
105402         (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
105403         _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
105404         obstack_begin, obstack_specify_allocation,
105405         obstack_specify_allocation_with_arg, obstack_chunkfun,
105406         obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
105407         Remove unprototyped decls and the macros that use them.
105408         * lib/obstack.c (POINTER): Remove.  All uses changed to void *.
105409         (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
105410         _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
105411         (defined __STDC__ && __STDC__)]:
105412         Remove nonprototyped code.
105413         Include <stdlib.h> unconditionally.
105414         (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
105415         _obstack_allocated_p, _obstack_free, obstack_free,
105416         _obstack_memory_used, print_and_abort):
105417         Define using prototypes.
105418         (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
105419         obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
105420         obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
105421         obstack_next_free, obstack_object_size, obstack_room) [0]:
105422         Remove unused, unprototyped code.
105424         * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
105426         * lib/physmem.c (physmem_total, physmem_available, main): Define
105427         with prototypes.
105429         * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
105430         (main): Define with a prototype.
105432         * lib/posixver.c (getenv): Remove decl.
105434         * lib/putenv.c (malloc): Returns void *, not char *.
105435         Include <string.h> unconditionally.
105436         (strchr, memcpy, NULL): Do not define.
105438         * lib/readtokens.c: Include readtokens.h first, to test interface.
105439         Include <stdlib.h>, <string.h> unconditionally.
105440         (init_tokenbuffer): Define with a prototype.
105442         * lib/regex.c (PARAMS): Remove.  All uses removed.
105443         All uses of _RE_ARGS removed, too.
105444         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
105445         unconditionally.
105446         (bzero): Assume memset exists.
105447         (memcmp, memcpy, NULL): Remove.
105448         (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
105449         char, or assignments to local vars of type signed char.
105450         (init_syntax_once, PREFIX(extract_number_and_incr),
105451         PREFIX(print_partial_compiled_pattern),
105452         PREFIX(print_compiled_pattern), PREFIX(print_double_string),
105453         convert_mbs_to_wcs, print_fastmap, re_set_syntax,
105454         PREFIX(regex_grow_registers), PREFIX(regex_compile),
105455         PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
105456         PREFIX(insert_op2), PREFIX(at_begline_loc_p),
105457         PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
105458         wcs_compile_range, byte_compile_range, truncate_wchar,
105459         PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
105460         re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
105461         count_mbs_length, wcs_re_match_2_internal,
105462         byte_re_match_2_internal, PREFIX(group_match_null_string_p),
105463         PREFIX(alt_match_null_string_p),
105464         PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
105465         re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
105466         regfree, PREFIX(extract_number)): Define with prototype.  Remove
105467         now-unnecessary declaration, if any.
105468         (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
105469         regcomp, regexec):
105470         Remove now-unnecessary casts among pointer types.
105471         * lib/regex.h (_RE_ARGS): Remove.  All uses removed.
105473         * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
105474         (free): Remove decl.
105476         * lib/rpmatch.c: Include <stdlib.h> unconditionally.
105478         * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
105479         (free): Remove decl.
105481         * lib/save-cwd.c: Include <stdlib.h> unconditionally.
105482         * lib/xgetcwd.c: Likewise.
105484         * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
105485         (free): Remove decl.
105487         * lib/strchrnul.c (strchrnul): Define with a prototype.
105488         Fix bug: c_in was not converted to char before searching.
105490         The following changes are not K&R related:
105492         * lib/group-member.h: Include <sys/types.h>, so that this file is
105493         self-contained.
105494         * lib/makepath.h: Likewise.
105496         * lib/getusershell.c (readname, default_index, line_size, readname):
105497         Use size_t, not int, for sizes.
105498         (readname): If the size overflows, report an error instead of
105499         looping forever.
105501 2003-09-09  Paul Eggert  <eggert@twinsun.com>
105503         * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
105504         libc.
105506 2003-09-09  Paul Eggert  <eggert@twinsun.com>
105508         * README: New section: portability guidelines.
105510 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
105512         * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
105513         C89 spec.
105515 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
105517         * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
105519 2003-09-08  Paul Eggert  <eggert@twinsun.com>
105521         Assume C89 or better; remove K&R cruft.
105522         A few of these changes were first proposed by Derek Robert Price
105523         in <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00105.html>.
105525         * lib/addext.c: Include <string.h> unconditionally.
105526         * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
105527         Don't declare getenv or malloc.
105529         * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
105530         (POINTER_TYPE, pointer): Remove; all uses changed to void *.
105531         (NULL): Remove.
105532         (find_stack_direction, alloca): Use prototypes.
105534         * lib/atexit.c (atexit): Define using a prototype.
105536         * lib/basename.c, dirname.c, stripslash.c:
105537         Include <string.h> unconditionally.
105539         * lib/bcopy.c: Include <stddef.h>.
105540         (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
105542         * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
105544         * lib/error.h (error, error_at_line, error_print_progname)
105545         [! (defined (__STDC__) && __STDC__)]: Remove decls.
105546         * lib/error.c: Include error.h first, to check interface.
105547         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
105548         (VA_START): Remove; all uses changeed to va_start.
105549         (exit, strerror): Remove decls.
105550         (error_print_progname): Prototype uncondionally.
105551         Don't include <errno.h>; no longer needed.
105552         (private_strerror): Remove.
105553         (error_tail): Always define.
105554         (error, error_at_line): Assume C89 or better; always use prototypes.
105555         * lib/fatal.c: Include "fatal.h" first, to test interface.
105556         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
105557         (VA_START): Remove; all uses changed to va_start.
105558         [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
105559         this case.
105560         (exit): Remove decl.
105561         (fatal): Prototype unconditionally.  Assume va_start works.
105562         Abort at end, to pacify gcc.
105564         * lib/euidaccess.c (main): Define with a prototype.
105566         * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
105568         * lib/exitfail.c: Include <stdlib.h> unconditionally.
105570         * lib/fnmatch_.h (__P): Remove.  All uses changed to assume
105571         prototypes.
105572         * lib/fnmatch.c: Include fnmatch.h first, to test interface.
105573         Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
105574         (getenv): Remove decl.
105575         (fnmatch): Define using a prototype.
105576         * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
105577         (FCT): Define using a prototype.
105579         * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
105581         * lib/gethostname.c: Include <stddef.h>.
105582         (gethostname): Define with prototype.  Length is size_t, not int.
105584 2003-09-08  Paul Eggert  <eggert@twinsun.com>
105586         Assume C89 or better; remove K&R cruft.
105587         * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
105588         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
105589         string.h, getenv, malloc.
105590         * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
105591         headers.
105592         * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
105593         * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
105594         do not check for strerror.
105595         * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
105596         * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
105597         * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
105598         do not check for doprnt or vprintf.
105599         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove.  All uses removed.
105600         * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
105602 2003-09-08  Paul Eggert  <eggert@twinsun.com>
105604         * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
105605         getversion.c should have been removed then, but was accidentally
105606         preserved.
105608         * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
105609         (utime_null): Fix typo: 'st' was sometimes called 'sb'.
105611 2003-09-08  Karl Berry  <karl@gnu.org>
105613         * config/config.sub, config.guess, srclistvars.sh: update from savannah
105614                 config, forget about prep.
105616         * config/depcomp, missing: update from automake.
105618 2003-09-07  Paul Eggert  <eggert@twinsun.com>
105620         * modules/time_r: Depend on 'restrict'.  Fix from Simon Josefsson in
105621         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
105623 2003-09-07  Paul Eggert  <eggert@twinsun.com>
105625         * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
105626         copy_tm_result.  Bug reported by Simon Josefsson in
105627         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
105629 2003-09-06  Paul Eggert  <eggert@twinsun.com>
105631         * m4/time_r.m4: New file.
105632         * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
105633         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
105634         is. Check for timegm declaration.
105635         (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
105636         Do not check for gmtime_r.
105637         Replace mktime if __mktime_internal does not exist and if mktime
105638         hasn't been replaced already.
105640 2003-09-06  Paul Eggert  <eggert@twinsun.com>
105642         * lib/time_r.c, lib/time_r.h: New files.
105644         * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
105645         __localtime_r.
105646         (__localtime_r) [!defined _LIBC]: New macro.  Include <time_r.h>.
105647         (__mktime_internal) [!defined _LIBC]: Now extern, not static.
105649         * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
105650         __gmtime_r.
105651         (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
105652         (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
105653         Include <time_r.h>.
105655         * lib/timegm.c: Switch to glibc implementation, with the following
105656         changes:
105657         [defined HAVE_CONFIG_H]: Include <config.h>.
105658         [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
105659         (__mktime_internal) [!defined _LIBC]: New decl.
105660         (__gmtime_r) [!defined _LIBC]: New macro and function.
105661         (timegm): Use a prototype, since gnulib assumes C89.
105662         Do not bother declaring tmp to be const, as it's not really usefu.
105663         * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
105664         (timegm): Declare only if HAVE_DECL_TIMEGM.
105666 2003-09-06  Paul Eggert  <eggert@twinsun.com>
105668         * MODULES.html.sh (func_all_modules): Add time_r.
105669         * modules/time_r: New file.
105670         * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
105671         * modules/timegm: Depend on mktime.  Change maintainer to "all, glibc".
105673 2003-09-03  Paul Eggert  <eggert@twinsun.com>
105675         * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
105676         Bug reported by Lute Kamstra in
105677         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00003.html>.
105679         * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
105680         "yesterday", "today", and "now" rather than tMINUTE_UNIT.  Of
105681         course with correspondingly smaller numbers for tomorrow and
105682         yesterday.  From Tadayoshi Funaba.  Originally installed into
105683         sh-utils on 1999-08-07, but the patch got lost (I guess during the
105684         coreutils merge?).
105686 2003-08-31  Simon Josefsson  <jas@extundo.com>
105688         * modules/timegm: New file.
105689         * MODULES.html.sh (func_all_modules): Add timegm.
105691 2003-08-31  Simon Josefsson  <jas@extundo.com>
105693         * m4/timegm.m4: New file.
105695 2003-08-31  Simon Josefsson  <jas@extundo.com>
105697         * lib/timegm.h: New file.
105698         * lib/timegm.c: New file.  Based on
105699         wget-1.8.2/src/http.c:mktime_from_utc.
105701 2003-08-31  Karl Berry  <karl@gnu.org>
105703         * lib/argp.h: update from libc.
105705 2003-08-28  Bruno Haible  <bruno@clisp.org>
105707         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
105708         This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
105709         followed by '#define fnmatch fnmatch_posix' gives an error.
105711 2003-08-28  Bruno Haible  <bruno@clisp.org>
105713         * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
105714         warning on QNX, which defines O_BINARY to 000000.
105716 2003-08-27  Jim Meyering  <jim@meyering.net>
105718         * m4/mkstemp.m4: Require that the system mkstemp be able to create
105719         70 temporary files, not just 30.  Tru64 V4.0F's mkstemp function
105720         would fail after 32.  Reported by Danny Levinson.  Details here:
105721         http://mail.gnu.org/archive/html/bug-coreutils/2003-08/msg00124.html
105723 2003-08-24  Bruno Haible  <bruno@clisp.org>
105725         * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
105726         MSVC7 <stdio.h> is included later.
105728 2003-08-22  Simon Josefsson  <jas@extundo.com>
105730         * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
105732 2003-08-20  Karl Berry  <karl@gnu.org>
105734         * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
105736 2003-08-20  Bruno Haible  <bruno@clisp.org>
105738         * modules/progname: New file.
105739         * MODULES.html.sh (func_all_modules): Add progname.
105741 2003-08-20  Bruno Haible  <bruno@clisp.org>
105743         * lib/progname.h: New file, from GNU gettext.
105744         * lib/progname.c: New file, from GNU gettext.
105745         * lib/progreloc.c: New file, from GNU gettext.
105747 2003-08-19  Jim Meyering  <jim@meyering.net>
105749         * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
105750         http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00155.html
105752 2003-08-19  Bruno Haible  <bruno@clisp.org>
105754         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
105755         more.
105757 2003-08-19  Bruno Haible  <bruno@clisp.org>
105759         * lib/xstrdup.c: Assume <string.h> exists.
105761 2003-08-18  Paul Eggert  <eggert@twinsun.com>
105763         * modules/stdbool: Add BUILT_SOURCES.  Prefer $@ to target name
105764         in makefile rules.
105766 2003-08-18  Jim Meyering  <jim@meyering.net>
105768         * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
105769         * m4/lib-ld.m4: Likewise.
105771 2003-08-18  Jim Meyering  <jim@meyering.net>
105773         * lib/setenv.h: Indent nested cpp directive.
105774         * lib/vasnprintf.c: Remove trailing blanks.
105776 2003-08-17  Simon Josefsson  <jas@extundo.com>
105778         * modules/xstrndup: New file.
105779         * MODULES.html.sh (func_all_modules): Add xstrndup.
105781 2003-08-17  Simon Josefsson  <jas@extundo.com>
105783         * modules/argp: Fix autoconf macro name. Add more dependencies.
105785 2003-08-17  Simon Josefsson  <jas@extundo.com>
105787         * m4/xstrndup.m4: New file.
105789 2003-08-17  Simon Josefsson  <jas@extundo.com>
105791         * m4/argp.m4: New file.
105793 2003-08-17  Simon Josefsson  <jas@extundo.com>
105794             Bruno Haible  <bruno@clisp.org>
105796         * lib/xstrndup.h: New file.
105797         * lib/xstrndup.c: New file.
105799 2003-08-17  Bruno Haible  <bruno@clisp.org>
105801         * modules/strndup (Files, Include): Add lib/strndup.h.
105803 2003-08-17  Bruno Haible  <bruno@clisp.org>
105805         * modules/euidaccess (Files): Add lib/euidaccess.h.
105807 2003-08-17  Bruno Haible  <bruno@clisp.org>
105809         * lib/strndup.h: New file.
105811 2003-08-17  Bruno Haible  <bruno@clisp.org>
105813         * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
105814         like AC_GNU_SOURCE.
105815         * modules/extensions (configure.ac): Comment out the invocation of
105816         gl_USE_SYSTEM_EXTENSIONS.
105818 2003-08-16  Paul Eggert  <eggert@twinsun.com>
105820         Merges from coreutils, etc.
105821         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
105822         error in gl_FUNC_MATCH.  This fixes a bug I introduced on 2003-05-28.
105823         * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
105824         fixing a typo.
105825         * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
105826         * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
105828 2003-08-16  Paul Eggert  <eggert@twinsun.com>
105830         Document merge from coreutils.
105831         * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
105832         * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
105833         * modules/utime: Add m4/utimes-null.m4.
105835 2003-08-16  Paul Eggert  <eggert@twinsun.com>
105837         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
105838         space, undoing this 2003-08-12 change:
105839         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
105841 2003-08-16  Paul Eggert  <eggert@twinsun.com>
105843         * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
105844         strtoul.c from libc, undoing this 2003-08-12 change:
105845         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
105847 2003-08-16  Jim Meyering  <jim@meyering.net>
105849         Merges from coreutils.
105850         * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
105851         prefix.  Adjust cache variables similarly.  Create 500 rather than
105852         just 300 files, to exercise bug on Darwin6.5, too.
105853         * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
105854         $missing_dir.
105855         * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
105856         AM_SYS_POSIX_TERMIOS.
105857         Reported by mkc@mathdogs.com.
105858         Also change use of $am_cv_sys_posix_termios
105859         to $ac_cv_sys_posix_termios.  Reported by Andreas Schwab.
105860         * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
105861         and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
105862         * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
105863         in /proc/mounts until it finds one with matching device number.  This
105864         is unnecessary when the FILE argument *is* a mount point.  No stat call
105865         is necessary in that case.  So, disable the statvfs-testing code on
105866         systems with GNU libc.  Reported by Andrei Gaponenko via Tim Waugh
105867         as RedHat bug# 84846.
105868         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
105869         to 1MB, so as not to render systems with no stack size limit (e.g.,
105870         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
105871         Include <unistd.h>.  On some systems,
105872         it is required for the definition of _SC_PAGESIZE.
105874 2003-08-16  Jim Meyering  <jim@meyering.net>
105876         Merge from coreutils.
105877         * lib/xstrtoimax.c: #else #if -> #elif.
105878         * lib/xstrtoumax.c: Likewise.
105880 2003-08-16  Jim Meyering  <jim@meyering.net>
105882         * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
105883         * m4/utimes.m4: Removed.
105884         * m4/utimes-null.m4: Renamed from utimes.m4.
105886         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
105887         to 1MB, so as not to render systems with no stack size limit (e.g.,
105888         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
105889         Include <unistd.h>.  On some systems,
105890         it is required for the definition of _SC_PAGESIZE.
105892 2003-08-16  Jim Meyering  <jim@meyering.net>
105893         and Paul Eggert  <eggert@cs.ucla.edu>
105895         Merges from coreutils, etc.
105897         * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
105898         using the latest version from cvs.  This avoids problems with #line
105899         directives using a vendor (Sun) compiler.
105900         (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
105901         Don't set GETGROUPS_LIB here; now it's
105902         done via getgroups.m4's wrapper function.
105903         AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
105904         rather than just in sh-util/configure.in, so that the
105905         now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
105906         same.
105907         Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
105908         AC_FUNC_GETLOADAVG where to find getloadavg.c.
105909         Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
105910         UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
105911         gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
105912         Remove code that is now done by the newly-required macros.
105913         Append $(EXEEXT) to DF_PROG.
105914         AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
105915         Do not invoke or require the following here,
105916         since prereq.m4 or some gnulib .m4 now does this for us:
105917         gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
105918         jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
105919         jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
105920         jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
105921         jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
105922         AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
105923         vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
105924         AC_FUNC_OBSTACK.
105925         Do not replace the following functions, as this is now the job
105926         of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
105927         getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
105928         strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
105929         atexit getpass, strdup, getpagesize.
105930         Replace 'raise'.
105931         Do not check for the following functions, as this is now the job
105932         of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
105933         getcwd, getmntinfo, resolvepath.  But check for sysctl, setreuid,
105934         setregid.
105935         (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
105936         Check for sys/sysctl.h.
105937         (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
105938         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Invoke gt_TYPE_SSIZE_T instead
105939         of checking for ssize_t ourselves.
105941         * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
105942         Require every macro that gnulib/modules/* suggests for us.
105943         (jm_PREREQ_ADDEXT): New macro.
105944         (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
105945         Require jm_AC_TYPE_LONG_LONG instead of invoking it.
105947         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
105948         (gl_PHYSMEM): Use it.
105949         Also check for `table' function.
105950         Check for new headers and functions.
105951         Add check for sys/sysmp.h.
105952         With suggestions from Kaveh Ghazi.
105953         Ignore headers that are present but cannot be compiled.  This
105954         avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
105955         C 5.4.
105957 2003-08-15  Paul Eggert  <eggert@twinsun.com>
105959         Document merge from coreutils.
105960         * modules/userspec: Depend on posixver.
105961         * modules/strftime: Depend on tzset.
105963 2003-08-15  Paul Eggert  <eggert@twinsun.com>
105965         * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
105966         rather than tab, after '#' in shell-script copyright notices.
105967         Suggested by Bruno Haible.
105969 2003-08-15  Paul Eggert  <eggert@twinsun.com>
105971         * config/srclist-update: Use three spaces, rather than tab, after '#'
105972         in shell-script copyright notices.  Suggested by Bruno Haible.
105973         Remove unnecessary parenthesization in regular expression.
105975 2003-08-15  Jim Meyering  <jim@meyering.net>
105977         Merge from coreutils.
105978         * lib/xgethostname.c: Include <stdlib.h>.
105979         (xghostname): Don't exit for anything other than memory-related
105980         failure; just return NULL.
105981         * lib/userspec.c: Include "posixver.h".
105982         (parse_user_spec): Accept `.' as a separator only
105983         in pre-POSIX-200112 mode.
105984         * lib/strtoimax.c: Use #elif rather than #else #if.
105985         * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
105986         Remove function, now that we can rely on a working tzset function.
105987         [!_LIBC]: Ensure that the required autoconf test has been run.
105988         [!defined _NL_CURRENT && HAVE_STRFTIME]:
105989         Use underlying_strftime for %r.
105990         * lib/sha.c: Merge in some clean-up and optimization changes from
105991         glibc.
105992         * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
105993         Ensure that it is a multiple of 64.
105994         Rearrange loop exit tests so as to avoid performing an
105995         additional fread after encountering an error or EOF.
105996         * lib/realloc.c: Update copyright date.
105998 2003-08-15  Jim Meyering  <jim@meyering.net>
105999         and Paul Eggert  <eggert@twinsun.com>
106001         Merge from coreutils.
106002         * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
106003         member but strut utmpx does not.  Needed for AIX 4.3.3.
106004         (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
106006 2003-08-15  Jim Meyering  <jim@meyering.net>
106007         and Paul Eggert  <eggert@cs.ucla.edu>
106009         Merges from coreutils, etc.
106010         * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
106011         Require gl_FUNC_TZSET_CLOBBER.
106012         * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
106013         ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
106014         members.
106016 2003-08-14  Paul Eggert  <eggert@twinsun.com>
106018         Help the merge from coreutils.
106019         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
106020         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
106021         * m4/tzset.m4: Use it too.
106023 2003-08-14  Paul Eggert  <eggert@twinsun.com>
106025         * modules/tzset: New file.
106027 2003-08-14  Jim Meyering  <jim@meyering.net>
106029         Merges from coreutils.
106030         * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
106031         variable names, rather than @FNMATCH_H@.
106032         * modules/alloca: Likewise for $(ALLOCA_H).
106034         * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
106035         the three copies of the literal target, `fnmatch.h'.
106036         * modules/alloca (alloca.h): Likewise.
106038 2003-08-14  Jim Meyering  <jim@meyering.net>
106040         Merge from coreutils.
106041         * m4/tzset.m4: New file.
106042         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
106043         MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
106044         otherwise, AIX 5.1 systems would end up using the latter.
106045         MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
106046         whether a file system is remote doesn't work  2) the MOUNTED_VMOUNT
106047         code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
106048         code reports merely /MOUNT_POINT.  Reported by Mike Jetzer.
106050 2003-08-14  Jim Meyering  <jim@meyering.net>
106052         Merge from coreutils.
106053         * lib/obstack.h: Whitespace changes.
106054         * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
106055         and xcalloc return values.
106056         (read_filesystem_list) [MOUNTED_GETFSSTAT]:
106057         Use MNT_NOWAIT, rather than MNT_WAIT.  Otherwise, `df DIR' could
106058         hang on OSF/1 5.1 for DIR on both local and remote file systems.
106059         Reported by (and fix confirmed by) Nelson H. F. Beebe.
106060         (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
106061         error from mntctl.
106062         Use mntctl's return value to drive the entry-processing loop, since
106063         we can't rely on the value of the vmt_length member in the last
106064         entry.  On some systems doing so could result in exhausting
106065         virtual memory.  Based in part on a patch from Mike Jetzer.
106067 2003-08-14  Jim Meyering  <jim@meyering.net>
106068         and Paul Eggert  <eggert@twinsun.com>
106070         Merges from coreutils, plus other fixes.
106071         * lib/physmem.c: Merge in portability changes from gcc/libiberty
106072         to support AIX, IRIX, Tru64, and Windows.  See the ChangeLog there
106073         for credits and details.  Thanks to Kaveh Ghazi for helping
106074         to keep these files in sync.
106075         (ARRAY_SIZE): Define it.
106076         (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
106077         * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
106078         (memcasecmp): Don't assume size_t fits in unsigned int.
106079         Remove casts and duplicate code.
106080         * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
106081         (memcpy): Remove definition.
106082         Merge in some clean-up and optimization changes from glibc.
106083         [BLOCKSIZE]: Move definition to top of file.
106084         Ensure that it is a multiple of 64.
106085         Rearrange loop exit tests so as to avoid performing an
106086         additional fread after encountering an error or EOF.
106087         * lib/md5.h (md5_uintptr): Define.
106088         * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
106089         return to the initial working directory.  Preserve errno
106090         for caller.
106091         * lib/idcache.c: Include "xalloc.h".
106092         (xmalloc, xrealloc): Remove decls.
106093         (getuser): Remove casts no longer required in C89.
106094         * lib/human.c: Include stdio.h, for sprintf.
106095         * lib/group-member.c: Include "xalloc.h".
106096         (xmalloc, xrealloc): Remove decls.
106097         (get_group_info): Remove casts no longer required in C89.
106098         * lib/getusershell.c (readname): Remove casts no longer required in
106099         C89.
106100         * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
106101         * lib/getline.c: Whitespace fix, from coreutils.
106103 2003-08-13  Paul Eggert  <eggert@twinsun.com>
106105         * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
106106         Check for isascii.
106108         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
106109         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
106110         Undo previous (whitespace-only) change.
106112 2003-08-13  Paul Eggert  <eggert@twinsun.com>
106114         * lib/exclude.c: Include <ctype.h>
106115         (IN_CTYPE_DOMAIN): New macro.
106116         (is_space): New fn.
106117         (add_exclude_file): If LINE_END is a space, ignore trailing spaces
106118         and empty lines.
106120         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
106121         Undo previous (whitespace-only) change.
106123 2003-08-13  Paul Eggert  <eggert@twinsun.com>
106125         * config/srclist-update: Change update back to the old behavior,
106126         leaving whitespace alone.  Use one 'sed' command rather than a
106127         pipeline.
106128         (fixlicense): Now a variable, not a function.
106129         (remove_trailing_blanks): Remove.
106130         (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
106131         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
106132         Undo previous (whitespace-only) change.
106134 2003-08-12  Paul Eggert  <eggert@twinsun.com>
106136         Merge from coreutils.
106137         * modules/euidaccess: Add lib_SOURCES, include for new
106138         file euidaccess.h
106140 2003-08-12  Paul Eggert  <eggert@twinsun.com>
106142         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
106143         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
106144         Normalize leading white space and remove trailing white space.
106146         Merge from coreutils
106147         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
106149         * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
106150         0.12.1.  These files are now being upgraded automatically by
106151         ../config/srclist-update.
106153 2003-08-12  Paul Eggert  <eggert@twinsun.com>
106155         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
106156         Normalize leading white space and remove trailing white space.
106157         * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
106158         notice, as per ../config/srclist-update.
106160         Merge from coreutils.
106161         * lib/euidaccess.h: New file.
106162         * lib/euidaccess.c: Include it.
106163         * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
106164         vasnprintf.h, vasprintf.h.  Remove strdup.c, gettext.h.
106165         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
106167 2003-08-12  Paul Eggert  <eggert@twinsun.com>
106169         * config/srclist-update: Add copyright notice.
106170         (remove_id_lines, remove_trailing_blanks): New constants.
106171         (fixfile): Use them to normalize spacing a bit in copied files.
106172         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
106173         Normalize leading white space and remove trailing white space.
106175         * config/texinfo.tex: Sync with texinfo.
106177         * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
106178         strtoul.c from libc, to merge coreutils whitespace changes.
106180         * config/srclist.txt: Get the following m4 files from gettext:
106181         codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
106182         inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
106183         longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
106184         wint_t.m4.
106186 2003-08-12  Karl Berry  <karl@gnu.org>
106188         * config/srclist.txt: can't sync vasnprintf.c any more, changes have
106189         been made.
106191 2003-08-11  Paul Eggert  <eggert@twinsun.com>
106193         * modules/gnu-source, m4/gnu-source.m4:
106194         Remove; we're assuming Autoconf 2.54 or later now.
106195         Suggested by Bruno Haible.
106196         * MODULES.html.sh (func_all_modules): Remove gnu-source.
106198 2003-08-11  Bruno Haible  <bruno@clisp.org>
106200         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
106202 2003-08-11  Bruno Haible  <bruno@clisp.org>
106204         * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
106205         (vasnprintf): Use it instead of wcslen.
106207 2003-08-11  Bruno Haible  <bruno@clisp.org>
106209         * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
106210         value to ensure that _Bool promotes to int. Use #define for _Bool when
106211         using the Solaris C compiler. Adds comments suggested by Paul Eggert.
106213 2003-08-10  Karl Berry  <karl@gnu.org>
106215         * lib/regex.h: update from libc (whitespace fix).
106217 2003-08-09  Paul Eggert  <eggert@twinsun.com>
106219         Merge some files from coreutils.  These changes were
106220         originally made by Jim Meyering.
106221         * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
106222         many older Unixes require this.
106223         * lib/alloca.c (alloca): Remove cast to argument of free;
106224         no longer needed in C89.
106225         * lib/alloca_.h, regex.h: Fix white space to match
106226         what GNU indent does.
106228 2003-08-09  Paul Eggert  <eggert@twinsun.com>
106230         * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
106231         apparently Emacs's Unicode mode got confused before my 2003-08-05
106232         checkin.
106234 2003-08-08  Paul Eggert  <eggert@twinsun.com>
106236         * m4/extensions.m4: New file.
106237         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
106238         Require gl_USE_SYSTEM_EXTENSIONS.
106239         * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
106240         Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
106242 2003-08-08  Paul Eggert  <eggert@twinsun.com>
106244         * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
106245         * modules/extensions, modules/gnu-source: New files.
106246         * modules/timespec, modules/unlocked-io: Depend on extensions.
106248 2003-08-07  Paul Eggert  <eggert@twinsun.com>
106250         * modules/restrict: New file.
106251         * MODULES.html.sh (func_all_modules): Add restrict.
106252         * modules/regex: Depend on restrict.
106254 2003-08-07  Paul Eggert  <eggert@twinsun.com>
106256         * m4/restrict.m4: New file.
106257         * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
106259 2003-08-07  Bruno Haible  <bruno@clisp.org>
106261         * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
106262         lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
106264 2003-08-07  Bruno Haible  <bruno@clisp.org>
106266         * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
106267         makes the module 'getndelim2' compatible with the module 'getline'.
106269 2003-08-05  Paul Eggert  <eggert@twinsun.com>
106271         * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
106272         byte with "\201" to avoid glitches when editing that source file
106273         with multi-gnome-terminal.
106275 2003-08-05  Paul Eggert  <eggert@twinsun.com>
106277         * lib/bumpalloc.h: Remove.
106279 2003-08-05  Paul Eggert  <eggert@twinsun.com>
106281         * MODULES.html.sh (func_all_modules): Remove bumpalloc.
106282         * modules/bumpalloc: Remove.
106284 2003-08-04  Paul Eggert  <eggert@twinsun.com>
106286         * lib/getloadavg.c: Change copyright notice and spacing to conform to
106287         GNU coding style.
106289         Merge from coreutils.
106290         * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
106291         1. From glibc.
106292         * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
106293         from Karl Berry, implemented by Jim Meyering.
106294         * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
106295         from Dmitry V. Levin.
106296         Remove anachronistic cast of xrealloc.
106297         * lib/fnmatch_.h (__const): Remove.  Use 'const'.
106298         * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
106299         type. Otherwise, it wouldn't compile with at least /bin/cc on
106300         ymp-cray-unicos9.0.2.X.
106301         Combine two mostly-identical uses of alloca into one.
106302         Thanks to the Cray-Cyber project for access to a Cray Y-MP.
106304 2003-08-04  Dave Love  <d.love@dl.ac.uk>
106306         [From Emacs.]
106308         * lib/getloadavg.c: Check `__unix' as well as `unix'.  Use #ifdef, not
106309         #if.  Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE.  Check
106310         F_SETFD, not FD_SETFD.  Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
106311         obsolete NLIST_NAME_UNION.
106312         [__GNU__]: Undef BSD and FSCALE.
106313         [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
106315 2003-08-03  Paul Eggert  <eggert@twinsun.com>
106317         * lib/stdbool_.h (_Bool): Make it signed char, instead of
106318         an enum type, so that it's guaranteed to promote to int.  See:
106319         <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00124.html>
106321 2003-08-03  Karl Berry  <karl@gnu.org>
106323         * config/depcomp: update from automake.
106325 2003-07-31  Paul Eggert  <eggert@twinsun.com>
106327         * lib/strerror.c: Include config.h, limits.h.  Declare sprintf.
106328         (strerror): Don't assume that a printable int fits in 14 bytes.
106330 2003-07-31  Bruno Haible  <bruno@clisp.org>
106332         * modules/getpass-gnu: New file.
106333         * MODULES.html.sh (func_all_modules): Add getpass-gnu.
106335 2003-07-31  Bruno Haible  <bruno@clisp.org>
106337         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
106339 2003-07-24  Karl Berry  <karl@gnu.org>
106341         * config/missing: update from automake.
106343 2003-07-24  Derek Robert Price  <derek@ximbiot.com>
106344             Bruno Haible  <bruno@clisp.org>
106346         * lib/getline.h (getline, getdelim): Change return type to ssize_t.
106347         * lib/getline.c (getline, getdelim): Likewise.
106348         Remove _GNU_SOURCE define; now it's defined in config.h through
106349         m4/getline.m4.
106351 2003-07-23  Karl Berry  <karl@gnu.org>
106353         * config/config.sub: update from prep.
106355 2003-07-22  Paul Eggert  <eggert@twinsun.com>
106357         * modules/xalloc (Depends-on): Add exitfail.
106358         * modules/xmemcoll: Likewise.
106360 2003-07-22  Paul Eggert  <eggert@twinsun.com>
106362         * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
106363         over-parenthesization in macros.
106365         Sync with coreutils.
106367         * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
106368         required by C99.
106370         Use `exit_failure' for xalloc and xmemcoll instead of their own
106371         private exit-failure variables.
106372         * lib/xalloc.h (xalloc_exit_failure): Remove.
106373         * lib/xmalloc.c: Likewise.  Include exitfail.h.
106374         (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
106375         * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
106376         * lib/xmemcoll.c: Likewise.  Include exitfail.h.
106377         (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
106379 2003-07-20  Jim Meyering  <jim@meyering.net>
106381         * modules/closeout (Depends-on): Add exitfail.
106382         Suggestion from Bruno Haible.
106384 2003-07-19  Karl Berry  <karl@gnu.org>
106386         * config/config.sub: update from prep.
106388 2003-07-18  Paul Eggert  <eggert@twinsun.com>
106390         * lib/closeout.h (close_stdout_set_status, close_stdout_status):
106391         Remove.
106392         * lib/closeout.c: Likewise.  Include "closeout.h" right after config.h,
106393         to test that it can stand by itself.  Include "exitfail.h".
106394         Clients should set exit_failure instead.
106395         (EXIT_FAILURE): Remove; no longer needed.  Do not include <stdlib.h>.
106397 2003-07-18  Bruno Haible  <bruno@clisp.org>
106399         * modules/getndelim2: New file.
106400         * modules/getline: Share files with module getndelim2.
106401         * modules/getnline: Depend on getndelim2 instead of sharing files with
106402         it. Add getnline.c to lib_SOURCES.
106403         * MODULES.html.sh (func_all_modules): Add getndelim2.
106405 2003-07-18  Bruno Haible  <bruno@clisp.org>
106407         * m4/getndelim2.m4: New file.
106408         * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
106409         invoke gl_PREREQ_GETNDELIM2.
106410         (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
106411         gl_PREREQ_GETNDELIM2.
106412         * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
106413         gl_GETNDELIM2.
106415 2003-07-18  Bruno Haible  <bruno@clisp.org>
106417         * lib/getndelim2.h: New file.
106418         * lib/getndelim2.c: Make into a module of its own. Include config.h,
106419         getndelim2.h.
106420         (getndelim2): Make non-static. Change return type to ssize_t.
106421         * lib/getline.h: Change argument names.
106422         * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
106423         * lib/getnline.c: Include getndelim2.h.
106425 2003-07-18  Andreas Schwab  <schwab@suse.de>
106427         * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
106429 2003-07-17  Karl Berry  <karl@gnu.org>
106431         * config/config.sub: update from prep.
106433 2003-07-17  Bruno Haible  <bruno@clisp.org>
106435         * modules/getnline: New file.
106436         * modules/getline: Add lib/getndelim2.c to source file list.
106437         * MODULES.html.sh (func_all_modules): Add getnline.
106439 2003-07-17  Bruno Haible  <bruno@clisp.org>
106441         * m4/getnline.m4: New file.
106443 2003-07-17  Bruno Haible  <bruno@clisp.org>
106445         * m4/Makefile.am.in: Remove file.
106446         * m4/Makefile.am: Remove file.
106447         * m4/Makefile.in: Remove file.
106449 2003-07-17  Bruno Haible  <bruno@clisp.org>
106451         * lib/getnline.h: New file.
106452         * lib/getnline.c: New file.
106453         * lib/getndelim2.c: New file, extracted from getline.c.
106454         (getndelim2): Renamed from getdelim2, with added nmax argument.
106455         * lib/getline.c: Include getndelim2.c.
106456         (getdelim2): Moved out to getndelim2.c.
106457         (getline, getdelim): Update.
106459 2003-07-17  Bruno Haible  <bruno@clisp.org>
106461         * lib/Makefile.am: Remove file.
106462         * lib/Makefile.in: Remove file.
106464 2003-07-17  Bruno Haible  <bruno@clisp.org>
106466         * configure.in: Remove file.
106467         * Makefile.in: Remove file.
106469 2003-07-17  Bruno Haible  <bruno@clisp.org>
106471         * MODULES.html.sh: Put the </BODY> right before </HTML>.
106473 2003-07-16  Karl Berry  <karl@gnu.org>
106475         * config/srclist-update: was running fixlicense twice, which caused
106476                 texinfo.tex to be nullified for some reason.  Simplify,
106477                 $gplsrc is no longer needed as far as I can see?
106479 2003-07-16  Jim Meyering  <jim@meyering.net>
106481         * modules/save-cwd: Depend on xgetcwd.  From Derek Price.
106483 2003-07-15  Paul Eggert  <eggert@twinsun.com>
106485         * config/srclist.txt: Get the following files from gettext-runtime/intl
106486         instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
106487         ref-del.sin.  From Bruno Haible.
106488         * config/srclist-update (fixfile): Change grep pattern again, since the
106489         previous fix didn't work (there was another trailing $).  Use
106490         '[$]' to escape the $s.
106492 2003-07-15  Karl Berry  <karl@gnu.org>
106494         * lib/vasnprintf.c: update from gettext.
106496 2003-07-15  Karl Berry  <karl@gnu.org>
106498         * config/srclist-update (fixfile): Change grep pattern, since 'Id'
106499         gets expanded when surrounded by '$'.
106501 2003-07-15  Jim Meyering  <jim@meyering.net>
106503         * modules/save-cwd: Don't depend on error.  From Derek Price.
106505 2003-07-15  Jim Meyering  <jim@meyering.net>
106507         * lib/makepath.c (make_path): Enclose diagnostic in _(...).
106509 2003-07-14  Simon Josefsson  <jas@extundo.com>
106511         * modules/mempcpy: New file.
106512         * MODULES.html.sh (func_all_modules): Add mempcpy.
106514 2003-07-14  Simon Josefsson  <jas@extundo.com>
106516         * m4/mempcpy.m4: New file.
106518 2003-07-14  Simon Josefsson  <jas@extundo.com>
106520         * lib/mempcpy.h: New file.
106521         * lib/mempcpy.c: New file.
106523 2003-07-14  Paul Eggert  <eggert@twinsun.com>
106525         * modules/getdate, modules/posixtm: Depend on mktime.
106527 2003-07-14  Paul Eggert  <eggert@twinsun.com>
106529         * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
106530         sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
106531         unicodeio.c, unicodeio.h, unlocked-io.h:
106532         Switch from LGPL to GPL.
106534 2003-07-14  Paul Eggert  <eggert@twinsun.com>
106536         * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
106537         localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
106538         printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
106539         ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
106540         vasprintf.c, vasprintf.h: Regenerate.  These files are now being
106541         updated automatically by ../config/srclist-update.  This changes
106542         their license from LPGL to GPL.
106544 2003-07-14  Paul Eggert  <eggert@twinsun.com>
106546         * config/srclist.txt: Add tons more gettext files.  $GETTEXT is now
106547         assumed to refer to the root of the most recent stable gettext version.
106548         * config/srclistvars.sh: Add defaults for eggert.
106549         * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
106550         Match "This program" as well as "The program".  This is needed
106551         for gettext.
106553 2003-07-14  Jim Meyering  <jim@meyering.net>
106555         Don't emit diagnostics.  Let callers do that.
106556         * lib/save-cwd.c: Don't include "error.h".
106557         (save_cwd): Don't call error.  Ensure that errno is valid
106558         when returning nonzero.
106560         * lib/save-cwd.h (restore_cwd): Update prototype.
106561         * lib/save-cwd.c (restore_cwd): Remove two parameters.
106562         Simplify.  Don't call error upon failure.  Let callers do that.
106563         (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
106564         when auditing is enabled.  But don't bother updating the #if.
106566 2003-07-11  Alexandre Duret-Lutz  <adl@gnu.org>
106568         * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
106569         it breaks C++ compilation.
106570         [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
106572 2003-07-10  Simon Josefsson  <jas@extundo.com>
106574         * modules/strchrnul (Makefile.am): Add strchrnul.h.
106576 2003-07-10  Jim Meyering  <jim@meyering.net>
106578         * m4/clock_time.m4: Remove trailing blank.
106579         * m4/intmax_t.m4: Likewise.
106581 2003-07-10  Jim Meyering  <jim@meyering.net>
106583         * lib/vasnprintf.c: Remove trailing blanks.
106584         Make cpp indentation consistent.
106586 2003-07-09  Paul Eggert  <eggert@twinsun.com>
106588         * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
106589         posixver.c, strftime.c, strnlen.c, strverscmp.c:
106590         Switch from LGPL to GPL.
106592 2003-07-09  Paul Eggert  <eggert@twinsun.com>
106594         * config/srclist.txt: Sort sublists.  Add
106595         $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
106596         that differ from gnulib for one reason or another; we'd like this list
106597         to be smaller but for now let's document what we have.
106599 2003-07-08  Paul Eggert  <eggert@twinsun.com>
106601         * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
106602         the use of GNU extensions.  Change "x=`eval echo $x`" to the shorter
106603         and sweeter "eval x=$x".
106604         * config/srclist.txt: Get lib/argp* from glibc.
106606 2003-07-07  Paul Eggert  <eggert@twinsun.com>
106608         * lib/mktime.c: Fix some boundary cases and remove need for floating
106609         point.
106611         Issue a compile-time diagnostic if time_t is floating point, or if
106612         two's complement arithmetic is not in effect, or if arithmetic
106613         right shift does not propagate the sign.  These assumptions were
106614         all in the original code but they weren't checked.
106616         (TIME_T_MIDPOINT, verify): New macros.
106617         (__isleap): Remove; it has integer overflow problems.
106618         (leapyear): New function, without those problems.
106619         (ydhms_tm_diff): Remove; splitting into two parts.
106620         (ydhms_diff): New function, containing the arithmetic part of
106621         the old ydhms_tm_diff function.  Issue a compile-time
106622         diagnostic if we are not using C99 integer division.
106623         Avoid casts when possible.
106624         (guess_time_tm): New function, containing the checking part of
106625         the old ydhms_tm_diff function.  Return the new value, rather than
106626         the difference between it and the old.  Accept a new argument T
106627         so that *T specifies the old value.  Check for overflow in the result.
106629         (__mktime_internal): Use a time_t offset, not a long int offset.
106630         This undoes the 2003-06-04 change, which is no longer needed now
106631         that we have better overflow checking.
106632         (localtime_offset): Likewise.
106634         (__mktime_internal): Avoid harmful overflow on hosts where time_t
106635         and long are 64-bit but int is only 32-bit.
106636         (ydhms_diff): Use long int to store year1 and yday1.
106637         Issue a compile-time diagnostic if long int is not wide enough.
106639         (__mktime_internal): Use long int to store adjusted year and yday.
106640         Use plain C rather than preprocessor commands, if that doesn't
106641         affect efficiency.
106642         Check for overflow (and try to repair) after each probe
106643         rather than checking only at the very end.  This avoids some bugs
106644         (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
106645         does not equal GMT offset at maximum time).
106646         Use integer to check for overflow rather than floating point; this
106647         is more portable to non-IEEE hosts, and is a tad faster.
106648         When we detect that we are oscillating between two values,
106649         don't check whether tm_isdst has the requested value, since
106650         we already know the answer.  When tm_isdst has the wrong value,
106651         use a different heuristic to find the right one, based on the
106652         extreme values actually observed in practice in tz2003a,
106653         rather than the (overly optimistic) "previous 3 calendar quarters".
106655         (not_equal_tm, print_tm, check_result): Use "const T" rather than
106656         "T const" to accommodate glibc style.
106657         (check_result): Use less-confusing report format.  "long" -> "long int.
106658         (main): Likewise.
106659         Don't loop if the iteration overflows time_t.
106660         Allow a negative step in the iteration.
106662 2003-07-06  Karl Berry  <karl@gnu.org>
106664         * config/depcomp: update from automake.
106665         * config/config.sub: update from prep.
106667 2003-07-03  Karl Berry  <karl@gnu.org>
106669         * config/config.guess: update from prep.
106671 2003-07-01  Paul Eggert  <eggert@twinsun.com>
106673         * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
106674         xreadlink.c now includes it unconditionally.
106676 2003-07-01  Paul Eggert  <eggert@twinsun.com>
106678         * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
106679         having it depend on HAVE_SYS_TYPES_H.
106681 2003-07-01  Bruno Haible  <bruno@clisp.org>
106683         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
106684         <sys/types.h> should be sufficient.
106685         Reported by Paul Eggert.
106687 2003-06-26  Karl Berry  <karl@gnu.org>
106689         * config/depcomp: update from automake.
106691 2003-06-26  Bruno Haible  <bruno@clisp.org>
106693         * modules/human: Depend on module stdbool.
106695 2003-06-25  Bruno Haible  <bruno@clisp.org>
106697         * modules/readlink: New file.
106698         * modules/xreadlink: Depend on it.
106699         * MODULES.html.sh (func_all_modules): Add readlink.
106701 2003-06-25  Bruno Haible  <bruno@clisp.org>
106703         * m4/readlink.m4: New file.
106705 2003-06-25  Bruno Haible  <bruno@clisp.org>
106707         * lib/readlink.c: New file.
106709 2003-06-22  Karl Berry  <karl@gnu.org>
106711         * config/srclist.txt: update mkinstalldirs from automake.
106712         * config/mkinstalldirs: update.
106714 2003-06-22  Bruno Haible  <bruno@clisp.org>
106716         Portability to mingw32.
106717         * m4/ssize_t.m4: New file, from GNU gettext.
106718         * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
106719         * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
106721 2003-06-22  Bruno Haible  <bruno@clisp.org>
106723         * modules/safe-read: Add m4/ssize_t.m4.
106724         * modules/xreadlink: Add m4/ssize_t.m4.
106726 2003-06-20  Bruno Haible  <bruno@clisp.org>
106728         Assume C89, so PARAMS isn't needed.
106729         * lib/unicodeio.h (PARAMS): Remove.
106730         * lib/unicodeio.c: Don't use PARAMS.
106732 2003-06-18  Karl Berry  <karl@gnu.org>
106734         * config/config.{guess,sub}: update from prep.
106736 2003-06-18  Jim Meyering  <jim@meyering.net>
106738         Merge changes from coreutils.
106739         * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
106740         Remove explicit declarations of xmalloc and realloc.
106741         Include xalloc.h.
106742         (read_utmp): Remove anachronistic cast of xmalloc.
106744 2003-06-17  Paul Eggert  <eggert@twinsun.com>
106746         Assume C89, so PARAMS isn't needed.
106747         * lib/backupfile.h (PARAMS): Remove.  All uses removed.
106748         * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
106749         lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
106750         lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
106751         lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
106752         lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
106753         lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
106754         lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
106755         lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
106756         lib/xstrtod.h, lib/xstrtol.h: Likewise.
106757         * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
106758         lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
106759         no longer needed. Anyway, config.h should always be included before any
106760         other file.
106762 2003-06-11  Simon Josefsson  <jas@extundo.com>
106764         * modules/sysexits: New file.
106765         * MODULES.html.sh (func_all_modules): Add sysexits.
106767 2003-06-11  Simon Josefsson  <jas@extundo.com>
106769         * lib/sysexit_.h: New file.
106771 2003-06-11  Derek Price  <derek@ximbiot.com>
106773         * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
106774         necessary.
106776 2003-06-11  Bruno Haible  <bruno@clisp.org>
106778         * m4/sysexits.m4: New file.
106780 2003-06-10  Simon Josefsson  <jas@extundo.com>
106782         * lib/argp.h: New file, from glibc.
106783         * lib/argp-ba.c: New file, from glibc.
106784         * lib/argp-eexst.c: New file, from glibc.
106785         * lib/argp-fmtstream.c: New file, from glibc.
106786         * lib/argp-fmtstream.h: New file, from glibc.
106787         * lib/argp-fs-xinl.c: New file, from glibc.
106788         * lib/argp-help.c: New file, from glibc.
106789         * lib/argp-namefrob.h: New file, from glibc.
106790         * lib/argp-parse.c: New file, from glibc.
106791         * lib/argp-pv.c: New file, from glibc.
106792         * lib/argp-pvh.c: New file, from glibc.
106793         * lib/argp-xinl.c: New file, from glibc.
106795 2003-06-10  Simon Josefsson  <jas@extundo.com>
106797         * modules/strchrnul: New file.
106799 2003-06-10  Simon Josefsson  <jas@extundo.com>
106801         * modules/argp: New file.
106803 2003-06-10  Simon Josefsson  <jas@extundo.com>
106805         * m4/strchrnul.m4: New file.
106807 2003-06-10  Simon Josefsson  <jas@extundo.com>
106809         * lib/strchrnul.h: New file.
106810         * lib/strchrnul.c: New file.
106812 2003-06-10  Bruno Haible  <bruno@clisp.org>
106814         * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
106816 2003-06-07  Karl Berry  <karl@gnu.org>
106818         * config/config.{guess,sub}: update from prep.
106820 2003-06-07  Jim Meyering  <jim@meyering.net>
106822         * modules/strtod: Use $(...) notation, not @...@ for
106823         AC_REPLACE'd variables.
106824         * modules/localcharset: Likewise.
106826 2003-06-07  Jim Meyering  <jim@meyering.net>
106828         * lib/readtokens.h: Put `Free Software Foundation, Inc.'
106829         in place of my name in the copyright comment.
106830         Remove definition and uses of __P.
106832         From coreutils.
106833         * lib/stat.c: Don't declare xmalloc explicitly.
106834         Instead, include "xalloc.h".
106835         * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
106836         xrealloc, and xcalloc return values.
106837         * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
106838         Improve comment.
106839         * lib/xgetcwd.h: Remove definition/uses of PARAMS.
106841 2003-06-07  Bruno Haible  <bruno@clisp.org>
106843         * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
106844         avoid AC_CONFIG_LINKS.
106845         * modules/fnmatch (Makefile.am): Use explicit creation rule for
106846         fnmatch.h, to avoid AC_CONFIG_LINKS.
106847         * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
106849 2003-06-07  Bruno Haible  <bruno@clisp.org>
106851         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
106852         gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
106853         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
106854         directory.
106855         * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
106856         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
106857         directory.
106859 2003-06-06  Jim Meyering  <jim@meyering.net>
106861         Merge from coreutils.
106862         * lib/same.c: (same_name): Declare *_basename locals to be `const'.
106863         Consolidate declarations and initializations of *_base* locals.
106865         Merge from coreutils.
106866         This avoids a core dump on systems without GNU putenv,
106867         when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
106868         * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
106869         (unsetenv): New static function, from GNU libc.
106870         (rpl_putenv): Use it.
106872         * lib/modechange.c: Remove trailing blanks.
106874         Merge from coreutils.
106875         * lib/fsusage.c: Remove declaration of statfs.
106876         It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
106878         * lib/posixtm.c: Include <stdbool.h> unconditionally.
106880 2003-06-06  Jim Meyering  <jim@meyering.net>
106882         * lib/stdbool_.h: Renamed from stdbool.h.in.
106884 2003-06-06  Jim Meyering  <jim@meyering.net>
106885             Bruno Haible  <bruno@clisp.org>
106887         * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
106888         Adjust Makefile.am snippet not to redirect directly to target.
106889         Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
106891 2003-06-05  Paul Eggert  <eggert@twinsun.com>
106893         * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
106894         mismatch, look in future quarters as well as past.  This fixes a
106895         bug when processing fall-backwards gaps immediately after a long
106896         period of daylight-saving time.
106898         * lib/mktime.c: Assume freestanding C89 or better.
106899         (HAVE_LIMITS_H): Remove.  Assume it's 1.
106900         (__P): Remove; not used.
106901         (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
106902         (mktime, not_equal_tm, print_tm, check_result,
106903         main): Use prototypes.  Use const * where appropriate.
106904         (main): Fix typo in testing code that uncovered by above changes.
106905         (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
106907 2003-06-04  Paul Eggert  <eggert@twinsun.com>
106909         * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H.  Check for
106910         locale.h, localeconv.  This merges changes from coreutils.
106912         * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
106913         It can be removed after the next Autoconf is released.
106914         * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
106915         needed.
106917 2003-06-04  Paul Eggert  <eggert@twinsun.com>
106919         * lib/mktime.c: Fix Debian bug 177940
106920         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
106921         (localtime_offset): Now long int, not time_t, because we want it
106922         to be guaranteed to be signed.  All uses changed.
106923         (__mktime_internal): If overflow would occur when adding offset,
106924         don't add it.
106926         Merge 'human' changes from coreutils.  Rewrite to support
106927         locale-specific notations like thousands separators.
106928         * lib/human.c: Simplify authorship notice.
106929         Include human.h immediately after config.h.
106930         <sys/types.h>, <stdio.h>: Do not include; no longer needed.
106931         <limits.h>: Do not include, since human.h does.
106932         (SIZE_MAX, UINTMAX_MAX): New macros.
106933         <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
106934         <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
106935         (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
106936         (power_letter): Renamed from suffixes.
106937         (generate_suffix_backwards): Remove.
106938         (adjust_value): Now takes int style (because of human.h changes)
106939         and long double value (for greater precision on some platforms).
106940         (group_number): New function.
106941         (human_readable): Use it.  Use integer options, not enum.
106942         Put the options before the sizes in the arg list.
106943         Support all the new options.
106944         The old human_readable function has been removed;
106945         use inttostr.h instead.
106946         (human_readable, default_block_size, humblock):
106947         Use uintmax_t, not int, for block sizes.
106948         (human_readable_inexact, block_size_types): Remove.
106949         (block_size_opts): New constant.
106950         (human_options): Renamed from human_block_size, with new signature
106951         that allows block sizes up to UINTMAX_MAX.  All callers changed.
106952         * lib/human.h: Add copyright and authorship notice.
106953         Include <limits.h> and <stdbool.h> unconditionally.
106954         (PARAMS): Remove.  All uses removed.
106955         (LONGEST_HUMAN_READABLE): Add support for thousands separator.
106956         (enum human_inexact_style): Remove tag; now a nameless enum.
106957         (human_floor, human_ceiling, human_round_to_even): Now have
106958         values 2, 0, 1 rather than -1, 1, 0.
106959         (human_group_digits, human_suppress_point_zero, human_autoscale,
106960         human_base_1024, human_SI, human_B): New constants.
106961         (human_readable_inexact, human_block_size): Remove.
106962         (human_readable): Size args are now uintmax_t, not int.
106963         (human_options): New decl.
106965         * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
106966         unnecessary now that we assume C89 or better.  This change
106967         imported from coreutils.
106969         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
106970         arbitrarily.  This is the same patch as 2003-05-28, but it got lost
106971         in the 2003-05-30 sync from glibc.
106973         .h files should stand alone, but we shouldn't include <sys/types.h>
106974         if we can get away with just <stddef.h>.
106976         * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
106977         malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
106978         rather than <sys/types.h>, as we merely need size_t.
106979         * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
106980         to get size_t.
106981         * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
106982         Include <stdio.h>, to get FILE.
106983         * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
106984         memcasecmp.h has included <stddef.h> and all we need is size_t.
106985         * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
106986         our interface, instead of including <sys/types.h>
106988 2003-06-04  Paul Eggert  <eggert@twinsun.com>
106990         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
106991         now, as glibc mktime is buggy on non-glibc systems.
106993 2003-06-03  Karl Berry  <karl@gnu.org>
106995         * config/config.sub: update from prep.
106997 2003-06-02  Paul Eggert  <eggert@twinsun.com>
106999         [from coreutils]
107000         Fix some minor time-related bugs with POSIX time arguments.
107001         Some valid time stamps were being rejected (notably -1, and
107002         time stamps before 1900 on 64-bit hosts).  And some invalid
107003         time stamps were being accepted, e.g. September 31.
107005         * lib/posixtm.h (posixtime): Return bool instead of time_t, so
107006         that we can return (time_t) -1 successfully.
107007         * lib/posixtm.c: Likewise.
107008         [HAVE_STDBOOL_H]: Include <stdbool.h>.
107009         (bool, false, true) [!HAVE_STDBOOL_H]: New type.
107010         (t): Remove static var.
107011         (year, posix_time_parse): Now takes struct tm * arg to modify, instead
107012         of static var.  All uses changed.
107013         (year): Do not reject years before 1900; they can occur with
107014         64-bit time_t.
107015         (posix_time_parse): Do not check for out-of-range components;
107016         that is now the caller's responsibility, since our checks were
107017         only approximations.
107018         (posixtime): Use mktime to check for out-of-range components,
107019         since it knows them exactly.
107020         If mktime returns (time_t) -1, check whether an error actually occurred
107021         by invoking localtime on -1.
107022         (main) [TEST_POSIXTIME]: Check for input data errors, and report
107023         posixtime failures better.
107024         Improve the test data (in comments only).
107026 2003-06-02  Karl Berry  <karl@gnu.org>
107028         * config/mkinstalldirs (version): new variable.
107029         (--version): new option.
107030         (usage): improve message.
107032 2003-05-30  Karl Berry  <karl@gnu.org>
107034         * lib/mktime.c: update from libc.
107036 2003-05-30  Bruno Haible  <bruno@clisp.org>
107038         * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
107039         * config/config.rpath: Upgrade to gettext-0.12.1.
107041 2003-05-30  Bruno Haible  <bruno@clisp.org>
107043         * m4/gettext.m4: Upgrade to gettext-0.12.1.
107044         * m4/nls.m4: New file, from gettext-0.12.1.
107045         * m4/po.m4: New file, from gettext-0.12.1.
107046         * m4/progtest.m4: Upgrade to gettext-0.12.1.
107048 2003-05-30  Bruno Haible  <bruno@clisp.org>
107050         * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
107051         * lib/localcharset.h: Likewise.
107052         * lib/localcharset.c: Likewise.
107054 2003-05-29  Karl Berry  <karl@gnu.org>
107056         * config/config.rpath: update from gettext.
107058 2003-05-28  Paul Eggert  <eggert@twinsun.com>
107060         Assume the headers required for C89 freestanding compilers.
107061         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
107062         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
107063         * m4/human.m4 (gl_HUMAN): Likewise.
107064         * m4/pathmax.m4 (gl_PATHMAX): Likewise.
107065         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
107066         * m4/userspec.m4 (gl_USERSPEC): Likewise.
107067         * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
107068         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
107069         * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
107071 2003-05-28  Paul Eggert  <eggert@twinsun.com>
107073         Assume the headers required for C89 freestanding compilers.
107074         * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
107075         lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
107076         lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
107077         * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
107078         lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
107079         define, since <limits.h> is guaranteed to do that.
107080         * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
107081         * lib/exclude.c: Include <stdbool.h> unconditionally.
107082         * lib/tempname.c: Include <stddef.h> unconditionally.
107083         * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
107084         * lib/modechange.c, rpmatch.c (NULL): Don't define, since
107085         <stddef.h> does that.
107086         * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
107087         * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
107088         * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
107089         needed.
107090         * lib/xstrtol.c: Likewise.
107091         * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
107092         * lib/savedir.c: Include <stddef.h> instead of defining NULL.
107094         * lib/addext.c (addext): Use assignment rather than cast, to avoid
107095         warnings on some platforms.
107097         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
107098         arbitrarily.
107100 2003-05-26  Jim Meyering  <jim@meyering.net>
107102         Merge in a change from coreutils:
107103         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
107104         that is guaranteed to be `no'.  Use `no_such_member' to indicate
107105         that condition, rather than `-1' which is slightly misleading.
107106         Change the name of the cache variable to have the gl_ prefix.
107107         Prompted by a patch from Richard Dawe for DJGPP.
107109 2003-05-24  Karl Berry  <karl@gnu.org>
107111         * config/config.guess: update from prep.
107113 2003-05-22  Karl Berry  <karl@gnu.org>
107115         * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
107117 2003-05-20  Karl Berry  <karl@gnu.org>
107119         * config/config.guess: update from prep.
107121 2003-05-18  Karl Berry  <karl@gnu.org>
107123         * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
107124         might actually be set by the user.
107126         * config/depcomp, install-sh, mdate-sh: update from automake.
107128 2003-05-17  Bruno Haible  <bruno@clisp.org>
107130         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
107131         invalid expansion for AC_EGREP_CPP.
107132         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
107133         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
107134         Suggested by Akim Demaille <akim@epita.fr> in
107135         http://mail.gnu.org/archive/html/bug-autoconf/2003-05/threads.html
107137 2003-05-12  Jim Meyering  <jim@meyering.net>
107139         * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
107140         the space-padded-by-default conversion specifiers, %e, %k, %l.
107142 2003-05-12  Bruno Haible  <bruno@clisp.org>
107144         * lib/linebreak.c (iconv_string_length): Don't return -1 just because
107145         the string is longer than 4 KB.
107147 2003-05-11  Karl Berry  <karl@gnu.org>
107149         * config/config.{guess,sub}: update from prep.
107151 2003-05-09  Bruno Haible  <bruno@clisp.org>
107153         * modules/error: Add m4/strerror_r.m4 to file list.
107155 2003-05-03  Bruno Haible  <bruno@clisp.org>
107157         Upgrade to Unicode-4.0.
107158         * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
107159         U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
107160         U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
107161         U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
107162         from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
107163         (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
107164         of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
107165         Change width of U+E0100..U+E01EF from 1 to 0.
107167 2003-04-25  Jim Meyering  <jim@meyering.net>
107169         * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
107170         of type size_t, not int.
107172 2003-04-25  Bruno Haible  <bruno@clisp.org>
107174         * lib/copy-file.c: Include <stddef.h>, for size_t.
107176 2003-04-21  Paul Eggert  <eggert@twinsun.com>
107178         * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
107179         code which expansion is under static control.  Patch imported from
107180         Akim Demaille's patch to Bison; see
107181         <http://mail.gnu.org/archive/html/bison-patches/2003-03/msg00057.html>.
107183 2003-04-14  Bruno Haible  <bruno@clisp.org>
107185         * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
107187 2003-04-11  Jim Meyering  <jim@meyering.net>
107189         Merge changes from Coreutils.
107191         2003-03-22  Jim Meyering  <jim@meyering.net>
107193         * lib/strftime.c (widen): Cast alloca return value to proper type.
107195         2003-01-19  Ulrich Drepper  <drepper@redhat.com>
107197         From GNU libc.
107198         * lib/strftime.c (my_strftime): Handle very large width
107199         specifications for numeric values correctly.  Improve checks for
107200         overflow.
107202         2003-01-19  Jim Meyering  <jim@meyering.net>
107204         * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
107205         definitions.
107206         (nl_get_alt_digit) [! defined my_strftime]: Define.
107207         (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
107208         _nl_get_alt_digit and _nl_get_walt_digit.
107210         * lib/strftime.c (my_strftime): Merge in locale-related changes from
107211         libc. These changes have no effect outside of _LIBC.
107213 2003-04-10  Bruno Haible  <bruno@clisp.org>
107215         * modules/findprog: New file.
107216         * MODULES.html.sh (func_all_modules): Add it.
107218 2003-04-10  Bruno Haible  <bruno@clisp.org>
107220         * m4/findprog.m4: New file.
107221         * m4/eaccess.m4: New file.
107223 2003-04-10  Bruno Haible  <bruno@clisp.org>
107225         * lib/findprog.h: New file, from GNU gettext.
107226         * lib/findprog.c: New file, from GNU gettext.
107228 2003-04-05  Jim Meyering  <jim@meyering.net>
107230         Merge changes from Coreutils.
107232         * lib/exclude.h (PARAMS): Remove definition and uses.
107233         * lib/exclude.c: Remove uses of `PARAMS'.
107235         * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
107236         Add test-cases for DOS filenames. Declare program_name.
107237         (main): Set up program_name.  Patch by Rich Dawe.
107239         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
107240         error from mntctl.
107241         Use mntctl's return value to drive the entry-processing loop, since
107242         we can't rely on the value of the vmt_length member in the last
107243         entry.  On some systems doing so could result in exhausting
107244         virtual memory.  Based in part on a patch from Mike Jetzer.
107246 2003-04-04  Bruno Haible  <bruno@clisp.org>
107248         * modules/linebreak: New file.
107249         * MODULES.html.sh (func_all_modules): Add it.
107251 2003-04-04  Bruno Haible  <bruno@clisp.org>
107253         * m4/linebreak.m4: New file.
107255 2003-04-04  Bruno Haible  <bruno@clisp.org>
107257         * lib/linebreak.h: New file, from GNU gettext.
107258         * lib/linebreak.c: New file, from GNU gettext with slight
107259         modifications.
107260         * lib/lbrkprop.h: New file, from GNU gettext.
107262 2003-04-03  Bruno Haible  <bruno@clisp.org>
107264         * modules/utf8-ucs4: New file.
107265         * modules/utf16-ucs4: New file.
107266         * modules/ucs4-utf8: New file.
107267         * modules/ucs4-utf16: New file.
107268         * MODULES.html.sh (func_all_modules): Add them.
107270 2003-04-03  Bruno Haible  <bruno@clisp.org>
107272         * m4/utf-ucs4.m4: New file.
107273         * m4/ucs4-utf.m4: New file.
107275 2003-04-03  Bruno Haible  <bruno@clisp.org>
107277         * lib/utf8-ucs4.h: New file, from GNU gettext.
107278         * lib/utf16-ucs4.h: New file, from GNU gettext.
107279         * lib/ucs4-utf8.h: New file, from GNU gettext.
107280         * lib/ucs4-utf16.h: New file, from GNU gettext.
107282 2003-04-02  Bruno Haible  <bruno@clisp.org>
107284         * modules/binary-io: New file.
107285         * MODULES.html.sh (func_all_modules): Add it.
107287 2003-04-02  Bruno Haible  <bruno@clisp.org>
107289         * lib/binary-io.h: New file, from GNU gettext.
107291 2003-04-01  Bruno Haible  <bruno@clisp.org>
107293         * modules/pathname: New file.
107294         * MODULES.html.sh (func_all_modules): Add it.
107296 2003-04-01  Bruno Haible  <bruno@clisp.org>
107298         * lib/pathname.h: New file, from GNU gettext.
107299         * lib/concatpath.c: New file, from GNU gettext.
107301 2003-03-30  Bruno Haible  <bruno@clisp.org>
107303         * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
107305 2003-03-30  Bruno Haible  <bruno@clisp.org>
107307         * lib/copy-file.c (copy_file_preserving): Don't set owner if the
107308         function chown() doesn't exist.
107310 2003-03-28  Bruno Haible  <bruno@clisp.org>
107312         * modules/copy-file: New file.
107313         * MODULES.html.sh (func_all_modules): Add it.
107315 2003-03-28  Bruno Haible  <bruno@clisp.org>
107317         * m4/copy-file.m4: New file.
107319 2003-03-28  Bruno Haible  <bruno@clisp.org>
107321         * lib/copy-file.h: New file, from GNU gettext.
107322         * lib/copy-file.c: New file, from GNU gettext.
107324 2003-03-18  Jim Meyering  <jim@meyering.net>
107326         * lib/quote.c (quote_n): Fix typo in comment.
107328 2003-03-18  Bruno Haible  <bruno@clisp.org>
107330         * m4/onceonly.m4: Use m4_defn instead of defn, for better error
107331         checking.
107332         * m4/onceonly_2_57.m4: Likewise.
107334 2003-03-17  Bruno Haible  <bruno@clisp.org>
107336         * m4/onceonly.m4: Require autoconf 2.54 or newer.
107337         (m4_quote): Remove macro.
107338         * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
107340 2003-03-14  Jim Meyering  <jim@meyering.net>
107342         Merge changes from Coreutils.
107343         * lib/obstack.h (obstack_object_size): Declare temporary, __o,
107344         to be const, in order to avoid warnings.
107345         (obstack_room): Likewise.
107346         (obstack_empty_p): Likewise.
107348 2003-03-14  Bruno Haible  <bruno@clisp.org>
107350         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
107351         AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
107353 2003-03-13  Paul Eggert  <eggert@twinsun.com>
107355         Merge changes from Bison.
107356         * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
107357         (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
107358         when compiling Bison 1.875's `bitset bset = obstack_alloc
107359         (bobstack, bytes);'.  Problem reported by Nelson H. F. Beebe.
107360         * lib/hash.c: Include <stdbool.h> unconditionally.
107362 2003-03-13  Paul Eggert  <eggert@twinsun.com>
107364         * m4/onceonly.m4 (m4_quote): New macro.
107365         (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
107366         Quote AC_FOREACH variable-expansions properly.
107368 2003-03-13  Paul Eggert  <eggert@twinsun.com>
107370         * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
107372 2003-03-09  Paul Eggert  <eggert@twinsun.com>
107374         * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
107375         Reported by Bruce Becker; see:
107376         http://mail.gnu.org/archive/html/bug-bison/2003-03/msg00017.html
107378 2003-03-03  Paul Eggert  <eggert@twinsun.com>
107379             Bruno Haible  <bruno@clisp.org>
107381         * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
107382         Reported by John Hughes, see
107383         http://mail.gnu.org/archive/html/bug-bison/2003-02/msg00030.html
107385 2003-02-20  Bruno Haible  <bruno@clisp.org>
107387         * MODULES.html.sh (func_all_modules): Add poll.
107389 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
107391         * modules/poll: New file.
107393 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
107395         * lib/poll_.h: New file.
107396         * lib/poll.c: New file.
107398 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
107400         * m4/poll.m4: New file.
107402 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
107404         * modules/mathl: New file.
107406 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
107408         * lib/mathl.h: New file.
107409         * lib/acosl.c: New file.
107410         * lib/asinl.c: New file.
107411         * lib/atanl.c: New file.
107412         * lib/ceill.c: New file.
107413         * lib/cosl.c: New file.
107414         * lib/expl.c: New file.
107415         * lib/floorl.c: New file.
107416         * lib/frexpl.c: New file.
107417         * lib/ldexpl.c: New file.
107418         * lib/logl.c: New file.
107419         * lib/sincosl.c: New file.
107420         * lib/sinl.c: New file.
107421         * lib/sqrtl.c: New file.
107422         * lib/tanl.c: New file.
107423         * lib/trigl.c: New file.
107424         * lib/trigl.h: New file.
107426 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
107428         * m4/mathl.m4: New file.
107430 2003-02-18  Bruno Haible  <bruno@clisp.org>
107432         * MODULES.html.sh (func_all_modules): Add mathl.
107434 2003-02-17  Bruno Haible  <bruno@clisp.org>
107436         * modules/mkdtemp: New module.
107437         * MODULES.html.sh (func_all_modules): Add it.
107439 2003-02-17  Bruno Haible  <bruno@clisp.org>
107441         * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
107443 2003-02-17  Bruno Haible  <bruno@clisp.org>
107445         * lib/mkdtemp.h: New file, from GNU gettext.
107446         * lib/mkdtemp.c: New file, from GNU gettext.
107448 2003-02-02  Jim Meyering  <jim@meyering.net>
107450         * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
107451         e.g. glibc-2.2.93.
107453 2003-01-31  Bruno Haible  <bruno@clisp.org>
107455         * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
107456         'rpl_rename'.
107457         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
107458         'rpl_strnlen'.
107459         * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
107460         'rpl_strtod'.
107461         * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
107462         'rpl_utime'.
107464 2003-01-31  Bruno Haible  <bruno@clisp.org>
107466         * lib/rename.c: #undef rename before defining rpl_rename.
107467         * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
107469 2003-01-30  Bruno Haible  <bruno@clisp.org>
107471         * modules/vasnprintf, modules/vasprintf: New modules.
107472         * MODULES.html.sh (func_all_modules): Add them.
107474 2003-01-30  Bruno Haible  <bruno@clisp.org>
107476         * m4/signed.m4: New file, from GNU gettext.
107477         * m4/longdouble.m4: New file, from GNU gettext.
107478         * m4/wchar_t.m4: New file, from GNU gettext.
107479         * m4/wint_t.m4: New file, from GNU gettext.
107480         * m4/vasnprintf.m4: New file.
107481         * m4/vasprintf.m4: New file.
107483 2003-01-30  Bruno Haible  <bruno@clisp.org>
107485         * lib/printf-args.h: New file, from GNU gettext.
107486         * lib/printf-args.c: New file, from GNU gettext.
107487         * lib/printf-parse.h: New file, from GNU gettext.
107488         * lib/printf-parse.c: New file, from GNU gettext.
107489         * lib/vasnprintf.h: New file, from GNU gettext.
107490         * lib/vasnprintf.c: New file, from GNU gettext.
107491         * lib/asnprintf.c: New file, from GNU gettext.
107492         * lib/vasprintf.h: New file, from GNU gettext with modifications.
107493         * lib/vasprintf.c: New file, from GNU gettext.
107494         * lib/asprintf.c: New file, from GNU gettext.
107496 2003-01-29  Bruno Haible  <bruno@clisp.org>
107498         * modules/stpncpy: New module.
107499         * MODULES.html.sh (func_all_modules): Add it.
107501 2003-01-29  Bruno Haible  <bruno@clisp.org>
107503         * m4/stpncpy.m4: New file.
107505 2003-01-29  Bruno Haible  <bruno@clisp.org>
107507         * lib/stpncpy.h: New file, from GNU gettext with modifications.
107508         * lib/stpncpy.c: New file, from GNU gettext with modifications.
107510 2003-01-28  Bruno Haible  <bruno@clisp.org>
107512         * modules/c-ctype: New module.
107513         * MODULES.html.sh (func_all_modules): Add it.
107515 2003-01-28  Bruno Haible  <bruno@clisp.org>
107517         * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
107518         Paul Eggert.
107519         * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
107520         Paul Eggert.
107522 2003-01-27  Bruno Haible  <bruno@clisp.org>
107524         * modules/xsetenv: New module.
107525         * MODULES.html.sh (func_all_modules): Add it.
107527 2003-01-27  Bruno Haible  <bruno@clisp.org>
107529         * lib/xsetenv.h: New file, from GNU gettext.
107530         * lib/xsetenv.c: New file, from GNU gettext.
107532 2003-01-23  Jim Meyering  <jim@meyering.net>
107534         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
107535         from working on systems without dirfd (at least Irix and OSF1/Tru64).
107537 2003-01-23  Bruno Haible  <bruno@clisp.org>
107539         * modules/minmax: New module.
107540         * MODULES.html.sh (func_all_modules): Add it.
107542 2003-01-23  Bruno Haible  <bruno@clisp.org>
107544         * lib/minmax.h: New file, from GNU gettext, with comments from Paul
107545         Eggert.
107547 2003-01-22  Bruno Haible  <bruno@clisp.org>
107549         * modules/exit: New module.
107550         * MODULES.html.sh (func_all_modules): Add it.
107552 2003-01-22  Bruno Haible  <bruno@clisp.org>
107554         * lib/exit.h: New file, from GNU gettext.
107556 2003-01-19  Bruno Haible  <bruno@clisp.org>
107558         * gnulib-tool: Recognize option --extract-maintainer.
107559         (func_get_maintainer): New function.
107560         * modules/*: Add Maintainer entry.
107562 2003-01-16  Jim Meyering  <jim@meyering.net>
107564         * m4/regex.m4: The `regex' struct is both input and output.
107565         Initialize it before each use.  Patch by Tim Waugh.
107567 2003-01-16  Bruno Haible  <bruno@clisp.org>
107569         * MODULES.html.sh: Add a table of contents. Add the module name as
107570         leftmost column. Add hyperlinks.
107572 2003-01-15  Bruno Haible  <bruno@clisp.org>
107574         * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
107576 2003-01-15  Bruno Haible  <bruno@clisp.org>
107578         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
107579         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
107580         suffix.
107582 2003-01-15  Bruno Haible  <bruno@clisp.org>
107584         * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
107586 2003-01-15  Bruno Haible  <bruno@clisp.org>
107588         * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
107589         * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
107591 2003-01-14  Jim Meyering  <jim@meyering.net>
107593         * lib/same.c (same_name): Tweak a comment.
107595 2003-01-14  Bruno Haible  <bruno@clisp.org>
107597         * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
107598         when a string comparison is sufficient.
107600 2003-01-14  Bruno Haible  <bruno@clisp.org>
107602         * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
107603         'unsigned int'.
107605 2003-01-14  Bruno Haible  <bruno@clisp.org>
107607         * lib/hash-pjw.c: Add comment about low quality of this function.
107609 2003-01-13  Bruno Haible  <bruno@clisp.org>
107611         * modules/stpcpy: Distribute lib/stpcpy.h.
107612         * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
107614 2003-01-13  Bruno Haible  <bruno@clisp.org>
107616         * modules/*: Add a description.
107617         * modules/strpbrk: Fix Makefile.am snippet.
107618         * modules/strtoimax: Fix dependencies.
107619         * modules/strtoumax: Likewise.
107621 2003-01-13  Bruno Haible  <bruno@clisp.org>
107623         * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
107624         * modules/alloca (Makefile.am): All object files depend on alloca.h.
107625         * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
107627 2003-01-13  Bruno Haible  <bruno@clisp.org>
107629         * gnulib-tool (func_create_testdir): Store config/* files in the main
107630         directory.
107631         * config.rpath: Move to ...
107632         * config/config.rpath: ... here.
107633         * modules/gettext: Contains config/config.rpath, not config.rpath.
107634         * modules/iconv: Likewise.
107636 2003-01-12  Paul Eggert  <eggert@twinsun.com>
107638         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
107639         to avoid collisions with libcurses and libreadline.
107641         * m4/getstr.m4: Remove.
107642         * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
107644 2003-01-12  Paul Eggert  <eggert@twinsun.com>
107646         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
107647         to avoid collisions with libcurses and libreadline.
107649         * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
107650         * lib/getstr.h, getstr.c: Remove.
107651         * lib/getline.c: Include "getline.h", to check interface.
107652         Move body of old getstr.c here: this defines MIN_CHUNK and
107653         declares getdelim2, which is renamed from getstr.
107654         (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
107656         * lib/linebuffer.c (readlinebuffer): Renamed from readline.
107657         All uses changed.
107658         * lib/linebuffer.h: Likewise.
107659         (readline): Remove backward-compatibility macro.
107661 2003-01-12  Paul Eggert  <eggert@twinsun.com>
107663         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
107664         to avoid collisions with libcurses and libreadline.
107665         * getstr: Remove.
107666         * MODULES.html.sh: Remove getstr.
107667         * modules/getline: Depend on unlocked-io, not getstr.
107669 2003-01-12  Jim Meyering  <jim@meyering.net>
107671         * lib/makepath.c: Don't test HAVE_ERRNO_H.  It's not necessary.
107673 2003-01-10  Bruno Haible  <bruno@clisp.org>
107675         * modules/alloca: Change Makefile.am requirements. Simplify Include
107676         requirements. Add lib/alloca_.h to file list.
107678 2003-01-10  Bruno Haible  <bruno@clisp.org>
107680         * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
107682 2003-01-10  Bruno Haible  <bruno@clisp.org>
107684         * lib/alloca_.h: New file.
107685         * lib/getdate.y: Unconditionally include alloca.h.
107686         * lib/makepath.c: Likewise.
107687         * lib/setenv.c: Likewise.
107688         * lib/userspec.c: Likewise.
107690 2003-01-09  Karl Berry  <karl@gnu.org>
107692         * MODULES.html.sh: include `dirname $0` in PATH, to find
107693         gnulib-tool.
107695 2003-01-09  Bruno Haible  <bruno@clisp.org>
107697         * modules/stdbool: Change configure.ac, Makefile.am requirements.
107698         Simplify Include requirements. Add lib/stdbool.h.in to file list.
107700 2003-01-09  Bruno Haible  <bruno@clisp.org>
107702         * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
107704 2003-01-09  Bruno Haible  <bruno@clisp.org>
107706         * lib/stdbool.h.in: New file.
107708 2003-01-09  Bruno Haible  <bruno@clisp.org>
107710         * gnulib-tool (func_all_modules): Ignore files ending in ~.
107711         * MODULES.html.sh: Likewise.
107713 2003-01-08  Jim Meyering  <jim@meyering.net>
107715         * lib/full-write.c: Undefine and define-away `const' after inclusion
107716         of errno.h, not before.  Suggestion from Bruno Haible.
107718 2003-01-08  Bruno Haible  <bruno@clisp.org>
107720         * modules/full-read: Depend on full-write.
107722 2003-01-08  Bruno Haible  <bruno@clisp.org>
107724         * lib/safe-read.c: Include specification header first, to ensure its
107725         selfcontainedness.
107726         * lib/full-write.c: Likewise.
107728 2003-01-07  Jim Meyering  <jim@meyering.net>
107730         * lib/full-write.c: Rework so that it may serve to define full_read,
107731         too.
107732         * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
107734 2003-01-07  Bruno Haible  <bruno@clisp.org>
107736         * lib/strtoimax.c: Include <stdint.h> as an alternative to
107737         <inttypes.h>.
107738         * lib/xstrtol.h: Likewise.
107739         * lib/xstrtoimax.c: Likewise.
107740         * lib/xstrtoumax.c: Likewise.
107741         * lib/human.h: Likewise.
107743         * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
107744         on systems that have <inttypes.h> but not <stdint.h>.
107746 2003-01-07  Bruno Haible  <bruno@clisp.org>
107748         * MODULES.html.sh: Add copyright notice.
107749         (missed_files): Omit CVS directory entries.
107750         (func_module): Make it work with sed-3.02.
107751         * MODULES.txt: Remove file.
107753 2003-01-06  Jim Meyering  <jim@meyering.net>
107755         * lib/version-etc.c: Update year in translatable copyright string.
107757 2003-01-03  Karl Berry  <karl@gnu.org>
107759         * config/config.{guess,sub}: update from prep.
107761 2003-01-02  Karl Berry  <karl@gnu.org>
107763         * doc/COPYING.DOC: belatedly updated to 1.2.
107765 2003-01-01  Karl Berry  <karl@gnu.org>
107767         * gnulib-tool (func_verify_module): report module name $module in
107768         error message, not $1.
107769         * gnulib-tool (create-testdir): don't complain if destdir couldn't
107770         be created, only if it doesn't exist.
107771         * gnulib-tool (last_checkin_date): don't expand the $Date here.
107773 2002-12-31  Paul Eggert  <eggert@twinsun.com>
107775         * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
107777 2002-12-31  Paul Eggert  <eggert@twinsun.com>
107779         * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
107780         memcmp if strcoll doesn't work.
107782 2002-12-31  Bruno Haible  <bruno@clisp.org>
107784         * lib/utime.c (utime_null): No need to call ftruncate if the file was
107785         nonempty.
107787 2002-12-31  Bruno Haible  <bruno@clisp.org>
107789         * lib/memcoll.c (STRCOLL): New macro.
107790         (memcoll): Use it.
107792 2002-12-31  Bruno Haible  <bruno@clisp.org>
107794         * lib/localcharset.h: New file.
107795         * lib/localcharset.c: Include it.
107796         * lib/unicodeio.c: Likewise.
107798 2002-12-31  Bruno Haible  <bruno@clisp.org>
107800         * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
107801         * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
107803 2002-12-31  Bruno Haible  <bruno@clisp.org>
107805         * lib/getline.h: Include <stddef.h>, for size_t.
107807         * lib/unicodeio.h: Include <stddef.h>, for size_t.
107808         * lib/unicodeio.c: Don't include <stddef.h>.
107810 2002-12-31  Bruno Haible  <bruno@clisp.org>
107812         * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
107813         HAVE_TM_ZONE.
107815 2002-12-24  Karl Berry  <karl@gnu.org>
107817         * config/config.guess: update from prep.
107819 2002-12-24  Bruno Haible  <bruno@clisp.org>
107821         General infrasructure.
107822         * m4/README: Rewritten.
107823         * m4/onceonly.m4: New file.
107824         * m4/onceonly_2_57.m4: New file.
107826         Module atexit.
107827         * m4/atexit.m4: New file.
107829         Module strtod.
107830         * m4/strtod.m4: New file.
107832         Module strtol.
107833         * m4/strtol.m4: New file.
107835         Module strtoul.
107836         * m4/strtoul.m4: New file.
107838         Module memchr.
107839         * m4/memchr.m4: New file.
107841         Module memcmp.
107842         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
107843         (jm_FUNC_MEMCMP): Invoke it.
107845         Module memcpy.
107846         * m4/memcpy.m4: New file.
107848         Module memmove.
107849         * m4/memmove.m4: New file.
107851         Module memset.
107852         * m4/memset.m4: New file.
107854         Module strcspn.
107855         * m4/strcspn.m4: New file.
107857         Module strpbrk.
107858         * m4/strpbrk.m4: New file.
107860         Module strstr.
107861         * m4/strstr.m4: New file.
107863         Module strerror.
107864         * m4/strerror.m4: New file.
107866         Module mktime.
107867         * m4/mktime.m4: Renamed from jm-mktime.m4.
107868         (gl_PREREQ_MKTIME): New macro.
107869         (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
107871         Module malloc.
107872         * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
107873         (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
107874         Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
107876         Module realloc.
107877         * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
107878         (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
107879         Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
107881         Module strftime.
107882         * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
107883         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
107884         Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
107885         gl_TM_GMTOFF.
107886         (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
107888         Module xalloc.
107889         * m4/xalloc.m4: New file.
107891         Module alloca.
107892         * m4/alloca.m4: New file.
107894         Module putenv.
107895         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
107896         (jm_FUNC_PUTENV): Invoke it.
107898         Module setenv.
107899         * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
107900         (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
107901         when invoked twice.
107902         (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
107903         gt_FUNC_SETENV.
107905         Module memrchr.
107906         * m4/memrchr.m4: New file.
107908         Module stpcpy.
107909         * m4/stpcpy.m4: New file.
107911         Module strcase.
107912         * m4/strcase.m4: New file.
107914         Module strdup.
107915         * m4/strdup.m4: New file.
107917         Module strnlen.
107918         * m4/strnlen.m4: New file.
107920         Module strndup.
107921         * m4/strndup.m4: New file.
107923         Module xstrtod.
107924         * m4/xstrtod.m4: New file.
107926         Module xstrtol.
107927         * m4/xstrtol.m4: New file.
107929         Module getdate.
107930         * m4/getdate.m4: New file.
107932         Module unlocked-io.
107933         * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
107934         (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
107935         * m4/jm-glibc-io.m4n: Remove file.
107937         Module long-options.
107938         * m4/long-options.m4: New file.
107940         Module md5.
107941         * m4/md5.m4: New file.
107943         Module sha.
107944         * m4/sha.m4: New file.
107946         Module getstr.
107947         * m4/getstr.m4: New file.
107949         Module getline.
107950         * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
107951         (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
107952         <sys/types.h>, for size_t. Use the function name gnu_getline, not
107953         simply getline. Infoke gl_PREREQ_GETLINE.
107955         Module obstack.
107956         * m4/obstack.m4: New file.
107958         Module hash.
107959         * m4/hash.m4: New file.
107961         Module readtokens.
107962         * m4/readtokens.m4: New file.
107964         Module strverscmp.
107965         * m4/strverscmp.m4: New file.
107967         Module stdbool.
107968         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
107969         OSF/1.
107971         Module strtoll.
107972         * m4/strtoll.m4: New file.
107974         Module strtoull.
107975         * m4/strtoull.m4: New file.
107977         Module strtoimax.
107978         * m4/strtoimax.m4: New file.
107980         Module strtoumax.
107981         * m4/strtoumax.m4: New file.
107983         Module xstrtoimax.
107984         * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
107985         jm_AC_PREREQ_XSTRTOIMAX.
107986         Moved the strtol prerequisites to strtol.m4.
107987         Moved the strtoll prerequisites to strtoll.m4.
107988         Moved the strtoimax prerequisites to strtoimax.m4.
107990         Module xstrtoumax.
107991         * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
107992         jm_AC_PREREQ_XSTRTOUMAX.
107993         Moved the strtoul prerequisites to strtoul.m4.
107994         Moved the strtoull prerequisites to strtoull.m4.
107995         Moved the strtoumax prerequisites to strtoumax.m4.
107997         Module chown.
107998         * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
107999         (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
108001         Module dup2.
108002         * m4/dup2.m4: New file.
108004         Module ftruncate.
108005         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
108006         (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
108008         Module getgroups.
108009         * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
108010         (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
108012         Module gettimeofday.
108013         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
108014         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
108015         gl_PREREQ_GETTIMEOFDAY.
108017         Module mkdir.
108018         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
108019         (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
108021         Module mkstemp.
108022         * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
108023         (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
108024         jm_AC_TYPE_UINTMAX_T.
108025         (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
108027         Module stat.
108028         * m4/stat.m4 (gl_PREREQ_STAT): New macro.
108029         (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
108031         Module lstat.
108032         * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
108033         (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
108035         Module timespec.
108036         * m4/timespec.m4 (gl_TIMESPEC): New macro.
108037         (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
108038         * m4/st_mtim.m4: Indentation.
108040         Module nanosleep.
108041         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
108042         (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
108043         gl_PREREQ_NANOSLEEP.
108045         Module regex.
108046         * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
108047         (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
108048         (gl_REGEX): New macro.
108050         Module rename.
108051         * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
108052         (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
108054         Module rmdir.
108055         * m4/rmdir.m4: New file.
108057         Module utime.
108058         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
108059         * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
108060         (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
108062         Module dirname.
108063         * m4/dirname.m4: New file.
108065         Module getopt.
108066         * m4/getopt.m4: New file.
108068         Module unistd-safer.
108069         * m4/unistd-safer.m4: New file.
108071         Module fnmatch.
108072         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
108073         declaration.
108074         (gl_PREREQ_FNMATCH_EXTRA): New macro.
108075         (gl_FUNC_FNMATCH_POSIX): New macro.
108076         (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
108077         gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
108078         simply fnmatch.
108080         Module exclude.
108081         * m4/exclude.m4: New file.
108083         Module human.
108084         * m4/human.m4: New file.
108086         Module acl.
108087         * m4/acl.m4: Nop.
108089         Module backupfile.
108090         * m4/backupfile.m4: New file.
108091         * m4/d-ino.m4: Indentation.
108093         Module fsusage.
108094         * m4/fsusage.m4 (gl_FSUSAGE): New macro.
108095         (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
108096         (gl_PREREQ_FSUSAGE_EXTRA): New macro.
108098         Module dirfd.
108099         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
108100         requirements.
108102         Module euidaccess.
108103         * m4/euidaccess.m4: New file.
108105         Module file-type.
108106         * m4/file-type.m4: New file.
108108         Module fileblocks.
108109         * m4/fileblocks.m4: New file.
108111         Module filemode.
108112         * m4/filemode.m4: New file.
108114         Module isdir.
108115         * m4/isdir.m4: New file.
108117         Module lchown.
108118         * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
108119         (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
108121         Module makepath.
108122         * m4/makepath.m4: New file.
108124         Module modechange.
108125         * m4/modechange.m4: New file.
108127         Module mountlist.
108128         * m4/mountlist.m4: New file.
108129         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
108130         Indentation.
108132         Module path-concat.
108133         * m4/path-concat.m4: New file.
108135         Module pathmax.
108136         * m4/pathmax.m4: New file.
108138         Module same.
108139         * m4/same.m4: New file.
108141         Module save-cwd.
108142         * m4/save-cwd.m4: New file.
108144         Module savedir.
108145         * m4/savedir.m4: New file.
108147         Module xgetcwd.
108148         * m4/xgetcwd.m4: New file.
108149         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
108151         Module xreadlink.
108152         * m4/xreadlink.m4: New file.
108154         Module safe-read.
108155         * m4/safe-read.m4: New file.
108157         Module safe-write.
108158         * m4/safe-write.m4: New file.
108160         Module closeout.
108161         * m4/closeout.m4: New file.
108163         Module stdio-safer.
108164         * m4/stdio-safer.m4: New file.
108166         Module getpass.
108167         * m4/getpass.m4: New file.
108169         Module getugroups.
108170         * m4/getugroups.m4: New file.
108172         Module group-member.
108173         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
108174         (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
108176         Module idcache.
108177         * m4/idcache.m4: New file.
108179         Module userspec.
108180         * m4/userspec.m4: New file.
108182         Module gettime.
108183         * m4/clock_time.m4: New file.
108184         * m4/gettime.m4: New file.
108186         Module settime.
108187         * m4/settime.m4: New file.
108189         Module posixtm.
108190         * m4/posixtm.m4: New file.
108192         Module gethostname.
108193         * m4/gethostname.m4: New file.
108195         Module canon-host.
108196         * m4/canon-host.m4: New file.
108198         Module gettext.
108199         * m4/codeset.m4: New file, from gettext-0.11.5.
108200         * m4/gettext.m4: New file, from gettext-0.11.5.
108201         * m4/glibc21.m4: New file, from gettext-0.11.5.
108202         * m4/iconv.m4: New file, from gettext-0.11.5.
108203         * m4/intdiv0.m4: New file, from gettext-0.11.5.
108204         * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
108205         * m4/inttypes.m4: New file, from gettext-0.11.5.
108206         * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
108207         * m4/isc-posix.m4: New file, from gettext-0.11.5.
108208         * m4/lcmessage.m4: New file, from gettext-0.11.5.
108209         * m4/lib-ld.m4: New file, from gettext-0.11.5.
108210         * m4/lib-link.m4: New file, from gettext-0.11.5.
108211         * m4/lib-prefix.m4: New file, from gettext-0.11.5.
108212         * m4/progtest.m4: New file, from gettext-0.11.5.
108213         * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
108214         * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
108215         * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
108217         Module localcharset.
108218         * m4/localcharset.m4: New file.
108220         Module hard-locale.
108221         * m4/hard-locale.m4: New file.
108223         Module mbswidth.
108224         * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
108225         onceonly macros.
108226         * m4/mbrtowc.m4: Add comment.
108228         Module memcasecmp.
108229         * m4/memcasecmp.m4: New file.
108231         Module memcoll.
108232         * m4/memcoll.m4: New file.
108234         Module unicodeio.
108235         * m4/unicodeio.m4: New file.
108237         Module rpmatch.
108238         * m4/rpmatch.m4: New file.
108240         Module yesno.
108241         * m4/yesno.m4: New file.
108243         Module exitfail.
108244         * m4/exitfail.m4: New file.
108246         Module c-stack.
108247         * m4/c-stack.m4 (gl_C_STACK): New macro.
108248         (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
108250         Module error.
108251         * m4/error.m4 (gl_ERROR): New macro.
108252         (jm_PREREQ_ERROR): Use onceonly macros.
108254         Module fatal.
108255         * m4/fatal.m4: New file.
108257         Module getloadavg.
108258         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
108259         (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
108261         Module getpagesize.
108262         * m4/getpagesize.m4: New file.
108264         Module getusershell.
108265         * m4/getusershell.m4: New file.
108267         Module physmem.
108268         * m4/physmem.m4: New file.
108270         Module posixver.
108271         * m4/posixver.m4: New file.
108273         Module quotearg.
108274         * m4/quotearg.m4: New file.
108276         Module quote.
108277         * m4/quote.m4: New file.
108279         Module readutmp.
108280         * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
108282         Module sig2str.
108283         * m4/sig2str.m4: New file.
108285         Other.
108286         * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
108287         ulonglong.m4.
108288         * m4/intmax_t.m4: New file.
108289         * m4/d-type.m4: Indentation.
108290         * m4/jm-macros.m4: Update.
108291         * m4/prereq.m4 (jm_PREREQ): Update.
108292         (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
108293         (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
108294         (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
108295         (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
108296         (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
108297         (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
108298         (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
108299         (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
108300         (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
108301         (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
108302         (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
108303         (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
108304         (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
108305         (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
108306         (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
108307         (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
108308         (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
108309         (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
108310         * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
108312 2002-12-24  Bruno Haible  <bruno@clisp.org>
108314         * MODULES.txt: Update according to m4/ changes.
108316         Module gettext.
108317         * config.rpath: New file, from gettext-0.11.5.
108319         * modules/*: New module descriptions.
108320         * gnulib-tool: New file.
108321         * MODULES.html.sh: New file.
108323 2002-12-21  Karl Berry  <karl@gnu.org>
108325         * doc/fdl.texi: update to version 1.2.
108327 2002-12-19  Karl Berry  <karl@gnu.org>
108329         * config/config.guess: update from prep.
108331 2002-12-18  Bruno Haible  <bruno@clisp.org>
108333         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
108334         * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
108336 2002-12-17  Bruno Haible  <bruno@clisp.org>
108338         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
108339         stdlib.h, string.h.
108341 2002-12-17  Bruno Haible  <bruno@clisp.org>
108343         * lib/canon-host.c (strdup): Remove unused declaration.
108345         * lib/fsusage.c: Include full_read.h.
108346         (get_fs_usage): Use full_read instead of safe_read.
108348         * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
108350 2002-12-12  Karl Berry  <karl@gnu.org>
108352         * config/config.guess: update from prep.
108354 2002-12-11  Bruno Haible  <bruno@clisp.org>
108356         * m4/setenv.m4: New file, from gettext-0.11.5.
108358 2002-12-11  Bruno Haible  <bruno@clisp.org>
108360         * lib/setenv.h: Rewritten to cope with systems that have setenv() but
108361         not unsetenv().
108362         * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
108363         modifications:
108365         2002-12-11  Bruno Haible  <bruno@clisp.org>
108367                 * setenv.c (alloca): Fall back to malloc.
108368                 (freea): New macro.
108369                 (setenv): Use freea() to free memory allocated with alloca().
108371         2002-11-13  Bruno Haible  <bruno@clisp.org>
108373                 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
108374                 function declarations.
108375                 * unsetenv.c (unsetenv): Likewise.
108377         2002-03-04  Bruno Haible  <bruno@clisp.org>
108379                 Portability to AIX 4.3.3.
108380                 * unsetenv.c: New file, extracted from setenv.c.
108381                 * setenv.c: Move the unsetenv() function to unsetenv.c.
108383         2001-12-20  Bruno Haible  <bruno@clisp.org>
108385                 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
108386                 use malloc instead. For SunOS 4.
108388         2001-12-11  Bruno Haible  <bruno@clisp.org>
108390                 * setenv.c: Declare alloca.
108391                 (compar_fn_t): New typedef.
108392                 (KNOWN_VALUE, STORE_VALUE): Use it.
108394         * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
108395         setenv.h.
108397 2002-12-10  Paul Eggert  <eggert@twinsun.com>
108399         Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
108400         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
108401         Choose values that are less likely to collide with system fnmatch
108402         options.
108403         * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
108404         defined (e.g., a pure POSIX system).
108405         (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
108406         instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
108408 2002-12-06  Paul Eggert  <eggert@twinsun.com>
108410         Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
108411         a pain in practice to deal with generated m4 files.  This change
108412         goes together with the 2002-12-04 unlocked-io.h change in ../lib.
108414         * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
108415         and jm-glibc-io.m4, as they are no longer a special case.
108416         * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
108417         kludge and the auto-generation stuff.  Check only whether the
108418         functions are declared, not whether they exist, since older hosts
108419         that don't declare the functions can't use the optimization anyway.
108421 2002-12-06  Jim Meyering  <jim@meyering.net>
108423         * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
108425         Merge in changes from libc's misc/error.c, in preparation
108426         for the merge of gnulib's changes back into libc.
108428         * lib/error.c (_): Define only if not already defined.
108429         Move definition to follow all #include directives.
108430         Include unlocked-io.h only if !_LIBC.
108431         [_LIBC]: Include <libio/libioP.h>.
108432         [USE_IN_LIBIO]: Include <libio/iolibio.h>
108433         (fflush): Tweak definition to use INTUSE.
108434         (putc): Define.
108436 2002-12-05  Paul Eggert  <eggert@twinsun.com>
108438         * lib/alloca.c [defined emacs]: Include "lisp.h".
108439         (xalloc_die) [defined emacs]: New macro.
108440         (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
108441         [! defined emacs]: Include <xalloc.h>.
108442         (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
108443         (pointer): Typedef to POINTER_TYPE *.
108444         (malloc): Remove decl; we now always use xmalloc.
108445         (alloca): Use old-style definition, since Emacs needs this.
108446         Check for arithmetic overflow when computing combined size.
108448 2002-12-04  Paul Eggert  <eggert@twinsun.com>
108450         Do not generate unlocked-io.h automatically, since it's easier to
108451         maintain it by hand.
108453         * lib/unlocked-io.h: New file, from GNU diffutils,
108454         but with proper copyright notice and attribution.
108455         * lib/gen-uio: Remove.
108456         * lib/Makefile.am: Add copyright notice.
108457         (libfetish_a_SOURCES): Add unlocked-io.h.
108458         (BUILT_SOURCES, all-local): Remove unlocked-io.h.
108459         (DISTCLEANFILES, io_functions): Remove macros.
108460         (EXTRA_DIST): Remove gen_uio.
108461         (unlocked-io.h): Remove rule.
108463 2002-12-04  Jim Meyering  <jim@meyering.net>
108465         Reflect the fact that stat.c and lstat.c are no longer generated.
108466         * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
108467         (DISTCLEANFILES): Likewise.
108468         (EXTRA_DIST): Likewise.
108469         (all_local): Don't depend on stat.c or lstat.c.
108470         (stat.c, lstat.c): Remove rules.
108471         (EXTRA_DIST): Remove xstat.in.
108473         * lib/xstat.in: Remove file.  Contents moved into stat.c.
108474         * lib/stat.c: New file.  Contents mostly from xstat.in.
108475         * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
108476         * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
108478         * lib/safe-read.c: Rework so that it may serve to define safe_write,
108479         too.
108480         * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
108482 2002-12-03  Jim Meyering  <jim@meyering.net>
108484         * lib/safe-read.c, safe-write.c: Change variable names and comments,
108485         but not semantics, to minimize the differences between these two files.
108486         (safe_read): Change comment to mention SAFE_READ_ERROR.
108488         * lib/safe-read.c (IS_EINTR): Define.
108489         (safe_read): Use IS_EINTR in place of in-function cpp directives.
108491 2002-12-02  Jim Meyering  <jim@meyering.net>
108493         * lib/safe-read.c (EINTR): Define.
108494         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
108495         (INT_MAX): Provide fallback.
108496         (safe_read): Rewrite to iterate IFF the read fails with EINTR.
108498         * lib/safe-read.h (SAFE_READ_ERROR): Define.
108500 2002-12-02  Bruno Haible  <bruno@clisp.org>
108502         * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
108503         Define, taken from safe-read.c.
108504         (INT_MAX): Provide fallback.
108505         (safe_write): Rewrite to iterate IFF the write fails with EINTR.
108506         * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
108508         * lib/safe-read.c (EINTR): Remove definition.
108509         (safe_read): Don't use EINTR if it is absent.
108511 2002-12-01  Jim Meyering  <jim@meyering.net>
108513         * lib/safe-read.c: (safe_read): Also exit the loop when read returns
108514         zero.
108515         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
108517 2002-11-27  Paul Eggert  <eggert@twinsun.com>
108519         * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
108520         hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
108521         with `if (! (value < limit)) abort ();', for readability.
108523 2002-11-26  Karl Berry  <karl@gnu.org>
108525         * lib/strdup.c: copy from libc again, with jim's ok.
108526         * lib/.cppi-disable: re-add strdup.c
108528 2002-11-25  Karl Berry  <karl@gnu.org>
108530         * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
108531         instead of "strtol.c".
108533 2002-11-25  Karl Berry  <karl@gnu.org>
108535         * config/install-sh: update from automake for variable quoting, $0 in
108536         error msgs, etc.
108538         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
108539         * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
108540         entry.
108542 2002-11-25  Jim Meyering  <jim@meyering.net>
108544         * lib/mktime.c: Sync from libc, now that it has the latest fix.
108546 2002-11-24  Karl Berry  <karl@gnu.org>
108548         * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
108549         regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
108551 2002-11-24  Jim Meyering  <jim@meyering.net>
108553         Update from coreutils:
108555         * lib/mktime.c: Merge in changes from libc.
108557         Avoid a link-time failure on some Linux systems.
108558         * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
108559         (otherwise).
108560         (__mon_yday): Declare with the STATIC attribute.
108561         (__mktime_internal): Likewise.
108562         Based on a report from Greg Schafer.
108564 2002-11-23  Jim Meyering  <jim@meyering.net>
108566         * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
108567         Use `unsigned', not `int', as type of index.
108569         * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
108571         * lib/fsusage.c: Remove unneeded parentheses around operands of
108572         `defined'.
108574 2002-11-22  Paul Eggert  <eggert@twinsun.com>
108576         * lib/quotearg.h: Allow multiple inclusion by surrounding with
108577         "#ifndef QUOTEARG_H_".  Include <stddef.h>, for size_t,
108578         so that we can be included first.
108579         (PARAMS): Remove; we now assume C89 or later.  All uses removed.
108580         * lib/quotearg.c: Include quotearg.h immediately after config.h.
108581         No need to include stddef.h or sys/types.h any more.
108582         Surround local include files with "", not "<>".
108583         Assume HAVE_LIMITS_H unconditionally, as we assume C89.
108584         Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
108585         HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
108586         (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
108587         (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
108588         (ISPRINT): Remove; no longer needed now that we assume C89.
108590         (clone_quoting_options, quotearg_buffer, quotearg_n_options):
108591         Preserve errno.
108593         (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
108594         quotearg_char): Use SIZE_MAX rather than
108595         (size_t) -1 when we are talking about "infinity".
108597         (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
108599 2002-11-22  Paul Eggert  <eggert@twinsun.com>
108601         * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
108602         hint that one should use `if (! x) abort ();' rather than `assert
108603         (x);', and anyway it's one less thing to worry about configuring.
108604         (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
108605         hash_rehash, hash_insert): Use abort rather than assert.
108607 2002-11-22  Bruno Haible  <bruno@clisp.org>
108609         * lib/safe-read.h: Assume C89. Add comments.
108610         (safe_read): Change return type to size_t.
108611         * lib/safe-read.c (safe_read): Change return type to size_t. Handle
108612         byte counts > SSIZE_MAX correctly.
108613         * lib/safe-write.h: New file.
108614         * lib/safe-write.c: New file.
108615         * lib/full-read.h: New file.
108616         * lib/full-read.c: New file.
108617         * lib/full-write.h: Assume C89. Add comments.
108618         * lib/full-write.c: Include safe-write.h.
108619         (full_write): Rewritten to use safe_write.
108620         Suggested by Jim Meyering and Paul Eggert.
108622 2002-11-21  Jim Meyering  <jim@meyering.net>
108624         * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
108626         Merge in changes from the coreutils.
108628         2002-09-25  Paul Eggert  <eggert@twinsun.com>
108629         * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
108630         <stdint.h>.
108631         (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
108632         (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
108633         int.  Work more efficiently if X is the same width as uintmax_t.
108634         Do not compare X to -1, to avoid bogus compiler warning.
108635         (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
108636         Don't assume that f_frsize and f_bsize are the same type.
108638         * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
108639         warning on FreeBSD.
108641         * lib/makepath.c (make_path): Restore umask *before* creating the final
108642         component.
108643         (make_path): Minor reformatting.
108645         * lib/xmalloc.c: Adjust to work with new autoconf macros,
108646         AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
108647         HAVE_MALLOC/HAVE_REALLOC.
108649         * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
108650         dummy ones.  At least on GNU/Linux systems, `auto' means something
108651         else.
108652         From Michael Stone.
108654 2002-11-21  Bruno Haible  <bruno@clisp.org>
108656         Remove case insensitive option matching.
108657         * lib/argmatch.h (argcasematch): Remove declaration.
108658         (ARGCASEMATCH): Remove macro.
108659         (__xargmatch_internal): Remove case_sensitive argument.
108660         (XARGMATCH): Update.
108661         (XARGCASEMATCH): Remove macro.
108662         * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
108663         case_sensitive argument.
108664         (argcasematch): Remove function.
108665         (__xargmatch_internal): Remove case_sensitive argument.
108666         (main): Use XARGMATCH instead of XARGCASEMATCH.
108668         * lib/xmalloc.c: Change compile-time error message. Add comment about
108669         required autoconf version.
108671 2002-11-20  Paul Eggert  <eggert@twinsun.com>
108673         Merge argmatch cleanups from Bison.  Assume C89.
108675         * lib/argmatch.c: Include config.h here, not in argmatch.h.
108676         Include stdlib.h, for EXIT_FAILURE.
108677         Always include <string.h>, since we assume C89.
108678         (EXIT_FAILURE): Remove pre-C89 bug workaround.
108679         * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
108680         Include <stddef.h> instead, since it's all we need for size_t.
108681         (PARAMS): Remove.  All uses removed.
108682         (ARRAY_CARDINALITY): Do not bother to #undef.
108683         (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
108684         ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
108685         Remove unnecessary parentheses.
108686         (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
108687         Insert necessary parentheses.
108688         (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
108689         (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
108691 2002-11-19  Bruno Haible  <bruno@clisp.org>
108693         * lib/mbswidth.c: Include mbswidth.h right at the beginning.
108694         * lib/mbswidth.h: Include <stddef.h>, for size_t.
108696         * lib/mbswidth.h (PARAMS): Remove macro.
108697         (mbswidth, mbsnwidth): Use ANSI C function declarations.
108698         * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
108700         * lib/gcd.h (PARAMS): Remove macro.
108701         (gcd): Use ANSI C function declarations.
108702         * lib/gcd.c (gcd): Likewise.
108704 2002-11-15  Bruno Haible  <bruno@clisp.org>
108706         * lib/strcspn.c: Include <stddef.h>.
108707         (strcspn): Use ANSI C function declaration. Change return type to
108708         size_t. Use NULL.
108709         * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
108710         (strpbrk): Use NULL.
108711         * lib/strpbrk.h (PARAMS): Remove macro.
108712         (strpbrk): Use ANSI C function declaration.
108713         * lib/strstr.c: Don't include <sys/types.h>.
108714         * lib/strstr.h (PARAMS): Remove macro.
108715         (strstr): Use ANSI C function declarations.
108717 2002-11-14  Karl Berry  <karl@gnu.org>
108719         * config/mkinstalldirs: `do' on separate line, instead of
108720         `for var; do'.
108722 2002-11-06  Bruno Haible  <bruno@clisp.org>
108724         * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
108725         * lib/gcd.c (gcd): Likewise.
108727 2002-11-05  Bruno Haible  <bruno@clisp.org>
108729         * lib/gcd.h: New file, from gettext-0.11.5.
108730         * lib/gcd.c: New file, from gettext-0.11.5.
108732 2002-11-05  Bruno Haible  <bruno@clisp.org>
108734         * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
108735         * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
108736         * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
108737         * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
108739         * lib/argmatch.c: Include gettext.h instead of <locale.h> and
108740         <libintl.h>.
108741         * lib/makepath.c: Include gettext.h instead of <locale.h> and
108742         <libintl.h>.
108744         * lib/closeout.c: Include gettext.h instead of <libintl.h>.
108745         * lib/human.c: Include gettext.h instead of <libintl.h>.
108746         * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
108747         * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
108748         * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
108749         * lib/userspec.c: Include gettext.h instead of <libintl.h>.
108750         * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
108751         * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
108752         (textdomain): Remove definition.
108753         * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
108755         * lib/long-options.c: Remove include of <libintl.h> and definition of
108756         _.
108757         * lib/same.c: Remove include of <libintl.h> and definition of _.
108759 2002-11-04  Owen Taylor  <otaylor@redhat.com>
108761         * lib/config.charset: A few additions for Solaris.
108763 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
108765         Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
108766         * lib/localcharset.c (locale_charset): Declare as extern "C".
108768 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
108770         * lib/config.charset: msdos in uk_UA uses CP1125.
108772 2002-11-04  Bruno Haible  <bruno@clisp.org>
108774         * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
108775         * lib/strcase.h: New file, from GNU gettext-0.11.5.
108776         * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
108777         * lib/strstr.h: New file, from GNU gettext-0.11.5.
108778         * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
108780 2002-11-04  Bruno Haible  <bruno@clisp.org>
108782         * lib/localcharset.c (locale_charset): Don't return an empty string.
108784 2002-11-04  Bruno Haible  <bruno@clisp.org>
108786         * lib/localcharset.c (get_charset_aliases): Add more Windows specific
108787         aliases.
108789 2002-11-04  Bruno Haible  <bruno@clisp.org>
108791         * lib/config.charset: Update for newest glibc. Add canonical names
108792         ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
108794 2002-11-04  Bruno Haible  <bruno@clisp.org>
108796         * lib/config.charset: Add support for NetBSD.
108798 2002-11-04  Bruno Haible  <bruno@clisp.org>
108800         * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
108802 2002-11-01  Bruno Haible  <bruno@clisp.org>
108804         * configure.in: Add AC_CONFIG_AUX_DIR call.
108805         (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
108806         test/Makefile.
108807         * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
108809 2002-09-28  Karl Berry  <karl@gnu.org>
108811         * config/srclist.txt: can't copy install-sh/mkinstalldirs from
108812         installed automake until the next release, since changes have been
108813         made.
108815 2002-09-25  Karl Berry  <karl@gnu.org>
108817         * lib/strdup.c: copy from libc/string (via ../config/srclist*).
108818         * lib/getopt*: copy from libc/posix.
108819         * lib/gettext.h: copy from gettext.
108820         * lib/.cppi-disable: add strdup.c, gettext.h.
108822 2002-09-25  Karl Berry  <karl@gnu.org>
108824         * config/srclist.txt: enable gettext.h check.
108825         * config/config.{guess,sub}: update from prep.
108826         * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
108827                 from automake 1.6.3.
108828         See srclist*.
108830 2002-08-23  Stefan Monnier  <monnier@cs.yale.edu>
108832         * regex.c (PATFETCH): Remove the translating fetch.
108833         (PATFETCH_RAW): Rename to PATFETCH.
108834         (set_image_of_range): New fun.
108835         (SET_RANGE_TABLE_WORK_AREA): Use it.
108836         (regex_compile): Don't translate the pattern chars so eagerly.
108837         Only do it when inserting an `exactn' bytecode or when handling
108838         a char-range.
108839         (mutually_exclusive_p): Avoid empty statement.
108841 2002-07-06  Jim Meyering  <meyering@lucent.com>
108843         * m4/README: Don't mention Makefile.am.in.
108844         Outline how I've tested changes to .m4 files.  Yep, it's a pain.
108846 2002-07-01  Jim Meyering  <meyering@lucent.com>
108848         * lib/c-stack.c: Include sys/time.h.
108849         From Volker Borchert.
108851 2002-06-26  Paul Eggert  <eggert@twinsun.com>
108853         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
108855 2002-06-26  Paul Eggert  <eggert@twinsun.com>
108857         * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
108858         New macro.  Use it uniformly instead of
108859         (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
108860         It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
108861         reported by Vin Shelton.
108863 2002-06-22  Paul Eggert  <eggert@twinsun.com>
108865         * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
108866         Do not assume SA_SIGINFO behavior.
108867         Bug reported by Jim Meyering on NetBSD 1.5.2.
108869 2002-06-22  Jim Meyering  <meyering@lucent.com>
108871         * m4/c-stack.m4: New file, from diffutils-2.8.2.
108872         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
108874         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
108875         now that configure.ac uses AC_GNU_SOURCE.
108876         (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
108877         * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
108879         Update to latest tools.  Suggestions from Paul Eggert.
108880         * m4/stdbool.m4: New file, from diffutils-2.8.2.
108881         * m4/gnu-source.m4: Update from diffutils-2.8.2.
108882         * m4/fnmatch.m4: Likewise.
108883         * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
108884         to AC_HEADER_STDBOOL
108886 2002-06-22  Jim Meyering  <meyering@lucent.com>
108888         * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
108889         redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
108891 2002-06-22  Jim Meyering  <meyering@lucent.com>
108893         * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
108895         * lib/exitfail.c, exitfail.h: Likewise.
108896         * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
108898         * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
108899         of fnmatch.h.
108900         (EXTRA_DIST): Add fnmatch_loop.c.
108901         (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
108903         * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
108904         * lib/fnmatch.c: Update from diffutils-2.8.2.
108905         * lib/fnmatch_.h: New file.  From diffutils-2.8.2.
108906         * lib/fnmatch.h: Remove file.
108908 2002-06-21  Jim Meyering  <meyering@lucent.com>
108910         * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
108911         * m4/mbrtowc.m4: Likewise.
108913         * m4/mbstate_t.m4: Update from diffutils-2.8.2.
108914         * m4/mbswidth.m4: Reflect name change:
108915         s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
108916         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
108918         * m4/lib-link.m4: Update from gettext-0.11.2.
108919         * m4/gettext.m4: Likewise.
108921         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
108922         From Alfred M. Szmidt.
108924 2002-06-18  Paul Eggert  <eggert@twinsun.com>
108926         * lib/file-type.h: Report an error if neither S_ISREG nor
108927         S_IFREG is defined, instead of using a test specific to glibc
108928         2.2.  This should be safe, since POSIX requires S_ISREG and
108929         Unix Version 7 had S_IFREG.  We don't need to check for
108930         <sys/types.h> since we don't use any symbols that it defines.
108932 2002-06-15  Richard Dawe  <richdawe@bigfoot.com>
108934         * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
108935         $@-t, so that each temporary file name is unique and valid in the first
108936         8 characters, for operation under DOS.
108938 2002-06-15  Paul Eggert  <eggert@twinsun.com>
108940         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
108942 2002-06-15  Jim Meyering  <meyering@lucent.com>
108944         Work even with DJGPP 2.03, which lacks support for symlinks.
108945         From Richard Dawe.
108946         * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
108947         is defined.
108948         * lib/lchown.c (S_ISLNK): Likewise.
108950 2002-06-15  Jim Meyering  <meyering@lucent.com>
108952         * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
108953         For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
108954         have been included before this file.
108956 2002-06-14  Jim Meyering  <meyering@lucent.com>
108958         * lib/file-type.h: Use the version from diffutils-2.8.2.
108959         * lib/file-type.c: Likewise.
108961 2002-06-07  Jim Meyering  <meyering@lucent.com>
108963         * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
108964         They're needed at least for NetBSD 1.5.2.
108965         ($statxfs_includes): Include those same headers.
108966         ($statxfs_includes): Include sys/vfs.h if available.
108967         ($statxfs_includes): Likewise for sys/statvfs.h.
108968         Check for the following members in both structs statfs and statvfs:
108969         f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
108971 2002-06-01  Jim Meyering  <meyering@lucent.com>
108973         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
108974         s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
108976 2002-05-28  Jim Meyering  <meyering@lucent.com>
108978         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
108979         Reported by Volker Borchert.
108981 2002-05-27  Jim Meyering  <meyering@lucent.com>
108983         Fix a problem seen only on nonconforming systems whereby ls.c's
108984         use of localtime, and then of gettimeofday would cause trouble:
108985         the localtime call used to initialize rpl_gettimeofday's save
108986         mechanism would clobber ls's current local time information so
108987         that in any long listing the first file would always be listed
108988         with date 1970-01-01.  Analysis by Volker Borchert.
108990         * lib/gettimeofday.c (localtime): Undefine.
108991         (rpl_localtime): New function.
108993 2002-05-27  Jim Meyering  <meyering@lucent.com>
108995         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
108996         localtime.
108998         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
108999         use the replacement function; it wouldn't resolve at link time.
109000         Reported by Volker Borchert.
109002 2002-05-22  Jim Meyering  <meyering@lucent.com>
109004         * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
109005         file-type.h.
109006         * lib/file-type.h: New file.
109007         * lib/file-type.c (file_type): New file/function.  Extracted from
109008         diffutils.
109010 2002-04-30  Jim Meyering  <meyering@lucent.com>
109012         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
109014 2002-04-29  Paul Eggert  <eggert@twinsun.com>
109016         * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
109018 2002-04-29  Paul Eggert  <eggert@twinsun.com>
109020         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
109021         Do not check for alloca.h (no longer used) or stdbool.h (was never
109022         used?).  Add AM_C_PROTOTYPES since hard-locale.h uses it.
109024 2002-04-29  Paul Eggert  <eggert@twinsun.com>
109026         * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
109028 2002-04-29  Jim Meyering  <meyering@lucent.com>
109030         * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
109031         * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
109032         Use AC_FUNC_STRNLEN here instead.
109034         * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
109035         With autoconf-2.53a, it's part of AC_PROG_CC.
109037 2002-04-28  Paul Eggert  <eggert@twinsun.com>
109039         * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
109040         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
109042 2002-04-28  Paul Eggert  <eggert@twinsun.com>
109044         * lib/sig2str.h, lib/sig2str.c: New files.
109045         * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
109047 2002-04-28  Paul Eggert  <eggert@twinsun.com>
109049         * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
109050         depending on <sys/wait.h> and WTERMSIG.  Default to 64 instead
109051         of 127, since 64 is the largest conceivable number for ancient
109052         nonstandard hosts.
109053         * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
109055 2002-04-28  Jim Meyering  <meyering@lucent.com>
109057         * lib/sig2str.c (WTERMSIG): Remove definition (unused).
109059 2002-04-24  Jim Meyering  <meyering@lucent.com>
109061         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
109062         (jm_PREREQ): Use it.
109064         * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
109065         mach/mach.h fcntl.h.
109066         Check for this function: setlocale.
109068 2002-04-24  Jim Meyering  <meyering@lucent.com>
109070         * lib/gettext.h: New file, from Gettext.
109071         * lib/Makefile.am (INCLUDES): Remove -I../intl.
109072         (libfetish_a_SOURCES): Add gettext.h.
109074 2002-04-16  Jim Meyering  <meyering@lucent.com>
109076         * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
109077         ut_pid, ut_id, ut_exit.
109079 2002-04-16  Jim Meyering  <meyering@lucent.com>
109081         * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
109082         (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
109083         (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
109085 2002-04-12  Jim Meyering  <meyering@lucent.com>
109087         * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
109088         now-bogus check for f_type in sys/mount.h.  Instead, just test for the
109089         existence of the getmntinfo function.  Needed for Darwin 5.3.
109091         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
109092         This is necessary at least on Darwin 5.3.
109094         * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
109095         AC_FUNC_STRNLEN.  Otherwise, we'd end up putting two copies of
109096         strnlen.o in the library, and that makes some versions of ranlib
109097         object.
109099 2002-04-12  Jim Meyering  <meyering@lucent.com>
109101         * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
109103 2002-04-09  Jim Meyering  <meyering@lucent.com>
109105         * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
109106         to be more precise.  Rather than saying we're checking whether the
109107         function `works', say what we're testing.
109108         * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
109109         Reported by Bruno Haible.
109111 2002-03-10  Jim Meyering  <meyering@lucent.com>
109113         * lib/makepath.c (make_path): Remove a comma from a diagnostic.
109114         Suggestion from Santiago Vila.
109116 2002-03-08  Jim Meyering  <meyering@lucent.com>
109118         * lib/rename.c: Mention that this wrapper is needed also on
109119         mips-dec-ultrix4.4 systems.
109121 2002-03-02  Jim Meyering  <meyering@lucent.com>
109123         * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
109124         not HAVE_CLOCK_SETTIME.
109126 2002-02-27  Paul Eggert  <eggert@twinsun.com>
109128         * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
109129         Check for clock_settime.
109131 2002-02-27  Paul Eggert  <eggert@twinsun.com>
109133         * lib/nanosleep.h: Rename to....
109134         * lib/timespec.h: New name for nanosleep.h.  All uses changed.
109136         * lib/gettime.c: New file.
109137         * lib/settime.c: New file.
109138         * lib/stime.c: Remove.
109140         * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
109141         timespec.h.  Remove nanosleep.h.
109143 2002-02-25  Paul Eggert  <eggert@twinsun.com>
109145         * m4/acl.m4: New file.
109146         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
109147         Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
109149 2002-02-25  Paul Eggert  <eggert@twinsun.com>
109151         * lib/acl.c, lib/acl.h: New files.
109152         * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
109154 2002-02-24  Jim Meyering  <meyering@lucent.com>
109156         * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
109157         prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
109158         cause trouble.  Reported by Nelson Beebe.
109160 2002-02-23  Paul Eggert  <eggert@twinsun.com>
109162         * lib/path-concat.c (xpath_concat): Reorder code to pacify
109163         compilers that don't know that xalloc_die never returns.
109165 2002-02-20  Jim Meyering  <meyering@lucent.com>
109167         * lib/getdate.c: Regenerate using bison-1.33.
109169 2002-02-17  Jim Meyering  <meyering@lucent.com>
109171         * config/config.guess (main): Don't use `head -1'; it's no longer
109172         portable. Use `sed 1q' instead.
109174 2002-02-16  gettextize  <bug-gnu-gettext@gnu.org>
109176         * m4/codeset.m4: Upgrade to gettext-0.11.
109177         * m4/gettext.m4: Upgrade to gettext-0.11.
109178         * m4/glibc21.m4: Upgrade to gettext-0.11.
109179         * m4/iconv.m4: Upgrade to gettext-0.11.
109180         * m4/isc-posix.m4: Upgrade to gettext-0.11.
109181         * m4/lcmessage.m4: Upgrade to gettext-0.11.
109182         * m4/lib-ld.m4: New file, from gettext-0.11.
109183         * m4/lib-link.m4: New file, from gettext-0.11.
109184         * m4/lib-prefix.m4: New file, from gettext-0.11.
109185         * m4/progtest.m4: Upgrade to gettext-0.11.
109187 2002-02-15  Paul Eggert  <eggert@twinsun.com>
109189         * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
109190         (jm_PREREQ): Use it.
109192 2002-02-15  Paul Eggert  <eggert@twinsun.com>
109194         * lib/posixver.c, lib/posixver.h: New files.
109195         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
109197 2002-02-02  Paul Eggert  <eggert@twinsun.com>
109198             Bruno Haible  <bruno@clisp.org>
109200         * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
109201         (fwrite_success_callback): New declaration.
109202         * lib/unicodeio.c (unicode_to_mb): New function, extracted from
109203         print_unicode_char. Call failure callback instead of error.
109204         (fwrite_success_callback): New function.
109205         (exit_failure_callback): New function.
109206         (fallback_failure_callback): New function.
109207         (print_unicode_char): Call unicode_to_mb.
109209 2002-01-26  Jim Meyering  <meyering@lucent.com>
109211         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
109212         * m4/strnlen.m4: Remove file, now that it's part of autoconf.
109214 2002-01-26  Jim Meyering  <meyering@lucent.com>
109216         * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
109218 2002-01-22  Paul Eggert  <eggert@twinsun.com>
109220         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
109222 2002-01-22  Jim Meyering  <meyering@lucent.com>
109224         * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
109225         Otherwise, some versions of automake would omit the rule that makes
109226         Makefile from Makefile.in.
109228 2002-01-21  Paul Eggert  <eggert@twinsun.com>
109230         * lib/xmemcoll.h, lib/xmemcoll.c: New files.
109231         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
109232         * lib/memcoll.c: Include errno.h, and declare errno if not defined.
109233         (memcoll): Set errno to zero if there is no error.
109235         * lib/quotearg.c (quotearg_buffer_restyled):
109236         Fix bug with quoting buffers containing NUL when backslashing escapes.
109237         This bug was exposed by the other changes in this patch.
109238         (quotearg_n_options): New arg ARGSIZE.
109239         All callers changed.
109240         (quoting_options_from_style): New function.
109241         (quotearg_n_style): Use it.
109242         (quotearg_n_style_mem): New function.
109244         * lib/quotearg.h (quotearg_n_style_mem): New function.
109246 2002-01-19  Jim Meyering  <meyering@lucent.com>
109248         * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
109249         Remove useless quotes: DF_PROG="df".
109250         * m4/strnlen.m4: New file.
109252 2002-01-16  Paul Eggert  <eggert@twinsun.com>
109254         * lib/backupfile.c (ISDIGIT): Comment fix.
109255         * lib/getdate.y (ISDIGIT): Likewise.
109256         * lib/posixtm.c (ISDIGIT, year): Likewise.
109257         * lib/strverscmp.c (ISDIGIT): Likewise.
109258         * lib/userspec.c (ISDIGIT): Likewise.
109260 2002-01-16  Jim Meyering  <meyering@lucent.com>
109262         * lib/getdate.y: Add three semicolons, each just before a closing
109263         brace. Bison (as of version 1.31) no longer papers over that mistake.
109265 2002-01-05  Jim Meyering  <meyering@lucent.com>
109267         * lib/version-etc.c (version_etc_copyright): Update copyright year.
109269 2001-12-19  Paul Eggert  <eggert@twinsun.com>
109271         * lib/closeout.c (close_stdout_status): If ferror (stdout), do
109272         not silently exit merely because the output buffer happens to
109273         have nothing pending.
109275 2001-12-18  Paul Eggert  <eggert@twinsun.com>
109277         See the big note in ../ChangeLog.
109278         * lib/human.c (suffixes): Prefer K to k for 1024.
109279         (generate_suffix_backwards): New function.
109280         (human_readable_inexact): Use it.
109281         * lib/xstrtol.c (__xstrtol): If there is no number but there
109282         is a valid suffix, assume 1.  "MB" now means decimal, "MiB" binary.
109283         Accept 'K' as well as 'k'.
109285 2001-12-15  Jim Meyering  <meyering@lucent.com>
109287         * lib/regex.h (__restrict_arr): Update from libc.
109289         * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
109290         as `remote' if the name starts with `//'.  Suggested by Michael Stone.
109291         (STREQ): Define.
109293 2001-12-14  Jim Meyering  <meyering@lucent.com>
109295         * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
109296         Suggestion from Bruno Haible.
109298 2001-12-10  Jim Meyering  <meyering@lucent.com>
109300         * lib/linebuffer.c: Remove explicit declarations of xmalloc and
109301         xrealloc, Instead, include "xalloc.h".
109302         (initbuffer): Don't cast xmalloc return value to char*.
109303         (readline): Reword comment.
109304         Don't cast xrealloc return value to char*
109305         Return NULL, not 0.
109307 2001-12-09  Jim Meyering  <meyering@lucent.com>
109309         * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
109310         about `signed and unsigned type in conditional expression'.
109311         * lib/posixtm.c (posix_time_parse): Likewise.
109313         * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
109315         * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
109316         to avoid a pedantic warning.
109318         * lib/getstr.c: Don't include assert.h.
109319         (getstr): Remove warning-evoking assertions.
109320         Return -1 if offset parameter is out of bounds.
109321         Change the type of a local from int to size_t.
109323         * lib/strftime.c (my_strftime_localtime_r): Include this function
109324         definition in the `#if ! HAVE_TM_GMTOFF' block.
109326         * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
109327         Include xalloc.h instead.
109329 2001-12-02  Jim Meyering  <meyering@lucent.com>
109331         * lib/tempname.c: Don't declare getenv, thus reverting the change of
109332         2001-11-18.  It's no longer necessary, now that stdlib.h is always
109333         included.
109335         * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
109336         __unbounded, and __ptrvalue.  Reported by Uwe H. Steinfeld.
109338 2001-11-30  Akim Demaille  <akim@epita.fr>
109340         * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
109341         before being defined.
109343 2001-11-27  Paul Eggert  <eggert@twinsun.com>
109345         * lib/quotearg.h (quotearg_n, quotearg_n_style):
109346         First arg is int, not unsigned.
109347         * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
109348         (SIZE_MAX, UINT_MAX): New macros.
109349         (quotearg_n_options): Abort if N is negative.
109350         Avoid overflow check on hosts where size_t is 64 bits and int
109351         is 32 bits, as overflow is impossible there.
109352         Fix off-by-one typo that caused unnecessary reallocation.
109354 2001-11-27  Jim Meyering  <meyering@lucent.com>
109356         * lib/tempname.c: Merge with version from libc.
109357         * lib/regex.c: Likewise.
109359         * lib/tempname.c: Include stdlib.h unconditionally.  On some old
109360         systems for which STDC_HEADERS is 0, it was not included, resulting in
109361         a warning about an integer-to-pointer conversion problem with getenv.
109362         Reported by Volker Borchert.
109364 2001-11-26  Jim Meyering  <meyering@lucent.com>
109366         * lib/gtod.h: Remove file.
109367         * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
109368         * lib/gettimeofday.c: Don't include gtod.h.
109369         (GTOD_init): Remove function.
109370         (rpl_gettimeofday): Do its job here instead, rather than aborting.
109371         Suggestion from Volker Borchert.
109373 2001-11-23  Jim Meyering  <meyering@lucent.com>
109375         * lib/hash.h (struct hash_table): Don't define here.  Merely declare
109376         it.
109377         * lib/hash.c (struct hash_table): Define it here instead.
109379 2001-11-22  Jim Meyering  <meyering@lucent.com>
109381         * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
109383 2001-11-20  Jim Meyering  <meyering@lucent.com>
109385         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
109386         SunOS 4.1.4 and Solaris 2.5.1 lose, too.
109388 2001-11-19  Jim Meyering  <meyering@lucent.com>
109390         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
109391         directory.  Use "conftestXXXXXX" as the template.
109392         Suggestion from Paul Eggert.
109394         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
109395         immediately, so the test doesn't mistakenly hit the max-open-files
109396         limit.
109398 2001-11-18  Paul Eggert  <eggert@twinsun.com>
109400         * lib/tempname.c (TMP_MAX): Remove; no longer needed.
109401         (TEMPORARIES): New macro.
109402         (__gen_tempname): Use TEMPORARIES rather than TMP_MAX.  This
109403         removes an artificial limitation (e.g. HP-UX 10.20, where
109404         TMP_MAX is 17576).
109406 2001-11-18  Jim Meyering  <meyering@lucent.com>
109408         * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
109410 2001-11-18  Jim Meyering  <meyering@lucent.com>
109412         * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
109413         on SunOS 4.
109415         * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
109416         files will be created before anything else.
109418 2001-11-17  Paul Eggert  <eggert@twinsun.com>
109420         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
109421         WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
109423 2001-11-17  Jim Meyering  <meyering@lucent.com>
109425         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
109426         Prompted by a report from Bob Proulx.
109428         * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
109429         Instead, require UTILS_FUNC_MKSTEMP.
109431 2001-11-17  Jim Meyering  <meyering@lucent.com>
109433         * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
109434         Now, that's done as part of AC_FUNC_STRTOD.
109436 2001-11-17  Jim Meyering  <meyering@lucent.com>
109438         * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
109439         that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
109440         rather than group writable.  Patch by Juan F. Codagnone.
109442         * lib/readtokens.c: Remove explicit declarations of xmalloc and
109443         xrealloc, Instead, include "xalloc.h".
109445         * lib/mountlist.c: Include unlocked-io.h after all system headers.
109446         Remove explicit declarations of xmalloc, xrealloc,
109447         and xstrdup.  Instead, include "xalloc.h".
109449         * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
109450         unlocked-io.h.
109451         * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
109452         Likewise.
109453         * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
109455         * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
109456         Reported by Padraig Brady.
109458         * lib/mkstemp.c: #undef mkstemp.
109459         Include config.h.
109460         (rpl_mkstemp): Rename from mkstemp.
109461         Protoize.
109463 2001-11-16  Jim Meyering  <meyering@lucent.com>
109465         * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
109466         (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
109467         determine the amount of total physical memory, use pstat_getstatic.
109468         HPUX-11 doesn't define _SC_PHYS_PAGES.
109469         (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
109470         If sysconf couldn't be used to determine the amount of available
109471         physical memory, use both pstat_getstatic and pstat_getdynamic.
109472         Based on a patch from Bob Proulx.
109474 2001-11-10  Jim Meyering  <meyering@lucent.com>
109476         * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
109477         (jm_PREREQ): Use it.
109479 2001-11-09  Jim Meyering  <meyering@lucent.com>
109481         * m4/jm-macros.m4: Require autoconf-2.52f.
109482         (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
109483         Use these AC_-prefixed names, not the AM_-prefixed ones.
109485         * m4/afs.m4 (jm_AFS): Quote the body.  Patch by Akim Demaille.
109487 2001-11-05  Jim Meyering  <meyering@lucent.com>
109489         * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
109491 2001-11-04  Jim Meyering  <meyering@lucent.com>
109493         * m4/fpending.m4: Remove unused cruft that saved, set, and restored
109494         $DEFS.
109496 2001-11-03  Jim Meyering  <meyering@lucent.com>
109498         * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
109499         of AC_DEFUN.
109501         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
109502         know the name of the variable in the macro definition.
109504 2001-11-03  Jim Meyering  <meyering@lucent.com>
109506         * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
109507         in argmatch_to_argument call.
109509         * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
109510         argument.
109512         * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
109513         e.g., a fault due to an attempt to free a NULL pointer.
109515 2001-11-01  Jim Meyering  <meyering@lucent.com>
109517         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
109518         * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
109520 2001-11-01  Jim Meyering  <meyering@lucent.com>
109522         * lib/dirfd.c, lib/dirfd.h: New files.
109523         * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
109525         * lib/hash.c (hash_print) [TESTING]: Clean up.
109527 2001-10-22  Paul Eggert  <eggert@twinsun.com>
109529         * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
109530         to avoid a warning if -Wall.
109532 2001-10-22  Jeff Bailey  <jbailey@outpost.dnsalias.org>
109534         * README: New file
109535         * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
109536         (per RMS's instructions, this is now the canonical source)
109537         * lgpl/, gpl/: New directories.
109539 2001-10-21  Paul Eggert  <eggert@twinsun.com>
109541         * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
109543 2001-10-21  Jim Meyering  <meyering@lucent.com>
109545         * lib/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
109546         this code would end up calling gettext even in packages built
109547         with --disable-nls.
109548         * lib/getopt.c (_): Likewise.
109549         * lib/regex.c (_): Likewise.
109551 2001-10-20  Paul Eggert  <eggert@twinsun.com>
109553         * m4/error.m4 (jm_PREREQ_ERROR):
109554         Do not invoke AC_CHECK_FUNCS with strerror_r, as
109555         AC_FUNC_STRERROR_R does that.
109556         Check for strerror declaration.
109558         * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
109559         are supposed to have them these days.
109560         (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
109561         Merge changes from latest Autoconf CVS.
109562         Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
109563         and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
109564         POSIX decided to standardize on the int flavor of strerror_r.
109566 2001-10-20  Paul Eggert  <eggert@twinsun.com>
109568         * lib/error.c (strerror_r): Do not declare unless !_LIBC.
109569         Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
109570         Use strerror_r that is only a macro, even if it is not a function.
109571         (strerror): Check for HAVE_DECL_STRERROR before declaring.
109572         (private_strerror): Use prototypes, not old-style function definition.
109573         (print_errno_message): New function.
109574         Support the POSIX 'int'-flavored strerror_r, as well as the traditional
109575         char*-flavored one.
109576         (error_tail, error, error_at_line): Use it.
109578 2001-10-11  Jim Meyering  <meyering@lucent.com>
109580         * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
109581         and quote_n (1, ... to avoid clobbering a buffer.
109583 2001-10-05  Jim Meyering  <meyering@lucent.com>
109585         * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
109586         hash-pjw.h.
109587         * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
109588         * lib/hash-pjw.h: New file.
109590 2001-09-30  Jim Meyering  <meyering@lucent.com>
109592         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
109593         `struct fsstat' has the `f_fstypename' member.
109594         Use that to define FS_TYPE, which is now used to make
109595         the getfsstat link test tighter.
109597 2001-09-30  Jim Meyering  <meyering@lucent.com>
109599         * lib/mountlist.c [MOUNTED_GETFSSTAT]:
109600         Include <sys/ucred.h>, for Apple Darwin.
109601         Include sys/mount.h and sys/fs_types.h only if available.
109602         (FS_TYPE): Define.
109603         (read_filesystem_list): Use FS_TYPE.
109605 2001-09-29  Paul Eggert  <eggert@twinsun.com>
109607         * lib/exclude.c (excluded_filename): 0 -> false, since it's
109608         a boolean context.
109610 2001-09-29  Jim Meyering  <meyering@lucent.com>
109612         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
109613         [one-argument getmntent function]): Include stdio.h before mntent.h.
109614         SunOS 4.1.x needs it for the declaration of `FILE'.
109615         Patch by Volker Borchert.
109617         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
109618         Check for these headers: sys/param.h sys/ucred.h sys/mount.h
109619         sys/fs_types.h, and make the link-test for getfsstat guard #include
109620         directives with appropriate #if HAVE_*_H tests so that we can
109621         detect getfsstat on Apple Darwin1.3.7 systems.
109622         Reported by Nelson Beebe.
109623         Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
109625 2001-09-28  Paul Eggert  <eggert@twinsun.com>
109627         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
109628         #defines strtoimax.  Also treat the other strto* functions
109629         like strtoimax.
109631         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
109632         Check for strtoul and strtoumax,
109633         as those declarations are made even in the signed case.
109634         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
109635         Likewise, for strtol and strtoimax.
109637 2001-09-28  Paul Eggert  <eggert@twinsun.com>
109639         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
109640         #defines strtoimax.  Also treat the other strto* functions
109641         like strtoimax.
109643         * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
109644         (strtoul): Do not declare if HAVE_DECL_STRTOUL.
109645         (strtoimax, strtoumax): Do not declare if already defined as a macro.
109647 2001-09-26  Jim Meyering  <meyering@lucent.com>
109649         Most macros in unlocked-io.h had the wrong number of arguments.
109650         * lib/gen-uio: New script.
109651         (USE_UNLOCKED_IO): Define to 1 if not already defined.
109652         * lib/unlocked-io.hin: Remove file.
109653         * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
109654         rather than trying to embed it here.
109655         (EXTRA_DIST): Add gen-uio.  Remove unlocked-io.hin
109656         Reported by Padraig Brady.
109658 2001-09-25  Volker Borchert  <bt@teknon.de>
109660         * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
109661         `result'.
109663 2001-09-24  Jim Meyering  <meyering@lucent.com>
109665         * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
109667 2001-09-23  Jim Meyering  <meyering@lucent.com>
109669         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
109670         instead of the mere test for existence of mntent.h.  The latter
109671         would get a false-positive on AIX 3.4 systems.
109672         In the outer getmntent if-block, don't die if neither of the getmntent
109673         tests succeeds.  Instead, just fall through and continue with the
109674         remaining tests.
109676 2001-09-23  Jim Meyering  <meyering@lucent.com>
109678         * lib/mountlist.c: Remove useless parentheses in #if directives.
109679         (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
109680         the deprecated MOUNTED symbol is no longer defined in mntent.h.
109682 2001-09-22  Jim Meyering  <meyering@lucent.com>
109684         * m4/gettext.m4: New file.  From gettext.
109685         * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
109686         * m4/progtest.m4: Likewise
109687         * m4/isc-posix.m4: Decrement serial number to sync with gettext.
109688         * m4/glibc21.m4: Likewise.
109690         * m4/libintl.m4: Remove.  No longer used.
109692 2001-09-22  Jim Meyering  <meyering@lucent.com>
109694         * lib/localcharset.c: Update from latest gettext.
109695         * lib/config.charset: Likewise.
109697 2001-09-20  Jim Meyering  <meyering@lucent.com>
109699         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
109700         strtoimax.
109701         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
109702         strtoumax.
109704 2001-09-20  Jim Meyering  <meyering@lucent.com>
109706         * lib/xstrtol.c (strtoimax): Guard declaration with
109707         `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
109708         The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
109709         have their own, conflicting declaration of strtoimax in sys/inttypes.h.
109710         (strtoumax): Likewise, for completeness (it wasn't necessary).
109712 2001-09-17  Paul Eggert  <eggert@twinsun.com>
109714         * lib/strtoimax.c (HAVE_LONG_LONG):
109715         Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
109716         (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
109717         to work around bug in IBM C compiler.
109719 2001-09-17  Jim Meyering  <meyering@lucent.com>
109721         * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
109722         * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
109723         * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
109724         * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
109725         * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
109726         whenever the right hand side need not be expanded by the shell.
109728 2001-09-16  Paul Eggert  <eggert@twinsun.com>
109730         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
109731         library.  It's not correct, as some older glibcs are buggy.
109732         fnmatch wasn't fixed until glibc 2.2.
109734         Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
109735         special shell magic here.
109737 2001-09-16  Jim Meyering  <meyering@lucent.com>
109739         * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
109740         * m4/jm-macros.m4: Require it.
109742 2001-09-16  Jim Meyering  <meyering@lucent.com>
109744         * lib/mkdir.c: New file.
109746 2001-09-15  Jim Meyering  <meyering@lucent.com>
109748         * m4/jm-macros.m4: Check for help2man.
109750 2001-09-11  Jim Meyering  <meyering@lucent.com>
109752         * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
109753         The body, by Paul Eggert, was moved here from configure.in.
109754         * m4/jm-macros.m4: Require UTILS_HOST_OS.
109756 2001-09-04  Paul Eggert  <eggert@twinsun.com>
109758         * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
109759         (jm_PREREQ): Use it.
109761 2001-09-04  Paul Eggert  <eggert@twinsun.com>
109763         * lib/xreadlink.c (xreadlink): Omit size_t* arg.  All uses changed.
109764         Use ssize_t, not int, to store result of readlink.
109765         Check for ssize_t overflow as well as size_t overflow,
109766         as POSIX says the result of readlink is implementation-defined
109767         when ssize_t overflows.
109768         Remove unnecessary cast to char*.
109769         Use free+malloc instead of realloc, as the storage doesn't need
109770         to be preserved and it's clearer and can be more efficient that way.
109771         (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
109772         * lib/xreadlink.h (xreadlink): Update prototype.
109774 2001-09-04  Paul Eggert  <eggert@twinsun.com>
109776         * lib/xgetcwd.c: Revert some of the previous change; intead,
109777         fix the HAVE_GETCWD_NULL code to behave more like the
109778         !HAVE_GETCWD_NULL code used to.
109780         Include "xalloc.h".
109781         (xgetcwd): Do not return NULL when memory is exhausted; instead,
109782         invoke xalloc_die.
109784 2001-09-03  Paul Eggert  <eggert@twinsun.com>
109786         * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
109787         sys/param.h, as pathmax.h includes them.
109789 2001-09-03  Paul Eggert  <eggert@twinsun.com>
109791         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
109792         (jm_PREREQ_XGETCWD): New macro.
109794         * m4/getcwd.m4: New file.
109796 2001-09-03  Paul Eggert  <eggert@twinsun.com>
109798         * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
109799         like the HAVE_GETCWD_NULL code.
109800         Include pathmax.h if not HAVE_GETCWD.
109801         Do not include xalloc.h.
109802         (INITIAL_BUFFER_SIZE): New symbol.
109803         Do not use xmalloc / xrealloc, since the caller is responsible for
109804         handling errors.  Preserve errno around `free' during failure.
109805         Do not overrun buffer when using getwd.
109807 2001-09-03  Paul Eggert  <eggert@twinsun.com>
109809         * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
109810         __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
109811         getcwd (NULL, 0).
109813 2001-09-03  Paul Eggert  <eggert@twinsun.com>
109815         * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
109816         usage of FNM_CASEFOLD and FNM_LEADING_DIR.  The bug was
109817         spotted by Jim Meyering.
109819 2001-09-03  Jim Meyering  <meyering@lucent.com>
109821         * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
109822         failure.
109824 2001-09-02  Jim Meyering  <meyering@lucent.com>
109826         * lib/error.c: Update from GNU libc.
109828 2001-09-01  Jim Meyering  <meyering@lucent.com>
109830         * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
109831         Used by df.
109833 2001-09-01  Jim Meyering  <meyering@lucent.com>
109835         * lib/xreadlink.c: New file.
109836         * lib/xreadlink.h: New file.
109837         * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
109838         xreadlink.h.
109840         * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
109841         doesn't conflict with sparc Solaris 7's definition in
109842         /usr/include/sys/int_types.h.
109844         * lib/exclude.c: Use `""', not `<>' to #include non-system header
109845         files.
109846         (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
109847         and strncasecmp as r-values.  Unixware didn't have declarations.
109849 2001-08-31  Paul Eggert  <eggert@twinsun.com>
109851         * lib/xstrtol.h: Add copyright notice.
109852         (_DECLARE_XSTRTOL): Improve quality of diagnostic for
109853         LONGINT_INVALID_SUFFIX_CHAR.
109855 2001-08-31  Paul Eggert  <eggert@twinsun.com>
109857         * lib/xstrtol.c (strtoimax): New decl.
109859 2001-08-31  Paul Eggert  <eggert@twinsun.com>
109861         * lib/xgetcwd.c: Don't include pathmax.h.
109862         Include stdlib.h and unistd.h if available.
109863         Include xalloc.h.
109864         (xmalloc, xstrdup, free): Remove decls.
109865         (xgetcwd): Don't assume sizes fit in unsigned.
109866         Check for overflow when computing sizes.
109867         Simplify reallocation code.
109869 2001-08-31  Paul Eggert  <eggert@twinsun.com>
109871         * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
109872         a directory's st_size can have an arbitrary value, so the old
109873         usage could waste an arbitrary amount of memory.  All uses
109874         changed.
109875         * lib/savedir.h: Update prototype.
109877 2001-08-31  Paul Eggert  <eggert@twinsun.com>
109879         * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
109881         * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
109882         old strtoimax.c.
109884         Also, make the following further changes to make this file's
109885         configuration more similar to that of strtol.c:
109886         (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED.  All uses changed.
109887         (strtoumax, uintmax_t, strtoull, strtol): Remove.
109888         (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
109889         (strtoimax): Renamed from strtoumax.  All uses of unsigned values
109890         changed to signed values.
109892         And make the following changes as well:
109893         Fix copyright notice, as 1999 was missing.
109894         (verify): New macro.
109895         (strtoimax): Check sizes at compile-time, not run-time.
109896         Prefer strtol to strtoll if both work.
109897         (main): Remove; it was not that useful and was a pain to maintain.
109899         * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
109901 2001-08-31  Jim Meyering  <meyering@lucent.com>
109903         * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
109904         Use an initial, malloc'd, buffer of length 128 rather than
109905         a statically allocated one of length 1024.
109907 2001-08-30  Paul Eggert  <eggert@twinsun.com>
109909         Simplify code, partly by assuming autoconf 2.52 semantics.
109911         * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
109913         * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
109914         (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
109915         All uses removed.
109916         (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
109917         Move AC_REQUIRE to next-to-top level, to avoid confusion.
109918         Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
109919         * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
109920         jm_AC_HEADER_INTTYPES_H.
109921         * m4/jm-macros.m4 (jm_MACROS): Likewise.
109923         * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
109925         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
109926         Quote first arg of AC_DEFUN.
109927         Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
109928         since they are needed to parse the include file even if we need
109929         only xstrtoimax.  Simplify logic behind the args to AC_REPLACE.
109930         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
109931         but with opposite signedness.
109933 2001-08-30  Paul Eggert  <eggert@twinsun.com>
109935         Merge 'exclude' changes from tar 1.13.22.
109936         This fixes one or two unlikely storage allocation overflow bugs,
109937         but doesn't change user-visible behavior otherwise.
109939 2001-08-30  Paul Eggert  <eggert@twinsun.com>
109941         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
109942         (jm_PREREQ_EXCLUDE): New macro.
109944 2001-08-30  Paul Eggert  <eggert@twinsun.com>
109946         * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
109947         tm to be declared.
109949 2001-08-30  Paul Eggert  <eggert@twinsun.com>
109951         * lib/hash.c: Remove '2001' from copyright notice.
109953 2001-08-30  Paul Eggert  <eggert@twinsun.com>
109955         * lib/full-write.h: New file.
109956         * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
109957         * lib/full-write.c: Correct credits, as cccp.c no longer
109958         exists and anyway it was so heavily changed from the old cccp
109959         code as to be unrecognizable.  Include full-write.h.
109960         (full_write): Return size_t, with short writes meaning failure.
109961         All callers changed.  This fixes a bug with large buffers
109962         on 64-bit hosts.
109963         * lib/utime.c: Include full-write.h.
109965 2001-08-30  Paul Eggert  <eggert@twinsun.com>
109967         * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
109968         (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
109969         (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
109970         Include if available.
109971         (<xalloc.h>): Include
109972         (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
109973         (verify): New macro.  Use it to verify that EXCLUDE macros do not
109974         collide with FNM macros.
109975         (struct patopts): New struct.
109976         (struct exclude): Use it, as exclude patterns now come with options.
109977         (new_exclude): Support above changes.
109978         (new_exclude, add_exclude_file):
109979         Initial size must now be a power of two to simplify overflow checking.
109980         (free_exclude, fnmatch_no_wildcards): New function.
109981         (excluded_filename): No longer requires options arg, as the options
109982         are determined by add_exclude.  Now returns bool, not int.
109983         (excluded_filename, add_exclude):
109984         Add support for the fancy new exclusion options.
109985         (add_exclude, add_exclude_file): Now takes int options arg.
109986         Check for arithmetic overflow when computing sizes.
109987         (add_exclude_file): xrealloc might modify errno, so don't
109988         realloc until after errno might be used.
109990         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
109991         New macros.
109992         (free_exclude): New decl.
109993         (add_exclude, add_exclude_file): Now takes int options arg.
109994         (excluded_filename): No longer requires options arg, as the options
109995         are determined by add_exclude.  Now returns bool, not int.
109997 2001-08-30  Paul Eggert  <eggert@twinsun.com>
109999         * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
110001 2001-08-27  Jim Meyering  <meyering@lucent.com>
110003         * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
110005         * lib/version-etc.c (N_): Remove definition.
110006         Revert most of last change.
110007         Instead, simply don't mark the `Copyright...' string for translation.
110008         Based on advice from Paul Eggert.
110010         * lib/strtoxmax.c: Tweak comment.
110012 2001-08-26  Jim Meyering  <meyering@lucent.com>
110014         * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
110016         * m4/xstrtoimax.m4: New file.
110017         * m4/xstrtoumax.m4: Add comments explaining why we
110018         AC_REPLACE_FUNCS(strtol).
110020 2001-08-26  Jim Meyering  <meyering@lucent.com>
110022         * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
110023         of copyright with `%s' so translators don't get an untranslated
110024         message in 2002.
110025         (COPYRIGHT_YEAR): Define.
110026         (version_etc): Use fprintf rather than fputs.
110027         Suggestion from Ulrich Drepper.
110029         * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
110031         * lib/strtoll.c: New file, from GNU libc.
110032         * lib/xstrtoimax.c: New file.
110034         * lib/xstrtol.h: Add xstrtoimax.
110035         * lib/strtoumax.c: New file.  Simply include "strtoumax.c".
110036         * lib/strtoimax.c: New file.  Likewise, but first define
110037         STRTOUXMAX_SIGNED.
110039         * lib/strtoumax.c: Factor to work both for unsigned and signed types,
110040         ...
110041         * lib/strtoxmax.c: ... then renamed to this.
110043 2001-08-18  Paul Eggert  <eggert@twinsun.com>
110045         * m4/inttypes.m4: Add AC_PREREQ(2.13).
110046         (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
110047         (jm_AC_TYPE_INTMAX_T): New macro.
110048         (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
110050         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
110052         * m4/longlong.m4: Renamed from ulonglong.m4.
110053         * m4/inttypes.m4: Renamed from inttypes_h.m4.
110054         * m4/uintmax_t.m4: Removed.
110056 2001-08-13  Paul Eggert  <eggert@twinsun.com>
110058         * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
110059         Port to Solaris 8, where 'sed' requires a space after the 'r'
110060         command, and where sh dislikes "$/".  Clean up the spacing a bit.
110061         Redirect output to $tmp just once.
110063 2001-08-12  Paul Eggert  <eggert@sic.twinsun.com>
110065         * lib/addext.c (<errno.h>): Include.
110066         (errno): Declare if not defined.
110067         (addext): Work correctly when pathconf returns -1 and leaves
110068         errno alone because there is no limit.  Also, work even if
110069         pathconf returns a value greater than SIZE_MAX.
110071 2001-08-12  Jim Meyering  <meyering@lucent.com>
110073         * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
110074         d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
110075         fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
110076         group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
110077         jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
110078         link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
110079         mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
110080         prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
110081         rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
110082         strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
110083         utime.m4, utimes.m4, xstrtoumax.m4:
110084         Quote the first argument in each use of AC_DEFUN.
110086 2001-08-12  Jim Meyering  <meyering@lucent.com>
110088         * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
110089         Simply `return getcwd (NULL, 0);'.
110090         [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
110091         Use 1300 as initial value for length, not PATH_MAX.
110093         * lib/pathmax.h: Clean up cpp syntax.
110095 2001-08-12  Jim Meyering  <meyering@lucent.com>
110097         * lib/gettimeofday.c: New file.
110098         * lib/gtod.h: New file.
110099         * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
110101 2001-08-05  Jim Meyering  <meyering@lucent.com>
110103         * m4/jm-macros.m4: Require autoconf-2.52.
110105 2001-08-04  Jim Meyering  <meyering@lucent.com>
110107         * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
110108         stmt, to get in sync with glibc.
110110 2001-08-03  Paul Eggert  <eggert@twinsun.com>
110112         The following changes are from gettext 0.10.39 as maintained by
110113         Bruno Haible.
110115         * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
110116         Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
110117         with inverted sense.  All uses changed.
110119         * lib/mbswidth.c: Don't include <limits.h>.
110120         Include <stdlib.h> and <string.h> unconditionally.
110121         (iswcntrl, mbsinit, ISCNTRL): New macros.
110122         (mbsnwidth): Use K&R style function declarations.
110123         Don't bother checking for MB_LEN_MAX == 1, since the compiler
110124         can optimize it when MB_CUR_MAX == 1.
110125         The width of control characters is zero, not 1.
110127 2001-08-03  Paul Eggert  <eggert@twinsun.com>
110129         The following changes are from gettext 0.10.39 as maintained by
110130         Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
110132         * m4/codeset.m4: Upgrade to serial AM1.
110133         (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
110134         all uses changed.  Quote first arg of AC_DEFUN.
110135         (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
110137         * m4/iconv.m4: Upgrade to serial AM2.
110138         (AM_ICONV): Renamed from jm_ICONV; all uses changed.
110139         Add --with-libconv-prefix.
110140         Quote first arg of AC_DEFUN.  Add description for ICONV_CONST.
110141         (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
110142         (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
110143         (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
110144         * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
110146         * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
110147         * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
110148         * m4/glibc21.m4 (jm_GLIBC21): Likewise.
110149         * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
110150         * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
110151         * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
110152         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
110153         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
110154         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
110156         * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
110157         string.h any more.
110159         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
110160         not the default value.
110162         2001-06-25  Bruno Haible  <haible@clisp.cons.org>
110163         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
110164         Also check for mbsinit.  Needed for SCO 3.2v5.0.2.
110165         Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
110166         Also check for iswcntrl, used for wcwidth fallback.
110167         Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
110168         to Autoconf 2.13.
110170 2001-08-03  Jim Meyering  <meyering@lucent.com>
110172         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
110173         as it was in the original.  Reported by Paul Eggert.
110175 2001-07-16  Jim Meyering  <meyering@lucent.com>
110177         * m4/gettimeofday.m4: New file.
110178         Prompted by a report from Bernhard Baehr.
110180 2001-07-15  Jim Meyering  <meyering@lucent.com>
110182         * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
110183         stuff. Now it's in ../Makefile.cfg.
110185 2001-07-15  Jim Meyering  <meyering@lucent.com>
110187         * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
110188         (BUILT_SOURCES): Add unlocked-io.h.
110189         (io_functions): Define.
110190         (unlocked-io.h): New rule.
110191         (DISTCLEANFILES): Add unlocked-io.h.
110192         (all-local): Depend on unlocked-io.h, to ensure it is created.
110194         * lib/unlocked-io.hin: New file
110196         * lib/regex.c: Update from glibc.
110198 2001-07-05  Jim Meyering  <meyering@lucent.com>
110200         * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
110201         recommendation.
110202         (libfetish_a_SOURCES): Put all .h files here instead.
110203         Remove a thus-exposed (better checks in automake) duplicate and
110204         two unnecessary .h files.
110206 2001-07-04  Jim Meyering  <meyering@lucent.com>
110208         * m4/Makefile.am.in (glibc-io.struct): New target.  Rework the code
110209         that generates jm-glibc-io.m4 so that it doesn't trigger any make
110210         distcheck failure.
110212 2001-07-02  Jim Meyering  <meyering@lucent.com>
110214         The following changes were prompted by suggestions from Bruno Haible.
110216         * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
110217         is now generated.
110218         * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
110219         definition of EXTRA_DIST.
110220         (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
110221         ensure that the generated file is created/updated whenever the list
110222         of $(unlocked_functions) is changed.
110223         (jm-glibc-io.m4): New rule.
110224         (unlocked-io.h): New rule -- currently unused.
110226 2001-06-24  Jim Meyering  <meyering@lucent.com>
110228         * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
110229         unmatched right bracket, rather than kludging it with an extra,
110230         falsely-matching quote in a comment.  Patch by Akim Demaille.
110232 2001-06-11  Jim Meyering  <meyering@lucent.com>
110234         * lib/regex.c: Update from GNU libc.
110236 2001-05-27  Jim Meyering  <meyering@lucent.com>
110238         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
110239         Check for ut_type in struct utmp.
110241 2001-05-27  Jim Meyering  <meyering@lucent.com>
110243         * lib/readutmp.h (UT_TYPE): Define.
110245 2001-05-24  Jim Meyering  <meyering@lucent.com>
110247         * lib/argmatch.c: Include "quote.h".
110248         (argmatch_invalid): Remove explicit `' quotes.  Instead, use the
110249         quote function.  Reported by Göran Uddeborg.
110251 2001-05-22  Jim Meyering  <meyering@lucent.com>
110253         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
110254         now that we use the package-supplied version unconditionally.
110255         (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
110257 2001-05-21  Jim Meyering  <meyering@lucent.com>
110259         * m4/regex.m4: Change a couple backticks to single quotes to avoid
110260         shell syntax errors.
110262 2001-05-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
110264         * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
110266 2001-05-20  Paul Eggert  <eggert@twinsun.com>
110268         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
110269         Don't bother to check library strftime, since
110270         we'll be using our own my_strftime function anyway.
110271         Define my_strftime instead of strftime.
110273 2001-05-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
110275         * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
110276         which is not yet declared.
110278 2001-05-15  Jim Meyering  <meyering@lucent.com>
110280         * m4/regex.m4: Use proper quoting so brackets appear in the test
110281         program.
110282         Reported by, and with help from, Bruno Haible.
110284 2001-05-13  Jim Meyering  <meyering@lucent.com>
110286         * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
110287         undefined.
110289 2001-05-11  Paul Eggert  <eggert@twinsun.com>
110291         dirname code cleanup.  base_name now behaves more compatibly
110292         with POSIX basename when given file names that have trailing
110293         slashes, and similarly for dir_name.  Add new primitives
110294         base_len and dir_len.  Put the directory-name-related decls
110295         into dirname.h.
110297         * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
110298         * lib/backupfile.c (base_name): Likewise.
110299         * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
110300         * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
110301         * lib/makepath.c (strip_trailing_slashes): Likewise.
110302         * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
110303         ISSLASH): Likewise.
110304         * lib/rename.c (strip_trailing_slashes): Likewise.
110305         * lib/same.c (base_name): Likewise.
110306         * lib/stripslash.c (ISSLASH): Likewise.
110308         * lib/addext.c: Include <dirname.h> after size_t is defined.
110309         * lib/backupfile.c: Likewise.
110311         * lib/addext.c (addext): Use base_len to trim redundant
110312         trailing slashes instead of doing it ourselves.
110313         But do not trim the last slash if it is not redundant.
110315         * lib/backupfile.c (find_backup_file_name,
110316         max_backup_version): Use base_len instead of rolling it ourselves.
110317         Handle the case of "" and (on DOS) "C:" correctly.
110319         * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
110320         needed. Include <string.h>, <dirname.h>.
110321         (base_name): Allow file names ending in slashes, other than names
110322         that are all slashes.  In this case, return the basename followed
110323         by the slashes.  This is more general, and can be used in places
110324         where the original base_name purposely had an assertion failure.
110325         (base_len): New function.
110327         * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
110328         Do not include <assert.h>; no longer needed.
110329         Include xalloc.h.
110330         (memrchr): Remove decl.
110331         (dir_name_r): Remove.
110332         (dir_len): Renamed from dirlen.  All callers changed.
110333         Rewrite in terms of base_name, for simplicity and consistency.
110334         (dir_name): Never return NULL.  All callers changed.
110335         Do not include <stdlib.h> in test program; no longer needed.
110336         return 0; is fine for test program.
110338         * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
110339         New macros.
110340         (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
110342         * lib/path-concat.c (path_concat): Use base_len to compute
110343         base length, not strlen; this means we cannot rely on memcpy
110344         to null-terminate.
110346         * lib/same.c (STREQ): Remove.
110347         (same_name): Handle the case where the basename ends in trailing '/'.
110349         * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
110350         a slash was stripped.  Do not strip the last slash after a
110351         file system prefix.
110353 2001-05-11  Paul Eggert  <eggert@twinsun.com>
110355         * lib/Makefile.am (libfetish_a_SOURCES):
110356         Add strftime.c, since we now compile it on all hosts.
110358         * lib/strftime.c (my_strftime):
110359         Define to nstrftime if emacs, but only if my_strftime is not defined.
110360         (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
110361         ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
110362         Add one more extra argument: a nanoseconds value.
110363         All uses changed.
110364         (ns): New macro.
110365         (my_strftime function): Add %N format.
110366         (emacs_strftimeu): Renamed from emacs_strftime,
110367         with extra ut argument.
110369 2001-05-09  Paul Eggert  <eggert@twinsun.com>
110371         * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
110373 2001-04-21  Jim Meyering  <meyering@lucent.com>
110375         * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
110376         doesn't interfere.
110378 2001-04-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
110380         * m4/ftruncate.m4: Check for chsize.
110381         Link with ftruncate.o unconditionally if ftruncate is missing.
110382         This was required when cross-compiling to i586-mingw32msvc.
110384 2001-04-08  Jim Meyering  <meyering@lucent.com>
110386         * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
110387         recomputed; that's necessary when the offset spans a DST transition.
110388         Patch by David J. MacKenzie.  Reported by Hon-Yin Kok.
110390 2001-04-02  Jim Meyering  <meyering@lucent.com>
110392         * lib/regex.h, regex.c: Update from GNU libc.
110394 2001-03-24  Jim Meyering  <meyering@lucent.com>
110396         * m4/jm-macros.m4: Require autoconf-2.49d.
110398 2001-03-20  Bruno Haible  <haible@clisp.cons.org>
110400         * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
110402 2001-03-19  Paul Eggert  <eggert@twinsun.com>
110404         * lib/version-etc.c (version_etc_copyright): Update to 2001.
110406 2001-03-17  Jim Meyering  <meyering@lucent.com>
110408         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
110409         now that the version in autoconf is equivalent.
110410         (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
110412         * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
110413         Suggestion from Akim Demaille.
110415         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
110416         (jm_PREREQ_TEMPNAME): New function.
110418 2001-03-16  Paul Eggert  <eggert@twinsun.com>
110420         * lib/tempname.c (uint64_t): Define to uintmax_t if
110421         not defined, and if UINT64_MAX is not defined.
110422         Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
110423         Reported by John David Anglin.
110425 2001-03-15  Bruno Haible  <haible@clisp.cons.org>
110427         * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
110428         resolve alias if codeset is empty.
110429         * lib/config.charset (BeOS): Use wildcard syntax.
110431 2001-03-13  Jim Meyering  <meyering@lucent.com>
110433         * lib/path-concat.c (path_concat)
110434         [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
110435         concatenating e.g., `C:' and `foo'.
110436         From Bruno Haible.
110438 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
110440         * lib/localcharset.c (locale_charset): Don't use
110441         setlocale(LC_CTYPE,NULL). Don't return NULL.
110442         * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
110444 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
110446         * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
110447         support for DOS/DJGPP.
110449 2001-03-01  Paul Eggert  <eggert@twinsun.com>
110451         * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
110452         lacks mkstemp.  Compile our own tempname.c if we compile our own
110453         mkstemp.c, as mkstemp relies on tempname.
110455 2001-03-01  Jim Meyering  <meyering@lucent.com>
110457         * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
110458         AH_VERBATIM really does output its argument verbatim.
110460 2001-02-28  Paul Eggert  <eggert@twinsun.com>
110462         * lib/Makefile.am (libfetish_a_SOURCES):
110463         Add dup-safer.c, fopen-safer.c.
110464         (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
110466         * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
110467         * lib/unistd-safer.h: New files.
110469 2001-02-25  Paul Eggert  <eggert@twinsun.com>
110471         The mkstemp replacement is taken from glibc 2.2.2, with some
110472         portability fixes for use outside glibc, as follows:
110474         * lib/tempname.c (struct_stat64): New macro.
110475         (direxists, __gen_tempname): Use it.
110476         This avoids a portability problem with Solaris 8.
110478         * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
110479         (<stddef.h>, <stdint.h>, <string.h>):
110480         Include only if STDC_HEADERS || _LIBC.
110481         (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
110482         (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
110483         (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
110484         (__set_errno): Define this macro if <errno.h> doesn't.
110485         (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
110486         Define these macros if <stdio.h> doesn't.
110487         (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
110488         Define these macros if <sys/stat.h>
110489         doesn't.  Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
110490         (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
110491         __xstat64): Define if not _LIBC.
110492         (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
110493         (__gen_tempname): Invoke gettimeofday only if
110494         HAVE_GETTIMEOFDAY || _LIBC;
110495         otherwise, fall back on plain "time".
110496         Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
110498         * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
110500         * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
110502 2001-02-18  Paul Eggert  <eggert@twinsun.com>
110504         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
110506 2001-02-17  Paul Eggert  <eggert@twinsun.com>
110508         * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
110509         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
110510         Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
110511         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
110513 2001-02-17  Paul Eggert  <eggert@twinsun.com>
110515         * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
110516         Remove workaround macros for hosts that have mbrtowc but not
110517         mbstate_t, as we now insist on proper declarations for both
110518         before using mbrtowc.
110520 2001-02-17  Jim Meyering  <meyering@lucent.com>
110522         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
110523         getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
110524         further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
110525         UnixWare 7.1.1.
110527         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
110528         rather than AC_CACHE_VAL.
110530 2001-02-17  Jim Meyering  <meyering@lucent.com>
110532         * lib/strtoul.c: Sync from GNU libc.  Use double quotes, not <...>
110533         around included file name.
110535         * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
110537         * lib/strftime.c: Update from GNU libc (the only changes were to
110538         comments).
110540 2001-02-17  Jim Meyering  <meyering@lucent.com>
110542         * lib/regex.c: Update from libc.
110544 2001-02-17  Bruno Haible  <haible@clisp.cons.org>
110546         * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
110547         clash.
110549 2001-02-16  Paul Eggert  <eggert@twinsun.com>
110551         * lib/alloca.c (malloc): Undef before defining, since stdlib.h
110552         may have defined it.  Needed for Encore Umax-3.0.9.16b systems.
110553         Reported by Mark Hounschell via Paul Eggert.
110555 2001-02-07  Jim Meyering  <meyering@lucent.com>
110557         * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
110559 2001-02-05  Jim Meyering  <meyering@lucent.com>
110561         * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
110562         it includes the patch required for `large file' support with at least
110563         HP-UX's 10.20 /bin/cc.
110565 2001-02-03  Jim Meyering  <meyering@lucent.com>
110567         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
110568         AS_IF, now that it works once again (mysteriously).
110569         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
110571 2001-01-30  Jim Meyering  <meyering@lucent.com>
110573         Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
110574         * m4/chown.m4: Rename conftestchown to conftest.chown.
110575         * m4/rename.m4: s/conftestdir/conftest.d1/ and
110576         s/conftestdir2/conftest.d2/.
110577         * m4/utimes.m4: s/conftestdata/conftest.data/
110578         Inspired by Pavel Roskin's change in autoconf.
110580 2001-01-30  Bruno Haible  <haible@clisp.cons.org>
110582         * lib/config.charset: Update for FreeBSD 4.2.
110584 2001-01-27  Jim Meyering  <meyering@lucent.com>
110586         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
110587         a use of AS_IF.
110588         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
110590 2001-01-26  Jim Meyering  <meyering@lucent.com>
110592         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
110593         quotearg.c includes it.
110595 2001-01-26  Jim Meyering  <meyering@lucent.com>
110597         * lib/quotearg.c: Include stddef.h.
110598         * lib/quote.c: Include stddef.h.
110599         Reported by Axel Kittenberger.
110601         * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
110602         line in double quotes so that it evokes a better diagnostic.
110603         [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
110604         Reported by Axel Kittenberger.
110606 2001-01-24  Stefan Monnier  <monnier@cs.yale.edu>
110608         * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
110609         as if it was a `charset'.
110611 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
110613         * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
110614         has const.
110616 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
110618         * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
110619         to avoid a warning.  Add back 'const' to inptr.
110621 2001-01-20  Jim Meyering  <meyering@lucent.com>
110623         Be sure that headers are checked before used in code compiled
110624         for the type checks.
110625         * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
110626         In place of that, invoke jm_CHECK_ALL_TYPES.
110627         (jm_CHECK_ALL_HEADERS): New functions with the above checks.
110628         (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
110629         Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
110630         The check for ssize_t was mistakenly run before the test for unistd.h.
110632         The configure-time check for stdbool.h was missing.
110633         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
110634         (jm_PREREQ_HASH): New function.
110636 2001-01-17  Jim Meyering  <meyering@lucent.com>
110638         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
110639         for autoconf-2.49c.
110640         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
110642 2001-01-16  Jim Meyering  <meyering@lucent.com>
110644         * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
110645         From Bruno Haible.
110647 2001-01-14  Jim Meyering  <meyering@lucent.com>
110649         * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
110650         foo and bar.  Create conftestdir/ in the script, not in the C code.
110651         Remove directories in the script, not in the C code.
110652         Remove conftestdir{,2} before trying to create the directory.
110653         Make the entire configure script fail if the mkdir fails.
110655 2001-01-14  Jim Meyering  <meyering@lucent.com>
110657         * lib/rename.c: New file.  From Volker Borchert.
110658         Include stdlib.h, string.h or strings.h, and xalloc.h.
110659         Use strip_trailing_slashes rather than open-coding it.
110661 2001-01-03  Paul Eggert  <eggert@twinsun.com>
110663         * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
110665 2001-01-03  Jim Meyering  <meyering@lucent.com>
110667         * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
110668         of local `inptr' to avoid warning with some system declarations of
110669         iconv.
110671 2001-01-02  Volker Borchert  <bt@teknon.de>
110673         * m4/rename.m4: New file.
110674         * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
110676 2001-01-01  Jim Meyering  <meyering@lucent.com>
110678         * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
110679         even on systems with utmpx.h.  It's necessary for the declaration of
110680         utmp's ut_user member.  Reported by Andreas Jaeger.
110682         * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
110683         available. They are required for the declarations of getgrgid and
110684         getpwuid resp.
110685         (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
110686         Reported by Andreas Jaeger.
110688 2001-01-01  Alexandre Duret-Lutz  <duret_g@epita.fr>
110690         * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
110691         expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
110692         so `make install' also works in VPATH builds.
110694 2000-12-31  Alexandre Duret-Lutz  <duret_g@epita.fr>
110696         * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
110697         prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
110698         can be used in subdirectories.
110700 2000-12-29  Paul Eggert  <eggert@twinsun.com>
110702         * lib/modechange.c: Do not assume that mode_t uses the
110703         traditional octal encoding.  E.g. "chmod 1 FOO" should set
110704         the other-execute bit of FOO even if S_IXOTH != 1.
110706         (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
110707         WOTH, XOTH, ALLM): New macros.
110708         (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
110709          S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
110710         Use them.
110711         (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
110712         (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
110713         (mode_compile):
110714         No need to use uintmax_t; unsigned long is long enough.
110715         Don't bother to get suffix since we don't use it.
110717 2000-12-26  Jim Meyering  <meyering@lucent.com>
110719         * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
110720         better with autoheader.
110722 2000-12-24  Jim Meyering  <meyering@lucent.com>
110724         * lib/hash.c (is_prime): Return explicit boolean values.
110725         (hash_get_first): Return NULL to appease Irix5.6's 89.
110726         Reported by Nelson Beebe.
110728 2000-12-19  Bruno Haible  <haible@clisp.cons.org>
110730         * lib/localcharset.c (locale_charset): Add support for Win32.
110732 2000-12-18  Paul Eggert  <eggert@twinsun.com>
110734         * lib/physmem.h, lib/physmem.c: New files.
110736         * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
110737         (noinst_HEADERS): Add physmem.h.
110739         * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
110740         't' for compatibility with Solaris 8 sort.
110742 2000-12-18  Bruno Haible  <haible@clisp.cons.org>
110744         * lib/config.charset: Add support for BeOS.
110746 2000-12-17  Jim Meyering  <meyering@lucent.com>
110748         * m4/dos.m4 (jm_AC_DOS): New file and macro.
110749         * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
110751 2000-12-16  Jim Meyering  <meyering@lucent.com>
110753         This bug had a serious impact on chown: `chown N:M FILE' (for integer
110754         N and M) would have treated it like `chown N:N FILE'.
110756         * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
110758 2000-12-16  Jim Meyering  <meyering@lucent.com>
110760         * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
110761         SHELLS_FILE to a file name that's useful on djgpp systems.
110762         Include stdlib.h.
110763         (ADDITIONAL_DEFAULT_SHELLS): Define.
110764         (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
110765         Based mostly on a patch from Prashant TR.
110767 2000-12-16  Bruno Haible  <haible@clisp.cons.org>
110769         * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
110770         VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
110771         CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
110773 2000-12-08  Andreas Schwab  <schwab@suse.de>
110775         * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
110776         invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
110778 2000-12-07  Jim Meyering  <meyering@lucent.com>
110780         * lib/stripslash.c (ISSLASH): Define.
110781         (strip_trailing_slashes): Use ISSLASH rather than comparing against
110782         `/'.
110783         From Prashant TR.
110785         * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
110786         (dir_name_r): Declare this function as static.
110787         [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
110788         manifest itself on a name containing a mix of slashes and
110789         backslashes.
110790         Make this function work with names starting with a DOS-style
110791         drive letter and colon prefix.
110792         (dir_name): Append `.' if necessary.
110793         Based mostly on patches from Prashant TR and Eli Zaretskii.
110795         * lib/dirname.h (dir_name_r): Remove prototype.
110797 2000-12-06  Paul Eggert  <eggert@twinsun.com>
110799         * m4/off_t-format.m4: Remove this file.
110800         * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
110802 2000-12-06  Jim Meyering  <meyering@lucent.com>
110804         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
110805         replacement strtoull, we may well need the replacement strtoul, too.
110806         Check for declarations of strtoul and strtoull.
110807         Check for strtol.  Mainly as a cue to cause automake to include
110808         strtol.c -- that file is included by each of strtoul.c and strtoull.c.
110809         Check for limits.h -- strtol.c needs it.
110811 2000-12-05  Jim Meyering  <meyering@lucent.com>
110813         * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
110815 2000-12-04  Jim Meyering  <meyering@lucent.com>
110817         * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
110818         Also include memory.h, stdlib.h, unistd.h if appropriate.
110819         Reported by Andreas Jaeger (conflicting declaration of malloc).
110821 2000-12-02  Jim Meyering  <meyering@lucent.com>
110823         * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
110824         * m4/jm-macros.m4 (jm_MACROS): require it.
110826 2000-12-02  Jim Meyering  <meyering@lucent.com>
110828         * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
110830 2000-12-01  Paul Eggert  <eggert@twinsun.com>
110832         * lib/memrchr.c: Include <config.h> before any system include file.
110834 2000-11-30  Jim Meyering  <meyering@lucent.com>
110836         * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
110838 2000-11-30  Jim Meyering  <meyering@lucent.com>
110840         * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
110842 2000-11-29  Paul Eggert  <eggert@twinsun.com>
110844         * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
110846 2000-11-26  Jim Meyering  <meyering@lucent.com>
110848         * lib/memcoll.c: Include sys/types.h.  From Werner Almesberger.
110850 2000-11-22  Paul Eggert  <eggert@twinsun.com>
110852         * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
110853         size of (size_t) -1; it's not portable.
110855 2000-11-17  Jim Meyering  <meyering@lucent.com>
110857         * lib/strstr.c: Update from GNU libc.
110859 2000-11-17  Akim Demaille  <akim@epita.fr>
110861         * lib/obstack.h: Formatting changes.
110862         (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
110863         prevent type checking.
110864         (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
110865         cast the value to (void *): assigning a `foo *' to a `void *'
110866         variable is valid.
110867         (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
110869 2000-11-16  Jim Meyering  <meyering@lucent.com>
110871         * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
110873 2000-11-11  Jim Meyering  <meyering@lucent.com>
110875         * lib/error.c: Add a couple #includes, merging from GNU libc version.
110877 2000-11-10  Jim Meyering  <meyering@lucent.com>
110879         * lib/obstack.h: Update from GNU libc.
110880         * lib/obstack.c: Likewise.
110882 2000-11-08  Bruno Haible  <haible@clisp.cons.org>
110884         * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
110886 2000-11-06  Paul Eggert  <eggert@twinsun.com>
110888         * lib/getusershell.c (setusershell): Use rewind rather than
110889         fseek/fseeko, to avoid configuration hassles with fseeko.
110890         Don't bother opening SHELLS_FILE if shellstream is NULL;
110891         it's not necessary.
110893 2000-11-05  Jim Meyering  <meyering@lucent.com>
110895         * lib/makepath.h (make_dir): Declare.
110896         * lib/makepath.c (make_dir): Remove `static' attribute.
110897         Tweak a comment.
110899 2000-11-04  Jim Meyering  <meyering@lucent.com>
110901         * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
110903 2000-11-04  Alexandre Duret-Lutz  <duret_g@epita.fr>
110905         * lib/hash.c (hash_get_next): Fix a thinko:  when ENTRY is the
110906         last one in a bucket, advance to the next bucket.
110908 2000-11-02  Vesselin Atanasov  <vesselin@bgnet.bg>
110910         * lib/fnmatch.c: Do not comment out all the code if we are using
110911         the GNU C library, because in some cases we are replacing buggy
110912         code in the GNU C library itself.
110914 2000-10-30  Stefan Monnier  <monnier@cs.yale.edu>
110916         * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
110917         (regex_compile): Catch bogus \(\1\).
110919 2000-10-30  Paul Eggert  <eggert@twinsun.com>
110921         * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
110922         (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
110923         e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
110925 2000-10-30  Paul Eggert  <eggert@twinsun.com>
110927         * lib/error.h, getline.h, modechange.h:
110928         Remove "2000" from Copyright line, as the file hasn't been
110929         changed this year other than in the copyright notice.
110931         * lib/xalloc.h: Add "2000" to Copyright line, as this file
110932         was changed this year.
110934 2000-10-29  Jim Meyering  <meyering@lucent.com>
110936         * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
110937         renaming.
110938         * m4/ls-mntd-fs.m4: Likewise
110940 2000-10-29  Jim Meyering  <meyering@lucent.com>
110942         * lib/xstat.in: Fix grammar in comment.
110944 2000-10-29  Greg Louis  <glouis@dynamicro.on.ca>
110946         * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
110947         Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
110948         doesn't define __restrict_arr.
110950 2000-10-28  Jim Meyering  <meyering@lucent.com>
110952         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
110953         (jm_PREREQ_MEMCHR): New function.
110955 2000-10-28  Jim Meyering  <meyering@lucent.com>
110957         * lib/memchr.c: Update from libc.
110958         Adjust for portability:
110959         [HAVE_STDLIB_H]: Include stdlib.h.
110960         [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
110961         Undef __memchr, too.
110962         [!weak_alias]: Define __memchr to memchr.
110964         * lib/regex.c: Update from libc.
110965         * lib/regex.h: Likewise.
110966         * lib/getopt1.c: Likewise.
110967         * lib/memcmp.c: Likewise.
110969         * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
110970         Avoid using fseek, when possible -- it's broken by design.
110971         Patch by Ulrich Drepper.
110973 2000-10-27  Stefan Monnier  <monnier@cs.yale.edu>
110975         * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
110976         (re_match_2_internal, re_match_2_internal, re_match_2_internal):
110977         Giving in to popular pressure to shut up the compiler with casts.
110979 2000-10-26  Jim Meyering  <meyering@lucent.com>
110981         * lib/strftime.c: Update from libc.
110983 2000-10-25  Stefan Monnier  <monnier@cs.yale.edu>
110985         * regex.c: More `unsigned char' -> `re_char' changes.
110986         Also change several `int' into `re_wchar_t'.
110987         (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
110988         (PUSH_FAILURE_POINTER): Don't cast any more.
110989         (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
110990         We want GCC to complain, since this piece of code makes
110991         re_match non-reentrant, which *should* be fixed.
110992         (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
110993         (EXTEND_BUFFER): Use RETALLOC.
110994         (SET_LIST_BIT): Don't cast.
110995         (re_wchar_t): New type.
110996         (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
110997         that those two functions will always properly return.
110998         (IMMEDIATE_QUIT_CHECK): Cast to void.
110999         (analyse_first): Use recursion rather than an explicit stack.
111000         (re_compile_fastmap): Can't fail anymore.
111001         (re_search_2): Don't check re_compile_fastmap for failure.
111002         (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
111003         Now also sets the new value (passed in a new argument).
111004         (re_match_2_internal): Use it.
111005         Also, use a new var `reg' of type size_t when looping through regs
111006         rather than reuse the inappropriate `mcnt'.
111008 2000-10-25  Jim Meyering  <meyering@lucent.com>
111010         * lib/obstack.c: Update from libc.
111012 2000-10-24  Kenichi Handa  <handa@etl.go.jp>
111014         * regex.c (regex_compile): Change the way of handling a range from
111015         a char less than 256 to a char not less than 256.
111017 2000-10-24  Andrew Innes  <andrewi@gnu.org>
111019         * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
111020         NT-Emacs only.
111021         (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
111022         so that re_search functions only quit when callers expect them to.
111024 2000-10-23  Jim Meyering  <meyering@lucent.com>
111026         * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
111027         wrong.  That set_locale call must not have any side effects.
111028         From Paul Eggert.
111030 2000-10-22  Jim Meyering  <meyering@lucent.com>
111032         * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
111033         [CYCLIC]: Remove now-unused definition.
111035         * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
111036         (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
111037         Suggestion from Ulrich Drepper.
111039 2000-10-21  Jim Meyering  <meyering@lucent.com>
111041         * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
111042         * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
111043         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
111045 2000-10-21  Jim Meyering  <meyering@lucent.com>
111047         * lib/dirname.c (memrchr): Declare if necessary.
111048         (dir_name): Remove the restriction that there be no
111049         trailing slashes.  Now, this code skips past them, effectively
111050         ignoring them.
111051         [TEST_DIRNAME] (main): New unit tests.
111053         * lib/memrchr.c: New file from GNU libc.
111054         Undef __memrchr, too.
111055         [!weak_alias]: Define __memrchr to memrchr.
111056         Guard weak_alias use with `#ifdef weak_alias'.
111058 2000-10-21  Jim Meyering  <meyering@lucent.com>
111060         * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
111061         (dir_name): Use dir_name_r.
111062         * lib/dirname.h (dir_name_r): Declare it.
111064 2000-10-17  Jim Meyering  <meyering@lucent.com>
111066         * lib/quote.h (PARAMS): Define and use.
111067         Reported by Akim Demaille.
111069         * lib/getopt.c: Update from libc.
111071 2000-10-16  Jim Meyering  <meyering@lucent.com>
111073         * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
111074         setlocale.
111075         From Jan Fedak.
111077 2000-10-15  Stefan Monnier  <monnier@cs.yale.edu>
111079         * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
111081 2000-09-25  Jim Meyering  <meyering@lucent.com>
111083         * lib/md5.h (rol): Define (from GnuPG).
111085         * lib/sha.c: Give credit (GnuPG) where due.
111086         (M): Use rol rather than open-coding it.
111087         Add a FIXME comment.
111089 2000-09-21  Jim Meyering  <meyering@lucent.com>
111091         * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
111092         Reported by Michael Stone.
111094 2000-09-20  Jim Meyering  <meyering@lucent.com>
111096         * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
111097         (noinst_HEADERS): Add sha.h.
111098         Based on code from Scott G. Miller and from GnuPG.
111100 2000-09-18  Jim Meyering  <meyering@lucent.com>
111102         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
111103         LIBS. Otherwise, everyone ends up linking with -lelf for some
111104         configurations.
111105         Reported by Mike Stone.
111107 2000-09-15  Jim Meyering  <meyering@lucent.com>
111109         * lib/regex.c: Update from libc.
111111 2000-09-10  Jim Meyering  <meyering@lucent.com>
111113         * lib/getopt.c (_getopt_internal): Update from glibc.
111115 2000-09-09  Jim Meyering  <meyering@lucent.com>
111117         * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
111118         think it should be used as a general replacement for isascii.
111119         * lib/fnmatch.c: Likewise.
111120         * lib/mbswidth.c: Likewise
111121         * lib/regex.c: Likewise.
111123         Don't use atoi.
111124         * lib/userspec.c: Include sys/param.h and limits.h.
111125         Include xstrtol.h.
111126         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
111127         (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
111128         (parse_user_spec): Use xstrtoul, not atoi when converting numeric
111129         UID, GID.  Check range.
111131 2000-09-06  Jim Meyering  <meyering@lucent.com>
111133         * lib/getopt.c (_getopt_internal): Update from glibc.
111135 2000-08-30  Jim Meyering  <meyering@lucent.com>
111137         * lib/strftime.c: Merge in changes from GNU libc.
111139 2000-08-26  Jim Meyering  <meyering@lucent.com>
111141         * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
111142         * m4/fpending.m4: New file.
111144 2000-08-26  Jim Meyering  <meyering@lucent.com>
111146         * lib/closeout.c: Include "__fpending.h".
111147         (close_stdout_status): Return right away if there's nothing to flush.
111149         * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
111150         * lib/__fpending.c: New file.
111151         * lib/__fpending.h: New file.
111153 2000-08-20  Jim Meyering  <meyering@lucent.com>
111155         * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
111156         `#if !HAVE_UTMPX_H'.  The latter would lose on systems with neither
111157         utmp.h nor utmpx.h.  Reported by Eli Zaretskii.
111159 2000-08-11  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
111161         Improve fileutils installation on systems where running
111162         programs (like install) can't be unlinked.
111163         * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
111164         * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
111166 2000-08-07  Paul Eggert  <eggert@twinsun.com>
111168         Standardize on "memory exhausted" instead of "Memory exhausted"
111169         or "virtual memory exhausted".
111170         * lib/obstack.c (print_and_abort): Use "memory exhausted", not
111171         "virtual memory exhausted".
111172         * lib/same.c (same_name): Invoke xalloc_die instead of printing
111173         our own message.
111174         * lib/userspec.c (parse_user_spec): Likewise.
111175         * lib/bumpalloc.h: comment fix
111176         * lib/same.c, userspec.c: Include xalloc.h.
111178         * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
111179         not char *const and pointing to a constant array.
111180         * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
111181         (xrealloc): Comment fix.
111183         * lib/userspec.c (parse_user_spec):
111184         Don't translate a message until just before returning,
111185         to avoid unnecessary translation.
111187 2000-08-07  Jim Meyering  <meyering@lucent.com>
111189         * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
111190         chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
111191         fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
111192         getgroups.c, gethostname.c, getopt.h, group-member.c,
111193         hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
111194         linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
111195         memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
111196         pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
111197         stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
111198         strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
111199         utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
111200         yesno.c: Back out Copyright date changes for each file with no change
111201         this year.  This eases coordination with other programs using the same
111202         source code modules.  From Paul Eggert.
111204 2000-08-06  Paul Eggert  <eggert@twinsun.com>
111206         * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
111207         not char, for compatibility with glibc 2.1.3 strftime.c.
111209 2000-08-03  Greg McGary  <greg@mcgary.org>
111211         * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
111212         ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
111213         (EXTEND_BUFFER): Use them.
111215 2000-08-01  Jim Meyering  <meyering@lucent.com>
111217         * lib/dirname.c (ISSLASH): Define.
111218         (BACKSLASH_IS_PATH_SEPARATOR): Define.
111219         (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
111220         both `\' and `/' may be use as path separators.
111221         Based on a patch from Prashant TR.
111223 2000-07-31  Paul Eggert  <eggert@twinsun.com>
111225         * lib/quotearg.c (quotearg_n_options): Don't make the initial
111226         slot vector a constant, since it might get modified.
111228 2000-07-31  Jim Meyering  <meyering@lucent.com>
111230         * lib/xmalloc.c: Use `virtual memory exhausted', not
111231         `Memory exhausted'.
111232         * lib/obstack.c (print_and_abort): Likewise.
111234 2000-07-30  Paul Eggert  <eggert@twinsun.com>
111236         * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
111237         buffer, so that the caller can always quote one small
111238         component of a "memory exhausted" message in slot 0.
111239         From a suggestion by Jim Meyering.
111241 2000-07-30  Jim Meyering  <meyering@lucent.com>
111243         * lib/makepath.c (make_path): Quote the other instance, too.
111245         * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
111246         (STATIC_BUF_SIZE): Define.
111247         (quotearg_n_options): Use only statically allocated storage when
111248         N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
111249         than STATIC_BUF_SIZE.
111251 2000-07-29  Jim Meyering  <meyering@lucent.com>
111253         * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
111254         * lib/dirname.c (dir_name): Likewise.
111256         * lib/basename.c (base_name): Use ISSLASH rather than comparing against
111257         `/'.
111259         * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
111260         (dir_name): Assert that there are no trailing slashes.
111262 2000-07-29  Bruno Haible  <haible@clisp.cons.org>
111264         * lib/mbswidth.h (mbswidth): Add a flags argument.
111265         (mbswidth): New declaration.
111266         (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
111267         * lib/mbswidth.c (mbswidth): Add a flags argument.
111268         (mbsnwidth): New function.
111270 2000-07-24  Jim Meyering  <meyering@lucent.com>
111272         * lib/mbswidth.c: Remove useless #else.  From Bruno Haible.
111274 2000-07-23  Paul Eggert  <eggert@twinsun.com>
111276         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
111278 2000-07-23  Paul Eggert  <eggert@twinsun.com>
111280         * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
111281         <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
111282         (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
111283         (quotearg_buffer_restyled): If a unibyte locale, don't bother to
111284         invoke multibyte primitives.
111286 2000-07-23  Paul Eggert  <eggert@twinsun.com>
111288         * lib/quotearg.c:
111289         Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
111290         so that mbstate_t is always defined.
111292         Do not inspect MB_LEN_MAX, since it's incorrectly defined to
111293         be 1 in at least one GCC installation, and this configuration
111294         error is likely to be common.  Ignoring MB_LEN_MAX hurts
111295         performance on hosts that have mbrtowc but have only unibyte
111296         locales, but I assume these hosts are rare.
111298 2000-07-23  Paul Eggert  <eggert@twinsun.com>
111300         * lib/mbswidth.c (_XOPEN_SOURCE):
111301         Don't define; this causes problems on Solaris 7.
111302         (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
111304 2000-07-23  Jim Meyering  <meyering@lucent.com>
111306         * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
111307         too: getgrgid, getpwuid, getuid.
111309 2000-07-23  Jim Meyering  <meyering@lucent.com>
111311         * lib/basename.c (base_name): Add an assertion.
111313 2000-07-23  Bruno Haible  <haible@clisp.cons.org>
111315         * lib/quotearg.c: When the system forces us to redefine mbstate_t,
111316         shadow its mbsinit function.
111318 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
111320         * lib/mbswidth.h: New file.
111321         * lib/mbswidth.c: New file.
111322         * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
111323         (noinst_HEADERS): Add mbswidth.h.
111325 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
111327         * lib/config.charset: Add support for FreeBSD. Improve support for
111328         HP-UX and IRIX 6.
111330 2000-07-16  Bruno Haible  <haible@clisp.cons.org>
111332         * m4/mbswidth.m4: New file.
111333         * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
111335 2000-07-15  Jim Meyering  <meyering@lucent.com>
111337         * lib/makepath.c: Include quote.h.
111338         (make_path): Convert "`%s'" in format strings to "%s", and wrap each
111339         corresponding argument in a `quote (...)' call.
111340         Give better diagnostics.
111342         * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
111343         (noinst_HEADERS): Add quote.h.
111345         * lib/quote.c (quote, quote_n): New file.  Two functions taken verbatim
111346         from tar's src/misc.c.
111347         * lib/quote.h: New file.  Prototypes for same.
111349 2000-07-14  Paul Eggert  <eggert@twinsun.com>
111351         From a suggestion by Bruno Haible.
111352         * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
111353         Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
111354         to decide whether to define the BeOS workaround macro;
111355         this adjusts to the change to AC_MBSTATE_T.
111357 2000-07-14  Jim Meyering  <meyering@lucent.com>
111359         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
111360         jm_AC_TYPE_UINTMAX_T.
111362 2000-07-13  Paul Eggert  <eggert@twinsun.com>
111364         * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
111366         * lib/quotearg.c (quoting_style_args, quoting_style_vals,
111367         quotearg_buffer_restyled): Add support for
111368         clocale_quoting_style.  Undo previous change to
111369         locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
111370         and "{RIGHT QUOTATION MARK}" msgids.
111372 2000-07-10  Paul Eggert  <eggert@twinsun.com>
111374         From a suggestion by Bruno Haible.
111375         * m4/mbstate_t.m4 (AC_MBSTATE_T):
111376         Renamed from AC_MBSTATE_T_OBJECT.  All uses changed.
111377         Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
111378         and mbstate_t, to a single-part test that simply defines mbstate_t.
111379         * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
111380         s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
111382 2000-07-10  Jim Meyering  <meyering@lucent.com>
111384         * m4/strerror_r.m4: Mirror the correction made in autoconf.
111386         * m4/gnu-source.m4: Output to confdefs.h directly.
111387         Suggestion from Akim Demaille.
111389 2000-07-09  Paul Eggert  <eggert@twinsun.com>
111391         The old behavior of quoting `like this' doesn't look good with
111392         newer, ISO-style fonts.  See:
111393         http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
111395         Instead, quote "like this" by default.  Let the translator
111396         tailor the locale-specific quoting behavior by providing
111397         translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
111399         * lib/quotearg.c (N_): New macro.
111400         (gettext_default): New function.
111401         (quotearg_buffer_restyled): Use
111402         gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
111403         gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
111405 2000-07-09  Jim Meyering  <meyering@lucent.com>
111407         * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
111408         to link seq.  If so, set SEQ_LIBM to -lm.  From Bruno Haible.
111410         * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
111411         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
111413 2000-07-09  Jim Meyering  <meyering@lucent.com>
111415         * lib/Most files: Update copyright dates to include 2000.
111417 2000-07-08  Jim Meyering  <meyering@lucent.com>
111419         * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
111420         if not defined.
111421         (xgethostname): Remove now-unnecessary #ifdef.
111422         Move declaration of `err' into loop where it's used.
111424 2000-07-05  Paul Eggert  <eggert@twinsun.com>
111425         and Bruno Haible  <haible@clisp.cons.org>
111427         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
111428         only if the test for an object-type mbstate_t fails.  This
111429         prevents us from mistakenly reporting that mbstate_t is a
111430         system object type after we "#define mbstate_t int" to work
111431         around its lack.
111433 2000-07-05  Paul Eggert  <eggert@twinsun.com>
111434         and Bruno Haible  <haible@clisp.cons.org>
111436         * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
111438 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
111440         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
111441         to strerror_r.
111442         Include <ctype.h> for use of isalpha.
111444 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
111446         * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
111447         by allocating a larger buffer. Test the gethostname return value for
111448         being >= 0, not == 0, for BeOS.  Don't exhaust memory if gethostname
111449         returns an error and ENAMETOOLONG isn't defined.
111451 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
111453         * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
111454         dimension.
111456 2000-07-04  Jim Meyering  <meyering@lucent.com>
111458         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
111459         of the deprecated AC_CHECKING.
111461 2000-07-04  Jim Meyering  <meyering@lucent.com>
111463         * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
111464         Reported by Bruno Haible.
111466 2000-07-04  Jim Meyering  <meyering@lucent.com>
111468         * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
111469         HAVE_MBRTOWC is set.  Required at least for irix-5.6, which
111470         lacks mbrtowc.
111472 2000-07-03  Paul Eggert  <eggert@twinsun.com>
111474         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
111475         Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
111477 2000-07-03  Paul Eggert  <eggert@twinsun.com>
111478         and Bruno Haible  <haible@clisp.cons.org>
111480         * lib/quotearg.c (mbrtowc):
111481         Assign to *pwc, and return 1 only if result is nonzero.
111482         (iswprint): Use ISPRINT when substituting our own mbrtowc.
111484 2000-07-03  Jim Meyering  <meyering@lucent.com>
111486         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
111488 2000-07-03  Jim Meyering  <meyering@lucent.com>
111490         * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
111491         This is necessary to get a definition of e.g., UTMP_FILE on
111492         HP-UX 10.20.
111493         From Bob Proulx.
111495 2000-07-02  Jim Meyering  <meyering@lucent.com>
111497         * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
111499         * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
111500         AC_LIBOBJ(function_name).
111501         * m4/chown.m4: Likewise.
111502         * m4/fnmatch.m4: Likewise.
111503         * m4/ftruncate.m4: Likewise.
111504         * m4/getgroups.m4: Likewise.
111505         * m4/getline.m4: Likewise.
111506         * m4/group-member.m4: Likewise.
111507         * m4/jm-macros.m4: Likewise.
111508         * m4/lstat.m4: Likewise.
111509         * m4/malloc.m4: Likewise.
111510         * m4/memcmp.m4: Likewise.
111511         * m4/nanosleep.m4: Likewise.
111512         * m4/putenv.m4: Likewise.
111513         * m4/realloc.m4: Likewise.
111514         * m4/regex.m4: Likewise.
111515         * m4/stat.m4: Likewise.
111516         * m4/strftime.m4: Likewise.
111518 2000-07-02  Jim Meyering  <meyering@lucent.com>
111520         * lib/quotearg.c (mbstate_t): Don't define here.
111522 2000-07-02  Jim Meyering  <meyering@lucent.com>
111524         * lib/nanosleep.c (SIGCONT): Define if not already defined.
111526 2000-07-01  Jim Meyering  <meyering@lucent.com>
111528         * m4/uptime.m4: Put double quotes around use of $cross_compiling.
111530 2000-07-01  Jim Meyering  <meyering@lucent.com>
111532         * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
111533         problem.
111535 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
111537         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
111538         macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
111540 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
111542         * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
111543         per change in ../m4/ls-mntd-fs.m4.
111544         (read_filesystem_list): Ignore symbolic links.
111546 2000-06-29  Jim Meyering  <meyering@lucent.com>
111548         * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
111549         for declaration of strcmp.
111551         * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
111553         * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
111554         Avoid warning by casting result to `char *' to remove `const'.
111556 2000-06-28  Jim Meyering  <meyering@lucent.com>
111558         * m4/mbstate_t.m4: Use stdlib.h, not stdio.h.  The latter is not
111559         included by quotearg.c, for which we perform this test.  From
111560         Bruno Haible.
111562 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
111564         * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
111565         * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
111566         <utmpx.h> exists, put readutmp.o into LIBOBJS.
111568 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
111570         * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
111572 2000-06-26  Paul Eggert  <eggert@twinsun.com>
111574         savedir now sets errno on failure and invokes xmalloc to get memory.
111575         Fix a couple of other minor bugs while we're at it.
111577         * lib/savedir.c (<unistd.h>): Do not include; there's no need.
111578         (NAMLEN): Remove macro.
111579         (malloc, realloc): Remove decls.
111580         (stpcpy): Likewise.
111581         ("xalloc.h"): Include.
111582         (NAME_SIZE_DEFAULT): New macro.
111583         (savedir): Use xmalloc / xrealloc to allocate memory.
111584         Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
111585         Skip "" directory entries.
111586         Use strlen to calculate directory entry length, since the old method
111587         is rarely used these days and isn't worth supporting.
111588         Don't use a pointer after freeing it.
111589         Check for integer overflow when calculating allocation size.
111590         Use memcpy to copy entries, instead of stpcpy.
111591         Set errno properly when returning NULL.
111592         Check for readdir error.
111594 2000-06-26  Jim Meyering  <meyering@lucent.com>
111596         * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
111598 2000-06-25  Jim Meyering  <meyering@lucent.com>
111600         * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
111601         Linux header bug when _XOPEN_SOURCE is defined to 500.
111603 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
111605         * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
111606         deficiency.
111608 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
111610         * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
111611         Include xalloc.h.
111612         Don't include <stdlib.h>.  Don't declare malloc, realloc.
111614 2000-06-24  Jim Meyering  <meyering@lucent.com>
111616         * m4/strerror_r.m4: Revive this file -- to try out an experimental
111617         version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
111618         for which strerror does return char*, but which lacks a conveniently
111619         accessible declaration of the function.  If the compile-test says
111620         strerror_r doesn't work, then resort to a `run'-test that works on
111621         BeOS and segfaults on DEC Unix.
111623 2000-06-24  Jim Meyering  <meyering@lucent.com>
111625         * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
111627 2000-06-23  Paul Eggert  <eggert@twinsun.com>
111629         * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
111630         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it.  Add check for iswprint.
111632 2000-06-23  Paul Eggert  <eggert@twinsun.com>
111634         * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
111635         (mbrtowc, mbstate_t): Define substitutes if
111636         HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
111637         (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
111638         not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
111640 2000-06-23  Jim Meyering  <meyering@lucent.com>
111642         * m4/afs.m4: Add missing AC_MSG_RESULT.
111643         Reported by Bruno Haible.
111645         * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
111646         Suggestion from Bruno Haible.
111648 2000-06-23  Jim Meyering  <meyering@lucent.com>
111650         * lib/getpass.c: New file, from Bruno Haible.  Required for BeOS.
111652 2000-06-21  Jim Meyering  <meyering@lucent.com>
111654         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
111656 2000-06-21  Jim Meyering  <meyering@lucent.com>
111658         * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
111659         (noinst_HEADERS): Add getstr.h.
111661         * lib/getline.c (getstr): Move into a separate file.
111662         * lib/getstr.c (getstr): New file, extracted from getline.c, with
111663         the following changes: new parameter, delim2; both delim[12]
111664         parameters have type `int', not `char'.  The latter would lose
111665         with 8-bit delimiters.
111666         * lib/getstr.h: New file.
111668 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
111670         * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
111671         than 1024, return a memory chunk of least possible size, instead
111672         of size PATH_MAX + 2. In the loop, increment the size proportionally.
111673         Use free/xmalloc instead of xrealloc to avoid copying for very long
111674         paths.
111676 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
111678         * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
111679         the empty string.
111681 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
111683         * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
111684         address, not strdup.  Include <stdlib.h> and don't declare free().
111686 2000-06-19  Jim Meyering  <meyering@lucent.com>
111688         * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
111690 2000-06-18  Jim Meyering  <meyering@lucent.com>
111692         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
111694         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
111695         `checking whether...' message to be consistent with that of the
111696         lstat test.
111698 2000-06-18  Jim Meyering  <meyering@lucent.com>
111700         * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
111701         Besides, these days every porting target provides a mkdir function.
111703         * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
111704         needed. (this snippet comes from src/system.h).
111706 2000-06-16  Bruno Haible  <haible@clisp.cons.org>
111708         * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
111710 2000-06-15  Paul Eggert  <eggert@twinsun.com>
111712         * lib/human.c (adjust_value): New function.
111713         (human_readable_inexact): Apply rounding style even when
111714         printing approximate values.
111716 2000-06-14  Paul Eggert  <eggert@twinsun.com>
111718         * lib/human.c (human_readable_inexact): Allow an input block
111719         size that is not a multiple of the output block size, and vice versa.
111720         Reported by Piergiorgio Sartor.
111722 2000-06-14  Paul Eggert  <eggert@twinsun.com>
111724         * lib/getdate.y (get_date): Apply relative times after time
111725         zone indicator, not before.  Reported by Todd A. Jacobs.
111727 2000-06-13  Jim Meyering  <meyering@lucent.com>
111729         * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
111731         * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
111733 2000-06-12  Paul Eggert  <eggert@twinsun.com>
111735         * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
111737 2000-06-12  Jim Meyering  <meyering@lucent.com>
111739         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
111740         AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
111741         optional argument.
111742         * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
111743         the optional argument, `lib'.
111745 2000-06-08  Jim Meyering  <meyering@lucent.com>
111747         * m4/largefile.m4: Remove file (now that it's part of autoconf).
111749 2000-06-04  Paul Eggert  <eggert@twinsun.com>
111751         Rewrite largefile configuration so that we don't need to run
111752         getconf and don't need AC_CANONICAL_HOST.  [I'm leaving the use of
111753         AC_CANONICAL_HOST in configure.in -- jmm]
111755         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
111756         AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
111757         (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
111758         (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
111759         CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
111760         All uses changed.
111761         Instead of inspecting the output of getconf, try to compile the
111762         test program without and with the macro definition.
111763         (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
111764         for getconf.  Instead, check for the needed flags by compiling
111765         test programs.
111767 2000-06-04  Paul Eggert  <eggert@twinsun.com>
111769         * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
111771 2000-06-04  Jim Meyering  <meyering@lucent.com>
111773         * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
111774         SunOS 4.1.4 for which gid_t is an unsigned type.
111776 2000-06-03  Jim Meyering  <meyering@lucent.com>
111778         * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
111779         now that autoconf requires that.
111781         * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
111782         #undefs.  E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
111783         Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
111785 2000-06-03  Jim Meyering  <meyering@lucent.com>
111787         * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
111789 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
111791         * m4/glibc21.m4: New file.
111792         * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
111794 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
111796         * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
111797         newer, don't install charset.alias.
111798         * lib/config.charset: Change the Linux/glibc rules so they become empty
111799         on glibc-2.1 or newer.
111801 2000-06-02  Jim Meyering  <meyering@lucent.com>
111803         * lib/mountlist.c: Back out last change.  Instead, do this...
111804         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
111805         me_dummy member using the same `ignore'-testing code.
111806         * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
111807         fs_type strings.
111808         From Mark D. Roth.
111810 2000-05-29  Jim Meyering  <meyering@lucent.com>
111812         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
111813         mounts with the `ignore' attribute.  Based on a patch from
111814         Mark D. Roth.
111816 2000-05-28  Jim Meyering  <meyering@lucent.com>
111818         * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
111819         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
111820         * m4/stat.m4: Likewise.
111821         * m4/lstat.m4: Likewise.
111822         * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
111824         * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
111825         * m4/strerror_r.m4: Remove file (absorbed into autoconf).
111827 2000-05-26  Jim Meyering  <meyering@lucent.com>
111829         * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
111831 2000-05-24  Jim Meyering  <meyering@lucent.com>
111833         * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
111834         autoconf requires that.
111835         * m4/lib-check.m4: Likewise.
111836         * m4/jm-macros.m4: Likewise.
111837         * m4/strftime.m4: Likewise.
111839         * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
111840         AC_CHECK_DECLS, now that autoconf requires that.
111842 2000-05-22  Jim Meyering  <meyering@lucent.com>
111844         * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
111845         * m4/lstat.m4: Likewise.
111847 2000-05-22  Jim Meyering  <meyering@lucent.com>
111849         * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
111851 2000-05-20  Jim Meyering  <meyering@lucent.com>
111853         * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
111854         (jm_PREREQ): Use it.
111856 2000-05-18  Jim Meyering  <meyering@lucent.com>
111858         * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
111859         back, too, since it may have been modified by allocate_entry.
111860         (hash_delete): Rewrite to use neither the assignment operator
111861         nor the comma operator in an if-expression.
111863 2000-05-15  Paul Eggert  <eggert@twinsun.com>
111865         * lib/closeout.c:
111866         <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
111867         Remove; no longer needed.
111868         "quotearg.h": Add include.
111869         (file_name): Do not bother to explicitly initialize to NULL; it's less
111870         efficient on some hosts.
111871         (close_stdout_status): Remove test as to whether stdout was already
111872         closed; it breaks for the case "echo x | sort >&-".
111873         Quote file name colons.
111874         Do not assume that _("write error") lacks format strings.
111876 2000-05-15  Jim Meyering  <meyering@lucent.com>
111878         * lib/version-etc.c (version_etc_copyright): Update the copyright
111879         string used in all --version output.
111881 2000-05-14  Jim Meyering  <meyering@lucent.com>
111883         * lib/closeout.c (close_stdout_set_file_name): New function.
111884         (close_stdout_status): Use new file-scoped global.
111885         Return right away if fstat says the stdout file descriptor is invalid.
111886         * lib/closeout.h (close_stdout_set_file_name): Declare.
111888 2000-05-10  Jim Meyering  <meyering@lucent.com>
111890         * lib/closeout.c [default_exit_status]: New file-scoped variable.
111891         (close_stdout_set_status): New function.
111892         * lib/closeout.h (close_stdout_set_status): Declare.
111894 2000-05-09  Jim Meyering  <meyering@lucent.com>
111896         * m4/gettext.m4: Rename this...
111897         * m4/libintl.m4: ...to this.
111899 2000-05-08  Jim Meyering  <meyering@lucent.com>
111901         * lib/long-options.c: Don't include closeout.h.
111902         (parse_long_options): Don't call close_stdout for --version.
111904 2000-05-06  Paul Eggert  <eggert@twinsun.com>
111906         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
111907         be 500, instead of _GNU_SOURCE to be 1, to work around glibc
111908         2.1.3 bug.  This avoids a clash when files like regex.c define
111909         _GNU_SOURCE.
111911 2000-05-06  Jim Meyering  <meyering@lucent.com>
111913         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
111914         (AC_REPLACE_FUNCS): Add strnlen.
111916         * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
111917         * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
111919         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
111920         AC_SEARCH_LIBS call for nanosleep.
111921         (LIB_NANOSLEEP): Set and AC_SUBST.
111923 2000-05-06  Jim Meyering  <meyering@lucent.com>
111925         * lib/strnlen.c: Undefine __strnlen and strnlen.
111926         [!weak_alias]: Define __strnlen to strnlen.
111928         * lib/atexit.c: New file, from libiberty.
111930 2000-05-06  Jim Meyering  <meyering@lucent.com>
111932         * lib/closeout.c (close_stdout_status): Also check for errors on the
111933         stderr stream.
111935 2000-05-05  Jim Meyering  <meyering@lucent.com>
111937         * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
111938         AC_SEARCH_LIBS call for clock_gettime.
111939         (LIB_CLOCK_GETTIME): Set and AC_SUBST.
111941         * m4/search-libs.m4: Update from autoconf.
111943         su doesn't work on Solaris 2.6.
111944         * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
111945         <shadow.h>.  Reported by Dragos Harabor.
111947 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
111949         * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
111950         memcpy instead of xmalloc, xrealloc, path_concat.
111951         (locale_charset): Treat empty environment variables as absent.
111952         (DIRECTORY_SEPARATOR, ISSLASH): New macros.
111954 2000-05-04  Jim Meyering  <meyering@lucent.com>
111956         * lib/getopt.c: Update from glibc.
111957         * lib/obstack.c: Likewise.
111958         * lib/obstack.h: Likewise.
111959         * lib/regex.c: Likewise.  NB: K&R compiler support is dropped for this
111960         file
111962         * lib/regex.h: Likewise.
111963         * lib/strndup.c: Likewise.
111964         * lib/strnlen.c: New file, from glibc.
111966 2000-05-03  Jim Meyering  <meyering@lucent.com>
111968         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
111970 2000-05-02  Paul Eggert  <eggert@twinsun.com>
111972         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
111973         this is needed to make ftello visible (e.g. glibc 2.1.3).  Use
111974         compile-time test, rather than inspecting host and OS, to
111975         decide whether to define _LARGEFILE_SOURCE.
111977 2000-05-01  Jim Meyering  <meyering@lucent.com>
111979         * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
111981         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
111982         Based on a patch from Bruno Haible.
111984 2000-05-01  Jim Meyering  <meyering@lucent.com>
111986         * lib/full-write.c (full_write): Remove `FIXME' part of comment.
111988 2000-04-29  Jim Meyering  <meyering@lucent.com>
111990         * lib/path-concat.c: Declare strdup only if it's not defined.
111991         * lib/canon-host.c: Likewise.
111993 2000-04-28  Jim Meyering  <meyering@lucent.com>
111995         * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
111996         avoid redefinition warning on some systems (HPUX).  Otherwise, regex.h
111997         is included first, then limits.h is included by locale.h by libintl.h.
111998         From John David Anglin.
112000 2000-04-25  Jim Meyering  <meyering@lucent.com>
112002         * lib/makepath.c (S_IRWXUGO): Define.
112003         (make_path): Always perform explicit chmod if MODE specifies any
112004         of the `special' permission bits.  Prompted by a bug report against
112005         install from Mate Wierdl and Joost van Baal.
112007 2000-04-18  Jim Meyering  <meyering@lucent.com>
112009         * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
112010         (jm_PREREQ): Use it.
112012 2000-04-18  Jim Meyering  <meyering@lucent.com>
112014         * lib/README: New file.
112016         * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
112017         getpagesize.  For BeOS.  Based on a patch from Bruno Haible.
112019 2000-04-17  Jim Meyering  <meyering@lucent.com>
112021         Get it right :-)
112022         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
112023         actual #define via AH_VERBATIM.  Don't need separate AC_DEFINE.
112024         Suggestion from Akim Demaille.
112026 2000-04-17  Jim Meyering  <meyering@lucent.com>
112028         * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
112029         the definition of it to rpl_strftime also defined-away the system's
112030         declaration.
112032 2000-04-15  Jim Meyering  <meyering@lucent.com>
112034         Use `C' to denote so-called `contiguous' files, the same way
112035         that tar does.
112036         * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
112037         (ftypelet): Use S_ISCTG.
112038         From Michael Deutschmann.
112040 2000-04-14  Jim Meyering  <meyering@lucent.com>
112042         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
112043         form of AC_DEFINE.  Otherwise, the #ifndef in AH_VERBATIM gets
112044         clobbered.
112046 2000-04-14  Jim Meyering  <meyering@lucent.com>
112048         * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
112050 2000-04-13  Jim Meyering  <meyering@lucent.com>
112052         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
112053         AH_VERBATIM to insert required #ifndef into config.h.in.
112054         Suggestion from Akim Demaille.
112056 2000-04-12  Jim Meyering  <meyering@lucent.com>
112058         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
112059         `AC_CHECK_HEADER' to check for locale.h.  Thanks to a report from
112060         Christian Krackowizer.
112062         More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
112063         * m4/jm-macros.m4 (_GNU_SOURCE): Define.
112064         (AC_SYS_LARGEFILE): Require.
112065         (AM_C_PROTOTYPES): Require.
112067 2000-04-08  Jim Meyering  <meyering@lucent.com>
112069         * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
112070         names don't conflict.  Reported by Eli Zaretskii.
112072 2000-04-07  Jim Meyering  <meyering@lucent.com>
112074         * lib/putenv.c: Move inclusion of errno.h so it follows that of
112075         sys/types.h, to work around system header problems on AIX 3.2.5.
112076         From Bruno Haible.
112078 2000-04-07  Bruno Haible  <haible@clisp.cons.org>
112080         * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
112081         bug.  Deal with the different error behavior of Irix iconv.
112083 2000-04-05  Paul Eggert  <eggert@twinsun.com>
112085         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
112086         IRIX if the installer said otherwise.
112088 2000-04-05  Jim Meyering  <meyering@lucent.com>
112090         Portability tweaks required for ultrix4.3.
112091         * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
112092         (jm_CHECK_DECLS): Add getutent to the list of functions.
112093         (_jm_DECL_HEADERS): Add utmpx.h.
112094         From John David Anglin.
112096         * m4/strftime.m4: Back out the 2000-04-02 change.
112097         Instead of that change, simply undefine putenv in the test program.
112099 2000-04-05  Jim Meyering  <meyering@lucent.com>
112101         Portability tweaks required for ultrix4.3.
112102         * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
112103         getutent.
112104         * lib/readutmp.c: Include sys/types.h before sys/stat.h.
112105         * lib/canon-host.c: Declare strdup.
112106         * lib/path-concat.c: Likewise.
112107         From John David Anglin.
112109 2000-04-04  Jim Meyering  <meyering@lucent.com>
112111         Be more DOS 8.3-friendly.
112112         * lib/ref-add.sin: Renamed from ref-add.sed.in.
112113         * lib/ref-del.sin: Renamed from ref-del.sed.in.
112114         * lib/Makefile.am: Reflect renaming.
112115         Reported by Eli Zaretskii.
112117         Use a temporary file name that won't clash with `charset.alias'
112118         in the DOS 8.3 name space.
112119         * lib/Makefile.am (charset_tmp): Define.
112120         (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
112121         (uninstall-local): Likewise.
112122         Reported by Eli Zaretskii.
112124 2000-04-03  Jim Meyering  <meyering@lucent.com>
112126         * m4/gettext.m4: Fix typo in comment.
112128         * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
112129         textutils/configure.in).  Suggestion from Paul Eggert.
112130         (AC_CHECK_FUNCS): Add nl_langinfo.  (also from textutils/configure.in)
112132 2000-04-02  Paul Eggert  <eggert@twinsun.com>
112134         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
112135         variable in the shell rather than using putenv, which isn't
112136         portable.  This avoids the configure-time inter-test dependency
112137         on the potentially-renamed putenv function.
112139 2000-03-30  Paul Eggert  <eggert@twinsun.com>
112141         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
112142         before checking struct stat.st_blksize, so that
112143         HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
112145 2000-03-29  Paul Eggert  <eggert@twinsun.com>
112147         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
112148         since strftime.c uses HAVE_STRFTIME to decide whether to use
112149         the underlying strftime.
112151 2000-03-29  Paul Eggert  <eggert@twinsun.com>
112153         * lib/time/strftime.c (my_strftime): Make sure we call the system
112154         strftime, not ourselves, when invoking the underlying strftime.
112156 2000-03-24  Jim Meyering  <meyering@lucent.com>
112158         * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
112159         (charset_alias): Define.
112160         (install-exec-local): Factor out common code.
112161         (uninstall-local): Split lines longer than 80.
112162         (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
112163         (SUFFIXES): Define.
112164         (.sed.in.sed): New rule.  Don't redirect directly to $@.
112165         (CLEANFILES): Add ref-add.sed and ref-del.sed.
112167 2000-03-19  Bruno Haible  <haible@clisp.cons.org>
112169         * lib/config.charset: Output a line containing "Packages using this
112170         file".
112171         * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
112172         * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
112173         ref-del.sed): New rules.
112175 2000-03-17  Jim Meyering  <meyering@lucent.com>
112177         * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
112178         Otherwise, include <strings.h>
112180 2000-03-17  Bruno Haible  <haible@clisp.cons.org>
112182         * lib/unicodeio.c (utf8_wctomb): New function.
112183         (print_unicode_char): Pass the Unicode character to iconv in UTF-8
112184         format instead of in UCS-4 with platform dependent endianness.
112186 2000-03-10  Jim Meyering  <meyering@lucent.com>
112188         * m4/lib-check.m4: Look for getspnam in -lgen, too.
112189         From Marco Franzen.
112191 2000-03-07  Paul Eggert  <eggert@twinsun.com>
112193         * lib/savedir.c (savedir): Work even if directory size is
112194         negative; this can happen with some screwy NFS configurations.
112196 2000-03-06  Jim Meyering  <meyering@lucent.com>
112198         * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
112199         if it's NULL (because we ran out of memory).  From Bruno Haible.
112201 2000-03-05  Jim Meyering  <meyering@lucent.com>
112203         * lib/localcharset.c ("path-concat.h"): Include.
112204         (get_charset_aliases): Use path_concat instead of ANSI string
112205         concatenation.
112207         * lib/unicodeio.h (PARAMS): Define.
112208         Use it to guard prototype.
112210 2000-03-04  Jim Meyering  <meyering@lucent.com>
112212         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
112213         for lib/localcharset.c.
112215 2000-03-04  Jim Meyering  <meyering@lucent.com>
112217         * lib/Makefile.am (install-exec-local): Create $(libdir) before
112218         installing into it.
112219         (uninstall-local): Uncomment this rule so `make distcheck' works
112220         once again.
112222         * lib/unicodeio.c (<errno.h>): Include it.
112223         (errno): Declare if not defined.
112225         * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
112227         * lib/config.charset: New version, incorporating remarks from a linux
112228         i18n mailing list.  From Bruno Haible.
112230 2000-03-04  Bruno Haible  <haible@clisp.cons.org>
112232         * m4/codeset.m4: New file.
112233         * m4/iconv.m4: New file.
112234         * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
112236 2000-03-03  Jim Meyering  <meyering@lucent.com>
112238         * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
112240 2000-03-02  Jim Meyering  <meyering@lucent.com>
112242         * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
112243         the messages come out on separate lines.
112245         * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
112246         rather than jm_CHECK_DECLARATIONS.
112247         * m4/decl.m4: Remove now-unused file.
112249         * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
112250         geteuid.
112252 2000-03-02  Jim Meyering  <meyering@lucent.com>
112254         * lib/Makefile.am (EXTRA_DIST): Add config.charset.
112256 2000-03-01  Jim Meyering  <meyering@lucent.com>
112258         * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
112259         * lib/unicodeio.c: Likewise.
112261 2000-03-01  Bruno Haible  <haible@clisp.cons.org>
112263         * lib/config.charset: New file.
112264         * lib/localcharset.c: New file.
112265         * lib/unicodeio.h, lib/unicodeio.c: New files.
112266         * lib/Makefile.am (DEFS): Add -DLIBDIR=...
112267         (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
112268         (noinst_HEADERS): Add unicodeio.h.
112269         (all-local, install-exec-local, charset.alias): New targets.
112271 2000-02-28  Paul Eggert  <eggert@twinsun.com>
112273         * lib/quotearg.c (ALERT_CHAR): New macro.
112274         (quotearg_buffer_restyled): Use it.
112276 2000-02-27  Jim Meyering  <meyering@lucent.com>
112278         * m4/check-decl.m4: Add getenv to the list.
112280 2000-02-27  Jim Meyering  <meyering@lucent.com>
112282         * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
112283         Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
112285         * lib/backupfile.c: Guard inclusion of stdlib.h with
112286         `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
112287         Declare malloc if needed.
112289         * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
112290         `#ifndef HAVE_DECL..'
112291         now that autoconf always defines the HAVE_DECL_ symbols.
112292         * lib/human.c: Likewise.
112293         * lib/same.c: Likewise.
112294         * lib/strtoumax.c: Likewise.
112296         * lib/backupfile.c: Arrange for cpp to fail if the configure-time
112297         declaration check was not run.
112298         * lib/hash.c: Likewise.
112299         * lib/human.c: Likewise.
112300         * lib/same.c: Likewise.
112301         * lib/strtoumax.c: Likewise.
112303         * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
112304         `.', then first look up the entire `.'-containing string as a login
112305         name.
112307 2000-02-23  Jim Meyering  <meyering@lucent.com>
112309         * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
112310         in place of my hack.
112312 2000-02-18  Paul Eggert  <eggert@twinsun.com>
112314         * lib/getdate.y: Handle two-digit years with leading zeros correctly.
112315         (textint): New typedef.
112316         (parser_control): Member year changed from int to textint.
112317         All uses changed.
112318         (YYSTYPE): Removed; replaced by %union with int and textint members.
112319         (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
112320         tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
112321         tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
112322         (tSNUMBER, tUNUMBER): Now of type <textintval>.
112323         (date, number, to_year): Use width of number in digits, not its value,
112324         to determine whether it's a 2-digit year, or a 2-digit time.
112325         (yylex): Store number of digits of numeric tokens.
112326         Reported by John Kendall.
112328         (parser_control): Changed from struct parser_control to typedef (for
112329         consistency).  All uses changed.
112331         (tID): Removed; not used.
112332         (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
112334 2000-02-14  Paul Eggert  <eggert@twinsun.com>
112336         * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
112337         adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
112339 2000-02-12  Jim Meyering  <meyering@lucent.com>
112341         * lib/userspec.c (ISDIGIT): Define it.
112342         (isdigit): Remove definition.
112343         (is_number): Use ISDIGIT, not isdigit.
112344         <libintl.h>: Include.
112345         (_ and N_): Define.
112346         (parse_user_spec): Mark translatable strings.
112348 2000-02-10  Jim Meyering  <meyering@lucent.com>
112350         With these changes, nanosleep.[ch] are finally enough like the other
112351         lib/* replacement files to compile on a few more losing systems.
112353         * lib/nanosleep.h: Don't include config.h.
112354         Remove prototype from declaration of nanosleep.
112355         (PARAMS): Remove now-unneeded definition.
112356         * lib/nanosleep.c: #undef nanosleep.
112357         (rpl_nanosleep): Rename from nanosleep.
112359 2000-02-10  Jim Meyering  <meyering@lucent.com>
112361         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
112362         gnu_nanosleep to rpl_nanosleep.
112364 2000-02-09  Jim Meyering  <meyering@lucent.com>
112366         * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
112367         struct spwd, rather than in struct passwd.  Reported by Gaël Quéri.
112369 2000-02-08  Akim Demaille  <akim@epita.fr>
112371         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
112372         `[' and `]' and remove uses of `changequote'.
112373         (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
112374         (AC_SYS_LARGEFILE): Likewise.
112375         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
112376         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
112377         of changequote.
112378         * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
112379         * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
112380         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
112381         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
112383 2000-02-05  Jim Meyering  <meyering@lucent.com>
112385         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
112386         Remove explicit use of AC_HEADER_TIME.  It is required by
112387         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Using AC_HEADER_TIME and
112388         `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
112389         in autoconf whereby the expansion of the latter ended up preceding
112390         the expansion of its prerequisite, AC_HEADER_TIME.
112391         Reported by Volker Borchert.
112393 2000-02-03  Jim Meyering  <meyering@lucent.com>
112395         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
112397 2000-02-03  Jim Meyering  <meyering@lucent.com>
112399         * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
112400         rather than with `#if HAVE_UTMPNAME'.
112402 2000-02-02  Jim Meyering  <meyering@lucent.com>
112404         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
112405         definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
112406         Reported by Eli Zaretskii.
112408 2000-02-01  Jim Meyering  <meyering@lucent.com>
112410         * lib/readutmp.h (UT_USER): Add parens.  From Andreas Schwab.
112412 2000-01-31  Jim Meyering  <meyering@lucent.com>
112414         * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
112415         functions.  Add the time.h and sys/time.h headers along with the
112416         AC_REQUIRE'ment of AC_HEADER_TIME.
112418 2000-01-31  Jim Meyering  <meyering@lucent.com>
112420         * lib/nanosleep.h (nanosleep): Guard declaration with
112421         `#if ! HAVE_DECL_NANOSLEEP'.
112422         Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
112423         the declaration in that vendor's sys/timers.h.
112424         Reported by Christian Krackowizer.
112426         * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
112427         inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
112428         (ISPRINT): Likewise.
112429         Reported by Tom Tromey.
112431 2000-01-30  Jim Meyering  <meyering@lucent.com>
112433         * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
112435         * m4/prereq.m4 (utmp_includes): Define.
112436         Check for ut_user and ut_name members in both struct utmpx
112437         and struct utmp.
112439 2000-01-30  Jim Meyering  <meyering@lucent.com>
112441         * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
112442         hard-coding uses of ->ut_name.  The latter doesn't work with new Linux
112443         header files where only utmpx.ut_user is declared.
112445         * lib/readutmp.h (UT_USER): Define.
112447 2000-01-29  Jim Meyering  <meyering@lucent.com>
112449         * m4/lib-check.m4: New file containing library-related checks from
112450         fileutils and sh-utils (textutils had none).
112452 2000-01-28  Jim Meyering  <meyering@lucent.com>
112454         * m4/perl.m4: Change format of warning message to look more like that
112455         from the missing script.  Suggestion from François Pinard.
112457 2000-01-25  Jim Meyering  <meyering@lucent.com>
112459         * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
112460         well as time.h in the compile check.
112461         * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
112462         Fix typo in cross-compiling case: s/yes/no/.
112464 2000-01-23  Jim Meyering  <meyering@lucent.com>
112466         * m4/jm-macros.m4: Move df-related tests here from
112467         fileutils/configure.in
112469         * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
112470         (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
112472         * m4/fsusage.m4: New file.  Extracted from fileutils/configure.in.
112473         s/space/ac_fsusage_space/.
112474         (jm_FILE_SYSTEM_USAGE): Take two parameters.
112476         * m4/ftruncate.m4: New file (derived from part of
112477         fileutils/configure.in).
112478         * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
112479         (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
112481         * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
112482         AC_SUBST these here, rather than just in sh-util/configure.in, so
112483         that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
112484         all the same.
112485         (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
112486         (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
112487         (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
112488         (AC_SUBST(POW_LIBM)): Likewise.
112489         (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
112491 2000-01-23  Jim Meyering  <meyering@lucent.com>
112493         * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
112494         obstack.c.
112496 2000-01-22  Jim Meyering  <meyering@lucent.com>
112498         * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
112500         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
112502         * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
112503         configure.in
112504         (AC_CHECK_HEADERS): Likewise for sh-utils.
112505         (AC_CHECK_HEADERS): Likewise for textutils.
112506         Merge the three lists of headers.
112508         * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro.  Parts moved here
112509         from fileutils' configure.in.
112511         * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
112512         code. Moved tests into their own function (_jm_DECL_HEADERS) in
112513         check-decl.m4.
112515         * m4/check-decl.m4: Use #if rather than #ifdef.
112516         Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
112517         (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
112518         (_jm_DECL_HEADERS): Define new function.
112519         (jm_CHECK_DECLARATIONS): Require it.
112521 2000-01-22  Jim Meyering  <meyering@lucent.com>
112523         * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
112524         [! HAVE_DECL_STRTOULL]: Declare strtoull.
112525         Required for some AIX systems.  Reported by Christian Krackowizer.
112526         [TESTING] (main): New function.
112528         1997-10-17  Eli Zaretskii  <eliz@is.elta.co.il>
112529         * lib/dirname.c (dir_name): Support for DOS-style file names with drive
112530         letters.
112532         * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
112533         iswprint.
112535         * lib/strverscmp.c (ISDIGIT): Define.
112536         (strverscmp): Use ISDIGIT, not isdigit.
112538 2000-01-19  Jim Meyering  <meyering@lucent.com>
112540         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
112541         Use AC_HEADER_TIME.  Volker Borchert reported that OpenBSD-2.3/sparc
112542         defines `struct timespec' in <sys/time.h>
112544         * m4/c-bs-a.m4: Remove uses of changequote altogether.
112545         Thanks to Akim for explaining.
112547 2000-01-17  Paul Eggert  <eggert@twinsun.com>
112549         * lib/nanosleep.c (nanosleep):
112550         Don't use SA_INTERRUPT to decide whether to call sigaction, as
112551         POSIX.1 doesn't require SA_INTERRUPT and some systems
112552         (e.g. Solaris 7) don't define it.  Use SA_NOCLDSTOP instead;
112553         it's been part of POSIX.1 since day 1 (in 1988).
112555 2000-01-17  Jim Meyering  <meyering@lucent.com>
112557         * lib/interlock: Remove unused file.  Reported by François Pinard.
112559 2000-01-16  Paul Eggert  <eggert@twinsun.com>
112561         * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
112562         alert, backslash, formfeed, and vertical tab unnecessarily in
112563         shell quoting style.
112565 2000-01-16  Jim Meyering  <meyering@lucent.com>
112567         * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
112568         AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
112569         jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
112570         AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
112572 2000-01-16  Jim Meyering  <meyering@lucent.com>
112574         * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
112575         because the latter didn't work.
112577 2000-01-15  Jim Meyering  <meyering@lucent.com>
112579         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
112580         (AC_REPLACE_FUNCS): Add memcpy and memset.
112581         Add these, too: stime strcspn stpcpy strstr strtol strtoul.
112582         Add strpbrk.
112583         Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
112585 2000-01-12  Jim Meyering  <meyering@lucent.com>
112587         * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
112588         (jm_PREREQ): Use it.
112589         (jm_PREREQ_READUTMP): New macro.
112590         (jm_PREREQ): Use it.
112592 2000-01-11  Paul Eggert  <eggert@twinsun.com>
112594         Quote multibyte characters correctly.
112595         * m4/c-bs-a.m4: New file.
112596         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
112597         (jm_PREREQ): Use it.
112599 2000-01-11  Paul Eggert  <eggert@twinsun.com>
112601         * m4/uintmax_t.m4: Port to autoconf 2.13.
112603 2000-01-08  Jim Meyering  <meyering@ascend.com>
112605         * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
112606         * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
112608 2000-01-04  Jim Meyering  <meyering@ascend.com>
112610         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
112611         jm_STRUCT_DIRENT_D_TYPE.
112612         * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
112613         jm_STRUCT_DIRENT_D_INO.
112614         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
112615         jm_STRUCT_UTIMBUF.
112616         * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
112617         renamings.
112618         * m4/utime.m4: Likewise.
112620         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
112621         * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
112623 2000-01-03  Paul Eggert  <eggert@twinsun.com>
112625         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
112626         (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
112628 2000-01-02  Jim Meyering  <meyering@ascend.com>
112630         * m4/search-libs.m4: Escape `$' in $3 of dnl comment.  I no longer
112631         remember if this is necessary.
112633 1999-12-26  Jim Meyering  <meyering@ascend.com>
112635         * m4/jm-macros.m4: Use it here.
112636         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
112638 1999-12-23  Jim Meyering  <meyering@ascend.com>
112640         * m4/jm-macros.m4: Check for clock_gettime (moved from
112641         fileutils/configure.in)
112642         Check for gettimeofday.
112644 1999-12-20  Jim Meyering  <meyering@ascend.com>
112646         * m4/strftime.m4: Remove kludge, now that I'm using the fixed
112647         autoconf-2.14a-1999-12-20.
112649 1999-12-19  Jim Meyering  <meyering@ascend.com>
112651         * m4/lstat-slash.m4: New file.
112652         * m4/jm-macros.m4: Use the new macro:
112653         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
112655 1999-12-07  Jim Meyering  <meyering@ascend.com>
112657         * m4/perl.m4: Require that File::Compare be available, too.
112658         Too many systems seem to lack it.
112660         * m4/strftime.m4: Add checks for most of the cpp macros tested in
112661         GNU's strftime.c.  Prompted by a patch from Paul Eggert.
112663 1999-11-18  Paul Eggert  <eggert@twinsun.com>
112665         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
112666         problem with the QNX 4.25 shell, which doesn't propagate exit
112667         status of failed commands inside shell assignments.
112669 1999-11-17  Jim Meyering  <meyering@ascend.com>
112671         * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
112673 1999-11-07  Jim Meyering  <meyering@ascend.com>
112675         * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
112677 1999-11-06  Jim Meyering  <meyering@ascend.com>
112679         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
112680         * m4/jm-macros.m4 (jm_MACROS): Use it here.
112682 1999-11-05  Jim Meyering  <meyering@ascend.com>
112684         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
112685         configure.in of textutils, fileutils, and sh-utils into this one
112686         (shared between those packages) file.
112687         Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
112688         AC_STRUCT_ST_BLKSIZE.
112690 1999-11-03  Jim Meyering  <meyering@ascend.com>
112692         * m4/ssize_t.m4: Remove file.  No longer needed since the new version
112693         of AC_CHECK_TYPE checks includes unistd.h.
112694         * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
112695         Suggestion from Akim Demaille.
112697 1999-10-30  Jim Meyering  <meyering@ascend.com>
112699         * m4/uintmax_t.m4: Require 2.14a.  Remove backslash before backtick in
112700         m4-quoted string.
112701         * m4/ls-mntd-fs.m4: Likewise.
112702         * m4/jm-macros.m4: Likewise.  Also, use AC_TYPE_SSIZE_T instead
112703         * m4/jm-winsz1.m4: Likewise.
112705         * m4/const.m4: Remove file, since the fix made it into the experimental
112706         version of autoconf.
112707         * m4/mktime.m4: Likewise.
112709         * m4/check-type.m4: Remove file, now that the latest version of
112710         AC_CHECK_TYPE takes a third arg to specify additional #includes.
112712         * m4/ssize_t.m4: New file, requires experimental version of autoconf.
112713         * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
112714         AC_CHECK_TYPE.
112716 1999-10-04  Jim Meyering  <meyering@ascend.com>
112718         * m4/jm-macros.m4: Don't require autoconf-2.14.1.
112720 1999-09-22  Paul Eggert  <eggert@twinsun.com>
112722         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
112723         2.95.1 bug with HP-UX 10.20.
112725 1999-09-17  Jim Meyering  <meyering@ascend.com>
112727         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
112728         Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
112729         due to missing strdup (against sh-utils-2.0).
112731 1999-08-29  Jim Meyering  <meyering@ascend.com>
112733         * m4/jm-macros.m4: Require jm_BISON.
112734         * m4/bison.m4: New file.
112736 1999-08-17  Paul Eggert  <eggert@twinsun.com>
112738         * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
112739         in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
112741 1999-08-05  Jim Meyering  <meyering@ascend.com>
112743         * m4/getline.m4: Rename test file from conftestdata to conftest.data
112744         to avoid conflicts with `conftest' on 8+3 filesystems.
112745         Suggestion from Eli Zaretskii.
112747 1999-08-04  Jim Meyering  <meyering@ascend.com>
112749         * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
112750         fileutils and sh-utils (textutils's getline test was inadequate).
112751         (AM_FUNC_GETLINE): Run this test.
112752         (AC_CHECK_FUNCS): Check for getdelim.
112753         Reported by Bob Proulx.
112755 1999-08-02  Jim Meyering  <meyering@ascend.com>
112757         * m4/jm-macros.m4: Add a comment.
112759 1999-08-01  Paul Eggert  <eggert@twinsun.com>
112761         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
112762         <inttypes.h> defines strtoumax as a macro (and not as a
112763         function).
112765 1999-08-01  Paul Eggert  <eggert@twinsun.com>
112767         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
112768         that we can shift, multiply and divide unsigned long long
112769         values; Ultrix cc can't do it.
112771 1999-08-01  Paul Eggert  <eggert@twinsun.com>
112773         * m4/mktime.m4: New file, which is a preview of what should appear
112774         in the next public autoconf release.
112776 1999-08-01  Paul Eggert  <eggert@twinsun.com>
112778         * m4/lfs.m4: Remove this file.
112779         * m4/largefile.m4: New file.  It contains the old contents of
112780         lfs.m4, except that all names with prefix AC_LFS have been
112781         changed to use the prefix AC_SYS_LARGEFILE instead, to be
112782         compatible with future autoconf versions.  Also, some minor m4
112783         quoting problems have been fixed.
112785 1999-08-01  Paul Eggert  <eggert@twinsun.com>
112787         * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
112788         Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
112789         (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
112790         and simplify the shell code.
112792 1999-08-01  Jim Meyering  <meyering@ascend.com>
112794         * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
112795         m4.
112797 1999-07-20  Jim Meyering  <meyering@ascend.com>
112799         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
112801 1999-07-15  Jim Meyering  <meyering@ascend.com>
112803         * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
112805 1999-05-22  Jim Meyering  <meyering@ascend.com>
112807         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
112809 1999-05-20  Jim Meyering  <meyering@ascend.com>
112811         * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
112812         Add a colon after each `then' in case $4 is empty.
112814 1999-05-16  Jim Meyering  <meyering@ascend.com>
112816         * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
112818 1999-05-10  Jim Meyering  <meyering@ascend.com>
112820         * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
112822         * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
112823         AC_FUNC_MKTIME.
112825 1999-05-10  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
112827         * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
112829 1999-05-04  Paul Eggert  <eggert@twinsun.com>
112831         * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
112832         not CPPFLAGS, so that linking works correctly in IRIX.
112834 1999-04-30  Paul Eggert  <eggert@twinsun.com>
112836         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
112838 1999-04-20  Paul Eggert  <eggert@twinsun.com>
112840         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
112841         long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
112842         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
112843         jm_AC_TYPE_UNSIGNED_LONG_LONG.
112844         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
112846         * m4/lfs.m4: Port to AIX and HP-UX.  Support cross-compilation.
112848 1999-04-20  Jim Meyering  <meyering@ascend.com>
112850         * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
112851         AC_REPLACE xstroull if necessary.  From Paul Eggert.
112852         (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
112854 1999-04-18  Jim Meyering  <meyering@ascend.com>
112856         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
112857         * m4/jm-macros.m4: Use it.
112859 1999-04-06  Jim Meyering  <meyering@ascend.com>
112861         * m4/strftime.m4: Remove test for %f.
112863 1999-03-29  Jim Meyering  <meyering@ascend.com>
112865         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
112866         superset of the AC_TYPE_* checks in the textutils, fileutils,
112867         and sh-utils, plus AC_TYPE_PID_T.  Paul Eggert suggested adding
112868         AC_TYPE_PID_T.
112870 1999-03-28  Jim Meyering  <meyering@ascend.com>
112872         * m4/jm-macros.m4: Define GNU_PACKAGE here.
112873         Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
112874         replaced e.g., in the *.sh files of the sh-utils.
112876 1999-03-20  Jim Meyering  <meyering@ascend.com>
112878         * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
112879         * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
112880         Don't depend on AM_GLIBC.  Suggestions from Alain Magloire.
112882 1999-03-19  Jim Meyering  <meyering@ascend.com>
112884         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
112886 1999-03-12  Jim Meyering  <meyering@ascend.com>
112888         * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
112890 1999-03-07  Jim Meyering  <meyering@ascend.com>
112892         * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
112893         declared.
112895 1999-02-17  Jim Meyering  <meyering@ascend.com>
112897         * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
112898         brackets in macro definition.  From Eli Zaretskii and Alain Magloire.
112900 1999-02-07  Jim Meyering  <meyering@ascend.com>
112902         * m4/group-member.m4: New file -- extracted from sh-utils'
112903         configure.in.
112905         1999-02-05  Eli Zaretskii  <eliz@is.elta.co.il>
112906         * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
112908 1999-02-06  Jim Meyering  <meyering@ascend.com>
112910         * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
112911         * m4/fnmatch.m4: Likewise.
112912         * m4/getgroups.m4: Likewise.
112913         * m4/lstat.m4: Likewise.
112914         * m4/malloc.m4: Likewise.
112915         * m4/putenv.m4: Likewise.
112916         * m4/realloc.m4: Likewise.
112917         * m4/regex.m4: Likewise.
112918         * m4/stat.m4: Likewise.
112919         * m4/strftime.m4: Likewise.
112920         Suggestion from Alain Magloire.
112922         * m4/chown.m4: Use `.$ac_objext', not `.o'.
112923         * m4/fnmatch.m4: Likewise.
112924         * m4/getgroups.m4: Likewise.
112925         * m4/getline.m4: Likewise.
112926         * m4/lstat.m4: Likewise.
112927         * m4/malloc.m4: Likewise.
112928         * m4/memcmp.m4: Likewise.
112929         * m4/putenv.m4: Likewise.
112930         * m4/realloc.m4: Likewise.
112931         * m4/regex.m4: Likewise.
112932         * m4/stat.m4: Likewise.
112933         * m4/strftime.m4: Likewise.
112934         Suggestion from Alain Magloire.
112936         * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
112937         an argument.
112939         * m4/regex.m4: Add a run-time Test for proper operation of
112940         re_compile_pattern.
112942 1999-01-31  Jim Meyering  <meyering@ascend.com>
112944         * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
112946 1999-01-30  Jim Meyering  <meyering@ascend.com>
112948         * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
112950         * m4/jm-mktime.m4: Make this a wrapper around the official
112951         AM_FUNC_MKTIME rather than my private copy, now that the official one
112952         is up to date.
112953         * m4/mktime.m4: Remove file.
112955         * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
112956         * m4/uptime.m4: Likewise.
112957         * m4/uintmax_t.m4: Likewise.
112959 1999-01-28  Jim Meyering  <meyering@ascend.com>
112961         * m4/jm-macros.m4: Use jm_AFS.
112962         * m4/afs.m4: New file (from fileutils' configure.in).
112964         * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
112965         * m4/chown.m4: Likewise.
112966         * m4/d-ino.m4: Likewise.
112967         * m4/d-type.m4: Likewise.
112968         * m4/fnmatch.m4: Likewise.
112969         * m4/getgroups.m4: Likewise.
112970         * m4/gettext.m4: Likewise.
112971         * m4/jm-mktime.m4: Likewise.
112972         * m4/jm-winsz2.m4: Likewise.
112973         * m4/lcmessage.m4: Likewise.
112974         * m4/ls-mntd-fs.m4: Likewise.
112975         * m4/malloc.m4: Likewise.
112976         * m4/memcmp.m4: Likewise.
112977         * m4/putenv.m4: Likewise.
112978         * m4/realloc.m4: Likewise.
112979         * m4/st_mtim.m4: Likewise.
112980         * m4/strftime.m4: Likewise.
112982 1999-01-16  Jim Meyering  <meyering@ascend.com>
112984         * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
112985         (ARGMATCH_DIE_DECL): Define.
112987 1999-01-12  Jim Meyering  <meyering@ascend.com>
112989         * m4/Makefile.am.in: Rewrite to avoid using fmt.
112990         Reported by Lars Hecking.
112992 1999-01-10  Jim Meyering  <meyering@ascend.com>
112994         * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
112995         gross kludge.
112996         * m4/inttypes_h.m4: Likewise.
112997         * m4/lstat.m4: Likewise.
112998         * m4/malloc.m4: Likewise.
112999         * m4/readdir.m4: Likewise.
113000         * m4/realloc.m4: Likewise.
113001         * m4/st_dm_mode.m4: Likewise.
113002         * m4/stat.m4: Likewise.
113003         * m4/utimbuf.m4: Likewise.
113004         * m4/utimes.m4: Likewise.
113006         * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
113007         AC_CHECK_FUNCS hack.  Now, it's still a hack, but at least the
113008         comments in config.h.in are meaningful.
113010         * m4/jm-macros.m4: Require autoconf-2.13 here.
113012         * m4/regex.m4: By default, don't use the included regex.c on systems
113013         with glibc 2.  Suggestion from Uli Drepper.
113015 1999-01-02  Jim Meyering  <meyering@ascend.com>
113017         * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
113019 1998-12-18  Jim Meyering  <meyering@ascend.com>
113021         * m4/Makefile.am.in (Makefile.am): Simplify rule.
113022         Based on a suggestion from Lars Hecking.
113024 1998-11-16  Paul Eggert  <eggert@twinsun.com>
113026         * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
113028 1998-11-16  Jim Meyering  <meyering@ascend.com>
113030         * m4/lfs.m4: Double-quote the `uname...` expression.
113032 1998-11-14  Jim Meyering  <meyering@ascend.com>
113034         * m4/lstat.m4: Correct comment.  POSIX does not permit it to succeed.
113035         * m4/stat.m4: Likewise.
113037 1998-11-03  Jim Meyering  <meyering@ascend.com>
113039         * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
113040         * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
113042 1998-10-18  Jim Meyering  <meyering@ascend.com>
113044         * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
113046 1998-10-17  Jim Meyering  <meyering@ascend.com>
113048         * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
113049         include, though we still hard-code the `require'-like AC_CHECK_HEADERS
113050         calls for those previously hard-coded headers.  Instead, take a new
113051         parameter.
113052         (jm_CHECK_DECLARATIONS): Reflect interface change.
113053         * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
113054         (jm_CHECK_DECL_LOCALTIME_R): New macro.
113056         * m4/mktime.m4: Test for spring-forward gap before long-running test.
113058 1998-10-14  Jim Meyering  <meyering@ascend.com>
113060         * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
113061         instead of "TZ=America/Vancouver".  From Paul Eggert.
113063 1998-10-11  Jim Meyering  <meyering@ascend.com>
113065         * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
113066         This adds a test for a recently added compatibility fix for mktime.c.
113067         * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
113069 1998-09-27  Jim Meyering  <meyering@ascend.com>
113071         * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
113073         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro.  Extracted from
113074         ../configure.in, including a change from Gordon Matzigkeit to allow
113075         cross-compiling for the Hurd.
113077         * m4/glibc.m4: New file/macro to test for the GNU C Library
113078         versions 1 and 2.  From Gordon Matzigkeit.
113079         Indent.
113081 1998-09-21  Jim Meyering  <meyering@ascend.com>
113083         * m4/chown.m4: Declare locals: before, after.  From Andries Brouwer.
113085 1998-08-18  Paul Eggert  <eggert@twinsun.com>
113087         Port nanosecond-resolution times to UnixWare 2.1.2 and
113088         pedantic Solaris 2.6.
113090         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
113091         AC_STRUCT_ST_MTIM.
113092         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
113093         Generate name of ns member, instead of just 1 or undef.
113094         Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
113096 1998-08-15  Jim Meyering  <meyering@ascend.com>
113098         * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
113099         * m4/check-type.m4: New file.  Replacement for AC_CHECK_TYPE.
113100         * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
113101         instead of jm_TYPE_SSIZE_T.
113103 1998-08-12  Jim Meyering  <meyering@ascend.com>
113105         * m4/st_dm_mode.m4: New file.  From Johan Danielsson.
113107 1998-08-02  Jim Meyering  <meyering@ascend.com>
113109         * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
113110         in acconfig.h manually.
113112 1998-07-31  Paul Eggert  <eggert@twinsun.com>
113114         * m4/st_mtim.m4: New file.
113116 1998-07-28  Jim Meyering  <meyering@ascend.com>
113118         * m4/utimes.m4: Undef stat.
113120 1998-07-25  Jim Meyering  <meyering@ascend.com>
113122         * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
113123         * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
113125 1998-07-09  Manfred Hollstein  <manfred@s-direktnet.de>
113127         * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
113128         uid and gid actually remain unchanged.
113130 1998-07-07  Jim Meyering  <meyering@ascend.com>
113132         * m4/jm-glibc-io.m4: Remove fclose_unlocked.
113134 1998-07-04  Jim Meyering  <meyering@ascend.com>
113136         * m4/regex.m4: Use syscmd, ifelse, and sysval.  Mainly as an exercise
113137         to prove that this macro can be used in packages without regex.c.
113139 1998-07-04  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
113141         * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
113142         is to be used.
113144 1998-07-03  Jim Meyering  <meyering@ascend.com>
113146         * m4/gettext.m4: Add -lintl if it's found to be necessary.
113148         * m4/gettext.m4: New file -- from gettext-0.10.35.
113149         * m4/lcmessage.m4: Likewise.
113150         * m4/progtest.m4: Likewise.
113152         * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
113153         * m4/jm-macros.m4: Require the new macro.
113155 1998-06-29  Jim Meyering  <meyering@ascend.com>
113157         * m4/fstypename.m4: Include sys/param.h.  NetBSD 1.3.1 requires this
113158         for the definition of NGROUPS (used in a system header included
113159         by sys/mount.h).
113161 1998-06-28  Jim Meyering  <meyering@ascend.com>
113163         * m4/ls-mntd-fs.m4: New file.
113164         * m4/fstypename.m4: New file.
113166         * m4/jm-macros.m4: Require the new macro.
113167         * m4/jm-glibc-io.m4: New file.
113169 1998-05-19  Jim Meyering  <meyering@ascend.com>
113171         * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
113172         * m4/lchown.m4: New file.
113174         * m4/Makefile.am.in: New file.
113175         * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
113177 1998-05-14  Jim Meyering  <meyering@ascend.com>
113179         * m4/Makefile.am (EXTRA_DIST): Add them.
113180         * m4/jm-macros.m4: New file.
113181         * m4/utimbuf.m4: New file.
113183 1998-05-12  Jim Meyering  <meyering@ascend.com>
113185         * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
113187 1998-05-11  Jim Meyering  <meyering@ascend.com>
113189         * m4/isc-posix.m4: New file.
113191 1998-05-10  Jim Meyering  <meyering@ascend.com>
113193         * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
113195 1998-05-09  Jim Meyering  <meyering@ascend.com>
113197         * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
113198         (EXTRA_DIST): Remove mktime.m4, now that the new version is included
113199         with automake.
113201         * m4/ssize_t.m4: New file.
113202         * m4/mktime.m4: Remove file -- the new automake has this now.
113204 1998-04-26  Jim Meyering  <meyering@ascend.com>
113206         * m4/assert.m4: New file.
113207         * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
113209 1998-04-05  Jim Meyering  <meyering@ascend.com>
113211         * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
113212         (jm_PREREQ): Use it here.
113214 1998-03-23  Jim Meyering  <meyering@eng.ascend.com>
113216         * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
113217         in acconfig.h.
113219 1998-03-15  Jim Meyering  <meyering@eng.ascend.com>
113221         * m4/prereq.m4: New file.
113222         * m4/error.m4: New file.
113223         * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
113225 1998-02-07  Jim Meyering  <meyering@eng.ascend.com>
113227         * m4/getline.m4: Don't set am_cv_func_working_getline before the
113228         cache-check for the same variable -- that defeated the purpose of
113229         the test; the test program was never run.  This was a problem only
113230         on systems with losing getline functions -- HP-UX 10.20 is one.
113231         Reported by Bjorn Helgaas.
113233 1998-02-06  Jim Meyering  <meyering@eng.ascend.com>
113235         * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
113237 1998-01-10  Jim Meyering  <meyering@na-net.ornl.gov>
113239         * m4/Makefile.am (EXTRA_DIST): Add const.m4.
113241         * m4/const.m4: New file.  Use an initializer in this declaration
113242         typedef int charset[2]; const charset x;
113243         Reported by Bob Glickstein.
113245 1997-12-21  Jim Meyering  <meyering@na-net.ornl.gov>
113247         * m4/chown.m4: Fix reversed types on -1 args to chown.
113248         From Kaveh Ghazi.
113250 1997-12-14  Jim Meyering  <meyering@na-net.ornl.gov>
113252         * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
113253         Add lseek and memchr.
113255         * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
113256         T.E.Dickey <dickey@clark.net> said that some older preprocessors
113257         have a 20-character limit on names.
113259 1997-11-30  Jim Meyering  <meyering@na-net.ornl.gov>
113261         * m4/inttypes_h.m4: New file.
113262         * m4/uintmax_t.m4: New file.
113263         * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
113266         -----
113268         Local Variables:
113269         coding: utf-8
113270         End:
113272         Copyright (C) 1997-2017 Free Software Foundation, Inc.
113274         Copying and distribution of this file, with or without
113275         modification, are permitted provided the copyright notice
113276         and this notice are preserved.